gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12012-11-26 Yao Qi <yao@codesourcery.com>
2
3 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
4 extraneous parentheses.
5
62012-11-26 Yao Qi <yao@codesourcery.com>
7
8 * remote.c (remote_start_remote): Typo fix.
9
102012-11-23 David S. Miller <davem@davemloft.net>
11
12 * sparc-tdep.h (struct sparc_fpregset): New data structure.
13 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
14 sparc32_sol2_fpregset): Declare new globals.
15 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
16 'fpregset' argument.
17 * sparc64-tdep.h (sparc64_supply_fpregset,
18 sparc64_collect_fpregset): Likewise.
19 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
20 globals.
21 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
22 (sparc_fpregset): Declare new global.
23 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
24 'fpregset' argument.
25 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
26 into handler.
27 (fill_fpregset): Likewise.
28 (_initialize_sparc_linux_nat): Set sparc_fpregset to
29 sparc32_bsd_fpregset.
30 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
31 sparc32_bsd_fpregset down into handler.
32 (sparc32_linux_collect_core_fpregset): Likewise.
33 * sparc-nat.c (sparc_fpregset): Define.
34 (sparc_supply_fpregset): Add 'fpregset' argument.
35 (sparc_collect_fpregset): Likewise.
36 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
37 into fpregset handler.
38 (sparc_store_inferior_registers): Likewise.
39 (_initialize_sparc_nat): Set sparc_fpregset to
40 sparc32_sunos4_fpregset if NULL.
41 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
42 down into handler.
43 (fill_fpregset): Likewise.
44 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
45 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
46 use it to compute offsets.
47 (sparc32_collect_fpregset): Likewise.
48 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
49 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
50 down into handler.
51 (fill_fpregset): Likewise.
52 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
53 Likewise.
54 (sparc64_linux_collect_core_fpregset): Likewise.
55 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
56 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
57 use it to compute offsets.
58 (sparc64_collect_fpregset): Likewise.
59 (sparc64_bsd_fpregset): Define.
60 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
61 sparc64_bsd_fpregset down into handler.
62 (sparc64fbsd_collect_fpregset): Likewise.
63 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
64 and pass sparc{32,64}_bsd_fpregset down into handler.
65 (sparc64nbsd_collect_fpregset): Likewise.
66 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
67 sparc64_bsd_fpregset down into handler.
68 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
69 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
70 to sparc32_bsd_fpregset.
71 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
72 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
73 (sparc32nbsd_supply_fpregset): Likewise.
74
752012-11-21 Tom Tromey <tromey@redhat.com>
76
77 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
78 field.
79 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
80 Remove.
81 * c-typeprint.c (c_type_print_base): Update.
82
832012-11-21 Yao Qi <yao@codesourcery.com>
84
85 PR tdep/7438
86 * gdbarch.sh (smash_text_address): Remove.
87 * gdbarch.c, gdbarch.h: Regenerate.
88 * arm-tdep.c (arm_smash_text_address): Remove.
89 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
90 * hppa-tdep.c (hppa_smash_text_address): Remove.
91 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
92 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
93 Caller update.
94 * coffread.c (coff_symtab_read): Caller update.
95 * dbxread.c (process_one_symbol): Likewise.
96 * elfread.c (record_minimal_symbol): Likewise.
97 * somread.c (som_symtab_read): Likewise.
98
992012-11-20 Pierre Muller <muller@sourceware.org>
100
101 ARI fixes: sprintf rule.
102 Replace sprintf function calls for char arrays by
103 calls to xsnprintf calls.
104 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
105 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
106 (arm_neon_quad_read, arm_pseudo_read): Ditto.
107 (arm_neon_quad_write, arm_pseudo_write): Ditto.
108 * breakpoint.c (condition_completer): Ditto.
109 (create_tracepoint_from_upload): Ditto.
110 * dwarf2read.c (file_full_name): Ditto.
111 * gcore.c (gcore_command): Ditto.
112 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
113 * go32-nat.c (go32_sysinfo): Ditto.
114 * interps.c (interp_set): Ditto.
115 * m32c-tdep.c (make_types): Ditto.
116 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
117 * remote-m32r-sdi.c (m32r_open): Ditto.
118 * sol-thread.c (td_err_string): Ditto.
119 (td_state_string, solaris_pid_to_str): Ditto.
120 * symtab.c (gdb_mangle_name): Ditto.
121 * cli/cli-script.c (execute_control_command): Ditto.
122 (define_command, document_command): Ditto.
123 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
124 * tui/tui-stack.c (tui_make_status_line): Ditto.
125 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
126
1272012-11-20 Mike Frysinger <vapier@gentoo.org>
128
129 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
130 it when looking at ptr->func.
131 * command.h (complete_on_cmdlist): Add a fourth arg.
132 * completer.c (complete_line_internal): Add local ignore_help_classes,
133 and set it to 1 when reason is not handle_help. Pass this down to
134 lookup_cmd_1 and complete_on_cmdlist.
135
1362012-11-20 Tom Tromey <tromey@redhat.com>
137
138 * completer.c (count_struct_fields): Remove.
139 (expression_completer): Don't call count_struct_fields.
140
1412012-11-20 Pedro Alves <palves@redhat.com>
142
143 * annotate.c (breakpoints_changed): Rename to ...
144 (annotate_breakpoints_changed): ... this.
145 (annotate_stopped, breakpoint_changed): Adjust caller.
146 * annotate.h (breakpoints_changed): Rename to ...
147 (annotate_breakpoints_changed): ... this.
148 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
149 (do_map_commands_command, init_raw_breakpoint, clear_command)
150 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
151
1522012-11-20 David S. Miller <davem@davemloft.net>
153
154 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
155 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
156 sysconf.
157 (get_cores_used_by_process): Update comment.
158
1592012-11-20 Yao Qi <yao@codesourcery.com>
160
161 * objfiles.c (init_entry_point_info): Remove trailing spaces.
162
1632012-11-20 Yao Qi <yao@codesourcery.com>
164
165 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
166 to deprecated_context_hook.
167
1682012-11-19 Yao Qi <yao@codesourcery.com>
169
170 * infrun.c (infwait_state): Add static.
171
1722012-11-16 Keith Seitz <keiths@redhat.com>
173
174 PR c++/13615
175 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
176 parameter and pass it to lookup_symbol_file.
177 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
178 to search base classes.
179 (cp_lookup_symbol_namespace): Likewise.
180 (lookup_namespace_scope): Likewise.
181 (lookup_symbol_file): Add SEARCH parameter.
182 If SEARCH is non-zero and no symbol is found, lookup the class
183 and call cp_lookup_nested_symbol.
184 (find_symbol_in_baseclass): New function.
185 (cp_lookup_nested_symbol): Do not let
186 cp_lookup_symbol_in_namespace search through base classes.
187 Do that later when there is no global symbol match.
188
1892012-11-16 Doug Evans <dje@google.com>
190
191 * main.c (gdb_datadir_provided): New static global.
192 (get_init_files): If --data-directory is provided,
193 and SYSTEM_GDBINIT lives in data-directory, look for it there.
194 * NEWS: Mention it.
195
1962012-11-15 Pierre Muller <muller@sourceware.org>
197
198 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
199 * gdb_stat.h: Delete. Moved to common directory.
200 * common/gdb_stat.h: New file.
201 * gdb_wait.h: Delete. Moved to common directory.
202 * common/gdb_wait.h: New file.
203 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
204 location.
205 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
206 location.
207 (stat.h rule): Adapt to new gdb_stat.h location.
208 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
209 <sys/stat.h> header.
210 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
211 <sys/wait.h> header.
212
2132012-11-15 Pierre Muller <muller@sourceware.org>
214
215 * configure.ac (AC_HEADER_STAT): Remove.
216 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
217 and corresponding code.
218 * configure: Regenerate.
219 * config.in: Regenerate.
220
2212012-11-15 Pierre Muller <muller@sourceware.org>
222
223 ARI xasprintf rule fixes.
224 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
225 instead of xasprintf.
226 (open_and_init_dwp_file): Ditto.
227
2282012-11-14 Luis Machado <lgustavo@codesourcery.com>
229
230 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
231 target types.
232
2332012-11-14 Tom Tromey <tromey@redhat.com>
234
235 * configure, config.in: Rebuild.
236 * configure.ac: Don't check for ctype.h, time.h.
237 * expprint.c: Don't use HAVE_CTYPE_H.
238
2392012-11-13 Tom Tromey <tromey@redhat.com>
240
241 * gdbarch.h, gdbarch.c: Rebuild.
242 * gdbarch.sh (set_target_gdbarch): Rename from
243 deprecated_target_gdbarch_select_hack.
244 * arch-utils.c (gdbarch_update_p): Update.
245 (set_gdbarch_from_file): Update.
246
2472012-11-14 Pierre Muller <muller@sourceware.org>
248
249 * MAINTAINERS (Responsible Maintainers/misc): Add myself
250 as responsible of contrib/ari directory.
251
2522012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
253 Yao Qi <yao@codesourcery.com>
254
255 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
256 bit of EXC_RETURN.
257 (arm_m_exception_cache, arm_m_exception_this_id)
258 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
259 (arm_m_exception_unwind): New.
260 (arm_gdbarch_init): Register arm_m_exception_unwind.
261
2622012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
263
264 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
265 parameter COUNT, for pattern filling of memory regions.
266 * NEWS: Mention it.
267
2682012-11-13 Markus Metzger <markus.t.metzger@intel.com>
269
270 * disasm.h (DISASSEMBLY_FILENAME): New macro.
271 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
272 to print_source_lines ().
273 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
274 flag.
275 * source.c (print_source_lines_base): Prefix source line with
276 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
277
2782012-11-13 Markus Metzger <markus.t.metzger@intel.com>
279
280 * symtab.h (print_source_lines_flags): New enum.
281 * source.c (print_source_lines_base): Change noerror to flags.
282 (print_source_lines): Change noerror to flags.
283
2842012-11-13 Pierre Muller <muller@sourceware.org>
285
286 ARI fixes: Avoid sprintf function use rule.
287 * charset.c (convert_between_encodings): Use xsnprintf.
288 * cli-out.c (cli_field_int): Likewise.
289 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
290 * expprint.c (op_name_standard): Likewise.
291 * frv-tdep.c (set_variant_num_gprs): Likewise.
292 (set_variant_num_fprs): Likewise.
293 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
294 * nto-tdep.c (nto_find_and_open_solib): Likewise.
295 (nto_init_solib_absolute_prefix): Likewise.
296 * source.c (init_source_path): Likewise.
297 (print_source_lines_base): Likewise.
298 * valprint.c (print_wchar): Likewise.
299 * mi/mi-out.c (mi_field_int): Likewise.
300 windows-nat.c (windows_pid_to_exec_file): Likewise.
301 (windows_create_inferior): Likewise.
302 (_initialize_check_for_gdb_ini): Likewise.
303
3042012-11-12 Joel Brobecker <brobecker@adacore.com>
305
306 * frame.h (deprecated_frame_register_read): Renames
307 frame_register_read.
308 * frame.c (deprecated_frame_register_read): Renames
309 frame_register_read. Update all callers.
310 * i386-tdep.c: Update all callers of frame_register_read.
311 * infcmd.c: Likewise.
312 * jit.c: Likewise.
313 * mips-tdep.c: Likewise.
314 * mt-tdep.c: Likewise.
315 * sh64-tdep.c: Likewise.
316
3172012-11-12 Joel Brobecker <brobecker@adacore.com>
318
319 * frame.h (frame_register_read): Remove FIXME comment.
320 * frame.c (frame_register_read): Add suggestion explaining
321 which function to use in place of this one.
322
3232012-11-12 Tom Tromey <tromey@redhat.com>
324
325 * python/python.c (start_type_printers): Initialize 'result_obj'.
326
3272012-11-12 Tom Tromey <tromey@redhat.com>
328
329 * NEWS: Update.
330 * data-directory/Makefile.in (PYTHON_FILES): Add
331 type_printers.py.
332 * python/lib/gdb/command/type_printers.py: New file.
333 * python/lib/gdb/command/types.py (TypePrinter): New class.
334 (_get_some_type_recognizers, get_type_recognizers,
335 apply_type_recognizers, register_type_printer): New
336 functions.
337 * python/py-objfile.c (objfile_object) <type_printers>: New
338 field.
339 (objfpy_dealloc): Decref new field.
340 (objfpy_new): Set new field.
341 (objfpy_get_type_printers, objfpy_set_type_printers): New
342 functions.
343 (objfile_to_objfile_object): Set new field.
344 (objfile_getset): Add "type_printers".
345 * python/py-progspace.c (pspace_object) <type_printers>: New
346 field.
347 (pspy_dealloc): Decref new field.
348 (pspy_new): Set new field.
349 (pspy_get_type_printers, pspy_set_type_printers): New functions.
350 (pspace_to_pspace_object): Set new field.
351 (pspace_getset): Add "type_printers".
352 * python/python.c (start_type_printers, apply_type_printers,
353 free_type_printers): New functions.
354 (_initialize_python): Set gdb.type_printers.
355 * python/python.h (start_type_printers, apply_type_printers,
356 free_type_printers): Declare.
357 * typeprint.c (type_print_raw_options, default_ptype_flags):
358 Update for new fields.
359 (do_free_global_table, create_global_typedef_table,
360 find_global_typedef): New functions.
361 (find_typedef_in_hash): Use find_global_typedef.
362 (whatis_exp): Use create_global_typedef_table. Change cleanup
363 handling.
364 * typeprint.h (struct type_print_options) <global_typedefs,
365 global_printers>: New fields.
366
3672012-11-12 Tom Tromey <tromey@redhat.com>
368
369 * c-typeprint.c (find_typedef_for_canonicalize,
370 print_name_maybe_canonical): New functions.
371 (c_print_type): Look up type name.
372 (cp_type_print_derivation_info): Add flags argument. Use
373 print_name_maybe_canonical.
374 (cp_type_print_method_args): Add wrapping.
375 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
376 (c_type_print_template_args): New function.
377 (c_type_print_base): Change wrapping. Use
378 print_name_maybe_canonical.
379 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
380 type name lookups.
381 * gdbtypes.c (types_equal): No longer static.
382 * gdbtypes.h (types_equal): Declare.
383 * typeprint.c (type_print_raw_options, default_ptype_flags):
384 Update.
385 (struct typedef_hash_table): New.
386 (hash_typedef_field, eq_typedef_field,
387 recursively_update_typedef_hash, add_template_parameters,
388 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
389 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
390 copy_typedef_hash, find_typedef_in_hash): New functions.
391 * typeprint.h (struct type_print_options) <local_typedefs>:
392 New field.
393 (recursively_update_typedef_hash, add_template_parameters,
394 create_typedef_hash, free_typedef_hash,
395 make_cleanup_free_typedef_hash, copy_typedef_hash,
396 find_typedef_in_hash): Declare.
397
3982012-11-12 Tom Tromey <tromey@redhat.com>
399
400 * cp-support.c (inspect_type,
401 replace_typedefs_qualified_name, replace_typedefs): Add
402 finder, data arguments. Call as needed.
403 (cp_canonicalize_string_full): New function.
404 (cp_canonicalize_string_no_typedefs): Rewrite.
405 * cp-support.h (canonicalization_ftype): New typedef.
406 (cp_canonicalize_string_full): Declare.
407
4082012-11-12 Tom Tromey <tromey@redhat.com>
409
410 * NEWS: Update.
411 * c-typeprint.c (c_type_print_base): Handle print_method and
412 print_typedefs flags.
413 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
414 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
415 options.
416 * typeprint.c (type_print_raw_options, default_ptype_flags):
417 Update for new field.s
418 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
419 (setprinttypelist, showprinttypelist, print_methods,
420 print_typedefs): New globals.
421 (set_print_type, show_print_type, set_print_type_methods,
422 show_print_type_methods, set_print_type_typedefs,
423 show_print_type_typedefs): New functions.
424 (_initialize_typeprint): Update documentation. Add "print
425 type methods" and "print type typedefs" parameters.
426 * typeprint.h (struct type_print_options) <print_methods,
427 print_typedefs>: New fields.
428
4292012-11-12 Tom Tromey <tromey@redhat.com>
430
431 * c-typeprint.c (cp_type_print_method_args): Add flags
432 argument. Call c_print_type, not type_print.
433 (c_type_print_base): Call c_print_type, not type_print.
434 Update.
435
4362012-11-12 Tom Tromey <tromey@redhat.com>
437
438 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
439 to type-printing functions.
440 * ada-lang.h (ada_print_type): Add argument.
441 * ada-typeprint.c (print_array_type, print_variant_clauses,
442 print_variant_part, print_selected_record_field_types,
443 print_record_field_types, print_unchecked_union_type,
444 print_func_type, ada_print_type): Add flags argument.
445 (ada_print_typedef): Update.
446 * c-exp.y (OPERATOR conversion_type_id): Update.
447 * c-lang.h (c_print_type, c_type_print_base): Update.
448 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
449 c_type_print_modifier, c_type_print_args,
450 c_type_print_varspec_suffix, c_type_print_base): Add flags
451 argument.
452 * cp-valprint.c (cp_print_class_member): Update.
453 * dwarf2read.c (dwarf2_compute_name): Update.
454 * f-lang.h (f_print_type): Add argument.
455 * f-typeprint.c (f_print_type): Add flags argument.
456 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
457 * go-lang.h (go_print_type): Add argument.
458 * go-typeprint.c (go_print_type): Add flags argument.
459 * jv-lang.h (java_print_type): Add argument.
460 * jv-typeprint.c (java_type_print_base, java_print_type): Add
461 flags argument.
462 * language.c (unk_lang_print_type): Add flags argument.
463 * language.h (struct language_defn) <la_print_type>: Add flags
464 argument.
465 (LA_PRINT_TYPE): Likewise.
466 * m2-lang.h (m2_print_type): Add argument.
467 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
468 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
469 m2_unbounded_array, m2_record_fields): Add flags argument.
470 * p-lang.h (pascal_print_type, pascal_type_print_base,
471 pascal_type_print_varspec_prefix): Add argument.
472 * p-typeprint.c (pascal_print_type,
473 pascal_type_print_varspec_prefix, pascal_print_func_args,
474 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
475 flags argument.
476 * symmisc.c (print_symbol): Update.
477 * typeprint.c (type_print_raw_options, default_ptype_flags):
478 New globals.
479 (type_print): Update.
480 * typeprint.h (struct type_print_options): New.
481 (type_print_raw_options): Declare.
482 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
483
4842012-11-10 Keith Seitz <keiths@redhat.com>
485
486 * breakpoint.c (clear_command): Add cleanup for
487 sals.sals if an argument is given.
488
489 * linespec.c (parse_linespec): Do cleanups after
490 parsing a convenience variable.
491
4922012-11-10 Keith Seitz <keiths@redhat.com>
493
494 PR gdb/14288
495 * c-valprint.c (c_val_print): For character arrays
496 with "print null" option on, print ellipses if
497 the output is truncated and the next character is not \000.
498 * valprint.c (MAX_WCHARS): Define.
499 (WCHAR_BUFLEN): Likewise.
500 (WCHAR_BUFLEN_MAX): Likewise.
501 (struct converted_character): New structure.
502 (count_next_character): New function.
503 (print_converted_chars_to_obstack): New function.
504 (generic_printstr): Rewrite using count_next_character
505 and print_converted_chars_to_obstack.
506
5072012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
508
509 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
510 while executing the gdb command.
511 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
512 are called from prompt_for_continue.
513 * tui/tui-io.c (tui_redisplay_readline): Likewise.
514
5152012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
516
517 PR tui/9584
518
519 * tui/tui.c (tui_rl_command_key): Do not call execute_command
520 but insert the command to execute in readline's buffer.
521
5222012-11-09 Tom Tromey <tromey@redhat.com>
523
524 * gdbarch.sh (target_gdbarch): Remove macro.
525 (get_target_gdbarch): Rename to target_gdbarch.
526 * gdbarch.c, gdbarch.h: Rebuild.
527 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
528 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
529 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
530 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
531 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
532 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
533 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
534 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
535 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
536 procfs.c, progspace.c, ravenscar-thread.c, record.c,
537 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
538 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
539 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
540 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
541 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
542 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
543 target-descriptions.c, target.c, target.h, tracepoint.c,
544 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
545 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
546 python/py-inferior.c, python/python.c: Update.
547
5482012-11-09 Andrew Burgess <aburgess@broadcom.com>
549
550 * source.c (print_source_lines_base): Add fullname field giving
551 full path to file in mi output.
552 * NEWS: Mention the new fullname field.
553
5542012-11-09 Yao Qi <yao@codesourcery.com>
555
556 * NEWS: Mention the fix to the ambiguity of 'fo' command.
557
5582012-11-09 Pedro Alves <palves@redhat.com>
559
560 PR gdb/14306
561
562 * infrun.c: Include target-descriptions.h.
563 (follow_exec): Fetch new target description.
564
5652012-11-09 Yao Qi <yao@codesourcery.com>
566
567 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
568 0x8d (lea).
569
5702012-11-09 Yao Qi <yao@codesourcery.com>
571
572 * breakpoint.c: Declare set_tracepoint_count.
573 (install_breakpoint): Call set_tracepoint_count if B is a
574 tracepoint.
575 (trace_command): Don't call set_tracepoint_count. Re-indent.
576 (strace_command, ftrace_command):
577 (create_tracepoint_from_upload): Likewise.
578
5792012-11-09 Pedro Alves <palves@redhat.com>
580
581 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
582 (get_target_gdbarch) <gdbarch.h>: New function.
583 (startup_gdbarch) <gdbarch.h>: Declare.
584 <gdbarch.c> (target_gdbarch): Delete.
585 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
586 current inferior's gdbarch.
587 <gdbarch.c> (get_target_gdbarch): New function.
588 * inferior.c: Include target-descriptions.h.
589 (free_inferior): Free target description info.
590 (add_inferior_with_spaces): Set the inferior's initial
591 architecture.
592 (clone_inferior_command): Copy the original inferior's target
593 description if it was user specified.
594 (initialize_inferiors): Add comment.
595 * inferior.h (struct target_desc_info): Forward declare.
596 (struct inferior) <gdbarch>: New field.
597 * linux-nat.c: Include target-descriptions.h.
598 (linux_child_follow_fork): Copy the parent's architecture and
599 target description to the child.
600 * target-descriptions.c: Include inferior.h.
601 (struct target_desc_info): New structure, holding the equivalents
602 of ...
603 (target_desc_fetched, current_target_desc)
604 (target_description_filename): ... these removed globals.
605 (get_tdesc_info, target_desc_info_from_user_p)
606 (copy_inferior_target_desc_info, target_desc_info_free): New.
607 (target_desc_fetched, current_target_desc)
608 (target_description_filename): Reimplemented as convenience
609 macros.
610 (tdesc_filename_cmd_string): New global.
611 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
612 tdescs filename ..." commands to the per-inferior equivalent.
613 (show_tdesc_filename_cmd): Get the value to show from the
614 per-inferior description filename.
615 (_initilize_target_descriptions): Change the "set/show tdesc
616 filename" commands' variable.
617 * target-descriptions.h (struct target_desc, struct target_desc_info)
618 (struct inferior): Forward declare.
619 (target_find_description, target_clear_description)
620 (target_current_description): Adjust comments.
621 (copy_inferior_target_desc_info, target_desc_info_free)
622 (target_desc_info_from_user_p). Declare.
623
6242012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
625
626 * tui/tui-hooks.c (tui_about_to_proceed): New function.
627 (tui_target_wait_hook): Remove.
628 (tui_install_hooks): Install the about_to_proceed observer.
629 (tui_remove_hooks): And remove it here.
630
6312012-11-08 Tom Tromey <tromey@redhat.com>
632
633 * linux-tdep.c (linux_make_siginfo_note): New function.
634 (linux_make_corefile_notes): Use it.
635 * corelow.c (get_core_siginfo): New function.
636 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
637
6382012-11-08 Tom Tromey <tromey@redhat.com>
639
640 PR gdb/14704:
641 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
642 (zlib_decompress_section): Remove.
643 (gdb_bfd_map_section): Only check for compressed section
644 in mmap case. Use bfd_get_full_section_contents.
645 * osabi.c (check_note): Add 'sectsize' argument. Read
646 section data.
647 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
648 section data. Update for check_note change.
649 * xcoffread.c (xcoff_initial_scan): Use
650 bfd_get_full_section_contents.
651 * py-auto-load.c (auto_load_section_scripts): Use
652 bfd_get_full_section_contents.
653 * contrib/cc-with-tweaks.sh: Add -Z option.
654
6552012-11-08 Tom Tromey <tromey@redhat.com>
656
657 * python/py-bpevent.c: Include defs.h.
658 * python/py-continueevent.c: Include defs.h.
659 * python/py-event.c: Include defs.h.
660 * python/py-event.h: Don't include defs.h.
661 * python/py-events.h: Don't include defs.h.
662 * python/py-evts.c: Include defs.h.
663 * python/py-exitedevent.c: Include defs.h.
664 * python/py-newobjfileevent.c: Include defs.h.
665 * python/py-signalevent.c: Include defs.h.
666 * python/py-stopevent.c: Include defs.h.
667 * python/py-threadevent.c: Include defs.h.
668
6692012-11-08 Pierre Muller <muller@sourceware.org>
670
671 * update-web-ari.sh (print_heading): Add number of files
672 checked.
673 (nb_files): New variable counting the number of sources
674 files found by gdb_find.sh script.
675 (debug_awk): New variable to allow extra debug output.
676 (indexes): Add more information if DEBUG_AWK is set.
677
6782012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
679
680 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
681 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
682 following the change in PLT call stubs on linker.
683
6842012-11-08 Pierre Muller <muller@sourceware.org>
685
686 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
687 as default language.
688 (AWK): Use = instead of == for sh test to avoid warning.
689 (Linux rule): Correct [:digit] into [[:digit:]].
690 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
691 (vasprintf rule): Adapt to common subdirectory moves.
692 (xasprintf rule): Idem.
693 (xvasprintf rule): Idem.
694 (var_boolean rule): Accept occurence in == or != test.
695
696 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
697
6982012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
699
700 * tui/tui-hooks.c (tui_inferior_exit): New function.
701 (tui_detach_hook): Remove.
702 (tui_install_hooks): Install the inferior exit observer.
703 (tui_remove_hooks): Remove it.
704
7052012-11-08 Yao Qi <yao@codesourcery.com>
706
707 PR gdb/14777.
708 * source.c (_initialize_source): Call add_com_alias to abbreviate
709 'forward-search' as 'fo'.
710
7112012-11-07 Pedro Alves <palves@redhat.com>
712
713 * arm-tdep.c: Make defs.h be the first include.
714 * coff-pe-read.c: Ditto.
715 * gnu-nat.c: Ditto.
716 * go32-nat.c: Ditto.
717 * i386-nat.c: Ditto.
718 * ppcnbsd-nat.c: Ditto.
719 * ada-varobj.h: Don't include defs.h.
720 * i386-darwin-tdep.h: Ditto.
721 * i386-nat.h: Ditto.
722
7232012-11-07 Pedro Alves <palves@redhat.com>
724
725 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
726 Committee.
727
7282012-11-07 Pierre Muller <muller@sourceware.org>
729
730 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
731 File already uses "gdb_dirent.h" header.
732
7332012-11-07 Yao Qi <yao@codesourcery.com>
734
735 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
736 tracepoint_count'.
737
7382012-11-06 Tom Tromey <tromey@redhat.com>
739
740 * target.h (inferior_has_forked, inferior_has_vforked)
741 (inferior_has_execd, inferior_has_called_syscall): Remove
742 declarations.
743
7442012-11-06 Pierre Muller <muller@sourceware.org>
745
746 * remote.c (remote_insert_hw_breakpoint): ARI fix,
747 add missing internalization markup.
748
7492012-11-06 Pedro Alves <palves@redhat.com>
750
751 PR gdb/14810
752
753 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
754
7552012-11-06 Pierre Muller <muller@sourceware.org>
756
757 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
758 is not executable.
759
7602012-11-05 Joel Brobecker <brobecker@adacore.com>
761
762 * gnulib/update-gnulib.sh: New script.
763
7642012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
765
766 * MAINTAINERS: Update my email address.
767
7682012-11-05 Tom Tromey <tromey@redhat.com>
769
770 * frame.c (put_frame_register): Don't use temporary buffer.
771
7722012-11-05 Pedro Alves <palves@redhat.com>
773
774 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
775 child. Clear 'pending_detach'.
776 * infrun.c (handle_vfork_child_exec_or_exit): Clear
777 'pending_detach' in the vfork parent.
778
7792012-11-05 Doug Evans <dje@google.com>
780
781 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
782 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
783 * dwarf2read.c: #include "elf-bfd.h".
784 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
785 (dwop_section_names): Renamed from dwo_section names. All uses
786 updated. Add entries for .debug_cu_index, .debug_tu_index.
787 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
788 All uses updated.
789 (struct dwp_sections): New type.
790 (struct virtual_dwo_sections): New type.
791 (struct dwp_hash_table): New type.
792 (struct dwp_file): New type.
793 (init_cutu_and_read_dies): Ensure DWO info/types section has been
794 read in. Handle DWOs coming from DWP files.
795 (lookup_dwo_file_slot): New function.
796 (dwarf2_locate_dwo_sections): Move definition closer to use.
797 (create_dwo_debug_info_hash_table_reader): Renamed from
798 create_debug_info_hash_table_reader. All callers updated.
799 (create_dwo_debug_info_hash_table): Renamed from
800 create_debug_info_hash_table. All callers updated.
801 (create_dwp_hash_table): New function.
802 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
803 (lookup_dwo_in_dwp): New function.
804 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
805 is_dwp. All callers updated.
806 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
807 (open_and_init_dwo_file): Renamed from init_dwo_file.
808 All callers updated.
809 (lookup_dwo_file): Delete.
810 (dwarf2_locate_dwp_sections): New function.
811 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
812 (allocate_dwp_loaded_cutus_table): New function.
813 (open_and_init_dwp_file): New function.
814 (lookup_dwo_cutu): New function.
815 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
816
8172012-11-03 Yao Qi <yao@codesourcery.com>
818
819 Fix PR gdb/14617.
820 * breakpoint.c (trace_pass_set_count): Call
821 observer_notify_breakpoint_modified instead of
822 observer_notify_tracepoint_modified.
823 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
824
8252012-11-02 Tom Tromey <tromey@redhat.com>
826
827 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
828 argument to complete_on_enum.
829
8302012-11-02 Tom Tromey <tromey@redhat.com>
831
832 * configure: Rebuild.
833 * configure.ac (build_warnings): Add -Wempty-body.
834 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
835 * remote.c (handle_notification): Use braces for empty 'else' body.
836 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
837 'else' body.
838 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
839 'else' body.
840 * solib-som.c (som_relocate_section_addresses): Use braces
841 for empty 'else' body.
842 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
843 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
844
8452012-11-02 Pedro Alves <palves@redhat.com>
846
847 PR gdb/14766
848
849 * infrun.c (handle_inferior_event)
850 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
851 null_ptid before handling a vfork child exec or exit. Switch to
852 the event ptid afterwards.
853
8542012-11-02 Yao Qi <yao@codesourcery.com>
855
856 * std-operator.def: Remove OP_LABELED.
857 * eval.c: Remove the declaration of 'get_label'.
858 (get_label): Remove.
859 (evaluate_struct_tuple): Remove code handling OP_LABELED.
860 Update comment.
861 Remove local variable 'variantno' and related code.
862 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
863 with 'fieldno'.
864 * expprint.c (print_subexp_standard): Likewise.
865 (dump_subexp_body_standard): Likewise.
866 * parse.c (operator_length_standard): Likewise.
867
8682012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
869
870 Incorporate ARI web page generator into GDB sources.
871 * contrib/ari/create-web-ari-in-src.sh: New file.
872 * contrib/ari/gdb_ari.sh: New file.
873 * contrib/ari/gdb_find.sh: New file.
874 * contrib/ari/update-web-ari.sh: New file.
875
8762012-10-31 Tom Tromey <tromey@redhat.com>
877
878 * gdbarch.c: Rebuild.
879 * gdbarch.sh: Remove references to gdbarch_swap.
880 * corelow.c (core_open): Remove obsolete comment.
881
8822012-10-31 Andrew Burgess <aburgess@broadcom.com>
883
884 PR cli/14772
885 * c-typeprint.c (c_print_type): Don't print a space for vector
886 types, this is handled within the suffix.
887 (c_type_print_varspec_suffix): Add a space to vector suffix.
888
8892012-10-26 Pedro Alves <palves@redhat.com>
890
891 * amd64-tdep.c (amd64_relocate_instruction): Use
892 store_unsigned_integer instead of memcpy.
893 * i386-tdep.c (i386_relocate_instruction): Ditto.
894
8952012-10-26 Pedro Alves <palves@redhat.com>
896
897 * infrun.c (handle_inferior_event): Merge handling of
898 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
899 switch case.
900
9012012-10-26 Pedro Alves <palves@redhat.com>
902
903 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
904 Remove comment.
905
9062012-10-26 Pedro Alves <palves@redhat.com>
907
908 * target.c (target_waitstatus_to_string): Handle
909 TARGET_WAITKIND_VFORK_DONE.
910
9112012-10-26 Pedro Alves <palves@redhat.com>
912
913 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
914 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
915
9162012-10-24 Tristan Gingold <gingold@adacore.com>
917
918 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
919 Add comments.
920
9212012-10-24 Joel Brobecker <brobecker@adacore.com>
922
923 * ravenscar-thread.c (ravenscar_wait): Only update the list
924 of threads and inferior_ptid if the inferior is still alive.
925
9262012-10-24 Joel Brobecker <brobecker@adacore.com>
927
928 * ada-lang.c (is_known_support_routine): Use lbasename when
929 matching the symtab's filename against
930 known_runtime_file_name_patterns.
931
9322012-10-24 Joel Brobecker <brobecker@adacore.com>
933
934 * ada-lang.c (ada_same_array_size_p): New function.
935 (ada_promote_array_of_integrals): New function.
936 (coerce_for_assign): Add handling of arrays where the elements
937 are integrals of a smaller size than the size of the target
938 array element type.
939
9402012-10-24 Joel Brobecker <brobecker@adacore.com>
941
942 * doublest.c (convert_doublest_to_floatformat): Fix comparison
943 against maximum exponent value.
944
9452012-10-24 Joel Brobecker <brobecker@adacore.com>
946
947 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
948 "unwind-seh.c".
949
9502012-10-24 Joel Brobecker <brobecker@adacore.com>
951
952 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
953 strip typedef layer when computing the fixed type's field type,
954 only when computing its size.
955
9562012-10-24 Mark Kettenis <kettenis@gnu.org>
957
958 PR gdb/12783
959 * i386-tdep.c (i386_return_value): Handle complex double and long
960 double.
961
9622012-10-24 Joel Brobecker <brobecker@adacore.com>
963
964 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
965 New local variable args_len.
966 Quote the name of the executable when computing the command line.
967
9682012-10-23 Mark Kettenis <kettenis@gnu.org>
969
970 PR gdb/12796
971 PR gdb/12798
972 PR gdb/12800
973 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
974 AMD64_FTAG_REGNUM.
975 * amd64-tdep.c (amd64_classify): Classify complex types.
976 (amd64_return_value): Handle the COMPLEX_X87 class.
977
9782012-10-23 Joel Brobecker <brobecker@adacore.com>
979
980 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
981 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
982
9832012-10-23 Joel Brobecker <brobecker@adacore.com>
984
985 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
986 function.
987 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
988 to amd64_windows_auto_wide_charset.
989
9902012-10-23 Yao Qi <yao@codesourcery.com>
991
992 * event-top.c (mark_async_signal_handler_wrapper): Remove.
993 * event-top.h: Remove its declaration.
994 (async_request_quit): Call mark_async_signal_handler instead of
995 mark_async_signal_handler_wrapper.
996 (async_do_nothing, async_disconnect): Likewise.
997 (async_stop_sig): Likewise.
998 * remote.c (handle_remote_sigint): Likewise.
999 (handle_remote_sigint_twice): Likewise.
1000
10012012-10-23 Yao Qi <yao@codesourcery.com>
1002
1003 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1004 with 'static struct async_signal_handler *'.
1005 (sighup_token, sigquit_token, sigstp_token): Likewise.
1006
10072012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1008
1009 * gdbarch.sh (function_list): Use 'pstring' when printing
1010 a variable which could return NULL.
1011 * gdbarch.c: Regenerate.
1012
10132012-10-10 Joel Brobecker <brobecker@adacore.com>
1014 Tom Tromey <tromey@redhat.com>
1015
1016 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1017 inneffective if condition by gdb assertion. Add function
1018 description comment.
1019
10202012-10-19 Joel Brobecker <brobecker@adacore.com>
1021
1022 * parser-defs.h (struct exp_descriptor): Document constraint
1023 on return value for "op_name" callbacks.
1024
10252012-10-18 Tom Tromey <tromey@redhat.com>
1026
1027 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1028 * symtab.c (iterate_over_some_symtabs): Constify.
1029 * source.h (symtab_to_fullname): Return 'const char *'.
1030 * source.c (symtab_to_fullname): Return 'const char *'.
1031 * python/py-symtab.c (stpy_fullname): Constify.
1032 * cli/cli-cmds.c (edit_command): Constify.
1033 * breakpoint.c (print_breakpoint_location)
1034 (update_static_tracepoint): Constify.
1035
10362012-10-18 Tom Tromey <tromey@redhat.com>
1037
1038 * breakpoint.c (compare_breakpoints): Fix comparison.
1039
10402012-10-18 Tom Tromey <tromey@redhat.com>
1041
1042 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1043 gdb_wchar_t to convert_between_encodings.
1044
10452012-10-17 Yao Qi <yao@codesourcery.com>
1046
1047 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1048 more parameter 'inferior'.
1049 * corefile.c (write_memory_with_notification): Caller update.
1050
1051 * mi/mi-cmd-var.c: Include "mi-main.h".
1052 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1053 to 1 and restore it later.
1054 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1055 and "data-write-memory-bytes.
1056 * mi/mi-interp.c: Include objfiles.h.
1057 (mi_interpreter_init): Call observer_attach_memory_changed.
1058 (mi_memory_changed): New.
1059 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1060 New field.
1061
1062 * NEWS: Mention new MI notification "memory-changed".
1063
10642012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1065
1066 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1067
10682012-10-15 Doug Evans <dje@google.com>
1069
1070 New option -nh: inhibit loading of ~/.gdbinit.
1071 * NEWS: Mention -nh.
1072 * main.c (captured_main): Recognize and process -nh.
1073 (print_gdb_help): Mention -nh.
1074 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1075
10762012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1077
1078 PR backtrace/14646
1079 PR gdb/14647
1080 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1081 pc_regnum_from_eax.
1082 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1083 nor pc_regnum_from_eax.
1084 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1085 nor pc_regnum_from_eax.
1086
10872012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1088
1089 Fix entry values resolving in inlined frames.
1090 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1091 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1092 entries of FRAME.
1093
10942012-10-15 Joel Brobecker <brobecker@adacore.com>
1095
1096 * configure.ac: Build with -DMS_WIN64 if building with Python
1097 enabled using GCC on amd64-windows.
1098 * configure: Regenerate.
1099
11002012-10-15 Tom Tromey <tromey@redhat.com>
1101
1102 PR python/14635:
1103 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1104 to Py_None.
1105
11062012-10-15 Tom Tromey <tromey@redhat.com>
1107
1108 PR python/14634:
1109 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1110
11112012-10-11 Andrew Burgess <aburgess@broadcom.com>
1112
1113 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1114 reset thread numbering back to 1.
1115
11162012-10-11 Doug Evans <dje@google.com>
1117
1118 PR breakpoints/14643.
1119 * linespec.c (struct ls_parser): New member keyword_ok.
1120 (linespec_lexer_lex_string): Add comment.
1121 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1122 for one.
1123 (parse_linespec): Set keyword_ok.
1124
11252012-10-10 Doug Evans <dje@google.com>
1126
1127 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1128 "0x" prefix on address in log message.
1129
1130 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1131 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1132 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1133 (lookup_dwo_file): Add const to dwo_name parameter.
1134 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1135
11362012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 Fix crash during stepping on ppc32.
1139 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1140 SYM.
1141
11422012-10-03 Doug Evans <dje@google.com>
1143
1144 PR symtab/14601
1145 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1146
11472012-10-02 Andrew Burgess <aburgess@broadcom.com>
1148
1149 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1150 output and use uint32_t not long to ensure 4 byte size.
1151
11522012-10-02 Joel Brobecker <brobecker@adacore.com>
1153
1154 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1155 unref'ed it.
1156
11572012-10-01 Andrew Burgess <aburgess@broadcom.com>
1158
1159 * target.c (simple_search_memory): Include access length in
1160 warning message.
1161
11622012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1163 Edjunior Machado <emachado@linux.vnet.ibm.com>
1164
1165 PR gdb/13989
1166 * solib.c (solib_find): Prevent GDB from loading native libraries when
1167 debugging a cross-target corefile.
1168
11692012-09-28 selven <pcthegreat@gmail.com>
1170
1171 Make definition match declaration.
1172
1173 * regcache.c (regcache_register_status): Change return type to
1174 enum register_status.
1175
11762012-09-28 Yao Qi <yao@codesourcery.com>
1177
1178 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1179 write_memory_with_notification instead of write_memory.
1180 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1181 instead of target_write_memory.
1182
11832012-09-28 Yao Qi <yao@codesourcery.com>
1184
1185 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1186 when the length of content is not an even number.
1187
11882012-09-27 Tom Tromey <tromey@redhat.com>
1189
1190 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1191 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1192
11932012-09-27 Joel Brobecker <brobecker@adacore.com>
1194
1195 * sol-thread.c (sol_thread_fetch_registers)
1196 (sol_thread_store_registers): Delete commented out code.
1197
11982012-09-27 Joel Brobecker <brobecker@adacore.com>
1199
1200 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1201 Move these functions to sparc-sol-thread.c.
1202 * sparc-sol-thread.c: New file.
1203 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1204 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1205 configurations.
1206 * configure: Regenerate.
1207
12082012-09-27 Joel Brobecker <brobecker@adacore.com>
1209
1210 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1211 Remove commented-out code.
1212
12132012-09-27 Joel Brobecker <brobecker@adacore.com>
1214
1215 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1216 Enable this code for sparc hosts only.
1217
12182012-09-27 Joel Brobecker <brobecker@adacore.com>
1219
1220 * procfs.h (procfs_find_LDT_entry): Add declaration.
1221 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1222 function procfs_find_LDT_entry.
1223
12242012-09-27 Joel Brobecker <brobecker@adacore.com>
1225
1226 * procfs.c (proc_get_LDT_entry): Make static.
1227
12282012-09-27 Joel Brobecker <brobecker@adacore.com>
1229
1230 * procfs.c (proc_find_memory_regions): Fix declaration.
1231
12322012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1233
1234 * amd64-tdep.c (amd64_return_value): Revert previous change
1235 that used TYPE_LENGTH directly.
1236 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1237 (bfin_store_return_value): Likewise.
1238 * cris-tdep.c (cris_store_return_value): Likewise.
1239 (cris_extract_return_value): Likewise.
1240 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1241 * hppa-tdep.c (hppa64_return_value): Likewise.
1242 * lm32-tdep.c (lm32_store_return_value): Likewise.
1243 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1244 * spu-tdep.c (spu_value_from_register): Likewise.
1245 * vax-tdep.c (vax_return_value): Likewise.
1246
12472012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1248
1249 * gdbtypes.c (lookup_array_range_type): Expand parameters
1250 LOW_BOUND and HIGH_BOUND to LONGEST.
1251 (lookup_string_range_type): Likewise.
1252 * gdbtypes.h (lookup_array_range_type): Likewise.
1253 (lookup_string_range_type): Likewise.
1254 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1255 Expand HIGHBOUND to ssize_t.
1256 (value_string): Likewise.
1257 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1258 (value_string): Likewise.
1259
12602012-09-27 Yao Qi <yao@codesourcery.com>
1261
1262 PR breakpoints/13898
1263 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1264 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1265 per breakpoint type.
1266
12672012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1268
1269 * procfs.c: Add gdb_bfd header.
1270 * rs6000-nat.c: Likewise.
1271 * solib-pa64.c: Likewise.
1272 * spu-linux-nat.c: Likewise.
1273 * windows-nat.c: Likewise.
1274
12752012-09-26 Tom Tromey <tromey@redhat.com>
1276
1277 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1278
12792012-09-26 Tom Tromey <tromey@redhat.com>
1280
1281 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1282 (read_common_block): Handle child DIEs with
1283 DW_AT_data_member_location.
1284 (new_symbol_full): Add special case for common blocks.
1285
12862012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1287 Tom Tromey <tromey@redhat.com>
1288
1289 * dwarf2read.c (read_common_block): Rewrite.
1290 (new_symbol_full): Handle DW_TAG_common_block.
1291 * f-lang.c (head_common_list, find_common_for_function):
1292 Remove.
1293 * f-lang.h (struct common_entry, struct saved_f77_common,
1294 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1295 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1296 BLANK_COMMON_NAME_LOCAL): Remove.
1297 (struct common_block): New.
1298 * f-valprint.c (list_all_visible_commons): Remove.
1299 (info_common_command_for_block): New function.
1300 (info_common_command): Use it.
1301 * stack.c (iterate_over_block_locals): Special case for
1302 COMMON_BLOCK_DOMAIN.
1303 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1304 constant.
1305 (struct general_symbol_info) <value.common_block>: New field.
1306 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1307
13082012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1309 Tom Tromey <tromey@redhat.com>
1310
1311 * f-lang.c (allocate_saved_bf_node,
1312 allocate_saved_function_node, allocate_saved_f77_common_node,
1313 allocate_common_entry_node, tail_common_list, current_common,
1314 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1315 tmp_bf_ptr, add_common_block, add_common_entry,
1316 find_first_common_named, patch_common_entries,
1317 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1318 global_remote_debug, get_bf_for_fcn, saved_function_list,
1319 saved_function_list_end, clear_function_list, struct saved_fcn,
1320 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1321 SAVED_BF, SAVED_BF_PTR): Remove.
1322 * f-lang.h (tail_common_list, current_common,
1323 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1324 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1325 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1326 real_main_c_value): Remove.
1327 * f-valprint.c (there_is_a_visible_common_named): Remove.
1328
13292012-09-26 Andrew Burgess <aburgess@broadcom.com>
1330
1331 * breakpoint.c (update_global_location_list): Ignore previous
1332 duplicate status of a breakpoint when starting a new scan for
1333 duplicate breakpoints.
1334
13352012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1336 PR breakpoints/14419
1337 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1338 support LLVM compiler.
1339
13402012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1341
1342 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1343 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1344 (bfin_store_return_value): Likewise.
1345 * cris-tdep.c (cris_store_return_value): Likewise.
1346 (cris_extract_return_value): Likewise.
1347 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1348 * hppa-tdep.c (hppa64_return_value): Likewise.
1349 * lm32-tdep.c (lm32_store_return_value): Likewise.
1350 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1351 * spu-tdep.c (spu_value_from_register): Likewise.
1352 * vax-tdep.c (vax_return_value): Likewise.
1353
13542012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1355
1356 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1357 parameter LEN to ssize_t.
1358
13592012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1360
1361 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1362 variable LEN.
1363 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1364 directly.
1365 (alpha_store_return_value): Likewise.
1366 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1367 (amd64_push_arguments): Likewise.
1368 * ax-gdb.c (gen_trace_static_fields): Likewise.
1369 (gen_traced_pop): Likewise.
1370 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1371 * breakpoint.c (update_watchpoint): Likewise.
1372 * findcmd.c (parse_find_args): Use local variable for type
1373 instead of length.
1374 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1375 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1376 (h8300_store_return_value): Likewise.
1377 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1378 Use i386_darwin_arg_type_alignment directly.
1379 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1380 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1381 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1382 (m68hc11_extract_return_value): Likewise.
1383 * mep-tdep.c (mep_push_dummy_call): Likewise.
1384 * printcmd.c (float_type_from_length): Likewise.
1385 * s390-tdep.c (s390_value_from_register): Likewise.
1386 * stack.c (read_frame_arg): Likewise.
1387 * tracepoint.c (encode_actions_1): Likewise.
1388 * valops.c (value_fetch_lazy): Use local variable for type
1389 instead of length. Use TYPE_LENGTH directly.
1390 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1391
13922012-09-25 Joel Brobecker <brobecker@adacore.com>
1393
1394 * symtab.c (skip_prologue_sal): Fix typo in comment.
1395
13962012-09-25 Joel Brobecker <brobecker@adacore.com>
1397
1398 * linespec.c (create_sals_line_offset): Fix typo in comment.
1399
14002012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1401
1402 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1403 use plongest to print the array size.
1404
14052012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1406
1407 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1408 * p-valprint.c (pascal_type_print_base): Likewise.
1409
14102012-09-22 Yao Qi <yao@codesourcery.com>
1411
1412 * remote.c (remote_get_trace_status): Remove setting default
1413 values of fields of 'ts'.
1414
14152012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1416
1417 Fix internal error on canonicalization of clang types.
1418 * cp-name-parser.y (operator): New comment at make_operator call for
1419 new, delete, new[] and delete[].
1420 (exp): Use "sizeof ". Add new comment at make_operator call.
1421
14222012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1423
1424 Fix disassemble without parameters in tailcall frame.
1425 * cli/cli-cmds.c (disassemble_current_function): Use
1426 get_frame_address_in_block.
1427
14282012-09-21 Tom Tromey <tromey@redhat.com>
1429
1430 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1431 TYPE_CODE_UNION>: Unify, removing a goto.
1432
14332012-09-21 Tom Tromey <tromey@redhat.com>
1434
1435 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1436
14372012-09-21 Andrew Burgess <aburgess@broadcom.com>
1438
1439 * findvar.c (read_frame_register_value): Mark the result value as
1440 optimized out if any of the input registers have been optimized out.
1441
14422012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1443
1444 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1445
14462012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1447
1448 * eval.c (evaluate_subexp_standard): Eliminate single-use
1449 variable LOWER.
1450
14512012-09-21 Yao Qi <yao@codesourcery.com>
1452
1453 * mi/mi-interp.c: Declare mi_record_changed.
1454 (mi_interpreter_init): Call observer_attach_record_changed.
1455 (mi_record_changed): New.
1456 * record.c (record_open): Call observer_notify_record_changed.
1457 (cmd_record_stop): Call observer_notify_record_changed.
1458 * NEWS: Mention it.
1459
14602012-09-20 Tom Tromey <tromey@redhat.com>
1461
1462 * NEWS: Update.
1463 * python/python.c (finalize_python): New function.
1464 (_initialize_python): Make a final cleanup.
1465
14662012-09-19 Doug Evans <dje@google.com>
1467
1468 * buildsym.h (param_symbols): Delete, unused.
1469 (context_stack): Delete member "params", unused.
1470 * buildsym.c (push_context): Update.
1471 * dwarf2read.c (read_func_scope): Update.
1472
14732012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1474
1475 * sh-tdep.c (sh_register_convert_to_virtual)
1476 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1477 all callers. Just do a memcpy if not the little-endian case.
1478
1479 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1480 set_gdbarch_double_format and set_gdbarch_long_double_format.
1481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1482 set_gdbarch_double_format.
1483 * sh-tdep.c (sh_gdbarch_init): Likewise.
1484
1485 * NEWS: Document the removal of SH's 'regs' command.
1486 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1487 command.
1488
14892012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1490
1491 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1492 `jump'.
1493
14942012-09-18 Joel Brobecker <brobecker@adacore.com>
1495
1496 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1497 language when iterating over symbols.
1498
14992012-09-18 Yao Qi <yao@codesourcery.com>
1500
1501 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1502 (mi_interpreter_init): Call observer_attach_tsv_created and
1503 observer_attach_tsv_deleted.
1504 (mi_tsv_created, mi_tsv_deleted): New.
1505 * tracepoint.c (delete_trace_state_variable): Call
1506 observer_notify_tsv_deleted.
1507 (trace_variable_command): Call observer_notify_tsv_created.
1508 (delete_trace_variable_command): Call
1509 observer_notify_tsv_deleted.
1510 (create_tsv_from_upload): Call observer_notify_tsv_created.
1511 * NEWS: Mention it.
1512
15132012-09-18 Yao Qi <yao@codesourcery.com>
1514
1515 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1516 if traceframe changed.
1517 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1518 "trace-find".
1519 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1520 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1521 'traceframe_changed'.
1522 (mi_traceframe_changed): New.
1523 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1524 New field.
1525 * NEWS: Mention the new MI notification.
1526
15272012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1528
1529 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1530
15312012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1532
1533 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1534 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1535 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1536 Extend code also for PaX support. Convert all gdb_assert to warning
1537 calls.
1538
15392012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1540
1541 Implement auto-load user conveniences suggested by Doug Evans.
1542 * auto-load.c: Include top.h.
1543 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1544 (_initialize_auto_load): New variable scripts_directory_help. Mention
1545 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1546 scripts-directory. Document in online help one can use also files for
1547 set auto-load safe-path.
1548 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1549 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1550
15512012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1552
1553 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1554 of LEN.
1555
15562012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1557
1558 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1559 ELTLEN and use TYPE_LENGTH directly.
1560 (m2_val_print): Likewise.
1561 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1562 variable LEN and use TYPE_LENGTH directly.
1563 (m68k_svr4_store_return_value): Likewise.
1564 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1565 ARGLEN and use TYPE_LENGTH directly.
1566 (mips_o64_push_dummy_call): Likewise.
1567 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1568 variable LENGTH and use TYPE_LENGTH directly.
1569 (s390_function_arg_float): Likewise.
1570 (s390_function_arg_integer): Likewise.
1571 (s390_push_dummy_call): Likewise.
1572 (s390_return_value_convention): Likewise.
1573 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1574 TYPE_LENGTH directly.
1575
15762012-09-17 Yao Qi <yao@codesourcery.com>
1577
1578 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1579 Update comment to add_setshow_integer_cmd.
1580 * cli/cli-setshow.c (do_set_command): Handle case
1581 'var_zuinteger_unlimited'.
1582 (do_show_command): Likewise.
1583 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1584 for command 'remotetimeout'.
1585 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1586 to var_integer.
1587 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1588 for command 'set listsize'.
1589
15902012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1591
1592 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1593 variable LEN.
1594
15952012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 PR 14119
1598 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1599 (frame_pop): Drop also TAILCALL_FRAME frames.
1600 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1601
16022012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1603 Pedro Alves <palves@redhat.com>
1604
1605 PR 14548
1606 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1607 function start if we are already at function start. Both for
1608 reverse-next and for reverse-step into function without line number
1609 info.
1610
16112012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1612
1613 Code cleanup - rename 'inline' depth to 'artificial' depth.
1614 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1615 frame_id_artificial_p, extend the comment.
1616 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1617 * frame.c (fprint_frame_id): Rename at a user, change debug output
1618 text to "artificial=".
1619 (skip_inlined_frames): Rename to ...
1620 (skip_artificial_frames): ... here. Extend the comment.
1621 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1622 (frame_id_inlined_p): Rename to ...
1623 (frame_id_artificial_p): ... here. Rename at a user.
1624 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1625 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1626 at a user.
1627 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1628 Extend the comment.
1629 (frame_id_inlined_p): Rename to ...
1630 (frame_id_artificial_p): ... here.
1631 * inline-frame.c (inline_frame_this_id): Rename at a user.
1632
16332012-09-14 Andrew Burgess <aburgess@broadcom.com>
1634
1635 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1636 vector variables using vector_size syntax rather than array
1637 syntax.
1638
16392012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1640
1641 * valarith.c (value_concat): Replace unsafe ALLOCA with
1642 XMALLOC/XFREE.
1643
16442012-09-14 Pedro Alves <palves@redhat.com>
1645
1646 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1647
16482012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1649
1650 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1651 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1652 data-directory as appropriate.
1653
16542012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1655
1656 * printcmd.c (ui_printf): Eliminate single-use variable
1657 PARAM_LEN.
1658
16592012-09-14 Yao Qi <yao@codesourcery.com>
1660 Pedro Alves <palves@redhat.com>
1661
1662 * valops.c (value_assign): Move observer_notify_target_changed
1663 below to replace reinit_frame_cache.
1664
16652012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1666
1667 Refactor Python "gdb" module into a proper Python package, by
1668 introducing a new "_gdb" module for code implemented in C, and
1669 using reload/__import__ instead of exec.
1670 * python/lib/gdb/__init__.py: Import * from _gdb.
1671 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1672 prompt_hook, sys.argv): Moved from finish_python_initialization.
1673 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1674 (packages, auto_load_packages): New list and function replacing
1675 module_dict and auto-loading code, using __file__ instead of
1676 gdb.PYTHONDIR and reload/__import__ instead of exec.
1677 (GdbSetPythonDirectory): Replacing function of the same name
1678 from finish_python_initialization, using reload/__import__ instead
1679 of exec, as well as call auto_load_packages.
1680 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1681 gdb_python_module and not gdb_module.
1682 * python/python-internal.h (gdb_python_module): Declare.
1683 * python/python.c (gdb_python_module): New global.
1684 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1685 (_initialize_python): Rename gdb module to _gdb.
1686 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1687 (finish_python_initialization): Move Python code to
1688 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1689 __main__.
1690
16912012-09-13 Pedro Alves <palves@redhat.com>
1692
1693 * Makefile.in (COMMON_OBS): Add registry.o.
1694 * registry.c: New file.
1695 * registry.h (struct registry_container): Declare.
1696 (registry_data_callback): New typedef.
1697 (struct registry_data, struct registry_data_registration, struct
1698 registry_data_registry): New type.
1699 (register_data_with_cleanup, registry_alloc_data)
1700 (registry_callback_adaptor, registry_clear_data)
1701 (registry_container_free_data, registry_set_data, registry_data):
1702 Declare.
1703 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1704 the new common structures and functions.
1705 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1706 callback typedefs.
1707
17082012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1709
1710 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1711 there is an error inserting hardware breakpoints and use the
1712 error message from the target.
1713
1714 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1715 Catch this exception and print the error message contained within. Do not
1716 print the default hardware error breakpoint message in this case.
1717
17182012-09-12 Doug Evans <dje@google.com>
1719
1720 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1721 cu == NULL.
1722
17232012-09-11 Doug Evans <dje@google.com>
1724
1725 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1726 .gdb_index symbol attributes if there are none.
1727
17282012-09-11 Joel Brobecker <brobecker@adacore.com>
1729
1730 * symtab.h (struct minimal_symbol) [has_size]: New field.
1731 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1732 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1733 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1734 minimal symbols if the symbol's size is actually known.
1735 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1736 of msymbol's size field. Add comment.
1737 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1738 SET_MSYMBOL_SIZE to set the minimal symbol size.
1739
17402012-09-11 Joel Brobecker <brobecker@adacore.com>
1741
1742 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1743 minimal_symbol struct object, rather than setting some of its
1744 fields one by one.
1745
17462012-09-11 Andrew Burgess <aburgess@broadcom.com>
1747
1748 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1749 passed_a_ptr flag when displaying typedef types.
1750
17512012-09-10 Joel Brobecker <brobecker@adacore.com>
1752
1753 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1754 the optimized_out flag is preserved.
1755
17562012-09-10 Anthony Green <green@moxielogic.com>
1757
1758 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1759 prologue changes in GCC.
1760
17612012-09-10 Keith Seitz <keiths@redhat.com>
1762
1763 PR gdb/13483
1764 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1765 (BOOL_CONVERSION_BADNESS): ... this.
1766 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1767 (rank_one_type): Allow all boolean conversions
1768 permitted by the standard.
1769
17702012-09-06 Tom Tromey <tromey@redhat.com>
1771
1772 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1773 Don't decref py_objfile.
1774
17752012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1776
1777 Do not enable -lmcheck by default when Python is enabled with
1778 threading support.
1779 * configure.ac: (python_has_threads) New variable, by testing
1780 if WITH_THREAD is defined in Python.h.
1781 Move --enable-lmcheck after --with-python.
1782 Do not enable -lmcheck by default if python_has_threads=yes.
1783 Warn if --enable-lmcheck and python_has_threads=yes.
1784 * configure: Regenerate.
1785
17862012-08-31 Yao Qi <yao@codesourcery.com>
1787
1788 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1789 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1790 Update some commands.
1791 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1792 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1793 to 1.
1794
17952012-08-31 Yao Qi <yao@codesourcery.com>
1796
1797 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1798
17992012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1800
1801 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1802
18032012-08-29 Doug Evans <dje@google.com>
1804
1805 * main.c (print_gdb_help): Remove reference to
1806 --use-deprecated-index-sections.
1807
18082012-08-28 Yao Qi <yao@codesourcery.com>
1809
1810 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1811 (init_cmds): Call add_setshow_uinteger_cmd for command
1812 'max-user-call-depth'.
1813 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1814 declaration of 'max_user_call_depth'.
1815 * frame.c (backtrace_limit): Add 'unsigned'.
1816 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1817 'limit'.
1818 * remote.c (remoteaddresssize): Add 'unsigned'.
1819 (remote_address_masked): Change local var 'address_size' to
1820 'unsigned'.
1821 (_initialize_remote): Call add_setshow_uinteger_cmd for
1822 'remoteaddresssize'.
1823 * top.c (history_size): Add 'unsigned'.
1824 (show_commands): Change local variables to 'unsigned'.
1825 (set_history_size_command): Don't check history_size is negative.
1826 Adjust the condition to call unstifle_history and set history_size
1827 to UNIT_MAX.
1828
18292012-08-28 Pedro Alves <palves@redhat.com>
1830
1831 PR gdb/14428
1832
1833 * infcmd.c (default_print_one_register_info): New, factored out
1834 from default_print_registers_info.
1835 (default_print_registers_info): Use it. Mark value unavailable if
1836 necessary.
1837 (registers_info): Print user registers with
1838 default_print_one_register_info.
1839
18402010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1841
1842 PR tui/14486
1843 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1844 is not NULL before referencing it.
1845
18462012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1847
1848 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1849 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1850 original PC for it.
1851
18522012-08-27 Eli Zaretskii <eliz@gnu.org>
1853 Jan Kratochvil <jan.kratochvil@redhat.com>
1854
1855 * auto-load.c (auto_load_objfile_script): Rename to ...
1856 (auto_load_objfile_script_1): ... here, change variable realname to
1857 parameter realname, document it, add return value, add variable retval.
1858 (auto_load_objfile_script): New function.
1859
18602012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1861
1862 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1863 followed by a whitespace.
1864
18652012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1866
1867 PR gdb/14494.
1868 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1869 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1870 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1871 here.
1872
18732012-08-27 Wei-cheng Wang <cole945@gmail.com>
1874
1875 * memattr.c (create_mem_region): Fix memory region overlapping
1876 checking.
1877
18782012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1879
1880 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1881 with xmalloc/cleanup.
1882 * mt-tdep.c (mt_push_dummy_call): Likewise.
1883 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1884 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1885
18862012-08-24 Yao Qi <yao@codesourcery.com>
1887
1888 * jv-exp.y (push_expression_name): Add "." at the end of error
1889 message.
1890
18912012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1892
1893 Document how to return from "python-interactive" to GDB.
1894 * python/python.c (_initialize_python): Update documentation.
1895
18962012-08-23 Pedro Alves <palves@redhat.com>
1897
1898 * infrun.c (_initialize_infrun) <handle command help text>:
1899 Mention that multiple signals are supported.
1900
19012012-08-23 Pedro Alves <palves@redhat.com>
1902
1903 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1904 string.
1905
19062012-08-23 Yao Qi <yao@codesourcery.com>
1907
1908 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1909 (tfind_1): Don't call registers_changed, set_traceframe_num,
1910 and clear_traceframe_info.
1911 Call set_current_traceframe.
1912 (set_current_traceframe): call set_traceframe_num.
1913
19142012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1915
1916 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1917 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1918
19192012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1920
1921 Enable readline in Python in a GDB-specific way and block the
1922 standard Python readline module to prevent conflicts with GDB.
1923 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1924 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1925 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1926 * python/py-gdb-readline.c: New file.
1927 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1928 prototype.
1929 * python/python.c (_initialize_python): Call
1930 gdbpy_initialize_gdb_readline.
1931
19322012-08-22 Keith Seitz <keiths@redhat.com>
1933
1934 * defs.h: Include build-gnulib/config.h
1935
19362012-08-22 Joseph Myers <joseph@codesourcery.com>
1937
1938 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1939 and blx pc.
1940
19412012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1942
1943 Add a new "python-interactive" command that starts a standard
1944 Python interactive prompt with "pi" as alias, and add "py" as
1945 an alias to "python".
1946 * NEWS: Mention the new commands.
1947 * python/python.c (eval_python_command): New function.
1948 (python_interactive_command): For "python-interactive" with
1949 arguments, call eval_python_command. For "python-interactive"
1950 without arguments, call PyRun_InteractiveLoop.
1951 (_initialize_python): Add "python-interactive" command with
1952 "pi" as alias, and add "py" as an alias to "python".
1953
19542012-08-22 Tom Tromey <tromey@redhat.com>
1955
1956 * defs.h (quit_flag): Don't declare.
1957 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1958 (QUIT): Use new functions.
1959 * event-top.c (command_handler): Use clear_quit_flag.
1960 (handle_sigint): Use set_quit_flag.
1961 (async_request_quit): Use check_quit_flag. Don't check
1962 immediate_quit.
1963 * exceptions.c (throw_exception): Use clear_quit_flag.
1964 * main.c (captured_main): Use clear_quit_flag.
1965 * python/python.c (clear_quit_flag, set_quit_flag)
1966 (check_quit_flag): New functions.
1967 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1968 clear_quit_flag.
1969 * remote.c (remote_wait_as): Use check_quit_flag,
1970 clear_quit_flag.
1971 (remote_start_remote): Call QUIT.
1972 * symfile.c (load_progress): Use check_quit_flag.
1973 * top.c (command_loop): Use clear_quit_flag.
1974 (command_line_input): Call QUIT.
1975 * utils.c (quit_flag): Conditionally define.
1976 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1977 functions.
1978 (prompt_for_continue): Call QUIT. Use quit, not
1979 async_request_quit.
1980 * remote-mips.c (mips_expect_timeout): Call QUIT.
1981 * monitor.c (monitor_expect): Call QUIT.
1982
19832012-08-22 Tom Tromey <tromey@redhat.com>
1984
1985 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1986 (async_init_signals): Update.
1987 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1988 (SIGWINCH_HANDLER_BODY): Remove.
1989
19902012-08-22 Tom Tromey <tromey@redhat.com>
1991
1992 * jit.c (jit_object_close_impl): Don't malloc the objfile
1993 name.
1994 * objfiles.c (allocate_objfile): Don't malloc the objfile
1995 name.
1996 (free_objfile): Don't free the objfile name.
1997 * objfiles.h (struct objfile) <name>: Update comment.
1998 * symfile.c (reread_symbols): Fix reference counting. Don't
1999 malloc objfile name.
2000
20012012-08-22 Tom Tromey <tromey@redhat.com>
2002
2003 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2004 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2005 (symfile_bfd_open): Likewise.
2006 (generic_load): Likewise.
2007 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2008 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2009 gdb_bfd_open.
2010 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2011 Use gdb_bfd_open.
2012 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2013 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2014 (pmon_load_fast): Likewise.
2015 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2016 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2017 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2018 (macho_check_dsym): Likewise.
2019 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2020 (m32r_upload_command): Likewise.
2021 * gdb_bfd.h (gdb_bfd_cache): Declare.
2022 * gdb_bfd.c (struct gdb_bfd_data): New.
2023 (gdb_bfd_cache): New global.
2024 (struct gdb_bfd_cache_search): New.
2025 (hash_bfd): New function.
2026 (eq_bfd): Likewise.
2027 (gdb_bfd_open): Likewise.
2028 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2029 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2030 gdb_bfd_data.
2031 * exec.c (exec_file_attach): Use gdb_bfd_open.
2032 * dsrec.c (load_srec): Use gdb_bfd_open.
2033
20342012-08-22 Tom Tromey <tromey@redhat.com>
2035
2036 * dwarf2read.c (macro_start_file): Update.
2037 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2038 (free_objfile_per_bfd_storage): Destroy macro_cache.
2039 (allocate_objfile, free_objfile): Update.
2040 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2041 New field.
2042 (struct objfile) <macro_cache>: Remove.
2043 * symfile.c (reread_symbols): Update.
2044 * symmisc.c (print_symbol_bcache_statistics): Update.
2045 (print_objfile_statistics): Update.
2046
20472012-08-22 Tom Tromey <tromey@redhat.com>
2048
2049 * elfread.c (elf_symtab_read): Update.
2050 * objfiles.c (objfiles_bfd_data): New global.
2051 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2052 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2053 (allocate_objfile, free_objfile): Update.
2054 (_initialize_objfiles): Initialize objfiles_bfd_data.
2055 * objfiles.h (struct objfile_per_bfd_storage): New.
2056 (struct objfile) <per_bfd>: New field.
2057 <filename_cache>: Remove.
2058 (set_objfile_per_bfd): Declare.
2059 * symfile.c (reread_symbols): Update. Call
2060 set_objfile_per_bfd.
2061 (allocate_symtab): Update.
2062 * symmisc.c (print_symbol_bcache_statistics): Update.
2063 (print_objfile_statistics): Print the size of the BFD obstack.
2064
20652012-08-22 Tom Tromey <tromey@redhat.com>
2066
2067 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2068 * gdb_bfd.c: Use DEFINE_REGISTRY.
2069 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2070 (gdb_bfd_ref): Call bfd_alloc_data.
2071 (gdb_bfd_unref): Call bfd_free_data.
2072
20732012-08-22 Tom Tromey <tromey@redhat.com>
2074
2075 * registry.h (struct registry_fields): New.
2076 (REGISTRY_FIELDS): Redefine.
2077 (REGISTRY_ACCESS_FIELD): New macro.
2078 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2079 functions.
2080
20812012-08-22 Tom Tromey <tromey@redhat.com>
2082
2083 * auto-load.c (_initialize_auto_load): Update.
2084 * solib-svr4.c (_initialize_svr4_solib): Update
2085 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2086 * solib-darwin.c (_initialize_darwin_solib): Update.
2087 * registry.h: New file.
2088 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2089 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2090 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2091 (register_program_space_data_with_cleanup)
2092 (register_program_space_data, program_space_alloc_data)
2093 (clear_program_space_data, set_program_space_data)
2094 (program_space_data): Don't declare.
2095 * progspace.c: Use DEFINE_REGISTRY.
2096 (struct program_space_data, struct
2097 program_space_data_registration, struct
2098 program_space_data_registry, program_space_data_registry)
2099 (register_program_space_data_with_cleanup)
2100 (register_program_space_data, program_space_alloc_data)
2101 (program_space_free_data, clear_program_space_data)
2102 (set_program_space_data, program_space_data): Remove.
2103 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2104 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2105 (register_objfile_data_with_cleanup, register_objfile_data)
2106 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2107 declare.
2108 * objfiles.c: Use DEFINE_REGISTRY.
2109 (struct objfile_data, struct objfile_data_registration, struct
2110 objfile_data_registry, objfile_data_registry)
2111 (register_objfile_data_with_cleanup, register_objfile_data)
2112 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2113 (set_objfile_data, objfile_data): Remove.
2114 (_initialize_objfiles): Update.
2115 * jit.c (_initialize_jit): Update.
2116 * inflow.c (_initialize_inflow): Update.
2117 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2118 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2119 (register_inferior_data_with_cleanup, register_inferior_data)
2120 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2121 declare.
2122 * inferior.c: Use DEFINE_REGISTRY.
2123 (struct inferior_data, struct inferior_data_registration, struct
2124 inferior_data_registry, inferior_data_registry)
2125 (register_inferior_data_with_cleanup, register_inferior_data)
2126 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2127 (set_inferior_data, inferior_data): Remove.
2128 * auxv.c (_initialize_auxv): Update.
2129 * ada-lang.c (_initialize_ada_language): Update.
2130 * breakpoint.c (_initialize_breakpoint): Update.
2131 * i386-nat.c (i386_use_watchpoints): Update.
2132
21332012-08-22 Tom Tromey <tromey@redhat.com>
2134
2135 * exec.c (exec_close, exec_file_attach): Update.
2136 (add_to_section_table): Initialize 'key' field.
2137 (add_target_sections, remove_target_sections): Add 'key' argument.
2138 * exec.h (add_target_sections, remove_target_sections): Add
2139 'key' argument.
2140 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2141 (reload_shared_libraries_1): Update.
2142 * target.h (struct target_section) <key>: New field.
2143
21442012-08-22 Tom Tromey <tromey@redhat.com>
2145
2146 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2147
21482012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2149
2150 * symfile.c (allocate_symtab): Use host_address_to_string
2151 function instead of cast of pointer to long which is not
2152 compatible with x86_64-w64-mingw32 build.
2153
21542012-08-19 Andrew Pinski <apinski@cavium.com>
2155
2156 * mips-tdep.c (is_octeon): New function.
2157 (is_octeon_bbit_op): New function.
2158 (mips32_next_pc): Handle Octeon's bbit instructions.
2159 (mips32_instruction_has_delay_slot): Likewise.
2160
21612012-08-19 Andrew Pinski <apinski@cavium.com>
2162
2163 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2164 before the function.
2165
21662012-08-19 Andrew Pinski <apinski@cavium.com>
2167
2168 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2169
21702012-08-19 Keith Seitz <keiths@redhat.com>
2171
2172 PR c++/14365
2173 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2174 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2175
21762012-08-18 Eli Zaretskii <eliz@gnu.org>
2177
2178 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2179 The typo broke "make TAGS".
2180
21812012-08-17 Joel Brobecker <brobecker@adacore.com>
2182
2183 GDB 7.5 released.
2184
21852012-08-17 Keith Seitz <keiths@redhat.com>
2186
2187 PR c++/13356
2188 * gdbtypes.c (strict_type_checking): New variable.
2189 (show_strict_type_checking): New function.
2190 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2191 if strict type checking is disabled.
2192 (_initialize_gdbtypes): Add "check type" subcommand.
2193 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2194
21952012-08-17 Keith Seitz <keiths@redhat.com>
2196
2197 * language.h (type_mode): Remove.
2198 (type_check): Remove.
2199 (struct language_defn): Remove la_type_check.
2200 (STRICT_TYPE): Remove unused macro.
2201 (type_error): Remove.
2202 * language.c (set_type_range_case): Renamed to ...
2203 (set_range_case): ... this. Update all callers.
2204 Remove type_mode/type_check.
2205 (type_mode): Remove.
2206 (type_check): Remove.
2207 (show_type_command): Remove.
2208 (set_type_command): Remove.
2209 (language_info): Remove type checking output.
2210 (type_error): Remove unused function.
2211 (range_error): Update comment.
2212 (unknown_language_defn): Remove la_type_check.
2213 (auto_language_defn): Likewise.
2214 (local_language_defn): Likewise.
2215 (_initialize_language): Remove "check type" subcommand.
2216 * ada-lang.c (ada_language_defn): Remove la_type_check.
2217 * c-lang.c (c_language_defn): Likewise.
2218 (cplus_language_defn): Likewise.
2219 (asm_language_defn): Likewise.
2220 (minimal_language_defn): Likewise.
2221 * d-lang.c (d_language_defn): Likewise.
2222 * f-lang.c (f_language_defn): Likewise.
2223 * go-lang.c (go_language_defn): Likewise.
2224 * jv-lang.c (java_language_defn): Likewise.
2225 * m2-lang.c (m2_language_defn): Likewise.
2226 * objc-lang.c (objc_language_defn): Likewise.
2227 * opencl-lang.c (opencl_language_defn): Likewise.
2228 * p-lang.c (pascal_language_defn): Likewise.
2229
22302012-08-16 Mike Frysinger <vapier@gentoo.org>
2231
2232 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2233
22342012-08-16 Joel Brobecker <brobecker@adacore.com>
2235
2236 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2237 New function.
2238 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2239 using the regache. Use ia64_hpux_get_register_from_save_state_t
2240 to access the bsp and bspstore registers if not.
2241
22422012-08-16 Joel Brobecker <brobecker@adacore.com>
2243
2244 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2245 * breakpoint.c (detach_breakpoints): Change pid parameter into
2246 a ptid. Adjust code accordingly.
2247 * infrun.c (handle_inferior_event): Delete variable child_pid.
2248 Update call to detach_breakpoints to pass the child ptid for
2249 fork events.
2250 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2251 assert that inferior_ptid's lwp is zero.
2252 (linux_handle_extended_wait): Update call to detach_breakpoints.
2253 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2254 detach_breakpoints.
2255
22562012-08-16 Joel Brobecker <brobecker@adacore.com>
2257
2258 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2259 parent, only call detach_breakpoints if tts.tts_event ==
2260 TTEVT_VFORK.
2261
22622012-08-16 Joel Brobecker <brobecker@adacore.com>
2263
2264 * dwarf2-frame.c (dwarf2_frame_cache): Use
2265 get_frame_address_in_block instead of get_frame_pc as
2266 the bound for executing the frame's FDE.
2267
22682012-08-16 Yao Qi <yao@codesourcery.com>
2269
2270 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2271 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2272 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2273 (c_type_print_varspec_suffix): Likewise.
2274 * eval.c (evaluate_subexp_standard): Likewise.
2275 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2276 (f_type_print_varspec_suffix): Likewise.
2277 * gdbtypes.c (is_scalar_type): Likewise.
2278 (recursive_dump_type): Likewise.
2279 * infcall.c (value_arg_coerce): Likewise.
2280 * m2-valprint.c (m2_val_print): Likewise.
2281 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2282 (pascal_type_print_varspec_suffix): Likewise.
2283 (pascal_type_print_base): Likewise.
2284 * p-valprint.c (pascal_val_print): Likewise.
2285 (pascal_val_print): Likewise.
2286 * valops.c (value_slice): Likewise.
2287 * valprint.c (scalar_type_p): Likewise.
2288 * valarith.c (value_bitstring_subscript): Remove.
2289 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2290 Remove comment on TYPE_CODE_BITSTRING.
2291
2292 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2293 TYPE_CODE_BITSTRING.
2294
2295 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2296 slot 0.
2297
22982012-08-16 Yao Qi <yao@codesourcery.com>
2299
2300 * tracepoint.c (trace_find_none_command): Remove.
2301 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2302
23032012-08-16 Yao Qi <yao@codesourcery.com>
2304
2305 * remote.c (handle_notification): Remove parameter 'length'.
2306 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2307
23082012-08-15 Keith Seitz <keiths@redhat.com>
2309
2310 * gdbtypes.c (opaque_type_resolution): Make static.
2311 Add missing comment.
2312 (overload_debug): Add missing comment.
2313 (show_opaque_type_resolution): Likewise.
2314 (show_overload_debug): Likewise.
2315 (print_bit_vector): Remove unnecessary forward declaration.
2316 (print_arg_types): Likewise.
2317 (dump_fn_fieldlists): Likewise.
2318 (print_cplus_stuff): Likewise.
2319
23202012-08-15 Tom Tromey <tromey@redhat.com>
2321
2322 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2323 (gdb_bfd_ref): Initialize new field.
2324 (gdb_bfd_unref): Unref the archive BFD.
2325 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2326 parent archive.
2327
23282012-08-15 Tom Tromey <tromey@redhat.com>
2329
2330 PR python/14387:
2331 * python/py-bpevent.c (create_breakpoint_event_object): Update
2332 comment.
2333 * python/py-event.c (evpy_add_attribute): Update comment.
2334 * python/py-exitedevent.c (create_exited_event_object): Fix
2335 reference counting and error handling.
2336 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2337 Fix reference counting.
2338 * python/py-signalevent.c (create_signal_event_object): Fix
2339 reference counting and error handling.
2340 * python/py-stopevent.c (emit_stop_event): Fix reference
2341 counting.
2342 * python/py-threadevent.c (get_event_thread): Return a
2343 borrowed reference.
2344 * python/py-type.c (convert_field): Fix reference counting.
2345
23462012-08-15 Tom Tromey <tromey@redhat.com>
2347
2348 * dwarf2read.c (dwarf_decode_macro_bytes)
2349 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2350 as hash key.
2351
23522012-08-14 Mike Frysinger <vapier@gentoo.org>
2353
2354 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2355 stepi, nexti, finish, next, step, jump, and continue commands.
2356 * infrun.c (_initialize_infrun): Update help text for the handle
2357 command.
2358
23592012-08-14 Doug Evans <dje@google.com>
2360
2361 * gdbtypes.c (struct extra): Delete, unused.
2362
2363 * gdbtypes.c: Whitespace cleanup.
2364 (address_space_name_to_int): Remove "extern" from definition.
2365 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2366
2367 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2368 TYPE_POINTER_TYPE (type).
2369
23702012-08-14 Gary Benson <gbenson@redhat.com>
2371
2372 * solib-svr4.c (svr4_free_library_list): Use free_so.
2373
23742012-08-13 Mike Frysinger <vapier@gentoo.org>
2375
2376 * .gitignore: Add go-exp.c.
2377
23782012-08-13 Doug Evans <dje@google.com>
2379
2380 * value.c (show_convenience): Tweak comment.
2381 (_initialize_values): Mention convenience functions in the help text
2382 for "show convenience".
2383
23842012-08-13 Yao Qi <yao@codesourcery.com>
2385
2386 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2387 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2388 TERNOP_SLICE_COUNT.
2389 * eval.c (evaluate_subexp_standard): Likewise.
2390 * expprint.c (print_subexp_standard): Likewise.
2391 (dump_subexp_body_standard): Likewise.
2392 * parse.c (operator_length_standard): Likewise.
2393
23942012-08-13 Yao Qi <yao@codesourcery.com>
2395
2396 * std-operator.def: Remove OP_BITSTRING.
2397 * breakpoint.c (watchpoint_exp_is_const): Update.
2398 * eval.c (evaluate_subexp_standard): Remove handling to
2399 OP_BITSTRING.
2400 * expprint.c (print_subexp_standard): Likewise.
2401 (dump_subexp_body_standard): Likewise.
2402 * parse.c (operator_length_standard): Likewise.
2403 * valops.c (value_bitstring): Remove.
2404 * value.h: Remove the declaration of 'value_bitstring'.
2405
24062012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2407
2408 * linespec.c (find_methods): Remove unused variables `i1' and
2409 `name_len'.
2410 (decode_line_full): Likewise for `arg_start'.
2411
24122012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2413
2414 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2415 (zlib_decompress_section): Likewise for `section_data'.
2416 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2417
24182012-08-10 Doug Evans <dje@google.com>
2419
2420 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2421 * NEWS: Document them.
2422 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2423 function/strfns.py.
2424 * python/py-type.c (typy_array_1): New function.
2425 (typy_array): Call it.
2426 (typy_vector): New function.
2427 (type_object_methods): Add "vector".
2428 * python/lib/gdb/function/__init__.py: New file.
2429 * python/lib/gdb/function/strfns.py: New file.
2430
24312012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2432
2433 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2434 for TYPE_FIELD_BITPOS.
2435 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2436
24372012-08-10 Mike Frysinger <vapier@gentoo.org>
2438
2439 PR cli/10436:
2440 * common/vec.h (VEC_merge): Define.
2441 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2442 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2443 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2444 * completer.c: Include gdb_signals.h.
2445 (signal_completer): Define.
2446 * completer.h (signal_completer): Add prototype.
2447 * infcmd.c (_initialize_infcmd): Assign the command
2448 completer for "signal" to handle_completer.
2449 * infrun.c: Include completer.h.
2450 (handle_completer): Define.
2451 (_initialize_infrun): Declare a new local variable c. Store the
2452 result of add_com("handle") to it. Assign the command
2453 completer for "handle" to handle_completer.
2454
24552012-08-09 Yao Qi <yao@codesourcery.com>
2456
2457 * cli/cli-decode.c (set_cmd_prefix): New.
2458 (lookup_cmd_for_prefixlist): New.
2459 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2460 of each cmd_list_element in *prefixlist.
2461 (add_setshow_cmd_full): set_cmd_prefix.
2462 (add_alias_cmd): Likewise.
2463 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2464 Declare 'auto_boolean_enums'.
2465 * cli/cli-setshow.c: Include "observer.h".
2466 (notify_command_param_changed_p): New.
2467 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2468 Remove 'static'.
2469 (do_setshow_command): Split it to ...
2470 (do_set_command, do_show_command): ... them. New.
2471 (do_set_command): Call observer_notify_command_param_changed if
2472 notify_command_param_changed_p returns true.
2473 (cmd_show_list): Caller update.
2474 * auto-load.c (set_auto_load_cmd): Likewise.
2475 * remote.c (show_remote_cmd): Likewise.
2476 * cli/cli-setshow.h: Update declarations.
2477 * top.c (execute_command): Call do_set_command and do_show_command.
2478
2479 * NEWS: Mention new MI notification.
2480 * mi/mi-interp.c: Declare mi_command_param_changed.
2481 (mi_interpreter_init): Attach mi_command_param_changed to
2482 observer command_param_changed.
2483 (mi_command_param_changed): New.
2484 Remove mi_suppress_breakpoint_notifications.
2485 Define global variable mi_suppress_notification.
2486 (mi_breakpoint_created): Update.
2487 (mi_breakpoint_deleted): Likewise.
2488 (mi_breakpoint_modified): Likewise.
2489 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2490 'gdb-set' and set mi_suppress_notification.
2491 * mi/mi-main.h: (mi_suppress_notification): New struct.
2492
24932012-08-09 Andreas Tobler <andreast@fgznet.ch>
2494 Jan Kratochvil <jan.kratochvil@redhat.com>
2495
2496 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2497
24982012-08-09 Yao Qi <yao@codesourcery.com>
2499
2500 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2501 (skiplist): Move it to skip.c.
2502 (init_cmd_lists): Remove code setting enablebreaklist and
2503 skiplist to NULL.
2504 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2505 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2506 skiplist.
2507 * gdbcmd.h: Likewise.
2508 * skip.c (_initialize_step_skip): Move 'skiplist' from
2509 cli/cli-cmds.c.
2510
25112012-08-09 Yao Qi <yao@codesourcery.com>
2512
2513 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2514 * gnu-nat.c, symfile.c: Likewise.
2515
25162012-08-08 Aaron Gamble <agamble@google.com>
2517
2518 * utils.c (prompt_for_continue_wait_time): New static global.
2519 (make_command_stats_cleanup): Initialize it.
2520 (report_command_stats): Subtract time waiting for user.
2521 (prompt_for_continue): Track time waiting for user.
2522 (defaulted_query): Track time waiting for user.
2523
25242012-08-08 Doug Evans <dje@google.com>
2525
2526 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2527 UNOP_MEMVAL_TYPE.
2528 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2529 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2530 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2531 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2532 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2533 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2534 elt.
2535 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2536 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2537 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2538 (dump_prefix_expression): Handle OP_TYPE.
2539
25402012-08-08 Keith Seitz <keiths@redhat.com>
2541
2542 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2543 addr_start.
2544
25452012-08-08 Doug Evans <dje@google.com>
2546
2547 * linux-thread-db.c: #include "gdb_vecs.h".
2548 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2549 updated.
2550 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2551 (thread_db_load_search): Use a vector to iterate over path elements.
2552 Handle text appearing after "$pdir".
2553
2554 * gdb_string.h: Moved to ...
2555 * common/gdb_string.h: ... here.
2556 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2557 gdb_string.h and gdb_assert.h.
2558
25592012-08-08 Yao Qi <yao@codesourcery.com>
2560
2561 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2562 (tic6x_value_to_register): Likewise.
2563 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2564 and set_gdbarch_value_to_register.
2565
25662012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2567 Jean-Marc Saffroy <saffroy@gmail.com>
2568
2569 PR 11804
2570 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2571 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2572 * gcore.c (gcore_create_callback): New function comment. Add modified
2573 parameter. Only write modified regions. Set SEC_READONLY exactly
2574 according to MODIFIED.
2575 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2576 the passed modified value to FUNC.
2577 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2578 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2579 first. New variables modified and has_anonymous. Parse the lines of
2580 smaps file. Add the passed MODIFIED value to FUNC.
2581 * procfs.c (find_memory_regions_callback): Add the passed modified
2582 value.
2583
25842012-08-06 Tom Tromey <tromey@redhat.com>
2585
2586 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2587 (dwarf2_frame_cache): Use it.
2588 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2589 cache initialization constraint.
2590
25912012-08-06 Tom Tromey <tromey@redhat.com>
2592
2593 PR python/14386:
2594 * varobj.c (update_dynamic_varobj_children): Don't call
2595 PyIter_Check.
2596
25972012-08-06 Tom Tromey <tromey@redhat.com>
2598
2599 PR cli/14392:
2600 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2601
26022012-08-06 Nathaniel Flath <flat0103@gmail.com>
2603
2604 * NEWS: New entry for 'cd' default parameters.
2605 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2606
26072012-08-03 Tom Tromey <tromey@redhat.com>
2608
2609 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2610 return.
2611
26122012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2613
2614 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2615 to attempting lseek/write.
2616 (inf_child_fileio_pread): Likewise for pread.
2617
26182012-08-02 Yao Qi <yao@codesourcery.com>
2619
2620 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2621 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2622 add_setshow_zinteger_cmd.
2623 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2624 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2625 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2626 instead of add_setshow_zinteger_cmd.
2627 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2628 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2629 instead of add_setshow_zinteger_cmd.
2630 * frame.c (frame_debug): Add 'unsigned'.
2631 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2632 add_setshow_zinteger_cmd.
2633 * frame.h: Update the declaration of 'frame_debug'.
2634 * gdbtypes.c (overload_debug): Add 'unsigned'.
2635 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2636 add_setshow_zinteger_cmd.
2637 * inferior.h: Update declaration of 'debug_infrun'.
2638 * infrun.c (debug_infrun): Add 'unsigned'.
2639 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2640 add_setshow_zinteger_cmd.
2641 * jit.c (jit_debug): Add 'unsigned'.
2642 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2643 add_setshow_zinteger_cmd.
2644 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2645 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2646 instead of add_setshow_zinteger_cmd.
2647 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2648 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2649 add_setshow_zinteger_cmd.
2650 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2651 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2652 instead of add_setshow_zinteger_cmd.
2653 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2654 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2655 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2656 intead of add_setshow_zinteger_cmd.
2657 * mips-tdep.c (mips_debug): Add 'unsigned'.
2658 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2659 instead of add_setshow_zinteger_cmd.
2660 * monitor.c (monitor_debug): Add 'unsigned'.
2661 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2662 add_setshow_zinteger_cmd.
2663 * observer.c (observer_debug): Add 'unsigned'.
2664 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2665 add_setshow_zinteger_cmd.
2666 * parse.c (expressiondebug): Add 'unsigned'.
2667 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2668 add_setshow_zinteger_cmd.
2669 * record.c (record_debug): Add 'unsigned'.
2670 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2671 add_setshow_zinteger_cmd.
2672 * record.h: Update the declaration of 'record_debug'.
2673 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2674 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2675 add_setshow_zinteger_cmd.
2676 * serial.c (global_serial_debug_p): Add 'unsigned'.
2677 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2678 add_setshow_zinteger_cmd.
2679 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2680 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2681 add_setshow_zinteger_cmd.
2682 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2683 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2684 add_setshow_zinteger_cmd.
2685 * target.c (targetdebug): Add 'unsigned'.
2686 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2687 add_setshow_zinteger_cmd.
2688 * valops.c (overload_debug): Add 'unsigned'.
2689 * varobj.c (varobjdebug): Add 'unsigned'.
2690 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2691 add_setshow_zinteger_cmd.
2692 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2693 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2694 instead of add_setshow_zinteger_cmd.
2695
2696 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2697 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2698 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2699 instead of add_setshow_zinteger_cmd.
2700 * gdbarch.c, gdbarch.h: Re-generated.
2701
27022012-08-02 Yao Qi <yao@codesourcery.com>
2703
2704 * nto-tdep.c: Don't include cli/cli-decode.h and
2705 cli/cli-cmds.h.
2706 (_initialize_nto_tdep): Remove.
2707 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2708 Remove field.
2709 Remove macro nto_internal_debugging.
2710
27112012-08-01 Richard Henderson <rth@redhat.com>
2712
2713 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2714 (mep-*-*) [gdb_target_obs]: Likewise.
2715
27162012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2717
2718 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2719 linux_get_siginfo_type.
2720
27212012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2724 AT_ENTRY_POINT.
2725 (call_function_by_hand) <ON_STACK>: Call write_memory with
2726 gdbarch_breakpoint_from_pc, if possible.
2727 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2728 here.
2729
27302012-07-31 Yao Qi <yao@codesourcery.com>
2731
2732 * tracepoint.c: Add 'static' for some variables.
2733
27342012-07-31 Yao Qi <yao@codesourcery.com>
2735
2736 * go32-nat.c: Declare _initialize_go32_nat.
2737 * ser-go32.c: Declare _initialize_ser_dos.
2738 * top.c (do_chdir_cleanup): Add 'static'.
2739
27402012-07-30 Keith Seitz <keiths@redhat.com>
2741
2742 * linespec.c (linespec_lex_number): A number followed
2743 by quotes is a valid number, too.
2744
27452012-07-30 Tom Tromey <tromey@redhat.com>
2746
2747 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2748
27492012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2750
2751 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2752 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2753
27542012-07-30 Andrew Burgess <aburgess@broadcom.com>
2755
2756 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2757 invalid or reevaluated to prevent prevent references to possibly
2758 delete'd type objects being left in the varobj.
2759
27602012-07-27 Tom Tromey <tromey@redhat.com>
2761 Jan Kratochvil <jan.kratochvil@redhat.com>
2762
2763 * copying.awk: Print buffer-read-only and vi ro markers.
2764 * copying.c: Rebuild.
2765 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2766 * gdbarch.c, gdbarch.h: Rebuild.
2767 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2768 buffer-read-only and vi ro markers.
2769 * features/arm-with-iwmmxt.c: Rebuild.
2770 * features/arm-with-m-fpa-layout.c: Rebuild.
2771 * features/arm-with-m-vfp-d16.c: Rebuild.
2772 * features/arm-with-m.c: Rebuild.
2773 * features/arm-with-neon.c: Rebuild.
2774 * features/arm-with-vfpv2.c: Rebuild.
2775 * features/arm-with-vfpv3.c: Rebuild.
2776 * features/i386/amd64-avx-linux.c: Rebuild.
2777 * features/i386/amd64-avx.c: Rebuild.
2778 * features/i386/amd64-linux.c: Rebuild.
2779 * features/i386/amd64.c: Rebuild.
2780 * features/i386/i386-avx-linux.c: Rebuild.
2781 * features/i386/i386-avx.c: Rebuild.
2782 * features/i386/i386-linux.c: Rebuild.
2783 * features/i386/i386-mmx-linux.c: Rebuild.
2784 * features/i386/i386-mmx.c: Rebuild.
2785 * features/i386/i386.c: Rebuild.
2786 * features/i386/x32-avx-linux.c: Rebuild.
2787 * features/i386/x32-avx.c: Rebuild.
2788 * features/i386/x32-linux.c: Rebuild.
2789 * features/i386/x32.c: Rebuild.
2790 * features/mips-dsp-linux.c: Rebuild.
2791 * features/mips-linux.c: Rebuild.
2792 * features/mips64-dsp-linux.c: Rebuild.
2793 * features/mips64-linux.c: Rebuild.
2794 * features/rs6000/powerpc-32.c: Rebuild.
2795 * features/rs6000/powerpc-32l.c: Rebuild.
2796 * features/rs6000/powerpc-403.c: Rebuild.
2797 * features/rs6000/powerpc-403gc.c: Rebuild.
2798 * features/rs6000/powerpc-405.c: Rebuild.
2799 * features/rs6000/powerpc-505.c: Rebuild.
2800 * features/rs6000/powerpc-601.c: Rebuild.
2801 * features/rs6000/powerpc-602.c: Rebuild.
2802 * features/rs6000/powerpc-603.c: Rebuild.
2803 * features/rs6000/powerpc-604.c: Rebuild.
2804 * features/rs6000/powerpc-64.c: Rebuild.
2805 * features/rs6000/powerpc-64l.c: Rebuild.
2806 * features/rs6000/powerpc-7400.c: Rebuild.
2807 * features/rs6000/powerpc-750.c: Rebuild.
2808 * features/rs6000/powerpc-860.c: Rebuild.
2809 * features/rs6000/powerpc-altivec32.c: Rebuild.
2810 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2811 * features/rs6000/powerpc-altivec64.c: Rebuild.
2812 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2813 * features/rs6000/powerpc-cell32l.c: Rebuild.
2814 * features/rs6000/powerpc-cell64l.c: Rebuild.
2815 * features/rs6000/powerpc-e500.c: Rebuild.
2816 * features/rs6000/powerpc-e500l.c: Rebuild.
2817 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2818 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2819 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2820 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2821 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2822 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2823 * features/rs6000/powerpc-vsx32.c: Rebuild.
2824 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2825 * features/rs6000/powerpc-vsx64.c: Rebuild.
2826 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2827 * features/rs6000/rs6000.c: Rebuild.
2828 * features/s390-linux32.c: Rebuild.
2829 * features/s390-linux32v1.c: Rebuild.
2830 * features/s390-linux32v2.c: Rebuild.
2831 * features/s390-linux64.c: Rebuild.
2832 * features/s390-linux64v1.c: Rebuild.
2833 * features/s390-linux64v2.c: Rebuild.
2834 * features/s390x-linux64.c: Rebuild.
2835 * features/s390x-linux64v1.c: Rebuild.
2836 * features/s390x-linux64v2.c: Rebuild.
2837 * features/tic6x-c62x-linux.c: Rebuild.
2838 * features/tic6x-c62x.c: Rebuild.
2839 * features/tic6x-c64x-linux.c: Rebuild.
2840 * features/tic6x-c64x.c: Rebuild.
2841 * features/tic6x-c64xp-linux.c: Rebuild.
2842 * features/tic6x-c64xp.c: Rebuild.
2843
28442012-07-27 Tom Tromey <tromey@redhat.com>
2845
2846 * c-exp.y (classify_name): Avoid assignment in condition.
2847
28482012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2849
2850 * amd64-windows-tdep.c: Include "frame.h".
2851 (amd64_windows_skip_trampoline_code): New function.
2852 (amd64_windows_init_abi): Add trampoline registration.
2853
28542012-07-27 Yao Qi <yao@codesourcery.com>
2855
2856 * tracepoint.c (cur_traceframe_number): Remove.
2857 (set_tfile_traceframe): Remove.
2858 (tfile_trace_find, tfile_fetch_registers): Update callers.
2859 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2860 (tfile_open, tfile_trace_find): Likewise.
2861
28622012-07-27 Yao Qi <yao@codesourcery.com>
2863
2864 * thread.c (switch_to_thread): Don't call registers_changed.
2865
28662012-07-26 Tom Tromey <tromey@redhat.com>
2867
2868 * Makefile.in (SFILES): Remove objc-exp.y.
2869 (YYFILES): Remove objc-exp.c.
2870 (YYOBJ): Remove objc-exp.o.
2871 (local-maintainer-clean): Don't mention objc-exp.c.
2872 * c-exp.y: Include objc-lang.h.
2873 (%union) <class>: New field.
2874 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2875 (exp): Clone subscript production for OBJC_LBRAC. Add various
2876 Objective C productions.
2877 (msglist, msgarglist, msgarg): New productions.
2878 (array_mod, func_mod, operator): Clone productions for
2879 OBJC_LBRAC.
2880 (parse_string_or_char): Handle '@' strings.
2881 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2882 (classify_name): Check la_name_of_this. Recognize ObjC class
2883 names.
2884 * objc-exp.y: Remove.
2885 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2886 * objc-lang.h (objc_parse, objc_error): Don't declare.
2887
28882012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2889
2890 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2891
28922012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2893
2894 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2895 and decrement.
2896
28972012-07-26 Tom Tromey <tromey@redhat.com>
2898
2899 * copying.c: Rebuild.
2900 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2901 'no_class'.
2902
29032012-07-26 Tom Tromey <tromey@redhat.com>
2904
2905 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2906 immediate_quit.
2907 (print_objfile_statistics): Likewise.
2908 (maintenance_print_symbols): Likewise.
2909 (maintenance_print_msymbols): Likewise.
2910 (maintenance_print_objfiles): Likewise.
2911 * psymtab.c (print_partial_symbols): Call QUIT.
2912 (maintenance_print_psymbols): Likewise. Don't modify
2913 immediate_quit.
2914 * copying.c (show_copying_command): Don't modify immediate_quit.
2915 (show_warranty_command): Likewise.
2916 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2917
29182012-07-26 Keith Seitz <keiths@redhat.com>
2919
2920 * linespec.c (linespec_lexer_lex_number): The input
2921 is also a valid number if the next character is a comma
2922 or colon.
2923
29242012-07-26 Joel Brobecker <brobecker@adacore.com>
2925
2926 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2927 configure options.
2928
29292012-07-26 Tristan Gingold <gingold@adacore.com>
2930
2931 * machoread.c: Include gdb_bfd.h.
2932
29332012-07-26 Tristan Gingold <gingold@adacore.com>
2934
2935 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2936 offset.
2937
29382012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2939
2940 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2941 SIZE to size_t.
2942 (dwarf2_evaluate_loc_desc): Likewise.
2943 (dwarf2_loc_desc_needs_frame): Likewise.
2944 (locexpr_describe_location_1): Likewise.
2945 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2946 size_t.
2947 (struct dwarf2_loclist_baton): Likewise.
2948 * dwarf2read.c (struct dwarf_block): Likewise.
2949 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2950 (decode_locdesc): Expand SIZE and I to size_t.
2951
29522012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2953
2954 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2955
29562012-07-25 Joel Brobecker <brobecker@adacore.com>
2957
2958 * doublest.c (convert_doublest_to_floatformat): If the exponent
2959 is too small, treat the value as zero. If the exponent is too
2960 large, treat the value as infinity.
2961
29622012-07-25 Joel Brobecker <brobecker@adacore.com>
2963
2964 * configure.ac: Add --enable-lmcheck configure option.
2965 * configure: Regenerate.
2966
29672012-07-25 Tom Tromey <tromey@redhat.com>
2968
2969 * NEWS: Mention maint info bfds.
2970 * gdb_bfd.c (all_bfds): New global.
2971 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2972 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2973 New functions.
2974
29752012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2976
2977 * configure.tgt: Add v850*-*-rtems*.
2978
29792012-07-25 Tom Tromey <tromey@redhat.com>
2980
2981 * macrotab.c (macro_bcache_str): Remove cast.
2982
29832012-07-25 Hui Zhu <hui_zhu@mentor.com>
2984
2985 * linespec.c (linespec_lexer_lex_number): Update comments,
2986 change the return and add check to make sure the input is
2987 the decimal numbers.
2988 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2989 false, call linespec_lexer_lex_string.
2990
29912012-07-24 Tom Tromey <tromey@redhat.com>
2992
2993 * symfile.c (symbol_file_add): Don't open BFD twice.
2994
29952012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2996
2997 * breakpoint.c (create_breakpoint): Store condition for pending
2998 breakpoints.
2999
30002012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3001
3002 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3003 (m68k_return_value): Handle complex types like structures.
3004 (m68k_svr4_return_value): Likewise.
3005
30062012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3007
3008 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3009 parameters to bfd_get_section_name.
3010
30112012-07-24 Yao Qi <yao@codesourcery.com>
3012
3013 * cli/cli-setshow.c: Handle case 'var_uinteger'
3014 and 'var_zuninteger' together. Handle case 'var_integer' and
3015 'var_zinteger' together.
3016
30172012-07-23 Keith Seitz <keiths@redhat.com>
3018
3019 * linespec.c (convert_linespec_to_sal): Don't add
3020 any symbols to the result vector if symbol_to_sal
3021 returns zero.
3022
30232012-07-23 Keith Seitz <keiths@redhat.com>
3024
3025 * linespec.c (decode_objc): Record the function name
3026 in the linespec.
3027
30282012-07-23 Tom Tromey <tromey@redhat.com>
3029
3030 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3031 counting.
3032 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3033 (map_vmap): Acquire a reference to the BFD.
3034
30352012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3036
3037 * p-valprint.c (pascal_object_print_value): Replace potentially
3038 unsafe alloca with xmalloc/xfree.
3039 * valops.c (search_struct_method): Likewise.
3040
30412012-07-23 Tom Tromey <tromey@redhat.com>
3042
3043 * solib-svr4.c (enable_break): Update.
3044 * bfd-target.h (target_bfd_reopen): Update documentation.
3045
30462012-07-23 Tom Tromey <tromey@redhat.com>
3047
3048 * symfile.c (separate_debug_file_exists): Update.
3049 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3050 (reread_symbols): Update.
3051 * elfread.c (build_id_verify): Update.
3052 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3053 bfd_open_maybe_remote.
3054
30552012-07-23 Tom Tromey <tromey@redhat.com>
3056
3057 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3058
30592012-07-23 Tom Tromey <tromey@redhat.com>
3060
3061 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3062 and 'abfd'.
3063 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3064 and 'abfd'.
3065 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3066 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3067 'abfd'.
3068 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3069 * objfiles.c (allocate_objfile): Acquire a new reference.
3070 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3071 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3072 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3073 a cleanup for 'nbfd'.
3074 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3075 for 'nbfd'.
3076 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3077 make a cleanup for 'abfd'.
3078 (symbol_file_add): Make a BFD cleanup.
3079
30802012-07-23 Tom Tromey <tromey@redhat.com>
3081
3082 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3083 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3084 * corelow.c (core_open): Use gdb_bfd_fopen.
3085 * dsrec.c (load_srec): Use gdb_bfd_openr.
3086 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3087 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3088 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3089 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3090 (gdb_bfd_fdopenr): New functions.
3091 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3092 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3093 (gdb_bfd_fdopenr): Declare.
3094 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3095 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3096 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3097 gdb_bfd_openr_next_archived_file.
3098 (macho_check_dsym): Use gdb_bfd_openr.
3099 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3100 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3101 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3102 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3103 gdb_bfd_openr.
3104 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3105 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3106 gdb_bfd_openr_next_archived_file.
3107 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3108 Use gdb_bfd_openr.
3109 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3110 gdb_bfd_openr.
3111 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3112 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3113 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3114 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3115 (symfile_bfd_open): Use gdb_bfd_fopen.
3116 (generic_load): Use gdb_bfd_openr.
3117 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3118
31192012-07-23 Tom Tromey <tromey@redhat.com>
3120
3121 * bfd-target.c (target_bfd_reopen): Update.
3122 * cli/cli-dump.c (bfd_openr_with_cleanup)
3123 (bfd_openw_with_cleanup): Update.
3124 * corelow.c (core_open): Update.
3125 * dsrec.c (load_srec): Update.
3126 * exec.c (exec_file_attach): Update.
3127 * gcore.c (create_gcore_bfd): Update.
3128 * gdb_bfd.c (gdb_bfd_ref): Return void.
3129 (gdb_bfd_open): Update.
3130 * gdb_bfd.h (gdb_bfd_ref): Return void.
3131 Update comments.
3132 * jit.c (jit_bfd_try_read_symtab): Update.
3133 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3134 * machoread.c (macho_symfile_read_all_oso): Update.
3135 (macho_check_dsym): Update.
3136 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3137 * remote-m32r-sdi.c (m32r_load): Update.
3138 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3139 * rs6000-nat.c (add_vmap): Update.
3140 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3141 Update.
3142 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3143 * solib-spu.c (spu_bfd_open): Update.
3144 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3145 * spu-linux-nat.c (spu_bfd_open): Update.
3146 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3147 (generic_load): Update.
3148 * windows-nat.c (windows_make_so): Update.
3149
31502012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3151
3152 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3153
31542012-07-20 Jeff Kenton <jkenton@tilera.com>
3155
3156 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3157 SIGTRAMP_FRAME unwinding.
3158
31592012-07-20 Doug Evans <dje@google.com>
3160
3161 * NEWS: Document new options "set/show use-deprecated-index-sections",
3162 and delete reference to --use-deprecated-index-sections.
3163 * symfile.h (use_deprecated_index_sections): Delete.
3164 * dwarf2read.c (use_deprecated_index_sections): Make static.
3165 (read_index_from_section): Update wording of how to load
3166 deprecated index sections.
3167 (_initialize_dwarf2_read): New options
3168 "set/show use-deprecated-index-sections".
3169 * main.c (captured_main): Delete --use-deprecated-index-sections.
3170
31712012-07-20 Pedro Alves <palves@redhat.com>
3172
3173 PR threads/11692
3174 PR gdb/12203
3175
3176 * infrun.c (handle_inferior_event) <new thread>: Don't special
3177 case minus_one_ptid.
3178 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3179 * linux-thread-db.c (thread_get_info_callback): Don't return early
3180 if the thread is zombie.
3181 (thread_from_lwp): Change return type to void. Rewrite stale
3182 comment.
3183 (attach_thread): Don't return early if the thread is zombie,
3184 instead set its "dying" flag.
3185 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3186 (find_new_threads_callback): Don't return early if the thread is
3187 zombie.
3188
31892012-07-20 Pedro Alves <palves@redhat.com>
3190
3191 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3192 * target.c (target_wait): Likewise.
3193 (str_comma_list_concat_elem, do_option, target_options_to_string):
3194 New functions.
3195 * target.h (target_options_to_string): Declare.
3196
31972012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3198 Tom Tromey <tromey@redhat.com>
3199
3200 * dwarf2read.c (dwarf_decode_macros)
3201 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3202 DW_MACRO_GNU_transparent_include_alt>: New cases.
3203 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3204 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3205
32062012-07-20 Tom Tromey <tromey@redhat.com>
3207
3208 * dwarf2read.c (try_open_dwo_file): Don't call
3209 gdb_bfd_stash_filename.
3210
32112012-07-20 Pedro Alves <palves@redhat.com>
3212
3213 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3214 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3215 (i386_process_record): Tweak description comments.
3216
32172012-07-20 Pedro Alves <palves@redhat.com>
3218
3219 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3220 (i386_process_record): Use record_read_memory.
3221 * record.c (record_read_memory): New function.
3222 (record_arch_list_add_mem, record_exec_insn): Use
3223 record_read_memory.
3224 * record.h (record_read_memory): Declare.
3225
32262012-07-20 Yao Qi <yao@codesourcery.com>
3227
3228 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3229 NULL for xfree.
3230
32312012-07-19 Pedro Alves <palves@redhat.com>
3232
3233 * record.c (record_resume): Ask the target beneath to report all
3234 signals.
3235
32362012-07-19 Doug Evans <dje@google.com>
3237
3238 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3239 there's no section at address zero.
3240 (dwarf2_record_block_ranges): Ditto.
3241
32422012-07-19 Yao Qi <yao@codesourcery.com>
3243
3244 * command.h, remote.c: Fix a typo in comment.
3245
32462012-07-19 Tom Tromey <tromey@redhat.com>
3247
3248 PR exp/13206:
3249 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3250 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3251 OP_DECLTYPE>: New cases.
3252 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3253 (type_exp): Add new productions.
3254 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3255 and decltype.
3256 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3257 New case.
3258 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3259 OP_DECLTYPE>: New case.
3260 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3261 New case.
3262 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3263 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3264
32652012-07-19 Tom Tromey <tromey@redhat.com>
3266
3267 * c-exp.y (enum token_flags): New.
3268 (struct token) <cxx_only>: Remove.
3269 <flags>: New field.
3270 (tokentab3, tokentab2, ident_tokens): Update.
3271 (lex_one_token): Update. Handle FLAG_SHADOW.
3272
32732012-07-19 Tom Tromey <tromey@redhat.com>
3274
3275 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3276 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3277 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3278 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3279 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3280 type_exp production where appropriate.
3281 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3282 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3283 <UNOP_MEMVAL_TYPE>: New case.
3284 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3285 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3286 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3287 <UNOP_MEMVAL_TYPE>: New case.
3288 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3289 UNOP_REINTERPRET_CAST>: Update.
3290 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3291 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3292 UNOP_REINTERPRET_CAST>: Update.
3293 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3294 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3295 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3296 constants.
3297
32982012-07-19 Yao Qi <yao@codesourcery.com>
3299 Jan Kratochvil <jan.kratochvil@redhat.com>
3300
3301 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3302 and case 'var_optional_filename' together.
3303 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3304 instead of add_setshow_optional_filename_cmd for setshow command
3305 'args'. Set completer for 'set args'.
3306
33072012-07-18 Doug Evans <dje@google.com>
3308
3309 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3310 * common/gdb_vecs.c: New file, contents from utils.c.
3311 * common/host-defs.h: New file, contents from defs.h.
3312 * utils.h: New file, contents from defs.h.
3313 * defs.h: Move all declarations of objects defined in utils.c
3314 to utils.h (except QUIT() and related).
3315 #include "utils.h", "host-defs.h".
3316 * probe.h (probe_p): Move here from gdb_vecs.h.
3317 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3318 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3319 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3320 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3321 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3322 (COMMON_OBS): Add gdb_vecs.o.
3323 (gdb_vecs.o): New rule.
3324
33252012-07-18 Keith Seitz <keiths@redhat.com>
3326
3327 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3328 parameter. If non-zero, use SYMNAME as the canonical name
3329 for the SaL.
3330 Update all callers.
3331 (convert_linespec_to_sals): Use add_sal_to_sals for
3332 expressions, too.
3333 (decode_line_full): No need to "fill in missing canonical names"
3334 anymore. Simply make cleanups for the allocated names.
3335
33362012-07-18 Keith Seitz <keiths@redhat.com>
3337
3338 * linespec.c (struct linespec): Constify expression,
3339 source_filename, function_name, and label_name.
3340 (symbol_not_found_error): Make all parameters const.
3341 (linespec_parser_delete): No need to check for NULL
3342 when using xfree. Cast const char * to char * for xfree.
3343
33442012-07-18 Keith Seitz <keiths@redhat.com>
3345
3346 * breakpoint.c (invalid_thread_id_error): New function.
3347 (find_condition_and_thread): Use invalid_thread_id_error.
3348 (watch_command_1): Likewise.
3349
33502012-07-18 Tom Tromey <tromey@redhat.com>
3351
3352 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3353 * contrib/cc-with-tweaks.sh: New file.
3354
33552012-07-18 Tom Tromey <tromey@redhat.com>
3356
3357 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3358 (locate_dwz_sections): Recognize .gdb_index.
3359 (create_cus_from_index_list): New function.
3360 (create_cus_from_index): Use it. Handle .dwz data.
3361 (read_index_from_section): New function, extracted from
3362 dwarf2_read_index.
3363 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3364 if needed.
3365
33662012-07-18 Tom Tromey <tromey@redhat.com>
3367
3368 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3369 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3370 <is_dwz>: New field.
3371 (struct dwz_file): New.
3372 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3373 (locate_dwz_sections, dwarf2_get_dwz_file)
3374 (get_abbrev_section_for_cu): New functions.
3375 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3376 (read_and_check_type_unit_head): Add abbrev_section argument.
3377 (create_debug_types_hash_table): Update.
3378 (init_cutu_and_read_dies): Use proper abbrev section.
3379 (init_cutu_and_read_dies_no_follow): Likewise.
3380 (set_partial_user): Do nothing if PST==NULL.
3381 (read_comp_units_from_section): New function.
3382 (create_all_comp_units): Use it.
3383 (scan_partial_symbols, partial_die_parent_scope): Update.
3384 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3385 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3386 (find_partial_die): Add offset_in_dwz argument. Update.
3387 (guess_partial_die_structure_name, fixup_partial_die): Update.
3388 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3389 DW_FORM_GNU_strp_alt.
3390 (read_indirect_string_from_dwz): New function.
3391 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3392 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3393 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3394 (follow_die_offset): Add offset_in_dwz argument.
3395 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3396 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3397 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3398 Handle new macro forms.
3399 (dwarf_decode_macros): Update.
3400 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3401 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3402 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3403 (create_debug_types_hash_table): Use correct abbrev section.
3404 (get_debug_line_section): New function.
3405 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3406 (process_full_comp_unit): Pass 'required' argument to
3407 end_symtab_get_static_block.
3408 * buildsym.h (end_symtab_get_static_block): Update.
3409 * buildsym.c (end_symtab_get_static_block): Add 'required'
3410 argument.
3411 (end_symtab, end_expandable_symtab): Update.
3412
34132012-07-18 Tom Tromey <tromey@redhat.com>
3414
3415 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3416 (pagesize): Remove.
3417 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3418 (zlib_decompress_section): Remove.
3419 (dwarf2_read_section): Use gdb_bfd_map_section.
3420 (munmap_section_buffer): Remove.
3421 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3422 munmap_section_buffer.
3423 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3424 (struct gdb_bfd_section_data): New.
3425 (free_one_bfd_section): New function.
3426 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3427 (get_section_descriptor, zlib_decompress_section)
3428 (gdb_bfd_map_section): New functions.
3429 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3430
34312012-07-18 Tom Tromey <tromey@redhat.com>
3432
3433 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3434
34352012-07-18 Tom Tromey <tromey@redhat.com>
3436
3437 * gdb_bfd.c (struct gdb_bfd_data): New.
3438 (gdb_bfd_cache): New global.
3439 (struct gdb_bfd_cache_search): New.
3440 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3441 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3442 * gdb_bfd.h (gdb_bfd_open): Declare.
3443
34442012-07-18 Tom Tromey <tromey@redhat.com>
3445
3446 * utils.c (make_cleanup_bfd_unref): Rename from
3447 make_cleanup_bfd_close.
3448 * defs.h (make_cleanup_bfd_unref): Rename from
3449 make_cleanup_bfd_close.
3450 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3451 (bfd_openw_with_cleanup): Update.
3452 * corelow.c (core_open): Update.
3453 * dsrec.c (load_srec): Update.
3454 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3455 * remote-m32r-sdi.c (m32r_load): Update.
3456 * remote-mips.c (mips_load_srec): Update.
3457 (pmon_load_fast): Update.
3458 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3459 Update.
3460 (darwin_bfd_open): Update.
3461 * solib.c (solib_bfd_fopen): Update.
3462 * symfile-mem.c (symbol_file_add_from_memory): Update.
3463 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3464 (symfile_bfd_open): Update.
3465 (generic_load): Update.
3466
34672012-07-18 Tom Tromey <tromey@redhat.com>
3468
3469 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3470 (pmon_load_fast): Likewise.
3471 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3472 (m32r_upload_command): Likewise.
3473 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3474 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3475 Use make_cleanup_bfd_close.
3476
34772012-07-18 Tom Tromey <tromey@redhat.com>
3478
3479 * symfile.c (symfile_bfd_open): Don't copy name. Call
3480 gdb_bfd_stash_filename.
3481 (load_command): Open the new BFD before freeing the old.
3482 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3483 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3484 Call gdb_bfd_stash_filename.
3485 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3486 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3487 gdb_bfd_stash_filename.
3488 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3489 Free found_pathname.
3490 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3491 gdb_bfd_stash_filename.
3492 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3493 * machoread.c (macho_add_oso_symfile): Call
3494 gdb_bfd_stash_filename.
3495 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3496 gdb_bfd_stash_filename.
3497 (macho_check_dsym): Don't copy filename. Call
3498 gdb_bfd_stash_filename.
3499 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3500 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3501 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3502 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3503 * exec.c (exec_close): Don't free the BFD's filename.
3504 (exec_file_attach): Don't copy the filename. Call
3505 gdb_bfd_stash_filename.
3506 * corelow.c (core_close): Don't free the BFD's filename.
3507 (core_open): Call gdb_bfd_stash_filename.
3508 * corefile.c (reopen_exec_file): Remove #if 0 code.
3509 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3510 pathname.
3511 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3512
35132012-07-18 Tom Tromey <tromey@redhat.com>
3514
3515 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3516 gdb_bfd_unref.
3517 (free_dwo_file): Use gdb_bfd_unref.
3518 * cli/cli-dump.c: Include gdb_bfd.h.
3519 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3520 (bfd_openr_with_cleanup): Likewise.
3521 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3522 gdb_bfd_unref.
3523 * utils.c: Include gdb_bfd.h.
3524 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3525 * symfile.c: Include gdb_bfd.h.
3526 (separate_debug_file_exists): Use gdb_bfd_unref.
3527 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3528 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3529 (generic_load): Use gdb_bfd_ref.
3530 (reread_symbols): Use gdb_bfd_unref.
3531 * symfile-mem.c: Include gdb_bfd.h.
3532 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3533 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3534 * solib.c: Include gdb_bfd.h.
3535 (solib_bfd_fopen): Use gdb_bfd_ref.
3536 (solib_bfd_open): Use gdb_bfd_unref.
3537 (free_so_symbols): Use gdb_bfd_unref.
3538 (reload_shared_libraries_1): Use gdb_bfd_unref.
3539 * solib-spu.c: Include gdb_bfd.h.
3540 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3541 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3542 gdb_bfd_unref.
3543 * solib-frv.c: Include gdb_bfd.h.
3544 (enable_break2): Use gdb_bfd_unref.
3545 * solib-dsbt.c: Include gdb_bfd.h.
3546 (enable_break2): Use gdb_bfd_unref.
3547 * solib-darwin.c: Include gdb_bfd.h.
3548 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3549 gdb_bfd_unref.
3550 (darwin_bfd_open): Use gdb_bfd_unref.
3551 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3552 * remote-mips.c: Include gdb_bfd.h.
3553 (mips_load_srec): Use gdb_bfd_ref.
3554 (pmon_load_fast): Use gdb_bfd_ref.
3555 * remote-m32r-sdi.c: Include gdb_bfd.h.
3556 (m32r_load): Use gdb_bfd_ref.
3557 * record.c: Include gdb_bfd.h.
3558 (record_save_cleanups): Use gdb_bfd_unref.
3559 (cmd_record_save): Use gdb_bfd_unref.
3560 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3561 gdb_bfd_unref.
3562 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3563 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3564 * objfiles.c: Include gdb_bfd.h.
3565 (free_objfile): Use gdb_bfd_unref.
3566 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3567 gdb_bfd.c.
3568 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3569 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3570 (macho_check_dsym): Likewise.
3571 * m32r-rom.c: Include gdb_bfd.h.
3572 (m32r_load): Use gdb_bfd_ref.
3573 (m32r_upload_command): Use gdb_bfd_ref.
3574 * jit.c: Include gdb_bfd.h.
3575 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3576 * gdb_bfd.h: New file.
3577 * gdb_bfd.c: New file.
3578 * gcore.c: Include gdb_bfd.h.
3579 (create_gcore_bfd): Use gdb_bfd_ref.
3580 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3581 (gcore_command): Use gdb_bfd_unref.
3582 * exec.c: Include gdb_bfd.h.
3583 (exec_close): Use gdb_bfd_unref.
3584 (exec_close_1): Use gdb_bfd_unref.
3585 (exec_file_attach): Use gdb_bfd_ref.
3586 * elfread.c: Include gdb_bfd.h.
3587 (build_id_verify): Use gdb_bfd_unref.
3588 * dsrec.c: Include gdb_bfd.h.
3589 (load_srec): Use gdb_bfd_ref.
3590 * corelow.c: Include gdb_bfd.h.
3591 (core_close): Use gdb_bfd_unref.
3592 (core_open): Use gdb_bfd_ref.
3593 * bfd-target.c: Include gdb_bfd.h.
3594 (target_bfd_xclose): Use gdb_bfd_unref.
3595 (target_bfd_reopen): Use gdb_bfd_ref.
3596 * Makefile.in (SFILES): Add gdb_bfd.c.
3597 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3598 (COMMON_OBS): Add gdb_bfd.o.
3599
36002012-07-18 Keith Seitz <keiths@redhat.com>
3601
3602 * breakpoint.c (find_condition_and_thread): Initialize
3603 TASK and REST.
3604 (create_breakpiont): find_condition_and_thread will now
3605 initialize COND_STRING, THREAD, and REST (and TASK).
3606 (addr_string_to_sals): Likewise.
3607
36082012-07-18 Pedro Alves <palves@redhat.com>
3609
3610 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3611 Pull the single step breakpoints out of the target.
3612
36132012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3614
3615 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3616 * stap-probe.c (compile_probe_arg): Likewise.
3617
36182012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3619
3620 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3621 (elf_compile_to_ax): Likewise.
3622 * infrun.c (insert_exception_resume_from_probe): Likewise.
3623 (check_exception_resume): Remove `objfile' variable.
3624 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3625 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3626 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3627 (compare_entries): Rename to...
3628 (compare_probes): ...this. Adjust function to work with
3629 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3630 respectively.
3631 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3632 `VEC (probe_p) *'.
3633 (print_ui_out_info): Adjust argument to be `struct probe *'.
3634 (info_probes_for_ops): Adjust internal computations to use
3635 `VEC (probe_p) *'.
3636 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3637 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3638 gen_info_probes_table_values>: Remove `objfile' argument.
3639 (struct probe) <objfile>: New field.
3640 (find_probe_by_pc): Remove `objfile' argument.
3641 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3642 (stap_get_probe_argument_count): Likewise.
3643 (stap_get_arg): Likewise.
3644 (stap_evaluate_probe_argument): Likewise.
3645 (stap_compile_to_ax): Likewise.
3646 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3647 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3648 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3649 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3650 sym_compile_to_ax>: Likewise.
3651
36522012-07-18 Terry Guo <terry.guo@arm.com>
3653
3654 PR 14329
3655 * defs.h (GDB_MI_MSG_WIDTH): New.
3656 * ser_base (ser_base_read_error_fd): New function.
3657 (do_ser_base_readchar): Poll error file descriptor as well as
3658 standard output.
3659 (generic_readchar): Refactor error handling.
3660
36612012-07-18 Joel Brobecker <brobecker@adacore.com>
3662
3663 * NEWS: Create a new section for the next release branch.
3664 Rename the section of the current branch, now that it has
3665 been cut.
3666
36672012-07-18 Joel Brobecker <brobecker@adacore.com>
3668
3669 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3670 * version.in: Bump version to 7.5.50.20120718-cvs.
3671
36722012-07-17 Keith Seitz <keiths@redhat.com>
3673
3674 * linespec.c (linespec_parse_line_offset): Make parameter
3675 const.
3676
36772012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3678
3679 PR 11914
3680 * f-valprint.c (info_common_command): New variable frame_id.
3681 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3682 * printcmd.c (print_variable_and_value): Extend function comment.
3683 Add comment for invalidated FRAME.
3684 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3685 FI form FRAME_ID after each print_frame_local_vars.
3686 (struct print_variable_and_value_data): Change frame to frame_id.
3687 (do_print_variable_and_value): New variable frame, initialize it from
3688 p->frame_id. Add comment for invalidated FRAME.
3689 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3690 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3691 for invalidated FRAME.
3692
36932012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3694 Pedro Alves <palves@redhat.com>
3695
3696 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3697 loop.
3698
36992012-07-16 Tom Tromey <tromey@redhat.com>
3700
3701 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3702
37032012-07-15 Doug Evans <dje@google.com>
3704
3705 * dwarf2read.c (stmt_list_hash): New struct.
3706 (type_unit_group): Embed "per_cu" member, remove pointer.
3707 New union member "t", move member "tus" into it, all uses updated.
3708 New member "hash", replaces member "line_offset, all uses updated.
3709 (quick_file_names): Replace member "offset" with "hash", all uses
3710 updated.
3711 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3712 (hash_file_name_entry, eq_file_name_entry): Call them.
3713 (hash_type_unit_group, eq_type_unit_group): Ditto.
3714 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3715 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3716 (dw2_get_file_names): Update.
3717 (create_type_unit_group): Replace "per_cu" arg with "cu".
3718 All callers updated. Fix "quick" (.gdb_index) handling.
3719 (get_type_unit_group): Replace "per_cu" arg with "cu".
3720 All callers updated.
3721 (build_type_unit_groups): Don't reset tu_stats.
3722
3723 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3724 "tab_cur_size". Change member "tab" to be a htab_t.
3725 (create_filename_seen_cache): Update.
3726 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3727 (filename_seen): Update.
3728
37292012-07-13 Doug Evans <dje@google.com>
3730
3731 * symtab.c (filename_seen): Update comment.
3732
37332012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 Doug Evans <dje@google.com>
3735
3736 * buildsym.c (end_symtab_1): Split it to ...
3737 (end_symtab_get_static_block): ... this ...
3738 (end_symtab_from_static_block): ... and this function.
3739 (end_symtab, end_expandable_symtab): Call them.
3740 * buildsym.h (end_symtab_get_static_block)
3741 (end_symtab_from_static_block): New declarations.
3742 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3743 Set its valid CU ranges.
3744
37452012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3746
3747 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3748 DW_OP_GNU_parameter_ref.
3749
37502012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3753 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3754
37552012-07-13 Doug Evans <dje@google.com>
3756
3757 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3758 (filename_seen_cache): New struct.
3759 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3760 (create_filename_seen_cache): New function.
3761 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3762 (filename_seen): Delete arg "first". New arg "cache". All callers
3763 updated.
3764 (output_source_filename_data): New struct.
3765 (output_source_filename): Delete arg "first". New arg "data".
3766 All callers updated.
3767 (sources_info): Delete local "first". New locals "data", "cleanups".
3768 Rewrite to use filename_seen_cache.
3769 (add_partial_filename_data): Delete member "first". New member
3770 "filename_seen_cache". All uses updated.
3771 (make_source_files_completion_list): Rewrite to use
3772 filename_seen_cache.
3773
37742012-07-12 Doug Evans <dje@google.com>
3775
3776 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3777
37782012-07-10 Doug Evans <dje@google.com>
3779
3780 PR gdb/13498
3781 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3782 all_type_unit_groups, type_unit_groups, tu_stats.
3783 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3784 All uses updated. Add type_unit_group to union "s".
3785 (type_unit_group): New struct.
3786 (IS_TYPE_UNIT_GROUP): New macro.
3787 (abbrev_table): Delete unused member "section".
3788 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3789 (dw2_get_cu): Assert not used with type_unit_group.
3790 (dw2_get_primary_cu): New function.
3791 (dw2_build_type_unit_groups_reader): New function.
3792 (dw2_build_type_unit_groups): New function.
3793 (dw2_get_file_names): Assert not called on type units.
3794 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3795 Redo loop to iterate over type unit groups instead of type units.
3796 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3797 (read_abbrev_offset): New function.
3798 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3799 updated.
3800 (create_partial_symtab): New function.
3801 (process_psymtab_comp_unit_reader): Assert not used with type units.
3802 Call create_partial_symtab.
3803 (process_psymtab_type_unit): Delete.
3804 (hash_type_unit_group, eq_type_unit_group): New functions.
3805 (allocate_type_unit_groups_table): New function.
3806 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3807 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3808 (create_type_unit_group, get_type_unit_group): New functions.
3809 (tu_abbrev_offset): New struct.
3810 (sort_tu_by_abbrev_offset): New function.
3811 (add_type_unit_group_to_table): New function.
3812 (build_type_unit_groups): New function.
3813 (build_type_psymtabs_reader): New function.
3814 (build_type_psymtab_dependencies): New function.
3815 (build_type_psymtabs): Rewrite.
3816 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3817 is seen in a type unit.
3818 (process_queue): Move symtab expansion debugging printfs here.
3819 Call process_full_type_unit for type units.
3820 (compute_symtab_includes): Assert not called for type units.
3821 (process_cu_includes): Don't call compute_symtab_includes for
3822 type units.
3823 (process_full_type_unit): New function.
3824 (process_imported_unit_die): Flag an error if called for type units.
3825 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3826 updated. Assert not called for type units.
3827 (read_file_scope): Call dwarf2_start_symtab.
3828 (setup_type_unit_groups): New function.
3829 (read_type_unit_scope): Rewrite.
3830 (abbrev_table_read_table): Initialize abbrev_table->offset.
3831 (abbrev_table_free_cleanup): New function.
3832 (dwarf2_start_symtab): New function.
3833 (load_full_type_unit): Assert not called for type unit groups.
3834 * buildsym.c (finish_block_internal): New arg "expandable".
3835 All callers updated.
3836 (start_symtab): Move most contents to ...
3837 (restart_symtab): ... here. New function.
3838 (reset_symtab_globals): New function.
3839 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3840 Call reset_symtab_globals.
3841 (end_symtab, end_expandable_symtab): New functions.
3842 (set_missing_symtab, augment_type_symtab): New functions.
3843 * buildsym.h (end_expandable_symtab): Declare.
3844 (augment_type_symtab, restart_symtab): Declare.
3845 * psympriv.h (struct partial_symtab): New member "anonymous".
3846 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3847 anonymous psymtabs.
3848 (read_psymtabs_with_filename): Ditto.
3849 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3850 (expand_symtabs_matching_via_partial): Ditto.
3851 (dump_psymtab): Update.
3852 * dictionary.c (dict_add_pending): New function.
3853 * dictionary.h (dict_add_pending): Declare.
3854
38552012-07-09 Doug Evans <dje@google.com>
3856
3857 * buildsym.c (start_subfile): Remove unnecessary check for
3858 name == NULL.
3859
3860 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3861
3862 * dwarf2read.c (load_full_type_unit): Simplify.
3863
3864 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3865 to struct signatured_type **. All uses updated.
3866
3867 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3868 All callers updated.
3869
38702012-07-09 Tom Tromey <tromey@redhat.com>
3871
3872 * c-exp.y (check_parameter_typelist): New function.
3873 (parameter_typelist): Call it.
3874 * eval.c (make_params): Handle '(void)' case.
3875 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3876 '(void)' case.
3877
38782012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3879
3880 * common/linux-ptrace.c: Include gdb_assert.h.
3881 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3882 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3883 stdint.h.
3884 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3885 functions.
3886 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3887 * linux-nat.c (linux_child_post_attach)
3888 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3889
38902012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3891
3892 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3893 nptl <2.7 bug workaround for core files.
3894
38952012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3896
3897 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3898 clearing.
3899 (save_siginfo): Remove.
3900 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3901 call.
3902 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3903 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3904 * linux-nat.h (struct lwp_info): Remove field siginfo.
3905
39062012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3907
3908 Code cleanup for the next patch.
3909 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3910 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3911 call for it.
3912 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3913 (ia64_linux_stopped_data_address):
3914 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3915 the return value.
3916 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3917 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3918 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3919 call for it.
3920
39212012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3922
3923 PR 14321
3924 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3925 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3926
39272012-07-06 Tom Tromey <tromey@redhat.com>
3928
3929 * c-exp.y (DOTDOTDOT): New token.
3930 (func_mod, exp): Use parameter_typelist.
3931 (parameter_typelist): New production.
3932 (tokentab3): Add "..." token.
3933 * eval.c (make_params): Handle varargs.
3934 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3935 varargs.
3936
39372012-07-06 Tom Tromey <tromey@redhat.com>
3938
3939 PR exp/9608:
3940 * c-exp.y (%union) <tvec>: Change type.
3941 (func_mod): Now uses <tvec> type.
3942 (exp): Update for tvec change.
3943 (direct_abs_decl): Push the typelist.
3944 (func_mod): Return a typelist.
3945 (nonempty_typelist): Update for tvec change.
3946 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3947 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3948 * parse.c (pop_type_list): New function.
3949 (push_typelist): New function.
3950 (follow_types): Handle tp_function_with_arguments.
3951 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3952 (enum type_pieces) <tp_function_with_arguments>: New constant.
3953 (union type_stack_elt) <typelist_val>: New field.
3954 (push_typelist): Declare.
3955
39562012-07-06 Tom Tromey <tromey@redhat.com>
3957
3958 * c-exp.y (%union) <type_stack>: New field.
3959 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3960 (ptr_operator_ts): New production.
3961 (ptype): Update.
3962 * parse.c (type_stack_reserve): New function.
3963 (check_type_stack_depth): Use it.
3964 (pop_type_stack, append_type_stack, push_type_stack)
3965 (get_type_stack, type_stack_cleanup): New functions.
3966 (follow_types): Handle tp_type_stack.
3967 (_initialize_parse): Simplify initialization.
3968 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3969 constant.
3970 (union type_stack_elt) <stack_val>: New field.
3971 (get_type_stack, append_type_stack, push_type_stack)
3972 (type_stack_cleanup): Declare.
3973
39742012-07-06 Tom Tromey <tromey@redhat.com>
3975
3976 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3977 Remove.
3978 (struct type_stack): New.
3979 * parse.c (type_stack, type_stack_size, type_stack_depth):
3980 Remove.
3981 (type_stack): New global.
3982 (parse_exp_in_context, check_type_stack_depth)
3983 (insert_into_type_stack, insert_type, push_type, push_type_int)
3984 (insert_type_address_space, pop_type, pop_type_int)
3985 (_initialize_parse): Update.
3986
39872012-07-06 Tom Tromey <tromey@redhat.com>
3988
3989 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3990 Remove %type.
3991
39922012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3993
3994 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3995
39962012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3997 Jan Kratochvil <jan.kratochvil@redhat.com>
3998
3999 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4000 alloca with xmalloc/xfree.
4001
40022012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4003
4004 * MAINTAINERS (Write After Approval): Add myself to the list.
4005
40062012-07-05 Doug Evans <dje@google.com>
4007
4008 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4009
40102012-07-05 Hui Zhu <hui_zhu@mentor.com>
4011
4012 * ax-gdb.c (cli/cli-utils.h): New include.
4013 (linespec.h): Ditto.
4014 (agent_eval_command_one): New function.
4015 (agent_command_1): Ditto.
4016 (agent_command): Call function agent_command_1.
4017 (agent_eval_command): Ditto.
4018 (_initialize_ax_gdb): Change help for "maint agent"
4019 and "maint agent-eval".
4020
40212012-07-05 Hui Zhu <hui_zhu@mentor.com>
4022
4023 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4024 * cli/cli-utils.c (check_for_argument): New function.
4025 * cli/cli-utils.h (check_for_argument): Ditto.
4026
40272012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4028
4029 * NEWS: Mention x32 ABI support.
4030
40312012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4032
4033 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4034 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4035
4036 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4037 and pc_regnum_from_eax to -1. Update SP regnum from
4038 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4039 needed.
4040
4041 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4042 pc_regnum_from_eax.
4043
40442012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4045
4046 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4047 * dwarf2expr.h: Include gdbtypes.h.
4048 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4049 these forward declarations.
4050 (cu_offset, sect_offset): Move these ...
4051 * gdbtypes.h: Remove include dwarf2expr.h.
4052 (cu_offset, sect_offset): ... here.
4053
40542012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4055
4056 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4057 (amd64_linux_sigtramp_code): This.
4058 (amd64_x32_linux_sigtramp_code): New.
4059 (LINUX_SIGTRAMP_LEN): Updated.
4060 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4061
40622012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4063
4064 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4065
40662012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4067
4068 * config.in: Regenerate.
4069 * configure: Regenerate.
4070 * configure.ac: Remove check for gnu/libc-version.h.
4071 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4072 gnu/libc-version.h.
4073 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4074 variables libc_version, libc_major and libc_minor. Replace sscanf by
4075 inferior_has_bug. Extend the comment.
4076
40772012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4078
4079 * linux-thread-db.c (inferior_has_bug): New function.
4080 (thread_db_find_new_threads_silently): Return boolean as checked by
4081 inferior_has_bug, describe it in the comments.
4082 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4083 earlier. Abort the initialization if it returned non-zero.
4084 (thread_db_new_objfile): Exclude debug files.
4085 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4086 if UNTIL_NO_NEW,
4087
40882012-07-02 Doug Evans <dje@google.com>
4089
4090 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4091 related to queue management.
4092
4093 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4094 instead of "debug dwarf2-die" in debugging printfs.
4095 (create_debug_info_hash_table_reader): Ditto.
4096 (create_debug_info_hash_table): Ditto.
4097 (init_dwo_file): Ditto.
4098 (init_cutu_and_read_dies): Add debugging printf.
4099 (init_cutu_and_read_dies_no_follow): Ditto.
4100 (process_psymtab_comp_unit_reader): Ditto.
4101
41022012-07-02 Stan Shebs <stan@codesourcery.com>
4103
4104 Add target-side support for dynamic printf.
4105 * NEWS: Mention the additional style.
4106 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4107 (struct bp_location): New field cmd_bytecode.
4108 * breakpoint.c: Include format.h.
4109 (disconnected_dprintf): New global.
4110 (parse_cmd_to_aexpr): New function.
4111 (build_target_command_list): New function.
4112 (insert_bp_location): Call it.
4113 (remove_breakpoints_pid): Skip dprintf breakpoints.
4114 (print_one_breakpoint_location): Ditto.
4115 (dprintf_style_agent): New global.
4116 (dprintf_style_enums): Add dprintf_style_agent.
4117 (update_dprintf_command_list): Add agent case.
4118 (agent_printf_command): New function.
4119 (_initialize_breakpoint): Add new commands.
4120 * common/ax.def (printf): New bytecode.
4121 * ax.h (ax_string): Declare.
4122 * ax-gdb.h (gen_printf): Declare.
4123 * ax-gdb.c: Include cli-utils.h, format.h.
4124 (gen_printf): New function.
4125 (maint_agent_print_command): New function.
4126 (_initialize_ax_gdb): Add maint agent-printf command.
4127 * ax-general.c (ax_string): New function.
4128 (ax_print): Add printf disassembly.
4129 * Makefile.in (SFILES): Add format.c
4130 (COMMON_OBS): Add format.o.
4131 * common/format.h: New file.
4132 * common/format.c: New file.
4133 * printcmd.c: Include format.h.
4134 (ui_printf): Call parse_format_string.
4135 * remote.c (remote_state): New field breakpoint_commands.
4136 (PACKET_BreakpointCommands): New enum.
4137 (remote_breakpoint_commands_feature): New function.
4138 (remote_protocol_features): Add new BreakpointCommands entry.
4139 (remote_can_run_breakpoint_commands): New function.
4140 (remote_add_target_side_commands): New function.
4141 (remote_insert_breakpoint): Call it.
4142 (remote_insert_hw_breakpoint): Ditto.
4143 (_initialize_remote): Add new packet configuration for
4144 target-side breakpoint commands.
4145 * target.h (struct target_ops): New field
4146 to_can_run_breakpoint_commands.
4147 (target_can_run_breakpoint_commands): New macro.
4148 * target.c (update_current_target): Handle
4149 to_can_run_breakpoint_commands.
4150
41512012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4152
4153 Execute -ix and -iex only after system and user gdbinit files.
4154 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4155 processing down after gdbinit files.
4156
41572012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4158
4159 Add fnmatch-gnu module.
4160 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4161 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4162 * gnulib/aclocal.m4: Regenerate.
4163 * gnulib/config.in: Regenerate.
4164 * gnulib/configure: Regenerate.
4165 * gnulib/import/dummy.c: Remove.
4166 * gnulib/import/Makefile.am: Regenerate.
4167 * gnulib/import/Makefile.in: Likewise.
4168 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4169 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4170 * gnulib/import/alloca.c: New file.
4171 * gnulib/import/alloca.in.h: Likewise.
4172 * gnulib/import/config.charset: Likewise.
4173 * gnulib/import/fnmatch.c: Likewise.
4174 * gnulib/import/fnmatch.in.h: Likewise.
4175 * gnulib/import/fnmatch_loop.c: Likewise.
4176 * gnulib/import/localcharset.c: Likewise.
4177 * gnulib/import/localcharset.h: Likewise.
4178 * gnulib/import/m4/alloca.m4: Likewise.
4179 * gnulib/import/m4/codeset.m4: Likewise.
4180 * gnulib/import/m4/configmake.m4: Likewise.
4181 * gnulib/import/m4/fcntl-o.m4: Likewise.
4182 * gnulib/import/m4/fnmatch.m4: Likewise.
4183 * gnulib/import/m4/glibc21.m4: Likewise.
4184 * gnulib/import/m4/localcharset.m4: Likewise.
4185 * gnulib/import/m4/locale-fr.m4: Likewise.
4186 * gnulib/import/m4/locale-ja.m4: Likewise.
4187 * gnulib/import/m4/locale-zh.m4: Likewise.
4188 * gnulib/import/m4/mbrtowc.m4: Likewise.
4189 * gnulib/import/m4/mbsinit.m4: Likewise.
4190 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4191 * gnulib/import/m4/mbstate_t.m4: Likewise.
4192 * gnulib/import/m4/stdbool.m4: Likewise.
4193 * gnulib/import/m4/wchar_h.m4: Likewise.
4194 * gnulib/import/m4/wctype_h.m4: Likewise.
4195 * gnulib/import/m4/wint_t.m4: Likewise.
4196 * gnulib/import/mbrtowc.c: Likewise.
4197 * gnulib/import/mbsinit.c: Likewise.
4198 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4199 * gnulib/import/mbsrtowcs-state.c: Likewise.
4200 * gnulib/import/mbsrtowcs.c: Likewise.
4201 * gnulib/import/ref-add.sin: Likewise.
4202 * gnulib/import/ref-del.sin: Likewise.
4203 * gnulib/import/stdbool.in.h: Likewise.
4204 * gnulib/import/streq.h: Likewise.
4205 * gnulib/import/strnlen1.c: Likewise.
4206 * gnulib/import/strnlen1.h: Likewise.
4207 * gnulib/import/verify.h: Likewise.
4208 * gnulib/import/wchar.in.h: Likewise.
4209 * gnulib/import/wctype.in.h: Likewise.
4210
42112012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 Support shell wildcards for 'set auto-load safe-path'.
4214 * auto-load.c: Include fnmatch.h.
4215 (filename_is_in_dir): Rename to ...
4216 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4217 it. Update function comment. Rename dir_len to pattern_len. New
4218 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4219 messages. Use gdb_filename_fnmatch.
4220 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4221 pattern.
4222 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4223 * defs.h (gdb_filename_fnmatch): New declaration.
4224 * utils.c: Include fnmatch.h.
4225 (gdb_filename_fnmatch): New function.
4226
42272012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4228
4229 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4230 `-probe' and `-probe-stap' options.
4231
42322012-07-01 Yao Qi <yao@codesourcery.com>
4233
4234 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4235 always_inserted_off, and always_inserted_enums.
4236 Change always_inserted_mode's type to 'enum auto_boolean'.
4237 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4238 callers.
4239 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4240 of add_setshow_enum_cmd.
4241 * infrun.c: Remove can_use_displaced_stepping_auto,
4242 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4243 can_use_displaced_stepping_enum.
4244 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4245 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4246 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4247 add_setshow_enum_cmd.
4248
42492012-06-30 Doug Evans <dje@google.com>
4250
4251 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4252 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4253 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4254
42552012-06-29 Doug Evans <dje@google.com>
4256
4257 * linespec.c: #include "stack.h".
4258 (decode_line_with_current_source): Moved here from symtab.c and
4259 renamed from decode_line_spec. All callers updated.
4260 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4261 renamed from decode_line_spec_1. All callers updated.
4262 * linespec.h (decode_line_with_current_source): Move declaration here
4263 from symtab.h and renamed from decode_line_spec.
4264 (decode_line_with_last_displayed): Move declaration here from symtab.h
4265 and renamed from decode_line_spec_1.
4266 * macrocmd.c: #include "linespec.h".
4267 * symtab.c: Remove #include "linespec.h".
4268
42692012-06-28 Doug Evans <dje@google.com>
4270
4271 * dwarf2read.c (get_cu_length): New function.
4272 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4273 (create_debug_types_hash_table): Ditto.
4274 (init_cutu_and_read_dies): Ditto.
4275 (init_cutu_and_read_dies_no_follow): Ditto.
4276
4277 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4278
4279 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4280 (struct abbrev_table): Define.
4281 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4282 abbrev_table.
4283 (init_cutu_and_read_dies): Update.
4284 (abbrev_table_alloc_abbrev): New function. Replaces
4285 dwarf_alloc_abbrev. All callers updated.
4286 (abbrev_table_add_abbrev): New function.
4287 (abbrev_table_lookup_abbrev): New function. Replaces
4288 dwarf2_lookup_abbrev. All callers updated.
4289 (abbrev_table_read_table): New function. Contents moved here from
4290 dwarf2_read_abbrevs.
4291 (dwarf2_read_abbrevs): Call it.
4292 (abbrev_table_free): New function.
4293 (dwarf2_free_abbrev_table): Call it.
4294
42952012-06-28 Stan Shebs <stan@codesourcery.com>
4296
4297 * osdata.c (info_osdata_command): Filter out "Title" columns
4298 from non-MI uses.
4299 * common/linux-osdata.c (struct osdata_type): Add title field.
4300 (osdata_table): Add titles to each entry.
4301 (linux_command_xfer_osdata): Add a column for title data.
4302
43032012-06-28 Stan Shebs <stan@codesourcery.com>
4304
4305 Make logging work for MI.
4306 * NEWS: Mention it.
4307 * interps.h (interp_set_logging_ftype): New typedef.
4308 (struct interp_procs): New field set_logging_proc.
4309 (current_interp_set_logging): Declare.
4310 * interps.c (current_interp_set_logging): New function.
4311 * cli/cli-logging.c: Include interps.h.
4312 (set_logging_redirect): Call current_interp_set_logging.
4313 (pop_output_files): Ditto.
4314 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4315 * mi/mi-console.h (mi_console_set_raw): Declare.
4316 * mi/mi-console.c (mi_console_set_raw): New function.
4317 * mi/mi-interp.c (saved_raw_stdout): New global.
4318 (mi_set_logging): New function.
4319 (_initialize_mi_interp): Add it to interp procs.
4320
43212012-06-28 Doug Evans <dje@google.com>
4322
4323 * symtab.c (lookup_symbol_aux_objfile): Use
4324 ALL_OBJFILE_PRIMARY_SYMTABS.
4325
4326 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4327
43282012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 * common/buffer.c: Include inttypes.h and stdint.h.
4331 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4332
43332012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4334 Pedro Alves <palves@redhat.com>
4335
4336 * gdbthread.h (ALL_THREADS): New macro.
4337 (thread_list): Declare.
4338 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4339 going, but instead fall through to the stepping handling.
4340 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4341 the passed in signal. Adjust debug output.
4342 (resume_callback): Rename to ...
4343 (linux_nat_resume_callback): ... this. Pass the thread's last
4344 stop signal, if in "pass" state.
4345 (linux_nat_resume): Adjust to rename.
4346 (stop_wait_callback): New assertion. Don't respawn signals;
4347 instead let the LWP remain with SIGNALLED set.
4348 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4349 * remote.c (append_pending_thread_resumptions): New.
4350 (remote_vcont_resume): Call it.
4351 * target.h (target_resume): Extend comment.
4352
43532012-06-28 Iain Sandoe <iain@codesourcery.com>
4354
4355 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4356
43572012-06-27 Doug Evans <dje@google.com>
4358
4359 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4360 Delete have_addr_base, unused. All uses updated.
4361 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4362 (dwarf2_get_pc_bounds): Add ranges_base.
4363 (dwarf2_record_block_ranges): Ditto.
4364
43652012-06-27 Tom Tromey <tromey@redhat.com>
4366
4367 PR macros/7961:
4368 * varobj.c (varobj_create): Update.
4369 (varobj_set_value): Update.
4370 * tracepoint.c (validate_actionline): Update.
4371 (encode_actions_1): Update.
4372 * parse.c (parse_exp_1): Add 'pc' argument.
4373 (parse_exp_in_context): Add 'pc' argument. Change how
4374 expression_context_pc is set.
4375 (parse_expression): Update.
4376 (parse_field_expression): Update.
4377 * expression.h (parse_exp_1): Update.
4378 * eval.c (parse_to_comma_and_eval): Update.
4379 * breakpoint.c (set_breakpoint_condition): Update.
4380 (update_watchpoint): Update.
4381 (init_breakpoint_sal): Update
4382 (find_condition_and_thread): Update.
4383 (watch_command_1): Update.
4384 (update_breakpoint_locations): Update.
4385 * ada-lang.c (ada_read_renaming_var_value): Update.
4386 (create_excep_cond_exprs): Update.
4387
43882012-06-27 Doug Evans <dje@google.com>
4389
4390 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4391 type units.
4392
43932012-06-26 Doug Evans <dje@google.com>
4394
4395 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4396 prototype.
4397 (error_check_comp_unit_head): New arg abbrev_section. All callers
4398 updated.
4399 (read_and_check_comp_unit_head): Ditto.
4400 (read_and_check_type_unit_head): Ditto.
4401
44022012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4403
4404 New attribute 'last' for gdb.Symtab_and_line.
4405 * NEWS (Python Scripting): Add entry about the new attribute.
4406 * python/py-symtab.c (salpy_get_last): New function which
4407 implements the get method for the 'last' attribute of
4408 gdb.Symtab_and_line.
4409 (sal_object_getset): Add entry for the 'last' attribute.
4410
44112012-06-26 Doug Evans <dje@google.com>
4412
4413 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4414 (dwo_sections): Add macinfo, macro.
4415 (dwarf2_locate_dwo_sections): Watch for macro sections.
4416 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4417 All callers updated. Handle DWO files.
4418
4419 * NEWS: Mention new options "set debug dwarf2-read" and
4420 "set debug symtab-create".
4421 * dwarf2read.c (dwarf2_read_debug): New static global.
4422 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4423 (process_queue): Ditto.
4424 (process_full_comp_unit): Ditto.
4425 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4426 * elfread.c (elf_symfile_read): Add debugging printf.
4427 * minsyms.c (install_minimal_symbols): Ditto.
4428 * psymtab.c (allocate_psymtab): Ditto.
4429 * symfile.c (allocate_symtab): Ditto.
4430 * symtab.c (symtab_create_debug): New global.
4431 (_initialize_symtab): Add new option "set debug symtab-create".
4432 * symtab.h (symtab_create_debug): Declare.
4433
4434 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4435 (lookup_dwo_type_unit): Ditto.
4436
44372012-06-26 Roland McGrath <roland@hack.frob.com>
4438 H.J. Lu <hongjiu.lu@intel.com>
4439
4440 * amd64-linux-nat.c: Include <sys/user.h>.
4441 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4442 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4443 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4444
4445 * configure.ac: Check if the fs_base and gs_base members of
4446 `struct user_regs_struct' exist.
4447 * config.in: Regenerated.
4448 * configure: Likewise.
4449
44502012-06-25 Michael Eager <eager@eagercon.com>
4451
4452 PR python/14291
4453 * python/python.c (gdbpy_write): Check for interrupted output.
4454
44552012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4456
4457 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4458 register as a stack alignment in ARM mode.
4459
44602012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4461
4462 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4463 * gnulib/config.in: Regenerate.
4464 * gnulib/configure: Likewise.
4465 * gnulib/import/m4/extensions.m4: Update it.
4466 * gnulib/import/m4/gnulib-common.m4: Likewise.
4467 * gnulib/import/m4/memmem.m4: Likewise.
4468 * gnulib/import/m4/mmap-anon.m4: Likewise.
4469 * gnulib/import/m4/multiarch.m4: Likewise.
4470 * gnulib/import/stdint.in.h: Likewise.
4471
44722012-06-24 Yao Qi <yao@codesourcery.com>
4473
4474 * corefile.c (write_memory_with_notification): New.
4475 * gdbcore.h: Declare write_memory_with_notification.
4476 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4477 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4478 * valops.c (value_assign): Likewise.
4479 * python/py-inferior.c (infpy_write_memory): Call
4480 'write_memory_with_notification'.
4481
44822012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4483
4484 * cc-with-index.sh: Use also -ex "set auto-load no".
4485
44862012-06-23 Doug Evans <dje@google.com>
4487
4488 PR 14125
4489 * NEWS: Document additions to .gdb_index.
4490 * dwarf2read.c: #include "gdb/gdb-index.h".
4491 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4492 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4493 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4494 (dwarf2_read_index): Recognize version 7.
4495 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4496 block_kind, domain): All callers updated.
4497 (dw2_find_symbol_file): Handle new index CU values.
4498 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4499 (add_index_entry): New args is_static, kind. All callers updated.
4500 (offset_type_compare, uniquify_cu_indices): New functions
4501 (symbol_kind): New function.
4502 (write_psymtabs_to_index): Remove duplicate CU values.
4503 (write_psymtabs_to_index): Write .gdb_index version 7.
4504
45052012-06-22 Joel Brobecker <brobecker@adacore.com>
4506
4507 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4508 * configure: Regenerate.
4509
45102012-06-20 Yao Qi <yao@codesourcery.com>
4511
4512 * python/py-inferior.c: Update comments of infpy_read_memory
4513 and infpy_write_memory.
4514
45152012-06-19 Tom Tromey <tromey@redhat.com>
4516
4517 PR exp/9514:
4518 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4519 (push_type_address_space): Remove.
4520 * parse.c (insert_into_type_stack): New function.
4521 (insert_type): Likewise.
4522 (insert_type_address_space): Rename from push_type_address_space.
4523 Insert tp_space_identifier.
4524 * c-exp.y (ptr_operator): New production.
4525 (abs_decl): Use ptr_operator.
4526 (space_identifier): Call insert_type_address_space.
4527 (ptype): Don't use const_or_volatile_or_space_identifier.
4528 (const_or_volatile_noopt): Call insert_type.
4529 (conversion_type_id, conversion_declarator): New productions.
4530 (operator): Use conversion_type_id.
4531
45322012-06-18 Doug Evans <dje@google.com>
4533
4534 * symtab.h (minimal_symbol): New member created_by_gdb.
4535 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4536 created by gdb.
4537 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4538 (search_symbols): Call it instead of lookup_symbol.
4539 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4540
4541 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4542 Adjust address for DW_OP_GNU_addr_index.
4543 * dwarf2expr.h (dwarf_expr_context): Update comment.
4544 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4545 all callers updated. Handle TLS vars described with
4546 DW_OP_GNU_const_index.
4547 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4548 and DW_OP_GNU_const_index.
4549 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4550
4551 * block.c (find_block_in_blockvector): Make explicit the fact that we
4552 ignore GLOBAL_BLOCK.
4553
45542012-06-18 Tom Tromey <tromey@redhat.com>
4555
4556 * c-exp.y (operator): Remove trailing space after "delete" and
4557 "delete[]".
4558
45592012-06-18 Mark Kettenis <kettenis@gnu.org>
4560 Jan Kratochvil <jan.kratochvil@redhat.com>
4561
4562 Switch i386 and derived targets to ON_STACK.
4563 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4564 (amd64_dicos_init_abi): Remove its installment.
4565 * dicos-tdep.c (dicos_init_abi): Remove the
4566 set_gdbarch_call_dummy_location call. Update the comment here.
4567 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4568 (i386_dicos_init_abi): Remove its installment.
4569 * i386-tdep.c (i386_push_dummy_code): New function.
4570 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4571 i386_push_dummy_code.
4572
45732012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4574
4575 Remove stale dummy frames.
4576 * breakpoint.c: Include dummy-frame.h.
4577 (longjmp_breakpoint_ops): New variable.
4578 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4579 bp_longjmp_call_dummy.
4580 (bpstat_what, bptype_string, print_one_breakpoint_location)
4581 (init_bp_location): Support bp_longjmp_call_dummy.
4582 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4583 (set_longjmp_breakpoint_for_call_dummy)
4584 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4585 functions.
4586 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4587 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4588 FIXME comment and extend the other comment for bp_call_dummy.
4589 (set_longjmp_breakpoint_for_call_dummy)
4590 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4591 * dummy-frame.c: Include gdbthread.h.
4592 (pop_dummy_frame_bpt): New function.
4593 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4594 (dummy_frame_discard): New function.
4595 (cleanup_dummy_frames): Update the comment about longjmps.
4596 * dummy-frame.h (dummy_frame_discard): New declaration.
4597 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4598 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4599 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4600 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4601 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4602 keep_going if IS_LONGJMP and there is no other reason to stop.
4603
46042012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4605
4606 * remote-sim.c (sim_command_completer): Initialize
4607 variable 'result'.
4608
46092012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4610
4611 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4612 * dwarf2loc.c (call_site_parameter_matches): Support
4613 CALL_SITE_PARAMETER_PARAM_OFFSET.
4614 (needs_dwarf_reg_entry_value): Push stub value.
4615 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4616 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4617 * gdbtypes.h (enum call_site_parameter_kind): New item
4618 CALL_SITE_PARAMETER_PARAM_OFFSET.
4619 (struct call_site.parameter.u): New field param_offset.
4620
46212012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4622
4623 Code cleanup: Generalize call_site.parameter key.
4624 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4625 variable dwarf_reg. New variable kind_u. Update parameters to
4626 push_dwarf_reg_entry_value.
4627 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4628 * dwarf2expr.h (enum call_site_parameter_kind)
4629 (union call_site_parameter_u): Forward declarations.
4630 (struct dwarf_expr_context_funcs): Update parameters and their
4631 description for push_dwarf_reg_entry_value.
4632 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4633 * dwarf2loc.c (call_site_parameter_matches): New function.
4634 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4635 description. Use call_site_parameter_matches.
4636 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4637 Update parameters and their description.
4638 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4639 New variable kind_u. Adjust the caller for updated parameters.
4640 (needs_dwarf_reg_entry_value): Update parameters.
4641 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4642 instead of attr. Update for the changed fields of struct
4643 call_site_parameter.
4644 * gdbtypes.h: Include dwarf2expr.h.
4645 (enum call_site_parameter_kind): New.
4646 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4647 fb_offset into new union u.
4648
46492012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4650
4651 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4652 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4653 for x32.
4654
46552012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4656
4657 * amd64-linux-nat.c (compat_x32_clock_t): New.
4658 (compat_x32_siginfo_t): Likewise.
4659 (compat_x32_siginfo_from_siginfo): Likewise.
4660 (siginfo_from_compat_x32_siginfo): Likewise.
4661 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4662 and siginfo_from_compat_x32_siginfo for x32.
4663
46642012-06-15 Hui Zhu <hui_zhu@mentor.com>
4665
4666 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4667
46682012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4669
4670 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4671 instead of gdbarch_ptr_bit.
4672 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4673 (amd64_supply_native_gregset): Likewise.
4674 (amd64_collect_native_gregset): Likewise.
4675 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4676 (amd64_supply_xsave): Likewise.
4677 (amd64_collect_fxsave): Likewise.
4678 (amd64_collect_xsave): Likewise.
4679
46802012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4681
4682 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4683 (amd64_linux_read_description): Check DS segment register for
4684 x32 process.
4685
46862012-06-15 Tom Tromey <tromey@redhat.com>
4687
4688 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4689 init_cutu_and_read_dies.
4690
46912012-06-15 Iain Sandoe <iain@codesourcery.com>
4692
4693 * MAINTAINERS (Write After Approval): Add myself to the list.
4694
46952012-06-15 Tom Tromey <tromey@redhat.com>
4696
4697 * valops.c (value_find_oload_method_list): Now static.
4698 * value.h (value_find_oload_method_list): Don't declare.
4699
47002012-06-15 Tom Tromey <tromey@redhat.com>
4701
4702 * valops.c (find_overload_match): Use value_ind.
4703
47042012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4705
4706 * infrun.c (handle_inferior_event): Correct indentation.
4707
47082012-06-14 Doug Evans <dje@google.com>
4709
4710 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4711 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4712 All uses updated.
4713 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4714 updated. Handle DEBUG_LOC_START_LENGTH.
4715 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4716 (loclist_describe_location): Ditto.
4717
47182012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4719
4720 PR backtrace/13866
4721 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4722 after hiding inline functions.
4723
47242012-06-13 Joel Brobecker <brobecker@adacore.com>
4725
4726 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4727 _initialize_inf_ttrace.
4728
47292012-06-13 Joel Brobecker <brobecker@adacore.com>
4730
4731 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4732 _initialize_hppa_hpux_nat.
4733
47342012-06-13 Joel Brobecker <brobecker@adacore.com>
4735
4736 * remote-sim.c (sim_command_completer): Change type of return
4737 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4738
47392012-06-13 Mark Kettenis <kettenis@gnu.org>
4740 Jan Kratochvil <jan.kratochvil@redhat.com>
4741
4742 PR tdep/14222
4743 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4744 stack on a 16-byte boundary.
4745
47462012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4747
4748 * jit.c (finalize_symtab): Set function's return type to 'void' by
4749 default.
4750
47512012-06-13 Mark Kettenis <kettenis@gnu.org>
4752 H.J. Lu <hongjiu.lu@intel.com>
4753
4754 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4755 Move bits common to both the classic LP64 and the new x32 ILP32
4756 ABI here.
4757 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4758 (amd64_x32_linux_init_abi): New function.
4759 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4760 subtype.
4761
4762 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4763 * i386-tdep.c (i386_pseudo_register_name): Make public.
4764 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4765 * amd64-tdep.c (amd64_dword_names): Add "eip".
4766 (amd64_x32_pseudo_register_type): New function
4767 (amd64_x32_init_abi): New function.
4768
47692012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4770
4771 PR build/14003
4772 * inferior.h (struct inferior_suspend_state): Comment out.
4773 (struct inferior): Comment out the field suspend.
4774 * infrun.c (struct infcall_suspend_state): Comment out the field
4775 inferior_suspend.
4776 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4777 out its assignment.
4778
47792012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4782 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4783 function comment. Return ERROR for unresolved cases. Implement
4784 returning proper NAME.
4785 (yylex): Accept also NAME from classify_inner_name.
4786 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4787 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4788 LOC_TYPEDEF type.
4789 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4790
47912012-06-13 Tom Tromey <tromey@redhat.com>
4792
4793 * breakpoint.c (condition_completer): New function.
4794 (_initialize_breakpoint): Use it.
4795 * value.c (complete_internalvar): New function.
4796 * value.h (complete_internalvar): Declare.
4797
47982012-06-13 Tom Tromey <tromey@redhat.com>
4799
4800 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4801 * breakpoint.c (catch_syscall_completer): Return a VEC.
4802 * cli/cli-cmds.c (complete_command): Update.
4803 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4804 (complete_on_enum): Likewise.
4805 * command.h: Include gdb_vecs.h.
4806 (completer_ftype): Change return type.
4807 (complete_on_cmdlist, complete_on_enum): Likewise.
4808 * completer.c (noop_completer, filename_completer)
4809 (location_completer): Return a VEC.
4810 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4811 to a VEC.
4812 (expression_completer, complete_line_internal, complete_line)
4813 (command_completer): Return a VEC.
4814 (gdb_completion_word_break_characters, line_completion_function):
4815 Update.
4816 * completer.h: Include gdb_vecs.h.
4817 (complete_line, noop_completer, filename_completer)
4818 (expression_completer, location_completer, command_completer):
4819 Update.
4820 * f-lang.c (f_word_break_characters): Return a VEC.
4821 * interps.c (interpreter_completer): Return a VEC.
4822 * language.h (struct language_defn)
4823 <la_make_symbol_completion_list>: Return a VEC.
4824 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4825 * symtab.c (free_completion_list): Take a VEC.
4826 (return_val_size, return_val_index): Remove.
4827 (return_val): Now a VEC.
4828 (completion_list_add_name): Update.
4829 (default_make_symbol_completion_list_break_on)
4830 (default_make_symbol_completion_list, make_symbol_completion_list)
4831 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4832 Return a VEC.
4833 (add_filename_to_list): Update.
4834 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4835 <list>: Now a VEC.
4836 (maybe_add_partial_symtab_filename): Update.
4837 (make_source_files_completion_list): Return a VEC.
4838 * symtab.h (default_make_symbol_completion_list_break_on)
4839 (default_make_symbol_completion_list, make_symbol_completion_list)
4840 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4841 (make_source_files_completion_list): Update.
4842
48432012-06-13 Tom Tromey <tromey@redhat.com>
4844
4845 * breakpoint.c (add_catch_command): Use completer_ftype.
4846 * breakpoint.h: Include command.h.
4847 (add_catch_command): Use completer_ftype.
4848 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4849 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4850 Use completer_ftype.
4851 * command.h (completer_ftype): New typedef.
4852 (set_cmd_completer): Use it.
4853 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4854 completer_ftype.
4855
48562012-06-13 Pedro Alves <palves@redhat.com>
4857
4858 Partial revert of previous change.
4859
4860 * serial.c (scb_base): New global.
4861 (serial_for_fd): New.
4862 (serial_open, serial_fdopen_ops): Link new serial in open serials
4863 chain.
4864 (do_serial_close): Unlink serial from the open serials chain.
4865
48662012-06-12 Pedro Alves <palves@redhat.com>
4867
4868 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4869 threads here.
4870 (prepare_for_detach): No longer context switch here in non-stop
4871 mode.
4872 (fetch_inferior_event): Ditto.
4873 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4874 to the event thread before removing breakpoints. Switch to the
4875 event thread before inserting breakpoints and resuming.
4876 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4877 event thread before resuming.
4878 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4879 Switch to the event thread before removing breakpoints.
4880
48812012-06-12 Eli Zaretskii <eliz@gnu.org>
4882
4883 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4884 special characters correctly for the Windows shells. See
4885 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4886 report.
4887 [!__MINGW32__]: Remove extra double quote character from special
4888 characters.
4889
48902012-06-11 Stan Shebs <stan@codesourcery.com>
4891
4892 * ui-out.h: Remove #if 0 declarations.
4893 * ui-out.c: Remove #if 0 functions.
4894
48952012-06-11 Pedro Alves <palves@redhat.com>
4896
4897 * ser-base.c (run_async_handler_and_reschedule): New.
4898 (fd_event, push_event): Use it.
4899 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4900 reference count to 1.
4901 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4902 instead of xfree.
4903 (serial_is_open, serial_ref, serial_unref): New.
4904 * serial.h (serial_open): Adjust comment.
4905 (serial_is_open): Declare.
4906 (serial_close): Adjust comment.
4907 (serial_ref, serial_unref) Declare.
4908 (struct serial): New field 'refcnt'.
4909
49102012-06-11 Pedro Alves <palves@redhat.com>
4911
4912 Remove #if 0'd "connect" command, and unnecessary associated
4913 refcounting and serial reuse bits.
4914
4915 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4916 * serial.c (last_serial_opened): Delete.
4917 (scb_base): Delete.
4918 (serial_open): Adjust.
4919 (serial_for_fd): Delete.
4920 (serial_fdopen_ops, do_serial_close): Adjust.
4921 (serial_fdopen_ops): Adjust.
4922
49232012-06-11 Pedro Alves <palves@redhat.com>
4924
4925 * serial.c (do_serial_close): Remove early return when SCB is
4926 null.
4927
49282012-06-11 Tom Tromey <tromey@redhat.com>
4929
4930 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4931
49322012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4933
4934 Fix regression by the "ambiguous linespec" series.
4935 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4936 get_last_displayed_symtab and get_last_displayed_line and depending
4937 on CURSAL.
4938
49392012-06-11 Tom Tromey <tromey@redhat.com>
4940
4941 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4942 (dw2_find_symbol_file): Use it.
4943
49442012-06-11 Michael Eager <eager@eagercon.com>
4945
4946 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4947 * mips-linux-tdep.h (mips_signals): New
4948
49492012-06-11 Tom Tromey <tromey@redhat.com>
4950
4951 * infrun.c (handle_inferior_event)
4952 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4953 breakpoint.
4954 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4955 exception logic in all cases. Update comments.
4956 (insert_longjmp_resume_breakpoint): Set the exception resume
4957 breakpoint.
4958
49592012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4960
4961 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4962
49632012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4964
4965 * valarith.c (binop_types_user_defined_p): Fix a typo.
4966
49672012-06-08 Yao Qi <yao@codesourcery.com>
4968 Chung-Lin Tang <cltang@codesourcery.com>
4969
4970 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4971 * arch-utils.h: Declare.
4972 * gdbarch.sh: Add return_in_first_hidden_param_p.
4973 * gdbarch.c, gdbarch.h: Regenerated.
4974 * infcall.c (call_function_by_hand): Call
4975 gdbarch_return_in_first_hidden_param_p instead of
4976 language_pass_by_reference.
4977
4978 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4979 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4980 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4981 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4982 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4983 `cplus_return_struct_by_reference'.
4984 (tic6x_return_value): Handle language cplusplus.
4985 (tic6x_return_in_first_hidden_param_p): New.
4986 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4987
49882012-06-07 Doug Evans <dje@google.com>
4989
4990 * dwarf2read.c (dwarf2_cu): Add comment.
4991
49922012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4993
4994 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4995 variable.
4996 (mips_eabi_push_dummy_call): Likewise.
4997 (mips_n32n64_push_dummy_call): Likewise.
4998 (mips_o32_push_dummy_call): Likewise.
4999 (mips_o64_push_dummy_call): Likewise.
5000
50012012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5002
5003 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5004
50052012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5006
5007 * mips-tdep.c (mips_pseudo_register_type): Use
5008 mips_float_register_p.
5009
50102012-06-06 Pedro Alves <palves@redhat.com>
5011
5012 * infrun.c (handle_inferior_event): Remove calls to
5013 reinit_frame_cache that follow a context_switch call.
5014
50152012-06-06 Pedro Alves <palves@redhat.com>
5016
5017 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5018 context_switch and remove stale comment.
5019
50202012-06-06 Pedro Alves <palves@redhat.com>
5021
5022 * infrun.c (struct execution_control_state): Remove
5023 `new_thread_event' field.
5024 (handle_inferior_event): Simplify new threads handling; don't
5025 resume the inferior if we find a new thread.
5026
50272012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5028
5029 * NEWS: Document the deprecation of SH's 'regs' command.
5030 * inferior.h (all_registers_info): Add function declaration.
5031 * sh-tdep.c (sh_show_regs): Remove variable.
5032 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5033 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5034 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5035 (sh_show_regs_command): Remove functions.
5036 (sh_gdbarch_init): Don't set sh_show_regs.
5037 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5038 'info all-registers'.
5039 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5040 (sh64_show_regs): Remove functions.
5041 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5042
50432012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5044
5045 * configure.ac: Move development=true below AC_INIT.
5046 * configure: Regenerate.
5047
50482012-06-05 Stan Shebs <stan@codesourcery.com>
5049
5050 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5051 gdb_stdout.
5052
50532012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5054
5055 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5056 argument as ssize_t.
5057 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5058 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5059 * target.c (target_read_stack, target_write_memory)
5060 (target_write_raw_memory): Likewise.
5061 * target.h (target_read_stack, target_write_memory)
5062 (target_write_raw_memory): Likewise.
5063
50642012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5065
5066 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5067 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5068 * target.c (target_read_memory): Change LEN to ssize_t.
5069 * target.h (target_read_memory): Change LEN to ssize_t.
5070
50712012-06-05 Pedro Alves <palves@redhat.com>
5072
5073 PR backtrace/13866
5074
5075 * breakpoint.c (until_break_command): Only fetch the selected
5076 frame after decode_line_1.
5077
50782012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5079
5080 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5081 event breakpoint at _start, __start or main if a program
5082 interpreter is not found.
5083
50842012-06-05 Joel Brobecker <brobecker@adacore.com>
5085
5086 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5087 Add declaration.
5088 * windows-tdep.c: #include "objfiles.h".
5089 (windows_iterate_over_objfiles_in_search_order): New function.
5090 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5091 iterate_over_objfiles_in_search_order gdbarch method to
5092 windows_iterate_over_objfiles_in_search_order.
5093 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5094
50952012-06-05 Joel Brobecker <brobecker@adacore.com>
5096
5097 * gdbarch.sh: Add generation of
5098 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5099 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5100 (iterate_over_objfiles_in_search_order): New gdbarch method.
5101 * gdbarch.h, gdbarch.c: Regenerate.
5102 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5103 Add declaration.
5104 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5105 New function.
5106 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5107 out of lookup_symbol_aux_symtabs.
5108 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5109 call to lookup_symbol_aux_objfile.
5110 (struct global_sym_lookup_data): New type.
5111 (lookup_symbol_global_iterator_cb): New function.
5112 (lookup_symbol_global): Search for symbol using
5113 gdbarch_iterate_over_objfiles_in_search_order and
5114 lookup_symbol_global_iterator_cb.
5115 * findvar.c (struct minsym_lookup_data): New type.
5116 (minsym_lookup_iterator_cb): New function.
5117 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5118 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5119 and minsym_lookup_iterator_cb.
5120
51212012-06-05 Joel Brobecker <brobecker@adacore.com>
5122
5123 Revert the following patch:
5124 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5125 try locating the symbol in the symbol's own objfile first, before
5126 extending the search to all objfiles.
5127 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5128 out of lookup_symbol_aux_symtabs.
5129 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5130 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5131 Do not search EXCLUDE_OBJFILE.
5132 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5133 (lookup_symbol_global): Search for matches in the block's objfile
5134 first, before searching all other objfiles.
5135
51362012-06-05 Joel Brobecker <brobecker@adacore.com>
5137
5138 * breakpoint.c (find_condition_and_thread): Stop parsing
5139 as soon as the first invalid keyword is found.
5140
51412012-06-05 Joel Brobecker <brobecker@adacore.com>
5142
5143 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5144
51452012-06-05 Joel Brobecker <brobecker@adacore.com>
5146
5147 * config/djgpp/djcheck.sh: Add copyright header.
5148
51492012-06-05 Joel Brobecker <brobecker@adacore.com>
5150
5151 * copyright.py (update_files, main): Fix path to update-copyright
5152 script.
5153
51542012-06-05 Joel Brobecker <brobecker@adacore.com>
5155
5156 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5157 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5158 for which a reminder to update by hand is printed.
5159
51602012-06-04 Doug Evans <dje@google.com>
5161
5162 * buildsym.c (make_blockvector): Add comment.
5163
51642012-06-04 Pedro Alves <palves@redhat.com>
5165
5166 * arch-utils.c (default_gdb_signal_from_target): Delete.
5167 * arch-utils.h (default_gdb_signal_from_target): Delete.
5168 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5169 gdbarch_gdb_signal_from_target_p.
5170 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5171 predicate).
5172 * gdbarch.h: Regenerate.
5173 * gdbarch.c: Regenerate.
5174
51752012-06-04 Pedro Alves <palves@redhat.com>
5176
5177 * gdbarch.sh (gdb_signal_from_target): Mention that the
5178 implementation of the method must be host independent.
5179 * gdbarch.h: Regenerate.
5180
51812012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5182
5183 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5184 parameters.
5185 (target_read_memory_bfd): New function.
5186 (symbol_file_add_from_memory): Use it.
5187
51882012-06-03 Doug Evans <dje@google.com>
5189
5190 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5191 of primary symtab.
5192 (basic_lookup_transparent_type): Ditto.
5193
5194 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5195 (ALL_PRIMARY_SYMTABS): Use it.
5196 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5197 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5198 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5199 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5200 (basic_lookup_transparent_type): Ditto.
5201
52022012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5203
5204 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5205 it to optimize resolution of demangled name.
5206
52072012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5208
5209 * configure.ac (development): Define new variable.
5210 Call AC_CHECK_LIB for mcheck if $development.
5211 (ERROR_ON_WARNING): Enable it by default only if $development.
5212 * config.in: Regenerate.
5213 * configure: Regenerate.
5214
52152012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5216
5217 * target.c (target_read_memory): Make LEN argument as size_t.
5218 * target.h (target_read_memory): Likewise.
5219
52202012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5221
5222 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5223
52242012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5225
5226 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5227 BookE interface for PowerPC server processors if not available
5228 in the Linux Kernel.
5229
52302012-05-31 Keith Seitz <keiths@redhat.com>
5231
5232 * linespec.c (decode_objc): Add cleanup to free
5233 INFO.FILE_SYMTABS.
5234 (find_linespec_symbols): Add cleanup to free CLASSES.
5235 * symfile.c (find_separate_debug_file_by_debuglink): Add
5236 cleanup to free DEBUGLINK.
5237 * ui-out.c (clear_header_list): No need to check if
5238 HEADER_NEXT.COLHDR is NULL.
5239 Free HEADER_NEXT.COL_NAME.
5240
52412012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5242
5243 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5244 warning.
5245
52462012-05-30 Jeff Kenton <jkenton@tilera.com>
5247
5248 * configure.host (gdb_host_cpu): Handle tilegx*.
5249 (gdb_host): Handle tilegx-*-linux*.
5250 * tilegx-linux-nat.c: New file.
5251 * config/tilegx/linux.mh: New file.
5252
52532012-05-30 Jeff Kenton <jkenton@tilera.com>
5254
5255 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5256 tilegx-linux-tdep.o.
5257 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5258 tilegx-linux-tdep.c.
5259 * configure.tgt: Handle tilegx-*-linux*.
5260 * tilegx-tdep.h: New file.
5261 * tilegx-tdep.c: New file.
5262 * tilegx-linux-tdep.c: New file.
5263 * regformats/reg-tilegx.dat: New file.
5264
52652012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5266
5267 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5268 accounting of hw watchpoints on ppc.
5269
52702012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5271
5272 * source.c (openp): Expand tilde in path entries.
5273
52742012-05-29 Doug Evans <dje@google.com>
5275
5276 * buildsym.c (block_compar): Fix comment.
5277 (end_symtab): Fix and clarify some comments.
5278
5279 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5280 cleanup_undefined_types.
5281 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5282 All callers updated.
5283
52842012-05-29 Tom Tromey <tromey@redhat.com>
5285
5286 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5287 fails.
5288 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5289 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5290 fails.
5291 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5292 fails.
5293
52942012-05-29 Tristan Gingold <gingold@adacore.com>
5295
5296 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5297 (struct darwin_info): ... New struct.
5298 (solib_darwin_pspace_data): New variable.
5299 (darwin_pspace_data_cleanup): New function.
5300 (get_darwin_info): Likewise.
5301 (darwin_dyld_version_ok, darwin_load_image_infos)
5302 (darwin_solib_get_all_image_info_addr_at_init)
5303 (darwin_solib_read_all_image_info_addr): Add info argument.
5304 Adjust code.
5305 (darwin_current_sos): Use per pspace structure.
5306 (darwin_solib_create_inferior_hook): Likewise.
5307 (darwin_clear_solib): Likewise.
5308 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5309
53102012-05-28 Pedro Alves <palves@redhat.com>
5311
5312 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5313 block that uses them. Clear ecss before handling each event.
5314
53152012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5316
5317 * solib-svr4.c (svr4_current_sos): New comment on
5318 svr4_current_sos_via_xfer_libraries fall back.
5319
53202012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5321
5322 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5323 it as a fallback for TYPE_IS_OPAQUE.
5324 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5325 symbols for lookup_symbol.
5326
53272012-05-24 John Steele Scott <toojays@toojays.net>
5328
5329 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5330 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5331 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5332 (check_producer): ... this new function, which also checks for ICC
5333 and caches the result.
5334 (producer_is_icc): New function.
5335 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5336 producer was ICC.
5337
53382012-05-24 Pedro Alves <palves@redhat.com>
5339
5340 PR gdb/7205
5341
5342 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5343 (default_gdb_signal_to_target): ... this. Add comment.
5344 (default_gdb_signal_from_host): Rename to ...
5345 (default_gdb_signal_from_target): ... this. Add comment.
5346 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5347 (default_gdb_signal_to_target): ... this.
5348 (default_gdb_signal_from_host): Rename to ...
5349 (default_gdb_signal_from_target): ... this.
5350 * corelow.c (core_open): Adjust to naming change. Replace comment.
5351 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5352 (gdb_signal_from_target): ... this. Adjust to
5353 default_gdb_signal_from_host naming change. Extend comment.
5354 (gdb_signal_to_host): Rename to ...
5355 (gdb_signal_to_target): ... this. Adjust to
5356 default_gdb_signal_to_host naming change.
5357 * gdbarch.h, gdbarch.c: Renegerate.
5358
53592012-05-24 Pedro Alves <palves@redhat.com>
5360
5361 PR gdb/7205
5362
5363 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5364
53652012-05-24 Pedro Alves <palves@redhat.com>
5366
5367 PR gdb/7205
5368
5369 Replace target_signal with gdb_signal throughout.
5370
53712012-05-24 Pedro Alves <palves@redhat.com>
5372
5373 PR tui/14159
5374
5375 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5376 string, instead of reusing the va_list argument.
5377
53782012-05-24 Tom Tromey <tromey@redhat.com>
5379
5380 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5381 Remove.
5382
53832012-05-23 Doug Evans <dje@google.com>
5384
5385 * symtab.c (search_symbols): Formatting fixes.
5386 (print_symbol_info): Formatting fixes.
5387
5388 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5389 int64_t change to leb128 API.
5390 (read_encoded_value, decode_frame_entry_1): Ditto.
5391 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5392 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5393 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5394 (execute_stack_op): Ditto.
5395 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5396 (safe_read_uleb128, safe_read_sleb128): Ditto.
5397 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5398 (dwarf2_compile_expr_to_ax): Ditto.
5399 (locexpr_describe_location_piece): Ditto.
5400 (disassemble_dwarf_expression): Ditto.
5401 (locexpr_describe_location_1): Ditto.
5402
54032012-05-23 Stan Shebs <stan@codesourcery.com>
5404 Kwok Cheung Yeung <kcy@codesourcery.com>
5405
5406 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5407 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5408 (mi-cmd-info.o): New rule.
5409 * osdata.h (info_osdata_command): New declaration.
5410 * osdata.c (info_osdata_command): Change to non-static.
5411 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5412 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5413 * mi/mi-cmd-info.c: New file.
5414
54152012-05-23 Doug Evans <dje@google.com>
5416
5417 * symtab.c (search_symbols): Pass NULL for file_matcher to
5418 expand_symtabs_matching if there are no files to match.
5419
5420 * gdbtypes.c (lookup_typename): Simplify.
5421
54222012-05-23 Pedro Alves <palves@redhat.com>
5423
5424 * arch-utils.h (default_target_signal_to_host): Delete.
5425 * arch-utils.c (default_target_signal_to_host): Delete.
5426 * gdbarch.sh (target_signal_to_host): Remove.
5427 * gdbarch.h, gdbarch.c: Regenerate.
5428
54292012-05-22 Doug Evans <dje@google.com>
5430
5431 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5432 "const gdb_byte *".
5433 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5434 (execute_cfa_program): Update to match API of leb128 functions.
5435 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5436 "const gdb_byte *".
5437 (read_unsigned_leb128, read_signed_leb128): Delete.
5438 (read_initial_length): Change type of buf argument to
5439 "const gdb_byte *".
5440 (read_encoded_value): Update to match API of leb128 functions.
5441 (decode_frame_entry): Change result to "const gdb_byte *", and
5442 similarly for "start" parameter.
5443 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5444 (dwarf2_build_frame_info): Change local frame_ptr to
5445 "const gdb_byte *".
5446 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5447 read_uleb128, read_sleb128. All callers updated.
5448 (safe_skip_leb128): New function.
5449 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5450 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5451 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5452 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5453 read_uleb128, read_sleb128.
5454 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5455 (execute_stack_op): Update to match API of leb128 functions.
5456 * dwarf2expr.h: #include "leb128.h".
5457 (read_uleb128, read_sleb128): Delete.
5458 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5459 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5460 * dwarf2loc.c (debug_loc_kind): New enum.
5461 (decode_debug_loc_addresses): New function.
5462 (decode_debug_loc_dwo_addresses): New function.
5463 (dwarf2_find_location_expression): Rewrite.
5464 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5465 (locexpr_describe_location_piece): Ditto.
5466 (disassemble_dwarf_expression): Ditto.
5467 (locexpr_describe_location_1): Ditto.
5468 (loclist_describe_location): Rewrite.
5469 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5470 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5471 (dwarf2_section_buffer_overflow_complaint): Renamed from
5472 dwarf2_macros_too_long_complaint. All callers updated.
5473 (skip_leb128): Delete.
5474 (init_cu_die_reader): Initialize reader->buffer_end.
5475 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5476 (skip_form_bytes): New arg buffer_end. All callers updated.
5477 Replace call to skip_leb128 with gdb_skip_leb128.
5478 (skip_unknown_opcode): New arg mac_end. All callers updated.
5479 (fill_in_loclist_baton): Initialize baton->from_dwo.
5480
54812012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5482
5483 * mips-linux-nat.c (mips_linux_read_description): Use a more
5484 verbose error message.
5485
54862012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5487
5488 * NEWS: Add MIPS/Linux DSP support.
5489 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5490 (SIGCONTEXT_DSPCTL): New macro.
5491 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5492 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5493 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5494 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5495 (N64_SIGCONTEXT_HI3): Likewise.
5496 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5497 (N64_SIGCONTEXT_LO3): Likewise.
5498 (N64_SIGCONTEXT_DSPCTL): Likewise.
5499 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5500 (mips_linux_o32_sigframe_init): Handle DSP registers.
5501 (mips_linux_n32n64_sigframe_init): Likewise.
5502
55032012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5504
5505 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5506 call to abort.
5507
55082012-05-22 Pedro Alves <palves@redhat.com>
5509
5510 * target.h (store_waitstatus): Move declaration ...
5511 * inf-child.h (store_waitstatus): ... here.
5512 * target.c: Move inclusion of gdb_wait.h, and ...
5513 (store_waitstatus): ... this ...
5514 * inf-child.c: ... here.
5515 * linux-nat.c: Include inf-child.h.
5516 * rs6000-nat.c: Include inf-child.h.
5517 * spu-linux-nat.c: Include inf-child.h.
5518
55192012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5520
5521 * tracepoint.c (start_tracing): Add missing i18n markup.
5522 (stop_tracing, set_trace_user): Ditto.
5523 (set_trace_notes, set_trace_stop_notes): Ditto.
5524
55252012-05-21 Tom Tromey <tromey@redhat.com>
5526
5527 PR c++/7173:
5528 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5529 types.
5530 * value.h (value_cast_pointers): Update.
5531 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5532 (value_cast): Update.
5533 (update_search_result): New function.
5534 (do_search_struct_field): New, from search_struct_field. Check
5535 for ambiguous results.
5536 (search_struct_field): Rewrite.
5537 * infcall.c (value_arg_coerce): Update.
5538 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5539 value_cast_pointers.
5540 * ada-lang.c (ada_convert_actual): Update.
5541
55422012-05-21 Tom Tromey <tromey@redhat.com>
5543
5544 * macroexp.c (macro_stringify): Terminate the string.
5545
55462012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5547
5548 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5549 Describe it.
5550 * auto-load.c (auto_load_expand_dir_vars): New function.
5551 (auto_load_safe_path_vec_update): Use it, remove the
5552 substitute_path_component call thanks to it.
5553 (auto_load_objfile_script): Remove the debug_file_directory processing.
5554 Use auto_load_expand_dir_vars, remove the substitute_path_component
5555 call thanks to it.
5556 * configure: Regenerate.
5557 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5558 path. Escape $ also for $debugdir.
5559 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5560 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5561
55622012-05-20 Doug Evans <dje@google.com>
5563
5564 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5565 before use. Check for symtab->includes == NULL before scanning it.
5566
55672012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5568
5569 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5570
55712012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5572
5573 * NEWS: Add microMIPS support and "set mips compression",
5574 "show mips compression" commands.
5575 * mips-tdep.h (mips_isa): New enum.
5576 (gdbarch_tdep): Add mips_isa.
5577 (mips_pc_is_mips16): Update prototype.
5578 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5579 * mips-tdep.c (mips_compression_mips16): New variable.
5580 (mips_compression_micromips): Likewise.
5581 (mips_compression_strings): Likewise.
5582 (mips_compression_string): Likewise.
5583 (is_mips16_isa, is_micromips_isa): New functions.
5584 (is_mips16_addr): Rename to...
5585 (is_compact_addr): ... this.
5586 (unmake_mips16_addr): Likewise to...
5587 (unmake_compact_addr): ... this.
5588 (make_mips16_addr): Likewise to...
5589 (make_compact_addr): ... this.
5590 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5591 functions.
5592 (mips_elf_make_msymbol_special): Handle microMIPS code.
5593 (msymbol_is_special): Rename to...
5594 (msymbol_is_mips16): ... this.
5595 (mips_make_symbol_special, mips_pc_is_mips16): Update
5596 accordingly.
5597 (msymbol_is_mips, msymbol_is_micromips): New functions.
5598 (mips16_to_32_reg): Rename to...
5599 (mips_reg3_to_reg): ... this.
5600 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5601 (mips_pc_isa): Likewise.
5602 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5603 code.
5604 (mips_fetch_instruction): Pass return status instead of printing
5605 an error message if requested. Handle microMIPS code. Bail out
5606 on an invalid ISA.
5607 (micromips_op): New macro.
5608 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5609 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5610 (b6s4_op, b7s3_reg): Likewise.
5611 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5612 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5613 (mips_insn_size): New function.
5614 (mips32_next_pc): Update mips_fetch_instruction call.
5615 (micromips_relative_offset7): New function.
5616 (micromips_relative_offset10): Likewise.
5617 (micromips_relative_offset16): Likewise.
5618 (micromips_pc_insn_size): Likewise.
5619 (micromips_bc1_pc): Likewise.
5620 (micromips_next_pc): Likewise.
5621 (unpack_mips16): Update mips_fetch_instruction call.
5622 (extended_mips16_next_pc): Update according to change to
5623 mips16_to_32_reg.
5624 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5625 code.
5626 (mips16_scan_prologue): Update mips_fetch_instruction call.
5627 Update according to change to mips16_to_32_reg.
5628 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5629 (mips_insn16_frame_base_sniffer): Likewise.
5630 (micromips_decode_imm9): New function.
5631 (micromips_scan_prologue): Likewise.
5632 (mips_micro_frame_cache): Likewise.
5633 (mips_micro_frame_this_id): Likewise.
5634 (mips_micro_frame_prev_register): Likewise.
5635 (mips_micro_frame_sniffer): Likewise.
5636 (mips_micro_frame_unwind): New variable.
5637 (mips_micro_frame_base_address): New function.
5638 (mips_micro_frame_base): New variable.
5639 (mips_micro_frame_base_sniffer): New function.
5640 (mips32_scan_prologue): Update mips_fetch_instruction call.
5641 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5642 rather than for MIPS16.
5643 (mips_insn32_frame_base_sniffer): Likewise.
5644 (mips_addr_bits_remove): Handle microMIPS code.
5645 (deal_with_atomic_sequence): Rename to...
5646 (mips_deal_with_atomic_sequence): ... this. Update the type
5647 of the variable used to hold an instruction. Remove the ISA bit
5648 check. Update mips_fetch_instruction call.
5649 (micromips_deal_with_atomic_sequence): New function.
5650 (deal_with_atomic_sequence): Likewise.
5651 (mips_about_to_return): Handle microMIPS code. Update
5652 mips_fetch_instruction call.
5653 (heuristic_proc_start): Check for the standard MIPS ISA rather
5654 than for MIPS16. Update mips_pc_is_mips16 and
5655 mips_fetch_instruction calls. Handle microMIPS code.
5656 (mips_push_dummy_code): Handle microMIPS code.
5657 (mips_eabi_push_dummy_call): Likewise.
5658 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5659 (mips_o64_push_dummy_call): Handle microMIPS code.
5660 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5661 (is_delayed): Remove function.
5662 (mips_single_step_through_delay): Replace the call to is_delayed
5663 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5664 Handle microMIPS code.
5665 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5666 microMIPS code.
5667 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5668 call.
5669 (micromips_in_function_epilogue_p): New function.
5670 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5671 call.
5672 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5673 Handle microMIPS.
5674 (gdb_print_insn_mips): Likewise.
5675 (mips_breakpoint_from_pc): Likewise.
5676 (mips_remote_breakpoint_from_pc): New function.
5677 (mips32_instruction_has_delay_slot): Simplify making use of the
5678 updated mips_fetch_instruction interface.
5679 (micromips_instruction_has_delay_slot): New function.
5680 (mips16_instruction_has_delay_slot): Simplify making use of the
5681 updated mips_fetch_instruction interface.
5682 (mips_adjust_breakpoint_address): Check for the standard MIPS
5683 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5684 calls. Handle microMIPS code.
5685 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5686 (mips_skip_trampoline_code): Handle microMIPS code.
5687 (global_mips_compression): New function.
5688 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5689 file flags. Register the microMIPS remote breakpoint handler
5690 and heuristic frame unwinder.
5691 (show_mips_compression): New function.
5692 (_initialize_mips_tdep): Add the "set mips compression" and
5693 "show mips compression" commands.
5694
56952012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5696
5697 * ada-lang.c:
5698 * ada-tasks.c:
5699 * ada-varobj.c:
5700 * amd64-darwin-tdep.c:
5701 * arm-symbian-tdep.c:
5702 * arm-tdep.c:
5703 * avr-tdep.c:
5704 * ax-gdb.c:
5705 * bfin-linux-tdep.c:
5706 * breakpoint.c:
5707 * c-valprint.c:
5708 * cli/cli-cmds.c:
5709 * coffread.c:
5710 * cp-support.c:
5711 * cris-tdep.c:
5712 * dwarf2-frame-tailcall.c:
5713 * dwarf2-frame.c:
5714 * dwarf2expr.c:
5715 * dwarf2loc.c:
5716 * dwarf2read.c:
5717 * elfread.c:
5718 * eval.c:
5719 * expprint.c:
5720 * f-valprint.c:
5721 * frv-tdep.c:
5722 * h8300-tdep.c:
5723 * hppa-hpux-tdep.c:
5724 * hppa-tdep.c:
5725 * hppanbsd-tdep.c:
5726 * i386-nto-tdep.c:
5727 * i386-tdep.c:
5728 * i387-tdep.c:
5729 * ia64-tdep.c:
5730 * jit.c:
5731 * linespec.c:
5732 * linux-tdep.c:
5733 * lm32-tdep.c:
5734 * m2-valprint.c:
5735 * m32c-tdep.c:
5736 * m32r-rom.c:
5737 * m32r-tdep.c:
5738 * m68k-tdep.c:
5739 * m68klinux-tdep.c:
5740 * mi/mi-main.c:
5741 * microblaze-tdep.c:
5742 * mips-linux-tdep.c:
5743 * mips-tdep.c:
5744 * mn10300-tdep.c:
5745 * p-valprint.c:
5746 * parse.c:
5747 * ppc-linux-tdep.c:
5748 * ppc-sysv-tdep.c:
5749 * printcmd.c:
5750 * python/py-finishbreakpoint.c:
5751 * python/py-inferior.c:
5752 * python/py-infthread.c:
5753 * python/py-type.c:
5754 * python/python.c:
5755 * remote-fileio.c:
5756 * remote-m32r-sdi.c:
5757 * remote-mips.c:
5758 * reverse.c:
5759 * rl78-tdep.c:
5760 * rs6000-aix-tdep.c:
5761 * rs6000-tdep.c:
5762 * s390-tdep.c:
5763 * score-tdep.c:
5764 * sh64-tdep.c:
5765 * skip.c:
5766 * solib-darwin.c:
5767 * solib-dsbt.c:
5768 * solib-frv.c:
5769 * sparc-tdep.c:
5770 * spu-multiarch.c:
5771 * spu-tdep.c:
5772 * stack.c:
5773 * symfile.c:
5774 * symtab.c:
5775 * tic6x-tdep.c:
5776 * tracepoint.c:
5777 * v850-tdep.c:
5778 * valarith.c:
5779 * valprint.c:
5780 * value.c:
5781 * xcoffread.c:
5782 * xtensa-tdep.c:
5783 * ada-lang.c:
5784 * ada-tasks.c:
5785 * ada-varobj.c:
5786 * amd64-darwin-tdep.c:
5787 * arm-symbian-tdep.c:
5788 * arm-tdep.c: Delete unused variables.
5789
57902012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5791
5792 Rename $ddir to $datadir.
5793 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5794 * auto-load.c (auto_load_safe_path_vec_update)
5795 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5796 * configure: Regenerate.
5797 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5798 Likewise. Remove the 'use $ddir' help string.
5799
58002012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5801
5802 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5803 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5804
58052012-05-18 Tom Tromey <tromey@redhat.com>
5806
5807 PR exp/13907:
5808 * valprint.h (struct value_print_options) <symbol_print>: New
5809 field.
5810 * valprint.c (user_print_options): Add default for symbol_print.
5811 (show_symbol_print): New function.
5812 (generic_val_print): Respect symbol_print.
5813 (_initialize_valprint): Add "print symbol" setting.
5814 * f-valprint.c (f_val_print): Respect symbol_print.
5815 * c-valprint.c (c_val_print): Respect symbol_print.
5816 * NEWS: Update.
5817 * printcmd.c (print_address_symbolic): Return int. Ignore some
5818 zero-size symbols.
5819 (print_address_demangle): Return int.
5820 * defs.h: (print_address_symbolic): Return int.
5821 * value.h (print_address_demangle): Return int.
5822
58232012-05-18 Tom Tromey <tromey@redhat.com>
5824
5825 * valprint.c (val_print_string): Don't print leading space.
5826 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5827 print space before string or vtbl.
5828 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5829 before string.
5830 * jv-valprint.c (java_value_print): Print space before string.
5831 * go-valprint.c (print_go_string): Print space before string.
5832 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5833 space before string.
5834 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5835 space before string or vtbl.
5836 * auxv.c (fprint_target_auxv): Print space after address.
5837
58382012-05-18 Tom Tromey <tromey@redhat.com>
5839
5840 * printcmd.c (print_address_demangle): Remove special case for 0.
5841
58422012-05-18 Tom Tromey <tromey@redhat.com>
5843
5844 * printcmd.c (print_address_demangle): Add 'opts' argument.
5845 * p-valprint.c (pascal_val_print): Update.
5846 * jv-valprint.c (java_val_print): Update.
5847 * value.h: Update.
5848 * valprint.c (generic_val_print): Update.
5849 (print_function_pointer_address): Add 'options' argument. Remove
5850 'addressprint' argument. Update.
5851 * m2-valprint.c (print_unpacked_pointer): Update.
5852 * gnu-v3-abi.c (print_one_vtable): Update.
5853 (gnuv3_print_method_ptr): Update.
5854 * f-valprint.c (f_val_print): Update.
5855 * cp-valprint.c (cp_print_value_fields): Update.
5856 * valprint.h (print_function_pointer_address): Update.
5857 * c-valprint.c (c_val_print): Update.
5858
58592012-05-18 Tom Tromey <tromey@redhat.com>
5860
5861 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5862 directly corresponding to the found psymtab.
5863 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5864 (dw2_find_pc_sect_symtab): Use it.
5865 * block.h (blockvector_contains_pc): Declare.
5866 * block.c (find_block_in_blockvector): New function.
5867 (blockvector_for_pc_sect): Use it.
5868 (blockvector_contains_pc): New function.
5869
58702012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5871
5872 * mips-tdep.h (mips_write_pc): New prototype.
5873 * mips-tdep.c (mips_write_pc): Make external, add description.
5874 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5875 add description.
5876
58772012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5878
5879 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5880 mips_regnum->pc.
5881 (mips_unwind_pc, mips_write_pc): Likewise.
5882 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5883 gdbarch_read_pc.
5884
58852012-05-17 Joel Brobecker <brobecker@adacore.com>
5886
5887 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5888 proc_warn, proc_error, proc_get_status, proc_flags,
5889 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5890 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5891 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5892 proc_stop_process, proc_wait_for_stop, proc_run_process,
5893 proc_set_traced_signals, proc_set_traced_faults,
5894 proc_set_traced_sysentry, proc_set_traced_sysexit,
5895 proc_set_held_signals, proc_get_held_signals,
5896 proc_get_traced_signals, proc_get_traced_faults,
5897 proc_get_traced_sysentry, proc_get_traced_sysexit,
5898 proc_clear_current_fault, proc_set_current_signal,
5899 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5900 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5901 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5902 proc_get_current_thread, proc_get_current_thread,
5903 proc_get_current_thread, proc_update_threads,
5904 proc_update_threads, proc_update_threads, proc_update_threads,
5905 proc_iterate_over_threads, procfs_find_new_threads,
5906 procfs_pid_to_str): Make static. Remove advance declaration.
5907 (proc_cursig): Make static. Conditionalized defintion on
5908 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5909 (proc_syscall, proc_set_kill_on_last_close,
5910 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5911 proc_get_pending_signals, proc_get_signal_actions,
5912 proc_trace_signal, proc_ignore_signal): Delete.
5913
59142012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5915
5916 * coffread.c (cs_section_address): Passing proper argument for
5917 `bfd_get_section_vma'.
5918 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5919 `bfd_get_section_flags'.
5920 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5921 `bfd_get_section_vma'.
5922
59232012-05-16 Tom Tromey <tromey@redhat.com>
5924
5925 PR macros/13205:
5926 * macrotab.h: (macro_define_special): Declare.
5927 (enum macro_special_kind): New.
5928 (struct macro_definition) <argc, replacement>: Update comments.
5929 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5930 (macro_define_object_internal): New function.
5931 (macro_define_object): Use it.
5932 (macro_define_special): New function.
5933 (fixup_definition): New function.
5934 (macro_lookup_definition, foreach_macro_in_scope)
5935 (foreach_macro): Use fixup_definition.
5936 * macroexp.h (macro_stringify): Declare.
5937 * macroexp.c (free_buffer_return_text): New function.
5938 (stringify): Constify "arg".
5939 (macro_stringify): New function.
5940 * dwarf2read.c (macro_start_file): Call macro_define_special.
5941
59422012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5943 Maciej W. Rozycki <macro@mips.com>
5944
5945 * breakpoint.h (bp_location): Add related_address member.
5946 * inferior.h (get_return_value): Take a pointer to struct value
5947 instead of struct type for the function requested.
5948 * value.h (using_struct_return): Likewise.
5949 * gdbarch.sh (return_value): Take a pointer to struct value
5950 instead of struct type for the function requested.
5951 * breakpoint.c (set_breakpoint_location_function): Initialize
5952 related_address for bp_gnu_ifunc_resolver breakpoints.
5953 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5954 requested function's address to gdbarch_return_value.
5955 * eval.c (evaluate_subexp_standard): Pass the requested
5956 function's address to using_struct_return.
5957 * infcall.c (call_function_by_hand): Pass the requested
5958 function's address to using_struct_return and
5959 gdbarch_return_value.
5960 * infcmd.c (get_return_value): Take a pointer to struct value
5961 instead of struct type for the function requested.
5962 (print_return_value): Update accordingly.
5963 (finish_command_continuation): Likewise.
5964 * stack.c (return_command): Pass the requested function's
5965 address to using_struct_return and gdbarch_return_value.
5966 * value.c (using_struct_return): Take a pointer to struct value
5967 instead of struct type for the function requested. Pass the
5968 requested function's address to gdbarch_return_value.
5969 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5970 New function_value member, replacing function_type.
5971 (bpfinishpy_dealloc): Update accordingly.
5972 (bpfinishpy_pre_stop_hook): Likewise.
5973 (bpfinishpy_init): Likewise. Record the requested function's
5974 address.
5975 * mips-tdep.c (mips_fval_reg): New enum.
5976 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5977 words put in GP registers.
5978 (mips_o64_push_dummy_call): Update a comment.
5979 (mips_o32_return_value): Take a pointer to struct value instead
5980 of struct type for the function requested and use it to check if
5981 using the MIPS16 calling convention. Return the designated
5982 general purpose registers for floating-point values returned in
5983 MIPS16 mode.
5984 (mips_o64_return_value): Likewise.
5985 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5986 (ppc_sysv_abi_broken_return_value): Likewise.
5987 (ppc64_sysv_abi_return_value): Likewise.
5988 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5989 value instead of struct type for the function requested.
5990 * amd64-tdep.c (amd64_return_value): Likewise.
5991 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5992 * arm-tdep.c (arm_return_value): Likewise.
5993 * avr-tdep.c (avr_return_value): Likewise.
5994 * bfin-tdep.c (bfin_return_value): Likewise.
5995 * cris-tdep.c (cris_return_value): Likewise.
5996 * frv-tdep.c (frv_return_value): Likewise.
5997 * h8300-tdep.c (h8300_return_value): Likewise.
5998 (h8300h_return_value): Likewise.
5999 * hppa-tdep.c (hppa32_return_value): Likewise.
6000 (hppa64_return_value): Likewise.
6001 * i386-tdep.c (i386_return_value): Likewise.
6002 * ia64-tdep.c (ia64_return_value): Likewise.
6003 * iq2000-tdep.c (iq2000_return_value): Likewise.
6004 * lm32-tdep.c (lm32_return_value): Likewise.
6005 * m32c-tdep.c (m32c_return_value): Likewise.
6006 * m32r-tdep.c (m32r_return_value): Likewise.
6007 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6008 * m68k-tdep.c (m68k_return_value): Likewise.
6009 (m68k_svr4_return_value): Likewise.
6010 * m88k-tdep.c (m88k_return_value): Likewise.
6011 * mep-tdep.c (mep_return_value): Likewise.
6012 * microblaze-tdep.c (microblaze_return_value): Likewise.
6013 * mn10300-tdep.c (mn10300_return_value): Likewise.
6014 * moxie-tdep.c (moxie_return_value): Likewise.
6015 * mt-tdep.c (mt_return_value): Likewise.
6016 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6017 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6018 (ppc_sysv_abi_broken_return_value): Likewise.
6019 (ppc64_sysv_abi_return_value): Likewise.
6020 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6021 * rl78-tdep.c (rl78_return_value): Likewise.
6022 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6023 * rx-tdep.c (rx_return_value): Likewise.
6024 * s390-tdep.c (s390_return_value): Likewise.
6025 * score-tdep.c (score_return_value): Likewise.
6026 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6027 (sh_return_value_fpu): Likewise.
6028 * sh64-tdep.c (sh64_return_value): Likewise.
6029 * sparc-tdep.c (sparc32_return_value): Likewise.
6030 * sparc64-tdep.c (sparc64_return_value): Likewise.
6031 * spu-tdep.c (spu_return_value): Likewise.
6032 * tic6x-tdep.c (tic6x_return_value): Likewise.
6033 * v850-tdep.c (v850_return_value): Likewise.
6034 * vax-tdep.c (vax_return_value): Likewise.
6035 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6036 * xtensa-tdep.c (xtensa_return_value): Likewise.
6037 * gdbarch.c: Regenerate.
6038 * gdbarch.h: Regenerate.
6039
60402012-05-15 Tom Tromey <tromey@redhat.com>
6041
6042 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6043
60442012-05-15 Joel Brobecker <brobecker@adacore.com>
6045
6046 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6047 of command in two error message.
6048
60492012-05-15 Joel Brobecker <brobecker@adacore.com>
6050
6051 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6052
60532012-05-15 Joel Brobecker <brobecker@adacore.com>
6054
6055 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6056
60572012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6058
6059 * NEWS (show auto-load scripts-directory): Add forgotten command.
6060
60612012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6062
6063 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6064 parameters.
6065
60662012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6067
6068 * amd64-tdep.c: Include features/i386/x32.c and
6069 features/i386/x32-avx.c.
6070 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6071 initialize_tdesc_x32_avx.
6072
60732012-05-14 Stan Shebs <stan@codesourcery.com>
6074
6075 Add dynamic printf.
6076 * breakpoint.h (enum bptype): New type bp_dprintf.
6077 (struct breakpoint): New field extra_string.
6078 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6079 (create_breakpoint): Add extra_string arg.
6080 * breakpoint.c (dprintf_breakpoint_ops): New.
6081 (is_breakpoint): Add bp_dprintf.
6082 (bpstat_what): Add dprintf case.
6083 (bptype_string): Ditto.
6084 (print_one_breakpoint_location): Ditto.
6085 (init_bp_location): Ditto.
6086 (bkpt_print_mention): Ditto.
6087 (dprintf_style_enums): New array.
6088 (dprintf_style): New global.
6089 (dprintf_function): New global.
6090 (dprintf_channel): New global.
6091 (update_dprintf_command_list): New function.
6092 (update_dprintf_commands): New function.
6093 (init_breakpoint_sal): Add extra_string argument, handle it.
6094 (create_breakpoint_sal): Add extra_string argument.
6095 (create_breakpoints_sal): Add extra_string argument, update callers.
6096 (find_condition_and_thread): Add extra argument.
6097 (create_breakpoint): Add extra_string argument, record it.
6098 (dprintf_command): New function.
6099 (break_command_1): Add arg to create_breakpoint call.
6100 (handle_gnu_v3_exceptions): Ditto.
6101 (trace_command): Ditto.
6102 (ftrace_command): Ditto.
6103 (strace_command): Ditto.
6104 (bkpt_print_mention): Add dprintf case.
6105 (create_breakpoint_sal_default): Add extra_string argument.
6106 (_initialize_breakpoint): Add new commands.
6107 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6108 * python/py-breakpoint.c (bppy_init): Ditto.
6109 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6110
61112012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6112
6113 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6114
61152012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6116
6117 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6118 unsigned long long.
6119
61202012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6121
6122 Add a new function gdb.find_pc_line to the Python API.
6123 * NEWS (Python Scripting): Add entry about the new function.
6124 * python/python.c (gdbpy_find_pc_line): New function which
6125 implements gdb.find_pc_line.
6126 (GdbMethods): Add entry for the new function.
6127
61282012-05-12 Pedro Alves <palves@redhat.com>
6129
6130 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6131 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6132
61332012-05-12 Eli Zaretskii <eliz@gnu.org>
6134
6135 * inferior.c: Include completer.h
6136 (initialize_inferiors): Set completer of add-inferior to
6137 filename_completer.
6138
61392012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6140
6141 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6142 gdbarch_ptr_bit for x32 core dump.
6143
61442012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6145
6146 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6147 and features/i386/x32-avx-linux.c.
6148
61492012-05-11 Stan Shebs <stan@codesourcery.com>
6150 Kwok Cheung Yeung <kcy@codesourcery.com>
6151
6152 * NEWS: Describe new info os commands.
6153 * common/linux-osdata.c (PID_T, TIME_T): Define.
6154 (MAX_PID_T_STRLEN): New.
6155 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6156 MAX_PID_T_STRLEN.
6157 (command_from_pid): Add comment. Change to use PID_T.
6158 (commandline_from_pid): Change to use PID_T.
6159 (user_from_pid): Add comment.
6160 (get_process_owner): Add comment. Change to use PID_T and
6161 MAX_PID_T_STRLEN.
6162 (get_number_of_cpu_cores): Add comment.
6163 (get_cores_used_by_process): Add comment. Change to use PID_T and
6164 MAX_PID_T_STRLEN.
6165 (linux_xfer_osdata_processes): Change to use PID_T and
6166 MAX_PID_T_STRLEN.
6167 (compare_processes): New function.
6168 (linux_xfer_osdata_processgroups): New function.
6169 (linux_xfer_osdata_threads): Change to use PID_T.
6170 (linux_xfer_osdata_fds): New function.
6171 (format_socket_state, print_sockets): New functions.
6172 (union socket_addr): New union.
6173 (linux_xfer_osdata_isockets): New function.
6174 (time_from_time_t, group_from_gid): New functions.
6175 (linux_xfer_osdata_shm): New function.
6176 (linux_xfer_osdata_sem): New function.
6177 (linux_xfer_osdata_msg): New function.
6178 (linux_xfer_osdata_modules): New function.
6179 (osdata_table): Add new entries.
6180 * common/buffer.c (buffer_xml_printf): Add support for long and
6181 long long format specifiers.
6182
61832012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6184
6185 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6186 (tdesc_x32_avx_linux): Likewise.
6187
61882012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6189
6190 Implement multi-component --with-auto-load-dir.
6191 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6192 entries.
6193 (--with-auto-load-safe-path): Update the default value description.
6194 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6195 New.
6196 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6197 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6198 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6199 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6200 "set auto-load scripts-directory".
6201 * config.in: Regenerate.
6202 * configure: Regenerate.
6203 * configure.ac (--with-auto-load-dir): New configure option.
6204 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6205
62062012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6207
6208 Provide $ddir substitution for --with-auto-load-safe-path.
6209 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6210 entries.
6211 * auto-load.c: Include observer.h.
6212 (auto_load_safe_path_vec_update): Call substitute_path_component for
6213 each component. New variable ddir_subst.
6214 (auto_load_gdb_datadir_changed): New function.
6215 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6216 AUTO_LOAD_SAFE_PATH. New comment.
6217 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6218 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6219 * config.in: Regenerate.
6220 * configure: Regenerate.
6221 * configure.ac (--auto-load-safe-path): Rename
6222 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6223 GDB_DATADIR/auto-load.
6224 * defs.h (substitute_path_component): New declaration.
6225 * top.c: Include observer.h.
6226 (set_gdb_datadir): New function.
6227 (init_main): Install it for "set data-directory".
6228 * utils.c (substitute_path_component): New function.
6229
62302012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6231
6232 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6233 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6234 DEBUG_FILE_DIRECTORY. Handle multiple components of
6235 DEBUG_FILE_DIRECTORY.
6236
62372012-05-10 Tom Tromey <tromey@redhat.com>
6238
6239 * dwarf2read.c (recursively_write_psymbols): New function.
6240 (write_psymtabs_to_index): Use it.
6241
6242 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6243 field.
6244 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6245 (load_partial_comp_unit): Update.
6246 (queue_comp_unit): Add argument 'pretend_language'.
6247 (process_queue): Update.
6248 (psymtab_to_symtab_1): Skip dependencies that have a user.
6249 (load_partial_comp_unit_reader): Give meaning to the 'data'
6250 argument.
6251 (load_full_comp_unit): Add 'pretend_language' argument.
6252 (process_full_comp_unit): Add 'pretend_language' argument. Set
6253 language on CU.
6254 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6255 Update.
6256 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6257 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6258 Update.
6259 (prepare_one_comp_unit): Add 'pretend_language' argument.
6260
6261 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6262 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6263 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6264 (dw2_do_instantiate_symtab): Check whether symtab was read in
6265 before queueing.
6266 (dw2_instantiate_symtab): Add assertion. Call
6267 process_cu_includes.
6268 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6269 (partial_symtab_p): New typedef.
6270 (set_partial_user): New function.
6271 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6272 (scan_partial_symbols): Add imported CU to imported_symtabs.
6273 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6274 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6275 (get_symtab, recursively_compute_inclusions)
6276 (compute_symtab_includes, process_cu_includes)
6277 (process_imported_unit_die): New functions.
6278 (process_die) <DW_TAG_imported_unit>: New case.
6279 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6280
6281 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6282 comment.
6283 (struct partial_die_info) <locdesc>: Remove.
6284 <d>: New field.
6285 (process_psymtab_comp_unit): Add 'read_partial' argument.
6286 Update.
6287 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6288 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6289 (add_partial_symbol): Update.
6290 (process_die): Handle DW_TAG_partial_unit.
6291 (read_file_scope): Update comment.
6292 (load_partial_dies): Handle DW_TAG_imported_unit.
6293 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6294 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6295
62962012-05-10 Tom Tromey <tromey@redhat.com>
6297
6298 * cc-with-dwz.sh: New file.
6299
63002012-05-10 Tom Tromey <tromey@redhat.com>
6301
6302 * symtab.h (struct symtab) <includes, user>: New fields.
6303 * block.h (struct block_iterator) <d, idx, which>: New fields.
6304 * block.c (initialize_block_iterator, find_iterator_symtab)
6305 (block_iterator_step, block_iter_name_step)
6306 (block_iter_match_step): New functions.
6307 (block_iterator_first, block_iterator_next)
6308 (block_iter_name_first, block_iter_name_next)
6309 (block_iter_match_first, block_iter_match_next): Rewrite.
6310 (get_block_symtab): New function.
6311
63122012-05-10 Tom Tromey <tromey@redhat.com>
6313
6314 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6315 set_block_symtab.
6316 * jit.c (finalize_symtab): Use allocate_global_block,
6317 set_block_symtab.
6318 * buildsym.c (finish_block_internal): New function, from old
6319 finish_block.
6320 (finish_block): Rewrite.
6321 (end_symtab): Use finish_block_internal, set_block_symtab.
6322 * block.h (struct global_block): New.
6323 (allocate_global_block, set_block_symtab): Declare.
6324 * block.c (allocate_global_block, set_block_symtab): New
6325 functions.
6326
63272012-05-10 Tom Tromey <tromey@redhat.com>
6328
6329 * psymtab.c (partial_map_expand_apply): Add assertion.
6330 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6331 (psymtab_to_symtab): Find unshared psymtab.
6332 (dump_psymtab): Print including psymtabs.
6333 (recursively_search_psymtabs): New function.
6334 (expand_symtabs_matching_via_partial): Use it.
6335 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6336 fields.
6337 (enum psymtab_search_status): New.
6338
63392012-05-10 Tom Tromey <tromey@redhat.com>
6340
6341 * tracepoint.c (scope_info): Update.
6342 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6343 (find_pc_sect_symtab, search_symbols)
6344 (default_make_symbol_completion_list_break_on)
6345 (make_file_symbol_completion_list): Update.
6346 * symmisc.c (dump_symtab_1): Update.
6347 * stack.c (print_frame_args, iterate_over_block_locals)
6348 (print_frame_labels, iterate_over_block_arg_vars): Update.
6349 * python/py-block.c (block_object) <dict>: Remove.
6350 <block>: New field.
6351 <iter>: Change type.
6352 (blpy_iter): Update.
6353 (blpy_block_syms_iternext): Update.
6354 * psymtab.c (map_block): Use block iterators.
6355 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6356 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6357 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6358 * infrun.c (check_exception_resume): Update.
6359 * cp-support.c (make_symbol_overload_list_block): Update.
6360 * coffread.c (patch_opaque_types): Update.
6361 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6362 * block.h (struct block_iterator): New.
6363 (block_iterator_first, block_iterator_next, block_iter_name_first)
6364 (block_iter_name_next, block_iter_match_first)
6365 (block_iter_match_next): Declare.
6366 (ALL_BLOCK_SYMBOLS): Redefine.
6367 * block.c (block_iterator_first, block_iterator_next)
6368 (block_iter_name_first, block_iter_name_next)
6369 (block_iter_match_first, block_iter_match_next): New functions.
6370 * ada-lang.c (ada_add_block_symbols)
6371 (ada_make_symbol_completion_list): Use block iterator.
6372
63732012-05-10 Tom Tromey <tromey@redhat.com>
6374
6375 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6376 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6377 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6378 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6379 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6380 Update.
6381
63822012-05-10 Joel Brobecker <brobecker@adacore.com>
6383
6384 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6385 print-file-var-lib2.c, print-file-var-main.c and
6386 print-file-var.exp (located in gdb/testsuite/gdb.base).
6387
63882012-05-10 Joel Brobecker <brobecker@adacore.com>
6389
6390 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6391 try locating the symbol in the symbol's own objfile first, before
6392 extending the search to all objfiles.
6393 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6394 out of lookup_symbol_aux_symtabs.
6395 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6396 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6397 Do not search EXCLUDE_OBJFILE.
6398 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6399 (lookup_symbol_global): Search for matches in the block's objfile
6400 first, before searching all other objfiles.
6401
64022012-05-10 Tristan Gingold <gingold@adacore.com>
6403
6404 * printcmd.c (set_command): Add pre/post inc/dec.
6405
64062012-05-09 Frank Ch. Eigler <fche@redhat.com>
6407
6408 * gdb.1: Document -ex option.
6409
64102012-05-09 Joel Brobecker <brobecker@adacore.com>
6411
6412 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6413 * inferior.h (AT_SYMBOL): Delete.
6414
64152012-05-09 Joel Brobecker <brobecker@adacore.com>
6416
6417 * mips-tdep.c (mips_push_dummy_code): New function.
6418 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6419 ON_STACK and install mips_push_dummy_code as our gdbarch
6420 push_dummy_code routine.
6421
64222012-05-09 Pedro Alves <palves@redhat.com>
6423
6424 * target.c (set_maintenance_target_async_permitted): Rename to ...
6425 (set_target_async_command): ... this.
6426 (show_maintenance_target_async_permitted): Rename to ...
6427 (show_target_async_command): ... this.
6428 (initialize_targets): Adjust.
6429
64302012-05-08 Doug Evans <dje@google.com>
6431
6432 * go-exp.y (classify_name): Add missing assignment of fields of
6433 yylval.ssym.
6434
64352012-05-08 Eli Zaretskii <eliz@gnu.org>
6436
6437 Display the ">" prompt in interactive mode while reading canned
6438 commands, even when the current interpreter is MI.
6439
6440 * interps.c (interp_set_temp): New function.
6441
6442 * interps.h (interp_set_temp): Add prototype.
6443
6444 * cli/cli-script.c (restore_interp): New cleanup function.
6445 (read_command_lines): Temporarily override the current interpreter
6446 with CLI and arrange for restoring the original one.
6447
64482012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6449
6450 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6451
64522012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6453
6454 * probe.c (parse_probes): Move conditional to check for
6455 debuginfo files from here...
6456 * stap-probe.c (stap_get_probes): ... to here.
6457
64582012-05-07 Mark Kettenis <kettenis@gnu.org>
6459 H.J. Lu <hongjiu.lu@intel.com>
6460
6461 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6462 `movl %esp, %ebp' for the X32 ABI.
6463
64642012-05-07 Tom Tromey <tromey@redhat.com>
6465
6466 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6467 get_DW_TAG_name.
6468 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6469 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6470 (dwarf_stack_op_name): Remove.
6471 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6472 (decode_locdesc): Use get_DW_OP_name.
6473 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6474 (dwarf2_compile_expr_to_ax): Likewise.
6475 (disassemble_dwarf_expression): Likewise.
6476 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6477
64782012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6479
6480 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6481 (sh_linux_sigtramp_cache): New function.
6482 (sh_linux_sigreturn_init): New function.
6483 (sh_linux_rt_sigreturn_init): New function.
6484 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6485 patterns.
6486 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6487 syscall codes.
6488 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6489 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6490 (sh_linux_init_abi): Add init calls to register new tramp_frame
6491 definitions under 32-bit SH, update comments.
6492
64932012-05-07 Pedro Alves <palves@redhat.com>
6494
6495 PR gdb/10952
6496
6497 * amd64-linux-tdep.c: Include glibc-tdep.h.
6498 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6499 gdbarch_skip_solib_resolver callback.
6500
65012012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6502
6503 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6504 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6505 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6506 (add_auto_load_safe_path): Change the error message.
6507 (_initialize_auto_load): Change the "safe-path" help text.
6508 * configure: Regenerate
6509 * configure.ac (--without-auto-load-safe-path): Set
6510 WITH_AUTO_LOAD_SAFE_PATH to /.
6511
65122012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6513
6514 * stap-probe.h: Do not include unecessary `probe.h'.
6515
65162012-05-05 Alan Modra <amodra@gmail.com>
6517
6518 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6519 bfd_und_section_ptr.
6520 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6521 and bfd_com_section_ptr.
6522
65232012-05-04 Joel Brobecker <brobecker@adacore.com>
6524
6525 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6526
65272012-05-04 Joel Brobecker <brobecker@adacore.com>
6528
6529 * windows-nat.h (segment_register_p_ftype): New typedef.
6530 (windows_set_segment_register_p): Add declaration.
6531 * windows-nat.c (segment_register_p): New static global.
6532 (windows_set_segment_register_p): New function.
6533 (do_windows_fetch_inferior_registers): Add special handling
6534 for segment registers.
6535 * amd64-windows-nat.c: #include "amd64-tdep.h".
6536 (amd64_windows_segment_register_p): New function.
6537 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6538 * i386-windows-nat.c: #include "i386-tdep.h".
6539 (i386_windows_segment_register_p): New function.
6540 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6541
65422012-05-04 Tristan Gingold <gingold@adacore.com>
6543
6544 * printcmd.c (set_command): Emit a warning if the expression is not
6545 an assignment.
6546
65472012-05-03 Joel Brobecker <brobecker@adacore.com>
6548
6549 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6550 Make static.
6551
65522012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6553
6554 * stap-probe.c (stap_is_operator): Change declaration.
6555 (stap_get_opcode): Change return value.
6556 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6557 `stap_parse_argument_1'.
6558
65592012-05-03 Pedro Alves <pedro@codesourcery.com>
6560
6561 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6562 debug log.
6563
65642012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6565
6566 Add two new methods global_block and static_block to gdb.Symtab
6567 objects.
6568 * NEWS (Python scripting): Add entry about the new methods.
6569 * python/py-symtab.c (stpy_global_block): New function which
6570 implements the gdb.Symtab.global_block() method.
6571 (stpy_static_block): New function which implements the
6572 gdb.Symtab.static_block() method.
6573 (symtab_object_methods): Add entries for the two new methods.
6574
65752012-05-03 Doug Evans <dje@google.com>
6576
6577 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6578 files.
6579
65802012-05-03 Yao Qi <yao@codesourcery.com>
6581
6582 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6583 space.
6584 (i386_process_record): Ditto.
6585
65862012-05-02 Joel Brobecker <brobecker@adacore.com>
6587
6588 * infcall.c (unwind_on_signal_p): Make static.
6589
65902012-05-02 Joel Brobecker <brobecker@adacore.com>
6591
6592 * sol-thread.c (solaris_pid_to_str): Make static.
6593 (_initialize_sol_thread): Add prototype.
6594
65952012-05-02 Joel Brobecker <brobecker@adacore.com>
6596
6597 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6598
65992012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6600
6601 * MAINTAINERS: Remove myself.
6602
66032012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6604
6605 Fix --without-auto-load-safe-path for MS-Windows host platform.
6606 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6607
66082012-05-02 Eli Zaretskii <eliz@gnu.org>
6609
6610 * gdb_curses.h: Undefine KEY_EVENT before including curses
6611 headers. Move "#undef MOUSE_MOVED" before any curses header
6612 inclusion.
6613
66142012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6615
6616 * features/i386/i386-mmx-linux.c: Regenerate.
6617 * features/rs6000/powerpc-32.c: Likewise.
6618 * features/rs6000/powerpc-32l.c: Likewise.
6619 * features/rs6000/powerpc-403.c: Likewise.
6620 * features/rs6000/powerpc-403gc.c: Likewise.
6621 * features/rs6000/powerpc-405.c: Likewise.
6622 * features/rs6000/powerpc-505.c: Likewise.
6623 * features/rs6000/powerpc-601.c: Likewise.
6624 * features/rs6000/powerpc-602.c: Likewise.
6625 * features/rs6000/powerpc-603.c: Likewise.
6626 * features/rs6000/powerpc-604.c: Likewise.
6627 * features/rs6000/powerpc-64.c: Likewise.
6628 * features/rs6000/powerpc-64l.c: Likewise.
6629 * features/rs6000/powerpc-750.c: Likewise.
6630 * features/rs6000/powerpc-860.c: Likewise.
6631 * features/rs6000/powerpc-e500.c: Likewise.
6632 * features/rs6000/powerpc-e500l.c: Likewise.
6633 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6634 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6635 * features/rs6000/rs6000.c: Likewise.
6636
66372012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6638
6639 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6640 variable.
6641 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6642 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6643 (stap_parse_argument) <e>: Likewise.
6644 (handle_stap_probe) <byte_order>: Likewise.
6645
66462012-04-30 Doug Evans <dje@google.com>
6647
6648 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6649 init_and_read_dies_worker. All callers updated.
6650 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6651 replaced with init_cutu_and_read_dies.
6652 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6653 (find_partial_die): Remove FIXME. Don't free current CU.
6654
66552012-04-30 Sterling Augustine <saugustine@google.com>
6656
6657 * contrib: New directory.
6658 * contrib/test_pubnames_and_indexes.py: New file.
6659
66602012-04-30 Doug Evans <dje@google.com>
6661
6662 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6663 All callers updated.
6664 (init_cu_die_reader): Verify the section is non-empty.
6665 (dwarf_decode_line_header): Don't dereference section->asection
6666 until we know the section is present.
6667
66682012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6669
6670 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6671 probes.
6672
66732012-04-29 Yao Qi <yao@codesourcery.com>
6674
6675 * gdb-code-style.el: New hook gdb-markup-hook
6676 and gdb-comment-hook.
6677
66782012-04-28 Doug Evans <dje@google.com>
6679
6680 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6681 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6682 objfile->obfd.
6683 * symfile.h (dwarf2_debug_sections): New member addr.
6684 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6685 (ctx_no_get_addr_index): New function.
6686 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6687 (ctx_no_get_addr_index): Declare.
6688 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6689 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6690 (dwarf_expr_ctx_funcs): Update.
6691 (needs_get_addr_index): New function.
6692 (needs_frame_ctx_funcs): Update.
6693 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6694 * dwarf2read.c: #include "gdbcore.h".
6695 (dwarf2_per_objfile): New members addr, dwo_files.
6696 (dwarf2_elf_names): Add entry for addr.
6697 (struct dwo_section_names): New type.
6698 (dwo_section_names): New static global.
6699 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6700 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6701 old debug_types_section member updated to use this.
6702 Rename member debug_types_section to info_or_types_section,
6703 all uses updated.
6704 (signatured_type): Rename member type_offset to type_offset_in_tu,
6705 all uses updated. New member type_offset_in_section.
6706 (struct dwo_sections): New type.
6707 (struct dwo_unit): New type.
6708 (struct dwo_file): New type.
6709 (die_reader_specs): New member dwo_file.
6710 (dwarf2_locate_sections): Watch for .debug_addr.
6711 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6712 (dwarf2_read_section): Get bfd of section from bfd's asection,
6713 instead of objfile.
6714 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6715 (create_signatured_type_table_from_index): Initialize
6716 sig_type->info_or_types_section.
6717 (dw2_get_file_names): Statement lists for type units with DWO files
6718 live in the DWO file.
6719 (create_debug_types_hash_table): New function.
6720 (create_all_type_units): Rewrite.
6721 (init_cu_die_reader): New arg dwo_file, all callers updated.
6722 (init_and_read_dies_worker): Get section from
6723 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6724 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6725 continue reading the CU/TU from there.
6726 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6727 updated. Get section from this_cu->info_or_types_section.
6728 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6729 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6730 DW_FORM_GNU_str_index.
6731 (hash_dwo_file, eq_dwo_file): New functions.
6732 (allocate_dwo_file_hash_table): New function.
6733 (hash_dwo_unit, eq_dwo_unit): New functions.
6734 (allocate_dwo_unit_table): New function.
6735 (dwarf2_locate_dwo_sections): New function.
6736 (struct create_dwo_info_table_data): New type.
6737 (create_debug_info_hash_table_reader): New function.
6738 (create_debug_info_hash_table): New function.
6739 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6740 (lookup_dwo_file): New function.
6741 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6742 (free_dwo_file, free_dwo_file_cleanup): New functions.
6743 (free_dwo_file_from_slot, free_dwo_files): New functions.
6744 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6745 (dwarf2_record_block_ranges): Ditto.
6746 (read_partial_die): Ditto.
6747 (process_enumeration_scope): Update to use type_offset_in_section.
6748 (read_full_die_1): New function.
6749 (read_full_die): Rewrite.
6750 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6751 DW_FORM_GNU_str_index.
6752 (read_addr_index_1, read_addr_index): New functions.
6753 (read_addr_index_from_leb128): New function.
6754 (struct dwarf2_read_addr_index_data): New type.
6755 (dwarf2_read_addr_index_reader): New function.
6756 (dwarf2_read_addr_index): New function.
6757 (read_str_index): New function.
6758 (leb128_size): New function.
6759 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6760 If processing a type unit from a DWO file, get the line section
6761 from the DWO file.
6762 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6763 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6764 DW_FORM_GNU_str_index.
6765 (lookup_die_type): Check whether section offset of type's die is
6766 known before looking it up. Remove assert. Condition can
6767 legimately happen for inter-cu type references.
6768 (dwarf_attr_name): Handle Fission attributes.
6769 (dwarf_form_name): Handle Fission forms.
6770 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6771 DW_FORM_GNU_str_index.
6772 (follow_die_sig): Update to use type_offset_in_section.
6773 (decode_locdesc): New case DW_OP_GNU_addr_index.
6774 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6775 DW_FORM_GNU_str_index.
6776 (cu_debug_loc_section): New function.
6777 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6778 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6779 Free DWO files if present.
6780 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6781
6782 Refactor DIE reading.
6783 * dwarf2read.c (dwarf2_per_objfile): Replace members
6784 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6785 (die_reader_specs): New member "die_section". Temporarily make
6786 member "buffer" non-const, pending constifying all info_ptr uses.
6787 (die_reader_func_ftype): New typedef.
6788 (dw2_get_file_names_reader): New function.
6789 (dw2_get_file_names): Rewrite.
6790 (read_and_check_type_unit_head): Rename arg type_offset to
6791 type_offset_in_tu.
6792 (create_all_type_units): Improve debugging message.
6793 Improve dummy type unit check.
6794 (init_cu_die_reader): New arg "section". All callers updated.
6795 (init_and_read_dies_worker): New function.
6796 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6797 (init_cutu_and_read_dies_no_follow): New function.
6798 (init_cutu_and_read_dies_simple): New function.
6799 (process_psymtab_comp_unit_reader): New function.
6800 (process_psymtab_comp_unit): Delete args section,
6801 is_debug_types_section. Rewrite. All callers updated.
6802 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6803 All callers updated. Rewrite.
6804 (load_partial_comp_unit_reader): New function.
6805 (load_partial_comp_unit): Rewrite.
6806 (skip_children): New arg reader. Delete args buffer, cu.
6807 All callers updated.
6808 (skip_one_die): New arg reader. Delete args buffer, cu.
6809 All callers updated.
6810 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6811 All callers updated.
6812 (load_full_comp_unit_reader): New function.
6813 (load_full_comp_unit): Rewrite.
6814 (read_comp_unit): Delete.
6815 (read_die_and_children_1): Delete, contents moved ...
6816 (read_die_and_children): ... here.
6817 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6818 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6819 All callers updated.
6820 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6821 All callers updated.
6822 (find_partial_die): Rewrite load_all_dies support.
6823 (read_attribute_value): New arg reader. Delete args abfd, cu.
6824 All callers updated.
6825 (read_attribute): New arg reader. Delete args abfd, cu.
6826 All callers updated.
6827 (load_full_type_unit): Add assert.
6828 (read_signatured_type_reader): New function.
6829 (read_signatured_type): Rewrite.
6830 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6831 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6832 All callers updated. Set per_cu->cu = NULL after freeing it.
6833 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6834 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6835 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6836 (set_die_type): Update.
6837 (get_die_type_at_offset): Update.
6838 (read_file_scope): Call prepare_one_comp_unit.
6839 (read_type_unit_scope): Ditto.
6840 (prepare_one_comp_unit): Set producer if present.
6841
68422012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6843
6844 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6845 gettext function on `error'.
6846
68472012-04-27 Doug Evans <dje@google.com>
6848
6849 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6850 is empty.
6851
68522012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6853 Tom Tromey <tromey@redhat.com>
6854
6855 * breakpoint.c (struct breakpoint_objfile_data)
6856 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6857 <exception_probes>: New fields.
6858 (free_breakpoint_probes): New function.
6859 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6860 `_Unwind_DebugHook'.
6861 (create_exception_master_breakpoint): Likewise.
6862 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6863 * infrun.c: Including necessary header files for handling SystemTap
6864 probes.
6865 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6866 via SystemTap probes.
6867 (check_exception_resume): Remove `func' argument. Handle exception
6868 unwinding breakpoint set via a SystemTap probe.
6869 (insert_exception_resume_from_probe): New function.
6870
68712012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6872 Tom Tromey <tromey@redhat.com>
6873 Jan Kratochvil <jan.kratochvil@redhat.com>
6874
6875 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6876 (COMMON_OBS): Likewise.
6877 (HFILES_NO_SRCDIR): Add `probe'.
6878 * NEWS: Mention support for static and SystemTap probes.
6879 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6880 SystemTap probes' arguments parser.
6881 * arm-linux-tdep.c: Including headers needed to perform the parsing
6882 of SystemTap probes' arguments.
6883 (arm_stap_is_single_operand): New function.
6884 (arm_stap_parse_special_token): Likewise.
6885 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6886 probes' arguments parser.
6887 * ax-gdb.c (require_rvalue): Removing static declaration.
6888 (gen_expr): Likewise.
6889 * ax-gdb.h (gen_expr): Declaring function.
6890 (require_rvalue): Likewise.
6891 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6892 (bkpt_probe_breakpoint_ops): New variable.
6893 (momentary_breakpoint_from_master): Set the `probe' value.
6894 (add_location_to_breakpoint): Likewise.
6895 (break_command_1): Using proper breakpoint_ops according to the
6896 argument passed by the user in the command line.
6897 (bkpt_probe_insert_location): New function.
6898 (bkpt_probe_remove_location): Likewise.
6899 (bkpt_probe_create_sals_from_address): Likewise.
6900 (bkpt_probe_decode_linespec): Likewise.
6901 (tracepoint_probe_create_sals_from_address): Likewise.
6902 (tracepoint_probe_decode_linespec): Likewise.
6903 (tracepoint_probe_breakpoint_ops): New variable.
6904 (trace_command): Using proper breakpoint_ops according to the
6905 argument passed by the user in the command line.
6906 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6907 static probes on breakpoints and tracepoints.
6908 * breakpoint.h (struct bp_location) <probe>: New field.
6909 * cli-utils.c (skip_spaces_const): New function.
6910 (extract_arg): Likewise.
6911 * cli-utils.h (skip_spaces_const): Likewise.
6912 (extract_arg): Likewise.
6913 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6914 * configure.ac: Append `stap-probe.o' to be generated when ELF
6915 support is present.
6916 * configure: Regenerate.
6917 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6918 * elfread.c: Include `probe.h' and `arch-utils.h'.
6919 (probe_key): New variable.
6920 (elf_get_probes): New function.
6921 (elf_get_probe_argument_count): Likewise.
6922 (elf_evaluate_probe_argument): Likewise.
6923 (elf_compile_to_ax): Likewise.
6924 (elf_symfile_relocate_probe): Likewise.
6925 (stap_probe_key_free): Likewise.
6926 (elf_probe_fns): New variable.
6927 (elf_sym_fns): Add `sym_probe_fns' value.
6928 (elf_sym_fns_lazy_psyms): Likewise.
6929 (elf_sym_fns_gdb_index): Likewise.
6930 (_initialize_elfread): Initialize objfile cache for static
6931 probes.
6932 * gdb_vecs.h (struct probe): New forward declaration.
6933 (probe_p): New VEC declaration.
6934 * gdbarch.c: Regenerate.
6935 * gdbarch.h: Regenerate.
6936 * gdbarch.sh (stap_integer_prefix): New variable.
6937 (stap_integer_suffix): Likewise.
6938 (stap_register_prefix): Likewise.
6939 (stap_register_suffix): Likewise.
6940 (stap_register_indirection_prefix): Likewise.
6941 (stap_register_indirection_suffix): Likewise.
6942 (stap_gdb_register_prefix): Likewise.
6943 (stap_gdb_register_suffix): Likewise.
6944 (stap_is_single_operand): New function.
6945 (stap_parse_special_token): Likewise.
6946 (struct stap_parse_info): Forward declaration.
6947 * i386-tdep.c: Including headers needed to perform the parsing
6948 of SystemTap probes' arguments.
6949 (i386_stap_is_single_operand): New function.
6950 (i386_stap_parse_special_token): Likewise.
6951 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6952 probes' arguments parser.
6953 * i386-tdep.h (i386_stap_is_single_operand): New function.
6954 (i386_stap_parse_special_token): Likewise.
6955 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6956 * mipsread.c (ecoff_sym_fns): Likewise.
6957 * objfiles.c (objfile_relocate1): Support relocation for static
6958 probes.
6959 * parse.c (prefixify_expression): Remove static declaration.
6960 (initialize_expout): Likewise.
6961 (reallocate_expout): Likewise.
6962 * parser-defs.h (initialize_expout): Declare function.
6963 (reallocate_expout): Likewise.
6964 (prefixify_expression): Likewise.
6965 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6966 of SystemTap probes' arguments.
6967 (ppc_stap_is_single_operand): New function.
6968 (ppc_stap_parse_special_token): Likewise.
6969 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6970 probes' arguments parser.
6971 * probe.c: New file, for generic statically defined probe support.
6972 * probe.h: Likewise.
6973 * s390-tdep.c: Including headers needed to perform the parsing of
6974 SystemTap probes' arguments.
6975 (s390_stap_is_single_operand): New function.
6976 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6977 probes' arguments parser.
6978 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6979 * stap-probe.c: New file, for SystemTap probe support.
6980 * stap-probe.h: Likewise.
6981 * symfile.h: Include `gdb_vecs.h'.
6982 (struct sym_probe_fns): New struct.
6983 (struct sym_fns) <sym_probe_fns>: New field.
6984 * symtab.c (init_sal): Initialize `probe' field.
6985 * symtab.h (struct probe): Forward declaration.
6986 (struct symtab_and_line) <probe>: New field.
6987 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6988 locations.
6989 (stop_tracing): Likewise.
6990 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6991
69922012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6993 Tom Tromey <tromey@redhat.com>
6994
6995 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6996 and to compile agent expressions.
6997 * infrun.c (siginfo_make_value): New argument `ignore'.
6998 (siginfo_funcs): New struct.
6999 (_initialize_infrun): New argument when calling
7000 `create_internalvar_type_lazy'.
7001 * thread.c (thread_id_make_value): New argument `ignore'.
7002 (thread_funcs): New struct.
7003 (_initialize_thread): New argument when calling
7004 `create_internalvar_type_lazy'.
7005 * tracepoint.c (sdata_make_value): New argument `ignore'.
7006 (sdata_funcs): New struct.
7007 (_initialize_tracepoint): New argument when calling
7008 `create_internalvar_type_lazy'.
7009 * value.c (make_value): New struct.
7010 (create_internalvar_type_lazy): New argument `data'.
7011 (compile_internalvar_to_ax): New function.
7012 (value_of_internalvar): Properly handling `make_value' case.
7013 (clear_internalvar): Likewise.
7014 (show_convenience): Adding `TRY_CATCH' block.
7015 * value.h (internalvar_make_value): Delete, replace by...
7016 (struct internalvar_funcs): ... this.
7017 (create_internalvar_type_lazy) <fun>: Delete argument.
7018 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7019 (compile_internalvar_to_ax): New function.
7020 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7021 (tlb_funcs): New struct.
7022 (_initialize_windows_tdep): New argument when calling
7023 `create_internalvar_type_lazy'.
7024
70252012-04-27 Mark Wielaard <mjw@redhat.com>
7026
7027 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7028 see whether it is an address or a constant offset from DW_AT_low_pc.
7029 (dwarf2_record_block_ranges): Likewise.
7030 (read_partial_die): Likewise.
7031
70322012-04-26 Mark Wielaard <mjw@redhat.com>
7033
7034 * MAINTAINERS (Write After Approval): Add myself to the list.
7035
70362012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7037
7038 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7039 (proc_prettyprint_signal): Likewise.
7040 (proc_prettyprint_faultset): Likewise.
7041 (proc_prettyprint_fault): Likewise.
7042 (proc_prettyprint_actionset): Likewise.
7043 (proc_prettyprint_flags): Move to new proc-flags.c section.
7044 (proc_prettyfprint_flags): New prototype.
7045 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7046 (proc_syscall, proc_cursig): Likewise.
7047 (proc_set_kill_on_last_close): Likewise.
7048 (proc_unset_kill_on_last_close): Likewise.
7049 (proc_set_watchpoint): Make static.
7050 (proc_delete_dead_threads): Likewise.
7051 (procfs_set_watchpoint): Likewise.
7052 (_initialize_procfs): Add prototype.
7053 * proc-events.c: Include proc-utils.h.
7054 (init_syscall_table): Make static.
7055 * proc-api.c (_initialize_proc_api): Add prototype.
7056 * proc-flags.c: Include proc-utils.h.
7057
70582012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7059
7060 * configure.ac: Add AC_ARG_PROGRAM.
7061 * configure: Regenerate.
7062
70632012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7064
7065 Fix DW_AT_lower_bound defaults for DWARF-4+.
7066 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7067 high. New variable low_default_is_valid. Implement DWARF-4+
7068 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7069 no default by the DWARF standard.
7070
70712012-04-26 Maciej W. Rozycki <macro@mips.com>
7072 Maciej W. Rozycki <macro@codesourcery.com>
7073
7074 * infrun.c (handle_inferior_event): Move the check for return
7075 trampolines ahead of the check for function trampolines.
7076 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7077 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7078 (mips_str_mips16_ret_stub): Likewise.
7079 (mips_str_call_fp_stub): Likewise.
7080 (mips_str_call_stub): Likewise.
7081 (mips_str_fn_stub): Likewise.
7082 (mips_str_pic): Likewise.
7083 (mips_in_frame_stub): New function.
7084 (mips_unwind_pc): Return the return address rather than the PC
7085 if the PC of an intermediate frame is inside a call thunk.
7086 (mips_is_stub_suffix): New function.
7087 (mips_is_stub_mode): Likewise.
7088 (mips_get_mips16_fn_stub_pc): Likewise.
7089 (mips_skip_mips16_trampoline_code): Update to handle all the
7090 currently generated stub types. Don't recurse into __fn_stub
7091 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7092 Use cooked register accesses.
7093 (mips_in_return_stub): Reintroduce function.
7094 (mips_skip_trampoline_code): Traverse trampolines recursively.
7095 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7096
70972012-04-26 Joel Brobecker <brobecker@adacore.com>
7098
7099 GDB 7.4.1 released.
7100
71012012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7102
7103 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7104 * features/arm-with-m-vfp-d16.xml: New file. Describes
7105 Cortex-M with VFPv4-sp-d16 FPU register layout.
7106 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7107 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7108 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7109 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7110 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7111
71122012-04-25 Doug Evans <dje@google.com>
7113
7114 * cli/cli-decode.c (print_doc_line): Use stream instead of
7115 current_uiout.
7116
71172012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7118
7119 * features/arm-with-iwmmxt.c: Regenerate.
7120 * features/arm-with-m-fpa-layout.c: Likewise.
7121 * features/arm-with-m.c: Likewise.
7122 * features/arm-with-neon.c: Likewise.
7123 * features/arm-with-vfpv2.c: Likewise.
7124 * features/arm-with-vfpv3.c: Likewise.
7125 * features/mips-dsp-linux.c: Likewise.
7126 * features/mips-linux.c: Likewise.
7127 * features/mips64-dsp-linux.c: Likewise.
7128 * features/mips64-linux.c: Likewise.
7129 * features/s390-linux32.c: Likewise.
7130 * features/s390-linux32v1.c: Likewise.
7131 * features/s390-linux32v2.c: Likewise.
7132 * features/s390-linux64.c: Likewise.
7133 * features/s390-linux64v1.c: Likewise.
7134 * features/s390-linux64v2.c: Likewise.
7135 * features/s390x-linux64.c: Likewise.
7136 * features/s390x-linux64v1.c: Likewise.
7137 * features/s390x-linux64v2.c: Likewise.
7138 * features/tic6x-c62x-linux.c: Likewise.
7139 * features/tic6x-c62x.c: Likewise.
7140 * features/tic6x-c64x-linux.c: Likewise.
7141 * features/tic6x-c64x.c: Likewise.
7142 * features/tic6x-c64xp-linux.c: Likewise.
7143 * features/tic6x-c64xp.c: Likewise.
7144 * target-descriptions.c: Only generate `field_type' and `type'
7145 variables when needed.
7146
71472012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7148
7149 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7150
71512012-04-25 Doug Evans <dje@google.com>
7152
7153 Initial pass at Go language support.
7154 * NEWS: Mention Go.
7155 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7156 go-valprint.c.
7157 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7158 (YYFILES): Add go-exp.c.
7159 (YYOBJ): Add go-exp.o.
7160 (local-maintainer-clean): Delete go-exp.c.
7161 * defs.h (enum language): Add language_go.
7162 * dwarf2read.c: #include "go-lang.h".
7163 (fixup_go_packaging): New function.
7164 (process_full_comp_unit): Call it when processing Go CUs.
7165 (dwarf2_physname): Add Go support.
7166 (read_file_scope): Handle missing language spec for GNU Go.
7167 (set_cu_language): Handle DW_LANG_Go.
7168 * go-exp.y: New file.
7169 * go-lang.h: New file.
7170 * go-lang.c: New file.
7171 * go-typeprint.c: New file.
7172 * go-valprint.c: New file.
7173 * symtab.c: #include "go-lang.h".
7174 (symbol_set_language): Handle language_go.
7175 (symbol_find_demangled_name, symbol_set_names): Ditto.
7176 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7177
71782012-04-24 Jim Meyering <meyering@redhat.com>
7179
7180 avoid a few strncpy-induced buffer overruns
7181 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7182 fname and psargs before trying to concatenate.
7183 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7184 "name" before applying strchr.
7185
71862012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7187
7188 * CONTRIBUTE: Use unified diff instead of context diff when
7189 generating patches.
7190
71912012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7192
7193 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7194 code. Handle JR.HB correctly.
7195
71962012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7197
7198 * mips-tdep.c
7199 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7200 with the other MIPS16 helpers.
7201
72022012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7203
7204 * observer.sh: Conditionally declare `args', thus cleaning up
7205 unused instances of this variable.
7206
72072012-04-24 Yao Qi <yao@codesourcery.com>
7208
7209 Revert this patch to allow breakpoint always-inserted
7210 in record target.
7211 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7212 * breakpoint.c: Include record.h.
7213 (breakpoints_always_inserted_mode): Return false when the record
7214 target is in use.
7215
7216 * breakpoint.c (iterate_over_bp_locations): New.
7217 * breakpoint.h: Declare.
7218 New typedef walk_bp_location_callback.
7219 * record.c (record_open): Call record_init_record_breakpoints.
7220 (record_sync_record_breakpoints): New.
7221 (record_init_record_breakpoints): New.
7222 * NEWS: Mention supporting breakpoint always-inserted mode in
7223 record target.
7224
72252012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7226
7227 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7228 any thread.
7229
72302012-04-24 Yao Qi <yao@codesourcery.com>
7231
7232 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7233 (is_catchpoint): ... it.
7234 (print_one_breakpoint_location): Caller update.
7235 * breakpoint.h: Update declaration.
7236
72372012-04-23 David S. Miller <davem@davemloft.net>
7238
7239 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7240
72412012-04-23 Tom Tromey <tromey@redhat.com>
7242
7243 * buildsym.c (add_free_pendings): Remove.
7244 * buildsym.h (add_free_pendings): Remove.
7245
72462012-04-23 Doug Evans <dje@google.com>
7247
7248 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7249 attr.u.unsnd instead of attr.u.addr.
7250 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7251 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7252 DW_FORM_ref_udata.
7253 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7254 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7255 DW_FORM_ref_udata.
7256 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7257
72582012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7259
7260 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7261 (mips_o32_return_value): Likewise.
7262 (mips_o64_return_value): Likewise.
7263
72642012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7265
7266 * ada-lang.c (ada_evaluate_subexp): Add cases for
7267 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7268 their treatment in eval.c.
7269
72702012-04-21 David S. Miller <davem@davemloft.net>
7271
7272 * sparc-tdep.c (X_DISP10): Define.
7273 (sparc_analyze_control_transfer): Handle compare-and-branch.
7274
72752012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7276
7277 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7278 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7279
72802012-04-20 Nigel Stephens <nigel@mips.com>
7281 Maciej W. Rozycki <macro@codesourcery.com>
7282
7283 * mips-tdep.c (mips_float_register_p): New function.
7284 (mips_convert_register_float_case_p): Use mips_float_register_p.
7285 (mips_register_type): Likewise.
7286 (mips_print_register): Likewise.
7287 (print_gp_register_row): Likewise.
7288 (mips_print_registers_info): Likewise.
7289
72902012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7291
7292 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7293 of mips16 symbols.
7294
72952012-04-20 Andrew Pinski <apinski@cavium.com>
7296
7297 * MAINTAINERS (Write After Approval): Add myself to the list.
7298
72992012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7300
7301 * MAINTAINERS: Update my e-mail address.
7302
73032012-04-20 Pedro Alves <palves@redhat.com>
7304
7305 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7306 $srcdir.
7307 * configure: Regenerate.
7308
73092012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7310
7311 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7312 declaration.
7313 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7314
73152012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7316
7317 Fix compilation compatibility with python-2.4
7318 * python/py-type.c (convert_field): Cast ADDRSTRING for
7319 PyObject_SetAttrString as non-const. New comment.
7320
73212012-04-19 Tom Tromey <tromey@redhat.com>
7322
7323 * top.c (quit_target): Use all_cleanups.
7324 * main.c (captured_command_loop): Use all_cleanups.
7325 * exceptions.c (throw_exception): Use all_cleanups.
7326
73272012-04-19 Pedro Alves <palves@redhat.com>
7328
7329 * Makefile.in (GNULIB_BUILDDIR): New.
7330 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7331 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7332 (CLEANDIRS). Remove gnulib/import.
7333 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7334 (all-lib): Ditto.
7335 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7336 (gnulib/import/Makefile): Replace gnulib/import with
7337 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7338 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7339 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7340 acx_configure_dir.m4.
7341 * acinclude.m4: Include acx_configure_dir.m4.
7342 * acx_configure_dir.m4: New file.
7343 * aclocal.m4: Regenerate.
7344 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7345 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7346 (GNULIB): New variable.
7347 (GNULIB_STDINT_H): Adjust.
7348 (AC_OUTPUT): Don't output gnulib/Makefile.
7349 * gdb/defs.h: Include build-gnulib/config.h.
7350 * aclocal.m4: Regenerate.
7351 * config.in: Regenerate.
7352 * configure: Regenerate.
7353
7354 * gnulib/Makefile.in: New file.
7355 * gnulib/configure.ac: New file.
7356 * gnulib/aclocal.m4: New file.
7357 * gnulib/config.in: New file.
7358 * gnulib/configure: New file.
7359 * gnulib/: Re-run gnulib-tool to adjust.
7360
73612012-04-19 Doug Evans <dje@google.com>
7362
7363 * cleanups.h (struct cleanup): Move to cleanups.c.
7364 (make_cleanup_dtor_ftype): New typedef.
7365 (make_cleanup_dtor): Use it.
7366 (ALL_CLEANUPS): Replace with ...
7367 (all_cleanups): ... this. Declare. All uses updated.
7368 * cleanups.c: #include "gdb_assert.h".
7369 (sentinel_cleanup): New static global.
7370 (SENTINEL_CLEANUP): Define.
7371 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7372 (make_my_cleanup2): Assert result is non-NULL.
7373 (all_cleanups): New function.
7374 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7375 of NULL.
7376
73772012-04-19 Pedro Alves <palves@redhat.com>
7378
7379 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7380 Adjust paths to gnulib imported files.
7381
73822012-04-19 Pedro Alves <palves@redhat.com>
7383
7384 * gnulib/: Move whole directory ...
7385 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7386 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7387 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7388 (aclocal_m4_deps): Adjust.
7389 * aclocal.m4: Regenerate.
7390 * configure: Regenerate.
7391 * configure.ac: Adjust AC_OUTPUT output.
7392
73932012-04-19 Yao Qi <yao@codesourcery.com>
7394
7395 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7396 (vec.o): New rule.
7397 * vec.c: Move it ...
7398 * common/vec.c: ... here.
7399 * vec.h: Move it ...
7400 * common/vec.h: ... here.
7401
74022012-04-19 Yao Qi <yao@codesourcery.com>
7403
7404 * gdb-code-style.el: New.
7405
74062012-04-18 Pedro Alves <palves@redhat.com>
7407
7408 Update gnulib from latest git.
7409 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7410
7411 * gnulib/Makefile.am: Update.
7412 * gnulib/dummy.c: Update.
7413 * gnulib/extra/arg-nonnull.h: Update.
7414 * gnulib/extra/c++defs.h: Update.
7415 * gnulib/extra/update-copyright: Update.
7416 * gnulib/extra/warn-on-use.h: Update.
7417 * gnulib/inttypes.in.h: Update.
7418 * gnulib/m4/00gnulib.m4: Update.
7419 * gnulib/m4/extensions.m4: Update.
7420 * gnulib/m4/gnulib-cache.m4: Update.
7421 * gnulib/m4/gnulib-common.m4: Update.
7422 * gnulib/m4/gnulib-comp.m4: Update.
7423 * gnulib/m4/gnulib-tool.m4: Update.
7424 * gnulib/m4/include_next.m4: Update.
7425 * gnulib/m4/inttypes-pri.m4: Update.
7426 * gnulib/m4/inttypes.m4: Update.
7427 * gnulib/m4/longlong.m4: Update.
7428 * gnulib/m4/memchr.m4: Update.
7429 * gnulib/m4/memmem.m4: Update.
7430 * gnulib/m4/mmap-anon.m4: Update.
7431 * gnulib/m4/multiarch.m4: Update.
7432 * gnulib/m4/onceonly.m4: Update.
7433 * gnulib/m4/stddef_h.m4: Update.
7434 * gnulib/m4/stdint.m4: Update.
7435 * gnulib/m4/string_h.m4: Update.
7436 * gnulib/m4/warn-on-use.m4: Update.
7437 * gnulib/m4/wchar_h.m4: Update.
7438 * gnulib/m4/wchar_t.m4: Update.
7439 * gnulib/m4/wint_t.m4: Update.
7440 * gnulib/memchr.c: Update.
7441 * gnulib/memmem.c: Update.
7442 * gnulib/stddef.in.h: Update.
7443 * gnulib/stdint.in.h: Update.
7444 * gnulib/str-two-way.h: Update.
7445 * gnulib/string.in.h: Update.
7446 * gnulib/wchar.in.h: Update.
7447
7448 * gnulib/extra/arg-nonnull.h: Delete.
7449 * gnulib/extra/c++defs.h: Delete.
7450 * gnulib/extra/warn-on-use.h: Delete.
7451 * gnulib/m4/wchar_h.m4: Delete.
7452 * gnulib/m4/wint_t.m4: Delete.
7453 * gnulib/wchar.in.h: Delete.
7454
7455 * gnulib/extra/snippets/arg-nonnull.h: New.
7456 * gnulib/extra/snippets/c++defs.h: New.
7457 * gnulib/extra/snippets/warn-on-use.h: New.
7458
7459 * aclocal.m4: Regenerate.
7460 * config.in: Regenerate.
7461 * configure: Regenerate.
7462 * gnulib/Makefile.in: Regenerate.
7463
74642012-04-18 Pedro Alves <palves@redhat.com>
7465
7466 Reimport the update-copyright module from gnulib
7467 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7468
7469 * configure: Regenerate.
7470 * gnulib/Makefile.am: Update.
7471 * gnulib/Makefile.in: Regenerate.
7472 * gnulib/extra/update-copyright: Update.
7473 * gnulib/m4/gnulib-cache.m4: Update.
7474 * gnulib/m4/gnulib-comp.m4: Update.
7475
74762012-04-18 Tristan Gingold <gingold@adacore.com>
7477
7478 * configure.ac (aix): Put -lpthread into libs.
7479 * configure: Regenerate.
7480
74812012-04-18 Tom Tromey <tromey@redhat.com>
7482
7483 * linespec.c (convert_linespec_to_sals): Don't use
7484 SYMBOL_OBJ_SECTION.
7485 (compare_msymbols): Arguments are minsym_and_objfile, not
7486 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7487
74882012-04-18 Pedro Alves <palves@redhat.com>
7489
7490 Revert gnulib/ part of:
7491 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7492 Copyright year update in most files (performed by copyright.sh).
7493
74942012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7495
7496 Fix 64-bit constants on 32-bit hosts.
7497 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7498 from unsigned long to ULONGEST.
7499 (read_signed_leb128): Change declaration return type from long to
7500 LONGEST.
7501 (dwarf2_const_value_attr): Change declaration parameter value from long
7502 to LONGEST.
7503 (dwarf2_compute_name): Change variable value from long to LONGEST.
7504 (read_unsigned_leb128): Change return type, variable result and some
7505 casts from unsigned long to ULONGEST.
7506 (read_signed_leb128): Change return type, variable result and some
7507 casts from long to LONGEST.
7508 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7509 value from long to LONGEST.
7510 (dwarf2_const_value): Change variable value from long to LONGEST.
7511 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7512 plongest and hex_string.
7513 * symtab.h (struct general_symbol_info): Change ivalue from long to
7514 LONGEST, remove the comment.
7515 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7516 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7517
75182012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7519
7520 PR symtab/7259:
7521 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7522 * ada-lang.c (ada_discrete_type_high_bound)
7523 (ada_discrete_type_low_bound): Fix function comment. Use
7524 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7525 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7526 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7527 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7528 Use TYPE_FIELD_ENUMVAL.
7529 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7530 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7531 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7532 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7533 TYPE_CODE_ENUM.
7534 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7535 * dwarf2read.c (process_enumeration_scope): Likewise.
7536 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7537 field.bitpos.
7538 (class StructMainTypePrettyPrinter): Support also
7539 FIELD_LOC_KIND_ENUMVAL.
7540 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7541 TYPE_CODE_ENUM.
7542 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7543 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7544 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7545 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7546 field enumval.
7547 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7548 accommodate enumval.
7549 (struct call_site): Adjust loc_kind to accommodate enumval.
7550 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7551 (TYPE_FIELD_ENUMVAL): New macros.
7552 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7553 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7554 TYPE_CODE_ENUM.
7555 * p-typeprint.c (pascal_type_print_base): Likewise.
7556 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7557 enumval.
7558 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7559 * python/py-type.c (convert_field): New variable addrstring. Use
7560 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7561 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7562 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7563 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7564 TYPE_CODE_ENUM.
7565 * valprint.c (generic_val_print): Likewise.
7566
75672012-04-17 Doug Evans <dje@google.com>
7568
7569 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7570
7571 * dwarf2read.c: Whitespace fixes.
7572 (lookup_signatured_type): Tweak comment.
7573 (get_die_type_at_offset): Fix comment.
7574
75752012-04-17 Joel Brobecker <brobecker@adacore.com>
7576
7577 * xcoffread.c (xcoff_secnum_to_sections): New function.
7578 (secnum_to_section, secnum_to_bfd_section): Reimplement
7579 using xcoff_secnum_to_sections. Rename "secnum" parameter
7580 into "n_scnum".
7581 (RECORD_MINIMAL_SYMBOL): Delete.
7582 (record_minimal_symbol): New function.
7583 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7584 by call to record_minimal_symbol and set misc_func_recorded
7585 to 1. Set last_csect_sec to the XCOFF section index instead
7586 of GDB's section_offset index. Update calls to
7587 prim_record_minimal_symbol_and_info to pass the BFD section
7588 as well.
7589
75902012-04-17 Joel Brobecker <brobecker@adacore.com>
7591
7592 * xcoffread.c (read_xcoff_symtab): Delete variables
7593 last_csect_val and last_csect_sec and associated code.
7594
75952012-04-17 Doug Evans <dje@google.com>
7596
7597 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7598 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7599 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7600 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7601
7602 * cleanups.h: New file.
7603 * cleanups.c: New file.
7604 * Makefile.in (SFILES): Add cleanups.c.
7605 (HFILES_NO_SRCDIR): Add cleanups.h.
7606 (COMMON_OBS): Add cleanups.o.
7607 * defs.h (struct cleanup): Moved to cleanups.h.
7608 (do_cleanups,do_final_cleanups): Ditto.
7609 (discard_cleanups,discard_final_cleanups): Ditto
7610 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7611 (save_cleanups,save_final_cleanups): Ditto.
7612 (restore_cleanups,restore_final_cleanups): Ditto.
7613 (null_cleanup): Ditto.
7614 (make_my_cleanup,make_my_cleanup2): Ditto.
7615 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7616 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7617 (do_cleanups,do_final_cleanups): Ditto.
7618 (discard_cleanups,discard_final_cleanups): Ditto
7619 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7620 (save_cleanups,save_final_cleanups): Ditto.
7621 (restore_cleanups,restore_final_cleanups): Ditto.
7622 (null_cleanup): Ditto.
7623 (make_my_cleanup,make_my_cleanup2): Ditto.
7624 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7625
7626 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7627 make_my_cleanup.
7628 (make_cleanup_dyn_string_delete): Ditto.
7629 (make_cleanup_ui_file_delete): Ditto.
7630 (make_cleanup_ui_out_redirect_pop): Ditto.
7631 (make_cleanup_free_section_addr_info): Ditto.
7632 (make_cleanup_restore_integer): Ditto.
7633 (make_cleanup_unpush_target): Ditto.
7634 (make_cleanup_value_free_to_mark): Ditto.
7635 (make_cleanup_value_free): Ditto.
7636 (make_cleanup_free_so): Ditto.
7637
76382012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7639
7640 New option "set debug auto-load".
7641 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7642 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7643 (auto_load_safe_path_vec_update)
7644 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7645 if DEBUG_AUTO_LOAD.
7646 (file_is_auto_load_safe): New parameters debug_fmt and ....
7647 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7648 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7649 caller by explanatory string.
7650 (_initialize_auto_load): Register "set debug auto-load".
7651 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7652 and ....
7653 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7654 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7655 by explanatory string.
7656 * main.c (captured_main): Likewise.
7657 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7658 (source_section_scripts): Likewise.
7659
76602012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7661
7662 New option "set auto-load safe-path".
7663 * NEWS: New commands "set auto-load safe-path"
7664 and "show auto-load safe-path".
7665 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7666 (auto_load_safe_path, auto_load_safe_path_vec)
7667 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7668 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7669 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7670 (source_gdb_script_for_objfile): New variable is_safe. Call
7671 file_is_auto_load_safe. Return if it is not.
7672 (struct loaded_script): New field loaded.
7673 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7674 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7675 output "Missing" to "No".
7676 (_initialize_auto_load): New variable cmd. Initialize
7677 auto_load_safe_path. Register "set auto-load safe-path",
7678 "show auto-load safe-path" and "add-auto-load-safe-path".
7679 * auto-load.h (maybe_add_script): Add parameter loaded.
7680 (file_is_auto_load_safe): New declaration.
7681 * config.in: Regenerate.
7682 * configure: Regenerate.
7683 * configure.ac: New parameters --with-auto-load-safe-path
7684 and --without-auto-load-safe-path.
7685 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7686 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7687 * main.c (captured_main): Check file_is_auto_load_safe for
7688 LOCAL_GDBINIT.
7689 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7690 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7691 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7692 not.
7693
76942012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7695
7696 auto-load: Implementation.
7697 * NEWS: New descriptions for "info auto-load",
7698 "info auto-load gdb-scripts", "info auto-load python-scripts",
7699 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7700 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7701 and "show auto-load-scripts". New description for "set auto-load",
7702 "show auto-load", "set auto-load gdb-scripts",
7703 "show auto-load gdb-scripts", "set auto-load python-scripts",
7704 "show auto-load python-scripts", "set auto-load local-gdbinit",
7705 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7706 "show auto-load libthread-db".
7707 * auto-load.c: Remove include python/python-internal.h. Add includes
7708 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7709 cli/cli-setshow.h.
7710 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7711 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7712 (gdbpy_global_auto_load): Rename to ...
7713 (global_auto_load): ... here.
7714 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7715 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7716 (script_language_gdb, source_gdb_script_for_objfile): New.
7717 (struct loaded_script): New field language.
7718 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7719 LANGUAGE.
7720 (maybe_add_script): Add parameter language. Drop redundant
7721 entry.full_path initialization. Initialize entry.language and
7722 (*slot)->language.
7723 (auto_load_objfile_script): Change parameter suffix to language.
7724 Remove the call of maybe_add_script.
7725 Call language->source_script_for_objfile.
7726 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7727 New.
7728 (collect_matching_scripts): Adjust it for
7729 struct collect_matching_scripts_data.
7730 (auto_load_info_scripts_pattern_nl): New variable.
7731 (info_auto_load_scripts): Rename to ...
7732 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7733 for struct collect_matching_scripts_data.
7734 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7735 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7736 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7737 (auto_load_info_cmdlist_get): New.
7738 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7739 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7740 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7741 "info auto-load local-gdbinit".
7742 * auto-load.h (struct script_language): New.
7743 (gdbpy_global_auto_load): Rename to ...
7744 (global_auto_load): ... here.
7745 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7746 (auto_load_local_gdbinit_loaded): New declarations.
7747 (maybe_add_script): New parameter language.
7748 (auto_load_objfile_script): Change parameter suffix to language.
7749 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7750 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7751 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7752 declarations.
7753 * linux-thread-db.c: Include auto-load.h and ctype.h.
7754 (auto_load_thread_db, show_auto_load_thread_db): New.
7755 (struct thread_db_info): New field filename.
7756 (delete_thread_db_info): Call xfree for FILENAME.
7757 (try_thread_db_load): Initialize FILENAME.
7758 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7759 if !AUTO_LOAD_THREAD_DB.
7760 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7761 (_initialize_thread_db): Install auto_load_thread_db
7762 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7763 as "info auto-load libthread-db".
7764 * main.c (captured_main): Rename gdbpy_global_auto_load to
7765 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7766 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7767 (print_gdb_help): Extend the help for 'local init file'.
7768 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7769 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7770 (auto_load_scripts): Rename to ...
7771 (auto_load_python_scripts): ... here, update the comment.
7772 (gdbpy_load_auto_script_for_objfile): New declaration.
7773 (show_auto_load_python_scripts, script_language_python)
7774 (gdbpy_load_auto_script_for_objfile): New.
7775 (source_section_scripts): Refactor the code.
7776 (load_auto_scripts_for_objfile): Rename to ...
7777 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7778 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7779 (info_auto_load_python_scripts): New.
7780 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7781 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7782 Register "set auto-load-scripts" as its deprecated alias. Register
7783 "info auto-load python-scripts". Register "info auto-load-scripts" as
7784 its deprecated alias.
7785 (load_auto_scripts_for_objfile): Rename to ...
7786 (gdbpy_load_auto_scripts_for_objfile): ... here.
7787 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7788 (gdbpy_load_auto_scripts_for_objfile): ... here.
7789
77902012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7791
7792 auto-load: Move files.
7793 * Makefile.in (SFILES): Add auto-load.c.
7794 (HFILES_NO_SRCDIR): Add auto-load.h.
7795 (COMMON_OBS): Add auto-load.o.
7796 (distclean): Change .gdbinit for gdb-gdb.gdb.
7797 * auto-load.c: New file, with parts from python/py-auto-load.c.
7798 * auto-load.h: New file, with parts from python/python.h.
7799 * configure: Regenerate.
7800 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7801 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7802 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7803 * main.c: Include auto-load.h.
7804 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7805 command.h, observer.h and progspace.h to auto-load.c. Add include
7806 auto-load.h.
7807 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7808 (struct loaded_script, auto_load_pspace_data)
7809 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7810 (hash_loaded_script_entry, eq_loaded_script_entry)
7811 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7812 (maybe_add_script): Move to auto-load.c.
7813 (source_section_scripts): Change maybe_add_script parameters passing,
7814 use script_not_found_warning_print.
7815 (clear_section_scripts, auto_load_objfile_script)
7816 (auto_load_new_objfile, loaded_script_ptr)
7817 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7818 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7819 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7820 auto_load_new_objfile and info_auto_load_scripts initizations to
7821 auto-load.c.
7822 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7823
78242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7825
7826 Code cleanup.
7827 * charset.c (find_charset_names): Remove variables ix and elt.
7828 Use free_char_ptr_vec.
7829 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7830 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7831 debugdir_end. New variable debugdir_len.
7832 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7833 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7834 declarations.
7835 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7836 and elt. Use free_char_ptr_vec.
7837 * source.c (add_path): Remove variables argv, arg and argv_index.
7838 New variables dir_vec, back_to, ix and name.
7839 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7840 make_cleanup_freeargv. Remove variable separator. Simplify the code
7841 no longer expecting DIRNAME_SEPARATOR.
7842 (openp): Remove variable p, p1 and len. New variables dir_vec,
7843 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7844 no longer expecting DIRNAME_SEPARATOR.
7845 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7846 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7847 debugdir_end.
7848 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7849 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7850 (dirnames_to_char_ptr_vec): New functions.
7851
78522012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7853
7854 Code cleanup.
7855 * source.c (add_path): Remove always true conditional 'p == 0' and
7856 unindent its code block.
7857
78582012-04-17 Pedro Alves <palves@redhat.com>
7859
7860 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7861 (FIELD_BITPOS_LVAL): ... this.
7862 (FIELD_BITPOS): New.
7863 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7864 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7865 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7866 SET_FIELD_BITPOS.
7867 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7868 SET_FIELD_BITPOS.
7869 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7870 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7871 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7872 SET_FIELD_BITPOS.
7873
78742012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7875
7876 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7877 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7878 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7879 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7880 * jv-lang.c (java_link_class_type): Likewise, once.
7881 * stabsread.c (read_enum_type): Likewise.
7882
78832012-04-16 Yao Qi <yao@codesourcery.com>
7884
7885 * common/agent.c (agent_run_command): Add one more parameter `len'.
7886 Update callers.
7887 * common/agent.h: Update declaration.
7888 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7889 Update.
7890 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7891
78922012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7893
7894 PR mi/13393
7895 * value.c (value_actual_type): New function.
7896 * value.h (value_actual_type): New declaration.
7897 * varobj.c (update_type_if_necessary): New function.
7898 (varobj_create): Call value_actual_type instead of
7899 value_type.
7900 (install_dynamic_child): distinct changed and type changed MI variable
7901 objects.
7902 (update_dynamic_varobj_children): Updated for install_dynamic_child
7903 change. All callers updated.
7904 (varobj_update): Support for MI variable object type change if
7905 the value changed and RTTI is used to determine the type.
7906 (create_child_with_value): Call value_actual_type instead of
7907 value_type.
7908 (adjust_value_for_child_access): Extended with a new parameter which
7909 specify whether the given value should be casted to enclosing type.
7910 All callers updated.
7911
79122012-04-14 Yao Qi <yao@codesourcery.com>
7913
7914 Import gnulib module inttypes from git
7915 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7916 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7917 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7918 gnulib/m4/inttypes-pri.m4
7919 * aclocal.m4, config.in, configure: Regenerated.
7920 * gnulib/Makefile.am: Update.
7921 * gnulib/Makefile.in: Update.
7922 * gnulib/m4/gnulib-cache.m4: Update.
7923 * gnulib/m4/gnulib-comp.m4: Update.
7924 * gnulib/inttypes.in.h: New.
7925 * gnulib/m4/inttypes-pri.m4: New.
7926 * gnulib/m4/inttypes.m4: New.
7927
79282012-04-13 Luis Machado <lgustavo@codesourcery.com>
7929
7930 * infrun.c (resume): Update PC address to the real PC after
7931 preparing to do displaced stepping.
7932
79332012-04-12 Doug Evans <dje@google.com>
7934
7935 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7936 All callers updated.
7937
79382012-04-12 Mark Kettenis <kettenis@gnu.org>
7939
7940 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7941
79422012-04-12 Doug Evans <dje@google.com>
7943
7944 * dwarf2read.c (create_all_type_units): Renamed from
7945 create_debug_types_hash_table. All callers updated.
7946
7947 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7948 local type_sig to sig_type, type_offset to type_offset_in_tu.
7949 (hash_signatured_type): Renamed from hash_type_signature,
7950 all callers updated.
7951 (eq_signatured_type): Renamed from eq_type_signature,
7952 all callers updated.
7953 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7954 (process_enumeration_scope): Ditto.
7955 (lookup_signatured_type_at_offset): Ditto.
7956 (load_full_type_unit, read_signatured_type): Ditto.
7957
79582012-04-12 Yao Qi <yao@codesourcery.com>
7959
7960 * remote.c (async_remote_interrupt): Correct function name in
7961 debug message.
7962 (async_remote_interrupt_twice): Ditto.
7963
79642012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7965
7966 * source.c (find_and_open_source): Consistently pass resulting
7967 full path through xfullpath.
7968
79692012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7970
7971 Provide more specific displaced-stepping memory error message.
7972 * infrun.c (displaced_step_prepare): New variable status. Call
7973 target_read_memory instead of read_memory, provide more specific
7974 error message.
7975
79762012-04-11 Tristan Gingold <gingold@adacore.com>
7977
7978 PR gdb/13901
7979 * darwin-nat.c (darwin_execvp): Revert previous patch.
7980
79812012-04-11 Tristan Gingold <gingold@adacore.com>
7982
7983 PR gdb/13901
7984 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7985 in case of change.
7986
79872012-04-11 Tristan Gingold <gingold@adacore.com>
7988
7989 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7990 warning.
7991
79922012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7993
7994 New command 'explore' which helps explore values and types in
7995 scope.
7996 * NEWS: Add an entry about the new 'explore' command.
7997 * data-directory/Makefile.in: Add gdb/command/explore.py
7998 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7999 command using the GDB Python API.
8000
80012012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8002
8003 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8004 extension in jump target calculation.
8005
80062012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8007
8008 * mips-tdep.c (mips32_next_pc): Handle JALX.
8009
80102012-04-10 Yao Qi <yao@codesourcery.com>
8011
8012 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8013
80142012-04-10 Yao Qi <yao@codesourcery.com>
8015
8016 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8017 and gnulib/m4/gnulib-tool.m4.
8018
80192012-04-10 Doug Evans <dje@google.com>
8020
8021 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8022 (load_partial_dies): Clarify comment.
8023 (find_partial_die): Support rereading type units.
8024 Clarify CU handling, if we know offset is in CU, don't search for the
8025 containing CU. Add comment regarding memory waste.
8026
80272012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8028
8029 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8030 i386/x32-avx and i386/x32-avx-linux.
8031 (i386/x32-expedite): New.
8032 (i386/x32-linux-expedite): Likewise.
8033 (i386/x32-avx-expedite): Likewise.
8034 (i386/x32-avx-linux-expedite): Likewise.
8035 ($(outdir)/i386/x32.dat): Likewise.
8036 ($(outdir)/i386/x32-linux.dat): Likewise.
8037 ($(outdir)/i386/x32-avx.dat): Likewise.
8038 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8039
8040 * features/i386/x32-avx-linux.xml: New file.
8041 * features/i386/x32-avx.xml: Likewise.
8042 * features/i386/x32-core.xml: Likewise.
8043 * features/i386/x32-linux.xml: Likewise.
8044 * features/i386/x32.xml: Likewise.
8045
8046 * features/i386/x32-avx-linux.c: New. Generated.
8047 * features/i386/x32-avx.c: Likewise.
8048 * features/i386/x32-linux.c: Likewise.
8049 * features/i386/x32.c: Likewise.
8050 * regformats/i386/x32-avx-linux.dat: Likewise.
8051 * regformats/i386/x32-avx.dat: Likewise.
8052 * regformats/i386/x32-linux.dat: Likewise.
8053 * regformats/i386/x32.dat: Likewise.
8054
80552012-04-10 Tristan Gingold <gingold@adacore.com>
8056
8057 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8058 code to kill the inferior.
8059
80602012-04-09 Mark Kettenis <kettenis@gnu.org>
8061
8062 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8063 defines.
8064 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8065 defines.
8066 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8067 (yyvsp): New defines.
8068 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8069 defines.
8070 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8071 defines.
8072 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8073 defines.
8074 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8075 defines.
8076 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8077 defines.
8078
80792012-04-09 Mark Kettenis <kettenis@gnu.org>
8080
8081 * sparc64-tdep.c (sparc64_store_arguments)
8082 (sparc64_store_arguments): Fix coding style.
8083
80842012-04-07 Mark Kettenis <kettenis@gnu.org>
8085
8086 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8087 complex floats, adjust some related comments and tighten a related
8088 assertion.
8089 (sparc64_extract_return_value): Handle complex floats.
8090
80912012-04-07 Doug Evans <dje@google.com>
8092
8093 * dwarf2read.c (load_partial_dies): Change condition to assert.
8094
80952012-04-06 Doug Evans <dje@google.com>
8096
8097 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8098 "mov %rsp,%rbp".
8099
81002012-04-05 Kevin Buettner <kevinb@redhat.com>
8101
8102 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8103 fencepost error.
8104 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8105 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8106 architecture.
8107
81082012-04-05 Keith Seitz <keiths@redhat.com>
8109
8110 * linespec.c (decode_compound): Remove.
8111 (enum offset_relative_sign): New enum.
8112 (struct line_offset): New struct.
8113 (struct linespec): New struct.
8114 (struct linespec_state): Move file_symtabs,
8115 user_filename, and user_function into struct linespec.
8116 Make result an anonymous struct holding vectors of
8117 symbolp and minsym_and_objfile_d.
8118 Add language member.
8119 (enum ls_token_type): New enum.
8120 (linespec_keywords): New array.
8121 (struct ls_token): New struct.
8122 (struct ls_parser): New struct.
8123 (linespec_lexer_lex_number): New function.
8124 (linespec_lexer_lex_keyword): New function.
8125 (is_ada_operator): New function.
8126 (skip_quote_char): New function.
8127 (copy_token_string): New function.
8128 (is_closing_quote_enclosed): New function.
8129 (find_parameter_list_end): New function.
8130 (linespec_lexer_lex_string): New function.
8131 (linespec_lexer_lex_one): New function.
8132 (linespec_lexer_consume_token): New function.
8133 (linespec_lexer_peek_token): New function.
8134 (cplusplus_error): Remove unused function.
8135 (find_methods): Update comment.
8136 (find_toplevel_char): Return const.
8137 (is_objc_method_format): Remove unused function.
8138 (find_toplevel_string): New function.
8139 (is_linespec_boundary): Remove.
8140 (symbol_not_found_error): New function.
8141 (find_method_overload_end): Remove function.
8142 (unexpected_linespec_error): New function.
8143 (keep_name_info): Remove.
8144 (linespec_parse_line_offset): New function.
8145 (linespec_parse_basic): New function.
8146 (canonicalize_linespec): New function.
8147 (decode_line_internal): Remove.
8148 (create_sals_line_offset): New function adapted from
8149 decode_all_digits.
8150 (convert_linespec_to_sals): New function.
8151 (parse_linespec): New function.
8152 (linespec_parser_new): New function.
8153 (linespec_state_destructor): Change parameter type to
8154 struct linespec_state *.
8155 Add language parameter.
8156 Remove freeing of moved members.
8157 (linespec_parser_delete): New function.
8158 (decode_line_full): Use parse_linespec and linespec_parser_new.
8159 (decode_line_1): Likewise.
8160 (decode_indirect): Rename to ...
8161 (linespec_expression_to_pc): ... this and rewrite
8162 to simply find CORE_ADDR, storing this result for later
8163 conversion to SALs.
8164 (locate_first_half): Remove.
8165 (deocde_objc): Add parameter LS.
8166 Initialize new struct collect_info members.
8167 Handle minimal symbols, too.
8168 (decode_compound): Delete.
8169 (lookup_prefix_sym): Rewrite.
8170 (compare_msymbols): New function.
8171 (find_method): Rewrite.
8172 Do not call cplusplus_error.
8173 (symtabs_from_filename): Rewrite.
8174 (collect_function_symbols): Delete.
8175 (find_function_symbols): Rewrite without ARGPTR-style
8176 processing.
8177 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8178 (decode_dollar): Adapted and renamed to ...
8179 (linespec_parse_variable): ... this.
8180 (find_linespec_symbols): New function.
8181 (decode_label): Adapted and renamed to ...
8182 (find_label_symbols): ... this.
8183 (decode_digits_list_mode): Add and use LS argument.
8184 (decode_digits_ordinary): Likewise.
8185 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8186 If in list mode, allow any symbol class. Otherwise, only
8187 permit LOC_BLOCK symbols.
8188 (minsym_found): Update comments.
8189 (search_minsyms_for_name): Do not convert the matching symbol
8190 into a SAL. Simply push the symbol and objfile into the
8191 result vector.
8192 (decode_variable): Delete. Contents adapted into
8193 find_linespec_symbols.
8194
8195 * cp-support.c (SKIP_SPACE): Remove.
8196 (operator_tokens): Remove unused global.
8197 (cp_validate_operator): Remove.
8198 * cp-support.h (cp_validate_operator): Remove declaration.
8199
82002012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8201
8202 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8203 for TYPE_VPTR_FIELDNO.
8204 * valprint.c (valprint_check_validity): Make it global, move the
8205 function comment ...
8206 * value.h (valprint_check_validity): ... to this new declaration.
8207
82082012-04-02 Tristan Gingold <gingold@adacore.com>
8209
8210 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8211 the STATE32 api for i386 state.
8212 (i386_darwin_store_inferior_registers): Likewise.
8213
82142012-04-02 Tristan Gingold <gingold@adacore.com>
8215
8216 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8217 SS offset.
8218 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8219 format_string.
8220
82212012-04-02 Tristan Gingold <gingold@adacore.com>
8222
8223 PR gdb/13901
8224 * darwin-nat.c (darwin_execvp): Set binary preference.
8225
82262012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8227
8228 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8229
82302012-03-30 Tom Tromey <tromey@redhat.com>
8231
8232 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8233 of TRY_CATCH. Fix error handling.
8234 * python/py-value.c (convert_value_from_python): Move 'old'
8235 declaration to innermost scope.
8236
82372012-03-29 Joel Brobecker <brobecker@adacore.com>
8238 Andrey Smirnov <andrew.smirnov@gmail.com>
8239
8240 -Wshadow warning fix.
8241 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8242 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8243 Adjust code accordingly.
8244
82452012-03-29 Joel Brobecker <brobecker@adacore.com>
8246
8247 * ada-lang.c (symbol_completion_add): Rename parameter
8248 "encoded" into "encoded_p". Ajust code and documentation
8249 accordingly.
8250
82512012-03-29 Joel Brobecker <brobecker@adacore.com>
8252 Andrey Smirnov <andrew.smirnov@gmail.com>
8253
8254 -Wshadow warning fix.
8255 * ada-lang.c (symbol_completion_add): Rename parameter
8256 "wild_match" into wild_match_p. Update code and documentation
8257 accordingly.
8258
82592012-03-29 Joel Brobecker <brobecker@adacore.com>
8260
8261 * ada-lang.c (symbol_completion_match): Rename parameter
8262 "encoded" into "encoded_p". Ajust code and documentation
8263 accordingly.
8264
82652012-03-29 Joel Brobecker <brobecker@adacore.com>
8266 Andrey Smirnov <andrew.smirnov@gmail.com>
8267
8268 -Wshadow warning fix.
8269 * ada-lang.c (symbol_completion_match): Rename parameter
8270 "wild_match" into "wild_match_p". Adjust code and function
8271 documentation accordingly.
8272
82732012-03-29 Joel Brobecker <brobecker@adacore.com>
8274 Andrey Smirnov <andrew.smirnov@gmail.com>
8275
8276 -Wshadow warning fix.
8277 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8278 "symbol_info" into "info". Adjust code accordingly.
8279 (ada_lookup_symbol): Likewise.
8280
82812012-03-29 Joel Brobecker <brobecker@adacore.com>
8282
8283 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8284 of this function's documentation.
8285
82862012-03-29 Joel Brobecker <brobecker@adacore.com>
8287 Andrey Smirnov <andrew.smirnov@gmail.com>
8288
8289 -Wshadow warning fix.
8290 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8291 variable into "wild_match_p". Adjust code accordingly.
8292
82932012-03-29 Joel Brobecker <brobecker@adacore.com>
8294 Andrey Smirnov <andrew.smirnov@gmail.com>
8295
8296 -Wshadow warning fix.
8297 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8298 parameter into "wild_match_p". Adjust code accordingly.
8299 Document this parameter in the function description.
8300
83012012-03-29 Joel Brobecker <brobecker@adacore.com>
8302 Andrey Smirnov <andrew.smirnov@gmail.com>
8303
8304 -Wshadow warning fix.
8305 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8306 "wild_match" parameter to "wild_match_p" (-Wshadow).
8307
83082012-03-29 Joel Brobecker <brobecker@adacore.com>
8309
8310 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8311 in function documentation.
8312
83132012-03-29 Joel Brobecker <brobecker@adacore.com>
8314 Andrey Smirnov <andrew.smirnov@gmail.com>
8315
8316 -Wshadow warning fix.
8317 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8318 variable into wild_match_p. Adjust code accordingly.
8319
83202012-03-29 Joel Brobecker <brobecker@adacore.com>
8321 Andrey Smirnov <andrew.smirnov@gmail.com>
8322
8323 * ada-valprint.c (ada_val_print_1): Move the code handling
8324 TYPE_CODE_ENUM inside its own lexical block. Declare
8325 variables len and val there, instead of in the function's
8326 top level block. Avoid declaring deref_val again in a way
8327 that shadows another variable of the same name declared
8328 in one of the up-level blocks. Just re-use the up-level
8329 variable instead.
8330
83312012-03-29 Joel Brobecker <brobecker@adacore.com>
8332
8333 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8334 Replace block_found argument by symbol_info. Adjust
8335 implementation accordingly. Add function documentation.
8336 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8337 Fix documentation.
8338 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8339 * ada-exp.y (write_object_renaming): Adjust to new
8340 ada_lookup_encoded_symbol API.
8341
83422012-03-29 Joel Brobecker <brobecker@adacore.com>
8343
8344 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8345 documentation.
8346
83472012-03-28 Rathish C <rathish.c@kpitcummins.com>
8348
8349 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8350 (v850_register_name): Add the mpu and fpu register names.
8351 (v850e_register_name): Add the mpu and fpu register names.
8352 (v850e2_register_name): New function.
8353 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8354 bfd_mach_v850e2v3.
8355
83562012-03-28 Joel Brobecker <brobecker@adacore.com>
8357
8358 * NEWS: Add entry for Ada varobj support.
8359
83602012-03-28 Joel Brobecker <brobecker@adacore.com>
8361
8362 * varobj.c (default_value_is_changeable_p): New function,
8363 extracted from varobj_value_is_changeable_p. Add declaration.
8364 (ada_value_is_changeable_p): New function, extracted from
8365 varobj_value_is_changeable_p. Add declaration.
8366 (struct language_specific): New field "value_is_changeable_p".
8367 (languages): Add entries for new field.
8368 (varobj_create): Set language before calling install_new_value.
8369 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8370 "value_is_changeable_p" language callback.
8371
83722012-03-28 Joel Brobecker <brobecker@adacore.com>
8373
8374 * ada-varobj.h, ada-varobj.c: New files.
8375 * Makefile.in (SFILES): Add ada-varobj.c.
8376 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8377 (COMMON_OBS): Add ada-varobj.o.
8378
83792012-03-28 Joel Brobecker <brobecker@adacore.com>
8380
8381 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8382 (struct language_specific): New field "value_has_mutated".
8383 (languages): Set field "value_has_mutated" in each entry of array.
8384 (varobj_value_has_mutated): New function.
8385 (varobj_udpdate): Add handling of type mutation.
8386 (value_of_root): Add handling of type mutation.
8387 (ada_value_has_mutated): New function.
8388
83892012-03-28 Pedro Alves <palves@redhat.com>
8390
8391 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8392 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8393
83942012-03-28 Tom Tromey <tromey@redhat.com>
8395
8396 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8397 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8398 before returning.
8399
84002012-03-28 Tom Tromey <tromey@redhat.com>
8401
8402 * .dir-locals.el: New file.
8403
84042012-03-28 Pedro Alves <palves@redhat.com>
8405
8406 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8407
84082012-03-28 Joel Brobecker <brobecker@adacore.com>
8409
8410 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8411 handling for r0.
8412
84132012-03-27 Pedro Alves <palves@redhat.com>
8414
8415 Eliminate struct ui_stream.
8416
8417 * ui-out.h (struct ui_stream): Delete.
8418 (ui_out_field_stream): Adjust prototype.
8419 (ui_out_stream_new, ui_out_stream_delete)
8420 (make_cleanup_ui_out_stream_delete): Delete declarations.
8421 * ui-out.c (ui_out_field_stream): Change prototype to take a
8422 ui_file instead of a ui_stream. Adjust.
8423 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8424 (make_cleanup_ui_out_stream_delete): Delete.
8425 * breakpoint.c (print_breakpoint_location)
8426 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8427 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8428 * disasm.c (dump_insns): Ditto.
8429 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8430 prototype.
8431 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8432 ui_stream/ui_out_stream_new.
8433 * infcmd.c (print_return_value): Ditto.
8434 * osdata.c (info_osdata_command): Don't allocate a local
8435 ui_stream.
8436 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8437 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8438 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8439 allocate a local ui_stream.
8440 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8441 instead of ui_stream/ui_out_stream_new.
8442 (list_args_or_locals): Don't allocate a local ui_stream.
8443 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8444 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8445 ui_stream/ui_out_stream_new.
8446 * cli/cli-setshow.c (do_setshow_command): Ditto.
8447
84482012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8449
8450 * arm-linux-tdep.c (arm_linux_init_abi): Call
8451 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8452 * arm-tdep.c (arm_process_record): New function.
8453 (deallocate_reg_mem): New function.
8454 (decode_insn): New function.
8455 (thumb_record_branch): New function.
8456 (thumb_record_ldm_stm_swi(): New function.
8457 (thumb_record_misc): New function.
8458 (thumb_record_ld_st_stack): New function.
8459 (thumb_record_ld_st_imm_offset): New function.
8460 (thumb_record_ld_st_reg_offset(): New function.
8461 (thumb_record_add_sub_cmp_mov): New function.
8462 (thumb_record_shift_add_sub): New function.
8463 (arm_record_coproc_data_proc): New function.
8464 (arm_record_coproc): New function.
8465 (arm_record_b_bl): New function.
8466 (arm_record_ld_st_multiple): New function.
8467 (arm_record_ld_st_reg_offset): New function.
8468 (arm_record_ld_st_imm_offset): New function.
8469 (arm_record_data_proc_imm): New function.
8470 (arm_record_data_proc_misc_ld_str): New function.
8471 (arm_record_extension_space): New function.
8472 (arm_record_strx): New function.
8473 (sbo_sbz): New function.
8474 (struct insn_decode_record): New structure for arm insn record.
8475 (REG_ALLOC): New macro for reg allocations.
8476 (MEM_ALLOC): New macro for memory allocations.
8477 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8478
84792012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8480
8481 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8482 (store_register): Likewise.
8483
84842012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8485
8486 * MAINTAINERS (Write After Approval): Add myself to the list.
8487
84882012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8489
8490 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8491 Describe also the option "auto".
8492
84932012-03-22 Richard Henderson <rth@redhat.com>
8494
8495 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8496 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8497
84982012-03-22 Richard Henderson <rth@redhat.com>
8499
8500 * jit.c (jit_read_code_entry): Compute alignment and offset of
8501 int64_t member before computing entry_size.
8502
85032012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8504
8505 Python scripting: Add new method Value.referenced_value to
8506 gdb.Value which can dereference pointer as well as reference
8507 values.
8508 * NEWS: Add entry under 'Python scripting' about the new method
8509 Value.referenced_value on gdb.Value objects.
8510 * python/py-value.c (valpy_referenced_value): New function
8511 defining a new method on gdb.Value objects which can dereference
8512 pointer and reference values.
8513
85142012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8515
8516 * MAINTAINERS (Write After Approval): Add myself to the list.
8517
85182012-03-21 Kevin Buettner <kevinb@redhat.com>
8519
8520 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8521 in addition to "main".
8522
85232012-03-21 Joel Brobecker <brobecker@adacore.com>
8524
8525 * expression.h (op_name): Add declaration.
8526 * expprint.c (op_name): Remove declaration. Make non-static.
8527 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8528
85292012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8530
8531 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8532 of struct siginfo.
8533 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8534 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8535 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8536 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8537 (linux_nat_get_siginfo): Likewise.
8538 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8539 (linux_nat_get_siginfo): Likewise.
8540 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8541 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8542 * procfs.c (gdb_siginfo_t): Likewise.
8543
85442012-03-21 Mike Frysinger <vapier@gentoo.org>
8545
8546 * .gitignore: Ignore more files.
8547
85482012-03-20 Pedro Alves <palves@redhat.com>
8549
8550 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8551 returns.
8552
85532012-03-20 Yao Qi <yao@codesourcery.com>
8554
8555 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8556 comment.
8557
85582012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8559
8560 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8561 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8562 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8563 sect_offset.
8564 * dwarf2expr.h (cu_offset, sect_offset): New types.
8565 (struct dwarf_expr_context_funcs) <dwarf_call>
8566 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8567 sect_offset.
8568 (struct dwarf_expr_context) <len>: Improve the comment.
8569 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8570 cu_offset and sect_offset.
8571 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8572 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8573 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8574 * dwarf2loc.h: Include dwarf2expr.h.
8575 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8576 and sect_offset.
8577 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8578 Improve the comment.
8579 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8580 (struct signatured_type, struct line_header, struct partial_die_info)
8581 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8582 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8583 (get_die_type_at_offset, create_cus_from_index)
8584 (create_signatured_type_table_from_index, dw2_get_file_names)
8585 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8586 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8587 (create_debug_types_hash_table, process_psymtab_comp_unit)
8588 (load_partial_comp_unit, create_all_comp_units)
8589 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8590 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8591 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8592 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8593 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8594 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8595 (find_partial_die, read_attribute_value, lookup_die_type)
8596 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8597 (is_ref_attr): New function comment.
8598 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8599 Use cu_offset and sect_offset.
8600 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8601 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8602 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8603 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8604 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8605 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8606 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8607 sect_offset.
8608
86092012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8610
8611 Code cleanup.
8612 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8613 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8614 with xfree.
8615 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8616
86172012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8618
8619 * NEWS: Describe new options --init-command=FILE, -ix and
8620 --init-eval-command=COMMAND, -iex.
8621 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8622 CMDARG_INIT_COMMAND.
8623 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8624 "init-command", "init-eval-command", "ix" and "iex" to the variable
8625 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8626 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8627 (print_gdb_help): Describe --init-command=FILE, -ix and
8628 --init-eval-command=COMMAND, -iex.
8629
86302012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8631
8632 Code cleanup.
8633 * main.c (struct cmdarg): Move it here from main. Add more comments.
8634 (cmdarg_s, VEC (cmdarg_s)): New.
8635 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8636 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8637 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8638 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8639 of CMDARG.
8640
86412012-03-19 Tom Tromey <tromey@redhat.com>
8642
8643 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8644
86452012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8646
8647 PR symtab/13777
8648 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8649 GCC >=4.5.
8650
86512012-03-16 Chris January <chris.january@allinea.com>
8652
8653 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8654 of clear.
8655
86562012-03-16 Chris January <chris.january@allinea.com>
8657
8658 * source.c (add_path): Use memmove instead of strcpy because the
8659 strings overlap.
8660
86612012-03-16 Joel Brobecker <brobecker@adacore.com>
8662
8663 * value.h (set_value_parent): Add declaration.
8664 * value.c (set_value_parent): New function.
8665 (value_address): If VALUE->PARENT is not NULL, then use it as
8666 the base address instead of VALUE->LOCATION.address.
8667 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8668 the same as OBJ's address. Adjust V's offset accordingly.
8669 Set V's parent.
8670
86712012-03-16 Gary Benson <gbenson@redhat.com>
8672
8673 PR breakpoints/10738
8674 * dwarf2read.c (use_deprecated_index_sections): New global.
8675 (struct partial_die_info): New member may_be_inlined.
8676 (read_partial_die): Set may_be_inlined where appropriate.
8677 (add_partial_subprogram): Add partial symbols for partial
8678 DIEs that may be inlined.
8679 (new_symbol_full): Add inlined subroutines to the current
8680 scope.
8681 (write_psymtabs_to_index): Bump version number.
8682 (dwarf2_read_index): Read only version 6 indices unless
8683 use_deprecated_index_sections is set.
8684 * linespec.c (symbol_and_data_callback): New structure.
8685 (iterate_inline_only): New function.
8686 (iterate_over_all_matching_symtabs): New argument
8687 "include_inline". If nonzero, also call the callback for
8688 symbols representing inlined subroutines.
8689 (lookup_prefix_sym): Pass extra argument to the above.
8690 (find_function_symbols): Likewise.
8691 (add_matching_symbols_to_info): Likewise.
8692 * NEWS: Mention that GDB can now set breakpoints on inlined
8693 functions.
8694
86952012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8696
8697 * p-typeprint.c (pascal_type_print_method_args):
8698 Fix display of parameter of methods.
8699
87002012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8701
8702 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8703 Add missing prototype.
8704
87052012-03-16 Yao Qi <yao@codesourcery.com>
8706 Jan Kratochvil <jan.kratochvil@redhat.com>
8707
8708 Fix false compilation warning.
8709 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8710
87112012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8712 Pedro Alves <pedro@codesourcery.com>
8713
8714 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8715 (arm_register_g_packet_guesses): New function.
8716 (arm_gdbarch_init): Don't force a target description with
8717 registers when the executable is detected as M-profile. Instead
8718 set gdbarch->tdep->is_m. Register `g' packet guesses.
8719 (_initialize_arm_tdep): Initialize the new target description.
8720 * features/arm-with-m-fpa-layout.xml: New description.
8721 * features/arm-with-m-fpa-layout.c: New, generated.
8722
87232012-03-15 Joel Brobecker <brobecker@adacore.com>
8724
8725 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8726 Update function description.
8727 (insert_bp_location): Do not wipe bl->target_info out.
8728 * mem-break.c: #include "gdb_string.h".
8729 (default_memory_insert_breakpoint): Do not call target_read_memory
8730 with a pointer to the breakpoint's shadow_contents buffer. Use
8731 a local buffer instead.
8732 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8733
87342012-03-15 Tom Tromey <tromey@redhat.com>
8735
8736 * NEWS: Mention "info vtbl", not "info vtable".
8737 * cp-support.c (info_vtbl_command): Fix comment.
8738 (_initialize_cp_support): Fix text.
8739
87402012-03-15 Tom Tromey <tromey@redhat.com>
8741
8742 * cp-valprint.c (cp_print_value_fields): Use
8743 print_function_pointer_address for vtable slot.
8744
87452012-03-15 Tom Tromey <tromey@redhat.com>
8746
8747 * gnu-v3-abi.c (struct value_and_voffset): New.
8748 (hash_value_and_voffset, eq_value_and_voffset)
8749 (compare_value_and_voffset, compute_vtable_size)
8750 (print_one_vtable, gnuv3_print_vtable): New functions.
8751 (init_gnuv3_ops): Initialize 'print_vtable' field.
8752 * cp-support.c (info_vtbl_command): New function.
8753 (_initialize_cp_support): Add "info vtbl".
8754 * cp-abi.h (cplus_print_vtable): Declare.
8755 (struct cp_abi_ops) <print_vtable>: New field.
8756 * cp-abi.c (cplus_print_vtable): New function.
8757 * NEWS: Update.
8758
87592012-03-15 Tom Tromey <tromey@redhat.com>
8760
8761 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8762 iterate_over_symbols.
8763
87642012-03-14 Doug Evans <dje@google.com>
8765
8766 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8767 DW_OP_GNU_parameter_ref.
8768
87692012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8770
8771 Fix double prompt of 'interpreter-exec mi'.
8772 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8773 (mi_interpreter_resume): use it.
8774 (mi_execute_command_input_handler): New function.
8775 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8776 mi_execute_command_input_handler.
8777
87782012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8779
8780 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8781 prototype.
8782 (darwin_debug_port_info): Make static.
8783 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8784 * machoread.c (_initialize_machoread): Add prototype.
8785 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8786 (i386_darwin_set_control, i386_darwin_get_control)
8787 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8788 i386_darwin_get_status, i386_darwin_get_control):
8789 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8790
87912012-03-13 Joel Brobecker <brobecker@adacore.com>
8792
8793 * ax-gdb.c (gen_usual_unary): Remove special handling of
8794 enum and bool types.
8795
87962012-03-13 Joel Brobecker <brobecker@adacore.com>
8797
8798 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8799
88002012-03-13 Joel Brobecker <brobecker@adacore.com>
8801
8802 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8803
88042012-03-13 Chris January <chris.january@allinea.com>
8805
8806 * aix-thread.c (fill_sprs): Store the floating point registers
8807 at the correct offsets into vals.
8808
88092012-03-13 Doug Evans <dje@google.com>
8810
8811 * NEWS: Mention symbol-reloading has been deleted.
8812 * symfile.c (symbol_reloading): Delete.
8813 (show_symbol_reloading): Delete.
8814 (_initialize_symfile): Delete set/show symbol-reloading.
8815
8816 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8817 read_in_chain until we have successfully read it in.
8818 (load_full_comp_unit): Ditto.
8819 (read_signatured_type): Add comment.
8820
88212012-03-13 Chris January <chris.january@allinea.com>
8822
8823 * stabsread.c (fix_common_block): Change type of valu argument
8824 to CORE_ADDR.
8825
88262012-03-13 Chris January <chris.january@allinea.com>
8827
8828 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8829 instruction.
8830
88312012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8832
8833 * common/linux-procfs.c (linux_proc_get_int): New, from
8834 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8835 field.
8836 (linux_proc_get_tgid): Only call linux_proc_get_int.
8837 (linux_proc_get_tracerpid): New.
8838 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8839 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8840 linux_proc_pid_has_state.
8841 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8842 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8843 (linux_ptrace_attach_warnings): New.
8844 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8845 New declaration.
8846 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8847 (linux_nat_attach): New variables ex, buffer, message and message_s.
8848 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8849
88502012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8851
8852 * Makefile.in (linux-ptrace.o): New.
8853 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8854 from linux-nat.c.
8855 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8856 * common/linux-ptrace.c: New file.
8857 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8858 * config/arm/linux.mh: Likewise.
8859 * config/i386/linux.mh: Likewise.
8860 * config/i386/linux64.mh: Likewise.
8861 * config/ia64/linux.mh: Likewise.
8862 * config/m32r/linux.mh: Likewise.
8863 * config/m68k/linux.mh: Likewise.
8864 * config/mips/linux.mh: Likewise.
8865 * config/pa/linux.mh: Likewise.
8866 * config/powerpc/linux.mh: Likewise.
8867 * config/powerpc/ppc64-linux.mh: Likewise.
8868 * config/powerpc/spu-linux.mh: Likewise.
8869 * config/s390/s390.mh: Likewise.
8870 * config/sparc/linux.mh: Likewise.
8871 * config/sparc/linux64.mh: Likewise.
8872 * config/xtensa/linux.mh: Likewise.
8873 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8874 common/linux-procfs.c.
8875 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8876
88772012-03-13 Hui Zhu <teawater@gmail.com>
8878 Pedro Alves <palves@redhat.com>
8879
8880 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8881 CREATE_BREAKPOINT_FLAGS_INSERTED.
8882 (create_breakpoint_sal, create_breakpoints_sal)
8883 (base_breakpoint_create_breakpoints_sal)
8884 (tracepoint_create_breakpoints_sal)
8885 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8886 down.
8887 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8888 (ftrace_command, strace_command): Adjust.
8889 (create_tracepoint_from_upload): Pass
8890 CREATE_BREAKPOINT_FLAGS_INSERTED.
8891 * breakpoint.h (enum breakpoint_create_flags): New.
8892 (create_breakpoint): New flags parameter.
8893 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8894 * python/py-breakpoint.c (bppy_init): Adjust.
8895 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8896 * spu-tdep.c (spu_catch_start): Adjust.
8897
88982012-03-13 Pedro Alves <palves@redhat.com>
8899 Hui Zhu <teawater@gmail.com>
8900 Yao Qi <yao@codesourcery.com>
8901
8902 * remote.c (struct remote_state): New field `starting_up'.
8903 (remote_start_remote): Set and clear it.
8904 (remote_can_download_tracepoint): If starting up, return false.
8905
89062012-03-13 Yao Qi <yao@codesourcery.com>
8907
8908 * inferior.h (struct inferior): Remove fields any_syscall_count,
8909 syscalls_counts and total_syscalls_count. Move them to new
8910 struct catch_syscall_inferior_data in breakpoint.c.
8911 * breakpoint.c: Call DEF_VEC_I(int).
8912 (struct catch_syscall_inferior_data): New.
8913 (get_catch_syscall_inferior_data): New.
8914 (catch_syscall_inferior_data_cleanup): New.
8915 (insert_catch_syscall): Update to access data in
8916 struct catch_syscall_inferior_data.
8917 (insert_catch_syscall): Likewise.
8918 (remove_catch_syscall): Likewise.
8919 (remove_catch_syscall): Likewise.
8920 (is_syscall_catchpoint_enabled): Likewise.
8921 (add_catch_command): Likewise.
8922 (_initialize_breakpoint): Register cleanup.
8923 * breakpoint.h: Removed DEF_VEC_I(int).
8924 * dwarf2loc.c: Call DEF_VEC_I(int).
8925 * mi/mi-main.c: Likewise.
8926
89272012-03-12 Mark Kettenis <kettenis@gnu.org>
8928
8929 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8930
89312012-03-12 Chris January <chris.january@allinea.com>
8932
8933 * aix-thread.c (_initialize_aix_thread): Add prototype.
8934 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8935 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8936
89372012-03-12 Joel Brobecker <brobecker@adacore.com>
8938
8939 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8940 include of "amd64-nat.h".
8941
89422012-03-12 Tom Tromey <tromey@redhat.com>
8943
8944 * buildsym.c (record_pending_block): Now static.
8945 * buildsym.h: (record_pending_block): Remove.
8946
89472012-03-12 Andreas Tobler <andreast@fgznet.ch>
8948
8949 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8950
89512012-03-09 Tom Tromey <tromey@redhat.com>
8952
8953 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8954 producer_is_gxx_lt_4_6>: New fields.
8955 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8956
89572012-03-09 Tom Tromey <tromey@redhat.com>
8958
8959 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8960
89612012-03-08 Joel Brobecker <brobecker@adacore.com>
8962
8963 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8964 prototype.
8965
89662012-03-08 Joel Brobecker <brobecker@adacore.com>
8967
8968 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8969
89702012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8971
8972 Fix -Wmissing-prototypes build.
8973 * arm-linux-nat.c (get_thread_id): Make it static.
8974 * xtensa-linux-nat.c (get_thread_id): Likewise.
8975
89762012-03-08 Joel Brobecker <brobecker@adacore.com>
8977
8978 * server.c (process_point_options): If a conditional expression
8979 is found, only print a message if remote_debug is nonzero.
8980
89812012-03-08 Luis Machado <lgustavo@codesourcery.com>
8982
8983 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8984 of internal error for unknown/unsupported types.
8985
89862012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 Fix CU relative vs. absolute DIE offsets.
8989 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8990 offset to offset_in_cu.
8991 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8992 TYPE_OFFSET.
8993 (dwarf2_fetch_die_location_block): Rename parameter offset to
8994 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8995
89962012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8997
8998 * libunwind-frame.c: Rename to ...
8999 * ia64-libunwind-tdep.c: ... here.
9000 * libunwind-frame.h: Rename to ...
9001 * ia64-libunwind-tdep.h: ... here.
9002 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9003 ia64-libunwind-tdep.h.
9004 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9005 * README (--with-libunwind): Rename to ...
9006 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9007 * config.in: Regenerate.
9008 * configure: Regenerate.
9009 * configure.ac: New option --with-libunwind-ia64, make the
9010 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9011 Remove AC_DEFINE for HAVE_LIBUNWIND.
9012 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9013 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9014 Rename libunwind-frame in the general comment.
9015 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9016 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9017 Move forward declarations inside #ifndef. Rename libunwind-frame in
9018 the general comment.
9019 * ia64-tdep.c: Rename libunwind-frame.h #include to
9020 ia64-libunwind-tdep.h.
9021 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9022 (ia64_libunwind_descr): Rename libunwind-frame to
9023 ia64-libunwind-tdep in these function comments.
9024 * ia64-tdep.h: Rename libunwind-frame.h #include to
9025 ia64-libunwind-tdep.h.
9026 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9027 ia64-libunwind-tdep in that data comment.
9028
90292012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9030
9031 * libunwind-frame.h (struct frame_unwind): New declaration.
9032
90332012-03-08 Joel Brobecker <brobecker@adacore.com>
9034
9035 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9036 "set breakpoint condition-evaluation" command.
9037
90382012-03-08 Tristan Gingold <gingold@adacore.com>
9039
9040 * sparc-stub.c: Move to stubs/
9041 * sh-stub.c: Likewise.
9042 * m68k-stub.c: Likewise.
9043 * m32r-stub.c: Likewise.
9044 * i386-stub.c: Likewise.
9045
90462012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9047
9048 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9049 linux_get_siginfo_type.
9050
9051 * m68klinux-nat.c: Include "gdb_proc_service.h".
9052 (PTRACE_GET_THREAD_AREA): Define.
9053 (ps_get_thread_area): New function.
9054
90552012-03-08 Yao Qi <yao@codesourcery.com>
9056
9057 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9058 `xsnprintf'.
9059 (remote_query_attached): Likewise.
9060 (remote_static_tracepoint_marker_at): Likewise.
9061 (remote_set_permissions): Likewise.
9062 (remote_detach_1, extended_remote_attach_1): Likewise.
9063 (send_g_packet, remote_vkill): Likewise.
9064 (extended_remote_disable_randomization): Likewise.
9065 (remote_add_target_side_condition): Likewise.
9066 (remote_insert_breakpoint): Likewise.
9067 (remote_remove_breakpoint): Likewise.
9068 (remote_insert_watchpoint): Likewise.
9069 (remote_remove_watchpoint): Likewise.
9070 (remote_insert_hw_breakpoint): Likewise.
9071 (remote_insert_hw_breakpoint): Likewise.
9072 (remote_remove_hw_breakpoint): Likewise.
9073 (remote_download_command_source): Likewise.
9074 (remote_download_tracepoint): Likewise.
9075 (remote_download_trace_state_variable): Likewise.
9076 (remote_disable_tracepoint): Likewise.
9077 (remote_trace_set_readonly_regions): Likewise.
9078 (remote_get_tracepoint_status): Likewise.
9079 (remote_trace_find): Likewise.
9080 (remote_get_trace_state_variable_value): Likewise.
9081 (remote_set_disconnected_tracing): Likewise.
9082 (remote_set_circular_trace_buffer): Likewise.
9083 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9084 (remote_use_agent): Likewise.
9085 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9086 Update callers.
9087
90882012-03-07 Pedro Alves <palves@redhat.com>
9089
9090 * NEWS: Mention QProgramSignals.
9091 * inferior.h (update_signals_program_target): Declare.
9092 * infrun.c: (update_signals_program_target): New.
9093 (handle_command): Update the target of the new program signals
9094 array changes.
9095 * remote.c (PACKET_QProgramSignals): New enum.
9096 (last_program_signals_packet): New global.
9097 (remote_program_signals): New.
9098 (remote_start_remote): Update the target with the program signals
9099 list.
9100 (remote_protocol_features): Add entry for QPassSignals.
9101 (remote_open_1): Free anc clear last_program_signals_packet.
9102 (init_remote_ops): Install remote_program_signals.
9103 * target.c (update_current_target): Adjust.
9104 (target_program_signals): New.
9105 * target.h (struct target_ops) <to_program_signals>: New field.
9106 (target_program_signals): Declare.
9107
91082012-03-07 Pedro Alves <palves@redhat.com>
9109
9110 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9111 extensions.
9112
91132012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9114
9115 * m68klinux-nat.c (getregs_supplies): Make static.
9116 (getfpregs_supplies): Likewise.
9117 (have_ptrace_getregs): Likewise.
9118
91192012-03-06 Joel Brobecker <brobecker@adacore.com>
9120
9121 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9122 in call to get_die_type_at_offset.
9123
91242012-03-06 Stan Shebs <stan@codesourcery.com>
9125
9126 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9127 * mi/mi-cmd-disas.c: Ditto.
9128 * mi/mi-cmd-env.c: Ditto.
9129 * mi/mi-cmd-file.c: Ditto.
9130 * mi/mi-cmd-stack.c: Ditto.
9131 * mi/mi-cmd-target.c: Ditto.
9132 * mi/mi-cmd-var.c: Ditto.
9133 * mi/mi-cmds.c: Ditto.
9134 * mi/mi-cmds.h: Ditto.
9135 * mi/mi-console.c: Ditto.
9136 * mi/mi-getopt.c: Ditto.
9137 * mi/mi-getopt.h: Ditto.
9138 * mi/mi-interp.c: Ditto.
9139 * mi/mi-main.c: Ditto.
9140 * mi/mi-out.c: Ditto.
9141 * mi/mi-parse.c: Ditto.
9142 * mi/mi-parse.h: Ditto.
9143 * mi/mi-symbol-cmds.c: Ditto.
9144
9145 * mi/mi-getopt.h: Move mi_opt struct up.
9146 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9147 return.
9148 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9149
91502012-03-06 Tom Tromey <tromey@redhat.com>
9151
9152 * proc-service.c (ps_pglobal_lookup): Set the current program
9153 space.
9154
91552012-03-06 Pedro Alves <palves@redhat.com>
9156
9157 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9158
91592012-03-05 Joel Brobecker <brobecker@adacore.com>
9160
9161 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9162
91632012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9164
9165 Code cleanup.
9166 * common/linux-osdata.c (linux_common_core_of_thread): New function
9167 comment.
9168 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9169 call by linux_common_core_of_thread.
9170 (linux_nat_core_of_thread_1): Remove.
9171 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9172 * linux-thread-db.c: Include linux-osdata.h.
9173 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9174 linux_common_core_of_thread.
9175
91762012-03-05 Tom Tromey <tromey@redhat.com>
9177
9178 * value.c (value_primitive_field): Don't fetch contents for
9179 non-virtual bases.
9180
91812012-03-05 Tom Tromey <tromey@redhat.com>
9182
9183 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9184
91852012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9186
9187 * s390-nat.c: Include "gregset.h".
9188
91892012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9190
9191 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9192 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9193 (libunwind_load): New variable so_error, use it for dlerror. Try to
9194 load also LIBUNWIND_SO_7.
9195
91962012-03-05 Pedro Alves <palves@redhat.com>
9197
9198 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9199 is not NULL, and remove resulting dead code.
9200
92012012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9202
9203 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9204 prologue to sh_analyze_prologue.
9205 (sh_analyze_prologue): Make better use of such an upper limit, and
9206 generally be more cautious about accessing memory.
9207
92082012-03-05 Tom Tromey <tromey@redhat.com>
9209
9210 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9211 _initialize_ia64_hpux_tdep.
9212
92132012-03-05 Pedro Alves <palves@redhat.com>
9214
9215 PR gdb/13766
9216
9217 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9218 the register state is clear, supply explicit zero, instead of
9219 marking the register unavailable.
9220
92212012-03-05 Tristan Gingold <gingold@adacore.com>
9222
9223 * NEWS: Mention OpenVMS ia64 new target.
9224
92252012-03-05 Tristan Gingold <gingold@adacore.com>
9226
9227 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9228 (ia64_unw_accessors, ia64_unw_rse_accessors)
9229 (ia64_libunwind_descr): Declare.
9230 * ia64-vms-tdep.c: New file.
9231 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9232 (ia64_libunwind_descr): Make them public.
9233 * configure.tgt: Add ia64-*-*vms*.
9234 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9235 (ALLDEPFILES): Add ia64-vms-tdep.c
9236
92372012-03-05 Tristan Gingold <gingold@adacore.com>
9238
9239 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9240 * remote.c (PACKET_qXfer_uib): New enum value.
9241 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9242 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9243 (_initialize_remote): Call add_packet_config_cmd for
9244 xfer:uib packet.
9245
92462012-03-05 Tristan Gingold <gingold@adacore.com>
9247
9248 * osabi.c (gdb_osabi_names): Add OpenVMS.
9249 (generic_elf_osabi_sniffer): Likewise.
9250 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9251
92522012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9253
9254 Removed unused code.
9255 * libunwind-frame.c (libunwind_frame_unwind)
9256 (libunwind_frame_base_address): Remove.
9257 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9258
92592012-03-04 Yao Qi <yao@codesourcery.com>
9260
9261 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9262 remove trailing new line.
9263 (agent_run_command, agent_run_command): Add _ markup.
9264 (agent_capability_check): Likewise.
9265
92662012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9267
9268 * breakpoint.c (set_condition_evaluation_mode): Set
9269 CONDITION_EVALUATION_MODE unconditionally.
9270
92712012-03-03 Yao Qi <yao@codesourcery.com>
9272
9273 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9274 * common/agent.h: Update declaration.
9275 * inf-child.c (inf_child_use_agent): New.
9276 (inf_child_can_use_agent): New.
9277 (inf_child_target): Initialize fields `to_use_agent'
9278 and `to_can_use_agent'.
9279 * agent.c (agent_new_objfile): New.
9280 (_initialize_agent): Add agent_new_objfile to new_objfile
9281 observer.
9282
9283 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9284 New.
9285 (linux_target_install_ops): Initialize field
9286 `to_static_tracepoint_markers_by_strid'.
9287 * remote.c (free_current_marker): Move it to ...
9288 * tracepoint.c (free_current_marker): ... here. New.
9289 (cleanup_target_stop): New.
9290 * tracepoint.h: Declare free_current_marker.
9291 * NEWS: Add one entry about `info static-tracepoint-marker'.
9292
92932012-03-03 Yao Qi <yao@codesourcery.com>
9294
9295 * common/agent.c (agent_loaded_p): New.
9296 (agent_look_up_symbols): New global.
9297 * common/agent.h: Declare agent_loaded_p.
9298
92992012-03-03 Yao Qi <yao@codesourcery.com>
9300
9301 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9302 (agent_capability_check, agent_capability_invalidate): New.
9303 (symbol_list): New array element.
9304 * common/agent.h (enum agent_capa): New.
9305 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9306
93072012-03-03 Yao Qi <yao@codesourcery.com>
9308
9309 * target.h (struct target_ops) <to_use_agent>: New field.
9310 (struct target_ops) <to_can_use_agent>: New field.
9311 (target_use_agent, target_can_use_agent): New macro.
9312 * target.c (update_current_target): Update.
9313 * remote.c: New enum `PACKET_QAgent'.
9314 (remote_protocol_features): Add a new element.
9315 (remote_use_agent, remote_can_use_agent): New.
9316 (init_remote_ops): Initialize field `can_use_agent' with
9317 remote_can_use_agent. Intiailize field `use_agent' with
9318 remote_use_agent.
9319 * common/agent.c (use_agent): New global.
9320 * common/agent.h: Declare it.
9321 * tracepoint.c (info_static_tracepoint_markers_command): Add
9322 comment.
9323 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9324 (COMMON_OBS): Add common/agent.o and agent.o
9325 (common-agent.o): New rule.
9326 * agent.c: New.
9327
93282012-03-03 Yao Qi <yao@codesourcery.com>
9329
9330 * common/agent.c: New.
9331 * common/agent.h: New.
9332 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9333 AC_CHECK_HEADERS.
9334 * configure, configh.in: Regenerated.
9335
93362012-03-02 Kevin Buettner <kevinb@redhat.com>
9337
9338 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9339 unless it exists for this architecture.
9340
93412012-03-02 Joel Brobecker <brobecker@adacore.com>
9342
9343 * language.h (struct language_defn): New "method" la_read_var_value.
9344 * findvar.c: #include "language.h".
9345 (default_read_var_value): Renames read_var_value. Rewrite
9346 function description.
9347 (read_var_value): New function.
9348 * value.h (default_read_var_value): Add prototype.
9349 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9350 New functions.
9351 (ada_language_defn): Add entry for la_read_var_value.
9352 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9353 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9354 language_defn structures to add entry for new la_read_var_value
9355 field.
9356
93572012-03-02 Tom Tromey <tromey@redhat.com>
9358 Pedro Alves <palves@redhat.com>
9359
9360 PR breakpoints/13776:
9361 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9362 breakpoints.
9363 (delete_longjmp_breakpoint_at_next_stop): New.
9364 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9365 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9366 before deleting the inferior. Add comments.
9367 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9368 breakpoints immediately, but only on next stop. Move that code
9369 next to where we mark other breakpoints for deletion.
9370
93712012-03-02 Joel Brobecker <brobecker@adacore.com>
9372
9373 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9374 marker.
9375 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9376 violation.
9377
93782012-03-02 Pedro Alves <palves@redhat.com>
9379
9380 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9381
93822012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9383
9384 Fix -Wmissing-prototypes build.
9385 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9386 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9387 (gdbsim_has_memory): Likewise.
9388
93892012-03-02 Yao Qi <yao@codesourcery.com>
9390
9391 Fix -Wmissing-prototypes build.
9392 * charset.c (phony_iconv_open): Make static.
9393 (phony_iconv_close, phony_iconv): Likewise.
9394 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9395 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9396 prototype.
9397 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9398 * ser-mingw.c (create_select_thread): Make static.
9399 * windows-termcap.c (tgetent): New prototype.
9400 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9401
94022012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9403
9404 Fix -Wmissing-prototypes build.
9405 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9406 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9407 (_initialize_loadable): New prototypes.
9408
94092012-03-02 Doug Evans <dje@google.com>
9410
9411 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9412 abbrev table, read_comp_unit will do it.
9413
94142012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9415
9416 Fix -Wmissing-prototypes build.
9417 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9418 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9419 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9420 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9421 (_initialize_arm_symbian_tdep): New prototype.
9422 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9423 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9424 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9425 static.
9426 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9427 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9428 prototype.
9429 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9430 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9431 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9432 static.
9433 * moxie-tdep.c (moxie_process_record): Likewise.
9434 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9435 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9436 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9437 (_initialize_rl78_tdep): New prototype.
9438 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9439 (_initialize_rx_tdep): New prototype.
9440 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9441 (_initialize_darwin_solib): New prototype.
9442 * solib-spu.c: Include solib-spu.h.
9443 (_initialize_spu_solib): New prototype.
9444 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9445 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9446 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9447 (tic6x_software_single_step): Make it static.
9448 (_initialize_tic6x_tdep): New prototype.
9449
94502012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9451
9452 Fix -Wmissing-prototypes build.
9453 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9454 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9455
94562012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9457
9458 Fix -Wmissing-prototypes build.
9459 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9460 (frv_have_stopped_data_address): Remove.
9461
94622012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9463
9464 Fix -Wmissing-prototypes build.
9465 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9466 * sh-tdep.c: Include sh64-tdep.h.
9467 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9468 * sh64-tdep.c: Include sh64-tdep.h.
9469 * sh64-tdep.h: New file.
9470
94712012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9472
9473 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9474
94752012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9476
9477 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9478 sp_regnum once the gdbarch_init_osabi hook has been called.
9479
94802012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9481
9482 * mips-tdep.c (mips32_bc1_pc): New function.
9483 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9484 BPOSGE32 and BPOSGE64 instructions.
9485 (deal_with_atomic_sequence): Likewise.
9486 (mips32_instruction_has_delay_slot): Likewise.
9487
94882012-03-01 Maciej W. Rozycki <macro@mips.com>
9489 Chris Dearman <chris@mips.com>
9490 Maciej W. Rozycki <macro@codesourcery.com>
9491 Joseph Myers <joseph@codesourcery.com>
9492
9493 * features/mips-dsp.xml: New file.
9494 * features/mips64-dsp.xml: New file.
9495 * features/mips-dsp-linux.xml: New file.
9496 * features/mips64-dsp-linux.xml: New file.
9497 * features/Makefile (WHICH): Add mips-dsp-linux and
9498 mips64-dsp-linux.
9499 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9500 * features/mips-dsp-linux.c: New file.
9501 * features/mips64-dsp-linux.c: New file.
9502 * regformats/mips-dsp-linux.dat: New file.
9503 * regformats/mips64-dsp-linux.dat: New file.
9504 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9505 registers.
9506 (mips64_linux_register_addr): Likewise.
9507 (mips64_linux_regsets_fetch_registers): Likewise.
9508 (mips64_linux_regsets_store_registers): Likewise.
9509 (mips64_linux_fetch_registers): Update call to
9510 mips64_linux_regsets_fetch_registers.
9511 (mips64_linux_store_registers): Update call to
9512 mips64_linux_regsets_store_registers.
9513 (mips_linux_read_description): Probe for DSP registers.
9514 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9515 and initialize_tdesc_mips64_dsp_linux.
9516 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9517 Remove padding of no longer used embedded register slots.
9518 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9519 (MIPS_RESTART_REGNUM): Redefine enum value.
9520 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9521 strings.
9522 (mips_tx39_reg_names): Likewise.
9523 (mips_linux_reg_names): New array of register names for Linux
9524 targets.
9525 (mips_register_name): Check for a null pointer in
9526 mips_processor_reg_names and return an empty string.
9527 (mips_register_type): Exclude embedded registers for the IRIX
9528 and Linux ABIs.
9529 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9530 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9531 DSP registers.
9532 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9533 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9534 (mips_gdbarch_init): Likewise. Initialize internal register
9535 indices for the Linux ABI. Use dynamic numbers to refer to
9536 registers, as applicable, while parsing the target description.
9537 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9538
95392012-03-01 Joel Brobecker <brobecker@adacore.com>
9540
9541 * frame.h (read_frame_register_unsigned): Fix typo in function
9542 description.
9543
95442012-03-01 Pedro Alves <palves@redhat.com>
9545
9546 * jit-reader.in [!__cplusplus]
9547 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9548
95492012-03-01 Pedro Alves <palves@redhat.com>
9550
9551 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9552 * configure: Regenerate.
9553
95542012-03-01 Pedro Alves <palves@redhat.com>
9555
9556 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9557 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9558 (ftrace_command, strace_command): Make static.
9559 * d-lang.c (_initialize_d_language): Declare.
9560 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9561 * dwarf2loc.c (_initialize_dwarf2loc):
9562 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9563 * exec.c (exec_get_section_table): Make static.
9564 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9565 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9566 * inferior.c (remove_inferior_command, add_inferior_command)
9567 (clone_inferior_command): Make static.
9568 * linux-nat.c (linux_nat_thread_address_space)
9569 (linux_nat_core_of_thread): Make static.
9570 * linux-tdep.c (_initialize_linux_tdep): Declare.
9571 * objc-lang.c (_initialize_objc_lang): Declare.
9572 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9573 Make static.
9574 (_initialize_opencl_language): Declare.
9575 * record.c (_initialize_record): Declare.
9576 * remote.c (demand_private_info, remote_get_tib_address)
9577 (remote_supports_cond_tracepoints)
9578 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9579 Make static.
9580 * skip.c (_initialize_step_skip): Declare.
9581 * symtab.c (skip_prologue_using_lineinfo): Make static.
9582 * tracepoint.c (delete_trace_state_variable)
9583 (trace_variable_command, delete_trace_variable_command)
9584 (get_uploaded_tsv, find_matching_tracepoint_location)
9585 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9586 Make static.
9587 * value.c (pack_unsigned_long): Make static.
9588 * varobj.c (varobj_ensure_python_env): Make static.
9589 * windows-tdep.c (_initialize_windows_tdep): Declare.
9590 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9591
95922012-03-01 Pedro Alves <palves@redhat.com>
9593
9594 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9595 gdbarch parameter.
9596 (linux_init_abi): Install it as has_shared_address_space gdbarch
9597 callback.
9598
95992012-03-01 Pedro Alves <palves@redhat.com>
9600
9601 * observer.c (observer_test_first_notification_function)
9602 (observer_test_second_notification_function)
9603 (observer_test_third_notification_function): Add declarations.
9604
96052012-03-01 Pedro Alves <palves@redhat.com>
9606
9607 * common/signals.c (default_target_signal_to_host)
9608 (default_target_signal_from_host): Move ...
9609 * arch-utils.c: ... here.
9610 * arch-utils.h (default_target_signal_to_host)
9611 (default_target_signal_from_host): Declare.
9612
9613 * common/signals.c (target_signal_from_command): Move ...
9614 * infrun.c: ... here.
9615 * inferior.h (target_signal_from_command): Declare.
9616 * target.h (target_signal_from_command)
9617 (default_target_signal_from_host, default_target_signal_to_host):
9618 Delete declarations.
9619
9620 * common/signals.c (_initialize_signals): Delete.
9621
96222012-03-01 Pedro Alves <palves@redhat.com>
9623
9624 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9625 both __cplusplus and !__cplusplus.
9626
96272012-03-01 Pedro Alves <palves@redhat.com>
9628
9629 * psymtab.c (find_and_open_source): Delete declaration.
9630 * source.c (find_and_open_source): Move comment ...
9631 * source.h (find_and_open_source): ... to this new declaration.
9632
96332012-03-01 Pedro Alves <palves@redhat.com>
9634
9635 * inline-frame.c: Include inline-frame.h.
9636
96372012-03-01 Pedro Alves <palves@redhat.com>
9638
9639 * tui/tui-data.c (set_gen_win_origin): Delete.
9640 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9641 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9642
96432012-03-01 Pedro Alves <palves@redhat.com>
9644
9645 * remote.c (encode_actions): Delete declaration.
9646 * tracepoint.c (encode_actions): Make extern.
9647 * tracepoint.h (encode_actions): Declare.
9648
96492012-03-01 Pedro Alves <palves@redhat.com>
9650
9651 * python/py-breakpoint.c: Include python.h.
9652 * python/py-continueevent.c (create_continue_event_object): Make
9653 static.
9654 * python/py-lazy-string.c (stpy_get_type): Make static.
9655 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9656 Make static.
9657 * python/py-utils.c (unicode_to_target_python_string): Make
9658 static.
9659 * python/py-value.c: Include python.h.
9660
96612012-03-01 Pedro Alves <palves@redhat.com>
9662
9663 * inferior.c (delete_threads_of_inferior): Delete.
9664
96652012-03-01 Pedro Alves <palves@redhat.com>
9666
9667 Import fallback definitions from glibc.
9668
9669 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9670 ps_prochandle): Forward declare.
9671 (ps_err_e): Use glibc's comments.
9672 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9673 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9674 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9675 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9676 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9677 (struct ps_prochandle): Adjust comment.
9678
96792012-03-01 Pedro Alves <palves@redhat.com>
9680
9681 * ada-lang.c (ada_modulus_from_name): Delete.
9682 * ada-lex.l (lexer_init): Make static.
9683
96842012-03-01 Pedro Alves <palves@redhat.com>
9685
9686 PR gdb/13767
9687
9688 * frame.c (read_frame_register_unsigned): New.
9689 * frame.h (read_frame_register_unsigned): Declare.
9690 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9691 Handle it.
9692 (print_i387_control_word): New parameter `control_p'. Handle it.
9693 (i387_print_float_info): Handle unavailable float registers.
9694
96952012-03-01 Keith Seitz <keiths@redhat.com>
9696
9697 * linespec.c (decode_line_2): Sort the list of methods
9698 alphabetically before presenting the user with a selection
9699 menu.
9700
97012012-03-01 Doug Evans <dje@google.com>
9702
9703 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9704 has_namespace_info.
9705 (dwarf2_read_abbrevs): Remove corresponding initialization.
9706
97072012-03-01 Scott J. Goldman <scottjg@vmware.com>
9708
9709 * NEWS: Mention new python command class gdb.COMMAND_USER.
9710 * cli/cli-cmds.c (show_user): Print error when used on a python
9711 command.
9712 (init_cli_cmds): Update documentation strings for "show user" and
9713 "set/show max-user-call-depth" to clarify that it does not apply to
9714 python commands.
9715 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9716 error check.
9717 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9718 gdb python api.
9719 * top.c (execute_command): Only execute a user-defined command as a
9720 legacy macro if c->user_commands is set.
9721
97222012-03-01 Tom Tromey <tromey@redhat.com>
9723
9724 * valprint.h (struct generic_val_print_decorations): New.
9725 (generic_val_print): Declare.
9726 * valprint.c (generic_val_print): New function.
9727 * p-valprint.c (p_decorations): New global.
9728 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9729 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9730 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9731 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9732 * m2-valprint.c (m2_decorations): New global.
9733 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9734 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9735 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9736 TYPE_CODE_ERROR>: Call generic_val_print.
9737 * f-valprint.c (f_decorations): New global.
9738 (f_val_print): Use print_function_pointer_address.
9739 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9740 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9741 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9742 generic_val_print.
9743 * c-valprint.c (c_decorations): New global.
9744 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9745 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9746 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9747 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9748 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9749 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9750 case.
9751
97522012-03-01 Tom Tromey <tromey@redhat.com>
9753
9754 * valprint.c (val_print): Update.
9755 * p-valprint (pascal_val_print): Return void.
9756 * p-lang.h (pascal_val_print): Return void.
9757 * m2-valprint.c (m2_val_print): Return void.
9758 * m2-lang.h (m2_val_print): Return void.
9759 * language.h (struct language_defn) <la_val_print>: Return void.
9760 * language.c (unk_lang_val_print): Return void.
9761 * jv-valprint.c (java_val_print): Return void.
9762 * jv-lang.h (java_val_print): Return void.
9763 * f-valprint.c (f_val_print): Return void.
9764 * f-lang.h (f_val_print): Return void.
9765 * d-valprint.c (d_val_print): Return void.
9766 (dynamic_array_type): Update.
9767 * d-lang.h (d_val_print): Return void.
9768 * c-valprint.c (c_val_print): Return void.
9769 * c-lang.h (c_val_print): Return void.
9770 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9771 void.
9772 * ada-lang.h (ada_val_print): Return void.
9773
97742012-03-01 Tom Tromey <tromey@redhat.com>
9775
9776 * value.h (val_print): Return void.
9777 * valprint.c (val_print): Return void.
9778
97792012-03-01 Tom Tromey <tromey@redhat.com>
9780
9781 * value.h (common_val_print): Return void.
9782 * valprint.c (common_val_print): Return void.
9783
97842012-03-01 Tom Tromey <tromey@redhat.com>
9785
9786 * value.h (value_print): Return void.
9787 * valprint.c (value_print): Return void.
9788 * p-valprint.c (pascal_value_print): Return void.
9789 * p-lang.h (pascal_value_print): Return void.
9790 * language.h (struct language_defn) <la_value_print>: Return
9791 void.
9792 * language.c (unk_lang_value_print): Return void.
9793 * jv-valprint.c (java_value_print): Return void.
9794 * jv-lang.h (java_value_print): Return void.
9795 * f-valprint.c (c_value_print): Don't declare.
9796 Include c-lang.h.
9797 * c-valprint.c (c_value_print): Return void.
9798 * c-lang.h (c_value_print): Return void.
9799 * ada-valprint.c (ada_value_print): Return void.
9800 * ada-lang.h (ada_value_print): Return void.
9801
98022012-03-01 Tom Tromey <tromey@redhat.com>
9803
9804 * value.c (value_primitive_field): Handle virtual base classes.
9805
98062012-03-01 Tom Tromey <tromey@redhat.com>
9807
9808 * gdbtypes.h (struct vbase): Remove.
9809
98102012-03-01 Tom Tromey <tromey@redhat.com>
9811
9812 * c-valprint.c (print_function_pointer_address): Move...
9813 * valprint.c: ... here. Make non-static.
9814 * m2-valprint.c (print_function_pointer_address): Remove.
9815 * valprint.h (print_function_pointer_address): Declare.
9816
98172012-03-01 Joel Brobecker <brobecker@adacore.com>
9818
9819 * NEWS: Document the fact that one can provide a condition when
9820 creating an Ada exception catchpoint.
9821
98222012-03-01 Tom Tromey <tromey@redhat.com>
9823
9824 * valprint.c (val_print_type_code_flags): Fix placement of
9825 trailing brace.
9826
98272012-03-01 Joel Brobecker <brobecker@adacore.com>
9828
9829 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9830 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9831 environment variable before calling update-copyright.
9832
98332012-03-01 Joel Brobecker <brobecker@adacore.com>
9834
9835 * gnulib/extra/update-copyright: Update to the latest from
9836 gnulib's git repository.
9837 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9838 variable to 2 instead of 1.
9839
98402012-02-29 Joel Brobecker <brobecker@adacore.com>
9841
9842 * varobj.c (c_value_of_variable): Remove dead code.
9843
98442012-02-29 Joel Brobecker <brobecker@adacore.com>
9845
9846 * ada-lex.p (processId): Do not modify already encoded IDs.
9847 Update function documentation.
9848
98492012-02-29 Joel Brobecker <brobecker@adacore.com>
9850
9851 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9852 "name" with "struct symbol *name_sym".
9853 * ada-exp.y (write_var_or_type): Update call to
9854 ada_find_renaming_symbol.
9855 "name" with "struct symbol *name_sym". Adjust Implementation
9856 accordingly. Adjust the function documentation.
9857
98582012-02-29 Joel Brobecker <brobecker@adacore.com>
9859
9860 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9861 * ada-lang.c (ada_find_any_type): Add advance declaration.
9862 Make static. Replace ada_find_any_symbol by
9863 ada_find_any_type_symbol.
9864 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9865 Improve function description. Make static.
9866 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9867 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9868
98692012-02-29 Joel Brobecker <brobecker@adacore.com>
9870
9871 * ada-lang.c (struct tag_args): Delete.
9872 (ada_get_tsd_type): Function body moved up in source file.
9873 (ada_tag_name_1, ada_tag_name_2): Delete.
9874 (ada_get_tsd_from_tag): New function.
9875 (ada_tag_name_from_tsd): New function.
9876 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9877 to determine the tag name.
9878
98792012-02-29 Joel Brobecker <brobecker@adacore.com>
9880
9881 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9882 declaration.
9883 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9884 function.
9885
98862012-02-29 Joel Brobecker <brobecker@adacore.com>
9887
9888 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9889
98902012-02-29 Joel Brobecker <brobecker@adacore.com>
9891
9892 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9893 full searches.
9894
98952012-02-29 Joel Brobecker <brobecker@adacore.com>
9896
9897 * ada-lang.c (constrained_packed_array_type): If there is a
9898 parallel XA type, use it to determine the array index type.
9899
99002012-02-29 Joel Brobecker <brobecker@adacore.com>
9901
9902 * ada-valprint.c (ada_val_print_1): If our value is a reference
9903 to an array descriptor, dereference it before converting it
9904 to a simple array.
9905
99062012-02-29 Joel Brobecker <brobecker@adacore.com>
9907
9908 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9909 creating fixed value.
9910 (ada_value_ind, ada_coerce_ref, assign_component)
9911 (ada_evaluate_subexp): Remove call to unwrap_value before
9912 call to ada_to_fixed_value.
9913
99142012-02-29 Joel Brobecker <brobecker@adacore.com>
9915
9916 * ada-lang.c (to_fixed_array_type): Set result's type name.
9917
99182012-02-29 Joel Brobecker <brobecker@adacore.com>
9919
9920 * ada-lang.c (catch_ada_exception_command_split): Add new
9921 argument cond_string. Add support for condition at end of
9922 "catch exception" commands.
9923 (ada_decode_exception_location): Add new argument cond_string.
9924 Update call to catch_ada_exception_command_split.
9925 (create_ada_exception_catchpoint): Add new argument cond_string.
9926 Set the breakpoint condition if needed.
9927 (catch_ada_exception_command): Update call to
9928 ada_decode_exception_location.
9929 (ada_decode_assert_location): Add function documentation.
9930 Add support for condition at end of "catch assert" command.
9931 (catch_assert_command): Update calls to ada_decode_assert_location
9932 and create_ada_exception_catchpoint.
9933
99342012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9935
9936 Fix disp-step-syscall.exp: fork: single step over fork.
9937 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9938 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9939 comment, change parameters gdbarch and ptid to regcache. Remove
9940 parameter regcache, initialize gdbarch from regcache here.
9941 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9942 New functions.
9943 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9944 instead.
9945 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9946 'syscall'. Make the 'int' check more strict.
9947
99482012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9949
9950 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9951 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9952 (i386_linux_intx80_sysenter_syscall_record): ... here.
9953 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9954 Use the renamed function name.
9955
99562012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9957
9958 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9959 * breakpoint.c (until_break_command): Likewise.
9960 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9961 * infcall.c (call_function_by_hand): Likewise.
9962 * infcmd.c (finish_forward): Likewise.
9963 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9964
99652012-02-28 Tristan Gingold <gingold@adacore.com>
9966
9967 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9968 avoid variable assignments inside condition.
9969
99702012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9971
9972 Fix static analysis issue found by cppcheck.
9973 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9974 uninitialized BUF for size 2.
9975
99762012-02-27 Chris Dearman <chris@mips.com>
9977 Nathan Froyd <froydnj@codesourcery.com>
9978 Maciej W. Rozycki <macro@codesourcery.com>
9979
9980 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9981 (mips16_instruction_has_delay_slot): Likewise.
9982 (mips_segment_boundary): Likewise.
9983 (mips_adjust_breakpoint_address): Likewise.
9984 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9985
99862012-02-27 Maciej W. Rozycki <macro@mips.com>
9987 Maciej W. Rozycki <macro@codesourcery.com>
9988
9989 * infrun.c (handle_inferior_event): Don't proceed through
9990 shared library trampolines if stepping at the machine
9991 instruction level.
9992
99932012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9994
9995 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9996 too.
9997
99982012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9999
10000 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10001 (sh_stub_unwind_sniffer): New functions.
10002 (sh_stub_unwind): New variable.
10003 (sh_gdbarch_init): Wire everything.
10004
100052012-02-27 Pedro Alves <palves@redhat.com>
10006
10007 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10008 (linux_nat_post_attach_wait): Adjust to use
10009 linux_proc_pid_is_stopped.
10010 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10011 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10012 based on pid_is_stopped from both linux-nat.c and
10013 gdbserver/linux-low.c, and renamed.
10014
100152012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10016
10017 * remote.c (remote_watchpoint_addr_within_range): New function.
10018 (init_remote_ops): Use it.
10019
100202012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10021
10022 * target.h (target_watchpoint_addr_within_range): Document macro.
10023
100242012-02-24 Pedro Alves <palves@redhat.com>
10025
10026 * stack.c (set_last_displayed_sal): Issue internal_error instead
10027 of warning, and issue it after clearing the last displayed sal.
10028
100292012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10030 Pedro Alves <palves@redhat.com>
10031
10032 * breakpoint.c (until_break_command): Install breakpoints after
10033 all frame manipulations.
10034
100352012-02-24 Luis Machado <lgustavo@codesourcery.com>
10036
10037 * remote.c (remote_supports_cond_breakpoints): New forward
10038 declaration.
10039 (remote_add_target_side_condition): New function.
10040 (remote_insert_breakpoint): Add target-side breakpoint
10041 conditional if supported.
10042 (remote_insert_hw_breakpoint): Likewise.
10043 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10044 hook.
10045
10046 * target.c (update_current_target): Inherit
10047 to_supports_evaluation_of_breakpoint_conditions.
10048 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10049
10050 * target.h (struct target_ops)
10051 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10052 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10053
10054 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10055 (condition_evaluation_both, condition_evaluation_auto,
10056 condition_evaluation_host, condition_evaluation_target,
10057 condition_evaluation_enums, condition_evaluation_mode_1,
10058 condition_evaluation_mode): New static globals.
10059 (translate_condition_evaluation_mode): New function.
10060 (breakpoint_condition_evaluation_mode): New function.
10061 (gdb_evaluates_breakpoint_condition_p): New function.
10062 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10063 (mark_breakpoint_modified): New function.
10064 (mark_breakpoint_location_modified): New function.
10065 (set_condition_evaluation_mode): New function.
10066 (show_condition_evaluation_mode): New function.
10067 (bp_location_compare_addrs): New function.
10068 (get_first_location_gte_addr): New helper function.
10069 (set_breakpoint_condition): Free condition bytecode if locations
10070 has become unconditional. Call mark_breakpoint_modified (...).
10071 (condition_command): Call update_global_location_list (1) for
10072 breakpoints.
10073 (breakpoint_xfer_memory): Use is_breakpoint (...).
10074 (is_breakpoint): New function.
10075 (parse_cond_to_aexpr): New function.
10076 (build_target_condition_list): New function.
10077 (insert_bp_location): Handle target-side conditional
10078 breakpoints and call build_target_condition_list (...).
10079 (update_inserted_breakpoint_locations): New function.
10080 (insert_breakpoint_locations): Handle target-side conditional
10081 breakpoints.
10082 (bpstat_check_breakpoint_conditions): Add comment.
10083 (bp_condition_evaluator): New function.
10084 (bp_location_condition_evaluator): New function.
10085 (print_breakpoint_location): Print information on where the condition
10086 will be evaluated.
10087 (print_one_breakpoint_location): Likewise.
10088 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10089 breakpoint location.
10090 (force_breakpoint_reinsertion): New functions.
10091 (update_global_location_list): Handle target-side breakpoint
10092 conditions.
10093 Reinsert locations that are already inserted if conditions have
10094 changed.
10095 (bp_location_dtor): Free agent expression bytecode.
10096 (disable_breakpoint): Call mark_breakpoint_modified (...).
10097 Call update_global_location_list (...) with parameter 1 for breakpoints.
10098 (disable_command): Call mark_breakpoint_location_modified (...).
10099 Call update_global_location_list (...) with parameter 1 for breakpoints.
10100 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10101 (enable_command): mark_breakpoint_location_modified (...).
10102 (_initialize_breakpoint): Update documentation and add
10103 condition-evaluation breakpoint subcommand.
10104
10105 * breakpoint.h: Include ax.h.
10106 (condition_list): New data structure.
10107 (condition_status): New enum.
10108 (bp_target_info) <cond_list>: New field.
10109 (bp_location) <condition_changed, cond_bytecode>: New fields.
10110 (is_breakpoint): New prototype.
10111
101122012-02-24 Luis Machado <lgustavo@codesourcery.com>
10113
10114 * remote.c (remote_state) <cond_breakpoints>: New field.
10115 (PACKET_ConditionalBreakpoints): New enum.
10116 (remote_cond_breakpoint_feature): New function.
10117 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10118 (remote_supports_cond_breakpoints): New function.
10119 (_initialize_remote): Add new packet configuration for
10120 target-side conditional breakpoints.
10121
101222012-02-24 Luis Machado <lgustavo@codesourcery.com>
10123
10124 * NEWS: Mention target-side conditional breakpoint support,
10125 new condition-evaluation breakpoint subcommand and remote
10126 packet extensions.
10127
101282012-02-24 Luis Machado <lgustavo@codesourcery.com>
10129
10130 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10131 number.
10132
101332012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10134
10135 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10136 (after_prologue): Remove.
10137
101382012-02-23 Tom Tromey <tromey@redhat.com>
10139
10140 * jv-valprint.c (java_val_print): Remove dead code.
10141
101422012-02-23 Tristan Gingold <gingold@adacore.com>
10143
10144 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10145 known_tasks_element and known_tasks_length fields.
10146 (read_known_tasks_array): Change argument type. Use pointer type
10147 and number of elements from DATA. Adjust.
10148 (read_known_tasks_list): Likewise.
10149 (get_known_tasks_addr): Remove.
10150 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10151 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10152 type and array length. Merge former get_known_tasks_addr code.
10153
101542012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10155
10156 PR backtrace/13716
10157 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10158 it after set_momentary_breakpoint.
10159
101602012-02-22 Sterling Augustine <saugustine@google.com>
10161
10162 PR 13689:
10163 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10164
101652012-02-22 Gary Benson <gbenson@redhat.com>
10166
10167 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10168 (find_slot_in_mapped_hash): Likewise.
10169
101702012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10171
10172 PR build/13638
10173 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10174 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10175 * configure: Regenerate.
10176
101772012-02-21 Tristan Gingold <gingold@adacore.com>
10178 Pedro Alves <palves@redhat.com>
10179
10180 * ia64-tdep.c: Do not include libunwind-ia64.h.
10181 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10182 Include libunwind-ia64.h instead of libunwind.h.
10183 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10184 for libunwind.h existence.
10185 * configure, config.in: Regenerate.
10186
101872012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10188
10189 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10190 instead of value_rtti_target_type.
10191 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10192 instead of value_rtti_target_type.
10193 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10194 value_rtti_target_type.
10195 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10196 (value_rtti_target_type): Rename to ...
10197 (value_rtti_indirect_type): ... here and make it indirect. Update
10198 function comment.
10199 * value.c (readjust_indirect_value_type): New function.
10200 (coerce_ref): Support for enclosing type setting for references
10201 with readjust_indirect_value_type.
10202 * value.h (readjust_value_type): New declaration.
10203 (value_rtti_target_type): Rename to ...
10204 (value_rtti_indirect_type): ... here.
10205
102062012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10207
10208 * MAINTAINERS (Write After Approval): Add myself to the list.
10209
102102012-02-20 Doug Evans <dje@google.com>
10211
10212 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10213 Rename objfile_p_char parameter to objfilep.
10214 (build_objfile_section_table): Result is now void. All callers
10215 updated.
10216 * objfiles.h (struct objfile): Tweak comments, whitespace.
10217 (build_objfile_section_table): Update.
10218
10219 * elfread.c (elf_symfile_segments): Fix warning text.
10220
102212012-02-20 Tom Tromey <tromey@redhat.com>
10222
10223 PR gdb/13498:
10224 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10225 particular set of file names once.
10226 (dw2_map_symbol_filenames): Likewise.
10227
102282012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10229
10230 Code cleanup.
10231 * main.c (write_files): Remove the declaration.
10232 (external_editor_command): Move the declaration ...
10233 [GDBTK] (external_editor_command): ... here. Fix the comment.
10234
102352012-02-20 Tom Tromey <tromey@redhat.com>
10236
10237 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10238 extraneous block.
10239
102402012-02-20 Tristan Gingold <gingold@adacore.com>
10241
10242 * darwin-nat.h (enum darwin_msg_state): Add comments.
10243
102442012-02-20 Tristan Gingold <gingold@adacore.com>
10245
10246 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10247 value.
10248
102492012-20-18 Joel Brobecker <brobecker@adacore.com>
10250
10251 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10252 between function description and implementation.
10253
102542012-02-17 Tom Tromey <tromey@redhat.com>
10255
10256 PR python/12070:
10257 * python/py-event.c (event_object_getset): New global.
10258 (event_object_type): Reference it.
10259 * python/py-type.c (field_object_getset): New global.
10260 (field_object_type): Reference it.
10261 * python/python-internal.h (gdb_py_generic_dict): Declare.
10262 * python/py-utils.c (gdb_py_generic_dict): New function.
10263
102642012-02-17 Tristan Gingold <gingold@adacore.com>
10265
10266 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10267
102682012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10269
10270 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10271 TYPE_CALLING_CONVENTION annotation.
10272
102732012-02-16 Kevin Buettner <kevinb@redhat.com>
10274
10275 * MAINTAINERS: Add rx to target ISA section.
10276 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10277 (ALLDEPFILES): Add rx-tdep.c.
10278
102792012-02-16 Tom Tromey <tromey@redhat.com>
10280
10281 * symfile.c (symbol_file_add_main_1): Use inferior's
10282 symfile_flags.
10283 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10284 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10285 inferior.
10286 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10287 inferior.
10288 (follow_exec): Use inferior's symfile_flags.
10289 * inferior.h (struct inferior) <symfile_flags>: New field.
10290
102912012-02-16 Mike Frysinger <vapier@gentoo.org>
10292
10293 PR gdb/9734:
10294 * remote-sim.c (gdbsim_create_inferior): Call error() when
10295 sim_create_inferior() fails.
10296
102972012-02-16 Josh Matthews <josh@joshmatthews.net>
10298
10299 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10300
103012012-02-16 Tom Tromey <tromey@redhat.com>
10302
10303 PR c++/13653:
10304 * thread.c (struct current_thread_cleanup) <was_removable>: New
10305 field.
10306 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10307 (make_cleanup_restore_current_thread): Initialize new field.
10308
103092012-02-15 Kevin Buettner <kevinb@redhat.com>
10310
10311 * MAINTAINERS: Add rl78 to target ISA section.
10312 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10313 (ALLDEPFILES): Add rl78-tdep.c.
10314 * NEWS: Mention rl78 as a new target.
10315
103162012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10317
10318 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10319 data.
10320 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10321
103222012-02-15 Tom Tromey <tromey@redhat.com>
10323
10324 PR gdb/12659:
10325 * infcmd.c (registers_info): Print just the current register's
10326 name.
10327
103282012-02-15 Tom Tromey <tromey@redhat.com>
10329
10330 * python/py-symbol.c (sympy_value): Use _().
10331
103322012-02-15 Pedro Alves <palves@redhat.com>
10333
10334 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10335 output to be like native targets'.
10336 (remote_pid_to_str): Special case the null ptid.
10337
103382012-02-14 Stan Shebs <stan@codesourcery.com>
10339
10340 * NEWS: Mention enable count command.
10341 * breakpoint.h (struct breakpoint): New field enable_count.
10342 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10343 (enable_breakpoint): Add arg to call.
10344 (struct disp_data): New struct.
10345 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10346 (do_map_enable_once_breakpoint): Create a struct and pass it.
10347 (do_map_enable_delete_breakpoint): Ditto.
10348 (do_map_enable_count_breakpoint): New function.
10349 (enable_count_command): New function.
10350 (bpstat_stop_status): Decrement enable_count.
10351 (print_one_breakpoint_location): Report enable count.
10352 (_initialize_breakpoint): Add enable count command.
10353
103542012-02-14 Kevin Buettner <kevinb@redhat.com>
10355
10356 * rl78-tdep.c (reggroups.h): Include.
10357 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10358 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10359 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10360 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10361 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10362 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10363 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10364 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10365 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10366 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10367 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10368 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10369 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10370 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10371 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10372 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10373 beginning of register list.
10374 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10375 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10376 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10377 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10378 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10379 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10380 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10381 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10382 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10383 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10384 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10385 the pseudo registers. Rearrange other pseudo registers too so
10386 that the bank registers appear at the end.
10387 (rl78_register_type): Account for the fact that the byte sized
10388 bank registers are now pseudo-registers.
10389 (rl78_register_name): Rearrange the register name array. Make
10390 initial set of raw banked registers inaccessible.
10391 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10392 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10393 case for copying bytes back and forth between raw and pseudo
10394 versions of the banked registers. Update other cases to reflect
10395 the changed names.
10396 (rl78_return_value): Update to account for changed names of
10397 raw registers.
10398 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10399 rl78_register_sim_regno().
10400
104012012-02-14 Kevin Buettner <kevinb@redhat.com>
10402
10403 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10404 the name parameter being passed to find_pc_partial_function().
10405
104062012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10407
10408 * MAINTAINERS: Step down from being ia64 target maintainer.
10409
104102012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10411
10412 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10413 compilation warning.
10414
104152012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10416
10417 Fix crash on loaded shlibs without loaded exec_bfd.
10418 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10419 (set_section_command): Replace exec_bfd by p->bfd.
10420
104212012-02-10 Tom Tromey <tromey@redhat.com>
10422
10423 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10424 when we have a C++ qualified name.
10425
104262012-02-10 Pedro Alves <palves@redhat.com>
10427
10428 * inferior.c (inferior_pid_to_str): New.
10429 (print_inferior, inferior_command): Use it.
10430
104312012-02-10 Pedro Alves <palves@redhat.com>
10432
10433 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10434 the test CFLAGS.
10435 * configure: Regenerate.
10436
104372012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10438
10439 * linespec.c (decode_line_internal): Fix comment correctness.
10440
104412012-02-09 Valery Khromov <valery.khromov@gmail.com>
10442
10443 PR gdb/12953
10444 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10445 * amd64bsd-nat.c: Add support for debug registers (adapted from
10446 i386bsd-nat.c).
10447 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10448 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10449 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10450 (amd64bsd_dr_get_control): New functions.
10451 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10452 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10453 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10454 watchpoints initialization.
10455 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10456
104572012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10458
10459 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10460 flds_bnds.fields.
10461 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10462
104632012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10464
10465 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10466
104672012-02-08 Joel Brobecker <brobecker@adacore.com>
10468
10469 * language.h (symbol_name_cmp_ftype): Renames
10470 symbol_name_match_p_ftype.
10471 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10472 la_get_symbol_name_match_p.
10473 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10474 ada_get_symbol_name_match_p. Update comment.
10475 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10476 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10477 Renames symbol_name_match_p. Update field type.
10478 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10479 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10480 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10481 "la_get_symbol_name_cmp" in comments.
10482 * language.c: Likewise.
10483
104842012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10485
10486 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10487 %eflags offset.
10488 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10489 (amd64_sol2_gregset32_reg_offs): Likewise.
10490
104912012-02-08 Joel Brobecker <brobecker@adacore.com>
10492
10493 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10494 of the returned BFD is allocated by GDB.
10495
104962012-02-07 Tom Tromey <tromey@redhat.com>
10497
10498 PR python/12027:
10499 * python/python-internal.h (frame_object_type): Declare.
10500 * python/py-symbol.c (sympy_needs_frame): New function.
10501 (sympy_value): New function.
10502 (symbol_object_getset): Add "needs_frame".
10503 (symbol_object_methods): Add "value".
10504 * python/py-frame.c (frame_object_type): No longer static.
10505
105062012-02-07 Tom Tromey <tromey@redhat.com>
10507
10508 PR python/13599:
10509 * python/py-symbol.c (sympy_line): New function.
10510 (symbol_object_getset): Add "line".
10511
105122012-02-07 Tom Tromey <tromey@redhat.com>
10513
10514 * charset.c (find_charset_names): Check 'in' against NULL.
10515
105162012-02-06 Doug Evans <dje@google.com>
10517
10518 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10519 and fields.name members from char * to const char *. All uses updated.
10520 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10521 from char * to const char *. All uses updated.
10522 (type_name_no_tag): Update.
10523 (lookup_unsigned_typename, lookup_signed_typename): Update.
10524 * gdbtypes.c (type_name_no_tag): Change result type
10525 from char * to const char *. All callers updated.
10526 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10527 name parameter from char * to const char *.
10528 * symtab.h (struct cplus_specific): Change type of demangled_name
10529 member from char * to const char *. All uses updated.
10530 (struct general_symbol_info): Change type of name and
10531 mangled_lang.demangled_name members from char * to const char *.
10532 All uses updated.
10533 (symbol_get_demangled_name, symbol_natural_name): Update.
10534 (symbol_demangled_name, symbol_search_name): Update.
10535 * symtab.c (symbol_get_demangled_name): Change result type
10536 from char * to const char *. All callers updated.
10537 (symbol_natural_name, symbol_demangled_name): Ditto.
10538 (symbol_search_name): Ditto.
10539 (completion_list_add_name): Change type of symname,sym_text,
10540 text,word parameters from char * to const char *.
10541 (completion_list_objc_symbol): Change type of sym_text,
10542 text,word parameters from char * to const char *.
10543 * ada-lang.c (find_struct_field): Change type of name parameter
10544 from char * to const char *.
10545 (encoded_ordered_before): Similarly for N0,N1 parameters.
10546 (old_renaming_is_invisible): Similarly for function_name parameter.
10547 (ada_type_name): Change result type from char * to const char *.
10548 All callers updated.
10549 * ada-lang.h (ada_type_name): Update.
10550 * buildsym.c (hashname): Change type of name parameter
10551 from char * to const char *.
10552 * buildsym.h (hashname): Update.
10553 * dbxread.c (end_psymtab): Change type of include_list parameter
10554 from char ** to const char **.
10555 * dwarf2read.c (determine_prefix): Change result type
10556 from char * to const char *. All callers updated.
10557 * f-lang.c (find_common_for_function): Change type of name, funcname
10558 parameters from char * to const char *.
10559 * f-lang.c (find_common_for_function): Update.
10560 * f-valprint.c (list_all_visible_commons): Change type of funcname
10561 parameters from char * to const char *.
10562 * gdbarch.sh (static_transform_name): Change type of name parameter
10563 and result from char * to const char *.
10564 * gdbarch.c: Regenerate.
10565 * gdbarch.h: Regenerate.
10566 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10567 of name parameter from char * to const char *.
10568 * jv-lang.c (java_primitive_type_from_name): Ditto.
10569 (java_demangled_signature_length): Similarly for signature parameter.
10570 (java_demangled_signature_copy): Ditto.
10571 (java_demangle_type_signature): Ditto.
10572 * jv-lang.h (java_primitive_type_from_name): Update.
10573 (java_demangle_type_signature): Update.
10574 * objc-lang.c (specialcmp): Change type of a,b parameters
10575 from char * to const char *.
10576 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10577 from char * to const char *. All callers updated.
10578 * p-lang.h (is_pascal_string_type): Update.
10579 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10580 of name parameter from char * to const char *.
10581 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10582 * utils.c (fprintf_symbol_filtered): Ditto.
10583 * defs.h (fprintf_symbol_filtered): Update.
10584 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10585 * stabsread.h (end_psymtab): Update.
10586 * stack.c (find_frame_funname): Change type of funname parameter
10587 from char ** to const char **.
10588 * stack.h (find_frame_funname): Update.
10589 * typeprint.c (type_print): Change type of varstring parameter
10590 from char * to const char *.
10591 * value.h (type_print): Update.
10592 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10593 from char * to const char *. All callers updated.
10594 (xcoff_end_psymtab): Change type of include_list parameter
10595 from char ** to const char **. All callers updated.
10596 (swap_sym): Similarly for name parameter. All callers updated.
10597 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10598 Use xstrdup.
10599 (process_coff_symbol): Use xstrdup.
10600 * stabsread.c (stabs_method_name_from_physname): Renamed from
10601 update_method_name_from_physname. Change result type from void
10602 to char *. All callers updated.
10603 (read_member_functions): In has_destructor case, store name in objfile
10604 obstack instead of malloc space. In !has_stub case, fix mem leak.
10605
106062012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10607
10608 * configure: Rebuild.
10609 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10610 LDFLAGS.
10611
106122012-02-03 Kevin Buettner <kevinb@redhat.com>
10613
10614 * configure.tgt (rl78-*-elf): New target.
10615 * rl78-tdep.c: New file.
10616
106172012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10618
10619 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10620 and continue the loop. Add QUIT statement.
10621
106222012-02-03 Tom Tromey <tromey@redhat.com>
10623
10624 PR gdb/13596:
10625 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10626 bfd_lookup_symbol_from_symtab.
10627 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10628 gdb_bfd_lookup_symbol_from_symtab.
10629
106302012-02-03 Joel Brobecker <brobecker@adacore.com>
10631
10632 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10633 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10634 symbol. Add assertion that sym2 is never NULL.
10635
106362012-02-02 Doug Evans <dje@google.com>
10637
10638 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10639 "name" parameter to const char ** from char **. All callers updated.
10640 (find_pc_partial_function): Ditto.
10641 (cache_pc_function_name): Change type to const char * from char *.
10642 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10643 (find_pc_partial_function): Update.
10644 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10645 type of "name" parameter to const char * from char *.
10646 All uses updated.
10647 * arch-utils.c (generic_in_solib_return_trampoline): Change
10648 type of "name" parameter to const char * from char *.
10649 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10650 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10651 type of "name" parameter to const char * from char *.
10652 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10653 * gdbarch.c: Regenerate.
10654 * gdbarch.h: Regenerate.
10655 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10656 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10657 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10658 type of "name" parameter to const char * from char *.
10659 * skip.c (skip_function_pc): Ditto.
10660 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10661 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10662 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10663 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10664 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10665 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10666 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10667 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10668 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10669
106702012-02-02 Pedro Alves <palves@redhat.com>
10671
10672 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10673 the current inferior has no execution. Make sure the current
10674 remote process matches gdb's current inferior.
10675
106762012-02-02 Tom Tromey <tromey@redhat.com>
10677
10678 PR gdb/13405:
10679 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10680 read-only memory.
10681
106822012-02-02 Tom Tromey <tromey@redhat.com>
10683
10684 PR gdb/9307:
10685 * symtab.c (lookup_language_this): Set block_found.
10686
106872012-02-01 Tom Tromey <tromey@redhat.com>
10688
10689 PR gdb/13431:
10690 * jit.c (struct jit_inferior_data): Rewrite.
10691 (struct jit_objfile_data): New.
10692 (get_jit_objfile_data): New function.
10693 (add_objfile_entry): Update.
10694 (jit_read_descriptor): Return int. Replace descriptor_addr
10695 argument with inf_data. Update. Don't call error.
10696 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10697 descriptor here.
10698 (jit_inferior_init): Don't look up descriptor. Don't call error.
10699 (jit_reset_inferior_data_and_breakpoints)
10700 (jit_inferior_created_observer): Remove.
10701 (jit_inferior_exit_hook): Update.
10702 (jit_executable_changed_observer): Remove.
10703 (jit_event_handler): Update.
10704 (free_objfile_data): Reset inferior data if needed.
10705 (_initialize_jit): Update.
10706
107072012-02-01 Tom Tromey <tromey@redhat.com>
10708
10709 * jit.c (bfd_open_from_target_memory): Move higher in file.
10710
107112012-02-01 Tristan Gingold <gingold@adacore.com>
10712
10713 * libunwind-frame.c (libunwind_load): Display message if dlopen
10714 failed.
10715
107162012-02-01 Gary Benson <gbenson@redhat.com>
10717
10718 * symtab.h (symbol_found_callback_ftype): New typedef.
10719 (iterate_over_symbols): Use the above.
10720 * symtab.c (iterate_over_symbols): Likewise.
10721 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10722 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10723 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10724 (iterate_name_matcher): Document return values.
10725 (collect_one_symbol): Likewise.
10726 (collect_function_symbols): Likewise.
10727 (collect_symbols): Likewise.
10728
107292012-02-01 Tom Tromey <tromey@redhat.com>
10730
10731 * ada-lang.c (resolve_subexp): Update.
10732 (ada_lookup_symbol_list): Add 'full_search' argument.
10733 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10734 ada_lookup_symbol_list.
10735 (ada_lookup_encoded_symbol): Update.
10736 (get_var_value): Update.
10737 * ada-exp.y (block_lookup): Update.
10738 (write_var_or_type): Update.
10739 (write_name_assoc): Update.
10740 * ada-lang.h (ada_lookup_symbol_list): Update.
10741
107422012-01-31 Tom Tromey <tromey@redhat.com>
10743
10744 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10745 comment.
10746
107472012-01-31 Doug Evans <dje@google.com>
10748
10749 * symtab.h: Remove outdated comment.
10750 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10751
107522012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10753
10754 Fix build error in Darwin port.
10755 * i386-darwin-nat.c: Include i386-nat.h.
10756
107572012-01-30 Tom Tromey <tromey@redhat.com>
10758
10759 PR breakpoints/13568:
10760 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10761 argument. Check for recursive includes.
10762 (dwarf_decode_macros): Create an include hash.
10763
107642012-01-30 Michael Eager <eager@eagercon.com>
10765
10766 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10767 * ppc-linux-tdep.c: Include glibc-tdep.h.
10768 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10769 (powerpc_linux_in_plt_stub): New function.
10770 (powerpc_linux_in_dynsym_resolve_code): New function.
10771 (ppc_skip_trampoline_code): New function.
10772 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10773 Use glibc_skip_solib_resolver.
10774
107752012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10776
10777 Code cleanup: Make 1440 bytes of data segment read-only.
10778 * arch-utils.c (endian_enum): Make it const char *const [].
10779 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10780 Likewise.
10781 * breakpoint.c (always_inserted_enums): Likewise.
10782 * cli/cli-cmds.c (script_ext_enums): Likewise.
10783 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10784 enumlist parameter const char *const *.
10785 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10786 const char *const *.
10787 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10788 parameter const char *const *.
10789 * cris-tdep.c (cris_modes): Make it const char *const [].
10790 * filesystem.c (target_file_system_kinds): Likewise.
10791 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10792 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10793 (can_use_displaced_stepping_enum, scheduler_enums)
10794 (exec_direction_names): Likewise.
10795 * language.c (_initialize_language): Make the type_or_range_names and
10796 case_sensitive_names variables const char *const [].
10797 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10798 * python/python.c (python_excp_enums): Likewise.
10799 * remote.c (interrupt_sequence_modes): Likewise.
10800 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10801 * serial.c (logbase_enums): Likewise.
10802 * sh-tdep.c (sh_cc_enum): Likewise.
10803 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10804 Likewise.
10805 * symtab.c (multiple_symbols_modes): Likewise.
10806 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10807 Likewise.
10808 * utils.c (internal_problem_modes): Likewise.
10809
108102012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10811
10812 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10813 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10814 result.
10815
108162012-01-27 Doug Evans <dje@google.com>
10817
10818 * configure.ac (with_python): Fix absolute path handling for win32.
10819 * configure: Regenerate.
10820
108212012-01-26 Doug Evans <dje@google.com>
10822
10823 * symtab.c: Whitespace cleanup, no code changes.
10824
10825 * symtab.c (lookup_symbol_in_language): Improve comment.
10826 (lookup_symbol_aux): Fix comment.
10827
10828 * psymtab.c (add_psymbol_to_list): Result is now "void".
10829 * psympriv.h (add_psymbol_to_list): Update.
10830
10831 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10832
108332012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10834
10835 Do not open script filenames twice.
10836 * cli/cli-cmds.c (source_script_from_stream): Pass to
10837 source_python_script also STREAM.
10838 * python/py-auto-load.c (source_section_scripts): Pass to
10839 source_python_script_for_objfile also STREAM.
10840 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10841 also INPUT.
10842 * python/python-internal.h (source_python_script_for_objfile): New
10843 parameter file, rename parameter file to filename.
10844 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10845 instead if !_WIN32. Update the function comment.
10846 (source_python_script, source_python_script_for_objfile)
10847 (source_python_script): New parameter file, rename parameter file to
10848 filename. Pass FILENAME to python_run_simple_file.
10849 * python/python.h (source_python_script): New parameter file, rename
10850 parameter file to filename.
10851
108522012-01-26 Pedro Alves <palves@redhat.com>
10853
10854 * corelow.c (core_has_fake_pid): Delete.
10855 (core_close): Delete references to `core_has_fake_pid'.
10856 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10857 (core_open): Delete references to `core_has_fake_pid'.
10858 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10859 the removed global.
10860
108612012-01-26 Joel Brobecker <brobecker@adacore.com>
10862
10863 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10864 Remove language parameter from name_matcher. Adjust the comment.
10865 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10866 Remove language parameter.
10867 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10868 * linespec.c (iterate_name_matcher): Likewise.
10869 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10870 name_matcher. Adjust call accordingly.
10871 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10872 (maintenance_check_symtabs): Adjust type of parameter "fun".
10873 * psymtab.h (maintenance_check_symtabs): Likewise.
10874
108752012-01-26 Joel Brobecker <brobecker@adacore.com>
10876
10877 * language.h (symbol_name_match_p_ftype): New typedef.
10878 (struct language_defn): Replace field la_symbol_name_compare
10879 by la_get_symbol_name_match_p.
10880 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10881 (ada_language_defn): Use it.
10882 * linespec.c (struct symbol_matcher_data): New type.
10883 (iterate_name_matcher): Rewrite.
10884 (iterate_over_all_matching_symtabs): Pass a pointer to
10885 a symbol_matcher_data struct to expand_symtabs_matching
10886 instead of just the lookup name.
10887 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10888 opencl-lang.c, p-lang.c, language.c: Delete field
10889 la_symbol_name_compare, and replace by NULL for new field
10890 la_get_symbol_name_match_p.
10891 * symfile.h (struct quick_symbol_functions): Update comment.
10892
108932012-01-25 Tom Tromey <tromey@redhat.com>
10894
10895 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10896 dereferencing.
10897
108982012-01-24 Tom Tromey <tromey@redhat.com>
10899
10900 PR symtab/12406:
10901 * solib.c (update_solib_list): Update the program space's
10902 added_solibs and deleted_solibs fields.
10903 * progspace.h (struct program_space) <added_solibs,
10904 deleted_solibs>: New fields.
10905 (clear_program_space_solib_cache): Declare.
10906 * progspace.c (release_program_space): Call
10907 clear_program_space_solib_cache.
10908 (clear_program_space_solib_cache): New function.
10909 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10910 bpstat_stop_status. Use handle_solib_event.
10911 * breakpoint.c: Include gdb_regex.h.
10912 (print_solib_event): New function.
10913 (bpstat_print): Use print_solib_event.
10914 (bpstat_stop_status): Add special case for bp_shlib_event.
10915 (handle_solib_event): New function.
10916 (bpstat_what): Use handle_solib_event.
10917 (struct solib_catchpoint): New.
10918 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10919 (breakpoint_hit_catch_solib, check_status_catch_solib)
10920 (print_it_catch_solib, print_one_catch_solib)
10921 (print_mention_catch_solib, print_recreate_catch_solib): New
10922 functions.
10923 (catch_solib_breakpoint_ops): New global.
10924 (catch_load_or_unload, catch_load_command_1)
10925 (catch_unload_command_1): New functions.
10926 (internal_bkpt_check_status): Add special case for
10927 bp_shlib_event.
10928 (internal_bkpt_print_it): Use print_solib_event.
10929 (initialize_breakpoint_ops): Initialize
10930 catch_solib_breakpoint_ops.
10931 (_initialize_breakpoint): Register "catch load" and "catch
10932 unload".
10933 * breakpoint.h (handle_solib_event): Declare.
10934 * NEWS: Add entry for "catch load" and "catch unload".
10935
109362012-01-24 Tom Tromey <tromey@redhat.com>
10937
10938 * ada-lang.c: Include gdb_vecs.h.
10939 * charset.c: Include gdb_vecs.h.
10940 * tracepoint.h: Include gdb_vecs.h.
10941 * gdb_vecs.h: New file.
10942
109432012-01-24 Pedro Alves <pedro@codesourcery.com>
10944
10945 * breakpoint.c (breakpoint_hit_catch_fork)
10946 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10947 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10948 * infrun.c (inferior_has_forked, inferior_has_vforked)
10949 (inferior_has_execd, inferior_has_called_syscall): Delete.
10950 (handle_syscall_event): Get syscall_number from the execution
10951 control state's wait status.
10952 (wait_for_inferior): Don't clear syscall_number.
10953
109542012-01-24 Pedro Alves <palves@redhat.com>
10955
10956 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10957 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10958 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10959 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10960 `ws' parameter.
10961 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10962 false for events other than TARGET_SIGNAL_TRAP.
10963 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10964 Add `ws' parameter.
10965 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10966 events other than TARGET_SIGNAL_TRAP.
10967 (tracepoint_breakpoint_hit): Add `ws' parameter.
10968 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10969 parameter.
10970 (bpstat_stop_status): Same.
10971 (pc_at_non_inline_function): Same.
10972 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10973 to pass the current event's waitstatus to bpstat_stop_status
10974 and pc_at_non_inline_function.
10975
109762012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10977
10978 Code cleanup.
10979 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10980 Update the function comment for it.
10981 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10982 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10983 for STREAM.
10984
109852012-01-24 Pedro Alves <palves@redhat.com>
10986
10987 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10988 outside `bs->stop' block.
10989 (bpstat_what): Rework bp_shlib_event handling.
10990 (internal_bkpt_check_status): If the breakpoint is a
10991 bp_shlib_event, then set bs->stop and bs->print if
10992 stop_on_solib_events is set.
10993
109942012-01-24 Gary Benson <gbenson@redhat.com>
10995
10996 Delete #if 0'd out code.
10997 * stack.c (print_frame_label_vars): Remove.
10998 (catch_info): Likewise.
10999 (_initialize_stack): Remove "info catch" command.
11000 * NEWS: Mention the above.
11001
110022012-01-24 Pedro Alves <palves@redhat.com>
11003
11004 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11005 it.
11006 (remote_notice_new_inferior): If the remote end doesn't support
11007 the multiprocess extensions, then the PID is fake.
11008 (add_current_inferior_and_thread): New.
11009 (remote_start_remote): Use it.
11010 (extended_remote_attach_1): Adjust.
11011 (extended_remote_create_inferior_1): Use
11012 add_current_inferior_and_thread.
11013
110142012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11015
11016 Fix watchpoints to be specific for each inferior.
11017 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11018 current_program_space.
11019 * i386-nat.c (i386_inferior_data_cleanup): New.
11020 (i386_inferior_data_get): Replace variable inf_data_local by an
11021 inferior_data call.
11022 (i386_use_watchpoints): Initialize i386_inferior_data.
11023 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11024 specific iterate_over_lwps.
11025
110262012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11027
11028 Fix watchpoints across inferior fork.
11029 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11030 comment for linux_nat_iterate_watchpoint_lwps.
11031 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11032 linux_nat_iterate_watchpoint_lwps.
11033 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11034 * i386-linux-nat.c (update_debug_registers_callback): Update the
11035 comment for linux_nat_iterate_watchpoint_lwps.
11036 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11037 linux_nat_iterate_watchpoint_lwps.
11038 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11039 * i386-nat.c: Include inferior.h.
11040 (dr_mirror): Remove.
11041 (i386_inferior_data, struct i386_inferior_data)
11042 (i386_inferior_data_get): New.
11043 (i386_debug_reg_state): Use i386_inferior_data_get.
11044 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11045 (i386_insert_watchpoint, i386_remove_watchpoint)
11046 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11047 (i386_remove_hw_breakpoint): New variable state, use
11048 i386_debug_reg_state instead of DR_MIRROR.
11049 * linux-nat.c (delete_lwp): New declaration.
11050 (num_lwps): Move here from downwards.
11051 (delete_lwp_cleanup): New.
11052 (linux_child_follow_fork): Create new child_lp, call
11053 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11054 PTRACE_DETACH.
11055 (num_lwps): Move upwards.
11056 (linux_nat_iterate_watchpoint_lwps): New.
11057 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11058 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11059
110602012-01-24 Joel Brobecker <brobecker@adacore.com>
11061
11062 GDB 7.4 released.
11063
110642012-01-23 Pedro Alves <palves@redhat.com>
11065
11066 * top.c (caution): Rename to ...
11067 (confirm): ... this.
11068 (show_caution): Rename to ...
11069 (show_confirm): ... this.
11070 (quit_cover): Adjust.
11071 (init_main): Adjust.
11072 * top.h (caution): Rename to ...
11073 (confirm): ... this.
11074 * utils.c (internal_vproblem, defaulted_query): Adjust.
11075
110762012-01-23 Pedro Alves <palves@redhat.com>
11077
11078 * top.c (caution): Update comment.
11079 (execute_command): Don't consider the current value of `caution'.
11080
110812012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11082
11083 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11084
110852012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11086
11087 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11088 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11089 * target.c (target_fileio_pwrite): Remove buffer address from
11090 debug output.
11091 (target_fileio_pread): Likewise.
11092
110932012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11094
11095 * NEWS: Document remote "info proc" and "generate-core-file".
11096
110972012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11098
11099 * gdbarch.sh (find_memory_regions): New callback.
11100 * gdbarch.c, gdbarch.h: Regenerate.
11101
11102 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11103 callback before falling back to target method.
11104
11105 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11106 (linux_target_install_ops): No longer install it.
11107
11108 * linux-tdep.c (linux_find_memory_regions): New function.
11109 (linux_init_abi): Install it.
11110
111112012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11112
11113 * gdbarch.sh (make_corefile_notes): New architecture callback.
11114 * gdbarch.c: Regenerate.
11115 * gdbarch.h: Likewise.
11116
11117 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11118 before target_make_corefile_notes. If NULL is returned, the
11119 target does not support core file generation.
11120
11121 * linux-nat.c: Include "linux-tdep.h".
11122 (find_signalled_thread, find_stop_signal): Remove.
11123 (linux_nat_do_thread_registers): Likewise.
11124 (struct linux_nat_corefile_thread_data): Likewise.
11125 (linux_nat_corefile_thread_callback): Likewise.
11126 (iterate_over_spus): Likewise.
11127 (struct linux_spu_corefile_data): Likewise.
11128 (linux_spu_corefile_callback): Likewise.
11129 (linux_spu_make_corefile_notes): Likewise.
11130 (linux_nat_collect_thread_registers): New function.
11131 (linux_nat_make_corefile_notes): Replace contents by call to
11132 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11133 as native-only callback.
11134
11135 * linux-tdep.h: Include "bfd.h".
11136 (struct regcache): Add forward declaration.
11137 (linux_collect_thread_registers_ftype): New typedef.
11138 (linux_make_corefile_notes): Add prototype.
11139 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11140 "regset.h", and "elf-bfd.h".
11141 (find_signalled_thread, find_stop_signal): New functions.
11142 (linux_spu_make_corefile_notes): Likewise.
11143 (linux_collect_thread_registers): Likewise.
11144 (struct linux_corefile_thread_data): New data structure.
11145 (linux_corefile_thread_callback): New funcion.
11146 (linux_make_corefile_notes): Likewise.
11147 (linux_make_corefile_notes_1): Likewise.
11148 (linux_init_abi): Install it.
11149
111502012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11151
11152 * gdbarch.sh (info_proc): New callback.
11153 * gdbarch.c, gdbarch.h: Regenerate.
11154
11155 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11156 before falling back to the target info_proc callback.
11157
11158 * linux-nat.c: Do not include "cli/cli-utils.h".
11159 (linux_nat_info_proc): Remove.
11160 (linux_target_install_ops): No longer install it.
11161
11162 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11163 (read_mapping): New function.
11164 (linux_info_proc): Likewise.
11165 (linux_init_abi): Install it.
11166
111672012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11168
11169 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11170 * infcmd.c: (info_proc_cmd_1): New function.
11171 (info_proc_cmd): New function, moved here from equivalent routine
11172 orignally in linux-nat.c.
11173 (info_proc_cmd_mappings): Likewise.
11174 (info_proc_cmd_stat): Likewise.
11175 (info_proc_cmd_status): Likewise.
11176 (info_proc_cmd_cwd): Likewise.
11177 (info_proc_cmd_cmdline): Likewise.
11178 (info_proc_cmd_exe): Likewise.
11179 (info_proc_cmd_all): Likewise.
11180 (_initialize_infcmd): Install "info proc" command and subcommands.
11181
11182 * target.h (struct target_ops): Add to_info_proc.
11183 (target_info_proc): Add prototype.
11184 * target.c (target_info_proc): New function.
11185
11186 * procfs.c (procfs_info_proc): Add prototype.
11187 (info_proc_cmd): Rename into ...
11188 (procfs_info_proc): ... this. Update argument types as appropriate
11189 for a to_info_proc implementation. Handle "what" argument.
11190 (procfs_target): Install procfs_info_proc.
11191 (_initialize_procfs): No longer install "info proc" command.
11192
11193 * linux-nat.c: (enum info_proc_what): Remove.
11194 (linux_nat_info_proc_cmd_1): Rename into ...
11195 (linux_nat_info_proc): ... this. Update argument types as appropriate
11196 for a to_info_proc implementation.
11197 (linux_nat_info_proc_cmd): Remove.
11198 (linux_nat_info_proc_cmd_mappings): Likewise.
11199 (linux_nat_info_proc_cmd_stat): Likewise.
11200 (linux_nat_info_proc_cmd_status): Likewise.
11201 (linux_nat_info_proc_cmd_cwd): Likewise.
11202 (linux_nat_info_proc_cmd_cmdline): Likewise.
11203 (linux_nat_info_proc_cmd_exe): Likewise.
11204 (linux_nat_info_proc_cmd_all): Likewise.
11205 (linux_target_install_ops): Install linux_nat_info_proc.
11206 (_initialize_linux_nat): No longer install "info proc" command
11207 and subcommands.
11208
112092012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11210
11211 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11212 * config.in, configure: Regenerate.
11213
11214 * target.h (struct target_ops): Add to_fileio_readlink.
11215 (target_fileio_readlink): Add prototype.
11216 * target.c (target_fileio_readlink): New function.
11217
11218 * inf-child.c: Conditionally include <sys/param.h>.
11219 (inf_child_fileio_readlink): New function.
11220 (inf_child_target): Install it.
11221
11222 * remote.c (PACKET_vFile_readlink): New enum value.
11223 (remote_hostio_readlink): New function.
11224 (init_remote_ops): Install it.
11225 (_initialize_remote): Handle vFile:readlink packet type.
11226
112272012-01-20 Pedro Alves <palves@redhat.com>
11228 Ulrich Weigand <ulrich.weigand@linaro.org>
11229
11230 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11231 * config.in, configure: Regenerate.
11232
11233 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11234 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11235 (target_fileio_open): Add prototype.
11236 (target_fileio_pwrite): Likewise.
11237 (target_fileio_pread): Likewise.
11238 (target_fileio_close): Likewise.
11239 (target_fileio_unlink): Likewise.
11240 (target_fileio_read_alloc): Likewise.
11241 (target_fileio_read_stralloc): Likewise.
11242
11243 * target.c: Include "gdb/fileio.h".
11244 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11245 (default_fileio_target): New function.
11246 (target_fileio_open): Likewise.
11247 (target_fileio_pwrite): Likewise.
11248 (target_fileio_pread): Likewise.
11249 (target_fileio_close): Likewise.
11250 (target_fileio_unlink): Likewise.
11251 (target_fileio_close_cleanup): Likewise.
11252 (target_fileio_read_alloc_1): Likewise.
11253 (target_fileio_read_alloc): Likewise.
11254 (target_fileio_read_stralloc): Likewise.
11255
11256 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11257 <fcntl.h>, and <unistd.h>.
11258 (inf_child_fileio_open_flags_to_host): New function.
11259 (inf_child_errno_to_fileio_error): Likewise.
11260 (inf_child_fileio_open): Likewise.
11261 (inf_child_fileio_pwrite): Likewise.
11262 (inf_child_fileio_pread): Likewise.
11263 (inf_child_fileio_close): Likewise.
11264 (inf_child_fileio_unlink): Likewise.
11265 (inf_child_target): Install to_fileio routines.
11266
11267 * remote.c (init_remote_ops): Install to_fileio routines.
11268
112692012-01-20 Pedro Alves <palves@redhat.com>
11270 Ulrich Weigand <ulrich.weigand@linaro.org>
11271
11272 * remote.c (remote_multi_process_p): Only check for multi-process
11273 protocol feature, do not check for extended protocol.
11274 (remote_supports_multi_process): Check for extended protocol here.
11275 (set_general_process): Likewise.
11276 (extended_remote_kill): Likewise.
11277 (remote_pid_to_str): Likewise.
11278 (remote_query_supported): Always query multiprocess mode.
11279
112802012-01-20 Pedro Alves <palves@redhat.com>
11281 Ulrich Weigand <ulrich.weigand@linaro.org>
11282
11283 * inferior.h (struct inferior): Add fake_pid_p.
11284 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11285 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11286 magic_null_ptid since the remote side doesn't provide a real PID.
11287
112882012-01-19 Tom Tromey <tromey@redhat.com>
11289
11290 * NEWS: Combine the two Python sections.
11291
112922012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11293
11294 * target.h (target_close): Update comment on the target's unpush state.
11295
112962012-01-19 Pedro Alves <palves@redhat.com>
11297
11298 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11299 linux_nat_async directly instead of going through the target
11300 vector.
11301 * target.c (unpush_target): Close target after unpushing it, not
11302 before.
11303
113042012-01-19 Gary Benson <gbenson@redhat.com>
11305
11306 * mdebugread.c (sort_blocks): Replace integer constants with ones
11307 derived from FIRST_LOCAL_BLOCK.
11308
113092012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11310 Jan Kratochvil <jan.kratochvil@redhat.com>
11311
11312 PR gdb/9538
11313 * symfile.c (find_separate_debug_file): New function.
11314 (terminate_after_last_dir_separator): Likewise.
11315 (find_separate_debug_file_by_debuglink): Also try realpath.
11316 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11317 * configure: Regenerate.
11318 * config.in: Regenerate.
11319
113202012-01-18 Doug Evans <dje@google.com>
11321
11322 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11323 (main.o): Remove rule.
11324 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11325 (--with-sysroot): Rewrite.
11326 * configure: Regenerate.
11327 * config.in: Regenerate.
11328
113292012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11330
11331 * parse.c (initialize_expout): New function.
11332 (reallocate_expout): Likewise.
11333 (parse_exp_in_context): Use `initialize_expout' and
11334 `reallocate_expout' when appropriate.
11335
113362012-01-18 Pedro Alves <palves@redhat.com>
11337
11338 * record.c (struct record_breakpoint, record_breakpoint_p)
11339 (record_breakpoints): New.
11340 (record_insert_breakpoint, record_remove_breakpoint): Manage
11341 record breakpoints list. Only remove breakpoints from the
11342 inferior if they had been inserted there in the first place.
11343
113442012-01-17 Doug Evans <dje@google.com>
11345
11346 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11347 if we know we don't have a file name to look for.
11348
113492012-01-17 Pedro Alves <palves@redhat.com>
11350
11351 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11352 the frame's stop reason is UNWIND_UNAVAILABLE.
11353
113542012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11355
11356 Fix compilation error.
11357 * m2-exp.y (yyerror): Use ANSI C prototype.
11358
113592012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11360
11361 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11362 (growbuf_by_size): Likewise.
11363 (yyerror): Likewise.
11364 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11365 (modblock): Remove variable (was #if 0'ed).
11366 (parse_number): Convert prototype from K&R to ANSI C.
11367 (yyerror): Likewise.
11368 * objc-exp.y (parse_number): Likewise.
11369 (yyerror): Likewise.
11370 (yylex): Remove #if 0'ed code.
11371 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11372 (yyerror): Likewise.
11373
113742012-01-16 Tom Tromey <tromey@redhat.com>
11375
11376 * NEWS: Add item.
11377 * symtab.h (compare_filenames_for_search): Declare.
11378 * symtab.c (compare_filenames_for_search): New function.
11379 (iterate_over_some_symtabs): Use it.
11380 * symfile.h (struct quick_symbol_functions)
11381 <map_symtabs_matching_filename>: Change spec.
11382 * psymtab.c (partial_map_symtabs_matching_filename): Use
11383 compare_filenames_for_search. Update for new spec.
11384 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11385 compare_filenames_for_search. Update for new spec.
11386 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11387
113882012-01-16 Tom Tromey <tromey@redhat.com>
11389
11390 PR python/13281:
11391 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11392 (struct main_type) <flag_flag_enum>: New field.
11393 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11394 * NEWS: Add entries.
11395 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11396 enums.
11397 * python/lib/gdb/printing.py (_EnumInstance): New class.
11398 (FlagEnumerationPrinter): Likewise.
11399
114002012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11401
11402 * breakpoint.c (create_sals_from_address_default): New function.
11403 (create_breakpoints_sal_default): Likewise.
11404 (decode_linespec_default): Likewise.
11405 (is_marker_spec): Removed.
11406 (strace_marker_p): New function.
11407 (init_breakpoint_sal): Using `strace_marker_p' instead of
11408 `is_marker_spec'.
11409 (create_breakpoint): Call method `create_sals_from_address' from
11410 breakpoint_ops, replacing code that created SALs conditionally
11411 on the type of the breakpoint. Call method `create_breakpoints_sal',
11412 replacing code that created breakpoints conditionally on the type
11413 wanted.
11414 (base_breakpoint_create_sals_from_address): New function.
11415 (base_breakpoint_create_breakpoints_sal): Likewise.
11416 (base_breakpoint_decode_linespec): Likewise.
11417 (base_breakpoint_ops): Add methods
11418 `base_breakpoint_create_sals_from_address',
11419 `base_breakpoint_create_breakpoints_sal' and
11420 `base_breakpoint_decode_linespec'.
11421 (bkpt_create_sals_from_address): New function.
11422 (bkpt_create_breakpoints_sal): Likewise.
11423 (bkpt_decode_linespec): Likewise.
11424 (tracepoint_create_sals_from_address): Likewise.
11425 (tracepoint_create_breakpoints_sal): Likewise.
11426 (tracepoint_decode_linespec): Likewise.
11427 (strace_marker_create_sals_from_address): Likewise.
11428 (strace_marker_create_breakpoints_sal): Likewise.
11429 (strace_marker_decode_linespec): Likewise.
11430 (strace_marker_breakpoint_ops): New variable.
11431 (addr_string_to_sals): Remove `marker_spec'. Call method
11432 `decode_linespec' from breakpoint_ops, replacing code that decoded
11433 an address string into a SAL. Use `strace_marker_p' instead of
11434 `marker_spec'.
11435 (strace_command): Decide whether we are dealing with a static
11436 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11437 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11438 * breakpoint.h (linespec_result, linespec_sals): New forward
11439 declarations.
11440 (breakpoint_ops) <create_sals_from_address>,
11441 <create_breakpoints_sal>, <decode_linespec>: New methods.
11442
114432012-01-14 Doug Evans <dje@google.com>
11444
11445 * NEWS: Update text for "maint set python print-stack".
11446 It is deprecated in gdb 7.4 and deleted in 7.5.
11447
114482012-01-13 Eli Zaretskii <eliz@gnu.org>
11449
11450 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11451 including curses.h.
11452
114532012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11454
11455 * configure: Regenerate.
11456 * config.in: Regenerate.
11457
114582012-01-12 Keith Seitz <keiths@redhat.com>
11459
11460 PR mi/10586
11461 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11462 (ANONYMOUS_UNION_NAME): Define.
11463 (is_path_expr_parent): New function.
11464 (get_path_expr_parent): New function.
11465 (is_anonymous_child): New function.
11466 (create_child_with_value): If the child is anonymous and without
11467 a name, assign an object name to it.
11468 (c_describe_child): Use get_path_expr_parent to determine
11469 the parent expression.
11470 If there field represents an anonymous struct or union and
11471 has no name, set an appropriate display name and expression.
11472 (cplus_describe_child): Likewise.
11473
114742012-01-12 Pedro Alves <palves@redhat.com>
11475
11476 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11477 available when %ebp is found to be zero (outermost).
11478
114792012-01-11 Andreas Tobler <andreast@fgznet.ch>
11480
11481 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11482 an internal gdb_static_assert.
11483 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11484
114852012-01-11 Tom Tromey <tromey@redhat.com>
11486
11487 PR gdb/9598:
11488 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11489 catch" and "catch throw".
11490
114912012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11492
11493 * blockframe.c (block_innermost_frame): Start search from selected
11494 frame, if present, or otherwise the current frame.
11495
11496 * c-exp.y (variable): Update innermost_block for
11497 'block COLONCOLON NAME' clause.
11498 * m2-exp.y (variable): Ditto.
11499 * objc-exp.y (variable): Ditto.
11500
115012012-01-10 Tom Tromey <tromey@redhat.com>
11502
11503 PR python/13199:
11504 * python/python.c (finish_python_initialization): Set sys.argv.
11505
115062012-01-10 Doug Evans <dje@google.com>
11507
11508 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11509 "want_line_info". All callers updated.
11510 (dwarf_decode_lines_1): New function.
11511 (handle_DW_AT_stmt_list): Add function comment.
11512 New arg "want_line_info". All callers updated.
11513 (read_file_scope,read_type_unit_scope): Move comment from
11514 handle_DW_AT_stmt_list to here.
11515
115162012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11517
11518 Fix regression after libiberty/ update for GCC PR 6057 and others.
11519 * c-exp.y (operator) <OPERATOR DELETE>
11520 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11521 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11522 (make_builtin_type, make_name): New variable i, add gdb_assert.
11523 (operator) <OPERATOR NEW>: Update ARGS to 3.
11524 (operator) <OPERATOR DELETE>: Add trailing space.
11525 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11526 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11527 * cp-support.c (cp_canonicalize_string): Check NULL from
11528 cp_comp_to_string, call warning and return.
11529
115302012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11531
11532 Fix duplicate .o files after omitting libbfd.a.
11533 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11534 (SFILES): Add corelow.c.
11535 (COMMON_OBS): Add corelow.o.
11536 (ALLDEPFILES): Remove corelow.c.
11537 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11538 * config/alpha/alpha-osf3.mh: Likewise.
11539 * config/alpha/fbsd.mh: Likewise.
11540 * config/arm/nbsdaout.mh: Likewise.
11541 * config/arm/nbsdelf.mh: Likewise.
11542 * config/i386/i386gnu.mh: Likewise.
11543 * config/ia64/hpux.mh: Likewise.
11544 * config/ia64/linux.mh: Likewise.
11545 * config/m32r/linux.mh: Likewise.
11546 * config/m68k/linux.mh: Likewise.
11547 * config/mips/irix5.mh: Likewise.
11548 * config/mips/irix6.mh: Likewise.
11549 * config/pa/hpux.mh: Likewise.
11550 * config/pa/linux.mh: Likewise.
11551 * config/powerpc/aix.mh: Likewise.
11552 * config/sparc/linux.mh: Likewise.
11553 * config/sparc/linux64.mh: Likewise.
11554 * config/sparc/sol2.mh: Likewise.
11555 * config/vax/vax.mh: Likewise.
11556 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11557 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11558 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11559 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11560 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11561 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11562 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11563 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11564 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11565 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11566 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11567 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11568 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11569 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11570 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11571 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11572 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11573 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11574 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11575 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11576 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11577 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11578 corelow.o from gdb_target_obs.
11579 * corefile.c (core_target): Update the comment on NULL value.
11580 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11581 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11582 MATCHES. Drop YUMMY set on NULL.
11583 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11584 reclaim CORE_DATA if it is already NULL.
11585
115862012-01-09 Doug Evans <dje@google.com>
11587
11588 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11589 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11590
115912012-01-09 Keith Seitz <keiths@redhat.com>
11592
11593 * breakpoint.c (wrapper.h): Don't include.
11594
115952012-01-09 Keith Seitz <keiths@redhat.com>
11596
11597 * Makefile.in (SFILES): Remove wrapper.c.
11598 (HFILES_NO_SRCDIR): Remove wrapper.h.
11599 (COMMON_OBS): Remove wrapper.o.
11600 * cli/cli-interp.c: Don't inlude wrapper.h.
11601 * corelow.c: Likewise.
11602 (core_open): Replace gdb_target_find_new_threads with
11603 TRY_CATCH around target_find_new_threads.
11604 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11605 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11606 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11607 evaluate_expression.
11608 (varobj_set_value): Likewise for evaluate_expression and
11609 value_assign.
11610 (install_new_variable): Likewise for value_fetch_lazy.
11611 (adjust_value_for_child_access): Likewise for value_ind.
11612 (c_describe_child): Likewise for value_subscript and
11613 value_ind.
11614 (c_value_of_root): Likewise for evaluate_expression.
11615 * wrapper.c: Remove.
11616 * wrapper.h: Remove.
11617
116182012-01-09 Doug Evans <dje@google.com>
11619
11620 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11621 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11622 "abfd" args with "section". All callers updated.
11623 Error checking code moved ...
11624 (error_check_comp_unit_head): ... here. New function.
11625 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11626 Delete arg "abfd". New arg "type_offset". All callers updated.
11627 (create_debug_types_hash_table): Simplify by using
11628 read_and_check_type_unit_head.
11629
11630 * parser-defs.h (namecopy): Delete.
11631 * parse.c (namecopy, namecopy_size): Move into copy_name.
11632
116332012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11634
11635 Partially fix duplicate .o files after omitting libbfd.a.
11636 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11637 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11638 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11639 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11640 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11641 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11642 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11643
116442012-01-09 Pedro Alves <palves@redhat.com>
11645
11646 * MAINTAINERS: Update my email address.
11647
116482012-01-08 Doug Evans <dje@google.com>
11649
11650 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11651 n_type_units. Rename type_comp_units to all_type_units.
11652 All uses updated.
11653 (add_signatured_type_cu_to_table): Renamed from
11654 add_signatured_type_cu_to_list. All callers updated.
11655
11656 * gdbtypes.h (struct cplus_struct_type): Delete member
11657 nfn_fields_total. All uses removed.
11658
116592012-01-06 Doug Evans <dje@google.com>
11660
11661 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11662 to top of file.
11663 (dwarf2_find_comp_unit): Delete.
11664 (process_psymtab_comp_unit): Make result "void".
11665 Delete args buffer, info_ptr, buffer_size, and replace with
11666 "section". All callers updated.
11667 (dwarf2_build_psymtabs_hard): Simplify.
11668
116692012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11670 Thiago Jung Bauermann <bauerman@br.ibm.com>
11671
11672 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11673 before `struct gdb_exception'.
11674 * breakpoint.c (update_global_location_list_nothrow)
11675 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11676 * cp-abi.c (value_rtti_type): Likewise.
11677 * cp-support.c (cp_validate_operator): Likewise.
11678 * infrun.c (insert_exception_resume_breakpoint)
11679 (check_exception_resume, keep_going): Likewise.
11680 * mi-interp.c (mi_breakpoint_created)
11681 (mi_breakpoint_modified): Likewise.
11682 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11683 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11684 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11685
116862012-01-05 Doug Evans <dje@google.com>
11687
11688 * dwarf2read.c (statement_prologue): Delete, unused.
11689
11690 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11691 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11692
11693 * dwarf2read.c (comp_unit_header): Delete, unused.
11694
116952012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11696
11697 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11698 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11699
117002012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11701
11702 * infrun.c (normal_stop): Don't skip calling the normal_stop
11703 observers if the thread was doing a multi-step, but stopped for
11704 some reason other than stepping.
11705
117062012-01-05 Pedro Alves <alves.ped@gmail.com>
11707
11708 * cli/cli-decode.h: Add comments.
11709 (CMD_LIST_AMBIGUOUS): Moved to command.h
11710 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11711 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11712 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11713 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11714 (add_com, add_com_alias, add_info, add_info_alias)
11715 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11716 declarations.
11717 * command.h: Add and adjust comments.
11718 (CMD_LIST_AMBIGUOUS): Moved here.
11719 (help_cmd, help_cmd_list): Delete declarations.
11720
117212012-01-04 Doug Evans <dje@google.com>
11722
11723 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11724 All callers updated.
11725 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11726 Replace all arguments with "per_cu". All callers updated.
11727
11728 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11729
11730 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11731 New arg "per_cu". All callers updated.
11732
11733 Delete #if 0'd out code.
11734 * language.c (binop_result_type): Delete.
11735 (simple_type, ordered_type, same_type, integral_type): Delete.
11736 (numeric_type, character_type, string_type, boolean_type): Delete.
11737 (float_type, structured_type): Delete.
11738 * language.h: Update.
11739
117402012-01-04 Tom Tromey <tromey@redhat.com>
11741
11742 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11743
117442012-01-04 Joel Brobecker <brobecker@adacore.com>
11745
11746 * corefile.c (close_exec_file): Delete.
11747 (reopen_exec_file): Remove commented out code that seems related
11748 to close_exec_file, which is being deleted here.
11749 * inferior.h (close_exec_file): Delete.
11750 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11751
117522012-01-04 Joel Brobecker <brobecker@adacore.com>
11753
11754 * ada-lang.c: #include "cli/cli-utils.h".
11755 (get_selections): Use skip_spaces.
11756 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11757 (catch_ada_exception_command_split): Use skip_spaces.
11758 (ada_decode_assert_location): Likewise.
11759
117602012-01-04 Joel Brobecker <brobecker@adacore.com>
11761
11762 * linespec.c (decode_line_internal): Check for C++ or Java
11763 compound constructs only if the current language is C, C++
11764 or Java.
11765
117662012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11767
11768 Revert:
11769 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11770 Joel Brobecker <brobecker@adacore.com>
11771 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11772 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11773 3 times.
11774 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11775 fall through into AT_ENTRY_POINT.
11776 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11777 DUMMY_ADDR with it.
11778 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11779 PPC_INSN_SIZE skip to 3 times.
11780
117812012-01-04 Joel Brobecker <brobecker@adacore.com>
11782
11783 * linespec.c (add_minsym): Preserve function descriptors.
11784
117852012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11786
11787 * breakpoint.c (all_locations_are_pending): Consider locations
11788 in program spaces executing during startup pending as well.
11789
117902012-01-04 Joel Brobecker <brobecker@adacore.com>
11791
11792 Copyright year update in most files of the GDB Project.
11793
117942012-01-04 Joel Brobecker <brobecker@adacore.com>
11795
11796 * copyright.sh: Delete.
11797 * copyright.py: Rewrite.
11798
117992012-01-04 Joel Brobecker <brobecker@adacore.com>
11800
11801 * gnulib/extra/update-copyright: New file, imported from gnulib.
11802
118032012-01-04 Joel Brobecker <brobecker@adacore.com>
11804
11805 * README (Copyright and License Notices): New section.
11806
118072012-01-03 Tom Tromey <tromey@redhat.com>
11808
11809 PR python/12533:
11810 * python/py-value.c (valpy_dereference, valpy_get_address
11811 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11812 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11813 (valpy_absolute, valpy_richcompare): Free intermediate values.
11814
118152011-01-03 Joel Brobecker <brobecker@adacore.com>
11816
11817 * ada-lang.c: Reformat the copyright notice.
11818
118192012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11820
11821 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11822 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11823 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11824 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11825 Revert this part of:
11826 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11827 Build gdb directly from *.o files not using libgdb.a.
11828 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11829
118302012-01-02 Joel Brobecker <brobecker@adacore.com>
11831
11832 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11833 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11834 Reformat the copyright header.
11835
118362012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11837
11838 Revert this part of:
11839 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11840 Remove the gdbtui binary.
11841 * gdb.c (main): Remove args.interpreter_p initialization.
11842 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11843 * main.h (struct captured_main_args): Remove interpreter_p.
11844
118452012-01-02 Joel Brobecker <brobecker@adacore.com>
11846
11847 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11848
118492012-01-02 Joel Brobecker <brobecker@adacore.com>
11850
11851 * top.c (print_gdb_version): Update copyright year.
11852
118532012-01-02 Yao Qi <yao@codesourcery.com>
11854
11855 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11856
118572012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11858 Joel Brobecker <brobecker@adacore.com>
11859
11860 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11861 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11862 3 times.
11863 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11864 fall through into AT_ENTRY_POINT.
11865 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11866 DUMMY_ADDR with it.
11867 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11868 PPC_INSN_SIZE skip to 3 times.
11869
118702012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11871
11872 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11873 the return value.
11874 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11875
118762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11877
11878 Build gdb directly from *.o files not using libgdb.a.
11879 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11880 (COMMON_OBS): Remove solib-target.o.
11881 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11882 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11883 (LIBGDB_OBS, libgdb.a): Move it above.
11884 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11885 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11886 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11887 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11888 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11889 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11890 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11891 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11892 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11893 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11894 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11895 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11896 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11897 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11898 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11899 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11900 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11901 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11902 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11903 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11904 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11905 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11906 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11907 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11908 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11909 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11910 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11911
119122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11913
11914 Remove the gdbtui binary.
11915 * .gitignore (/gdbtui): Remove.
11916 * Makefile.in (TUI): Remove.
11917 (SUBDIR_TUI_OBS): Remove tui-main.o.
11918 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11919 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11920 (tui-main.o): Remove.
11921 (all_object_files): Remove tui-main.o.
11922 * NEWS: New note for the gdbtui removal.
11923 * configure: Rebuilt.
11924 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11925 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11926 CONFIG_UNINSTALL respectively.
11927 * gdb.c (main): Remove args.interpreter_p initialization.
11928 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11929 * main.h (struct captured_main_args): Remove interpreter_p.
11930 * tui/tui-main.c: Remove.
11931
119322012-01-01 Doug Evans <dje@google.com>
11933
11934 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11935 (dwarf2_physname, read_import_statement): Ditto.
11936 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11937 (process_structure_scope read_subroutine_type): Ditto.
11938 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11939 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11940 (dwarf2_fetch_die_location_block): Ditto.
11941 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11942
11943 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11944 All callers updated.
11945 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11946 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11947 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11948
11949 * dwarf2read.c (load_cu): Move assert to more useful location.
11950
11951 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11952 All callers updated.
11953
11954 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11955 (dwarf2_elf_names): Minor reformat.
11956 (dwarf2_per_cu_data): Tweak comment.
11957 (dwarf2_read_section): Fix comment.
11958 (create_all_comp_units): Fix comment.
11959 (load_full_comp_unit): Fix comment.
11960 (process_full_comp_unit): Fix comment.
11961 (read_signatured_type): Fix comment.
11962
11963For older changes see ChangeLog-2011.
11964\f
11965Local Variables:
11966mode: change-log
11967left-margin: 8
11968fill-column: 74
11969version-control: never
11970coding: utf-8
11971End:
This page took 0.064528 seconds and 4 git commands to generate.