9be4feac4d9c3bf9d57516cbde2907809bc2aed9
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-20 Yao Qi <yao@codesourcery.com>
2
3 * objfiles.c (init_entry_point_info): Remove trailing spaces.
4
5 2012-11-20 Yao Qi <yao@codesourcery.com>
6
7 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
8 to deprecated_context_hook.
9
10 2012-11-19 Yao Qi <yao@codesourcery.com>
11
12 * infrun.c (infwait_state): Add static.
13
14 2012-11-16 Keith Seitz <keiths@redhat.com>
15
16 PR c++/13615
17 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
18 parameter and pass it to lookup_symbol_file.
19 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
20 to search base classes.
21 (cp_lookup_symbol_namespace): Likewise.
22 (lookup_namespace_scope): Likewise.
23 (lookup_symbol_file): Add SEARCH parameter.
24 If SEARCH is non-zero and no symbol is found, lookup the class
25 and call cp_lookup_nested_symbol.
26 (find_symbol_in_baseclass): New function.
27 (cp_lookup_nested_symbol): Do not let
28 cp_lookup_symbol_in_namespace search through base classes.
29 Do that later when there is no global symbol match.
30
31 2012-11-16 Doug Evans <dje@google.com>
32
33 * main.c (gdb_datadir_provided): New static global.
34 (get_init_files): If --data-directory is provided,
35 and SYSTEM_GDBINIT lives in data-directory, look for it there.
36 * NEWS: Mention it.
37
38 2012-11-15 Pierre Muller <muller@sourceware.org>
39
40 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
41 * gdb_stat.h: Delete. Moved to common directory.
42 * common/gdb_stat.h: New file.
43 * gdb_wait.h: Delete. Moved to common directory.
44 * common/gdb_wait.h: New file.
45 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
46 location.
47 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
48 location.
49 (stat.h rule): Adapt to new gdb_stat.h location.
50 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
51 <sys/stat.h> header.
52 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
53 <sys/wait.h> header.
54
55 2012-11-15 Pierre Muller <muller@sourceware.org>
56
57 * configure.ac (AC_HEADER_STAT): Remove.
58 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
59 and corresponding code.
60 * configure: Regenerate.
61 * config.in: Regenerate.
62
63 2012-11-15 Pierre Muller <muller@sourceware.org>
64
65 ARI xasprintf rule fixes.
66 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
67 instead of xasprintf.
68 (open_and_init_dwp_file): Ditto.
69
70 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
71
72 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
73 target types.
74
75 2012-11-14 Tom Tromey <tromey@redhat.com>
76
77 * configure, config.in: Rebuild.
78 * configure.ac: Don't check for ctype.h, time.h.
79 * expprint.c: Don't use HAVE_CTYPE_H.
80
81 2012-11-13 Tom Tromey <tromey@redhat.com>
82
83 * gdbarch.h, gdbarch.c: Rebuild.
84 * gdbarch.sh (set_target_gdbarch): Rename from
85 deprecated_target_gdbarch_select_hack.
86 * arch-utils.c (gdbarch_update_p): Update.
87 (set_gdbarch_from_file): Update.
88
89 2012-11-14 Pierre Muller <muller@sourceware.org>
90
91 * MAINTAINERS (Responsible Maintainers/misc): Add myself
92 as responsible of contrib/ari directory.
93
94 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
95 Yao Qi <yao@codesourcery.com>
96
97 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
98 bit of EXC_RETURN.
99 (arm_m_exception_cache, arm_m_exception_this_id)
100 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
101 (arm_m_exception_unwind): New.
102 (arm_gdbarch_init): Register arm_m_exception_unwind.
103
104 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
105
106 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
107 parameter COUNT, for pattern filling of memory regions.
108 * NEWS: Mention it.
109
110 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
111
112 * disasm.h (DISASSEMBLY_FILENAME): New macro.
113 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
114 to print_source_lines ().
115 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
116 flag.
117 * source.c (print_source_lines_base): Prefix source line with
118 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
119
120 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
121
122 * symtab.h (print_source_lines_flags): New enum.
123 * source.c (print_source_lines_base): Change noerror to flags.
124 (print_source_lines): Change noerror to flags.
125
126 2012-11-13 Pierre Muller <muller@sourceware.org>
127
128 ARI fixes: Avoid sprintf function use rule.
129 * charset.c (convert_between_encodings): Use xsnprintf.
130 * cli-out.c (cli_field_int): Likewise.
131 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
132 * expprint.c (op_name_standard): Likewise.
133 * frv-tdep.c (set_variant_num_gprs): Likewise.
134 (set_variant_num_fprs): Likewise.
135 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
136 * nto-tdep.c (nto_find_and_open_solib): Likewise.
137 (nto_init_solib_absolute_prefix): Likewise.
138 * source.c (init_source_path): Likewise.
139 (print_source_lines_base): Likewise.
140 * valprint.c (print_wchar): Likewise.
141 * mi/mi-out.c (mi_field_int): Likewise.
142 windows-nat.c (windows_pid_to_exec_file): Likewise.
143 (windows_create_inferior): Likewise.
144 (_initialize_check_for_gdb_ini): Likewise.
145
146 2012-11-12 Joel Brobecker <brobecker@adacore.com>
147
148 * frame.h (deprecated_frame_register_read): Renames
149 frame_register_read.
150 * frame.c (deprecated_frame_register_read): Renames
151 frame_register_read. Update all callers.
152 * i386-tdep.c: Update all callers of frame_register_read.
153 * infcmd.c: Likewise.
154 * jit.c: Likewise.
155 * mips-tdep.c: Likewise.
156 * mt-tdep.c: Likewise.
157 * sh64-tdep.c: Likewise.
158
159 2012-11-12 Joel Brobecker <brobecker@adacore.com>
160
161 * frame.h (frame_register_read): Remove FIXME comment.
162 * frame.c (frame_register_read): Add suggestion explaining
163 which function to use in place of this one.
164
165 2012-11-12 Tom Tromey <tromey@redhat.com>
166
167 * python/python.c (start_type_printers): Initialize 'result_obj'.
168
169 2012-11-12 Tom Tromey <tromey@redhat.com>
170
171 * NEWS: Update.
172 * data-directory/Makefile.in (PYTHON_FILES): Add
173 type_printers.py.
174 * python/lib/gdb/command/type_printers.py: New file.
175 * python/lib/gdb/command/types.py (TypePrinter): New class.
176 (_get_some_type_recognizers, get_type_recognizers,
177 apply_type_recognizers, register_type_printer): New
178 functions.
179 * python/py-objfile.c (objfile_object) <type_printers>: New
180 field.
181 (objfpy_dealloc): Decref new field.
182 (objfpy_new): Set new field.
183 (objfpy_get_type_printers, objfpy_set_type_printers): New
184 functions.
185 (objfile_to_objfile_object): Set new field.
186 (objfile_getset): Add "type_printers".
187 * python/py-progspace.c (pspace_object) <type_printers>: New
188 field.
189 (pspy_dealloc): Decref new field.
190 (pspy_new): Set new field.
191 (pspy_get_type_printers, pspy_set_type_printers): New functions.
192 (pspace_to_pspace_object): Set new field.
193 (pspace_getset): Add "type_printers".
194 * python/python.c (start_type_printers, apply_type_printers,
195 free_type_printers): New functions.
196 (_initialize_python): Set gdb.type_printers.
197 * python/python.h (start_type_printers, apply_type_printers,
198 free_type_printers): Declare.
199 * typeprint.c (type_print_raw_options, default_ptype_flags):
200 Update for new fields.
201 (do_free_global_table, create_global_typedef_table,
202 find_global_typedef): New functions.
203 (find_typedef_in_hash): Use find_global_typedef.
204 (whatis_exp): Use create_global_typedef_table. Change cleanup
205 handling.
206 * typeprint.h (struct type_print_options) <global_typedefs,
207 global_printers>: New fields.
208
209 2012-11-12 Tom Tromey <tromey@redhat.com>
210
211 * c-typeprint.c (find_typedef_for_canonicalize,
212 print_name_maybe_canonical): New functions.
213 (c_print_type): Look up type name.
214 (cp_type_print_derivation_info): Add flags argument. Use
215 print_name_maybe_canonical.
216 (cp_type_print_method_args): Add wrapping.
217 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
218 (c_type_print_template_args): New function.
219 (c_type_print_base): Change wrapping. Use
220 print_name_maybe_canonical.
221 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
222 type name lookups.
223 * gdbtypes.c (types_equal): No longer static.
224 * gdbtypes.h (types_equal): Declare.
225 * typeprint.c (type_print_raw_options, default_ptype_flags):
226 Update.
227 (struct typedef_hash_table): New.
228 (hash_typedef_field, eq_typedef_field,
229 recursively_update_typedef_hash, add_template_parameters,
230 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
231 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
232 copy_typedef_hash, find_typedef_in_hash): New functions.
233 * typeprint.h (struct type_print_options) <local_typedefs>:
234 New field.
235 (recursively_update_typedef_hash, add_template_parameters,
236 create_typedef_hash, free_typedef_hash,
237 make_cleanup_free_typedef_hash, copy_typedef_hash,
238 find_typedef_in_hash): Declare.
239
240 2012-11-12 Tom Tromey <tromey@redhat.com>
241
242 * cp-support.c (inspect_type,
243 replace_typedefs_qualified_name, replace_typedefs): Add
244 finder, data arguments. Call as needed.
245 (cp_canonicalize_string_full): New function.
246 (cp_canonicalize_string_no_typedefs): Rewrite.
247 * cp-support.h (canonicalization_ftype): New typedef.
248 (cp_canonicalize_string_full): Declare.
249
250 2012-11-12 Tom Tromey <tromey@redhat.com>
251
252 * NEWS: Update.
253 * c-typeprint.c (c_type_print_base): Handle print_method and
254 print_typedefs flags.
255 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
256 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
257 options.
258 * typeprint.c (type_print_raw_options, default_ptype_flags):
259 Update for new field.s
260 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
261 (setprinttypelist, showprinttypelist, print_methods,
262 print_typedefs): New globals.
263 (set_print_type, show_print_type, set_print_type_methods,
264 show_print_type_methods, set_print_type_typedefs,
265 show_print_type_typedefs): New functions.
266 (_initialize_typeprint): Update documentation. Add "print
267 type methods" and "print type typedefs" parameters.
268 * typeprint.h (struct type_print_options) <print_methods,
269 print_typedefs>: New fields.
270
271 2012-11-12 Tom Tromey <tromey@redhat.com>
272
273 * c-typeprint.c (cp_type_print_method_args): Add flags
274 argument. Call c_print_type, not type_print.
275 (c_type_print_base): Call c_print_type, not type_print.
276 Update.
277
278 2012-11-12 Tom Tromey <tromey@redhat.com>
279
280 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
281 to type-printing functions.
282 * ada-lang.h (ada_print_type): Add argument.
283 * ada-typeprint.c (print_array_type, print_variant_clauses,
284 print_variant_part, print_selected_record_field_types,
285 print_record_field_types, print_unchecked_union_type,
286 print_func_type, ada_print_type): Add flags argument.
287 (ada_print_typedef): Update.
288 * c-exp.y (OPERATOR conversion_type_id): Update.
289 * c-lang.h (c_print_type, c_type_print_base): Update.
290 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
291 c_type_print_modifier, c_type_print_args,
292 c_type_print_varspec_suffix, c_type_print_base): Add flags
293 argument.
294 * cp-valprint.c (cp_print_class_member): Update.
295 * dwarf2read.c (dwarf2_compute_name): Update.
296 * f-lang.h (f_print_type): Add argument.
297 * f-typeprint.c (f_print_type): Add flags argument.
298 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
299 * go-lang.h (go_print_type): Add argument.
300 * go-typeprint.c (go_print_type): Add flags argument.
301 * jv-lang.h (java_print_type): Add argument.
302 * jv-typeprint.c (java_type_print_base, java_print_type): Add
303 flags argument.
304 * language.c (unk_lang_print_type): Add flags argument.
305 * language.h (struct language_defn) <la_print_type>: Add flags
306 argument.
307 (LA_PRINT_TYPE): Likewise.
308 * m2-lang.h (m2_print_type): Add argument.
309 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
310 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
311 m2_unbounded_array, m2_record_fields): Add flags argument.
312 * p-lang.h (pascal_print_type, pascal_type_print_base,
313 pascal_type_print_varspec_prefix): Add argument.
314 * p-typeprint.c (pascal_print_type,
315 pascal_type_print_varspec_prefix, pascal_print_func_args,
316 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
317 flags argument.
318 * symmisc.c (print_symbol): Update.
319 * typeprint.c (type_print_raw_options, default_ptype_flags):
320 New globals.
321 (type_print): Update.
322 * typeprint.h (struct type_print_options): New.
323 (type_print_raw_options): Declare.
324 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
325
326 2012-11-10 Keith Seitz <keiths@redhat.com>
327
328 * breakpoint.c (clear_command): Add cleanup for
329 sals.sals if an argument is given.
330
331 * linespec.c (parse_linespec): Do cleanups after
332 parsing a convenience variable.
333
334 2012-11-10 Keith Seitz <keiths@redhat.com>
335
336 PR gdb/14288
337 * c-valprint.c (c_val_print): For character arrays
338 with "print null" option on, print ellipses if
339 the output is truncated and the next character is not \000.
340 * valprint.c (MAX_WCHARS): Define.
341 (WCHAR_BUFLEN): Likewise.
342 (WCHAR_BUFLEN_MAX): Likewise.
343 (struct converted_character): New structure.
344 (count_next_character): New function.
345 (print_converted_chars_to_obstack): New function.
346 (generic_printstr): Rewrite using count_next_character
347 and print_converted_chars_to_obstack.
348
349 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
350
351 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
352 while executing the gdb command.
353 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
354 are called from prompt_for_continue.
355 * tui/tui-io.c (tui_redisplay_readline): Likewise.
356
357 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
358
359 PR tui/9584
360
361 * tui/tui.c (tui_rl_command_key): Do not call execute_command
362 but insert the command to execute in readline's buffer.
363
364 2012-11-09 Tom Tromey <tromey@redhat.com>
365
366 * gdbarch.sh (target_gdbarch): Remove macro.
367 (get_target_gdbarch): Rename to target_gdbarch.
368 * gdbarch.c, gdbarch.h: Rebuild.
369 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
370 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
371 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
372 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
373 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
374 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
375 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
376 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
377 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
378 procfs.c, progspace.c, ravenscar-thread.c, record.c,
379 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
380 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
381 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
382 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
383 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
384 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
385 target-descriptions.c, target.c, target.h, tracepoint.c,
386 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
387 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
388 python/py-inferior.c, python/python.c: Update.
389
390 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
391
392 * source.c (print_source_lines_base): Add fullname field giving
393 full path to file in mi output.
394 * NEWS: Mention the new fullname field.
395
396 2012-11-09 Yao Qi <yao@codesourcery.com>
397
398 * NEWS: Mention the fix to the ambiguity of 'fo' command.
399
400 2012-11-09 Pedro Alves <palves@redhat.com>
401
402 PR gdb/14306
403
404 * infrun.c: Include target-descriptions.h.
405 (follow_exec): Fetch new target description.
406
407 2012-11-09 Yao Qi <yao@codesourcery.com>
408
409 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
410 0x8d (lea).
411
412 2012-11-09 Yao Qi <yao@codesourcery.com>
413
414 * breakpoint.c: Declare set_tracepoint_count.
415 (install_breakpoint): Call set_tracepoint_count if B is a
416 tracepoint.
417 (trace_command): Don't call set_tracepoint_count. Re-indent.
418 (strace_command, ftrace_command):
419 (create_tracepoint_from_upload): Likewise.
420
421 2012-11-09 Pedro Alves <palves@redhat.com>
422
423 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
424 (get_target_gdbarch) <gdbarch.h>: New function.
425 (startup_gdbarch) <gdbarch.h>: Declare.
426 <gdbarch.c> (target_gdbarch): Delete.
427 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
428 current inferior's gdbarch.
429 <gdbarch.c> (get_target_gdbarch): New function.
430 * inferior.c: Include target-descriptions.h.
431 (free_inferior): Free target description info.
432 (add_inferior_with_spaces): Set the inferior's initial
433 architecture.
434 (clone_inferior_command): Copy the original inferior's target
435 description if it was user specified.
436 (initialize_inferiors): Add comment.
437 * inferior.h (struct target_desc_info): Forward declare.
438 (struct inferior) <gdbarch>: New field.
439 * linux-nat.c: Include target-descriptions.h.
440 (linux_child_follow_fork): Copy the parent's architecture and
441 target description to the child.
442 * target-descriptions.c: Include inferior.h.
443 (struct target_desc_info): New structure, holding the equivalents
444 of ...
445 (target_desc_fetched, current_target_desc)
446 (target_description_filename): ... these removed globals.
447 (get_tdesc_info, target_desc_info_from_user_p)
448 (copy_inferior_target_desc_info, target_desc_info_free): New.
449 (target_desc_fetched, current_target_desc)
450 (target_description_filename): Reimplemented as convenience
451 macros.
452 (tdesc_filename_cmd_string): New global.
453 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
454 tdescs filename ..." commands to the per-inferior equivalent.
455 (show_tdesc_filename_cmd): Get the value to show from the
456 per-inferior description filename.
457 (_initilize_target_descriptions): Change the "set/show tdesc
458 filename" commands' variable.
459 * target-descriptions.h (struct target_desc, struct target_desc_info)
460 (struct inferior): Forward declare.
461 (target_find_description, target_clear_description)
462 (target_current_description): Adjust comments.
463 (copy_inferior_target_desc_info, target_desc_info_free)
464 (target_desc_info_from_user_p). Declare.
465
466 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
467
468 * tui/tui-hooks.c (tui_about_to_proceed): New function.
469 (tui_target_wait_hook): Remove.
470 (tui_install_hooks): Install the about_to_proceed observer.
471 (tui_remove_hooks): And remove it here.
472
473 2012-11-08 Tom Tromey <tromey@redhat.com>
474
475 * linux-tdep.c (linux_make_siginfo_note): New function.
476 (linux_make_corefile_notes): Use it.
477 * corelow.c (get_core_siginfo): New function.
478 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
479
480 2012-11-08 Tom Tromey <tromey@redhat.com>
481
482 PR gdb/14704:
483 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
484 (zlib_decompress_section): Remove.
485 (gdb_bfd_map_section): Only check for compressed section
486 in mmap case. Use bfd_get_full_section_contents.
487 * osabi.c (check_note): Add 'sectsize' argument. Read
488 section data.
489 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
490 section data. Update for check_note change.
491 * xcoffread.c (xcoff_initial_scan): Use
492 bfd_get_full_section_contents.
493 * py-auto-load.c (auto_load_section_scripts): Use
494 bfd_get_full_section_contents.
495 * contrib/cc-with-tweaks.sh: Add -Z option.
496
497 2012-11-08 Tom Tromey <tromey@redhat.com>
498
499 * python/py-bpevent.c: Include defs.h.
500 * python/py-continueevent.c: Include defs.h.
501 * python/py-event.c: Include defs.h.
502 * python/py-event.h: Don't include defs.h.
503 * python/py-events.h: Don't include defs.h.
504 * python/py-evts.c: Include defs.h.
505 * python/py-exitedevent.c: Include defs.h.
506 * python/py-newobjfileevent.c: Include defs.h.
507 * python/py-signalevent.c: Include defs.h.
508 * python/py-stopevent.c: Include defs.h.
509 * python/py-threadevent.c: Include defs.h.
510
511 2012-11-08 Pierre Muller <muller@sourceware.org>
512
513 * update-web-ari.sh (print_heading): Add number of files
514 checked.
515 (nb_files): New variable counting the number of sources
516 files found by gdb_find.sh script.
517 (debug_awk): New variable to allow extra debug output.
518 (indexes): Add more information if DEBUG_AWK is set.
519
520 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
521
522 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
523 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
524 following the change in PLT call stubs on linker.
525
526 2012-11-08 Pierre Muller <muller@sourceware.org>
527
528 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
529 as default language.
530 (AWK): Use = instead of == for sh test to avoid warning.
531 (Linux rule): Correct [:digit] into [[:digit:]].
532 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
533 (vasprintf rule): Adapt to common subdirectory moves.
534 (xasprintf rule): Idem.
535 (xvasprintf rule): Idem.
536 (var_boolean rule): Accept occurence in == or != test.
537
538 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
539
540 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
541
542 * tui/tui-hooks.c (tui_inferior_exit): New function.
543 (tui_detach_hook): Remove.
544 (tui_install_hooks): Install the inferior exit observer.
545 (tui_remove_hooks): Remove it.
546
547 2012-11-08 Yao Qi <yao@codesourcery.com>
548
549 PR gdb/14777.
550 * source.c (_initialize_source): Call add_com_alias to abbreviate
551 'forward-search' as 'fo'.
552
553 2012-11-07 Pedro Alves <palves@redhat.com>
554
555 * arm-tdep.c: Make defs.h be the first include.
556 * coff-pe-read.c: Ditto.
557 * gnu-nat.c: Ditto.
558 * go32-nat.c: Ditto.
559 * i386-nat.c: Ditto.
560 * ppcnbsd-nat.c: Ditto.
561 * ada-varobj.h: Don't include defs.h.
562 * i386-darwin-tdep.h: Ditto.
563 * i386-nat.h: Ditto.
564
565 2012-11-07 Pedro Alves <palves@redhat.com>
566
567 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
568 Committee.
569
570 2012-11-07 Pierre Muller <muller@sourceware.org>
571
572 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
573 File already uses "gdb_dirent.h" header.
574
575 2012-11-07 Yao Qi <yao@codesourcery.com>
576
577 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
578 tracepoint_count'.
579
580 2012-11-06 Tom Tromey <tromey@redhat.com>
581
582 * target.h (inferior_has_forked, inferior_has_vforked)
583 (inferior_has_execd, inferior_has_called_syscall): Remove
584 declarations.
585
586 2012-11-06 Pierre Muller <muller@sourceware.org>
587
588 * remote.c (remote_insert_hw_breakpoint): ARI fix,
589 add missing internalization markup.
590
591 2012-11-06 Pedro Alves <palves@redhat.com>
592
593 PR gdb/14810
594
595 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
596
597 2012-11-06 Pierre Muller <muller@sourceware.org>
598
599 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
600 is not executable.
601
602 2012-11-05 Joel Brobecker <brobecker@adacore.com>
603
604 * gnulib/update-gnulib.sh: New script.
605
606 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
607
608 * MAINTAINERS: Update my email address.
609
610 2012-11-05 Tom Tromey <tromey@redhat.com>
611
612 * frame.c (put_frame_register): Don't use temporary buffer.
613
614 2012-11-05 Pedro Alves <palves@redhat.com>
615
616 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
617 child. Clear 'pending_detach'.
618 * infrun.c (handle_vfork_child_exec_or_exit): Clear
619 'pending_detach' in the vfork parent.
620
621 2012-11-05 Doug Evans <dje@google.com>
622
623 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
624 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
625 * dwarf2read.c: #include "elf-bfd.h".
626 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
627 (dwop_section_names): Renamed from dwo_section names. All uses
628 updated. Add entries for .debug_cu_index, .debug_tu_index.
629 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
630 All uses updated.
631 (struct dwp_sections): New type.
632 (struct virtual_dwo_sections): New type.
633 (struct dwp_hash_table): New type.
634 (struct dwp_file): New type.
635 (init_cutu_and_read_dies): Ensure DWO info/types section has been
636 read in. Handle DWOs coming from DWP files.
637 (lookup_dwo_file_slot): New function.
638 (dwarf2_locate_dwo_sections): Move definition closer to use.
639 (create_dwo_debug_info_hash_table_reader): Renamed from
640 create_debug_info_hash_table_reader. All callers updated.
641 (create_dwo_debug_info_hash_table): Renamed from
642 create_debug_info_hash_table. All callers updated.
643 (create_dwp_hash_table): New function.
644 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
645 (lookup_dwo_in_dwp): New function.
646 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
647 is_dwp. All callers updated.
648 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
649 (open_and_init_dwo_file): Renamed from init_dwo_file.
650 All callers updated.
651 (lookup_dwo_file): Delete.
652 (dwarf2_locate_dwp_sections): New function.
653 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
654 (allocate_dwp_loaded_cutus_table): New function.
655 (open_and_init_dwp_file): New function.
656 (lookup_dwo_cutu): New function.
657 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
658
659 2012-11-03 Yao Qi <yao@codesourcery.com>
660
661 Fix PR gdb/14617.
662 * breakpoint.c (trace_pass_set_count): Call
663 observer_notify_breakpoint_modified instead of
664 observer_notify_tracepoint_modified.
665 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
666
667 2012-11-02 Tom Tromey <tromey@redhat.com>
668
669 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
670 argument to complete_on_enum.
671
672 2012-11-02 Tom Tromey <tromey@redhat.com>
673
674 * configure: Rebuild.
675 * configure.ac (build_warnings): Add -Wempty-body.
676 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
677 * remote.c (handle_notification): Use braces for empty 'else' body.
678 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
679 'else' body.
680 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
681 'else' body.
682 * solib-som.c (som_relocate_section_addresses): Use braces
683 for empty 'else' body.
684 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
685 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
686
687 2012-11-02 Pedro Alves <palves@redhat.com>
688
689 PR gdb/14766
690
691 * infrun.c (handle_inferior_event)
692 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
693 null_ptid before handling a vfork child exec or exit. Switch to
694 the event ptid afterwards.
695
696 2012-11-02 Yao Qi <yao@codesourcery.com>
697
698 * std-operator.def: Remove OP_LABELED.
699 * eval.c: Remove the declaration of 'get_label'.
700 (get_label): Remove.
701 (evaluate_struct_tuple): Remove code handling OP_LABELED.
702 Update comment.
703 Remove local variable 'variantno' and related code.
704 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
705 with 'fieldno'.
706 * expprint.c (print_subexp_standard): Likewise.
707 (dump_subexp_body_standard): Likewise.
708 * parse.c (operator_length_standard): Likewise.
709
710 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
711
712 Incorporate ARI web page generator into GDB sources.
713 * contrib/ari/create-web-ari-in-src.sh: New file.
714 * contrib/ari/gdb_ari.sh: New file.
715 * contrib/ari/gdb_find.sh: New file.
716 * contrib/ari/update-web-ari.sh: New file.
717
718 2012-10-31 Tom Tromey <tromey@redhat.com>
719
720 * gdbarch.c: Rebuild.
721 * gdbarch.sh: Remove references to gdbarch_swap.
722 * corelow.c (core_open): Remove obsolete comment.
723
724 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
725
726 PR cli/14772
727 * c-typeprint.c (c_print_type): Don't print a space for vector
728 types, this is handled within the suffix.
729 (c_type_print_varspec_suffix): Add a space to vector suffix.
730
731 2012-10-26 Pedro Alves <palves@redhat.com>
732
733 * amd64-tdep.c (amd64_relocate_instruction): Use
734 store_unsigned_integer instead of memcpy.
735 * i386-tdep.c (i386_relocate_instruction): Ditto.
736
737 2012-10-26 Pedro Alves <palves@redhat.com>
738
739 * infrun.c (handle_inferior_event): Merge handling of
740 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
741 switch case.
742
743 2012-10-26 Pedro Alves <palves@redhat.com>
744
745 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
746 Remove comment.
747
748 2012-10-26 Pedro Alves <palves@redhat.com>
749
750 * target.c (target_waitstatus_to_string): Handle
751 TARGET_WAITKIND_VFORK_DONE.
752
753 2012-10-26 Pedro Alves <palves@redhat.com>
754
755 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
756 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
757
758 2012-10-24 Tristan Gingold <gingold@adacore.com>
759
760 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
761 Add comments.
762
763 2012-10-24 Joel Brobecker <brobecker@adacore.com>
764
765 * ravenscar-thread.c (ravenscar_wait): Only update the list
766 of threads and inferior_ptid if the inferior is still alive.
767
768 2012-10-24 Joel Brobecker <brobecker@adacore.com>
769
770 * ada-lang.c (is_known_support_routine): Use lbasename when
771 matching the symtab's filename against
772 known_runtime_file_name_patterns.
773
774 2012-10-24 Joel Brobecker <brobecker@adacore.com>
775
776 * ada-lang.c (ada_same_array_size_p): New function.
777 (ada_promote_array_of_integrals): New function.
778 (coerce_for_assign): Add handling of arrays where the elements
779 are integrals of a smaller size than the size of the target
780 array element type.
781
782 2012-10-24 Joel Brobecker <brobecker@adacore.com>
783
784 * doublest.c (convert_doublest_to_floatformat): Fix comparison
785 against maximum exponent value.
786
787 2012-10-24 Joel Brobecker <brobecker@adacore.com>
788
789 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
790 "unwind-seh.c".
791
792 2012-10-24 Joel Brobecker <brobecker@adacore.com>
793
794 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
795 strip typedef layer when computing the fixed type's field type,
796 only when computing its size.
797
798 2012-10-24 Mark Kettenis <kettenis@gnu.org>
799
800 PR gdb/12783
801 * i386-tdep.c (i386_return_value): Handle complex double and long
802 double.
803
804 2012-10-24 Joel Brobecker <brobecker@adacore.com>
805
806 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
807 New local variable args_len.
808 Quote the name of the executable when computing the command line.
809
810 2012-10-23 Mark Kettenis <kettenis@gnu.org>
811
812 PR gdb/12796
813 PR gdb/12798
814 PR gdb/12800
815 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
816 AMD64_FTAG_REGNUM.
817 * amd64-tdep.c (amd64_classify): Classify complex types.
818 (amd64_return_value): Handle the COMPLEX_X87 class.
819
820 2012-10-23 Joel Brobecker <brobecker@adacore.com>
821
822 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
823 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
824
825 2012-10-23 Joel Brobecker <brobecker@adacore.com>
826
827 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
828 function.
829 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
830 to amd64_windows_auto_wide_charset.
831
832 2012-10-23 Yao Qi <yao@codesourcery.com>
833
834 * event-top.c (mark_async_signal_handler_wrapper): Remove.
835 * event-top.h: Remove its declaration.
836 (async_request_quit): Call mark_async_signal_handler instead of
837 mark_async_signal_handler_wrapper.
838 (async_do_nothing, async_disconnect): Likewise.
839 (async_stop_sig): Likewise.
840 * remote.c (handle_remote_sigint): Likewise.
841 (handle_remote_sigint_twice): Likewise.
842
843 2012-10-23 Yao Qi <yao@codesourcery.com>
844
845 * event-top.c (sigint_token, sighup_token): Replace 'void *'
846 with 'static struct async_signal_handler *'.
847 (sighup_token, sigquit_token, sigstp_token): Likewise.
848
849 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
850
851 * gdbarch.sh (function_list): Use 'pstring' when printing
852 a variable which could return NULL.
853 * gdbarch.c: Regenerate.
854
855 2012-10-10 Joel Brobecker <brobecker@adacore.com>
856 Tom Tromey <tromey@redhat.com>
857
858 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
859 inneffective if condition by gdb assertion. Add function
860 description comment.
861
862 2012-10-19 Joel Brobecker <brobecker@adacore.com>
863
864 * parser-defs.h (struct exp_descriptor): Document constraint
865 on return value for "op_name" callbacks.
866
867 2012-10-18 Tom Tromey <tromey@redhat.com>
868
869 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
870 * symtab.c (iterate_over_some_symtabs): Constify.
871 * source.h (symtab_to_fullname): Return 'const char *'.
872 * source.c (symtab_to_fullname): Return 'const char *'.
873 * python/py-symtab.c (stpy_fullname): Constify.
874 * cli/cli-cmds.c (edit_command): Constify.
875 * breakpoint.c (print_breakpoint_location)
876 (update_static_tracepoint): Constify.
877
878 2012-10-18 Tom Tromey <tromey@redhat.com>
879
880 * breakpoint.c (compare_breakpoints): Fix comparison.
881
882 2012-10-18 Tom Tromey <tromey@redhat.com>
883
884 * valprint.c (generic_emit_char, generic_printstr): Pass size of
885 gdb_wchar_t to convert_between_encodings.
886
887 2012-10-17 Yao Qi <yao@codesourcery.com>
888
889 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
890 more parameter 'inferior'.
891 * corefile.c (write_memory_with_notification): Caller update.
892
893 * mi/mi-cmd-var.c: Include "mi-main.h".
894 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
895 to 1 and restore it later.
896 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
897 and "data-write-memory-bytes.
898 * mi/mi-interp.c: Include objfiles.h.
899 (mi_interpreter_init): Call observer_attach_memory_changed.
900 (mi_memory_changed): New.
901 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
902 New field.
903
904 * NEWS: Mention new MI notification "memory-changed".
905
906 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
907
908 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
909
910 2012-10-15 Doug Evans <dje@google.com>
911
912 New option -nh: inhibit loading of ~/.gdbinit.
913 * NEWS: Mention -nh.
914 * main.c (captured_main): Recognize and process -nh.
915 (print_gdb_help): Mention -nh.
916 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
917
918 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
919
920 PR backtrace/14646
921 PR gdb/14647
922 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
923 pc_regnum_from_eax.
924 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
925 nor pc_regnum_from_eax.
926 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
927 nor pc_regnum_from_eax.
928
929 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
930
931 Fix entry values resolving in inlined frames.
932 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
933 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
934 entries of FRAME.
935
936 2012-10-15 Joel Brobecker <brobecker@adacore.com>
937
938 * configure.ac: Build with -DMS_WIN64 if building with Python
939 enabled using GCC on amd64-windows.
940 * configure: Regenerate.
941
942 2012-10-15 Tom Tromey <tromey@redhat.com>
943
944 PR python/14635:
945 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
946 to Py_None.
947
948 2012-10-15 Tom Tromey <tromey@redhat.com>
949
950 PR python/14634:
951 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
952
953 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
954
955 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
956 reset thread numbering back to 1.
957
958 2012-10-11 Doug Evans <dje@google.com>
959
960 PR breakpoints/14643.
961 * linespec.c (struct ls_parser): New member keyword_ok.
962 (linespec_lexer_lex_string): Add comment.
963 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
964 for one.
965 (parse_linespec): Set keyword_ok.
966
967 2012-10-10 Doug Evans <dje@google.com>
968
969 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
970 "0x" prefix on address in log message.
971
972 * dwarf2read.c (read_1_byte): Add const to buf parameter.
973 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
974 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
975 (lookup_dwo_file): Add const to dwo_name parameter.
976 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
977
978 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
979
980 Fix crash during stepping on ppc32.
981 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
982 SYM.
983
984 2012-10-03 Doug Evans <dje@google.com>
985
986 PR symtab/14601
987 * buildsym.c (buildsym_init): Reset using_directives to NULL.
988
989 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
990
991 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
992 output and use uint32_t not long to ensure 4 byte size.
993
994 2012-10-02 Joel Brobecker <brobecker@adacore.com>
995
996 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
997 unref'ed it.
998
999 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1000
1001 * target.c (simple_search_memory): Include access length in
1002 warning message.
1003
1004 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1005 Edjunior Machado <emachado@linux.vnet.ibm.com>
1006
1007 PR gdb/13989
1008 * solib.c (solib_find): Prevent GDB from loading native libraries when
1009 debugging a cross-target corefile.
1010
1011 2012-09-28 selven <pcthegreat@gmail.com>
1012
1013 Make definition match declaration.
1014
1015 * regcache.c (regcache_register_status): Change return type to
1016 enum register_status.
1017
1018 2012-09-28 Yao Qi <yao@codesourcery.com>
1019
1020 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1021 write_memory_with_notification instead of write_memory.
1022 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1023 instead of target_write_memory.
1024
1025 2012-09-28 Yao Qi <yao@codesourcery.com>
1026
1027 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1028 when the length of content is not an even number.
1029
1030 2012-09-27 Tom Tromey <tromey@redhat.com>
1031
1032 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1033 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1034
1035 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1036
1037 * sol-thread.c (sol_thread_fetch_registers)
1038 (sol_thread_store_registers): Delete commented out code.
1039
1040 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1041
1042 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1043 Move these functions to sparc-sol-thread.c.
1044 * sparc-sol-thread.c: New file.
1045 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1046 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1047 configurations.
1048 * configure: Regenerate.
1049
1050 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1051
1052 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1053 Remove commented-out code.
1054
1055 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1056
1057 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1058 Enable this code for sparc hosts only.
1059
1060 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1061
1062 * procfs.h (procfs_find_LDT_entry): Add declaration.
1063 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1064 function procfs_find_LDT_entry.
1065
1066 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1067
1068 * procfs.c (proc_get_LDT_entry): Make static.
1069
1070 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1071
1072 * procfs.c (proc_find_memory_regions): Fix declaration.
1073
1074 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1075
1076 * amd64-tdep.c (amd64_return_value): Revert previous change
1077 that used TYPE_LENGTH directly.
1078 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1079 (bfin_store_return_value): Likewise.
1080 * cris-tdep.c (cris_store_return_value): Likewise.
1081 (cris_extract_return_value): Likewise.
1082 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1083 * hppa-tdep.c (hppa64_return_value): Likewise.
1084 * lm32-tdep.c (lm32_store_return_value): Likewise.
1085 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1086 * spu-tdep.c (spu_value_from_register): Likewise.
1087 * vax-tdep.c (vax_return_value): Likewise.
1088
1089 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1090
1091 * gdbtypes.c (lookup_array_range_type): Expand parameters
1092 LOW_BOUND and HIGH_BOUND to LONGEST.
1093 (lookup_string_range_type): Likewise.
1094 * gdbtypes.h (lookup_array_range_type): Likewise.
1095 (lookup_string_range_type): Likewise.
1096 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1097 Expand HIGHBOUND to ssize_t.
1098 (value_string): Likewise.
1099 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1100 (value_string): Likewise.
1101
1102 2012-09-27 Yao Qi <yao@codesourcery.com>
1103
1104 PR breakpoints/13898
1105 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1106 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1107 per breakpoint type.
1108
1109 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1110
1111 * procfs.c: Add gdb_bfd header.
1112 * rs6000-nat.c: Likewise.
1113 * solib-pa64.c: Likewise.
1114 * spu-linux-nat.c: Likewise.
1115 * windows-nat.c: Likewise.
1116
1117 2012-09-26 Tom Tromey <tromey@redhat.com>
1118
1119 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1120
1121 2012-09-26 Tom Tromey <tromey@redhat.com>
1122
1123 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1124 (read_common_block): Handle child DIEs with
1125 DW_AT_data_member_location.
1126 (new_symbol_full): Add special case for common blocks.
1127
1128 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1129 Tom Tromey <tromey@redhat.com>
1130
1131 * dwarf2read.c (read_common_block): Rewrite.
1132 (new_symbol_full): Handle DW_TAG_common_block.
1133 * f-lang.c (head_common_list, find_common_for_function):
1134 Remove.
1135 * f-lang.h (struct common_entry, struct saved_f77_common,
1136 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1137 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1138 BLANK_COMMON_NAME_LOCAL): Remove.
1139 (struct common_block): New.
1140 * f-valprint.c (list_all_visible_commons): Remove.
1141 (info_common_command_for_block): New function.
1142 (info_common_command): Use it.
1143 * stack.c (iterate_over_block_locals): Special case for
1144 COMMON_BLOCK_DOMAIN.
1145 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1146 constant.
1147 (struct general_symbol_info) <value.common_block>: New field.
1148 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1149
1150 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 Tom Tromey <tromey@redhat.com>
1152
1153 * f-lang.c (allocate_saved_bf_node,
1154 allocate_saved_function_node, allocate_saved_f77_common_node,
1155 allocate_common_entry_node, tail_common_list, current_common,
1156 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1157 tmp_bf_ptr, add_common_block, add_common_entry,
1158 find_first_common_named, patch_common_entries,
1159 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1160 global_remote_debug, get_bf_for_fcn, saved_function_list,
1161 saved_function_list_end, clear_function_list, struct saved_fcn,
1162 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1163 SAVED_BF, SAVED_BF_PTR): Remove.
1164 * f-lang.h (tail_common_list, current_common,
1165 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1166 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1167 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1168 real_main_c_value): Remove.
1169 * f-valprint.c (there_is_a_visible_common_named): Remove.
1170
1171 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1172
1173 * breakpoint.c (update_global_location_list): Ignore previous
1174 duplicate status of a breakpoint when starting a new scan for
1175 duplicate breakpoints.
1176
1177 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1178 PR breakpoints/14419
1179 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1180 support LLVM compiler.
1181
1182 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1183
1184 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1185 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1186 (bfin_store_return_value): Likewise.
1187 * cris-tdep.c (cris_store_return_value): Likewise.
1188 (cris_extract_return_value): Likewise.
1189 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1190 * hppa-tdep.c (hppa64_return_value): Likewise.
1191 * lm32-tdep.c (lm32_store_return_value): Likewise.
1192 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1193 * spu-tdep.c (spu_value_from_register): Likewise.
1194 * vax-tdep.c (vax_return_value): Likewise.
1195
1196 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1197
1198 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1199 parameter LEN to ssize_t.
1200
1201 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1202
1203 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1204 variable LEN.
1205 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1206 directly.
1207 (alpha_store_return_value): Likewise.
1208 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1209 (amd64_push_arguments): Likewise.
1210 * ax-gdb.c (gen_trace_static_fields): Likewise.
1211 (gen_traced_pop): Likewise.
1212 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1213 * breakpoint.c (update_watchpoint): Likewise.
1214 * findcmd.c (parse_find_args): Use local variable for type
1215 instead of length.
1216 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1217 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1218 (h8300_store_return_value): Likewise.
1219 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1220 Use i386_darwin_arg_type_alignment directly.
1221 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1222 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1223 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1224 (m68hc11_extract_return_value): Likewise.
1225 * mep-tdep.c (mep_push_dummy_call): Likewise.
1226 * printcmd.c (float_type_from_length): Likewise.
1227 * s390-tdep.c (s390_value_from_register): Likewise.
1228 * stack.c (read_frame_arg): Likewise.
1229 * tracepoint.c (encode_actions_1): Likewise.
1230 * valops.c (value_fetch_lazy): Use local variable for type
1231 instead of length. Use TYPE_LENGTH directly.
1232 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1233
1234 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1235
1236 * symtab.c (skip_prologue_sal): Fix typo in comment.
1237
1238 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1239
1240 * linespec.c (create_sals_line_offset): Fix typo in comment.
1241
1242 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1243
1244 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1245 use plongest to print the array size.
1246
1247 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1248
1249 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1250 * p-valprint.c (pascal_type_print_base): Likewise.
1251
1252 2012-09-22 Yao Qi <yao@codesourcery.com>
1253
1254 * remote.c (remote_get_trace_status): Remove setting default
1255 values of fields of 'ts'.
1256
1257 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1258
1259 Fix internal error on canonicalization of clang types.
1260 * cp-name-parser.y (operator): New comment at make_operator call for
1261 new, delete, new[] and delete[].
1262 (exp): Use "sizeof ". Add new comment at make_operator call.
1263
1264 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1265
1266 Fix disassemble without parameters in tailcall frame.
1267 * cli/cli-cmds.c (disassemble_current_function): Use
1268 get_frame_address_in_block.
1269
1270 2012-09-21 Tom Tromey <tromey@redhat.com>
1271
1272 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1273 TYPE_CODE_UNION>: Unify, removing a goto.
1274
1275 2012-09-21 Tom Tromey <tromey@redhat.com>
1276
1277 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1278
1279 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1280
1281 * findvar.c (read_frame_register_value): Mark the result value as
1282 optimized out if any of the input registers have been optimized out.
1283
1284 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1285
1286 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1287
1288 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1289
1290 * eval.c (evaluate_subexp_standard): Eliminate single-use
1291 variable LOWER.
1292
1293 2012-09-21 Yao Qi <yao@codesourcery.com>
1294
1295 * mi/mi-interp.c: Declare mi_record_changed.
1296 (mi_interpreter_init): Call observer_attach_record_changed.
1297 (mi_record_changed): New.
1298 * record.c (record_open): Call observer_notify_record_changed.
1299 (cmd_record_stop): Call observer_notify_record_changed.
1300 * NEWS: Mention it.
1301
1302 2012-09-20 Tom Tromey <tromey@redhat.com>
1303
1304 * NEWS: Update.
1305 * python/python.c (finalize_python): New function.
1306 (_initialize_python): Make a final cleanup.
1307
1308 2012-09-19 Doug Evans <dje@google.com>
1309
1310 * buildsym.h (param_symbols): Delete, unused.
1311 (context_stack): Delete member "params", unused.
1312 * buildsym.c (push_context): Update.
1313 * dwarf2read.c (read_func_scope): Update.
1314
1315 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1316
1317 * sh-tdep.c (sh_register_convert_to_virtual)
1318 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1319 all callers. Just do a memcpy if not the little-endian case.
1320
1321 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1322 set_gdbarch_double_format and set_gdbarch_long_double_format.
1323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1324 set_gdbarch_double_format.
1325 * sh-tdep.c (sh_gdbarch_init): Likewise.
1326
1327 * NEWS: Document the removal of SH's 'regs' command.
1328 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1329 command.
1330
1331 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1332
1333 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1334 `jump'.
1335
1336 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1337
1338 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1339 language when iterating over symbols.
1340
1341 2012-09-18 Yao Qi <yao@codesourcery.com>
1342
1343 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1344 (mi_interpreter_init): Call observer_attach_tsv_created and
1345 observer_attach_tsv_deleted.
1346 (mi_tsv_created, mi_tsv_deleted): New.
1347 * tracepoint.c (delete_trace_state_variable): Call
1348 observer_notify_tsv_deleted.
1349 (trace_variable_command): Call observer_notify_tsv_created.
1350 (delete_trace_variable_command): Call
1351 observer_notify_tsv_deleted.
1352 (create_tsv_from_upload): Call observer_notify_tsv_created.
1353 * NEWS: Mention it.
1354
1355 2012-09-18 Yao Qi <yao@codesourcery.com>
1356
1357 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1358 if traceframe changed.
1359 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1360 "trace-find".
1361 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1362 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1363 'traceframe_changed'.
1364 (mi_traceframe_changed): New.
1365 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1366 New field.
1367 * NEWS: Mention the new MI notification.
1368
1369 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1370
1371 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1372
1373 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1374
1375 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1376 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1377 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1378 Extend code also for PaX support. Convert all gdb_assert to warning
1379 calls.
1380
1381 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1382
1383 Implement auto-load user conveniences suggested by Doug Evans.
1384 * auto-load.c: Include top.h.
1385 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1386 (_initialize_auto_load): New variable scripts_directory_help. Mention
1387 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1388 scripts-directory. Document in online help one can use also files for
1389 set auto-load safe-path.
1390 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1391 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1392
1393 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1394
1395 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1396 of LEN.
1397
1398 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1399
1400 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1401 ELTLEN and use TYPE_LENGTH directly.
1402 (m2_val_print): Likewise.
1403 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1404 variable LEN and use TYPE_LENGTH directly.
1405 (m68k_svr4_store_return_value): Likewise.
1406 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1407 ARGLEN and use TYPE_LENGTH directly.
1408 (mips_o64_push_dummy_call): Likewise.
1409 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1410 variable LENGTH and use TYPE_LENGTH directly.
1411 (s390_function_arg_float): Likewise.
1412 (s390_function_arg_integer): Likewise.
1413 (s390_push_dummy_call): Likewise.
1414 (s390_return_value_convention): Likewise.
1415 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1416 TYPE_LENGTH directly.
1417
1418 2012-09-17 Yao Qi <yao@codesourcery.com>
1419
1420 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1421 Update comment to add_setshow_integer_cmd.
1422 * cli/cli-setshow.c (do_set_command): Handle case
1423 'var_zuinteger_unlimited'.
1424 (do_show_command): Likewise.
1425 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1426 for command 'remotetimeout'.
1427 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1428 to var_integer.
1429 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1430 for command 'set listsize'.
1431
1432 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1433
1434 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1435 variable LEN.
1436
1437 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 PR 14119
1440 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1441 (frame_pop): Drop also TAILCALL_FRAME frames.
1442 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1443
1444 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1445 Pedro Alves <palves@redhat.com>
1446
1447 PR 14548
1448 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1449 function start if we are already at function start. Both for
1450 reverse-next and for reverse-step into function without line number
1451 info.
1452
1453 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1454
1455 Code cleanup - rename 'inline' depth to 'artificial' depth.
1456 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1457 frame_id_artificial_p, extend the comment.
1458 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1459 * frame.c (fprint_frame_id): Rename at a user, change debug output
1460 text to "artificial=".
1461 (skip_inlined_frames): Rename to ...
1462 (skip_artificial_frames): ... here. Extend the comment.
1463 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1464 (frame_id_inlined_p): Rename to ...
1465 (frame_id_artificial_p): ... here. Rename at a user.
1466 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1467 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1468 at a user.
1469 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1470 Extend the comment.
1471 (frame_id_inlined_p): Rename to ...
1472 (frame_id_artificial_p): ... here.
1473 * inline-frame.c (inline_frame_this_id): Rename at a user.
1474
1475 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1476
1477 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1478 vector variables using vector_size syntax rather than array
1479 syntax.
1480
1481 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1482
1483 * valarith.c (value_concat): Replace unsafe ALLOCA with
1484 XMALLOC/XFREE.
1485
1486 2012-09-14 Pedro Alves <palves@redhat.com>
1487
1488 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1489
1490 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1491
1492 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1493 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1494 data-directory as appropriate.
1495
1496 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1497
1498 * printcmd.c (ui_printf): Eliminate single-use variable
1499 PARAM_LEN.
1500
1501 2012-09-14 Yao Qi <yao@codesourcery.com>
1502 Pedro Alves <palves@redhat.com>
1503
1504 * valops.c (value_assign): Move observer_notify_target_changed
1505 below to replace reinit_frame_cache.
1506
1507 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1508
1509 Refactor Python "gdb" module into a proper Python package, by
1510 introducing a new "_gdb" module for code implemented in C, and
1511 using reload/__import__ instead of exec.
1512 * python/lib/gdb/__init__.py: Import * from _gdb.
1513 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1514 prompt_hook, sys.argv): Moved from finish_python_initialization.
1515 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1516 (packages, auto_load_packages): New list and function replacing
1517 module_dict and auto-loading code, using __file__ instead of
1518 gdb.PYTHONDIR and reload/__import__ instead of exec.
1519 (GdbSetPythonDirectory): Replacing function of the same name
1520 from finish_python_initialization, using reload/__import__ instead
1521 of exec, as well as call auto_load_packages.
1522 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1523 gdb_python_module and not gdb_module.
1524 * python/python-internal.h (gdb_python_module): Declare.
1525 * python/python.c (gdb_python_module): New global.
1526 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1527 (_initialize_python): Rename gdb module to _gdb.
1528 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1529 (finish_python_initialization): Move Python code to
1530 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1531 __main__.
1532
1533 2012-09-13 Pedro Alves <palves@redhat.com>
1534
1535 * Makefile.in (COMMON_OBS): Add registry.o.
1536 * registry.c: New file.
1537 * registry.h (struct registry_container): Declare.
1538 (registry_data_callback): New typedef.
1539 (struct registry_data, struct registry_data_registration, struct
1540 registry_data_registry): New type.
1541 (register_data_with_cleanup, registry_alloc_data)
1542 (registry_callback_adaptor, registry_clear_data)
1543 (registry_container_free_data, registry_set_data, registry_data):
1544 Declare.
1545 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1546 the new common structures and functions.
1547 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1548 callback typedefs.
1549
1550 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1551
1552 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1553 there is an error inserting hardware breakpoints and use the
1554 error message from the target.
1555
1556 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1557 Catch this exception and print the error message contained within. Do not
1558 print the default hardware error breakpoint message in this case.
1559
1560 2012-09-12 Doug Evans <dje@google.com>
1561
1562 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1563 cu == NULL.
1564
1565 2012-09-11 Doug Evans <dje@google.com>
1566
1567 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1568 .gdb_index symbol attributes if there are none.
1569
1570 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1571
1572 * symtab.h (struct minimal_symbol) [has_size]: New field.
1573 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1574 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1575 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1576 minimal symbols if the symbol's size is actually known.
1577 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1578 of msymbol's size field. Add comment.
1579 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1580 SET_MSYMBOL_SIZE to set the minimal symbol size.
1581
1582 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1583
1584 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1585 minimal_symbol struct object, rather than setting some of its
1586 fields one by one.
1587
1588 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1589
1590 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1591 passed_a_ptr flag when displaying typedef types.
1592
1593 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1594
1595 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1596 the optimized_out flag is preserved.
1597
1598 2012-09-10 Anthony Green <green@moxielogic.com>
1599
1600 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1601 prologue changes in GCC.
1602
1603 2012-09-10 Keith Seitz <keiths@redhat.com>
1604
1605 PR gdb/13483
1606 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1607 (BOOL_CONVERSION_BADNESS): ... this.
1608 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1609 (rank_one_type): Allow all boolean conversions
1610 permitted by the standard.
1611
1612 2012-09-06 Tom Tromey <tromey@redhat.com>
1613
1614 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1615 Don't decref py_objfile.
1616
1617 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1618
1619 Do not enable -lmcheck by default when Python is enabled with
1620 threading support.
1621 * configure.ac: (python_has_threads) New variable, by testing
1622 if WITH_THREAD is defined in Python.h.
1623 Move --enable-lmcheck after --with-python.
1624 Do not enable -lmcheck by default if python_has_threads=yes.
1625 Warn if --enable-lmcheck and python_has_threads=yes.
1626 * configure: Regenerate.
1627
1628 2012-08-31 Yao Qi <yao@codesourcery.com>
1629
1630 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1631 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1632 Update some commands.
1633 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1634 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1635 to 1.
1636
1637 2012-08-31 Yao Qi <yao@codesourcery.com>
1638
1639 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1640
1641 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1642
1643 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1644
1645 2012-08-29 Doug Evans <dje@google.com>
1646
1647 * main.c (print_gdb_help): Remove reference to
1648 --use-deprecated-index-sections.
1649
1650 2012-08-28 Yao Qi <yao@codesourcery.com>
1651
1652 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1653 (init_cmds): Call add_setshow_uinteger_cmd for command
1654 'max-user-call-depth'.
1655 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1656 declaration of 'max_user_call_depth'.
1657 * frame.c (backtrace_limit): Add 'unsigned'.
1658 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1659 'limit'.
1660 * remote.c (remoteaddresssize): Add 'unsigned'.
1661 (remote_address_masked): Change local var 'address_size' to
1662 'unsigned'.
1663 (_initialize_remote): Call add_setshow_uinteger_cmd for
1664 'remoteaddresssize'.
1665 * top.c (history_size): Add 'unsigned'.
1666 (show_commands): Change local variables to 'unsigned'.
1667 (set_history_size_command): Don't check history_size is negative.
1668 Adjust the condition to call unstifle_history and set history_size
1669 to UNIT_MAX.
1670
1671 2012-08-28 Pedro Alves <palves@redhat.com>
1672
1673 PR gdb/14428
1674
1675 * infcmd.c (default_print_one_register_info): New, factored out
1676 from default_print_registers_info.
1677 (default_print_registers_info): Use it. Mark value unavailable if
1678 necessary.
1679 (registers_info): Print user registers with
1680 default_print_one_register_info.
1681
1682 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1683
1684 PR tui/14486
1685 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1686 is not NULL before referencing it.
1687
1688 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1689
1690 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1691 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1692 original PC for it.
1693
1694 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1695 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 * auto-load.c (auto_load_objfile_script): Rename to ...
1698 (auto_load_objfile_script_1): ... here, change variable realname to
1699 parameter realname, document it, add return value, add variable retval.
1700 (auto_load_objfile_script): New function.
1701
1702 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1705 followed by a whitespace.
1706
1707 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1708
1709 PR gdb/14494.
1710 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1711 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1712 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1713 here.
1714
1715 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1716
1717 * memattr.c (create_mem_region): Fix memory region overlapping
1718 checking.
1719
1720 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1721
1722 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1723 with xmalloc/cleanup.
1724 * mt-tdep.c (mt_push_dummy_call): Likewise.
1725 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1726 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1727
1728 2012-08-24 Yao Qi <yao@codesourcery.com>
1729
1730 * jv-exp.y (push_expression_name): Add "." at the end of error
1731 message.
1732
1733 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1734
1735 Document how to return from "python-interactive" to GDB.
1736 * python/python.c (_initialize_python): Update documentation.
1737
1738 2012-08-23 Pedro Alves <palves@redhat.com>
1739
1740 * infrun.c (_initialize_infrun) <handle command help text>:
1741 Mention that multiple signals are supported.
1742
1743 2012-08-23 Pedro Alves <palves@redhat.com>
1744
1745 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1746 string.
1747
1748 2012-08-23 Yao Qi <yao@codesourcery.com>
1749
1750 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1751 (tfind_1): Don't call registers_changed, set_traceframe_num,
1752 and clear_traceframe_info.
1753 Call set_current_traceframe.
1754 (set_current_traceframe): call set_traceframe_num.
1755
1756 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1757
1758 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1759 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1760
1761 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1762
1763 Enable readline in Python in a GDB-specific way and block the
1764 standard Python readline module to prevent conflicts with GDB.
1765 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1766 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1767 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1768 * python/py-gdb-readline.c: New file.
1769 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1770 prototype.
1771 * python/python.c (_initialize_python): Call
1772 gdbpy_initialize_gdb_readline.
1773
1774 2012-08-22 Keith Seitz <keiths@redhat.com>
1775
1776 * defs.h: Include build-gnulib/config.h
1777
1778 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1779
1780 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1781 and blx pc.
1782
1783 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1784
1785 Add a new "python-interactive" command that starts a standard
1786 Python interactive prompt with "pi" as alias, and add "py" as
1787 an alias to "python".
1788 * NEWS: Mention the new commands.
1789 * python/python.c (eval_python_command): New function.
1790 (python_interactive_command): For "python-interactive" with
1791 arguments, call eval_python_command. For "python-interactive"
1792 without arguments, call PyRun_InteractiveLoop.
1793 (_initialize_python): Add "python-interactive" command with
1794 "pi" as alias, and add "py" as an alias to "python".
1795
1796 2012-08-22 Tom Tromey <tromey@redhat.com>
1797
1798 * defs.h (quit_flag): Don't declare.
1799 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1800 (QUIT): Use new functions.
1801 * event-top.c (command_handler): Use clear_quit_flag.
1802 (handle_sigint): Use set_quit_flag.
1803 (async_request_quit): Use check_quit_flag. Don't check
1804 immediate_quit.
1805 * exceptions.c (throw_exception): Use clear_quit_flag.
1806 * main.c (captured_main): Use clear_quit_flag.
1807 * python/python.c (clear_quit_flag, set_quit_flag)
1808 (check_quit_flag): New functions.
1809 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1810 clear_quit_flag.
1811 * remote.c (remote_wait_as): Use check_quit_flag,
1812 clear_quit_flag.
1813 (remote_start_remote): Call QUIT.
1814 * symfile.c (load_progress): Use check_quit_flag.
1815 * top.c (command_loop): Use clear_quit_flag.
1816 (command_line_input): Call QUIT.
1817 * utils.c (quit_flag): Conditionally define.
1818 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1819 functions.
1820 (prompt_for_continue): Call QUIT. Use quit, not
1821 async_request_quit.
1822 * remote-mips.c (mips_expect_timeout): Call QUIT.
1823 * monitor.c (monitor_expect): Call QUIT.
1824
1825 2012-08-22 Tom Tromey <tromey@redhat.com>
1826
1827 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1828 (async_init_signals): Update.
1829 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1830 (SIGWINCH_HANDLER_BODY): Remove.
1831
1832 2012-08-22 Tom Tromey <tromey@redhat.com>
1833
1834 * jit.c (jit_object_close_impl): Don't malloc the objfile
1835 name.
1836 * objfiles.c (allocate_objfile): Don't malloc the objfile
1837 name.
1838 (free_objfile): Don't free the objfile name.
1839 * objfiles.h (struct objfile) <name>: Update comment.
1840 * symfile.c (reread_symbols): Fix reference counting. Don't
1841 malloc objfile name.
1842
1843 2012-08-22 Tom Tromey <tromey@redhat.com>
1844
1845 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1846 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1847 (symfile_bfd_open): Likewise.
1848 (generic_load): Likewise.
1849 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1850 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1851 gdb_bfd_open.
1852 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1853 Use gdb_bfd_open.
1854 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1855 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1856 (pmon_load_fast): Likewise.
1857 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1858 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1859 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1860 (macho_check_dsym): Likewise.
1861 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1862 (m32r_upload_command): Likewise.
1863 * gdb_bfd.h (gdb_bfd_cache): Declare.
1864 * gdb_bfd.c (struct gdb_bfd_data): New.
1865 (gdb_bfd_cache): New global.
1866 (struct gdb_bfd_cache_search): New.
1867 (hash_bfd): New function.
1868 (eq_bfd): Likewise.
1869 (gdb_bfd_open): Likewise.
1870 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1871 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1872 gdb_bfd_data.
1873 * exec.c (exec_file_attach): Use gdb_bfd_open.
1874 * dsrec.c (load_srec): Use gdb_bfd_open.
1875
1876 2012-08-22 Tom Tromey <tromey@redhat.com>
1877
1878 * dwarf2read.c (macro_start_file): Update.
1879 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1880 (free_objfile_per_bfd_storage): Destroy macro_cache.
1881 (allocate_objfile, free_objfile): Update.
1882 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1883 New field.
1884 (struct objfile) <macro_cache>: Remove.
1885 * symfile.c (reread_symbols): Update.
1886 * symmisc.c (print_symbol_bcache_statistics): Update.
1887 (print_objfile_statistics): Update.
1888
1889 2012-08-22 Tom Tromey <tromey@redhat.com>
1890
1891 * elfread.c (elf_symtab_read): Update.
1892 * objfiles.c (objfiles_bfd_data): New global.
1893 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1894 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1895 (allocate_objfile, free_objfile): Update.
1896 (_initialize_objfiles): Initialize objfiles_bfd_data.
1897 * objfiles.h (struct objfile_per_bfd_storage): New.
1898 (struct objfile) <per_bfd>: New field.
1899 <filename_cache>: Remove.
1900 (set_objfile_per_bfd): Declare.
1901 * symfile.c (reread_symbols): Update. Call
1902 set_objfile_per_bfd.
1903 (allocate_symtab): Update.
1904 * symmisc.c (print_symbol_bcache_statistics): Update.
1905 (print_objfile_statistics): Print the size of the BFD obstack.
1906
1907 2012-08-22 Tom Tromey <tromey@redhat.com>
1908
1909 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1910 * gdb_bfd.c: Use DEFINE_REGISTRY.
1911 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1912 (gdb_bfd_ref): Call bfd_alloc_data.
1913 (gdb_bfd_unref): Call bfd_free_data.
1914
1915 2012-08-22 Tom Tromey <tromey@redhat.com>
1916
1917 * registry.h (struct registry_fields): New.
1918 (REGISTRY_FIELDS): Redefine.
1919 (REGISTRY_ACCESS_FIELD): New macro.
1920 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1921 functions.
1922
1923 2012-08-22 Tom Tromey <tromey@redhat.com>
1924
1925 * auto-load.c (_initialize_auto_load): Update.
1926 * solib-svr4.c (_initialize_svr4_solib): Update
1927 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1928 * solib-darwin.c (_initialize_darwin_solib): Update.
1929 * registry.h: New file.
1930 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1931 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1932 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1933 (register_program_space_data_with_cleanup)
1934 (register_program_space_data, program_space_alloc_data)
1935 (clear_program_space_data, set_program_space_data)
1936 (program_space_data): Don't declare.
1937 * progspace.c: Use DEFINE_REGISTRY.
1938 (struct program_space_data, struct
1939 program_space_data_registration, struct
1940 program_space_data_registry, program_space_data_registry)
1941 (register_program_space_data_with_cleanup)
1942 (register_program_space_data, program_space_alloc_data)
1943 (program_space_free_data, clear_program_space_data)
1944 (set_program_space_data, program_space_data): Remove.
1945 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1946 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1947 (register_objfile_data_with_cleanup, register_objfile_data)
1948 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1949 declare.
1950 * objfiles.c: Use DEFINE_REGISTRY.
1951 (struct objfile_data, struct objfile_data_registration, struct
1952 objfile_data_registry, objfile_data_registry)
1953 (register_objfile_data_with_cleanup, register_objfile_data)
1954 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1955 (set_objfile_data, objfile_data): Remove.
1956 (_initialize_objfiles): Update.
1957 * jit.c (_initialize_jit): Update.
1958 * inflow.c (_initialize_inflow): Update.
1959 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1960 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1961 (register_inferior_data_with_cleanup, register_inferior_data)
1962 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1963 declare.
1964 * inferior.c: Use DEFINE_REGISTRY.
1965 (struct inferior_data, struct inferior_data_registration, struct
1966 inferior_data_registry, inferior_data_registry)
1967 (register_inferior_data_with_cleanup, register_inferior_data)
1968 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1969 (set_inferior_data, inferior_data): Remove.
1970 * auxv.c (_initialize_auxv): Update.
1971 * ada-lang.c (_initialize_ada_language): Update.
1972 * breakpoint.c (_initialize_breakpoint): Update.
1973 * i386-nat.c (i386_use_watchpoints): Update.
1974
1975 2012-08-22 Tom Tromey <tromey@redhat.com>
1976
1977 * exec.c (exec_close, exec_file_attach): Update.
1978 (add_to_section_table): Initialize 'key' field.
1979 (add_target_sections, remove_target_sections): Add 'key' argument.
1980 * exec.h (add_target_sections, remove_target_sections): Add
1981 'key' argument.
1982 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1983 (reload_shared_libraries_1): Update.
1984 * target.h (struct target_section) <key>: New field.
1985
1986 2012-08-22 Tom Tromey <tromey@redhat.com>
1987
1988 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1989
1990 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1991
1992 * symfile.c (allocate_symtab): Use host_address_to_string
1993 function instead of cast of pointer to long which is not
1994 compatible with x86_64-w64-mingw32 build.
1995
1996 2012-08-19 Andrew Pinski <apinski@cavium.com>
1997
1998 * mips-tdep.c (is_octeon): New function.
1999 (is_octeon_bbit_op): New function.
2000 (mips32_next_pc): Handle Octeon's bbit instructions.
2001 (mips32_instruction_has_delay_slot): Likewise.
2002
2003 2012-08-19 Andrew Pinski <apinski@cavium.com>
2004
2005 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2006 before the function.
2007
2008 2012-08-19 Andrew Pinski <apinski@cavium.com>
2009
2010 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2011
2012 2012-08-19 Keith Seitz <keiths@redhat.com>
2013
2014 PR c++/14365
2015 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2016 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2017
2018 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2019
2020 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2021 The typo broke "make TAGS".
2022
2023 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2024
2025 GDB 7.5 released.
2026
2027 2012-08-17 Keith Seitz <keiths@redhat.com>
2028
2029 PR c++/13356
2030 * gdbtypes.c (strict_type_checking): New variable.
2031 (show_strict_type_checking): New function.
2032 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2033 if strict type checking is disabled.
2034 (_initialize_gdbtypes): Add "check type" subcommand.
2035 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2036
2037 2012-08-17 Keith Seitz <keiths@redhat.com>
2038
2039 * language.h (type_mode): Remove.
2040 (type_check): Remove.
2041 (struct language_defn): Remove la_type_check.
2042 (STRICT_TYPE): Remove unused macro.
2043 (type_error): Remove.
2044 * language.c (set_type_range_case): Renamed to ...
2045 (set_range_case): ... this. Update all callers.
2046 Remove type_mode/type_check.
2047 (type_mode): Remove.
2048 (type_check): Remove.
2049 (show_type_command): Remove.
2050 (set_type_command): Remove.
2051 (language_info): Remove type checking output.
2052 (type_error): Remove unused function.
2053 (range_error): Update comment.
2054 (unknown_language_defn): Remove la_type_check.
2055 (auto_language_defn): Likewise.
2056 (local_language_defn): Likewise.
2057 (_initialize_language): Remove "check type" subcommand.
2058 * ada-lang.c (ada_language_defn): Remove la_type_check.
2059 * c-lang.c (c_language_defn): Likewise.
2060 (cplus_language_defn): Likewise.
2061 (asm_language_defn): Likewise.
2062 (minimal_language_defn): Likewise.
2063 * d-lang.c (d_language_defn): Likewise.
2064 * f-lang.c (f_language_defn): Likewise.
2065 * go-lang.c (go_language_defn): Likewise.
2066 * jv-lang.c (java_language_defn): Likewise.
2067 * m2-lang.c (m2_language_defn): Likewise.
2068 * objc-lang.c (objc_language_defn): Likewise.
2069 * opencl-lang.c (opencl_language_defn): Likewise.
2070 * p-lang.c (pascal_language_defn): Likewise.
2071
2072 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2073
2074 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2075
2076 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2077
2078 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2079 New function.
2080 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2081 using the regache. Use ia64_hpux_get_register_from_save_state_t
2082 to access the bsp and bspstore registers if not.
2083
2084 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2085
2086 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2087 * breakpoint.c (detach_breakpoints): Change pid parameter into
2088 a ptid. Adjust code accordingly.
2089 * infrun.c (handle_inferior_event): Delete variable child_pid.
2090 Update call to detach_breakpoints to pass the child ptid for
2091 fork events.
2092 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2093 assert that inferior_ptid's lwp is zero.
2094 (linux_handle_extended_wait): Update call to detach_breakpoints.
2095 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2096 detach_breakpoints.
2097
2098 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2099
2100 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2101 parent, only call detach_breakpoints if tts.tts_event ==
2102 TTEVT_VFORK.
2103
2104 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2105
2106 * dwarf2-frame.c (dwarf2_frame_cache): Use
2107 get_frame_address_in_block instead of get_frame_pc as
2108 the bound for executing the frame's FDE.
2109
2110 2012-08-16 Yao Qi <yao@codesourcery.com>
2111
2112 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2113 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2114 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2115 (c_type_print_varspec_suffix): Likewise.
2116 * eval.c (evaluate_subexp_standard): Likewise.
2117 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2118 (f_type_print_varspec_suffix): Likewise.
2119 * gdbtypes.c (is_scalar_type): Likewise.
2120 (recursive_dump_type): Likewise.
2121 * infcall.c (value_arg_coerce): Likewise.
2122 * m2-valprint.c (m2_val_print): Likewise.
2123 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2124 (pascal_type_print_varspec_suffix): Likewise.
2125 (pascal_type_print_base): Likewise.
2126 * p-valprint.c (pascal_val_print): Likewise.
2127 (pascal_val_print): Likewise.
2128 * valops.c (value_slice): Likewise.
2129 * valprint.c (scalar_type_p): Likewise.
2130 * valarith.c (value_bitstring_subscript): Remove.
2131 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2132 Remove comment on TYPE_CODE_BITSTRING.
2133
2134 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2135 TYPE_CODE_BITSTRING.
2136
2137 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2138 slot 0.
2139
2140 2012-08-16 Yao Qi <yao@codesourcery.com>
2141
2142 * tracepoint.c (trace_find_none_command): Remove.
2143 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2144
2145 2012-08-16 Yao Qi <yao@codesourcery.com>
2146
2147 * remote.c (handle_notification): Remove parameter 'length'.
2148 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2149
2150 2012-08-15 Keith Seitz <keiths@redhat.com>
2151
2152 * gdbtypes.c (opaque_type_resolution): Make static.
2153 Add missing comment.
2154 (overload_debug): Add missing comment.
2155 (show_opaque_type_resolution): Likewise.
2156 (show_overload_debug): Likewise.
2157 (print_bit_vector): Remove unnecessary forward declaration.
2158 (print_arg_types): Likewise.
2159 (dump_fn_fieldlists): Likewise.
2160 (print_cplus_stuff): Likewise.
2161
2162 2012-08-15 Tom Tromey <tromey@redhat.com>
2163
2164 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2165 (gdb_bfd_ref): Initialize new field.
2166 (gdb_bfd_unref): Unref the archive BFD.
2167 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2168 parent archive.
2169
2170 2012-08-15 Tom Tromey <tromey@redhat.com>
2171
2172 PR python/14387:
2173 * python/py-bpevent.c (create_breakpoint_event_object): Update
2174 comment.
2175 * python/py-event.c (evpy_add_attribute): Update comment.
2176 * python/py-exitedevent.c (create_exited_event_object): Fix
2177 reference counting and error handling.
2178 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2179 Fix reference counting.
2180 * python/py-signalevent.c (create_signal_event_object): Fix
2181 reference counting and error handling.
2182 * python/py-stopevent.c (emit_stop_event): Fix reference
2183 counting.
2184 * python/py-threadevent.c (get_event_thread): Return a
2185 borrowed reference.
2186 * python/py-type.c (convert_field): Fix reference counting.
2187
2188 2012-08-15 Tom Tromey <tromey@redhat.com>
2189
2190 * dwarf2read.c (dwarf_decode_macro_bytes)
2191 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2192 as hash key.
2193
2194 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2195
2196 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2197 stepi, nexti, finish, next, step, jump, and continue commands.
2198 * infrun.c (_initialize_infrun): Update help text for the handle
2199 command.
2200
2201 2012-08-14 Doug Evans <dje@google.com>
2202
2203 * gdbtypes.c (struct extra): Delete, unused.
2204
2205 * gdbtypes.c: Whitespace cleanup.
2206 (address_space_name_to_int): Remove "extern" from definition.
2207 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2208
2209 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2210 TYPE_POINTER_TYPE (type).
2211
2212 2012-08-14 Gary Benson <gbenson@redhat.com>
2213
2214 * solib-svr4.c (svr4_free_library_list): Use free_so.
2215
2216 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2217
2218 * .gitignore: Add go-exp.c.
2219
2220 2012-08-13 Doug Evans <dje@google.com>
2221
2222 * value.c (show_convenience): Tweak comment.
2223 (_initialize_values): Mention convenience functions in the help text
2224 for "show convenience".
2225
2226 2012-08-13 Yao Qi <yao@codesourcery.com>
2227
2228 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2229 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2230 TERNOP_SLICE_COUNT.
2231 * eval.c (evaluate_subexp_standard): Likewise.
2232 * expprint.c (print_subexp_standard): Likewise.
2233 (dump_subexp_body_standard): Likewise.
2234 * parse.c (operator_length_standard): Likewise.
2235
2236 2012-08-13 Yao Qi <yao@codesourcery.com>
2237
2238 * std-operator.def: Remove OP_BITSTRING.
2239 * breakpoint.c (watchpoint_exp_is_const): Update.
2240 * eval.c (evaluate_subexp_standard): Remove handling to
2241 OP_BITSTRING.
2242 * expprint.c (print_subexp_standard): Likewise.
2243 (dump_subexp_body_standard): Likewise.
2244 * parse.c (operator_length_standard): Likewise.
2245 * valops.c (value_bitstring): Remove.
2246 * value.h: Remove the declaration of 'value_bitstring'.
2247
2248 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2249
2250 * linespec.c (find_methods): Remove unused variables `i1' and
2251 `name_len'.
2252 (decode_line_full): Likewise for `arg_start'.
2253
2254 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2255
2256 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2257 (zlib_decompress_section): Likewise for `section_data'.
2258 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2259
2260 2012-08-10 Doug Evans <dje@google.com>
2261
2262 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2263 * NEWS: Document them.
2264 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2265 function/strfns.py.
2266 * python/py-type.c (typy_array_1): New function.
2267 (typy_array): Call it.
2268 (typy_vector): New function.
2269 (type_object_methods): Add "vector".
2270 * python/lib/gdb/function/__init__.py: New file.
2271 * python/lib/gdb/function/strfns.py: New file.
2272
2273 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2274
2275 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2276 for TYPE_FIELD_BITPOS.
2277 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2278
2279 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2280
2281 PR cli/10436:
2282 * common/vec.h (VEC_merge): Define.
2283 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2284 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2285 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2286 * completer.c: Include gdb_signals.h.
2287 (signal_completer): Define.
2288 * completer.h (signal_completer): Add prototype.
2289 * infcmd.c (_initialize_infcmd): Assign the command
2290 completer for "signal" to handle_completer.
2291 * infrun.c: Include completer.h.
2292 (handle_completer): Define.
2293 (_initialize_infrun): Declare a new local variable c. Store the
2294 result of add_com("handle") to it. Assign the command
2295 completer for "handle" to handle_completer.
2296
2297 2012-08-09 Yao Qi <yao@codesourcery.com>
2298
2299 * cli/cli-decode.c (set_cmd_prefix): New.
2300 (lookup_cmd_for_prefixlist): New.
2301 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2302 of each cmd_list_element in *prefixlist.
2303 (add_setshow_cmd_full): set_cmd_prefix.
2304 (add_alias_cmd): Likewise.
2305 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2306 Declare 'auto_boolean_enums'.
2307 * cli/cli-setshow.c: Include "observer.h".
2308 (notify_command_param_changed_p): New.
2309 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2310 Remove 'static'.
2311 (do_setshow_command): Split it to ...
2312 (do_set_command, do_show_command): ... them. New.
2313 (do_set_command): Call observer_notify_command_param_changed if
2314 notify_command_param_changed_p returns true.
2315 (cmd_show_list): Caller update.
2316 * auto-load.c (set_auto_load_cmd): Likewise.
2317 * remote.c (show_remote_cmd): Likewise.
2318 * cli/cli-setshow.h: Update declarations.
2319 * top.c (execute_command): Call do_set_command and do_show_command.
2320
2321 * NEWS: Mention new MI notification.
2322 * mi/mi-interp.c: Declare mi_command_param_changed.
2323 (mi_interpreter_init): Attach mi_command_param_changed to
2324 observer command_param_changed.
2325 (mi_command_param_changed): New.
2326 Remove mi_suppress_breakpoint_notifications.
2327 Define global variable mi_suppress_notification.
2328 (mi_breakpoint_created): Update.
2329 (mi_breakpoint_deleted): Likewise.
2330 (mi_breakpoint_modified): Likewise.
2331 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2332 'gdb-set' and set mi_suppress_notification.
2333 * mi/mi-main.h: (mi_suppress_notification): New struct.
2334
2335 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2336 Jan Kratochvil <jan.kratochvil@redhat.com>
2337
2338 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2339
2340 2012-08-09 Yao Qi <yao@codesourcery.com>
2341
2342 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2343 (skiplist): Move it to skip.c.
2344 (init_cmd_lists): Remove code setting enablebreaklist and
2345 skiplist to NULL.
2346 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2347 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2348 skiplist.
2349 * gdbcmd.h: Likewise.
2350 * skip.c (_initialize_step_skip): Move 'skiplist' from
2351 cli/cli-cmds.c.
2352
2353 2012-08-09 Yao Qi <yao@codesourcery.com>
2354
2355 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2356 * gnu-nat.c, symfile.c: Likewise.
2357
2358 2012-08-08 Aaron Gamble <agamble@google.com>
2359
2360 * utils.c (prompt_for_continue_wait_time): New static global.
2361 (make_command_stats_cleanup): Initialize it.
2362 (report_command_stats): Subtract time waiting for user.
2363 (prompt_for_continue): Track time waiting for user.
2364 (defaulted_query): Track time waiting for user.
2365
2366 2012-08-08 Doug Evans <dje@google.com>
2367
2368 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2369 UNOP_MEMVAL_TYPE.
2370 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2371 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2372 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2373 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2374 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2375 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2376 elt.
2377 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2378 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2379 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2380 (dump_prefix_expression): Handle OP_TYPE.
2381
2382 2012-08-08 Keith Seitz <keiths@redhat.com>
2383
2384 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2385 addr_start.
2386
2387 2012-08-08 Doug Evans <dje@google.com>
2388
2389 * linux-thread-db.c: #include "gdb_vecs.h".
2390 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2391 updated.
2392 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2393 (thread_db_load_search): Use a vector to iterate over path elements.
2394 Handle text appearing after "$pdir".
2395
2396 * gdb_string.h: Moved to ...
2397 * common/gdb_string.h: ... here.
2398 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2399 gdb_string.h and gdb_assert.h.
2400
2401 2012-08-08 Yao Qi <yao@codesourcery.com>
2402
2403 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2404 (tic6x_value_to_register): Likewise.
2405 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2406 and set_gdbarch_value_to_register.
2407
2408 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2409 Jean-Marc Saffroy <saffroy@gmail.com>
2410
2411 PR 11804
2412 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2413 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2414 * gcore.c (gcore_create_callback): New function comment. Add modified
2415 parameter. Only write modified regions. Set SEC_READONLY exactly
2416 according to MODIFIED.
2417 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2418 the passed modified value to FUNC.
2419 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2420 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2421 first. New variables modified and has_anonymous. Parse the lines of
2422 smaps file. Add the passed MODIFIED value to FUNC.
2423 * procfs.c (find_memory_regions_callback): Add the passed modified
2424 value.
2425
2426 2012-08-06 Tom Tromey <tromey@redhat.com>
2427
2428 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2429 (dwarf2_frame_cache): Use it.
2430 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2431 cache initialization constraint.
2432
2433 2012-08-06 Tom Tromey <tromey@redhat.com>
2434
2435 PR python/14386:
2436 * varobj.c (update_dynamic_varobj_children): Don't call
2437 PyIter_Check.
2438
2439 2012-08-06 Tom Tromey <tromey@redhat.com>
2440
2441 PR cli/14392:
2442 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2443
2444 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2445
2446 * NEWS: New entry for 'cd' default parameters.
2447 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2448
2449 2012-08-03 Tom Tromey <tromey@redhat.com>
2450
2451 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2452 return.
2453
2454 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2455
2456 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2457 to attempting lseek/write.
2458 (inf_child_fileio_pread): Likewise for pread.
2459
2460 2012-08-02 Yao Qi <yao@codesourcery.com>
2461
2462 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2463 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2464 add_setshow_zinteger_cmd.
2465 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2466 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2467 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2468 instead of add_setshow_zinteger_cmd.
2469 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2470 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2471 instead of add_setshow_zinteger_cmd.
2472 * frame.c (frame_debug): Add 'unsigned'.
2473 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2474 add_setshow_zinteger_cmd.
2475 * frame.h: Update the declaration of 'frame_debug'.
2476 * gdbtypes.c (overload_debug): Add 'unsigned'.
2477 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2478 add_setshow_zinteger_cmd.
2479 * inferior.h: Update declaration of 'debug_infrun'.
2480 * infrun.c (debug_infrun): Add 'unsigned'.
2481 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2482 add_setshow_zinteger_cmd.
2483 * jit.c (jit_debug): Add 'unsigned'.
2484 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2485 add_setshow_zinteger_cmd.
2486 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2487 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2488 instead of add_setshow_zinteger_cmd.
2489 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2490 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2491 add_setshow_zinteger_cmd.
2492 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2493 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2494 instead of add_setshow_zinteger_cmd.
2495 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2496 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2497 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2498 intead of add_setshow_zinteger_cmd.
2499 * mips-tdep.c (mips_debug): Add 'unsigned'.
2500 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2501 instead of add_setshow_zinteger_cmd.
2502 * monitor.c (monitor_debug): Add 'unsigned'.
2503 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2504 add_setshow_zinteger_cmd.
2505 * observer.c (observer_debug): Add 'unsigned'.
2506 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2507 add_setshow_zinteger_cmd.
2508 * parse.c (expressiondebug): Add 'unsigned'.
2509 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2510 add_setshow_zinteger_cmd.
2511 * record.c (record_debug): Add 'unsigned'.
2512 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2513 add_setshow_zinteger_cmd.
2514 * record.h: Update the declaration of 'record_debug'.
2515 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2516 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2517 add_setshow_zinteger_cmd.
2518 * serial.c (global_serial_debug_p): Add 'unsigned'.
2519 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2520 add_setshow_zinteger_cmd.
2521 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2522 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2523 add_setshow_zinteger_cmd.
2524 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2525 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2526 add_setshow_zinteger_cmd.
2527 * target.c (targetdebug): Add 'unsigned'.
2528 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2529 add_setshow_zinteger_cmd.
2530 * valops.c (overload_debug): Add 'unsigned'.
2531 * varobj.c (varobjdebug): Add 'unsigned'.
2532 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2533 add_setshow_zinteger_cmd.
2534 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2535 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2536 instead of add_setshow_zinteger_cmd.
2537
2538 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2539 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2540 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2541 instead of add_setshow_zinteger_cmd.
2542 * gdbarch.c, gdbarch.h: Re-generated.
2543
2544 2012-08-02 Yao Qi <yao@codesourcery.com>
2545
2546 * nto-tdep.c: Don't include cli/cli-decode.h and
2547 cli/cli-cmds.h.
2548 (_initialize_nto_tdep): Remove.
2549 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2550 Remove field.
2551 Remove macro nto_internal_debugging.
2552
2553 2012-08-01 Richard Henderson <rth@redhat.com>
2554
2555 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2556 (mep-*-*) [gdb_target_obs]: Likewise.
2557
2558 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2559
2560 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2561 linux_get_siginfo_type.
2562
2563 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2564
2565 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2566 AT_ENTRY_POINT.
2567 (call_function_by_hand) <ON_STACK>: Call write_memory with
2568 gdbarch_breakpoint_from_pc, if possible.
2569 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2570 here.
2571
2572 2012-07-31 Yao Qi <yao@codesourcery.com>
2573
2574 * tracepoint.c: Add 'static' for some variables.
2575
2576 2012-07-31 Yao Qi <yao@codesourcery.com>
2577
2578 * go32-nat.c: Declare _initialize_go32_nat.
2579 * ser-go32.c: Declare _initialize_ser_dos.
2580 * top.c (do_chdir_cleanup): Add 'static'.
2581
2582 2012-07-30 Keith Seitz <keiths@redhat.com>
2583
2584 * linespec.c (linespec_lex_number): A number followed
2585 by quotes is a valid number, too.
2586
2587 2012-07-30 Tom Tromey <tromey@redhat.com>
2588
2589 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2590
2591 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2592
2593 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2594 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2595
2596 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2597
2598 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2599 invalid or reevaluated to prevent prevent references to possibly
2600 delete'd type objects being left in the varobj.
2601
2602 2012-07-27 Tom Tromey <tromey@redhat.com>
2603 Jan Kratochvil <jan.kratochvil@redhat.com>
2604
2605 * copying.awk: Print buffer-read-only and vi ro markers.
2606 * copying.c: Rebuild.
2607 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2608 * gdbarch.c, gdbarch.h: Rebuild.
2609 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2610 buffer-read-only and vi ro markers.
2611 * features/arm-with-iwmmxt.c: Rebuild.
2612 * features/arm-with-m-fpa-layout.c: Rebuild.
2613 * features/arm-with-m-vfp-d16.c: Rebuild.
2614 * features/arm-with-m.c: Rebuild.
2615 * features/arm-with-neon.c: Rebuild.
2616 * features/arm-with-vfpv2.c: Rebuild.
2617 * features/arm-with-vfpv3.c: Rebuild.
2618 * features/i386/amd64-avx-linux.c: Rebuild.
2619 * features/i386/amd64-avx.c: Rebuild.
2620 * features/i386/amd64-linux.c: Rebuild.
2621 * features/i386/amd64.c: Rebuild.
2622 * features/i386/i386-avx-linux.c: Rebuild.
2623 * features/i386/i386-avx.c: Rebuild.
2624 * features/i386/i386-linux.c: Rebuild.
2625 * features/i386/i386-mmx-linux.c: Rebuild.
2626 * features/i386/i386-mmx.c: Rebuild.
2627 * features/i386/i386.c: Rebuild.
2628 * features/i386/x32-avx-linux.c: Rebuild.
2629 * features/i386/x32-avx.c: Rebuild.
2630 * features/i386/x32-linux.c: Rebuild.
2631 * features/i386/x32.c: Rebuild.
2632 * features/mips-dsp-linux.c: Rebuild.
2633 * features/mips-linux.c: Rebuild.
2634 * features/mips64-dsp-linux.c: Rebuild.
2635 * features/mips64-linux.c: Rebuild.
2636 * features/rs6000/powerpc-32.c: Rebuild.
2637 * features/rs6000/powerpc-32l.c: Rebuild.
2638 * features/rs6000/powerpc-403.c: Rebuild.
2639 * features/rs6000/powerpc-403gc.c: Rebuild.
2640 * features/rs6000/powerpc-405.c: Rebuild.
2641 * features/rs6000/powerpc-505.c: Rebuild.
2642 * features/rs6000/powerpc-601.c: Rebuild.
2643 * features/rs6000/powerpc-602.c: Rebuild.
2644 * features/rs6000/powerpc-603.c: Rebuild.
2645 * features/rs6000/powerpc-604.c: Rebuild.
2646 * features/rs6000/powerpc-64.c: Rebuild.
2647 * features/rs6000/powerpc-64l.c: Rebuild.
2648 * features/rs6000/powerpc-7400.c: Rebuild.
2649 * features/rs6000/powerpc-750.c: Rebuild.
2650 * features/rs6000/powerpc-860.c: Rebuild.
2651 * features/rs6000/powerpc-altivec32.c: Rebuild.
2652 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2653 * features/rs6000/powerpc-altivec64.c: Rebuild.
2654 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2655 * features/rs6000/powerpc-cell32l.c: Rebuild.
2656 * features/rs6000/powerpc-cell64l.c: Rebuild.
2657 * features/rs6000/powerpc-e500.c: Rebuild.
2658 * features/rs6000/powerpc-e500l.c: Rebuild.
2659 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2660 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2661 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2662 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2663 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2664 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2665 * features/rs6000/powerpc-vsx32.c: Rebuild.
2666 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2667 * features/rs6000/powerpc-vsx64.c: Rebuild.
2668 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2669 * features/rs6000/rs6000.c: Rebuild.
2670 * features/s390-linux32.c: Rebuild.
2671 * features/s390-linux32v1.c: Rebuild.
2672 * features/s390-linux32v2.c: Rebuild.
2673 * features/s390-linux64.c: Rebuild.
2674 * features/s390-linux64v1.c: Rebuild.
2675 * features/s390-linux64v2.c: Rebuild.
2676 * features/s390x-linux64.c: Rebuild.
2677 * features/s390x-linux64v1.c: Rebuild.
2678 * features/s390x-linux64v2.c: Rebuild.
2679 * features/tic6x-c62x-linux.c: Rebuild.
2680 * features/tic6x-c62x.c: Rebuild.
2681 * features/tic6x-c64x-linux.c: Rebuild.
2682 * features/tic6x-c64x.c: Rebuild.
2683 * features/tic6x-c64xp-linux.c: Rebuild.
2684 * features/tic6x-c64xp.c: Rebuild.
2685
2686 2012-07-27 Tom Tromey <tromey@redhat.com>
2687
2688 * c-exp.y (classify_name): Avoid assignment in condition.
2689
2690 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2691
2692 * amd64-windows-tdep.c: Include "frame.h".
2693 (amd64_windows_skip_trampoline_code): New function.
2694 (amd64_windows_init_abi): Add trampoline registration.
2695
2696 2012-07-27 Yao Qi <yao@codesourcery.com>
2697
2698 * tracepoint.c (cur_traceframe_number): Remove.
2699 (set_tfile_traceframe): Remove.
2700 (tfile_trace_find, tfile_fetch_registers): Update callers.
2701 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2702 (tfile_open, tfile_trace_find): Likewise.
2703
2704 2012-07-27 Yao Qi <yao@codesourcery.com>
2705
2706 * thread.c (switch_to_thread): Don't call registers_changed.
2707
2708 2012-07-26 Tom Tromey <tromey@redhat.com>
2709
2710 * Makefile.in (SFILES): Remove objc-exp.y.
2711 (YYFILES): Remove objc-exp.c.
2712 (YYOBJ): Remove objc-exp.o.
2713 (local-maintainer-clean): Don't mention objc-exp.c.
2714 * c-exp.y: Include objc-lang.h.
2715 (%union) <class>: New field.
2716 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2717 (exp): Clone subscript production for OBJC_LBRAC. Add various
2718 Objective C productions.
2719 (msglist, msgarglist, msgarg): New productions.
2720 (array_mod, func_mod, operator): Clone productions for
2721 OBJC_LBRAC.
2722 (parse_string_or_char): Handle '@' strings.
2723 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2724 (classify_name): Check la_name_of_this. Recognize ObjC class
2725 names.
2726 * objc-exp.y: Remove.
2727 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2728 * objc-lang.h (objc_parse, objc_error): Don't declare.
2729
2730 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2731
2732 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2733
2734 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2735
2736 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2737 and decrement.
2738
2739 2012-07-26 Tom Tromey <tromey@redhat.com>
2740
2741 * copying.c: Rebuild.
2742 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2743 'no_class'.
2744
2745 2012-07-26 Tom Tromey <tromey@redhat.com>
2746
2747 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2748 immediate_quit.
2749 (print_objfile_statistics): Likewise.
2750 (maintenance_print_symbols): Likewise.
2751 (maintenance_print_msymbols): Likewise.
2752 (maintenance_print_objfiles): Likewise.
2753 * psymtab.c (print_partial_symbols): Call QUIT.
2754 (maintenance_print_psymbols): Likewise. Don't modify
2755 immediate_quit.
2756 * copying.c (show_copying_command): Don't modify immediate_quit.
2757 (show_warranty_command): Likewise.
2758 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2759
2760 2012-07-26 Keith Seitz <keiths@redhat.com>
2761
2762 * linespec.c (linespec_lexer_lex_number): The input
2763 is also a valid number if the next character is a comma
2764 or colon.
2765
2766 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2767
2768 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2769 configure options.
2770
2771 2012-07-26 Tristan Gingold <gingold@adacore.com>
2772
2773 * machoread.c: Include gdb_bfd.h.
2774
2775 2012-07-26 Tristan Gingold <gingold@adacore.com>
2776
2777 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2778 offset.
2779
2780 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2781
2782 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2783 SIZE to size_t.
2784 (dwarf2_evaluate_loc_desc): Likewise.
2785 (dwarf2_loc_desc_needs_frame): Likewise.
2786 (locexpr_describe_location_1): Likewise.
2787 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2788 size_t.
2789 (struct dwarf2_loclist_baton): Likewise.
2790 * dwarf2read.c (struct dwarf_block): Likewise.
2791 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2792 (decode_locdesc): Expand SIZE and I to size_t.
2793
2794 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2797
2798 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2799
2800 * doublest.c (convert_doublest_to_floatformat): If the exponent
2801 is too small, treat the value as zero. If the exponent is too
2802 large, treat the value as infinity.
2803
2804 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2805
2806 * configure.ac: Add --enable-lmcheck configure option.
2807 * configure: Regenerate.
2808
2809 2012-07-25 Tom Tromey <tromey@redhat.com>
2810
2811 * NEWS: Mention maint info bfds.
2812 * gdb_bfd.c (all_bfds): New global.
2813 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2814 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2815 New functions.
2816
2817 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2818
2819 * configure.tgt: Add v850*-*-rtems*.
2820
2821 2012-07-25 Tom Tromey <tromey@redhat.com>
2822
2823 * macrotab.c (macro_bcache_str): Remove cast.
2824
2825 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2826
2827 * linespec.c (linespec_lexer_lex_number): Update comments,
2828 change the return and add check to make sure the input is
2829 the decimal numbers.
2830 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2831 false, call linespec_lexer_lex_string.
2832
2833 2012-07-24 Tom Tromey <tromey@redhat.com>
2834
2835 * symfile.c (symbol_file_add): Don't open BFD twice.
2836
2837 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2838
2839 * breakpoint.c (create_breakpoint): Store condition for pending
2840 breakpoints.
2841
2842 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2843
2844 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2845 (m68k_return_value): Handle complex types like structures.
2846 (m68k_svr4_return_value): Likewise.
2847
2848 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2849
2850 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2851 parameters to bfd_get_section_name.
2852
2853 2012-07-24 Yao Qi <yao@codesourcery.com>
2854
2855 * cli/cli-setshow.c: Handle case 'var_uinteger'
2856 and 'var_zuninteger' together. Handle case 'var_integer' and
2857 'var_zinteger' together.
2858
2859 2012-07-23 Keith Seitz <keiths@redhat.com>
2860
2861 * linespec.c (convert_linespec_to_sal): Don't add
2862 any symbols to the result vector if symbol_to_sal
2863 returns zero.
2864
2865 2012-07-23 Keith Seitz <keiths@redhat.com>
2866
2867 * linespec.c (decode_objc): Record the function name
2868 in the linespec.
2869
2870 2012-07-23 Tom Tromey <tromey@redhat.com>
2871
2872 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2873 counting.
2874 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2875 (map_vmap): Acquire a reference to the BFD.
2876
2877 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2878
2879 * p-valprint.c (pascal_object_print_value): Replace potentially
2880 unsafe alloca with xmalloc/xfree.
2881 * valops.c (search_struct_method): Likewise.
2882
2883 2012-07-23 Tom Tromey <tromey@redhat.com>
2884
2885 * solib-svr4.c (enable_break): Update.
2886 * bfd-target.h (target_bfd_reopen): Update documentation.
2887
2888 2012-07-23 Tom Tromey <tromey@redhat.com>
2889
2890 * symfile.c (separate_debug_file_exists): Update.
2891 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2892 (reread_symbols): Update.
2893 * elfread.c (build_id_verify): Update.
2894 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2895 bfd_open_maybe_remote.
2896
2897 2012-07-23 Tom Tromey <tromey@redhat.com>
2898
2899 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2900
2901 2012-07-23 Tom Tromey <tromey@redhat.com>
2902
2903 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2904 and 'abfd'.
2905 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2906 and 'abfd'.
2907 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2908 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2909 'abfd'.
2910 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2911 * objfiles.c (allocate_objfile): Acquire a new reference.
2912 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2913 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2914 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2915 a cleanup for 'nbfd'.
2916 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2917 for 'nbfd'.
2918 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2919 make a cleanup for 'abfd'.
2920 (symbol_file_add): Make a BFD cleanup.
2921
2922 2012-07-23 Tom Tromey <tromey@redhat.com>
2923
2924 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2925 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2926 * corelow.c (core_open): Use gdb_bfd_fopen.
2927 * dsrec.c (load_srec): Use gdb_bfd_openr.
2928 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2929 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2930 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2931 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2932 (gdb_bfd_fdopenr): New functions.
2933 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2934 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2935 (gdb_bfd_fdopenr): Declare.
2936 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2937 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2938 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2939 gdb_bfd_openr_next_archived_file.
2940 (macho_check_dsym): Use gdb_bfd_openr.
2941 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2942 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2943 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2944 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2945 gdb_bfd_openr.
2946 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2947 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2948 gdb_bfd_openr_next_archived_file.
2949 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2950 Use gdb_bfd_openr.
2951 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2952 gdb_bfd_openr.
2953 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2954 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2955 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2956 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2957 (symfile_bfd_open): Use gdb_bfd_fopen.
2958 (generic_load): Use gdb_bfd_openr.
2959 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2960
2961 2012-07-23 Tom Tromey <tromey@redhat.com>
2962
2963 * bfd-target.c (target_bfd_reopen): Update.
2964 * cli/cli-dump.c (bfd_openr_with_cleanup)
2965 (bfd_openw_with_cleanup): Update.
2966 * corelow.c (core_open): Update.
2967 * dsrec.c (load_srec): Update.
2968 * exec.c (exec_file_attach): Update.
2969 * gcore.c (create_gcore_bfd): Update.
2970 * gdb_bfd.c (gdb_bfd_ref): Return void.
2971 (gdb_bfd_open): Update.
2972 * gdb_bfd.h (gdb_bfd_ref): Return void.
2973 Update comments.
2974 * jit.c (jit_bfd_try_read_symtab): Update.
2975 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2976 * machoread.c (macho_symfile_read_all_oso): Update.
2977 (macho_check_dsym): Update.
2978 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2979 * remote-m32r-sdi.c (m32r_load): Update.
2980 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2981 * rs6000-nat.c (add_vmap): Update.
2982 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2983 Update.
2984 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2985 * solib-spu.c (spu_bfd_open): Update.
2986 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2987 * spu-linux-nat.c (spu_bfd_open): Update.
2988 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2989 (generic_load): Update.
2990 * windows-nat.c (windows_make_so): Update.
2991
2992 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2993
2994 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2995
2996 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2997
2998 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2999 SIGTRAMP_FRAME unwinding.
3000
3001 2012-07-20 Doug Evans <dje@google.com>
3002
3003 * NEWS: Document new options "set/show use-deprecated-index-sections",
3004 and delete reference to --use-deprecated-index-sections.
3005 * symfile.h (use_deprecated_index_sections): Delete.
3006 * dwarf2read.c (use_deprecated_index_sections): Make static.
3007 (read_index_from_section): Update wording of how to load
3008 deprecated index sections.
3009 (_initialize_dwarf2_read): New options
3010 "set/show use-deprecated-index-sections".
3011 * main.c (captured_main): Delete --use-deprecated-index-sections.
3012
3013 2012-07-20 Pedro Alves <palves@redhat.com>
3014
3015 PR threads/11692
3016 PR gdb/12203
3017
3018 * infrun.c (handle_inferior_event) <new thread>: Don't special
3019 case minus_one_ptid.
3020 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3021 * linux-thread-db.c (thread_get_info_callback): Don't return early
3022 if the thread is zombie.
3023 (thread_from_lwp): Change return type to void. Rewrite stale
3024 comment.
3025 (attach_thread): Don't return early if the thread is zombie,
3026 instead set its "dying" flag.
3027 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3028 (find_new_threads_callback): Don't return early if the thread is
3029 zombie.
3030
3031 2012-07-20 Pedro Alves <palves@redhat.com>
3032
3033 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3034 * target.c (target_wait): Likewise.
3035 (str_comma_list_concat_elem, do_option, target_options_to_string):
3036 New functions.
3037 * target.h (target_options_to_string): Declare.
3038
3039 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 Tom Tromey <tromey@redhat.com>
3041
3042 * dwarf2read.c (dwarf_decode_macros)
3043 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3044 DW_MACRO_GNU_transparent_include_alt>: New cases.
3045 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3046 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3047
3048 2012-07-20 Tom Tromey <tromey@redhat.com>
3049
3050 * dwarf2read.c (try_open_dwo_file): Don't call
3051 gdb_bfd_stash_filename.
3052
3053 2012-07-20 Pedro Alves <palves@redhat.com>
3054
3055 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3056 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3057 (i386_process_record): Tweak description comments.
3058
3059 2012-07-20 Pedro Alves <palves@redhat.com>
3060
3061 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3062 (i386_process_record): Use record_read_memory.
3063 * record.c (record_read_memory): New function.
3064 (record_arch_list_add_mem, record_exec_insn): Use
3065 record_read_memory.
3066 * record.h (record_read_memory): Declare.
3067
3068 2012-07-20 Yao Qi <yao@codesourcery.com>
3069
3070 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3071 NULL for xfree.
3072
3073 2012-07-19 Pedro Alves <palves@redhat.com>
3074
3075 * record.c (record_resume): Ask the target beneath to report all
3076 signals.
3077
3078 2012-07-19 Doug Evans <dje@google.com>
3079
3080 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3081 there's no section at address zero.
3082 (dwarf2_record_block_ranges): Ditto.
3083
3084 2012-07-19 Yao Qi <yao@codesourcery.com>
3085
3086 * command.h, remote.c: Fix a typo in comment.
3087
3088 2012-07-19 Tom Tromey <tromey@redhat.com>
3089
3090 PR exp/13206:
3091 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3092 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3093 OP_DECLTYPE>: New cases.
3094 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3095 (type_exp): Add new productions.
3096 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3097 and decltype.
3098 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3099 New case.
3100 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3101 OP_DECLTYPE>: New case.
3102 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3103 New case.
3104 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3105 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3106
3107 2012-07-19 Tom Tromey <tromey@redhat.com>
3108
3109 * c-exp.y (enum token_flags): New.
3110 (struct token) <cxx_only>: Remove.
3111 <flags>: New field.
3112 (tokentab3, tokentab2, ident_tokens): Update.
3113 (lex_one_token): Update. Handle FLAG_SHADOW.
3114
3115 2012-07-19 Tom Tromey <tromey@redhat.com>
3116
3117 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3118 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3119 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3120 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3121 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3122 type_exp production where appropriate.
3123 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3124 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3125 <UNOP_MEMVAL_TYPE>: New case.
3126 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3127 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3128 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3129 <UNOP_MEMVAL_TYPE>: New case.
3130 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3131 UNOP_REINTERPRET_CAST>: Update.
3132 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3133 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3134 UNOP_REINTERPRET_CAST>: Update.
3135 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3136 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3137 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3138 constants.
3139
3140 2012-07-19 Yao Qi <yao@codesourcery.com>
3141 Jan Kratochvil <jan.kratochvil@redhat.com>
3142
3143 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3144 and case 'var_optional_filename' together.
3145 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3146 instead of add_setshow_optional_filename_cmd for setshow command
3147 'args'. Set completer for 'set args'.
3148
3149 2012-07-18 Doug Evans <dje@google.com>
3150
3151 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3152 * common/gdb_vecs.c: New file, contents from utils.c.
3153 * common/host-defs.h: New file, contents from defs.h.
3154 * utils.h: New file, contents from defs.h.
3155 * defs.h: Move all declarations of objects defined in utils.c
3156 to utils.h (except QUIT() and related).
3157 #include "utils.h", "host-defs.h".
3158 * probe.h (probe_p): Move here from gdb_vecs.h.
3159 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3160 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3161 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3162 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3163 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3164 (COMMON_OBS): Add gdb_vecs.o.
3165 (gdb_vecs.o): New rule.
3166
3167 2012-07-18 Keith Seitz <keiths@redhat.com>
3168
3169 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3170 parameter. If non-zero, use SYMNAME as the canonical name
3171 for the SaL.
3172 Update all callers.
3173 (convert_linespec_to_sals): Use add_sal_to_sals for
3174 expressions, too.
3175 (decode_line_full): No need to "fill in missing canonical names"
3176 anymore. Simply make cleanups for the allocated names.
3177
3178 2012-07-18 Keith Seitz <keiths@redhat.com>
3179
3180 * linespec.c (struct linespec): Constify expression,
3181 source_filename, function_name, and label_name.
3182 (symbol_not_found_error): Make all parameters const.
3183 (linespec_parser_delete): No need to check for NULL
3184 when using xfree. Cast const char * to char * for xfree.
3185
3186 2012-07-18 Keith Seitz <keiths@redhat.com>
3187
3188 * breakpoint.c (invalid_thread_id_error): New function.
3189 (find_condition_and_thread): Use invalid_thread_id_error.
3190 (watch_command_1): Likewise.
3191
3192 2012-07-18 Tom Tromey <tromey@redhat.com>
3193
3194 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3195 * contrib/cc-with-tweaks.sh: New file.
3196
3197 2012-07-18 Tom Tromey <tromey@redhat.com>
3198
3199 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3200 (locate_dwz_sections): Recognize .gdb_index.
3201 (create_cus_from_index_list): New function.
3202 (create_cus_from_index): Use it. Handle .dwz data.
3203 (read_index_from_section): New function, extracted from
3204 dwarf2_read_index.
3205 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3206 if needed.
3207
3208 2012-07-18 Tom Tromey <tromey@redhat.com>
3209
3210 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3211 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3212 <is_dwz>: New field.
3213 (struct dwz_file): New.
3214 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3215 (locate_dwz_sections, dwarf2_get_dwz_file)
3216 (get_abbrev_section_for_cu): New functions.
3217 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3218 (read_and_check_type_unit_head): Add abbrev_section argument.
3219 (create_debug_types_hash_table): Update.
3220 (init_cutu_and_read_dies): Use proper abbrev section.
3221 (init_cutu_and_read_dies_no_follow): Likewise.
3222 (set_partial_user): Do nothing if PST==NULL.
3223 (read_comp_units_from_section): New function.
3224 (create_all_comp_units): Use it.
3225 (scan_partial_symbols, partial_die_parent_scope): Update.
3226 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3227 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3228 (find_partial_die): Add offset_in_dwz argument. Update.
3229 (guess_partial_die_structure_name, fixup_partial_die): Update.
3230 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3231 DW_FORM_GNU_strp_alt.
3232 (read_indirect_string_from_dwz): New function.
3233 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3234 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3235 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3236 (follow_die_offset): Add offset_in_dwz argument.
3237 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3238 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3239 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3240 Handle new macro forms.
3241 (dwarf_decode_macros): Update.
3242 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3243 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3244 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3245 (create_debug_types_hash_table): Use correct abbrev section.
3246 (get_debug_line_section): New function.
3247 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3248 (process_full_comp_unit): Pass 'required' argument to
3249 end_symtab_get_static_block.
3250 * buildsym.h (end_symtab_get_static_block): Update.
3251 * buildsym.c (end_symtab_get_static_block): Add 'required'
3252 argument.
3253 (end_symtab, end_expandable_symtab): Update.
3254
3255 2012-07-18 Tom Tromey <tromey@redhat.com>
3256
3257 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3258 (pagesize): Remove.
3259 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3260 (zlib_decompress_section): Remove.
3261 (dwarf2_read_section): Use gdb_bfd_map_section.
3262 (munmap_section_buffer): Remove.
3263 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3264 munmap_section_buffer.
3265 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3266 (struct gdb_bfd_section_data): New.
3267 (free_one_bfd_section): New function.
3268 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3269 (get_section_descriptor, zlib_decompress_section)
3270 (gdb_bfd_map_section): New functions.
3271 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3272
3273 2012-07-18 Tom Tromey <tromey@redhat.com>
3274
3275 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3276
3277 2012-07-18 Tom Tromey <tromey@redhat.com>
3278
3279 * gdb_bfd.c (struct gdb_bfd_data): New.
3280 (gdb_bfd_cache): New global.
3281 (struct gdb_bfd_cache_search): New.
3282 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3283 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3284 * gdb_bfd.h (gdb_bfd_open): Declare.
3285
3286 2012-07-18 Tom Tromey <tromey@redhat.com>
3287
3288 * utils.c (make_cleanup_bfd_unref): Rename from
3289 make_cleanup_bfd_close.
3290 * defs.h (make_cleanup_bfd_unref): Rename from
3291 make_cleanup_bfd_close.
3292 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3293 (bfd_openw_with_cleanup): Update.
3294 * corelow.c (core_open): Update.
3295 * dsrec.c (load_srec): Update.
3296 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3297 * remote-m32r-sdi.c (m32r_load): Update.
3298 * remote-mips.c (mips_load_srec): Update.
3299 (pmon_load_fast): Update.
3300 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3301 Update.
3302 (darwin_bfd_open): Update.
3303 * solib.c (solib_bfd_fopen): Update.
3304 * symfile-mem.c (symbol_file_add_from_memory): Update.
3305 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3306 (symfile_bfd_open): Update.
3307 (generic_load): Update.
3308
3309 2012-07-18 Tom Tromey <tromey@redhat.com>
3310
3311 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3312 (pmon_load_fast): Likewise.
3313 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3314 (m32r_upload_command): Likewise.
3315 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3316 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3317 Use make_cleanup_bfd_close.
3318
3319 2012-07-18 Tom Tromey <tromey@redhat.com>
3320
3321 * symfile.c (symfile_bfd_open): Don't copy name. Call
3322 gdb_bfd_stash_filename.
3323 (load_command): Open the new BFD before freeing the old.
3324 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3325 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3326 Call gdb_bfd_stash_filename.
3327 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3328 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3329 gdb_bfd_stash_filename.
3330 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3331 Free found_pathname.
3332 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3333 gdb_bfd_stash_filename.
3334 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3335 * machoread.c (macho_add_oso_symfile): Call
3336 gdb_bfd_stash_filename.
3337 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3338 gdb_bfd_stash_filename.
3339 (macho_check_dsym): Don't copy filename. Call
3340 gdb_bfd_stash_filename.
3341 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3342 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3343 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3344 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3345 * exec.c (exec_close): Don't free the BFD's filename.
3346 (exec_file_attach): Don't copy the filename. Call
3347 gdb_bfd_stash_filename.
3348 * corelow.c (core_close): Don't free the BFD's filename.
3349 (core_open): Call gdb_bfd_stash_filename.
3350 * corefile.c (reopen_exec_file): Remove #if 0 code.
3351 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3352 pathname.
3353 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3354
3355 2012-07-18 Tom Tromey <tromey@redhat.com>
3356
3357 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3358 gdb_bfd_unref.
3359 (free_dwo_file): Use gdb_bfd_unref.
3360 * cli/cli-dump.c: Include gdb_bfd.h.
3361 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3362 (bfd_openr_with_cleanup): Likewise.
3363 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3364 gdb_bfd_unref.
3365 * utils.c: Include gdb_bfd.h.
3366 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3367 * symfile.c: Include gdb_bfd.h.
3368 (separate_debug_file_exists): Use gdb_bfd_unref.
3369 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3370 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3371 (generic_load): Use gdb_bfd_ref.
3372 (reread_symbols): Use gdb_bfd_unref.
3373 * symfile-mem.c: Include gdb_bfd.h.
3374 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3375 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3376 * solib.c: Include gdb_bfd.h.
3377 (solib_bfd_fopen): Use gdb_bfd_ref.
3378 (solib_bfd_open): Use gdb_bfd_unref.
3379 (free_so_symbols): Use gdb_bfd_unref.
3380 (reload_shared_libraries_1): Use gdb_bfd_unref.
3381 * solib-spu.c: Include gdb_bfd.h.
3382 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3383 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3384 gdb_bfd_unref.
3385 * solib-frv.c: Include gdb_bfd.h.
3386 (enable_break2): Use gdb_bfd_unref.
3387 * solib-dsbt.c: Include gdb_bfd.h.
3388 (enable_break2): Use gdb_bfd_unref.
3389 * solib-darwin.c: Include gdb_bfd.h.
3390 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3391 gdb_bfd_unref.
3392 (darwin_bfd_open): Use gdb_bfd_unref.
3393 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3394 * remote-mips.c: Include gdb_bfd.h.
3395 (mips_load_srec): Use gdb_bfd_ref.
3396 (pmon_load_fast): Use gdb_bfd_ref.
3397 * remote-m32r-sdi.c: Include gdb_bfd.h.
3398 (m32r_load): Use gdb_bfd_ref.
3399 * record.c: Include gdb_bfd.h.
3400 (record_save_cleanups): Use gdb_bfd_unref.
3401 (cmd_record_save): Use gdb_bfd_unref.
3402 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3403 gdb_bfd_unref.
3404 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3405 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3406 * objfiles.c: Include gdb_bfd.h.
3407 (free_objfile): Use gdb_bfd_unref.
3408 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3409 gdb_bfd.c.
3410 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3411 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3412 (macho_check_dsym): Likewise.
3413 * m32r-rom.c: Include gdb_bfd.h.
3414 (m32r_load): Use gdb_bfd_ref.
3415 (m32r_upload_command): Use gdb_bfd_ref.
3416 * jit.c: Include gdb_bfd.h.
3417 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3418 * gdb_bfd.h: New file.
3419 * gdb_bfd.c: New file.
3420 * gcore.c: Include gdb_bfd.h.
3421 (create_gcore_bfd): Use gdb_bfd_ref.
3422 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3423 (gcore_command): Use gdb_bfd_unref.
3424 * exec.c: Include gdb_bfd.h.
3425 (exec_close): Use gdb_bfd_unref.
3426 (exec_close_1): Use gdb_bfd_unref.
3427 (exec_file_attach): Use gdb_bfd_ref.
3428 * elfread.c: Include gdb_bfd.h.
3429 (build_id_verify): Use gdb_bfd_unref.
3430 * dsrec.c: Include gdb_bfd.h.
3431 (load_srec): Use gdb_bfd_ref.
3432 * corelow.c: Include gdb_bfd.h.
3433 (core_close): Use gdb_bfd_unref.
3434 (core_open): Use gdb_bfd_ref.
3435 * bfd-target.c: Include gdb_bfd.h.
3436 (target_bfd_xclose): Use gdb_bfd_unref.
3437 (target_bfd_reopen): Use gdb_bfd_ref.
3438 * Makefile.in (SFILES): Add gdb_bfd.c.
3439 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3440 (COMMON_OBS): Add gdb_bfd.o.
3441
3442 2012-07-18 Keith Seitz <keiths@redhat.com>
3443
3444 * breakpoint.c (find_condition_and_thread): Initialize
3445 TASK and REST.
3446 (create_breakpiont): find_condition_and_thread will now
3447 initialize COND_STRING, THREAD, and REST (and TASK).
3448 (addr_string_to_sals): Likewise.
3449
3450 2012-07-18 Pedro Alves <palves@redhat.com>
3451
3452 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3453 Pull the single step breakpoints out of the target.
3454
3455 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3456
3457 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3458 * stap-probe.c (compile_probe_arg): Likewise.
3459
3460 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3461
3462 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3463 (elf_compile_to_ax): Likewise.
3464 * infrun.c (insert_exception_resume_from_probe): Likewise.
3465 (check_exception_resume): Remove `objfile' variable.
3466 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3467 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3468 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3469 (compare_entries): Rename to...
3470 (compare_probes): ...this. Adjust function to work with
3471 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3472 respectively.
3473 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3474 `VEC (probe_p) *'.
3475 (print_ui_out_info): Adjust argument to be `struct probe *'.
3476 (info_probes_for_ops): Adjust internal computations to use
3477 `VEC (probe_p) *'.
3478 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3479 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3480 gen_info_probes_table_values>: Remove `objfile' argument.
3481 (struct probe) <objfile>: New field.
3482 (find_probe_by_pc): Remove `objfile' argument.
3483 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3484 (stap_get_probe_argument_count): Likewise.
3485 (stap_get_arg): Likewise.
3486 (stap_evaluate_probe_argument): Likewise.
3487 (stap_compile_to_ax): Likewise.
3488 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3489 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3490 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3491 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3492 sym_compile_to_ax>: Likewise.
3493
3494 2012-07-18 Terry Guo <terry.guo@arm.com>
3495
3496 PR 14329
3497 * defs.h (GDB_MI_MSG_WIDTH): New.
3498 * ser_base (ser_base_read_error_fd): New function.
3499 (do_ser_base_readchar): Poll error file descriptor as well as
3500 standard output.
3501 (generic_readchar): Refactor error handling.
3502
3503 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3504
3505 * NEWS: Create a new section for the next release branch.
3506 Rename the section of the current branch, now that it has
3507 been cut.
3508
3509 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3510
3511 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3512 * version.in: Bump version to 7.5.50.20120718-cvs.
3513
3514 2012-07-17 Keith Seitz <keiths@redhat.com>
3515
3516 * linespec.c (linespec_parse_line_offset): Make parameter
3517 const.
3518
3519 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3520
3521 PR 11914
3522 * f-valprint.c (info_common_command): New variable frame_id.
3523 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3524 * printcmd.c (print_variable_and_value): Extend function comment.
3525 Add comment for invalidated FRAME.
3526 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3527 FI form FRAME_ID after each print_frame_local_vars.
3528 (struct print_variable_and_value_data): Change frame to frame_id.
3529 (do_print_variable_and_value): New variable frame, initialize it from
3530 p->frame_id. Add comment for invalidated FRAME.
3531 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3532 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3533 for invalidated FRAME.
3534
3535 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3536 Pedro Alves <palves@redhat.com>
3537
3538 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3539 loop.
3540
3541 2012-07-16 Tom Tromey <tromey@redhat.com>
3542
3543 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3544
3545 2012-07-15 Doug Evans <dje@google.com>
3546
3547 * dwarf2read.c (stmt_list_hash): New struct.
3548 (type_unit_group): Embed "per_cu" member, remove pointer.
3549 New union member "t", move member "tus" into it, all uses updated.
3550 New member "hash", replaces member "line_offset, all uses updated.
3551 (quick_file_names): Replace member "offset" with "hash", all uses
3552 updated.
3553 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3554 (hash_file_name_entry, eq_file_name_entry): Call them.
3555 (hash_type_unit_group, eq_type_unit_group): Ditto.
3556 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3557 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3558 (dw2_get_file_names): Update.
3559 (create_type_unit_group): Replace "per_cu" arg with "cu".
3560 All callers updated. Fix "quick" (.gdb_index) handling.
3561 (get_type_unit_group): Replace "per_cu" arg with "cu".
3562 All callers updated.
3563 (build_type_unit_groups): Don't reset tu_stats.
3564
3565 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3566 "tab_cur_size". Change member "tab" to be a htab_t.
3567 (create_filename_seen_cache): Update.
3568 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3569 (filename_seen): Update.
3570
3571 2012-07-13 Doug Evans <dje@google.com>
3572
3573 * symtab.c (filename_seen): Update comment.
3574
3575 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 Doug Evans <dje@google.com>
3577
3578 * buildsym.c (end_symtab_1): Split it to ...
3579 (end_symtab_get_static_block): ... this ...
3580 (end_symtab_from_static_block): ... and this function.
3581 (end_symtab, end_expandable_symtab): Call them.
3582 * buildsym.h (end_symtab_get_static_block)
3583 (end_symtab_from_static_block): New declarations.
3584 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3585 Set its valid CU ranges.
3586
3587 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3588
3589 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3590 DW_OP_GNU_parameter_ref.
3591
3592 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3593
3594 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3595 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3596
3597 2012-07-13 Doug Evans <dje@google.com>
3598
3599 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3600 (filename_seen_cache): New struct.
3601 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3602 (create_filename_seen_cache): New function.
3603 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3604 (filename_seen): Delete arg "first". New arg "cache". All callers
3605 updated.
3606 (output_source_filename_data): New struct.
3607 (output_source_filename): Delete arg "first". New arg "data".
3608 All callers updated.
3609 (sources_info): Delete local "first". New locals "data", "cleanups".
3610 Rewrite to use filename_seen_cache.
3611 (add_partial_filename_data): Delete member "first". New member
3612 "filename_seen_cache". All uses updated.
3613 (make_source_files_completion_list): Rewrite to use
3614 filename_seen_cache.
3615
3616 2012-07-12 Doug Evans <dje@google.com>
3617
3618 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3619
3620 2012-07-10 Doug Evans <dje@google.com>
3621
3622 PR gdb/13498
3623 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3624 all_type_unit_groups, type_unit_groups, tu_stats.
3625 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3626 All uses updated. Add type_unit_group to union "s".
3627 (type_unit_group): New struct.
3628 (IS_TYPE_UNIT_GROUP): New macro.
3629 (abbrev_table): Delete unused member "section".
3630 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3631 (dw2_get_cu): Assert not used with type_unit_group.
3632 (dw2_get_primary_cu): New function.
3633 (dw2_build_type_unit_groups_reader): New function.
3634 (dw2_build_type_unit_groups): New function.
3635 (dw2_get_file_names): Assert not called on type units.
3636 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3637 Redo loop to iterate over type unit groups instead of type units.
3638 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3639 (read_abbrev_offset): New function.
3640 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3641 updated.
3642 (create_partial_symtab): New function.
3643 (process_psymtab_comp_unit_reader): Assert not used with type units.
3644 Call create_partial_symtab.
3645 (process_psymtab_type_unit): Delete.
3646 (hash_type_unit_group, eq_type_unit_group): New functions.
3647 (allocate_type_unit_groups_table): New function.
3648 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3649 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3650 (create_type_unit_group, get_type_unit_group): New functions.
3651 (tu_abbrev_offset): New struct.
3652 (sort_tu_by_abbrev_offset): New function.
3653 (add_type_unit_group_to_table): New function.
3654 (build_type_unit_groups): New function.
3655 (build_type_psymtabs_reader): New function.
3656 (build_type_psymtab_dependencies): New function.
3657 (build_type_psymtabs): Rewrite.
3658 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3659 is seen in a type unit.
3660 (process_queue): Move symtab expansion debugging printfs here.
3661 Call process_full_type_unit for type units.
3662 (compute_symtab_includes): Assert not called for type units.
3663 (process_cu_includes): Don't call compute_symtab_includes for
3664 type units.
3665 (process_full_type_unit): New function.
3666 (process_imported_unit_die): Flag an error if called for type units.
3667 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3668 updated. Assert not called for type units.
3669 (read_file_scope): Call dwarf2_start_symtab.
3670 (setup_type_unit_groups): New function.
3671 (read_type_unit_scope): Rewrite.
3672 (abbrev_table_read_table): Initialize abbrev_table->offset.
3673 (abbrev_table_free_cleanup): New function.
3674 (dwarf2_start_symtab): New function.
3675 (load_full_type_unit): Assert not called for type unit groups.
3676 * buildsym.c (finish_block_internal): New arg "expandable".
3677 All callers updated.
3678 (start_symtab): Move most contents to ...
3679 (restart_symtab): ... here. New function.
3680 (reset_symtab_globals): New function.
3681 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3682 Call reset_symtab_globals.
3683 (end_symtab, end_expandable_symtab): New functions.
3684 (set_missing_symtab, augment_type_symtab): New functions.
3685 * buildsym.h (end_expandable_symtab): Declare.
3686 (augment_type_symtab, restart_symtab): Declare.
3687 * psympriv.h (struct partial_symtab): New member "anonymous".
3688 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3689 anonymous psymtabs.
3690 (read_psymtabs_with_filename): Ditto.
3691 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3692 (expand_symtabs_matching_via_partial): Ditto.
3693 (dump_psymtab): Update.
3694 * dictionary.c (dict_add_pending): New function.
3695 * dictionary.h (dict_add_pending): Declare.
3696
3697 2012-07-09 Doug Evans <dje@google.com>
3698
3699 * buildsym.c (start_subfile): Remove unnecessary check for
3700 name == NULL.
3701
3702 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3703
3704 * dwarf2read.c (load_full_type_unit): Simplify.
3705
3706 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3707 to struct signatured_type **. All uses updated.
3708
3709 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3710 All callers updated.
3711
3712 2012-07-09 Tom Tromey <tromey@redhat.com>
3713
3714 * c-exp.y (check_parameter_typelist): New function.
3715 (parameter_typelist): Call it.
3716 * eval.c (make_params): Handle '(void)' case.
3717 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3718 '(void)' case.
3719
3720 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3721
3722 * common/linux-ptrace.c: Include gdb_assert.h.
3723 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3724 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3725 stdint.h.
3726 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3727 functions.
3728 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3729 * linux-nat.c (linux_child_post_attach)
3730 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3731
3732 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3733
3734 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3735 nptl <2.7 bug workaround for core files.
3736
3737 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3738
3739 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3740 clearing.
3741 (save_siginfo): Remove.
3742 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3743 call.
3744 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3745 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3746 * linux-nat.h (struct lwp_info): Remove field siginfo.
3747
3748 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3749
3750 Code cleanup for the next patch.
3751 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3752 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3753 call for it.
3754 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3755 (ia64_linux_stopped_data_address):
3756 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3757 the return value.
3758 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3759 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3760 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3761 call for it.
3762
3763 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3764
3765 PR 14321
3766 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3767 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3768
3769 2012-07-06 Tom Tromey <tromey@redhat.com>
3770
3771 * c-exp.y (DOTDOTDOT): New token.
3772 (func_mod, exp): Use parameter_typelist.
3773 (parameter_typelist): New production.
3774 (tokentab3): Add "..." token.
3775 * eval.c (make_params): Handle varargs.
3776 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3777 varargs.
3778
3779 2012-07-06 Tom Tromey <tromey@redhat.com>
3780
3781 PR exp/9608:
3782 * c-exp.y (%union) <tvec>: Change type.
3783 (func_mod): Now uses <tvec> type.
3784 (exp): Update for tvec change.
3785 (direct_abs_decl): Push the typelist.
3786 (func_mod): Return a typelist.
3787 (nonempty_typelist): Update for tvec change.
3788 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3789 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3790 * parse.c (pop_type_list): New function.
3791 (push_typelist): New function.
3792 (follow_types): Handle tp_function_with_arguments.
3793 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3794 (enum type_pieces) <tp_function_with_arguments>: New constant.
3795 (union type_stack_elt) <typelist_val>: New field.
3796 (push_typelist): Declare.
3797
3798 2012-07-06 Tom Tromey <tromey@redhat.com>
3799
3800 * c-exp.y (%union) <type_stack>: New field.
3801 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3802 (ptr_operator_ts): New production.
3803 (ptype): Update.
3804 * parse.c (type_stack_reserve): New function.
3805 (check_type_stack_depth): Use it.
3806 (pop_type_stack, append_type_stack, push_type_stack)
3807 (get_type_stack, type_stack_cleanup): New functions.
3808 (follow_types): Handle tp_type_stack.
3809 (_initialize_parse): Simplify initialization.
3810 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3811 constant.
3812 (union type_stack_elt) <stack_val>: New field.
3813 (get_type_stack, append_type_stack, push_type_stack)
3814 (type_stack_cleanup): Declare.
3815
3816 2012-07-06 Tom Tromey <tromey@redhat.com>
3817
3818 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3819 Remove.
3820 (struct type_stack): New.
3821 * parse.c (type_stack, type_stack_size, type_stack_depth):
3822 Remove.
3823 (type_stack): New global.
3824 (parse_exp_in_context, check_type_stack_depth)
3825 (insert_into_type_stack, insert_type, push_type, push_type_int)
3826 (insert_type_address_space, pop_type, pop_type_int)
3827 (_initialize_parse): Update.
3828
3829 2012-07-06 Tom Tromey <tromey@redhat.com>
3830
3831 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3832 Remove %type.
3833
3834 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3835
3836 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3837
3838 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3839 Jan Kratochvil <jan.kratochvil@redhat.com>
3840
3841 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3842 alloca with xmalloc/xfree.
3843
3844 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3845
3846 * MAINTAINERS (Write After Approval): Add myself to the list.
3847
3848 2012-07-05 Doug Evans <dje@google.com>
3849
3850 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3851
3852 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3853
3854 * ax-gdb.c (cli/cli-utils.h): New include.
3855 (linespec.h): Ditto.
3856 (agent_eval_command_one): New function.
3857 (agent_command_1): Ditto.
3858 (agent_command): Call function agent_command_1.
3859 (agent_eval_command): Ditto.
3860 (_initialize_ax_gdb): Change help for "maint agent"
3861 and "maint agent-eval".
3862
3863 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3864
3865 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3866 * cli/cli-utils.c (check_for_argument): New function.
3867 * cli/cli-utils.h (check_for_argument): Ditto.
3868
3869 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3870
3871 * NEWS: Mention x32 ABI support.
3872
3873 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3874
3875 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3876 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3877
3878 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3879 and pc_regnum_from_eax to -1. Update SP regnum from
3880 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3881 needed.
3882
3883 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3884 pc_regnum_from_eax.
3885
3886 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3887
3888 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3889 * dwarf2expr.h: Include gdbtypes.h.
3890 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3891 these forward declarations.
3892 (cu_offset, sect_offset): Move these ...
3893 * gdbtypes.h: Remove include dwarf2expr.h.
3894 (cu_offset, sect_offset): ... here.
3895
3896 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3897
3898 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3899 (amd64_linux_sigtramp_code): This.
3900 (amd64_x32_linux_sigtramp_code): New.
3901 (LINUX_SIGTRAMP_LEN): Updated.
3902 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3903
3904 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3905
3906 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3907
3908 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 * config.in: Regenerate.
3911 * configure: Regenerate.
3912 * configure.ac: Remove check for gnu/libc-version.h.
3913 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3914 gnu/libc-version.h.
3915 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3916 variables libc_version, libc_major and libc_minor. Replace sscanf by
3917 inferior_has_bug. Extend the comment.
3918
3919 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 * linux-thread-db.c (inferior_has_bug): New function.
3922 (thread_db_find_new_threads_silently): Return boolean as checked by
3923 inferior_has_bug, describe it in the comments.
3924 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3925 earlier. Abort the initialization if it returned non-zero.
3926 (thread_db_new_objfile): Exclude debug files.
3927 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3928 if UNTIL_NO_NEW,
3929
3930 2012-07-02 Doug Evans <dje@google.com>
3931
3932 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3933 related to queue management.
3934
3935 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3936 instead of "debug dwarf2-die" in debugging printfs.
3937 (create_debug_info_hash_table_reader): Ditto.
3938 (create_debug_info_hash_table): Ditto.
3939 (init_dwo_file): Ditto.
3940 (init_cutu_and_read_dies): Add debugging printf.
3941 (init_cutu_and_read_dies_no_follow): Ditto.
3942 (process_psymtab_comp_unit_reader): Ditto.
3943
3944 2012-07-02 Stan Shebs <stan@codesourcery.com>
3945
3946 Add target-side support for dynamic printf.
3947 * NEWS: Mention the additional style.
3948 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3949 (struct bp_location): New field cmd_bytecode.
3950 * breakpoint.c: Include format.h.
3951 (disconnected_dprintf): New global.
3952 (parse_cmd_to_aexpr): New function.
3953 (build_target_command_list): New function.
3954 (insert_bp_location): Call it.
3955 (remove_breakpoints_pid): Skip dprintf breakpoints.
3956 (print_one_breakpoint_location): Ditto.
3957 (dprintf_style_agent): New global.
3958 (dprintf_style_enums): Add dprintf_style_agent.
3959 (update_dprintf_command_list): Add agent case.
3960 (agent_printf_command): New function.
3961 (_initialize_breakpoint): Add new commands.
3962 * common/ax.def (printf): New bytecode.
3963 * ax.h (ax_string): Declare.
3964 * ax-gdb.h (gen_printf): Declare.
3965 * ax-gdb.c: Include cli-utils.h, format.h.
3966 (gen_printf): New function.
3967 (maint_agent_print_command): New function.
3968 (_initialize_ax_gdb): Add maint agent-printf command.
3969 * ax-general.c (ax_string): New function.
3970 (ax_print): Add printf disassembly.
3971 * Makefile.in (SFILES): Add format.c
3972 (COMMON_OBS): Add format.o.
3973 * common/format.h: New file.
3974 * common/format.c: New file.
3975 * printcmd.c: Include format.h.
3976 (ui_printf): Call parse_format_string.
3977 * remote.c (remote_state): New field breakpoint_commands.
3978 (PACKET_BreakpointCommands): New enum.
3979 (remote_breakpoint_commands_feature): New function.
3980 (remote_protocol_features): Add new BreakpointCommands entry.
3981 (remote_can_run_breakpoint_commands): New function.
3982 (remote_add_target_side_commands): New function.
3983 (remote_insert_breakpoint): Call it.
3984 (remote_insert_hw_breakpoint): Ditto.
3985 (_initialize_remote): Add new packet configuration for
3986 target-side breakpoint commands.
3987 * target.h (struct target_ops): New field
3988 to_can_run_breakpoint_commands.
3989 (target_can_run_breakpoint_commands): New macro.
3990 * target.c (update_current_target): Handle
3991 to_can_run_breakpoint_commands.
3992
3993 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3994
3995 Execute -ix and -iex only after system and user gdbinit files.
3996 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3997 processing down after gdbinit files.
3998
3999 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4000
4001 Add fnmatch-gnu module.
4002 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4003 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4004 * gnulib/aclocal.m4: Regenerate.
4005 * gnulib/config.in: Regenerate.
4006 * gnulib/configure: Regenerate.
4007 * gnulib/import/dummy.c: Remove.
4008 * gnulib/import/Makefile.am: Regenerate.
4009 * gnulib/import/Makefile.in: Likewise.
4010 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4011 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4012 * gnulib/import/alloca.c: New file.
4013 * gnulib/import/alloca.in.h: Likewise.
4014 * gnulib/import/config.charset: Likewise.
4015 * gnulib/import/fnmatch.c: Likewise.
4016 * gnulib/import/fnmatch.in.h: Likewise.
4017 * gnulib/import/fnmatch_loop.c: Likewise.
4018 * gnulib/import/localcharset.c: Likewise.
4019 * gnulib/import/localcharset.h: Likewise.
4020 * gnulib/import/m4/alloca.m4: Likewise.
4021 * gnulib/import/m4/codeset.m4: Likewise.
4022 * gnulib/import/m4/configmake.m4: Likewise.
4023 * gnulib/import/m4/fcntl-o.m4: Likewise.
4024 * gnulib/import/m4/fnmatch.m4: Likewise.
4025 * gnulib/import/m4/glibc21.m4: Likewise.
4026 * gnulib/import/m4/localcharset.m4: Likewise.
4027 * gnulib/import/m4/locale-fr.m4: Likewise.
4028 * gnulib/import/m4/locale-ja.m4: Likewise.
4029 * gnulib/import/m4/locale-zh.m4: Likewise.
4030 * gnulib/import/m4/mbrtowc.m4: Likewise.
4031 * gnulib/import/m4/mbsinit.m4: Likewise.
4032 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4033 * gnulib/import/m4/mbstate_t.m4: Likewise.
4034 * gnulib/import/m4/stdbool.m4: Likewise.
4035 * gnulib/import/m4/wchar_h.m4: Likewise.
4036 * gnulib/import/m4/wctype_h.m4: Likewise.
4037 * gnulib/import/m4/wint_t.m4: Likewise.
4038 * gnulib/import/mbrtowc.c: Likewise.
4039 * gnulib/import/mbsinit.c: Likewise.
4040 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4041 * gnulib/import/mbsrtowcs-state.c: Likewise.
4042 * gnulib/import/mbsrtowcs.c: Likewise.
4043 * gnulib/import/ref-add.sin: Likewise.
4044 * gnulib/import/ref-del.sin: Likewise.
4045 * gnulib/import/stdbool.in.h: Likewise.
4046 * gnulib/import/streq.h: Likewise.
4047 * gnulib/import/strnlen1.c: Likewise.
4048 * gnulib/import/strnlen1.h: Likewise.
4049 * gnulib/import/verify.h: Likewise.
4050 * gnulib/import/wchar.in.h: Likewise.
4051 * gnulib/import/wctype.in.h: Likewise.
4052
4053 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 Support shell wildcards for 'set auto-load safe-path'.
4056 * auto-load.c: Include fnmatch.h.
4057 (filename_is_in_dir): Rename to ...
4058 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4059 it. Update function comment. Rename dir_len to pattern_len. New
4060 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4061 messages. Use gdb_filename_fnmatch.
4062 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4063 pattern.
4064 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4065 * defs.h (gdb_filename_fnmatch): New declaration.
4066 * utils.c: Include fnmatch.h.
4067 (gdb_filename_fnmatch): New function.
4068
4069 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4070
4071 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4072 `-probe' and `-probe-stap' options.
4073
4074 2012-07-01 Yao Qi <yao@codesourcery.com>
4075
4076 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4077 always_inserted_off, and always_inserted_enums.
4078 Change always_inserted_mode's type to 'enum auto_boolean'.
4079 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4080 callers.
4081 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4082 of add_setshow_enum_cmd.
4083 * infrun.c: Remove can_use_displaced_stepping_auto,
4084 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4085 can_use_displaced_stepping_enum.
4086 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4087 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4088 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4089 add_setshow_enum_cmd.
4090
4091 2012-06-30 Doug Evans <dje@google.com>
4092
4093 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4094 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4095 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4096
4097 2012-06-29 Doug Evans <dje@google.com>
4098
4099 * linespec.c: #include "stack.h".
4100 (decode_line_with_current_source): Moved here from symtab.c and
4101 renamed from decode_line_spec. All callers updated.
4102 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4103 renamed from decode_line_spec_1. All callers updated.
4104 * linespec.h (decode_line_with_current_source): Move declaration here
4105 from symtab.h and renamed from decode_line_spec.
4106 (decode_line_with_last_displayed): Move declaration here from symtab.h
4107 and renamed from decode_line_spec_1.
4108 * macrocmd.c: #include "linespec.h".
4109 * symtab.c: Remove #include "linespec.h".
4110
4111 2012-06-28 Doug Evans <dje@google.com>
4112
4113 * dwarf2read.c (get_cu_length): New function.
4114 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4115 (create_debug_types_hash_table): Ditto.
4116 (init_cutu_and_read_dies): Ditto.
4117 (init_cutu_and_read_dies_no_follow): Ditto.
4118
4119 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4120
4121 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4122 (struct abbrev_table): Define.
4123 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4124 abbrev_table.
4125 (init_cutu_and_read_dies): Update.
4126 (abbrev_table_alloc_abbrev): New function. Replaces
4127 dwarf_alloc_abbrev. All callers updated.
4128 (abbrev_table_add_abbrev): New function.
4129 (abbrev_table_lookup_abbrev): New function. Replaces
4130 dwarf2_lookup_abbrev. All callers updated.
4131 (abbrev_table_read_table): New function. Contents moved here from
4132 dwarf2_read_abbrevs.
4133 (dwarf2_read_abbrevs): Call it.
4134 (abbrev_table_free): New function.
4135 (dwarf2_free_abbrev_table): Call it.
4136
4137 2012-06-28 Stan Shebs <stan@codesourcery.com>
4138
4139 * osdata.c (info_osdata_command): Filter out "Title" columns
4140 from non-MI uses.
4141 * common/linux-osdata.c (struct osdata_type): Add title field.
4142 (osdata_table): Add titles to each entry.
4143 (linux_command_xfer_osdata): Add a column for title data.
4144
4145 2012-06-28 Stan Shebs <stan@codesourcery.com>
4146
4147 Make logging work for MI.
4148 * NEWS: Mention it.
4149 * interps.h (interp_set_logging_ftype): New typedef.
4150 (struct interp_procs): New field set_logging_proc.
4151 (current_interp_set_logging): Declare.
4152 * interps.c (current_interp_set_logging): New function.
4153 * cli/cli-logging.c: Include interps.h.
4154 (set_logging_redirect): Call current_interp_set_logging.
4155 (pop_output_files): Ditto.
4156 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4157 * mi/mi-console.h (mi_console_set_raw): Declare.
4158 * mi/mi-console.c (mi_console_set_raw): New function.
4159 * mi/mi-interp.c (saved_raw_stdout): New global.
4160 (mi_set_logging): New function.
4161 (_initialize_mi_interp): Add it to interp procs.
4162
4163 2012-06-28 Doug Evans <dje@google.com>
4164
4165 * symtab.c (lookup_symbol_aux_objfile): Use
4166 ALL_OBJFILE_PRIMARY_SYMTABS.
4167
4168 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4169
4170 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4171
4172 * common/buffer.c: Include inttypes.h and stdint.h.
4173 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4174
4175 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4176 Pedro Alves <palves@redhat.com>
4177
4178 * gdbthread.h (ALL_THREADS): New macro.
4179 (thread_list): Declare.
4180 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4181 going, but instead fall through to the stepping handling.
4182 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4183 the passed in signal. Adjust debug output.
4184 (resume_callback): Rename to ...
4185 (linux_nat_resume_callback): ... this. Pass the thread's last
4186 stop signal, if in "pass" state.
4187 (linux_nat_resume): Adjust to rename.
4188 (stop_wait_callback): New assertion. Don't respawn signals;
4189 instead let the LWP remain with SIGNALLED set.
4190 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4191 * remote.c (append_pending_thread_resumptions): New.
4192 (remote_vcont_resume): Call it.
4193 * target.h (target_resume): Extend comment.
4194
4195 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4196
4197 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4198
4199 2012-06-27 Doug Evans <dje@google.com>
4200
4201 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4202 Delete have_addr_base, unused. All uses updated.
4203 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4204 (dwarf2_get_pc_bounds): Add ranges_base.
4205 (dwarf2_record_block_ranges): Ditto.
4206
4207 2012-06-27 Tom Tromey <tromey@redhat.com>
4208
4209 PR macros/7961:
4210 * varobj.c (varobj_create): Update.
4211 (varobj_set_value): Update.
4212 * tracepoint.c (validate_actionline): Update.
4213 (encode_actions_1): Update.
4214 * parse.c (parse_exp_1): Add 'pc' argument.
4215 (parse_exp_in_context): Add 'pc' argument. Change how
4216 expression_context_pc is set.
4217 (parse_expression): Update.
4218 (parse_field_expression): Update.
4219 * expression.h (parse_exp_1): Update.
4220 * eval.c (parse_to_comma_and_eval): Update.
4221 * breakpoint.c (set_breakpoint_condition): Update.
4222 (update_watchpoint): Update.
4223 (init_breakpoint_sal): Update
4224 (find_condition_and_thread): Update.
4225 (watch_command_1): Update.
4226 (update_breakpoint_locations): Update.
4227 * ada-lang.c (ada_read_renaming_var_value): Update.
4228 (create_excep_cond_exprs): Update.
4229
4230 2012-06-27 Doug Evans <dje@google.com>
4231
4232 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4233 type units.
4234
4235 2012-06-26 Doug Evans <dje@google.com>
4236
4237 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4238 prototype.
4239 (error_check_comp_unit_head): New arg abbrev_section. All callers
4240 updated.
4241 (read_and_check_comp_unit_head): Ditto.
4242 (read_and_check_type_unit_head): Ditto.
4243
4244 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4245
4246 New attribute 'last' for gdb.Symtab_and_line.
4247 * NEWS (Python Scripting): Add entry about the new attribute.
4248 * python/py-symtab.c (salpy_get_last): New function which
4249 implements the get method for the 'last' attribute of
4250 gdb.Symtab_and_line.
4251 (sal_object_getset): Add entry for the 'last' attribute.
4252
4253 2012-06-26 Doug Evans <dje@google.com>
4254
4255 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4256 (dwo_sections): Add macinfo, macro.
4257 (dwarf2_locate_dwo_sections): Watch for macro sections.
4258 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4259 All callers updated. Handle DWO files.
4260
4261 * NEWS: Mention new options "set debug dwarf2-read" and
4262 "set debug symtab-create".
4263 * dwarf2read.c (dwarf2_read_debug): New static global.
4264 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4265 (process_queue): Ditto.
4266 (process_full_comp_unit): Ditto.
4267 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4268 * elfread.c (elf_symfile_read): Add debugging printf.
4269 * minsyms.c (install_minimal_symbols): Ditto.
4270 * psymtab.c (allocate_psymtab): Ditto.
4271 * symfile.c (allocate_symtab): Ditto.
4272 * symtab.c (symtab_create_debug): New global.
4273 (_initialize_symtab): Add new option "set debug symtab-create".
4274 * symtab.h (symtab_create_debug): Declare.
4275
4276 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4277 (lookup_dwo_type_unit): Ditto.
4278
4279 2012-06-26 Roland McGrath <roland@hack.frob.com>
4280 H.J. Lu <hongjiu.lu@intel.com>
4281
4282 * amd64-linux-nat.c: Include <sys/user.h>.
4283 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4284 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4285 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4286
4287 * configure.ac: Check if the fs_base and gs_base members of
4288 `struct user_regs_struct' exist.
4289 * config.in: Regenerated.
4290 * configure: Likewise.
4291
4292 2012-06-25 Michael Eager <eager@eagercon.com>
4293
4294 PR python/14291
4295 * python/python.c (gdbpy_write): Check for interrupted output.
4296
4297 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4298
4299 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4300 register as a stack alignment in ARM mode.
4301
4302 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4303
4304 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4305 * gnulib/config.in: Regenerate.
4306 * gnulib/configure: Likewise.
4307 * gnulib/import/m4/extensions.m4: Update it.
4308 * gnulib/import/m4/gnulib-common.m4: Likewise.
4309 * gnulib/import/m4/memmem.m4: Likewise.
4310 * gnulib/import/m4/mmap-anon.m4: Likewise.
4311 * gnulib/import/m4/multiarch.m4: Likewise.
4312 * gnulib/import/stdint.in.h: Likewise.
4313
4314 2012-06-24 Yao Qi <yao@codesourcery.com>
4315
4316 * corefile.c (write_memory_with_notification): New.
4317 * gdbcore.h: Declare write_memory_with_notification.
4318 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4319 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4320 * valops.c (value_assign): Likewise.
4321 * python/py-inferior.c (infpy_write_memory): Call
4322 'write_memory_with_notification'.
4323
4324 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4325
4326 * cc-with-index.sh: Use also -ex "set auto-load no".
4327
4328 2012-06-23 Doug Evans <dje@google.com>
4329
4330 PR 14125
4331 * NEWS: Document additions to .gdb_index.
4332 * dwarf2read.c: #include "gdb/gdb-index.h".
4333 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4334 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4335 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4336 (dwarf2_read_index): Recognize version 7.
4337 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4338 block_kind, domain): All callers updated.
4339 (dw2_find_symbol_file): Handle new index CU values.
4340 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4341 (add_index_entry): New args is_static, kind. All callers updated.
4342 (offset_type_compare, uniquify_cu_indices): New functions
4343 (symbol_kind): New function.
4344 (write_psymtabs_to_index): Remove duplicate CU values.
4345 (write_psymtabs_to_index): Write .gdb_index version 7.
4346
4347 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4348
4349 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4350 * configure: Regenerate.
4351
4352 2012-06-20 Yao Qi <yao@codesourcery.com>
4353
4354 * python/py-inferior.c: Update comments of infpy_read_memory
4355 and infpy_write_memory.
4356
4357 2012-06-19 Tom Tromey <tromey@redhat.com>
4358
4359 PR exp/9514:
4360 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4361 (push_type_address_space): Remove.
4362 * parse.c (insert_into_type_stack): New function.
4363 (insert_type): Likewise.
4364 (insert_type_address_space): Rename from push_type_address_space.
4365 Insert tp_space_identifier.
4366 * c-exp.y (ptr_operator): New production.
4367 (abs_decl): Use ptr_operator.
4368 (space_identifier): Call insert_type_address_space.
4369 (ptype): Don't use const_or_volatile_or_space_identifier.
4370 (const_or_volatile_noopt): Call insert_type.
4371 (conversion_type_id, conversion_declarator): New productions.
4372 (operator): Use conversion_type_id.
4373
4374 2012-06-18 Doug Evans <dje@google.com>
4375
4376 * symtab.h (minimal_symbol): New member created_by_gdb.
4377 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4378 created by gdb.
4379 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4380 (search_symbols): Call it instead of lookup_symbol.
4381 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4382
4383 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4384 Adjust address for DW_OP_GNU_addr_index.
4385 * dwarf2expr.h (dwarf_expr_context): Update comment.
4386 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4387 all callers updated. Handle TLS vars described with
4388 DW_OP_GNU_const_index.
4389 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4390 and DW_OP_GNU_const_index.
4391 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4392
4393 * block.c (find_block_in_blockvector): Make explicit the fact that we
4394 ignore GLOBAL_BLOCK.
4395
4396 2012-06-18 Tom Tromey <tromey@redhat.com>
4397
4398 * c-exp.y (operator): Remove trailing space after "delete" and
4399 "delete[]".
4400
4401 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4402 Jan Kratochvil <jan.kratochvil@redhat.com>
4403
4404 Switch i386 and derived targets to ON_STACK.
4405 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4406 (amd64_dicos_init_abi): Remove its installment.
4407 * dicos-tdep.c (dicos_init_abi): Remove the
4408 set_gdbarch_call_dummy_location call. Update the comment here.
4409 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4410 (i386_dicos_init_abi): Remove its installment.
4411 * i386-tdep.c (i386_push_dummy_code): New function.
4412 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4413 i386_push_dummy_code.
4414
4415 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4416
4417 Remove stale dummy frames.
4418 * breakpoint.c: Include dummy-frame.h.
4419 (longjmp_breakpoint_ops): New variable.
4420 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4421 bp_longjmp_call_dummy.
4422 (bpstat_what, bptype_string, print_one_breakpoint_location)
4423 (init_bp_location): Support bp_longjmp_call_dummy.
4424 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4425 (set_longjmp_breakpoint_for_call_dummy)
4426 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4427 functions.
4428 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4429 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4430 FIXME comment and extend the other comment for bp_call_dummy.
4431 (set_longjmp_breakpoint_for_call_dummy)
4432 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4433 * dummy-frame.c: Include gdbthread.h.
4434 (pop_dummy_frame_bpt): New function.
4435 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4436 (dummy_frame_discard): New function.
4437 (cleanup_dummy_frames): Update the comment about longjmps.
4438 * dummy-frame.h (dummy_frame_discard): New declaration.
4439 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4440 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4441 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4442 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4443 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4444 keep_going if IS_LONGJMP and there is no other reason to stop.
4445
4446 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4447
4448 * remote-sim.c (sim_command_completer): Initialize
4449 variable 'result'.
4450
4451 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4452
4453 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4454 * dwarf2loc.c (call_site_parameter_matches): Support
4455 CALL_SITE_PARAMETER_PARAM_OFFSET.
4456 (needs_dwarf_reg_entry_value): Push stub value.
4457 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4458 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4459 * gdbtypes.h (enum call_site_parameter_kind): New item
4460 CALL_SITE_PARAMETER_PARAM_OFFSET.
4461 (struct call_site.parameter.u): New field param_offset.
4462
4463 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4464
4465 Code cleanup: Generalize call_site.parameter key.
4466 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4467 variable dwarf_reg. New variable kind_u. Update parameters to
4468 push_dwarf_reg_entry_value.
4469 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4470 * dwarf2expr.h (enum call_site_parameter_kind)
4471 (union call_site_parameter_u): Forward declarations.
4472 (struct dwarf_expr_context_funcs): Update parameters and their
4473 description for push_dwarf_reg_entry_value.
4474 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4475 * dwarf2loc.c (call_site_parameter_matches): New function.
4476 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4477 description. Use call_site_parameter_matches.
4478 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4479 Update parameters and their description.
4480 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4481 New variable kind_u. Adjust the caller for updated parameters.
4482 (needs_dwarf_reg_entry_value): Update parameters.
4483 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4484 instead of attr. Update for the changed fields of struct
4485 call_site_parameter.
4486 * gdbtypes.h: Include dwarf2expr.h.
4487 (enum call_site_parameter_kind): New.
4488 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4489 fb_offset into new union u.
4490
4491 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4492
4493 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4494 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4495 for x32.
4496
4497 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4498
4499 * amd64-linux-nat.c (compat_x32_clock_t): New.
4500 (compat_x32_siginfo_t): Likewise.
4501 (compat_x32_siginfo_from_siginfo): Likewise.
4502 (siginfo_from_compat_x32_siginfo): Likewise.
4503 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4504 and siginfo_from_compat_x32_siginfo for x32.
4505
4506 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4507
4508 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4509
4510 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4511
4512 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4513 instead of gdbarch_ptr_bit.
4514 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4515 (amd64_supply_native_gregset): Likewise.
4516 (amd64_collect_native_gregset): Likewise.
4517 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4518 (amd64_supply_xsave): Likewise.
4519 (amd64_collect_fxsave): Likewise.
4520 (amd64_collect_xsave): Likewise.
4521
4522 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4523
4524 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4525 (amd64_linux_read_description): Check DS segment register for
4526 x32 process.
4527
4528 2012-06-15 Tom Tromey <tromey@redhat.com>
4529
4530 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4531 init_cutu_and_read_dies.
4532
4533 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4534
4535 * MAINTAINERS (Write After Approval): Add myself to the list.
4536
4537 2012-06-15 Tom Tromey <tromey@redhat.com>
4538
4539 * valops.c (value_find_oload_method_list): Now static.
4540 * value.h (value_find_oload_method_list): Don't declare.
4541
4542 2012-06-15 Tom Tromey <tromey@redhat.com>
4543
4544 * valops.c (find_overload_match): Use value_ind.
4545
4546 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4547
4548 * infrun.c (handle_inferior_event): Correct indentation.
4549
4550 2012-06-14 Doug Evans <dje@google.com>
4551
4552 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4553 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4554 All uses updated.
4555 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4556 updated. Handle DEBUG_LOC_START_LENGTH.
4557 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4558 (loclist_describe_location): Ditto.
4559
4560 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4561
4562 PR backtrace/13866
4563 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4564 after hiding inline functions.
4565
4566 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4567
4568 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4569 _initialize_inf_ttrace.
4570
4571 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4572
4573 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4574 _initialize_hppa_hpux_nat.
4575
4576 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4577
4578 * remote-sim.c (sim_command_completer): Change type of return
4579 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4580
4581 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4582 Jan Kratochvil <jan.kratochvil@redhat.com>
4583
4584 PR tdep/14222
4585 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4586 stack on a 16-byte boundary.
4587
4588 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4589
4590 * jit.c (finalize_symtab): Set function's return type to 'void' by
4591 default.
4592
4593 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4594 H.J. Lu <hongjiu.lu@intel.com>
4595
4596 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4597 Move bits common to both the classic LP64 and the new x32 ILP32
4598 ABI here.
4599 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4600 (amd64_x32_linux_init_abi): New function.
4601 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4602 subtype.
4603
4604 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4605 * i386-tdep.c (i386_pseudo_register_name): Make public.
4606 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4607 * amd64-tdep.c (amd64_dword_names): Add "eip".
4608 (amd64_x32_pseudo_register_type): New function
4609 (amd64_x32_init_abi): New function.
4610
4611 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4612
4613 PR build/14003
4614 * inferior.h (struct inferior_suspend_state): Comment out.
4615 (struct inferior): Comment out the field suspend.
4616 * infrun.c (struct infcall_suspend_state): Comment out the field
4617 inferior_suspend.
4618 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4619 out its assignment.
4620
4621 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4622
4623 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4624 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4625 function comment. Return ERROR for unresolved cases. Implement
4626 returning proper NAME.
4627 (yylex): Accept also NAME from classify_inner_name.
4628 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4629 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4630 LOC_TYPEDEF type.
4631 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4632
4633 2012-06-13 Tom Tromey <tromey@redhat.com>
4634
4635 * breakpoint.c (condition_completer): New function.
4636 (_initialize_breakpoint): Use it.
4637 * value.c (complete_internalvar): New function.
4638 * value.h (complete_internalvar): Declare.
4639
4640 2012-06-13 Tom Tromey <tromey@redhat.com>
4641
4642 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4643 * breakpoint.c (catch_syscall_completer): Return a VEC.
4644 * cli/cli-cmds.c (complete_command): Update.
4645 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4646 (complete_on_enum): Likewise.
4647 * command.h: Include gdb_vecs.h.
4648 (completer_ftype): Change return type.
4649 (complete_on_cmdlist, complete_on_enum): Likewise.
4650 * completer.c (noop_completer, filename_completer)
4651 (location_completer): Return a VEC.
4652 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4653 to a VEC.
4654 (expression_completer, complete_line_internal, complete_line)
4655 (command_completer): Return a VEC.
4656 (gdb_completion_word_break_characters, line_completion_function):
4657 Update.
4658 * completer.h: Include gdb_vecs.h.
4659 (complete_line, noop_completer, filename_completer)
4660 (expression_completer, location_completer, command_completer):
4661 Update.
4662 * f-lang.c (f_word_break_characters): Return a VEC.
4663 * interps.c (interpreter_completer): Return a VEC.
4664 * language.h (struct language_defn)
4665 <la_make_symbol_completion_list>: Return a VEC.
4666 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4667 * symtab.c (free_completion_list): Take a VEC.
4668 (return_val_size, return_val_index): Remove.
4669 (return_val): Now a VEC.
4670 (completion_list_add_name): Update.
4671 (default_make_symbol_completion_list_break_on)
4672 (default_make_symbol_completion_list, make_symbol_completion_list)
4673 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4674 Return a VEC.
4675 (add_filename_to_list): Update.
4676 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4677 <list>: Now a VEC.
4678 (maybe_add_partial_symtab_filename): Update.
4679 (make_source_files_completion_list): Return a VEC.
4680 * symtab.h (default_make_symbol_completion_list_break_on)
4681 (default_make_symbol_completion_list, make_symbol_completion_list)
4682 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4683 (make_source_files_completion_list): Update.
4684
4685 2012-06-13 Tom Tromey <tromey@redhat.com>
4686
4687 * breakpoint.c (add_catch_command): Use completer_ftype.
4688 * breakpoint.h: Include command.h.
4689 (add_catch_command): Use completer_ftype.
4690 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4691 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4692 Use completer_ftype.
4693 * command.h (completer_ftype): New typedef.
4694 (set_cmd_completer): Use it.
4695 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4696 completer_ftype.
4697
4698 2012-06-13 Pedro Alves <palves@redhat.com>
4699
4700 Partial revert of previous change.
4701
4702 * serial.c (scb_base): New global.
4703 (serial_for_fd): New.
4704 (serial_open, serial_fdopen_ops): Link new serial in open serials
4705 chain.
4706 (do_serial_close): Unlink serial from the open serials chain.
4707
4708 2012-06-12 Pedro Alves <palves@redhat.com>
4709
4710 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4711 threads here.
4712 (prepare_for_detach): No longer context switch here in non-stop
4713 mode.
4714 (fetch_inferior_event): Ditto.
4715 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4716 to the event thread before removing breakpoints. Switch to the
4717 event thread before inserting breakpoints and resuming.
4718 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4719 event thread before resuming.
4720 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4721 Switch to the event thread before removing breakpoints.
4722
4723 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4724
4725 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4726 special characters correctly for the Windows shells. See
4727 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4728 report.
4729 [!__MINGW32__]: Remove extra double quote character from special
4730 characters.
4731
4732 2012-06-11 Stan Shebs <stan@codesourcery.com>
4733
4734 * ui-out.h: Remove #if 0 declarations.
4735 * ui-out.c: Remove #if 0 functions.
4736
4737 2012-06-11 Pedro Alves <palves@redhat.com>
4738
4739 * ser-base.c (run_async_handler_and_reschedule): New.
4740 (fd_event, push_event): Use it.
4741 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4742 reference count to 1.
4743 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4744 instead of xfree.
4745 (serial_is_open, serial_ref, serial_unref): New.
4746 * serial.h (serial_open): Adjust comment.
4747 (serial_is_open): Declare.
4748 (serial_close): Adjust comment.
4749 (serial_ref, serial_unref) Declare.
4750 (struct serial): New field 'refcnt'.
4751
4752 2012-06-11 Pedro Alves <palves@redhat.com>
4753
4754 Remove #if 0'd "connect" command, and unnecessary associated
4755 refcounting and serial reuse bits.
4756
4757 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4758 * serial.c (last_serial_opened): Delete.
4759 (scb_base): Delete.
4760 (serial_open): Adjust.
4761 (serial_for_fd): Delete.
4762 (serial_fdopen_ops, do_serial_close): Adjust.
4763 (serial_fdopen_ops): Adjust.
4764
4765 2012-06-11 Pedro Alves <palves@redhat.com>
4766
4767 * serial.c (do_serial_close): Remove early return when SCB is
4768 null.
4769
4770 2012-06-11 Tom Tromey <tromey@redhat.com>
4771
4772 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4773
4774 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4775
4776 Fix regression by the "ambiguous linespec" series.
4777 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4778 get_last_displayed_symtab and get_last_displayed_line and depending
4779 on CURSAL.
4780
4781 2012-06-11 Tom Tromey <tromey@redhat.com>
4782
4783 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4784 (dw2_find_symbol_file): Use it.
4785
4786 2012-06-11 Michael Eager <eager@eagercon.com>
4787
4788 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4789 * mips-linux-tdep.h (mips_signals): New
4790
4791 2012-06-11 Tom Tromey <tromey@redhat.com>
4792
4793 * infrun.c (handle_inferior_event)
4794 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4795 breakpoint.
4796 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4797 exception logic in all cases. Update comments.
4798 (insert_longjmp_resume_breakpoint): Set the exception resume
4799 breakpoint.
4800
4801 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4802
4803 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4804
4805 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4806
4807 * valarith.c (binop_types_user_defined_p): Fix a typo.
4808
4809 2012-06-08 Yao Qi <yao@codesourcery.com>
4810 Chung-Lin Tang <cltang@codesourcery.com>
4811
4812 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4813 * arch-utils.h: Declare.
4814 * gdbarch.sh: Add return_in_first_hidden_param_p.
4815 * gdbarch.c, gdbarch.h: Regenerated.
4816 * infcall.c (call_function_by_hand): Call
4817 gdbarch_return_in_first_hidden_param_p instead of
4818 language_pass_by_reference.
4819
4820 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4821 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4822 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4823 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4824 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4825 `cplus_return_struct_by_reference'.
4826 (tic6x_return_value): Handle language cplusplus.
4827 (tic6x_return_in_first_hidden_param_p): New.
4828 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4829
4830 2012-06-07 Doug Evans <dje@google.com>
4831
4832 * dwarf2read.c (dwarf2_cu): Add comment.
4833
4834 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4835
4836 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4837 variable.
4838 (mips_eabi_push_dummy_call): Likewise.
4839 (mips_n32n64_push_dummy_call): Likewise.
4840 (mips_o32_push_dummy_call): Likewise.
4841 (mips_o64_push_dummy_call): Likewise.
4842
4843 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4844
4845 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4846
4847 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4848
4849 * mips-tdep.c (mips_pseudo_register_type): Use
4850 mips_float_register_p.
4851
4852 2012-06-06 Pedro Alves <palves@redhat.com>
4853
4854 * infrun.c (handle_inferior_event): Remove calls to
4855 reinit_frame_cache that follow a context_switch call.
4856
4857 2012-06-06 Pedro Alves <palves@redhat.com>
4858
4859 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4860 context_switch and remove stale comment.
4861
4862 2012-06-06 Pedro Alves <palves@redhat.com>
4863
4864 * infrun.c (struct execution_control_state): Remove
4865 `new_thread_event' field.
4866 (handle_inferior_event): Simplify new threads handling; don't
4867 resume the inferior if we find a new thread.
4868
4869 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4870
4871 * NEWS: Document the deprecation of SH's 'regs' command.
4872 * inferior.h (all_registers_info): Add function declaration.
4873 * sh-tdep.c (sh_show_regs): Remove variable.
4874 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4875 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4876 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4877 (sh_show_regs_command): Remove functions.
4878 (sh_gdbarch_init): Don't set sh_show_regs.
4879 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4880 'info all-registers'.
4881 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4882 (sh64_show_regs): Remove functions.
4883 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4884
4885 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4886
4887 * configure.ac: Move development=true below AC_INIT.
4888 * configure: Regenerate.
4889
4890 2012-06-05 Stan Shebs <stan@codesourcery.com>
4891
4892 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4893 gdb_stdout.
4894
4895 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4896
4897 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4898 argument as ssize_t.
4899 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4900 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4901 * target.c (target_read_stack, target_write_memory)
4902 (target_write_raw_memory): Likewise.
4903 * target.h (target_read_stack, target_write_memory)
4904 (target_write_raw_memory): Likewise.
4905
4906 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4909 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4910 * target.c (target_read_memory): Change LEN to ssize_t.
4911 * target.h (target_read_memory): Change LEN to ssize_t.
4912
4913 2012-06-05 Pedro Alves <palves@redhat.com>
4914
4915 PR backtrace/13866
4916
4917 * breakpoint.c (until_break_command): Only fetch the selected
4918 frame after decode_line_1.
4919
4920 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4921
4922 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4923 event breakpoint at _start, __start or main if a program
4924 interpreter is not found.
4925
4926 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4927
4928 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4929 Add declaration.
4930 * windows-tdep.c: #include "objfiles.h".
4931 (windows_iterate_over_objfiles_in_search_order): New function.
4932 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4933 iterate_over_objfiles_in_search_order gdbarch method to
4934 windows_iterate_over_objfiles_in_search_order.
4935 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4936
4937 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4938
4939 * gdbarch.sh: Add generation of
4940 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4941 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4942 (iterate_over_objfiles_in_search_order): New gdbarch method.
4943 * gdbarch.h, gdbarch.c: Regenerate.
4944 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4945 Add declaration.
4946 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4947 New function.
4948 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4949 out of lookup_symbol_aux_symtabs.
4950 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4951 call to lookup_symbol_aux_objfile.
4952 (struct global_sym_lookup_data): New type.
4953 (lookup_symbol_global_iterator_cb): New function.
4954 (lookup_symbol_global): Search for symbol using
4955 gdbarch_iterate_over_objfiles_in_search_order and
4956 lookup_symbol_global_iterator_cb.
4957 * findvar.c (struct minsym_lookup_data): New type.
4958 (minsym_lookup_iterator_cb): New function.
4959 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4960 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4961 and minsym_lookup_iterator_cb.
4962
4963 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4964
4965 Revert the following patch:
4966 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4967 try locating the symbol in the symbol's own objfile first, before
4968 extending the search to all objfiles.
4969 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4970 out of lookup_symbol_aux_symtabs.
4971 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4972 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4973 Do not search EXCLUDE_OBJFILE.
4974 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4975 (lookup_symbol_global): Search for matches in the block's objfile
4976 first, before searching all other objfiles.
4977
4978 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4979
4980 * breakpoint.c (find_condition_and_thread): Stop parsing
4981 as soon as the first invalid keyword is found.
4982
4983 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4984
4985 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4986
4987 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4988
4989 * config/djgpp/djcheck.sh: Add copyright header.
4990
4991 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4992
4993 * copyright.py (update_files, main): Fix path to update-copyright
4994 script.
4995
4996 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4997
4998 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4999 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5000 for which a reminder to update by hand is printed.
5001
5002 2012-06-04 Doug Evans <dje@google.com>
5003
5004 * buildsym.c (make_blockvector): Add comment.
5005
5006 2012-06-04 Pedro Alves <palves@redhat.com>
5007
5008 * arch-utils.c (default_gdb_signal_from_target): Delete.
5009 * arch-utils.h (default_gdb_signal_from_target): Delete.
5010 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5011 gdbarch_gdb_signal_from_target_p.
5012 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5013 predicate).
5014 * gdbarch.h: Regenerate.
5015 * gdbarch.c: Regenerate.
5016
5017 2012-06-04 Pedro Alves <palves@redhat.com>
5018
5019 * gdbarch.sh (gdb_signal_from_target): Mention that the
5020 implementation of the method must be host independent.
5021 * gdbarch.h: Regenerate.
5022
5023 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5024
5025 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5026 parameters.
5027 (target_read_memory_bfd): New function.
5028 (symbol_file_add_from_memory): Use it.
5029
5030 2012-06-03 Doug Evans <dje@google.com>
5031
5032 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5033 of primary symtab.
5034 (basic_lookup_transparent_type): Ditto.
5035
5036 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5037 (ALL_PRIMARY_SYMTABS): Use it.
5038 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5039 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5040 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5041 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5042 (basic_lookup_transparent_type): Ditto.
5043
5044 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5045
5046 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5047 it to optimize resolution of demangled name.
5048
5049 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5050
5051 * configure.ac (development): Define new variable.
5052 Call AC_CHECK_LIB for mcheck if $development.
5053 (ERROR_ON_WARNING): Enable it by default only if $development.
5054 * config.in: Regenerate.
5055 * configure: Regenerate.
5056
5057 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5058
5059 * target.c (target_read_memory): Make LEN argument as size_t.
5060 * target.h (target_read_memory): Likewise.
5061
5062 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5063
5064 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5065
5066 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5067
5068 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5069 BookE interface for PowerPC server processors if not available
5070 in the Linux Kernel.
5071
5072 2012-05-31 Keith Seitz <keiths@redhat.com>
5073
5074 * linespec.c (decode_objc): Add cleanup to free
5075 INFO.FILE_SYMTABS.
5076 (find_linespec_symbols): Add cleanup to free CLASSES.
5077 * symfile.c (find_separate_debug_file_by_debuglink): Add
5078 cleanup to free DEBUGLINK.
5079 * ui-out.c (clear_header_list): No need to check if
5080 HEADER_NEXT.COLHDR is NULL.
5081 Free HEADER_NEXT.COL_NAME.
5082
5083 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5084
5085 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5086 warning.
5087
5088 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5089
5090 * configure.host (gdb_host_cpu): Handle tilegx*.
5091 (gdb_host): Handle tilegx-*-linux*.
5092 * tilegx-linux-nat.c: New file.
5093 * config/tilegx/linux.mh: New file.
5094
5095 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5096
5097 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5098 tilegx-linux-tdep.o.
5099 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5100 tilegx-linux-tdep.c.
5101 * configure.tgt: Handle tilegx-*-linux*.
5102 * tilegx-tdep.h: New file.
5103 * tilegx-tdep.c: New file.
5104 * tilegx-linux-tdep.c: New file.
5105 * regformats/reg-tilegx.dat: New file.
5106
5107 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5108
5109 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5110 accounting of hw watchpoints on ppc.
5111
5112 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5113
5114 * source.c (openp): Expand tilde in path entries.
5115
5116 2012-05-29 Doug Evans <dje@google.com>
5117
5118 * buildsym.c (block_compar): Fix comment.
5119 (end_symtab): Fix and clarify some comments.
5120
5121 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5122 cleanup_undefined_types.
5123 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5124 All callers updated.
5125
5126 2012-05-29 Tom Tromey <tromey@redhat.com>
5127
5128 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5129 fails.
5130 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5131 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5132 fails.
5133 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5134 fails.
5135
5136 2012-05-29 Tristan Gingold <gingold@adacore.com>
5137
5138 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5139 (struct darwin_info): ... New struct.
5140 (solib_darwin_pspace_data): New variable.
5141 (darwin_pspace_data_cleanup): New function.
5142 (get_darwin_info): Likewise.
5143 (darwin_dyld_version_ok, darwin_load_image_infos)
5144 (darwin_solib_get_all_image_info_addr_at_init)
5145 (darwin_solib_read_all_image_info_addr): Add info argument.
5146 Adjust code.
5147 (darwin_current_sos): Use per pspace structure.
5148 (darwin_solib_create_inferior_hook): Likewise.
5149 (darwin_clear_solib): Likewise.
5150 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5151
5152 2012-05-28 Pedro Alves <palves@redhat.com>
5153
5154 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5155 block that uses them. Clear ecss before handling each event.
5156
5157 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5158
5159 * solib-svr4.c (svr4_current_sos): New comment on
5160 svr4_current_sos_via_xfer_libraries fall back.
5161
5162 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5163
5164 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5165 it as a fallback for TYPE_IS_OPAQUE.
5166 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5167 symbols for lookup_symbol.
5168
5169 2012-05-24 John Steele Scott <toojays@toojays.net>
5170
5171 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5172 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5173 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5174 (check_producer): ... this new function, which also checks for ICC
5175 and caches the result.
5176 (producer_is_icc): New function.
5177 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5178 producer was ICC.
5179
5180 2012-05-24 Pedro Alves <palves@redhat.com>
5181
5182 PR gdb/7205
5183
5184 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5185 (default_gdb_signal_to_target): ... this. Add comment.
5186 (default_gdb_signal_from_host): Rename to ...
5187 (default_gdb_signal_from_target): ... this. Add comment.
5188 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5189 (default_gdb_signal_to_target): ... this.
5190 (default_gdb_signal_from_host): Rename to ...
5191 (default_gdb_signal_from_target): ... this.
5192 * corelow.c (core_open): Adjust to naming change. Replace comment.
5193 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5194 (gdb_signal_from_target): ... this. Adjust to
5195 default_gdb_signal_from_host naming change. Extend comment.
5196 (gdb_signal_to_host): Rename to ...
5197 (gdb_signal_to_target): ... this. Adjust to
5198 default_gdb_signal_to_host naming change.
5199 * gdbarch.h, gdbarch.c: Renegerate.
5200
5201 2012-05-24 Pedro Alves <palves@redhat.com>
5202
5203 PR gdb/7205
5204
5205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5206
5207 2012-05-24 Pedro Alves <palves@redhat.com>
5208
5209 PR gdb/7205
5210
5211 Replace target_signal with gdb_signal throughout.
5212
5213 2012-05-24 Pedro Alves <palves@redhat.com>
5214
5215 PR tui/14159
5216
5217 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5218 string, instead of reusing the va_list argument.
5219
5220 2012-05-24 Tom Tromey <tromey@redhat.com>
5221
5222 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5223 Remove.
5224
5225 2012-05-23 Doug Evans <dje@google.com>
5226
5227 * symtab.c (search_symbols): Formatting fixes.
5228 (print_symbol_info): Formatting fixes.
5229
5230 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5231 int64_t change to leb128 API.
5232 (read_encoded_value, decode_frame_entry_1): Ditto.
5233 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5234 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5235 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5236 (execute_stack_op): Ditto.
5237 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5238 (safe_read_uleb128, safe_read_sleb128): Ditto.
5239 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5240 (dwarf2_compile_expr_to_ax): Ditto.
5241 (locexpr_describe_location_piece): Ditto.
5242 (disassemble_dwarf_expression): Ditto.
5243 (locexpr_describe_location_1): Ditto.
5244
5245 2012-05-23 Stan Shebs <stan@codesourcery.com>
5246 Kwok Cheung Yeung <kcy@codesourcery.com>
5247
5248 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5249 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5250 (mi-cmd-info.o): New rule.
5251 * osdata.h (info_osdata_command): New declaration.
5252 * osdata.c (info_osdata_command): Change to non-static.
5253 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5254 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5255 * mi/mi-cmd-info.c: New file.
5256
5257 2012-05-23 Doug Evans <dje@google.com>
5258
5259 * symtab.c (search_symbols): Pass NULL for file_matcher to
5260 expand_symtabs_matching if there are no files to match.
5261
5262 * gdbtypes.c (lookup_typename): Simplify.
5263
5264 2012-05-23 Pedro Alves <palves@redhat.com>
5265
5266 * arch-utils.h (default_target_signal_to_host): Delete.
5267 * arch-utils.c (default_target_signal_to_host): Delete.
5268 * gdbarch.sh (target_signal_to_host): Remove.
5269 * gdbarch.h, gdbarch.c: Regenerate.
5270
5271 2012-05-22 Doug Evans <dje@google.com>
5272
5273 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5274 "const gdb_byte *".
5275 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5276 (execute_cfa_program): Update to match API of leb128 functions.
5277 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5278 "const gdb_byte *".
5279 (read_unsigned_leb128, read_signed_leb128): Delete.
5280 (read_initial_length): Change type of buf argument to
5281 "const gdb_byte *".
5282 (read_encoded_value): Update to match API of leb128 functions.
5283 (decode_frame_entry): Change result to "const gdb_byte *", and
5284 similarly for "start" parameter.
5285 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5286 (dwarf2_build_frame_info): Change local frame_ptr to
5287 "const gdb_byte *".
5288 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5289 read_uleb128, read_sleb128. All callers updated.
5290 (safe_skip_leb128): New function.
5291 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5292 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5293 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5294 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5295 read_uleb128, read_sleb128.
5296 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5297 (execute_stack_op): Update to match API of leb128 functions.
5298 * dwarf2expr.h: #include "leb128.h".
5299 (read_uleb128, read_sleb128): Delete.
5300 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5301 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5302 * dwarf2loc.c (debug_loc_kind): New enum.
5303 (decode_debug_loc_addresses): New function.
5304 (decode_debug_loc_dwo_addresses): New function.
5305 (dwarf2_find_location_expression): Rewrite.
5306 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5307 (locexpr_describe_location_piece): Ditto.
5308 (disassemble_dwarf_expression): Ditto.
5309 (locexpr_describe_location_1): Ditto.
5310 (loclist_describe_location): Rewrite.
5311 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5312 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5313 (dwarf2_section_buffer_overflow_complaint): Renamed from
5314 dwarf2_macros_too_long_complaint. All callers updated.
5315 (skip_leb128): Delete.
5316 (init_cu_die_reader): Initialize reader->buffer_end.
5317 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5318 (skip_form_bytes): New arg buffer_end. All callers updated.
5319 Replace call to skip_leb128 with gdb_skip_leb128.
5320 (skip_unknown_opcode): New arg mac_end. All callers updated.
5321 (fill_in_loclist_baton): Initialize baton->from_dwo.
5322
5323 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5324
5325 * mips-linux-nat.c (mips_linux_read_description): Use a more
5326 verbose error message.
5327
5328 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5329
5330 * NEWS: Add MIPS/Linux DSP support.
5331 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5332 (SIGCONTEXT_DSPCTL): New macro.
5333 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5334 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5335 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5336 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5337 (N64_SIGCONTEXT_HI3): Likewise.
5338 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5339 (N64_SIGCONTEXT_LO3): Likewise.
5340 (N64_SIGCONTEXT_DSPCTL): Likewise.
5341 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5342 (mips_linux_o32_sigframe_init): Handle DSP registers.
5343 (mips_linux_n32n64_sigframe_init): Likewise.
5344
5345 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5346
5347 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5348 call to abort.
5349
5350 2012-05-22 Pedro Alves <palves@redhat.com>
5351
5352 * target.h (store_waitstatus): Move declaration ...
5353 * inf-child.h (store_waitstatus): ... here.
5354 * target.c: Move inclusion of gdb_wait.h, and ...
5355 (store_waitstatus): ... this ...
5356 * inf-child.c: ... here.
5357 * linux-nat.c: Include inf-child.h.
5358 * rs6000-nat.c: Include inf-child.h.
5359 * spu-linux-nat.c: Include inf-child.h.
5360
5361 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5362
5363 * tracepoint.c (start_tracing): Add missing i18n markup.
5364 (stop_tracing, set_trace_user): Ditto.
5365 (set_trace_notes, set_trace_stop_notes): Ditto.
5366
5367 2012-05-21 Tom Tromey <tromey@redhat.com>
5368
5369 PR c++/7173:
5370 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5371 types.
5372 * value.h (value_cast_pointers): Update.
5373 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5374 (value_cast): Update.
5375 (update_search_result): New function.
5376 (do_search_struct_field): New, from search_struct_field. Check
5377 for ambiguous results.
5378 (search_struct_field): Rewrite.
5379 * infcall.c (value_arg_coerce): Update.
5380 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5381 value_cast_pointers.
5382 * ada-lang.c (ada_convert_actual): Update.
5383
5384 2012-05-21 Tom Tromey <tromey@redhat.com>
5385
5386 * macroexp.c (macro_stringify): Terminate the string.
5387
5388 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5389
5390 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5391 Describe it.
5392 * auto-load.c (auto_load_expand_dir_vars): New function.
5393 (auto_load_safe_path_vec_update): Use it, remove the
5394 substitute_path_component call thanks to it.
5395 (auto_load_objfile_script): Remove the debug_file_directory processing.
5396 Use auto_load_expand_dir_vars, remove the substitute_path_component
5397 call thanks to it.
5398 * configure: Regenerate.
5399 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5400 path. Escape $ also for $debugdir.
5401 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5402 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5403
5404 2012-05-20 Doug Evans <dje@google.com>
5405
5406 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5407 before use. Check for symtab->includes == NULL before scanning it.
5408
5409 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5410
5411 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5412
5413 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5414
5415 * NEWS: Add microMIPS support and "set mips compression",
5416 "show mips compression" commands.
5417 * mips-tdep.h (mips_isa): New enum.
5418 (gdbarch_tdep): Add mips_isa.
5419 (mips_pc_is_mips16): Update prototype.
5420 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5421 * mips-tdep.c (mips_compression_mips16): New variable.
5422 (mips_compression_micromips): Likewise.
5423 (mips_compression_strings): Likewise.
5424 (mips_compression_string): Likewise.
5425 (is_mips16_isa, is_micromips_isa): New functions.
5426 (is_mips16_addr): Rename to...
5427 (is_compact_addr): ... this.
5428 (unmake_mips16_addr): Likewise to...
5429 (unmake_compact_addr): ... this.
5430 (make_mips16_addr): Likewise to...
5431 (make_compact_addr): ... this.
5432 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5433 functions.
5434 (mips_elf_make_msymbol_special): Handle microMIPS code.
5435 (msymbol_is_special): Rename to...
5436 (msymbol_is_mips16): ... this.
5437 (mips_make_symbol_special, mips_pc_is_mips16): Update
5438 accordingly.
5439 (msymbol_is_mips, msymbol_is_micromips): New functions.
5440 (mips16_to_32_reg): Rename to...
5441 (mips_reg3_to_reg): ... this.
5442 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5443 (mips_pc_isa): Likewise.
5444 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5445 code.
5446 (mips_fetch_instruction): Pass return status instead of printing
5447 an error message if requested. Handle microMIPS code. Bail out
5448 on an invalid ISA.
5449 (micromips_op): New macro.
5450 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5451 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5452 (b6s4_op, b7s3_reg): Likewise.
5453 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5454 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5455 (mips_insn_size): New function.
5456 (mips32_next_pc): Update mips_fetch_instruction call.
5457 (micromips_relative_offset7): New function.
5458 (micromips_relative_offset10): Likewise.
5459 (micromips_relative_offset16): Likewise.
5460 (micromips_pc_insn_size): Likewise.
5461 (micromips_bc1_pc): Likewise.
5462 (micromips_next_pc): Likewise.
5463 (unpack_mips16): Update mips_fetch_instruction call.
5464 (extended_mips16_next_pc): Update according to change to
5465 mips16_to_32_reg.
5466 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5467 code.
5468 (mips16_scan_prologue): Update mips_fetch_instruction call.
5469 Update according to change to mips16_to_32_reg.
5470 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5471 (mips_insn16_frame_base_sniffer): Likewise.
5472 (micromips_decode_imm9): New function.
5473 (micromips_scan_prologue): Likewise.
5474 (mips_micro_frame_cache): Likewise.
5475 (mips_micro_frame_this_id): Likewise.
5476 (mips_micro_frame_prev_register): Likewise.
5477 (mips_micro_frame_sniffer): Likewise.
5478 (mips_micro_frame_unwind): New variable.
5479 (mips_micro_frame_base_address): New function.
5480 (mips_micro_frame_base): New variable.
5481 (mips_micro_frame_base_sniffer): New function.
5482 (mips32_scan_prologue): Update mips_fetch_instruction call.
5483 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5484 rather than for MIPS16.
5485 (mips_insn32_frame_base_sniffer): Likewise.
5486 (mips_addr_bits_remove): Handle microMIPS code.
5487 (deal_with_atomic_sequence): Rename to...
5488 (mips_deal_with_atomic_sequence): ... this. Update the type
5489 of the variable used to hold an instruction. Remove the ISA bit
5490 check. Update mips_fetch_instruction call.
5491 (micromips_deal_with_atomic_sequence): New function.
5492 (deal_with_atomic_sequence): Likewise.
5493 (mips_about_to_return): Handle microMIPS code. Update
5494 mips_fetch_instruction call.
5495 (heuristic_proc_start): Check for the standard MIPS ISA rather
5496 than for MIPS16. Update mips_pc_is_mips16 and
5497 mips_fetch_instruction calls. Handle microMIPS code.
5498 (mips_push_dummy_code): Handle microMIPS code.
5499 (mips_eabi_push_dummy_call): Likewise.
5500 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5501 (mips_o64_push_dummy_call): Handle microMIPS code.
5502 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5503 (is_delayed): Remove function.
5504 (mips_single_step_through_delay): Replace the call to is_delayed
5505 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5506 Handle microMIPS code.
5507 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5508 microMIPS code.
5509 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5510 call.
5511 (micromips_in_function_epilogue_p): New function.
5512 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5513 call.
5514 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5515 Handle microMIPS.
5516 (gdb_print_insn_mips): Likewise.
5517 (mips_breakpoint_from_pc): Likewise.
5518 (mips_remote_breakpoint_from_pc): New function.
5519 (mips32_instruction_has_delay_slot): Simplify making use of the
5520 updated mips_fetch_instruction interface.
5521 (micromips_instruction_has_delay_slot): New function.
5522 (mips16_instruction_has_delay_slot): Simplify making use of the
5523 updated mips_fetch_instruction interface.
5524 (mips_adjust_breakpoint_address): Check for the standard MIPS
5525 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5526 calls. Handle microMIPS code.
5527 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5528 (mips_skip_trampoline_code): Handle microMIPS code.
5529 (global_mips_compression): New function.
5530 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5531 file flags. Register the microMIPS remote breakpoint handler
5532 and heuristic frame unwinder.
5533 (show_mips_compression): New function.
5534 (_initialize_mips_tdep): Add the "set mips compression" and
5535 "show mips compression" commands.
5536
5537 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5538
5539 * ada-lang.c:
5540 * ada-tasks.c:
5541 * ada-varobj.c:
5542 * amd64-darwin-tdep.c:
5543 * arm-symbian-tdep.c:
5544 * arm-tdep.c:
5545 * avr-tdep.c:
5546 * ax-gdb.c:
5547 * bfin-linux-tdep.c:
5548 * breakpoint.c:
5549 * c-valprint.c:
5550 * cli/cli-cmds.c:
5551 * coffread.c:
5552 * cp-support.c:
5553 * cris-tdep.c:
5554 * dwarf2-frame-tailcall.c:
5555 * dwarf2-frame.c:
5556 * dwarf2expr.c:
5557 * dwarf2loc.c:
5558 * dwarf2read.c:
5559 * elfread.c:
5560 * eval.c:
5561 * expprint.c:
5562 * f-valprint.c:
5563 * frv-tdep.c:
5564 * h8300-tdep.c:
5565 * hppa-hpux-tdep.c:
5566 * hppa-tdep.c:
5567 * hppanbsd-tdep.c:
5568 * i386-nto-tdep.c:
5569 * i386-tdep.c:
5570 * i387-tdep.c:
5571 * ia64-tdep.c:
5572 * jit.c:
5573 * linespec.c:
5574 * linux-tdep.c:
5575 * lm32-tdep.c:
5576 * m2-valprint.c:
5577 * m32c-tdep.c:
5578 * m32r-rom.c:
5579 * m32r-tdep.c:
5580 * m68k-tdep.c:
5581 * m68klinux-tdep.c:
5582 * mi/mi-main.c:
5583 * microblaze-tdep.c:
5584 * mips-linux-tdep.c:
5585 * mips-tdep.c:
5586 * mn10300-tdep.c:
5587 * p-valprint.c:
5588 * parse.c:
5589 * ppc-linux-tdep.c:
5590 * ppc-sysv-tdep.c:
5591 * printcmd.c:
5592 * python/py-finishbreakpoint.c:
5593 * python/py-inferior.c:
5594 * python/py-infthread.c:
5595 * python/py-type.c:
5596 * python/python.c:
5597 * remote-fileio.c:
5598 * remote-m32r-sdi.c:
5599 * remote-mips.c:
5600 * reverse.c:
5601 * rl78-tdep.c:
5602 * rs6000-aix-tdep.c:
5603 * rs6000-tdep.c:
5604 * s390-tdep.c:
5605 * score-tdep.c:
5606 * sh64-tdep.c:
5607 * skip.c:
5608 * solib-darwin.c:
5609 * solib-dsbt.c:
5610 * solib-frv.c:
5611 * sparc-tdep.c:
5612 * spu-multiarch.c:
5613 * spu-tdep.c:
5614 * stack.c:
5615 * symfile.c:
5616 * symtab.c:
5617 * tic6x-tdep.c:
5618 * tracepoint.c:
5619 * v850-tdep.c:
5620 * valarith.c:
5621 * valprint.c:
5622 * value.c:
5623 * xcoffread.c:
5624 * xtensa-tdep.c:
5625 * ada-lang.c:
5626 * ada-tasks.c:
5627 * ada-varobj.c:
5628 * amd64-darwin-tdep.c:
5629 * arm-symbian-tdep.c:
5630 * arm-tdep.c: Delete unused variables.
5631
5632 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5633
5634 Rename $ddir to $datadir.
5635 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5636 * auto-load.c (auto_load_safe_path_vec_update)
5637 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5638 * configure: Regenerate.
5639 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5640 Likewise. Remove the 'use $ddir' help string.
5641
5642 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5643
5644 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5645 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5646
5647 2012-05-18 Tom Tromey <tromey@redhat.com>
5648
5649 PR exp/13907:
5650 * valprint.h (struct value_print_options) <symbol_print>: New
5651 field.
5652 * valprint.c (user_print_options): Add default for symbol_print.
5653 (show_symbol_print): New function.
5654 (generic_val_print): Respect symbol_print.
5655 (_initialize_valprint): Add "print symbol" setting.
5656 * f-valprint.c (f_val_print): Respect symbol_print.
5657 * c-valprint.c (c_val_print): Respect symbol_print.
5658 * NEWS: Update.
5659 * printcmd.c (print_address_symbolic): Return int. Ignore some
5660 zero-size symbols.
5661 (print_address_demangle): Return int.
5662 * defs.h: (print_address_symbolic): Return int.
5663 * value.h (print_address_demangle): Return int.
5664
5665 2012-05-18 Tom Tromey <tromey@redhat.com>
5666
5667 * valprint.c (val_print_string): Don't print leading space.
5668 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5669 print space before string or vtbl.
5670 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5671 before string.
5672 * jv-valprint.c (java_value_print): Print space before string.
5673 * go-valprint.c (print_go_string): Print space before string.
5674 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5675 space before string.
5676 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5677 space before string or vtbl.
5678 * auxv.c (fprint_target_auxv): Print space after address.
5679
5680 2012-05-18 Tom Tromey <tromey@redhat.com>
5681
5682 * printcmd.c (print_address_demangle): Remove special case for 0.
5683
5684 2012-05-18 Tom Tromey <tromey@redhat.com>
5685
5686 * printcmd.c (print_address_demangle): Add 'opts' argument.
5687 * p-valprint.c (pascal_val_print): Update.
5688 * jv-valprint.c (java_val_print): Update.
5689 * value.h: Update.
5690 * valprint.c (generic_val_print): Update.
5691 (print_function_pointer_address): Add 'options' argument. Remove
5692 'addressprint' argument. Update.
5693 * m2-valprint.c (print_unpacked_pointer): Update.
5694 * gnu-v3-abi.c (print_one_vtable): Update.
5695 (gnuv3_print_method_ptr): Update.
5696 * f-valprint.c (f_val_print): Update.
5697 * cp-valprint.c (cp_print_value_fields): Update.
5698 * valprint.h (print_function_pointer_address): Update.
5699 * c-valprint.c (c_val_print): Update.
5700
5701 2012-05-18 Tom Tromey <tromey@redhat.com>
5702
5703 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5704 directly corresponding to the found psymtab.
5705 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5706 (dw2_find_pc_sect_symtab): Use it.
5707 * block.h (blockvector_contains_pc): Declare.
5708 * block.c (find_block_in_blockvector): New function.
5709 (blockvector_for_pc_sect): Use it.
5710 (blockvector_contains_pc): New function.
5711
5712 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5713
5714 * mips-tdep.h (mips_write_pc): New prototype.
5715 * mips-tdep.c (mips_write_pc): Make external, add description.
5716 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5717 add description.
5718
5719 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5720
5721 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5722 mips_regnum->pc.
5723 (mips_unwind_pc, mips_write_pc): Likewise.
5724 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5725 gdbarch_read_pc.
5726
5727 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5728
5729 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5730 proc_warn, proc_error, proc_get_status, proc_flags,
5731 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5732 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5733 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5734 proc_stop_process, proc_wait_for_stop, proc_run_process,
5735 proc_set_traced_signals, proc_set_traced_faults,
5736 proc_set_traced_sysentry, proc_set_traced_sysexit,
5737 proc_set_held_signals, proc_get_held_signals,
5738 proc_get_traced_signals, proc_get_traced_faults,
5739 proc_get_traced_sysentry, proc_get_traced_sysexit,
5740 proc_clear_current_fault, proc_set_current_signal,
5741 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5742 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5743 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5744 proc_get_current_thread, proc_get_current_thread,
5745 proc_get_current_thread, proc_update_threads,
5746 proc_update_threads, proc_update_threads, proc_update_threads,
5747 proc_iterate_over_threads, procfs_find_new_threads,
5748 procfs_pid_to_str): Make static. Remove advance declaration.
5749 (proc_cursig): Make static. Conditionalized defintion on
5750 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5751 (proc_syscall, proc_set_kill_on_last_close,
5752 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5753 proc_get_pending_signals, proc_get_signal_actions,
5754 proc_trace_signal, proc_ignore_signal): Delete.
5755
5756 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5757
5758 * coffread.c (cs_section_address): Passing proper argument for
5759 `bfd_get_section_vma'.
5760 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5761 `bfd_get_section_flags'.
5762 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5763 `bfd_get_section_vma'.
5764
5765 2012-05-16 Tom Tromey <tromey@redhat.com>
5766
5767 PR macros/13205:
5768 * macrotab.h: (macro_define_special): Declare.
5769 (enum macro_special_kind): New.
5770 (struct macro_definition) <argc, replacement>: Update comments.
5771 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5772 (macro_define_object_internal): New function.
5773 (macro_define_object): Use it.
5774 (macro_define_special): New function.
5775 (fixup_definition): New function.
5776 (macro_lookup_definition, foreach_macro_in_scope)
5777 (foreach_macro): Use fixup_definition.
5778 * macroexp.h (macro_stringify): Declare.
5779 * macroexp.c (free_buffer_return_text): New function.
5780 (stringify): Constify "arg".
5781 (macro_stringify): New function.
5782 * dwarf2read.c (macro_start_file): Call macro_define_special.
5783
5784 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5785 Maciej W. Rozycki <macro@mips.com>
5786
5787 * breakpoint.h (bp_location): Add related_address member.
5788 * inferior.h (get_return_value): Take a pointer to struct value
5789 instead of struct type for the function requested.
5790 * value.h (using_struct_return): Likewise.
5791 * gdbarch.sh (return_value): Take a pointer to struct value
5792 instead of struct type for the function requested.
5793 * breakpoint.c (set_breakpoint_location_function): Initialize
5794 related_address for bp_gnu_ifunc_resolver breakpoints.
5795 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5796 requested function's address to gdbarch_return_value.
5797 * eval.c (evaluate_subexp_standard): Pass the requested
5798 function's address to using_struct_return.
5799 * infcall.c (call_function_by_hand): Pass the requested
5800 function's address to using_struct_return and
5801 gdbarch_return_value.
5802 * infcmd.c (get_return_value): Take a pointer to struct value
5803 instead of struct type for the function requested.
5804 (print_return_value): Update accordingly.
5805 (finish_command_continuation): Likewise.
5806 * stack.c (return_command): Pass the requested function's
5807 address to using_struct_return and gdbarch_return_value.
5808 * value.c (using_struct_return): Take a pointer to struct value
5809 instead of struct type for the function requested. Pass the
5810 requested function's address to gdbarch_return_value.
5811 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5812 New function_value member, replacing function_type.
5813 (bpfinishpy_dealloc): Update accordingly.
5814 (bpfinishpy_pre_stop_hook): Likewise.
5815 (bpfinishpy_init): Likewise. Record the requested function's
5816 address.
5817 * mips-tdep.c (mips_fval_reg): New enum.
5818 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5819 words put in GP registers.
5820 (mips_o64_push_dummy_call): Update a comment.
5821 (mips_o32_return_value): Take a pointer to struct value instead
5822 of struct type for the function requested and use it to check if
5823 using the MIPS16 calling convention. Return the designated
5824 general purpose registers for floating-point values returned in
5825 MIPS16 mode.
5826 (mips_o64_return_value): Likewise.
5827 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5828 (ppc_sysv_abi_broken_return_value): Likewise.
5829 (ppc64_sysv_abi_return_value): Likewise.
5830 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5831 value instead of struct type for the function requested.
5832 * amd64-tdep.c (amd64_return_value): Likewise.
5833 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5834 * arm-tdep.c (arm_return_value): Likewise.
5835 * avr-tdep.c (avr_return_value): Likewise.
5836 * bfin-tdep.c (bfin_return_value): Likewise.
5837 * cris-tdep.c (cris_return_value): Likewise.
5838 * frv-tdep.c (frv_return_value): Likewise.
5839 * h8300-tdep.c (h8300_return_value): Likewise.
5840 (h8300h_return_value): Likewise.
5841 * hppa-tdep.c (hppa32_return_value): Likewise.
5842 (hppa64_return_value): Likewise.
5843 * i386-tdep.c (i386_return_value): Likewise.
5844 * ia64-tdep.c (ia64_return_value): Likewise.
5845 * iq2000-tdep.c (iq2000_return_value): Likewise.
5846 * lm32-tdep.c (lm32_return_value): Likewise.
5847 * m32c-tdep.c (m32c_return_value): Likewise.
5848 * m32r-tdep.c (m32r_return_value): Likewise.
5849 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5850 * m68k-tdep.c (m68k_return_value): Likewise.
5851 (m68k_svr4_return_value): Likewise.
5852 * m88k-tdep.c (m88k_return_value): Likewise.
5853 * mep-tdep.c (mep_return_value): Likewise.
5854 * microblaze-tdep.c (microblaze_return_value): Likewise.
5855 * mn10300-tdep.c (mn10300_return_value): Likewise.
5856 * moxie-tdep.c (moxie_return_value): Likewise.
5857 * mt-tdep.c (mt_return_value): Likewise.
5858 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5859 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5860 (ppc_sysv_abi_broken_return_value): Likewise.
5861 (ppc64_sysv_abi_return_value): Likewise.
5862 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5863 * rl78-tdep.c (rl78_return_value): Likewise.
5864 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5865 * rx-tdep.c (rx_return_value): Likewise.
5866 * s390-tdep.c (s390_return_value): Likewise.
5867 * score-tdep.c (score_return_value): Likewise.
5868 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5869 (sh_return_value_fpu): Likewise.
5870 * sh64-tdep.c (sh64_return_value): Likewise.
5871 * sparc-tdep.c (sparc32_return_value): Likewise.
5872 * sparc64-tdep.c (sparc64_return_value): Likewise.
5873 * spu-tdep.c (spu_return_value): Likewise.
5874 * tic6x-tdep.c (tic6x_return_value): Likewise.
5875 * v850-tdep.c (v850_return_value): Likewise.
5876 * vax-tdep.c (vax_return_value): Likewise.
5877 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5878 * xtensa-tdep.c (xtensa_return_value): Likewise.
5879 * gdbarch.c: Regenerate.
5880 * gdbarch.h: Regenerate.
5881
5882 2012-05-15 Tom Tromey <tromey@redhat.com>
5883
5884 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5885
5886 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5887
5888 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5889 of command in two error message.
5890
5891 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5892
5893 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5894
5895 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5896
5897 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5898
5899 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5900
5901 * NEWS (show auto-load scripts-directory): Add forgotten command.
5902
5903 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5904
5905 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5906 parameters.
5907
5908 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5909
5910 * amd64-tdep.c: Include features/i386/x32.c and
5911 features/i386/x32-avx.c.
5912 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5913 initialize_tdesc_x32_avx.
5914
5915 2012-05-14 Stan Shebs <stan@codesourcery.com>
5916
5917 Add dynamic printf.
5918 * breakpoint.h (enum bptype): New type bp_dprintf.
5919 (struct breakpoint): New field extra_string.
5920 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5921 (create_breakpoint): Add extra_string arg.
5922 * breakpoint.c (dprintf_breakpoint_ops): New.
5923 (is_breakpoint): Add bp_dprintf.
5924 (bpstat_what): Add dprintf case.
5925 (bptype_string): Ditto.
5926 (print_one_breakpoint_location): Ditto.
5927 (init_bp_location): Ditto.
5928 (bkpt_print_mention): Ditto.
5929 (dprintf_style_enums): New array.
5930 (dprintf_style): New global.
5931 (dprintf_function): New global.
5932 (dprintf_channel): New global.
5933 (update_dprintf_command_list): New function.
5934 (update_dprintf_commands): New function.
5935 (init_breakpoint_sal): Add extra_string argument, handle it.
5936 (create_breakpoint_sal): Add extra_string argument.
5937 (create_breakpoints_sal): Add extra_string argument, update callers.
5938 (find_condition_and_thread): Add extra argument.
5939 (create_breakpoint): Add extra_string argument, record it.
5940 (dprintf_command): New function.
5941 (break_command_1): Add arg to create_breakpoint call.
5942 (handle_gnu_v3_exceptions): Ditto.
5943 (trace_command): Ditto.
5944 (ftrace_command): Ditto.
5945 (strace_command): Ditto.
5946 (bkpt_print_mention): Add dprintf case.
5947 (create_breakpoint_sal_default): Add extra_string argument.
5948 (_initialize_breakpoint): Add new commands.
5949 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5950 * python/py-breakpoint.c (bppy_init): Ditto.
5951 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5952
5953 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5954
5955 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5956
5957 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5958
5959 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5960 unsigned long long.
5961
5962 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5963
5964 Add a new function gdb.find_pc_line to the Python API.
5965 * NEWS (Python Scripting): Add entry about the new function.
5966 * python/python.c (gdbpy_find_pc_line): New function which
5967 implements gdb.find_pc_line.
5968 (GdbMethods): Add entry for the new function.
5969
5970 2012-05-12 Pedro Alves <palves@redhat.com>
5971
5972 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5973 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5974
5975 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5976
5977 * inferior.c: Include completer.h
5978 (initialize_inferiors): Set completer of add-inferior to
5979 filename_completer.
5980
5981 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5982
5983 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5984 gdbarch_ptr_bit for x32 core dump.
5985
5986 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5987
5988 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5989 and features/i386/x32-avx-linux.c.
5990
5991 2012-05-11 Stan Shebs <stan@codesourcery.com>
5992 Kwok Cheung Yeung <kcy@codesourcery.com>
5993
5994 * NEWS: Describe new info os commands.
5995 * common/linux-osdata.c (PID_T, TIME_T): Define.
5996 (MAX_PID_T_STRLEN): New.
5997 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5998 MAX_PID_T_STRLEN.
5999 (command_from_pid): Add comment. Change to use PID_T.
6000 (commandline_from_pid): Change to use PID_T.
6001 (user_from_pid): Add comment.
6002 (get_process_owner): Add comment. Change to use PID_T and
6003 MAX_PID_T_STRLEN.
6004 (get_number_of_cpu_cores): Add comment.
6005 (get_cores_used_by_process): Add comment. Change to use PID_T and
6006 MAX_PID_T_STRLEN.
6007 (linux_xfer_osdata_processes): Change to use PID_T and
6008 MAX_PID_T_STRLEN.
6009 (compare_processes): New function.
6010 (linux_xfer_osdata_processgroups): New function.
6011 (linux_xfer_osdata_threads): Change to use PID_T.
6012 (linux_xfer_osdata_fds): New function.
6013 (format_socket_state, print_sockets): New functions.
6014 (union socket_addr): New union.
6015 (linux_xfer_osdata_isockets): New function.
6016 (time_from_time_t, group_from_gid): New functions.
6017 (linux_xfer_osdata_shm): New function.
6018 (linux_xfer_osdata_sem): New function.
6019 (linux_xfer_osdata_msg): New function.
6020 (linux_xfer_osdata_modules): New function.
6021 (osdata_table): Add new entries.
6022 * common/buffer.c (buffer_xml_printf): Add support for long and
6023 long long format specifiers.
6024
6025 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6026
6027 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6028 (tdesc_x32_avx_linux): Likewise.
6029
6030 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6031
6032 Implement multi-component --with-auto-load-dir.
6033 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6034 entries.
6035 (--with-auto-load-safe-path): Update the default value description.
6036 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6037 New.
6038 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6039 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6040 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6041 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6042 "set auto-load scripts-directory".
6043 * config.in: Regenerate.
6044 * configure: Regenerate.
6045 * configure.ac (--with-auto-load-dir): New configure option.
6046 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6047
6048 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6049
6050 Provide $ddir substitution for --with-auto-load-safe-path.
6051 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6052 entries.
6053 * auto-load.c: Include observer.h.
6054 (auto_load_safe_path_vec_update): Call substitute_path_component for
6055 each component. New variable ddir_subst.
6056 (auto_load_gdb_datadir_changed): New function.
6057 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6058 AUTO_LOAD_SAFE_PATH. New comment.
6059 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6060 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6061 * config.in: Regenerate.
6062 * configure: Regenerate.
6063 * configure.ac (--auto-load-safe-path): Rename
6064 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6065 GDB_DATADIR/auto-load.
6066 * defs.h (substitute_path_component): New declaration.
6067 * top.c: Include observer.h.
6068 (set_gdb_datadir): New function.
6069 (init_main): Install it for "set data-directory".
6070 * utils.c (substitute_path_component): New function.
6071
6072 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6073
6074 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6075 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6076 DEBUG_FILE_DIRECTORY. Handle multiple components of
6077 DEBUG_FILE_DIRECTORY.
6078
6079 2012-05-10 Tom Tromey <tromey@redhat.com>
6080
6081 * dwarf2read.c (recursively_write_psymbols): New function.
6082 (write_psymtabs_to_index): Use it.
6083
6084 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6085 field.
6086 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6087 (load_partial_comp_unit): Update.
6088 (queue_comp_unit): Add argument 'pretend_language'.
6089 (process_queue): Update.
6090 (psymtab_to_symtab_1): Skip dependencies that have a user.
6091 (load_partial_comp_unit_reader): Give meaning to the 'data'
6092 argument.
6093 (load_full_comp_unit): Add 'pretend_language' argument.
6094 (process_full_comp_unit): Add 'pretend_language' argument. Set
6095 language on CU.
6096 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6097 Update.
6098 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6099 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6100 Update.
6101 (prepare_one_comp_unit): Add 'pretend_language' argument.
6102
6103 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6104 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6105 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6106 (dw2_do_instantiate_symtab): Check whether symtab was read in
6107 before queueing.
6108 (dw2_instantiate_symtab): Add assertion. Call
6109 process_cu_includes.
6110 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6111 (partial_symtab_p): New typedef.
6112 (set_partial_user): New function.
6113 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6114 (scan_partial_symbols): Add imported CU to imported_symtabs.
6115 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6116 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6117 (get_symtab, recursively_compute_inclusions)
6118 (compute_symtab_includes, process_cu_includes)
6119 (process_imported_unit_die): New functions.
6120 (process_die) <DW_TAG_imported_unit>: New case.
6121 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6122
6123 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6124 comment.
6125 (struct partial_die_info) <locdesc>: Remove.
6126 <d>: New field.
6127 (process_psymtab_comp_unit): Add 'read_partial' argument.
6128 Update.
6129 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6130 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6131 (add_partial_symbol): Update.
6132 (process_die): Handle DW_TAG_partial_unit.
6133 (read_file_scope): Update comment.
6134 (load_partial_dies): Handle DW_TAG_imported_unit.
6135 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6136 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6137
6138 2012-05-10 Tom Tromey <tromey@redhat.com>
6139
6140 * cc-with-dwz.sh: New file.
6141
6142 2012-05-10 Tom Tromey <tromey@redhat.com>
6143
6144 * symtab.h (struct symtab) <includes, user>: New fields.
6145 * block.h (struct block_iterator) <d, idx, which>: New fields.
6146 * block.c (initialize_block_iterator, find_iterator_symtab)
6147 (block_iterator_step, block_iter_name_step)
6148 (block_iter_match_step): New functions.
6149 (block_iterator_first, block_iterator_next)
6150 (block_iter_name_first, block_iter_name_next)
6151 (block_iter_match_first, block_iter_match_next): Rewrite.
6152 (get_block_symtab): New function.
6153
6154 2012-05-10 Tom Tromey <tromey@redhat.com>
6155
6156 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6157 set_block_symtab.
6158 * jit.c (finalize_symtab): Use allocate_global_block,
6159 set_block_symtab.
6160 * buildsym.c (finish_block_internal): New function, from old
6161 finish_block.
6162 (finish_block): Rewrite.
6163 (end_symtab): Use finish_block_internal, set_block_symtab.
6164 * block.h (struct global_block): New.
6165 (allocate_global_block, set_block_symtab): Declare.
6166 * block.c (allocate_global_block, set_block_symtab): New
6167 functions.
6168
6169 2012-05-10 Tom Tromey <tromey@redhat.com>
6170
6171 * psymtab.c (partial_map_expand_apply): Add assertion.
6172 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6173 (psymtab_to_symtab): Find unshared psymtab.
6174 (dump_psymtab): Print including psymtabs.
6175 (recursively_search_psymtabs): New function.
6176 (expand_symtabs_matching_via_partial): Use it.
6177 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6178 fields.
6179 (enum psymtab_search_status): New.
6180
6181 2012-05-10 Tom Tromey <tromey@redhat.com>
6182
6183 * tracepoint.c (scope_info): Update.
6184 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6185 (find_pc_sect_symtab, search_symbols)
6186 (default_make_symbol_completion_list_break_on)
6187 (make_file_symbol_completion_list): Update.
6188 * symmisc.c (dump_symtab_1): Update.
6189 * stack.c (print_frame_args, iterate_over_block_locals)
6190 (print_frame_labels, iterate_over_block_arg_vars): Update.
6191 * python/py-block.c (block_object) <dict>: Remove.
6192 <block>: New field.
6193 <iter>: Change type.
6194 (blpy_iter): Update.
6195 (blpy_block_syms_iternext): Update.
6196 * psymtab.c (map_block): Use block iterators.
6197 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6198 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6199 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6200 * infrun.c (check_exception_resume): Update.
6201 * cp-support.c (make_symbol_overload_list_block): Update.
6202 * coffread.c (patch_opaque_types): Update.
6203 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6204 * block.h (struct block_iterator): New.
6205 (block_iterator_first, block_iterator_next, block_iter_name_first)
6206 (block_iter_name_next, block_iter_match_first)
6207 (block_iter_match_next): Declare.
6208 (ALL_BLOCK_SYMBOLS): Redefine.
6209 * block.c (block_iterator_first, block_iterator_next)
6210 (block_iter_name_first, block_iter_name_next)
6211 (block_iter_match_first, block_iter_match_next): New functions.
6212 * ada-lang.c (ada_add_block_symbols)
6213 (ada_make_symbol_completion_list): Use block iterator.
6214
6215 2012-05-10 Tom Tromey <tromey@redhat.com>
6216
6217 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6218 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6219 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6220 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6221 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6222 Update.
6223
6224 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6225
6226 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6227 print-file-var-lib2.c, print-file-var-main.c and
6228 print-file-var.exp (located in gdb/testsuite/gdb.base).
6229
6230 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6231
6232 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6233 try locating the symbol in the symbol's own objfile first, before
6234 extending the search to all objfiles.
6235 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6236 out of lookup_symbol_aux_symtabs.
6237 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6238 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6239 Do not search EXCLUDE_OBJFILE.
6240 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6241 (lookup_symbol_global): Search for matches in the block's objfile
6242 first, before searching all other objfiles.
6243
6244 2012-05-10 Tristan Gingold <gingold@adacore.com>
6245
6246 * printcmd.c (set_command): Add pre/post inc/dec.
6247
6248 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6249
6250 * gdb.1: Document -ex option.
6251
6252 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6253
6254 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6255 * inferior.h (AT_SYMBOL): Delete.
6256
6257 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6258
6259 * mips-tdep.c (mips_push_dummy_code): New function.
6260 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6261 ON_STACK and install mips_push_dummy_code as our gdbarch
6262 push_dummy_code routine.
6263
6264 2012-05-09 Pedro Alves <palves@redhat.com>
6265
6266 * target.c (set_maintenance_target_async_permitted): Rename to ...
6267 (set_target_async_command): ... this.
6268 (show_maintenance_target_async_permitted): Rename to ...
6269 (show_target_async_command): ... this.
6270 (initialize_targets): Adjust.
6271
6272 2012-05-08 Doug Evans <dje@google.com>
6273
6274 * go-exp.y (classify_name): Add missing assignment of fields of
6275 yylval.ssym.
6276
6277 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6278
6279 Display the ">" prompt in interactive mode while reading canned
6280 commands, even when the current interpreter is MI.
6281
6282 * interps.c (interp_set_temp): New function.
6283
6284 * interps.h (interp_set_temp): Add prototype.
6285
6286 * cli/cli-script.c (restore_interp): New cleanup function.
6287 (read_command_lines): Temporarily override the current interpreter
6288 with CLI and arrange for restoring the original one.
6289
6290 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6291
6292 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6293
6294 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6295
6296 * probe.c (parse_probes): Move conditional to check for
6297 debuginfo files from here...
6298 * stap-probe.c (stap_get_probes): ... to here.
6299
6300 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6301 H.J. Lu <hongjiu.lu@intel.com>
6302
6303 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6304 `movl %esp, %ebp' for the X32 ABI.
6305
6306 2012-05-07 Tom Tromey <tromey@redhat.com>
6307
6308 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6309 get_DW_TAG_name.
6310 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6311 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6312 (dwarf_stack_op_name): Remove.
6313 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6314 (decode_locdesc): Use get_DW_OP_name.
6315 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6316 (dwarf2_compile_expr_to_ax): Likewise.
6317 (disassemble_dwarf_expression): Likewise.
6318 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6319
6320 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6321
6322 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6323 (sh_linux_sigtramp_cache): New function.
6324 (sh_linux_sigreturn_init): New function.
6325 (sh_linux_rt_sigreturn_init): New function.
6326 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6327 patterns.
6328 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6329 syscall codes.
6330 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6331 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6332 (sh_linux_init_abi): Add init calls to register new tramp_frame
6333 definitions under 32-bit SH, update comments.
6334
6335 2012-05-07 Pedro Alves <palves@redhat.com>
6336
6337 PR gdb/10952
6338
6339 * amd64-linux-tdep.c: Include glibc-tdep.h.
6340 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6341 gdbarch_skip_solib_resolver callback.
6342
6343 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6346 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6347 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6348 (add_auto_load_safe_path): Change the error message.
6349 (_initialize_auto_load): Change the "safe-path" help text.
6350 * configure: Regenerate
6351 * configure.ac (--without-auto-load-safe-path): Set
6352 WITH_AUTO_LOAD_SAFE_PATH to /.
6353
6354 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6355
6356 * stap-probe.h: Do not include unecessary `probe.h'.
6357
6358 2012-05-05 Alan Modra <amodra@gmail.com>
6359
6360 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6361 bfd_und_section_ptr.
6362 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6363 and bfd_com_section_ptr.
6364
6365 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6366
6367 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6368
6369 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6370
6371 * windows-nat.h (segment_register_p_ftype): New typedef.
6372 (windows_set_segment_register_p): Add declaration.
6373 * windows-nat.c (segment_register_p): New static global.
6374 (windows_set_segment_register_p): New function.
6375 (do_windows_fetch_inferior_registers): Add special handling
6376 for segment registers.
6377 * amd64-windows-nat.c: #include "amd64-tdep.h".
6378 (amd64_windows_segment_register_p): New function.
6379 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6380 * i386-windows-nat.c: #include "i386-tdep.h".
6381 (i386_windows_segment_register_p): New function.
6382 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6383
6384 2012-05-04 Tristan Gingold <gingold@adacore.com>
6385
6386 * printcmd.c (set_command): Emit a warning if the expression is not
6387 an assignment.
6388
6389 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6390
6391 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6392 Make static.
6393
6394 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6395
6396 * stap-probe.c (stap_is_operator): Change declaration.
6397 (stap_get_opcode): Change return value.
6398 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6399 `stap_parse_argument_1'.
6400
6401 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6402
6403 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6404 debug log.
6405
6406 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6407
6408 Add two new methods global_block and static_block to gdb.Symtab
6409 objects.
6410 * NEWS (Python scripting): Add entry about the new methods.
6411 * python/py-symtab.c (stpy_global_block): New function which
6412 implements the gdb.Symtab.global_block() method.
6413 (stpy_static_block): New function which implements the
6414 gdb.Symtab.static_block() method.
6415 (symtab_object_methods): Add entries for the two new methods.
6416
6417 2012-05-03 Doug Evans <dje@google.com>
6418
6419 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6420 files.
6421
6422 2012-05-03 Yao Qi <yao@codesourcery.com>
6423
6424 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6425 space.
6426 (i386_process_record): Ditto.
6427
6428 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6429
6430 * infcall.c (unwind_on_signal_p): Make static.
6431
6432 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6433
6434 * sol-thread.c (solaris_pid_to_str): Make static.
6435 (_initialize_sol_thread): Add prototype.
6436
6437 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6438
6439 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6440
6441 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6442
6443 * MAINTAINERS: Remove myself.
6444
6445 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6446
6447 Fix --without-auto-load-safe-path for MS-Windows host platform.
6448 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6449
6450 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6451
6452 * gdb_curses.h: Undefine KEY_EVENT before including curses
6453 headers. Move "#undef MOUSE_MOVED" before any curses header
6454 inclusion.
6455
6456 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6457
6458 * features/i386/i386-mmx-linux.c: Regenerate.
6459 * features/rs6000/powerpc-32.c: Likewise.
6460 * features/rs6000/powerpc-32l.c: Likewise.
6461 * features/rs6000/powerpc-403.c: Likewise.
6462 * features/rs6000/powerpc-403gc.c: Likewise.
6463 * features/rs6000/powerpc-405.c: Likewise.
6464 * features/rs6000/powerpc-505.c: Likewise.
6465 * features/rs6000/powerpc-601.c: Likewise.
6466 * features/rs6000/powerpc-602.c: Likewise.
6467 * features/rs6000/powerpc-603.c: Likewise.
6468 * features/rs6000/powerpc-604.c: Likewise.
6469 * features/rs6000/powerpc-64.c: Likewise.
6470 * features/rs6000/powerpc-64l.c: Likewise.
6471 * features/rs6000/powerpc-750.c: Likewise.
6472 * features/rs6000/powerpc-860.c: Likewise.
6473 * features/rs6000/powerpc-e500.c: Likewise.
6474 * features/rs6000/powerpc-e500l.c: Likewise.
6475 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6476 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6477 * features/rs6000/rs6000.c: Likewise.
6478
6479 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6480
6481 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6482 variable.
6483 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6484 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6485 (stap_parse_argument) <e>: Likewise.
6486 (handle_stap_probe) <byte_order>: Likewise.
6487
6488 2012-04-30 Doug Evans <dje@google.com>
6489
6490 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6491 init_and_read_dies_worker. All callers updated.
6492 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6493 replaced with init_cutu_and_read_dies.
6494 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6495 (find_partial_die): Remove FIXME. Don't free current CU.
6496
6497 2012-04-30 Sterling Augustine <saugustine@google.com>
6498
6499 * contrib: New directory.
6500 * contrib/test_pubnames_and_indexes.py: New file.
6501
6502 2012-04-30 Doug Evans <dje@google.com>
6503
6504 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6505 All callers updated.
6506 (init_cu_die_reader): Verify the section is non-empty.
6507 (dwarf_decode_line_header): Don't dereference section->asection
6508 until we know the section is present.
6509
6510 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6511
6512 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6513 probes.
6514
6515 2012-04-29 Yao Qi <yao@codesourcery.com>
6516
6517 * gdb-code-style.el: New hook gdb-markup-hook
6518 and gdb-comment-hook.
6519
6520 2012-04-28 Doug Evans <dje@google.com>
6521
6522 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6523 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6524 objfile->obfd.
6525 * symfile.h (dwarf2_debug_sections): New member addr.
6526 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6527 (ctx_no_get_addr_index): New function.
6528 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6529 (ctx_no_get_addr_index): Declare.
6530 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6531 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6532 (dwarf_expr_ctx_funcs): Update.
6533 (needs_get_addr_index): New function.
6534 (needs_frame_ctx_funcs): Update.
6535 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6536 * dwarf2read.c: #include "gdbcore.h".
6537 (dwarf2_per_objfile): New members addr, dwo_files.
6538 (dwarf2_elf_names): Add entry for addr.
6539 (struct dwo_section_names): New type.
6540 (dwo_section_names): New static global.
6541 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6542 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6543 old debug_types_section member updated to use this.
6544 Rename member debug_types_section to info_or_types_section,
6545 all uses updated.
6546 (signatured_type): Rename member type_offset to type_offset_in_tu,
6547 all uses updated. New member type_offset_in_section.
6548 (struct dwo_sections): New type.
6549 (struct dwo_unit): New type.
6550 (struct dwo_file): New type.
6551 (die_reader_specs): New member dwo_file.
6552 (dwarf2_locate_sections): Watch for .debug_addr.
6553 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6554 (dwarf2_read_section): Get bfd of section from bfd's asection,
6555 instead of objfile.
6556 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6557 (create_signatured_type_table_from_index): Initialize
6558 sig_type->info_or_types_section.
6559 (dw2_get_file_names): Statement lists for type units with DWO files
6560 live in the DWO file.
6561 (create_debug_types_hash_table): New function.
6562 (create_all_type_units): Rewrite.
6563 (init_cu_die_reader): New arg dwo_file, all callers updated.
6564 (init_and_read_dies_worker): Get section from
6565 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6566 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6567 continue reading the CU/TU from there.
6568 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6569 updated. Get section from this_cu->info_or_types_section.
6570 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6571 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6572 DW_FORM_GNU_str_index.
6573 (hash_dwo_file, eq_dwo_file): New functions.
6574 (allocate_dwo_file_hash_table): New function.
6575 (hash_dwo_unit, eq_dwo_unit): New functions.
6576 (allocate_dwo_unit_table): New function.
6577 (dwarf2_locate_dwo_sections): New function.
6578 (struct create_dwo_info_table_data): New type.
6579 (create_debug_info_hash_table_reader): New function.
6580 (create_debug_info_hash_table): New function.
6581 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6582 (lookup_dwo_file): New function.
6583 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6584 (free_dwo_file, free_dwo_file_cleanup): New functions.
6585 (free_dwo_file_from_slot, free_dwo_files): New functions.
6586 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6587 (dwarf2_record_block_ranges): Ditto.
6588 (read_partial_die): Ditto.
6589 (process_enumeration_scope): Update to use type_offset_in_section.
6590 (read_full_die_1): New function.
6591 (read_full_die): Rewrite.
6592 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6593 DW_FORM_GNU_str_index.
6594 (read_addr_index_1, read_addr_index): New functions.
6595 (read_addr_index_from_leb128): New function.
6596 (struct dwarf2_read_addr_index_data): New type.
6597 (dwarf2_read_addr_index_reader): New function.
6598 (dwarf2_read_addr_index): New function.
6599 (read_str_index): New function.
6600 (leb128_size): New function.
6601 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6602 If processing a type unit from a DWO file, get the line section
6603 from the DWO file.
6604 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6605 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6606 DW_FORM_GNU_str_index.
6607 (lookup_die_type): Check whether section offset of type's die is
6608 known before looking it up. Remove assert. Condition can
6609 legimately happen for inter-cu type references.
6610 (dwarf_attr_name): Handle Fission attributes.
6611 (dwarf_form_name): Handle Fission forms.
6612 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6613 DW_FORM_GNU_str_index.
6614 (follow_die_sig): Update to use type_offset_in_section.
6615 (decode_locdesc): New case DW_OP_GNU_addr_index.
6616 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6617 DW_FORM_GNU_str_index.
6618 (cu_debug_loc_section): New function.
6619 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6620 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6621 Free DWO files if present.
6622 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6623
6624 Refactor DIE reading.
6625 * dwarf2read.c (dwarf2_per_objfile): Replace members
6626 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6627 (die_reader_specs): New member "die_section". Temporarily make
6628 member "buffer" non-const, pending constifying all info_ptr uses.
6629 (die_reader_func_ftype): New typedef.
6630 (dw2_get_file_names_reader): New function.
6631 (dw2_get_file_names): Rewrite.
6632 (read_and_check_type_unit_head): Rename arg type_offset to
6633 type_offset_in_tu.
6634 (create_all_type_units): Improve debugging message.
6635 Improve dummy type unit check.
6636 (init_cu_die_reader): New arg "section". All callers updated.
6637 (init_and_read_dies_worker): New function.
6638 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6639 (init_cutu_and_read_dies_no_follow): New function.
6640 (init_cutu_and_read_dies_simple): New function.
6641 (process_psymtab_comp_unit_reader): New function.
6642 (process_psymtab_comp_unit): Delete args section,
6643 is_debug_types_section. Rewrite. All callers updated.
6644 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6645 All callers updated. Rewrite.
6646 (load_partial_comp_unit_reader): New function.
6647 (load_partial_comp_unit): Rewrite.
6648 (skip_children): New arg reader. Delete args buffer, cu.
6649 All callers updated.
6650 (skip_one_die): New arg reader. Delete args buffer, cu.
6651 All callers updated.
6652 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6653 All callers updated.
6654 (load_full_comp_unit_reader): New function.
6655 (load_full_comp_unit): Rewrite.
6656 (read_comp_unit): Delete.
6657 (read_die_and_children_1): Delete, contents moved ...
6658 (read_die_and_children): ... here.
6659 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6660 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6661 All callers updated.
6662 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6663 All callers updated.
6664 (find_partial_die): Rewrite load_all_dies support.
6665 (read_attribute_value): New arg reader. Delete args abfd, cu.
6666 All callers updated.
6667 (read_attribute): New arg reader. Delete args abfd, cu.
6668 All callers updated.
6669 (load_full_type_unit): Add assert.
6670 (read_signatured_type_reader): New function.
6671 (read_signatured_type): Rewrite.
6672 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6673 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6674 All callers updated. Set per_cu->cu = NULL after freeing it.
6675 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6676 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6677 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6678 (set_die_type): Update.
6679 (get_die_type_at_offset): Update.
6680 (read_file_scope): Call prepare_one_comp_unit.
6681 (read_type_unit_scope): Ditto.
6682 (prepare_one_comp_unit): Set producer if present.
6683
6684 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6685
6686 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6687 gettext function on `error'.
6688
6689 2012-04-27 Doug Evans <dje@google.com>
6690
6691 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6692 is empty.
6693
6694 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6695 Tom Tromey <tromey@redhat.com>
6696
6697 * breakpoint.c (struct breakpoint_objfile_data)
6698 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6699 <exception_probes>: New fields.
6700 (free_breakpoint_probes): New function.
6701 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6702 `_Unwind_DebugHook'.
6703 (create_exception_master_breakpoint): Likewise.
6704 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6705 * infrun.c: Including necessary header files for handling SystemTap
6706 probes.
6707 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6708 via SystemTap probes.
6709 (check_exception_resume): Remove `func' argument. Handle exception
6710 unwinding breakpoint set via a SystemTap probe.
6711 (insert_exception_resume_from_probe): New function.
6712
6713 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6714 Tom Tromey <tromey@redhat.com>
6715 Jan Kratochvil <jan.kratochvil@redhat.com>
6716
6717 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6718 (COMMON_OBS): Likewise.
6719 (HFILES_NO_SRCDIR): Add `probe'.
6720 * NEWS: Mention support for static and SystemTap probes.
6721 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6722 SystemTap probes' arguments parser.
6723 * arm-linux-tdep.c: Including headers needed to perform the parsing
6724 of SystemTap probes' arguments.
6725 (arm_stap_is_single_operand): New function.
6726 (arm_stap_parse_special_token): Likewise.
6727 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6728 probes' arguments parser.
6729 * ax-gdb.c (require_rvalue): Removing static declaration.
6730 (gen_expr): Likewise.
6731 * ax-gdb.h (gen_expr): Declaring function.
6732 (require_rvalue): Likewise.
6733 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6734 (bkpt_probe_breakpoint_ops): New variable.
6735 (momentary_breakpoint_from_master): Set the `probe' value.
6736 (add_location_to_breakpoint): Likewise.
6737 (break_command_1): Using proper breakpoint_ops according to the
6738 argument passed by the user in the command line.
6739 (bkpt_probe_insert_location): New function.
6740 (bkpt_probe_remove_location): Likewise.
6741 (bkpt_probe_create_sals_from_address): Likewise.
6742 (bkpt_probe_decode_linespec): Likewise.
6743 (tracepoint_probe_create_sals_from_address): Likewise.
6744 (tracepoint_probe_decode_linespec): Likewise.
6745 (tracepoint_probe_breakpoint_ops): New variable.
6746 (trace_command): Using proper breakpoint_ops according to the
6747 argument passed by the user in the command line.
6748 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6749 static probes on breakpoints and tracepoints.
6750 * breakpoint.h (struct bp_location) <probe>: New field.
6751 * cli-utils.c (skip_spaces_const): New function.
6752 (extract_arg): Likewise.
6753 * cli-utils.h (skip_spaces_const): Likewise.
6754 (extract_arg): Likewise.
6755 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6756 * configure.ac: Append `stap-probe.o' to be generated when ELF
6757 support is present.
6758 * configure: Regenerate.
6759 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6760 * elfread.c: Include `probe.h' and `arch-utils.h'.
6761 (probe_key): New variable.
6762 (elf_get_probes): New function.
6763 (elf_get_probe_argument_count): Likewise.
6764 (elf_evaluate_probe_argument): Likewise.
6765 (elf_compile_to_ax): Likewise.
6766 (elf_symfile_relocate_probe): Likewise.
6767 (stap_probe_key_free): Likewise.
6768 (elf_probe_fns): New variable.
6769 (elf_sym_fns): Add `sym_probe_fns' value.
6770 (elf_sym_fns_lazy_psyms): Likewise.
6771 (elf_sym_fns_gdb_index): Likewise.
6772 (_initialize_elfread): Initialize objfile cache for static
6773 probes.
6774 * gdb_vecs.h (struct probe): New forward declaration.
6775 (probe_p): New VEC declaration.
6776 * gdbarch.c: Regenerate.
6777 * gdbarch.h: Regenerate.
6778 * gdbarch.sh (stap_integer_prefix): New variable.
6779 (stap_integer_suffix): Likewise.
6780 (stap_register_prefix): Likewise.
6781 (stap_register_suffix): Likewise.
6782 (stap_register_indirection_prefix): Likewise.
6783 (stap_register_indirection_suffix): Likewise.
6784 (stap_gdb_register_prefix): Likewise.
6785 (stap_gdb_register_suffix): Likewise.
6786 (stap_is_single_operand): New function.
6787 (stap_parse_special_token): Likewise.
6788 (struct stap_parse_info): Forward declaration.
6789 * i386-tdep.c: Including headers needed to perform the parsing
6790 of SystemTap probes' arguments.
6791 (i386_stap_is_single_operand): New function.
6792 (i386_stap_parse_special_token): Likewise.
6793 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6794 probes' arguments parser.
6795 * i386-tdep.h (i386_stap_is_single_operand): New function.
6796 (i386_stap_parse_special_token): Likewise.
6797 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6798 * mipsread.c (ecoff_sym_fns): Likewise.
6799 * objfiles.c (objfile_relocate1): Support relocation for static
6800 probes.
6801 * parse.c (prefixify_expression): Remove static declaration.
6802 (initialize_expout): Likewise.
6803 (reallocate_expout): Likewise.
6804 * parser-defs.h (initialize_expout): Declare function.
6805 (reallocate_expout): Likewise.
6806 (prefixify_expression): Likewise.
6807 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6808 of SystemTap probes' arguments.
6809 (ppc_stap_is_single_operand): New function.
6810 (ppc_stap_parse_special_token): Likewise.
6811 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6812 probes' arguments parser.
6813 * probe.c: New file, for generic statically defined probe support.
6814 * probe.h: Likewise.
6815 * s390-tdep.c: Including headers needed to perform the parsing of
6816 SystemTap probes' arguments.
6817 (s390_stap_is_single_operand): New function.
6818 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6819 probes' arguments parser.
6820 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6821 * stap-probe.c: New file, for SystemTap probe support.
6822 * stap-probe.h: Likewise.
6823 * symfile.h: Include `gdb_vecs.h'.
6824 (struct sym_probe_fns): New struct.
6825 (struct sym_fns) <sym_probe_fns>: New field.
6826 * symtab.c (init_sal): Initialize `probe' field.
6827 * symtab.h (struct probe): Forward declaration.
6828 (struct symtab_and_line) <probe>: New field.
6829 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6830 locations.
6831 (stop_tracing): Likewise.
6832 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6833
6834 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6835 Tom Tromey <tromey@redhat.com>
6836
6837 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6838 and to compile agent expressions.
6839 * infrun.c (siginfo_make_value): New argument `ignore'.
6840 (siginfo_funcs): New struct.
6841 (_initialize_infrun): New argument when calling
6842 `create_internalvar_type_lazy'.
6843 * thread.c (thread_id_make_value): New argument `ignore'.
6844 (thread_funcs): New struct.
6845 (_initialize_thread): New argument when calling
6846 `create_internalvar_type_lazy'.
6847 * tracepoint.c (sdata_make_value): New argument `ignore'.
6848 (sdata_funcs): New struct.
6849 (_initialize_tracepoint): New argument when calling
6850 `create_internalvar_type_lazy'.
6851 * value.c (make_value): New struct.
6852 (create_internalvar_type_lazy): New argument `data'.
6853 (compile_internalvar_to_ax): New function.
6854 (value_of_internalvar): Properly handling `make_value' case.
6855 (clear_internalvar): Likewise.
6856 (show_convenience): Adding `TRY_CATCH' block.
6857 * value.h (internalvar_make_value): Delete, replace by...
6858 (struct internalvar_funcs): ... this.
6859 (create_internalvar_type_lazy) <fun>: Delete argument.
6860 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6861 (compile_internalvar_to_ax): New function.
6862 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6863 (tlb_funcs): New struct.
6864 (_initialize_windows_tdep): New argument when calling
6865 `create_internalvar_type_lazy'.
6866
6867 2012-04-27 Mark Wielaard <mjw@redhat.com>
6868
6869 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6870 see whether it is an address or a constant offset from DW_AT_low_pc.
6871 (dwarf2_record_block_ranges): Likewise.
6872 (read_partial_die): Likewise.
6873
6874 2012-04-26 Mark Wielaard <mjw@redhat.com>
6875
6876 * MAINTAINERS (Write After Approval): Add myself to the list.
6877
6878 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6879
6880 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6881 (proc_prettyprint_signal): Likewise.
6882 (proc_prettyprint_faultset): Likewise.
6883 (proc_prettyprint_fault): Likewise.
6884 (proc_prettyprint_actionset): Likewise.
6885 (proc_prettyprint_flags): Move to new proc-flags.c section.
6886 (proc_prettyfprint_flags): New prototype.
6887 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6888 (proc_syscall, proc_cursig): Likewise.
6889 (proc_set_kill_on_last_close): Likewise.
6890 (proc_unset_kill_on_last_close): Likewise.
6891 (proc_set_watchpoint): Make static.
6892 (proc_delete_dead_threads): Likewise.
6893 (procfs_set_watchpoint): Likewise.
6894 (_initialize_procfs): Add prototype.
6895 * proc-events.c: Include proc-utils.h.
6896 (init_syscall_table): Make static.
6897 * proc-api.c (_initialize_proc_api): Add prototype.
6898 * proc-flags.c: Include proc-utils.h.
6899
6900 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6901
6902 * configure.ac: Add AC_ARG_PROGRAM.
6903 * configure: Regenerate.
6904
6905 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 Fix DW_AT_lower_bound defaults for DWARF-4+.
6908 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6909 high. New variable low_default_is_valid. Implement DWARF-4+
6910 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6911 no default by the DWARF standard.
6912
6913 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6914 Maciej W. Rozycki <macro@codesourcery.com>
6915
6916 * infrun.c (handle_inferior_event): Move the check for return
6917 trampolines ahead of the check for function trampolines.
6918 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6919 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6920 (mips_str_mips16_ret_stub): Likewise.
6921 (mips_str_call_fp_stub): Likewise.
6922 (mips_str_call_stub): Likewise.
6923 (mips_str_fn_stub): Likewise.
6924 (mips_str_pic): Likewise.
6925 (mips_in_frame_stub): New function.
6926 (mips_unwind_pc): Return the return address rather than the PC
6927 if the PC of an intermediate frame is inside a call thunk.
6928 (mips_is_stub_suffix): New function.
6929 (mips_is_stub_mode): Likewise.
6930 (mips_get_mips16_fn_stub_pc): Likewise.
6931 (mips_skip_mips16_trampoline_code): Update to handle all the
6932 currently generated stub types. Don't recurse into __fn_stub
6933 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6934 Use cooked register accesses.
6935 (mips_in_return_stub): Reintroduce function.
6936 (mips_skip_trampoline_code): Traverse trampolines recursively.
6937 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6938
6939 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6940
6941 GDB 7.4.1 released.
6942
6943 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6944
6945 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6946 * features/arm-with-m-vfp-d16.xml: New file. Describes
6947 Cortex-M with VFPv4-sp-d16 FPU register layout.
6948 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6949 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6950 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6951 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6952 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6953
6954 2012-04-25 Doug Evans <dje@google.com>
6955
6956 * cli/cli-decode.c (print_doc_line): Use stream instead of
6957 current_uiout.
6958
6959 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6960
6961 * features/arm-with-iwmmxt.c: Regenerate.
6962 * features/arm-with-m-fpa-layout.c: Likewise.
6963 * features/arm-with-m.c: Likewise.
6964 * features/arm-with-neon.c: Likewise.
6965 * features/arm-with-vfpv2.c: Likewise.
6966 * features/arm-with-vfpv3.c: Likewise.
6967 * features/mips-dsp-linux.c: Likewise.
6968 * features/mips-linux.c: Likewise.
6969 * features/mips64-dsp-linux.c: Likewise.
6970 * features/mips64-linux.c: Likewise.
6971 * features/s390-linux32.c: Likewise.
6972 * features/s390-linux32v1.c: Likewise.
6973 * features/s390-linux32v2.c: Likewise.
6974 * features/s390-linux64.c: Likewise.
6975 * features/s390-linux64v1.c: Likewise.
6976 * features/s390-linux64v2.c: Likewise.
6977 * features/s390x-linux64.c: Likewise.
6978 * features/s390x-linux64v1.c: Likewise.
6979 * features/s390x-linux64v2.c: Likewise.
6980 * features/tic6x-c62x-linux.c: Likewise.
6981 * features/tic6x-c62x.c: Likewise.
6982 * features/tic6x-c64x-linux.c: Likewise.
6983 * features/tic6x-c64x.c: Likewise.
6984 * features/tic6x-c64xp-linux.c: Likewise.
6985 * features/tic6x-c64xp.c: Likewise.
6986 * target-descriptions.c: Only generate `field_type' and `type'
6987 variables when needed.
6988
6989 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6990
6991 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6992
6993 2012-04-25 Doug Evans <dje@google.com>
6994
6995 Initial pass at Go language support.
6996 * NEWS: Mention Go.
6997 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6998 go-valprint.c.
6999 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7000 (YYFILES): Add go-exp.c.
7001 (YYOBJ): Add go-exp.o.
7002 (local-maintainer-clean): Delete go-exp.c.
7003 * defs.h (enum language): Add language_go.
7004 * dwarf2read.c: #include "go-lang.h".
7005 (fixup_go_packaging): New function.
7006 (process_full_comp_unit): Call it when processing Go CUs.
7007 (dwarf2_physname): Add Go support.
7008 (read_file_scope): Handle missing language spec for GNU Go.
7009 (set_cu_language): Handle DW_LANG_Go.
7010 * go-exp.y: New file.
7011 * go-lang.h: New file.
7012 * go-lang.c: New file.
7013 * go-typeprint.c: New file.
7014 * go-valprint.c: New file.
7015 * symtab.c: #include "go-lang.h".
7016 (symbol_set_language): Handle language_go.
7017 (symbol_find_demangled_name, symbol_set_names): Ditto.
7018 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7019
7020 2012-04-24 Jim Meyering <meyering@redhat.com>
7021
7022 avoid a few strncpy-induced buffer overruns
7023 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7024 fname and psargs before trying to concatenate.
7025 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7026 "name" before applying strchr.
7027
7028 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7029
7030 * CONTRIBUTE: Use unified diff instead of context diff when
7031 generating patches.
7032
7033 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7034
7035 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7036 code. Handle JR.HB correctly.
7037
7038 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7039
7040 * mips-tdep.c
7041 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7042 with the other MIPS16 helpers.
7043
7044 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7045
7046 * observer.sh: Conditionally declare `args', thus cleaning up
7047 unused instances of this variable.
7048
7049 2012-04-24 Yao Qi <yao@codesourcery.com>
7050
7051 Revert this patch to allow breakpoint always-inserted
7052 in record target.
7053 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7054 * breakpoint.c: Include record.h.
7055 (breakpoints_always_inserted_mode): Return false when the record
7056 target is in use.
7057
7058 * breakpoint.c (iterate_over_bp_locations): New.
7059 * breakpoint.h: Declare.
7060 New typedef walk_bp_location_callback.
7061 * record.c (record_open): Call record_init_record_breakpoints.
7062 (record_sync_record_breakpoints): New.
7063 (record_init_record_breakpoints): New.
7064 * NEWS: Mention supporting breakpoint always-inserted mode in
7065 record target.
7066
7067 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7068
7069 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7070 any thread.
7071
7072 2012-04-24 Yao Qi <yao@codesourcery.com>
7073
7074 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7075 (is_catchpoint): ... it.
7076 (print_one_breakpoint_location): Caller update.
7077 * breakpoint.h: Update declaration.
7078
7079 2012-04-23 David S. Miller <davem@davemloft.net>
7080
7081 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7082
7083 2012-04-23 Tom Tromey <tromey@redhat.com>
7084
7085 * buildsym.c (add_free_pendings): Remove.
7086 * buildsym.h (add_free_pendings): Remove.
7087
7088 2012-04-23 Doug Evans <dje@google.com>
7089
7090 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7091 attr.u.unsnd instead of attr.u.addr.
7092 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7093 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7094 DW_FORM_ref_udata.
7095 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7096 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7097 DW_FORM_ref_udata.
7098 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7099
7100 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7101
7102 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7103 (mips_o32_return_value): Likewise.
7104 (mips_o64_return_value): Likewise.
7105
7106 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7107
7108 * ada-lang.c (ada_evaluate_subexp): Add cases for
7109 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7110 their treatment in eval.c.
7111
7112 2012-04-21 David S. Miller <davem@davemloft.net>
7113
7114 * sparc-tdep.c (X_DISP10): Define.
7115 (sparc_analyze_control_transfer): Handle compare-and-branch.
7116
7117 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7118
7119 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7120 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7121
7122 2012-04-20 Nigel Stephens <nigel@mips.com>
7123 Maciej W. Rozycki <macro@codesourcery.com>
7124
7125 * mips-tdep.c (mips_float_register_p): New function.
7126 (mips_convert_register_float_case_p): Use mips_float_register_p.
7127 (mips_register_type): Likewise.
7128 (mips_print_register): Likewise.
7129 (print_gp_register_row): Likewise.
7130 (mips_print_registers_info): Likewise.
7131
7132 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7133
7134 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7135 of mips16 symbols.
7136
7137 2012-04-20 Andrew Pinski <apinski@cavium.com>
7138
7139 * MAINTAINERS (Write After Approval): Add myself to the list.
7140
7141 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7142
7143 * MAINTAINERS: Update my e-mail address.
7144
7145 2012-04-20 Pedro Alves <palves@redhat.com>
7146
7147 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7148 $srcdir.
7149 * configure: Regenerate.
7150
7151 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7152
7153 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7154 declaration.
7155 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7156
7157 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7158
7159 Fix compilation compatibility with python-2.4
7160 * python/py-type.c (convert_field): Cast ADDRSTRING for
7161 PyObject_SetAttrString as non-const. New comment.
7162
7163 2012-04-19 Tom Tromey <tromey@redhat.com>
7164
7165 * top.c (quit_target): Use all_cleanups.
7166 * main.c (captured_command_loop): Use all_cleanups.
7167 * exceptions.c (throw_exception): Use all_cleanups.
7168
7169 2012-04-19 Pedro Alves <palves@redhat.com>
7170
7171 * Makefile.in (GNULIB_BUILDDIR): New.
7172 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7173 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7174 (CLEANDIRS). Remove gnulib/import.
7175 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7176 (all-lib): Ditto.
7177 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7178 (gnulib/import/Makefile): Replace gnulib/import with
7179 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7180 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7181 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7182 acx_configure_dir.m4.
7183 * acinclude.m4: Include acx_configure_dir.m4.
7184 * acx_configure_dir.m4: New file.
7185 * aclocal.m4: Regenerate.
7186 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7187 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7188 (GNULIB): New variable.
7189 (GNULIB_STDINT_H): Adjust.
7190 (AC_OUTPUT): Don't output gnulib/Makefile.
7191 * gdb/defs.h: Include build-gnulib/config.h.
7192 * aclocal.m4: Regenerate.
7193 * config.in: Regenerate.
7194 * configure: Regenerate.
7195
7196 * gnulib/Makefile.in: New file.
7197 * gnulib/configure.ac: New file.
7198 * gnulib/aclocal.m4: New file.
7199 * gnulib/config.in: New file.
7200 * gnulib/configure: New file.
7201 * gnulib/: Re-run gnulib-tool to adjust.
7202
7203 2012-04-19 Doug Evans <dje@google.com>
7204
7205 * cleanups.h (struct cleanup): Move to cleanups.c.
7206 (make_cleanup_dtor_ftype): New typedef.
7207 (make_cleanup_dtor): Use it.
7208 (ALL_CLEANUPS): Replace with ...
7209 (all_cleanups): ... this. Declare. All uses updated.
7210 * cleanups.c: #include "gdb_assert.h".
7211 (sentinel_cleanup): New static global.
7212 (SENTINEL_CLEANUP): Define.
7213 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7214 (make_my_cleanup2): Assert result is non-NULL.
7215 (all_cleanups): New function.
7216 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7217 of NULL.
7218
7219 2012-04-19 Pedro Alves <palves@redhat.com>
7220
7221 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7222 Adjust paths to gnulib imported files.
7223
7224 2012-04-19 Pedro Alves <palves@redhat.com>
7225
7226 * gnulib/: Move whole directory ...
7227 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7228 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7229 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7230 (aclocal_m4_deps): Adjust.
7231 * aclocal.m4: Regenerate.
7232 * configure: Regenerate.
7233 * configure.ac: Adjust AC_OUTPUT output.
7234
7235 2012-04-19 Yao Qi <yao@codesourcery.com>
7236
7237 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7238 (vec.o): New rule.
7239 * vec.c: Move it ...
7240 * common/vec.c: ... here.
7241 * vec.h: Move it ...
7242 * common/vec.h: ... here.
7243
7244 2012-04-19 Yao Qi <yao@codesourcery.com>
7245
7246 * gdb-code-style.el: New.
7247
7248 2012-04-18 Pedro Alves <palves@redhat.com>
7249
7250 Update gnulib from latest git.
7251 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7252
7253 * gnulib/Makefile.am: Update.
7254 * gnulib/dummy.c: Update.
7255 * gnulib/extra/arg-nonnull.h: Update.
7256 * gnulib/extra/c++defs.h: Update.
7257 * gnulib/extra/update-copyright: Update.
7258 * gnulib/extra/warn-on-use.h: Update.
7259 * gnulib/inttypes.in.h: Update.
7260 * gnulib/m4/00gnulib.m4: Update.
7261 * gnulib/m4/extensions.m4: Update.
7262 * gnulib/m4/gnulib-cache.m4: Update.
7263 * gnulib/m4/gnulib-common.m4: Update.
7264 * gnulib/m4/gnulib-comp.m4: Update.
7265 * gnulib/m4/gnulib-tool.m4: Update.
7266 * gnulib/m4/include_next.m4: Update.
7267 * gnulib/m4/inttypes-pri.m4: Update.
7268 * gnulib/m4/inttypes.m4: Update.
7269 * gnulib/m4/longlong.m4: Update.
7270 * gnulib/m4/memchr.m4: Update.
7271 * gnulib/m4/memmem.m4: Update.
7272 * gnulib/m4/mmap-anon.m4: Update.
7273 * gnulib/m4/multiarch.m4: Update.
7274 * gnulib/m4/onceonly.m4: Update.
7275 * gnulib/m4/stddef_h.m4: Update.
7276 * gnulib/m4/stdint.m4: Update.
7277 * gnulib/m4/string_h.m4: Update.
7278 * gnulib/m4/warn-on-use.m4: Update.
7279 * gnulib/m4/wchar_h.m4: Update.
7280 * gnulib/m4/wchar_t.m4: Update.
7281 * gnulib/m4/wint_t.m4: Update.
7282 * gnulib/memchr.c: Update.
7283 * gnulib/memmem.c: Update.
7284 * gnulib/stddef.in.h: Update.
7285 * gnulib/stdint.in.h: Update.
7286 * gnulib/str-two-way.h: Update.
7287 * gnulib/string.in.h: Update.
7288 * gnulib/wchar.in.h: Update.
7289
7290 * gnulib/extra/arg-nonnull.h: Delete.
7291 * gnulib/extra/c++defs.h: Delete.
7292 * gnulib/extra/warn-on-use.h: Delete.
7293 * gnulib/m4/wchar_h.m4: Delete.
7294 * gnulib/m4/wint_t.m4: Delete.
7295 * gnulib/wchar.in.h: Delete.
7296
7297 * gnulib/extra/snippets/arg-nonnull.h: New.
7298 * gnulib/extra/snippets/c++defs.h: New.
7299 * gnulib/extra/snippets/warn-on-use.h: New.
7300
7301 * aclocal.m4: Regenerate.
7302 * config.in: Regenerate.
7303 * configure: Regenerate.
7304 * gnulib/Makefile.in: Regenerate.
7305
7306 2012-04-18 Pedro Alves <palves@redhat.com>
7307
7308 Reimport the update-copyright module from gnulib
7309 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7310
7311 * configure: Regenerate.
7312 * gnulib/Makefile.am: Update.
7313 * gnulib/Makefile.in: Regenerate.
7314 * gnulib/extra/update-copyright: Update.
7315 * gnulib/m4/gnulib-cache.m4: Update.
7316 * gnulib/m4/gnulib-comp.m4: Update.
7317
7318 2012-04-18 Tristan Gingold <gingold@adacore.com>
7319
7320 * configure.ac (aix): Put -lpthread into libs.
7321 * configure: Regenerate.
7322
7323 2012-04-18 Tom Tromey <tromey@redhat.com>
7324
7325 * linespec.c (convert_linespec_to_sals): Don't use
7326 SYMBOL_OBJ_SECTION.
7327 (compare_msymbols): Arguments are minsym_and_objfile, not
7328 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7329
7330 2012-04-18 Pedro Alves <palves@redhat.com>
7331
7332 Revert gnulib/ part of:
7333 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7334 Copyright year update in most files (performed by copyright.sh).
7335
7336 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7337
7338 Fix 64-bit constants on 32-bit hosts.
7339 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7340 from unsigned long to ULONGEST.
7341 (read_signed_leb128): Change declaration return type from long to
7342 LONGEST.
7343 (dwarf2_const_value_attr): Change declaration parameter value from long
7344 to LONGEST.
7345 (dwarf2_compute_name): Change variable value from long to LONGEST.
7346 (read_unsigned_leb128): Change return type, variable result and some
7347 casts from unsigned long to ULONGEST.
7348 (read_signed_leb128): Change return type, variable result and some
7349 casts from long to LONGEST.
7350 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7351 value from long to LONGEST.
7352 (dwarf2_const_value): Change variable value from long to LONGEST.
7353 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7354 plongest and hex_string.
7355 * symtab.h (struct general_symbol_info): Change ivalue from long to
7356 LONGEST, remove the comment.
7357 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7358 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7359
7360 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7361
7362 PR symtab/7259:
7363 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7364 * ada-lang.c (ada_discrete_type_high_bound)
7365 (ada_discrete_type_low_bound): Fix function comment. Use
7366 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7367 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7368 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7369 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7370 Use TYPE_FIELD_ENUMVAL.
7371 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7372 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7373 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7374 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7375 TYPE_CODE_ENUM.
7376 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7377 * dwarf2read.c (process_enumeration_scope): Likewise.
7378 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7379 field.bitpos.
7380 (class StructMainTypePrettyPrinter): Support also
7381 FIELD_LOC_KIND_ENUMVAL.
7382 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7383 TYPE_CODE_ENUM.
7384 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7385 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7386 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7387 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7388 field enumval.
7389 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7390 accommodate enumval.
7391 (struct call_site): Adjust loc_kind to accommodate enumval.
7392 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7393 (TYPE_FIELD_ENUMVAL): New macros.
7394 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7395 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7396 TYPE_CODE_ENUM.
7397 * p-typeprint.c (pascal_type_print_base): Likewise.
7398 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7399 enumval.
7400 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7401 * python/py-type.c (convert_field): New variable addrstring. Use
7402 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7403 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7404 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7405 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7406 TYPE_CODE_ENUM.
7407 * valprint.c (generic_val_print): Likewise.
7408
7409 2012-04-17 Doug Evans <dje@google.com>
7410
7411 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7412
7413 * dwarf2read.c: Whitespace fixes.
7414 (lookup_signatured_type): Tweak comment.
7415 (get_die_type_at_offset): Fix comment.
7416
7417 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7418
7419 * xcoffread.c (xcoff_secnum_to_sections): New function.
7420 (secnum_to_section, secnum_to_bfd_section): Reimplement
7421 using xcoff_secnum_to_sections. Rename "secnum" parameter
7422 into "n_scnum".
7423 (RECORD_MINIMAL_SYMBOL): Delete.
7424 (record_minimal_symbol): New function.
7425 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7426 by call to record_minimal_symbol and set misc_func_recorded
7427 to 1. Set last_csect_sec to the XCOFF section index instead
7428 of GDB's section_offset index. Update calls to
7429 prim_record_minimal_symbol_and_info to pass the BFD section
7430 as well.
7431
7432 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7433
7434 * xcoffread.c (read_xcoff_symtab): Delete variables
7435 last_csect_val and last_csect_sec and associated code.
7436
7437 2012-04-17 Doug Evans <dje@google.com>
7438
7439 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7440 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7441 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7442 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7443
7444 * cleanups.h: New file.
7445 * cleanups.c: New file.
7446 * Makefile.in (SFILES): Add cleanups.c.
7447 (HFILES_NO_SRCDIR): Add cleanups.h.
7448 (COMMON_OBS): Add cleanups.o.
7449 * defs.h (struct cleanup): Moved to cleanups.h.
7450 (do_cleanups,do_final_cleanups): Ditto.
7451 (discard_cleanups,discard_final_cleanups): Ditto
7452 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7453 (save_cleanups,save_final_cleanups): Ditto.
7454 (restore_cleanups,restore_final_cleanups): Ditto.
7455 (null_cleanup): Ditto.
7456 (make_my_cleanup,make_my_cleanup2): Ditto.
7457 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7458 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7459 (do_cleanups,do_final_cleanups): Ditto.
7460 (discard_cleanups,discard_final_cleanups): Ditto
7461 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7462 (save_cleanups,save_final_cleanups): Ditto.
7463 (restore_cleanups,restore_final_cleanups): Ditto.
7464 (null_cleanup): Ditto.
7465 (make_my_cleanup,make_my_cleanup2): Ditto.
7466 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7467
7468 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7469 make_my_cleanup.
7470 (make_cleanup_dyn_string_delete): Ditto.
7471 (make_cleanup_ui_file_delete): Ditto.
7472 (make_cleanup_ui_out_redirect_pop): Ditto.
7473 (make_cleanup_free_section_addr_info): Ditto.
7474 (make_cleanup_restore_integer): Ditto.
7475 (make_cleanup_unpush_target): Ditto.
7476 (make_cleanup_value_free_to_mark): Ditto.
7477 (make_cleanup_value_free): Ditto.
7478 (make_cleanup_free_so): Ditto.
7479
7480 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7481
7482 New option "set debug auto-load".
7483 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7484 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7485 (auto_load_safe_path_vec_update)
7486 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7487 if DEBUG_AUTO_LOAD.
7488 (file_is_auto_load_safe): New parameters debug_fmt and ....
7489 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7490 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7491 caller by explanatory string.
7492 (_initialize_auto_load): Register "set debug auto-load".
7493 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7494 and ....
7495 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7496 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7497 by explanatory string.
7498 * main.c (captured_main): Likewise.
7499 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7500 (source_section_scripts): Likewise.
7501
7502 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7503
7504 New option "set auto-load safe-path".
7505 * NEWS: New commands "set auto-load safe-path"
7506 and "show auto-load safe-path".
7507 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7508 (auto_load_safe_path, auto_load_safe_path_vec)
7509 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7510 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7511 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7512 (source_gdb_script_for_objfile): New variable is_safe. Call
7513 file_is_auto_load_safe. Return if it is not.
7514 (struct loaded_script): New field loaded.
7515 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7516 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7517 output "Missing" to "No".
7518 (_initialize_auto_load): New variable cmd. Initialize
7519 auto_load_safe_path. Register "set auto-load safe-path",
7520 "show auto-load safe-path" and "add-auto-load-safe-path".
7521 * auto-load.h (maybe_add_script): Add parameter loaded.
7522 (file_is_auto_load_safe): New declaration.
7523 * config.in: Regenerate.
7524 * configure: Regenerate.
7525 * configure.ac: New parameters --with-auto-load-safe-path
7526 and --without-auto-load-safe-path.
7527 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7528 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7529 * main.c (captured_main): Check file_is_auto_load_safe for
7530 LOCAL_GDBINIT.
7531 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7532 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7533 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7534 not.
7535
7536 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7537
7538 auto-load: Implementation.
7539 * NEWS: New descriptions for "info auto-load",
7540 "info auto-load gdb-scripts", "info auto-load python-scripts",
7541 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7542 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7543 and "show auto-load-scripts". New description for "set auto-load",
7544 "show auto-load", "set auto-load gdb-scripts",
7545 "show auto-load gdb-scripts", "set auto-load python-scripts",
7546 "show auto-load python-scripts", "set auto-load local-gdbinit",
7547 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7548 "show auto-load libthread-db".
7549 * auto-load.c: Remove include python/python-internal.h. Add includes
7550 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7551 cli/cli-setshow.h.
7552 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7553 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7554 (gdbpy_global_auto_load): Rename to ...
7555 (global_auto_load): ... here.
7556 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7557 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7558 (script_language_gdb, source_gdb_script_for_objfile): New.
7559 (struct loaded_script): New field language.
7560 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7561 LANGUAGE.
7562 (maybe_add_script): Add parameter language. Drop redundant
7563 entry.full_path initialization. Initialize entry.language and
7564 (*slot)->language.
7565 (auto_load_objfile_script): Change parameter suffix to language.
7566 Remove the call of maybe_add_script.
7567 Call language->source_script_for_objfile.
7568 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7569 New.
7570 (collect_matching_scripts): Adjust it for
7571 struct collect_matching_scripts_data.
7572 (auto_load_info_scripts_pattern_nl): New variable.
7573 (info_auto_load_scripts): Rename to ...
7574 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7575 for struct collect_matching_scripts_data.
7576 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7577 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7578 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7579 (auto_load_info_cmdlist_get): New.
7580 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7581 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7582 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7583 "info auto-load local-gdbinit".
7584 * auto-load.h (struct script_language): New.
7585 (gdbpy_global_auto_load): Rename to ...
7586 (global_auto_load): ... here.
7587 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7588 (auto_load_local_gdbinit_loaded): New declarations.
7589 (maybe_add_script): New parameter language.
7590 (auto_load_objfile_script): Change parameter suffix to language.
7591 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7592 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7593 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7594 declarations.
7595 * linux-thread-db.c: Include auto-load.h and ctype.h.
7596 (auto_load_thread_db, show_auto_load_thread_db): New.
7597 (struct thread_db_info): New field filename.
7598 (delete_thread_db_info): Call xfree for FILENAME.
7599 (try_thread_db_load): Initialize FILENAME.
7600 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7601 if !AUTO_LOAD_THREAD_DB.
7602 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7603 (_initialize_thread_db): Install auto_load_thread_db
7604 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7605 as "info auto-load libthread-db".
7606 * main.c (captured_main): Rename gdbpy_global_auto_load to
7607 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7608 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7609 (print_gdb_help): Extend the help for 'local init file'.
7610 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7611 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7612 (auto_load_scripts): Rename to ...
7613 (auto_load_python_scripts): ... here, update the comment.
7614 (gdbpy_load_auto_script_for_objfile): New declaration.
7615 (show_auto_load_python_scripts, script_language_python)
7616 (gdbpy_load_auto_script_for_objfile): New.
7617 (source_section_scripts): Refactor the code.
7618 (load_auto_scripts_for_objfile): Rename to ...
7619 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7620 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7621 (info_auto_load_python_scripts): New.
7622 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7623 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7624 Register "set auto-load-scripts" as its deprecated alias. Register
7625 "info auto-load python-scripts". Register "info auto-load-scripts" as
7626 its deprecated alias.
7627 (load_auto_scripts_for_objfile): Rename to ...
7628 (gdbpy_load_auto_scripts_for_objfile): ... here.
7629 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7630 (gdbpy_load_auto_scripts_for_objfile): ... here.
7631
7632 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7633
7634 auto-load: Move files.
7635 * Makefile.in (SFILES): Add auto-load.c.
7636 (HFILES_NO_SRCDIR): Add auto-load.h.
7637 (COMMON_OBS): Add auto-load.o.
7638 (distclean): Change .gdbinit for gdb-gdb.gdb.
7639 * auto-load.c: New file, with parts from python/py-auto-load.c.
7640 * auto-load.h: New file, with parts from python/python.h.
7641 * configure: Regenerate.
7642 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7643 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7644 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7645 * main.c: Include auto-load.h.
7646 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7647 command.h, observer.h and progspace.h to auto-load.c. Add include
7648 auto-load.h.
7649 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7650 (struct loaded_script, auto_load_pspace_data)
7651 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7652 (hash_loaded_script_entry, eq_loaded_script_entry)
7653 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7654 (maybe_add_script): Move to auto-load.c.
7655 (source_section_scripts): Change maybe_add_script parameters passing,
7656 use script_not_found_warning_print.
7657 (clear_section_scripts, auto_load_objfile_script)
7658 (auto_load_new_objfile, loaded_script_ptr)
7659 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7660 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7661 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7662 auto_load_new_objfile and info_auto_load_scripts initizations to
7663 auto-load.c.
7664 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7665
7666 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7667
7668 Code cleanup.
7669 * charset.c (find_charset_names): Remove variables ix and elt.
7670 Use free_char_ptr_vec.
7671 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7672 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7673 debugdir_end. New variable debugdir_len.
7674 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7675 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7676 declarations.
7677 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7678 and elt. Use free_char_ptr_vec.
7679 * source.c (add_path): Remove variables argv, arg and argv_index.
7680 New variables dir_vec, back_to, ix and name.
7681 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7682 make_cleanup_freeargv. Remove variable separator. Simplify the code
7683 no longer expecting DIRNAME_SEPARATOR.
7684 (openp): Remove variable p, p1 and len. New variables dir_vec,
7685 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7686 no longer expecting DIRNAME_SEPARATOR.
7687 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7688 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7689 debugdir_end.
7690 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7691 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7692 (dirnames_to_char_ptr_vec): New functions.
7693
7694 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7695
7696 Code cleanup.
7697 * source.c (add_path): Remove always true conditional 'p == 0' and
7698 unindent its code block.
7699
7700 2012-04-17 Pedro Alves <palves@redhat.com>
7701
7702 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7703 (FIELD_BITPOS_LVAL): ... this.
7704 (FIELD_BITPOS): New.
7705 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7706 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7707 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7708 SET_FIELD_BITPOS.
7709 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7710 SET_FIELD_BITPOS.
7711 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7712 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7713 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7714 SET_FIELD_BITPOS.
7715
7716 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7717
7718 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7719 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7720 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7721 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7722 * jv-lang.c (java_link_class_type): Likewise, once.
7723 * stabsread.c (read_enum_type): Likewise.
7724
7725 2012-04-16 Yao Qi <yao@codesourcery.com>
7726
7727 * common/agent.c (agent_run_command): Add one more parameter `len'.
7728 Update callers.
7729 * common/agent.h: Update declaration.
7730 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7731 Update.
7732 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7733
7734 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7735
7736 PR mi/13393
7737 * value.c (value_actual_type): New function.
7738 * value.h (value_actual_type): New declaration.
7739 * varobj.c (update_type_if_necessary): New function.
7740 (varobj_create): Call value_actual_type instead of
7741 value_type.
7742 (install_dynamic_child): distinct changed and type changed MI variable
7743 objects.
7744 (update_dynamic_varobj_children): Updated for install_dynamic_child
7745 change. All callers updated.
7746 (varobj_update): Support for MI variable object type change if
7747 the value changed and RTTI is used to determine the type.
7748 (create_child_with_value): Call value_actual_type instead of
7749 value_type.
7750 (adjust_value_for_child_access): Extended with a new parameter which
7751 specify whether the given value should be casted to enclosing type.
7752 All callers updated.
7753
7754 2012-04-14 Yao Qi <yao@codesourcery.com>
7755
7756 Import gnulib module inttypes from git
7757 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7758 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7759 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7760 gnulib/m4/inttypes-pri.m4
7761 * aclocal.m4, config.in, configure: Regenerated.
7762 * gnulib/Makefile.am: Update.
7763 * gnulib/Makefile.in: Update.
7764 * gnulib/m4/gnulib-cache.m4: Update.
7765 * gnulib/m4/gnulib-comp.m4: Update.
7766 * gnulib/inttypes.in.h: New.
7767 * gnulib/m4/inttypes-pri.m4: New.
7768 * gnulib/m4/inttypes.m4: New.
7769
7770 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7771
7772 * infrun.c (resume): Update PC address to the real PC after
7773 preparing to do displaced stepping.
7774
7775 2012-04-12 Doug Evans <dje@google.com>
7776
7777 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7778 All callers updated.
7779
7780 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7781
7782 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7783
7784 2012-04-12 Doug Evans <dje@google.com>
7785
7786 * dwarf2read.c (create_all_type_units): Renamed from
7787 create_debug_types_hash_table. All callers updated.
7788
7789 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7790 local type_sig to sig_type, type_offset to type_offset_in_tu.
7791 (hash_signatured_type): Renamed from hash_type_signature,
7792 all callers updated.
7793 (eq_signatured_type): Renamed from eq_type_signature,
7794 all callers updated.
7795 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7796 (process_enumeration_scope): Ditto.
7797 (lookup_signatured_type_at_offset): Ditto.
7798 (load_full_type_unit, read_signatured_type): Ditto.
7799
7800 2012-04-12 Yao Qi <yao@codesourcery.com>
7801
7802 * remote.c (async_remote_interrupt): Correct function name in
7803 debug message.
7804 (async_remote_interrupt_twice): Ditto.
7805
7806 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7807
7808 * source.c (find_and_open_source): Consistently pass resulting
7809 full path through xfullpath.
7810
7811 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7812
7813 Provide more specific displaced-stepping memory error message.
7814 * infrun.c (displaced_step_prepare): New variable status. Call
7815 target_read_memory instead of read_memory, provide more specific
7816 error message.
7817
7818 2012-04-11 Tristan Gingold <gingold@adacore.com>
7819
7820 PR gdb/13901
7821 * darwin-nat.c (darwin_execvp): Revert previous patch.
7822
7823 2012-04-11 Tristan Gingold <gingold@adacore.com>
7824
7825 PR gdb/13901
7826 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7827 in case of change.
7828
7829 2012-04-11 Tristan Gingold <gingold@adacore.com>
7830
7831 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7832 warning.
7833
7834 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7835
7836 New command 'explore' which helps explore values and types in
7837 scope.
7838 * NEWS: Add an entry about the new 'explore' command.
7839 * data-directory/Makefile.in: Add gdb/command/explore.py
7840 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7841 command using the GDB Python API.
7842
7843 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7844
7845 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7846 extension in jump target calculation.
7847
7848 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7849
7850 * mips-tdep.c (mips32_next_pc): Handle JALX.
7851
7852 2012-04-10 Yao Qi <yao@codesourcery.com>
7853
7854 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7855
7856 2012-04-10 Yao Qi <yao@codesourcery.com>
7857
7858 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7859 and gnulib/m4/gnulib-tool.m4.
7860
7861 2012-04-10 Doug Evans <dje@google.com>
7862
7863 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7864 (load_partial_dies): Clarify comment.
7865 (find_partial_die): Support rereading type units.
7866 Clarify CU handling, if we know offset is in CU, don't search for the
7867 containing CU. Add comment regarding memory waste.
7868
7869 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7870
7871 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7872 i386/x32-avx and i386/x32-avx-linux.
7873 (i386/x32-expedite): New.
7874 (i386/x32-linux-expedite): Likewise.
7875 (i386/x32-avx-expedite): Likewise.
7876 (i386/x32-avx-linux-expedite): Likewise.
7877 ($(outdir)/i386/x32.dat): Likewise.
7878 ($(outdir)/i386/x32-linux.dat): Likewise.
7879 ($(outdir)/i386/x32-avx.dat): Likewise.
7880 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7881
7882 * features/i386/x32-avx-linux.xml: New file.
7883 * features/i386/x32-avx.xml: Likewise.
7884 * features/i386/x32-core.xml: Likewise.
7885 * features/i386/x32-linux.xml: Likewise.
7886 * features/i386/x32.xml: Likewise.
7887
7888 * features/i386/x32-avx-linux.c: New. Generated.
7889 * features/i386/x32-avx.c: Likewise.
7890 * features/i386/x32-linux.c: Likewise.
7891 * features/i386/x32.c: Likewise.
7892 * regformats/i386/x32-avx-linux.dat: Likewise.
7893 * regformats/i386/x32-avx.dat: Likewise.
7894 * regformats/i386/x32-linux.dat: Likewise.
7895 * regformats/i386/x32.dat: Likewise.
7896
7897 2012-04-10 Tristan Gingold <gingold@adacore.com>
7898
7899 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7900 code to kill the inferior.
7901
7902 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7903
7904 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7905 defines.
7906 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7907 defines.
7908 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7909 (yyvsp): New defines.
7910 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7911 defines.
7912 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7913 defines.
7914 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7915 defines.
7916 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7917 defines.
7918 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7919 defines.
7920
7921 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7922
7923 * sparc64-tdep.c (sparc64_store_arguments)
7924 (sparc64_store_arguments): Fix coding style.
7925
7926 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7927
7928 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7929 complex floats, adjust some related comments and tighten a related
7930 assertion.
7931 (sparc64_extract_return_value): Handle complex floats.
7932
7933 2012-04-07 Doug Evans <dje@google.com>
7934
7935 * dwarf2read.c (load_partial_dies): Change condition to assert.
7936
7937 2012-04-06 Doug Evans <dje@google.com>
7938
7939 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7940 "mov %rsp,%rbp".
7941
7942 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7943
7944 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7945 fencepost error.
7946 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7947 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7948 architecture.
7949
7950 2012-04-05 Keith Seitz <keiths@redhat.com>
7951
7952 * linespec.c (decode_compound): Remove.
7953 (enum offset_relative_sign): New enum.
7954 (struct line_offset): New struct.
7955 (struct linespec): New struct.
7956 (struct linespec_state): Move file_symtabs,
7957 user_filename, and user_function into struct linespec.
7958 Make result an anonymous struct holding vectors of
7959 symbolp and minsym_and_objfile_d.
7960 Add language member.
7961 (enum ls_token_type): New enum.
7962 (linespec_keywords): New array.
7963 (struct ls_token): New struct.
7964 (struct ls_parser): New struct.
7965 (linespec_lexer_lex_number): New function.
7966 (linespec_lexer_lex_keyword): New function.
7967 (is_ada_operator): New function.
7968 (skip_quote_char): New function.
7969 (copy_token_string): New function.
7970 (is_closing_quote_enclosed): New function.
7971 (find_parameter_list_end): New function.
7972 (linespec_lexer_lex_string): New function.
7973 (linespec_lexer_lex_one): New function.
7974 (linespec_lexer_consume_token): New function.
7975 (linespec_lexer_peek_token): New function.
7976 (cplusplus_error): Remove unused function.
7977 (find_methods): Update comment.
7978 (find_toplevel_char): Return const.
7979 (is_objc_method_format): Remove unused function.
7980 (find_toplevel_string): New function.
7981 (is_linespec_boundary): Remove.
7982 (symbol_not_found_error): New function.
7983 (find_method_overload_end): Remove function.
7984 (unexpected_linespec_error): New function.
7985 (keep_name_info): Remove.
7986 (linespec_parse_line_offset): New function.
7987 (linespec_parse_basic): New function.
7988 (canonicalize_linespec): New function.
7989 (decode_line_internal): Remove.
7990 (create_sals_line_offset): New function adapted from
7991 decode_all_digits.
7992 (convert_linespec_to_sals): New function.
7993 (parse_linespec): New function.
7994 (linespec_parser_new): New function.
7995 (linespec_state_destructor): Change parameter type to
7996 struct linespec_state *.
7997 Add language parameter.
7998 Remove freeing of moved members.
7999 (linespec_parser_delete): New function.
8000 (decode_line_full): Use parse_linespec and linespec_parser_new.
8001 (decode_line_1): Likewise.
8002 (decode_indirect): Rename to ...
8003 (linespec_expression_to_pc): ... this and rewrite
8004 to simply find CORE_ADDR, storing this result for later
8005 conversion to SALs.
8006 (locate_first_half): Remove.
8007 (deocde_objc): Add parameter LS.
8008 Initialize new struct collect_info members.
8009 Handle minimal symbols, too.
8010 (decode_compound): Delete.
8011 (lookup_prefix_sym): Rewrite.
8012 (compare_msymbols): New function.
8013 (find_method): Rewrite.
8014 Do not call cplusplus_error.
8015 (symtabs_from_filename): Rewrite.
8016 (collect_function_symbols): Delete.
8017 (find_function_symbols): Rewrite without ARGPTR-style
8018 processing.
8019 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8020 (decode_dollar): Adapted and renamed to ...
8021 (linespec_parse_variable): ... this.
8022 (find_linespec_symbols): New function.
8023 (decode_label): Adapted and renamed to ...
8024 (find_label_symbols): ... this.
8025 (decode_digits_list_mode): Add and use LS argument.
8026 (decode_digits_ordinary): Likewise.
8027 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8028 If in list mode, allow any symbol class. Otherwise, only
8029 permit LOC_BLOCK symbols.
8030 (minsym_found): Update comments.
8031 (search_minsyms_for_name): Do not convert the matching symbol
8032 into a SAL. Simply push the symbol and objfile into the
8033 result vector.
8034 (decode_variable): Delete. Contents adapted into
8035 find_linespec_symbols.
8036
8037 * cp-support.c (SKIP_SPACE): Remove.
8038 (operator_tokens): Remove unused global.
8039 (cp_validate_operator): Remove.
8040 * cp-support.h (cp_validate_operator): Remove declaration.
8041
8042 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8043
8044 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8045 for TYPE_VPTR_FIELDNO.
8046 * valprint.c (valprint_check_validity): Make it global, move the
8047 function comment ...
8048 * value.h (valprint_check_validity): ... to this new declaration.
8049
8050 2012-04-02 Tristan Gingold <gingold@adacore.com>
8051
8052 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8053 the STATE32 api for i386 state.
8054 (i386_darwin_store_inferior_registers): Likewise.
8055
8056 2012-04-02 Tristan Gingold <gingold@adacore.com>
8057
8058 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8059 SS offset.
8060 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8061 format_string.
8062
8063 2012-04-02 Tristan Gingold <gingold@adacore.com>
8064
8065 PR gdb/13901
8066 * darwin-nat.c (darwin_execvp): Set binary preference.
8067
8068 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8069
8070 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8071
8072 2012-03-30 Tom Tromey <tromey@redhat.com>
8073
8074 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8075 of TRY_CATCH. Fix error handling.
8076 * python/py-value.c (convert_value_from_python): Move 'old'
8077 declaration to innermost scope.
8078
8079 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8080 Andrey Smirnov <andrew.smirnov@gmail.com>
8081
8082 -Wshadow warning fix.
8083 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8084 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8085 Adjust code accordingly.
8086
8087 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8088
8089 * ada-lang.c (symbol_completion_add): Rename parameter
8090 "encoded" into "encoded_p". Ajust code and documentation
8091 accordingly.
8092
8093 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8094 Andrey Smirnov <andrew.smirnov@gmail.com>
8095
8096 -Wshadow warning fix.
8097 * ada-lang.c (symbol_completion_add): Rename parameter
8098 "wild_match" into wild_match_p. Update code and documentation
8099 accordingly.
8100
8101 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8102
8103 * ada-lang.c (symbol_completion_match): Rename parameter
8104 "encoded" into "encoded_p". Ajust code and documentation
8105 accordingly.
8106
8107 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8108 Andrey Smirnov <andrew.smirnov@gmail.com>
8109
8110 -Wshadow warning fix.
8111 * ada-lang.c (symbol_completion_match): Rename parameter
8112 "wild_match" into "wild_match_p". Adjust code and function
8113 documentation accordingly.
8114
8115 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8116 Andrey Smirnov <andrew.smirnov@gmail.com>
8117
8118 -Wshadow warning fix.
8119 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8120 "symbol_info" into "info". Adjust code accordingly.
8121 (ada_lookup_symbol): Likewise.
8122
8123 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8124
8125 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8126 of this function's documentation.
8127
8128 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8129 Andrey Smirnov <andrew.smirnov@gmail.com>
8130
8131 -Wshadow warning fix.
8132 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8133 variable into "wild_match_p". Adjust code accordingly.
8134
8135 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8136 Andrey Smirnov <andrew.smirnov@gmail.com>
8137
8138 -Wshadow warning fix.
8139 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8140 parameter into "wild_match_p". Adjust code accordingly.
8141 Document this parameter in the function description.
8142
8143 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8144 Andrey Smirnov <andrew.smirnov@gmail.com>
8145
8146 -Wshadow warning fix.
8147 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8148 "wild_match" parameter to "wild_match_p" (-Wshadow).
8149
8150 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8151
8152 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8153 in function documentation.
8154
8155 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8156 Andrey Smirnov <andrew.smirnov@gmail.com>
8157
8158 -Wshadow warning fix.
8159 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8160 variable into wild_match_p. Adjust code accordingly.
8161
8162 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8163 Andrey Smirnov <andrew.smirnov@gmail.com>
8164
8165 * ada-valprint.c (ada_val_print_1): Move the code handling
8166 TYPE_CODE_ENUM inside its own lexical block. Declare
8167 variables len and val there, instead of in the function's
8168 top level block. Avoid declaring deref_val again in a way
8169 that shadows another variable of the same name declared
8170 in one of the up-level blocks. Just re-use the up-level
8171 variable instead.
8172
8173 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8174
8175 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8176 Replace block_found argument by symbol_info. Adjust
8177 implementation accordingly. Add function documentation.
8178 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8179 Fix documentation.
8180 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8181 * ada-exp.y (write_object_renaming): Adjust to new
8182 ada_lookup_encoded_symbol API.
8183
8184 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8185
8186 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8187 documentation.
8188
8189 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8190
8191 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8192 (v850_register_name): Add the mpu and fpu register names.
8193 (v850e_register_name): Add the mpu and fpu register names.
8194 (v850e2_register_name): New function.
8195 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8196 bfd_mach_v850e2v3.
8197
8198 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8199
8200 * NEWS: Add entry for Ada varobj support.
8201
8202 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8203
8204 * varobj.c (default_value_is_changeable_p): New function,
8205 extracted from varobj_value_is_changeable_p. Add declaration.
8206 (ada_value_is_changeable_p): New function, extracted from
8207 varobj_value_is_changeable_p. Add declaration.
8208 (struct language_specific): New field "value_is_changeable_p".
8209 (languages): Add entries for new field.
8210 (varobj_create): Set language before calling install_new_value.
8211 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8212 "value_is_changeable_p" language callback.
8213
8214 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8215
8216 * ada-varobj.h, ada-varobj.c: New files.
8217 * Makefile.in (SFILES): Add ada-varobj.c.
8218 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8219 (COMMON_OBS): Add ada-varobj.o.
8220
8221 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8222
8223 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8224 (struct language_specific): New field "value_has_mutated".
8225 (languages): Set field "value_has_mutated" in each entry of array.
8226 (varobj_value_has_mutated): New function.
8227 (varobj_udpdate): Add handling of type mutation.
8228 (value_of_root): Add handling of type mutation.
8229 (ada_value_has_mutated): New function.
8230
8231 2012-03-28 Pedro Alves <palves@redhat.com>
8232
8233 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8234 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8235
8236 2012-03-28 Tom Tromey <tromey@redhat.com>
8237
8238 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8239 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8240 before returning.
8241
8242 2012-03-28 Tom Tromey <tromey@redhat.com>
8243
8244 * .dir-locals.el: New file.
8245
8246 2012-03-28 Pedro Alves <palves@redhat.com>
8247
8248 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8249
8250 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8251
8252 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8253 handling for r0.
8254
8255 2012-03-27 Pedro Alves <palves@redhat.com>
8256
8257 Eliminate struct ui_stream.
8258
8259 * ui-out.h (struct ui_stream): Delete.
8260 (ui_out_field_stream): Adjust prototype.
8261 (ui_out_stream_new, ui_out_stream_delete)
8262 (make_cleanup_ui_out_stream_delete): Delete declarations.
8263 * ui-out.c (ui_out_field_stream): Change prototype to take a
8264 ui_file instead of a ui_stream. Adjust.
8265 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8266 (make_cleanup_ui_out_stream_delete): Delete.
8267 * breakpoint.c (print_breakpoint_location)
8268 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8269 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8270 * disasm.c (dump_insns): Ditto.
8271 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8272 prototype.
8273 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8274 ui_stream/ui_out_stream_new.
8275 * infcmd.c (print_return_value): Ditto.
8276 * osdata.c (info_osdata_command): Don't allocate a local
8277 ui_stream.
8278 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8279 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8280 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8281 allocate a local ui_stream.
8282 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8283 instead of ui_stream/ui_out_stream_new.
8284 (list_args_or_locals): Don't allocate a local ui_stream.
8285 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8286 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8287 ui_stream/ui_out_stream_new.
8288 * cli/cli-setshow.c (do_setshow_command): Ditto.
8289
8290 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8291
8292 * arm-linux-tdep.c (arm_linux_init_abi): Call
8293 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8294 * arm-tdep.c (arm_process_record): New function.
8295 (deallocate_reg_mem): New function.
8296 (decode_insn): New function.
8297 (thumb_record_branch): New function.
8298 (thumb_record_ldm_stm_swi(): New function.
8299 (thumb_record_misc): New function.
8300 (thumb_record_ld_st_stack): New function.
8301 (thumb_record_ld_st_imm_offset): New function.
8302 (thumb_record_ld_st_reg_offset(): New function.
8303 (thumb_record_add_sub_cmp_mov): New function.
8304 (thumb_record_shift_add_sub): New function.
8305 (arm_record_coproc_data_proc): New function.
8306 (arm_record_coproc): New function.
8307 (arm_record_b_bl): New function.
8308 (arm_record_ld_st_multiple): New function.
8309 (arm_record_ld_st_reg_offset): New function.
8310 (arm_record_ld_st_imm_offset): New function.
8311 (arm_record_data_proc_imm): New function.
8312 (arm_record_data_proc_misc_ld_str): New function.
8313 (arm_record_extension_space): New function.
8314 (arm_record_strx): New function.
8315 (sbo_sbz): New function.
8316 (struct insn_decode_record): New structure for arm insn record.
8317 (REG_ALLOC): New macro for reg allocations.
8318 (MEM_ALLOC): New macro for memory allocations.
8319 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8320
8321 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8322
8323 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8324 (store_register): Likewise.
8325
8326 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8327
8328 * MAINTAINERS (Write After Approval): Add myself to the list.
8329
8330 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8331
8332 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8333 Describe also the option "auto".
8334
8335 2012-03-22 Richard Henderson <rth@redhat.com>
8336
8337 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8338 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8339
8340 2012-03-22 Richard Henderson <rth@redhat.com>
8341
8342 * jit.c (jit_read_code_entry): Compute alignment and offset of
8343 int64_t member before computing entry_size.
8344
8345 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8346
8347 Python scripting: Add new method Value.referenced_value to
8348 gdb.Value which can dereference pointer as well as reference
8349 values.
8350 * NEWS: Add entry under 'Python scripting' about the new method
8351 Value.referenced_value on gdb.Value objects.
8352 * python/py-value.c (valpy_referenced_value): New function
8353 defining a new method on gdb.Value objects which can dereference
8354 pointer and reference values.
8355
8356 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8357
8358 * MAINTAINERS (Write After Approval): Add myself to the list.
8359
8360 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8361
8362 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8363 in addition to "main".
8364
8365 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8366
8367 * expression.h (op_name): Add declaration.
8368 * expprint.c (op_name): Remove declaration. Make non-static.
8369 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8370
8371 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8372
8373 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8374 of struct siginfo.
8375 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8376 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8377 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8378 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8379 (linux_nat_get_siginfo): Likewise.
8380 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8381 (linux_nat_get_siginfo): Likewise.
8382 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8383 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8384 * procfs.c (gdb_siginfo_t): Likewise.
8385
8386 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8387
8388 * .gitignore: Ignore more files.
8389
8390 2012-03-20 Pedro Alves <palves@redhat.com>
8391
8392 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8393 returns.
8394
8395 2012-03-20 Yao Qi <yao@codesourcery.com>
8396
8397 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8398 comment.
8399
8400 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8401
8402 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8403 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8404 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8405 sect_offset.
8406 * dwarf2expr.h (cu_offset, sect_offset): New types.
8407 (struct dwarf_expr_context_funcs) <dwarf_call>
8408 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8409 sect_offset.
8410 (struct dwarf_expr_context) <len>: Improve the comment.
8411 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8412 cu_offset and sect_offset.
8413 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8414 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8415 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8416 * dwarf2loc.h: Include dwarf2expr.h.
8417 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8418 and sect_offset.
8419 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8420 Improve the comment.
8421 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8422 (struct signatured_type, struct line_header, struct partial_die_info)
8423 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8424 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8425 (get_die_type_at_offset, create_cus_from_index)
8426 (create_signatured_type_table_from_index, dw2_get_file_names)
8427 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8428 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8429 (create_debug_types_hash_table, process_psymtab_comp_unit)
8430 (load_partial_comp_unit, create_all_comp_units)
8431 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8432 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8433 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8434 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8435 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8436 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8437 (find_partial_die, read_attribute_value, lookup_die_type)
8438 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8439 (is_ref_attr): New function comment.
8440 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8441 Use cu_offset and sect_offset.
8442 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8443 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8444 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8445 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8446 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8447 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8448 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8449 sect_offset.
8450
8451 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8452
8453 Code cleanup.
8454 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8455 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8456 with xfree.
8457 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8458
8459 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8460
8461 * NEWS: Describe new options --init-command=FILE, -ix and
8462 --init-eval-command=COMMAND, -iex.
8463 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8464 CMDARG_INIT_COMMAND.
8465 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8466 "init-command", "init-eval-command", "ix" and "iex" to the variable
8467 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8468 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8469 (print_gdb_help): Describe --init-command=FILE, -ix and
8470 --init-eval-command=COMMAND, -iex.
8471
8472 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8473
8474 Code cleanup.
8475 * main.c (struct cmdarg): Move it here from main. Add more comments.
8476 (cmdarg_s, VEC (cmdarg_s)): New.
8477 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8478 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8479 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8480 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8481 of CMDARG.
8482
8483 2012-03-19 Tom Tromey <tromey@redhat.com>
8484
8485 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8486
8487 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8488
8489 PR symtab/13777
8490 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8491 GCC >=4.5.
8492
8493 2012-03-16 Chris January <chris.january@allinea.com>
8494
8495 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8496 of clear.
8497
8498 2012-03-16 Chris January <chris.january@allinea.com>
8499
8500 * source.c (add_path): Use memmove instead of strcpy because the
8501 strings overlap.
8502
8503 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8504
8505 * value.h (set_value_parent): Add declaration.
8506 * value.c (set_value_parent): New function.
8507 (value_address): If VALUE->PARENT is not NULL, then use it as
8508 the base address instead of VALUE->LOCATION.address.
8509 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8510 the same as OBJ's address. Adjust V's offset accordingly.
8511 Set V's parent.
8512
8513 2012-03-16 Gary Benson <gbenson@redhat.com>
8514
8515 PR breakpoints/10738
8516 * dwarf2read.c (use_deprecated_index_sections): New global.
8517 (struct partial_die_info): New member may_be_inlined.
8518 (read_partial_die): Set may_be_inlined where appropriate.
8519 (add_partial_subprogram): Add partial symbols for partial
8520 DIEs that may be inlined.
8521 (new_symbol_full): Add inlined subroutines to the current
8522 scope.
8523 (write_psymtabs_to_index): Bump version number.
8524 (dwarf2_read_index): Read only version 6 indices unless
8525 use_deprecated_index_sections is set.
8526 * linespec.c (symbol_and_data_callback): New structure.
8527 (iterate_inline_only): New function.
8528 (iterate_over_all_matching_symtabs): New argument
8529 "include_inline". If nonzero, also call the callback for
8530 symbols representing inlined subroutines.
8531 (lookup_prefix_sym): Pass extra argument to the above.
8532 (find_function_symbols): Likewise.
8533 (add_matching_symbols_to_info): Likewise.
8534 * NEWS: Mention that GDB can now set breakpoints on inlined
8535 functions.
8536
8537 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8538
8539 * p-typeprint.c (pascal_type_print_method_args):
8540 Fix display of parameter of methods.
8541
8542 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8543
8544 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8545 Add missing prototype.
8546
8547 2012-03-16 Yao Qi <yao@codesourcery.com>
8548 Jan Kratochvil <jan.kratochvil@redhat.com>
8549
8550 Fix false compilation warning.
8551 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8552
8553 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8554 Pedro Alves <pedro@codesourcery.com>
8555
8556 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8557 (arm_register_g_packet_guesses): New function.
8558 (arm_gdbarch_init): Don't force a target description with
8559 registers when the executable is detected as M-profile. Instead
8560 set gdbarch->tdep->is_m. Register `g' packet guesses.
8561 (_initialize_arm_tdep): Initialize the new target description.
8562 * features/arm-with-m-fpa-layout.xml: New description.
8563 * features/arm-with-m-fpa-layout.c: New, generated.
8564
8565 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8566
8567 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8568 Update function description.
8569 (insert_bp_location): Do not wipe bl->target_info out.
8570 * mem-break.c: #include "gdb_string.h".
8571 (default_memory_insert_breakpoint): Do not call target_read_memory
8572 with a pointer to the breakpoint's shadow_contents buffer. Use
8573 a local buffer instead.
8574 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8575
8576 2012-03-15 Tom Tromey <tromey@redhat.com>
8577
8578 * NEWS: Mention "info vtbl", not "info vtable".
8579 * cp-support.c (info_vtbl_command): Fix comment.
8580 (_initialize_cp_support): Fix text.
8581
8582 2012-03-15 Tom Tromey <tromey@redhat.com>
8583
8584 * cp-valprint.c (cp_print_value_fields): Use
8585 print_function_pointer_address for vtable slot.
8586
8587 2012-03-15 Tom Tromey <tromey@redhat.com>
8588
8589 * gnu-v3-abi.c (struct value_and_voffset): New.
8590 (hash_value_and_voffset, eq_value_and_voffset)
8591 (compare_value_and_voffset, compute_vtable_size)
8592 (print_one_vtable, gnuv3_print_vtable): New functions.
8593 (init_gnuv3_ops): Initialize 'print_vtable' field.
8594 * cp-support.c (info_vtbl_command): New function.
8595 (_initialize_cp_support): Add "info vtbl".
8596 * cp-abi.h (cplus_print_vtable): Declare.
8597 (struct cp_abi_ops) <print_vtable>: New field.
8598 * cp-abi.c (cplus_print_vtable): New function.
8599 * NEWS: Update.
8600
8601 2012-03-15 Tom Tromey <tromey@redhat.com>
8602
8603 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8604 iterate_over_symbols.
8605
8606 2012-03-14 Doug Evans <dje@google.com>
8607
8608 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8609 DW_OP_GNU_parameter_ref.
8610
8611 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8612
8613 Fix double prompt of 'interpreter-exec mi'.
8614 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8615 (mi_interpreter_resume): use it.
8616 (mi_execute_command_input_handler): New function.
8617 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8618 mi_execute_command_input_handler.
8619
8620 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8621
8622 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8623 prototype.
8624 (darwin_debug_port_info): Make static.
8625 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8626 * machoread.c (_initialize_machoread): Add prototype.
8627 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8628 (i386_darwin_set_control, i386_darwin_get_control)
8629 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8630 i386_darwin_get_status, i386_darwin_get_control):
8631 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8632
8633 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8634
8635 * ax-gdb.c (gen_usual_unary): Remove special handling of
8636 enum and bool types.
8637
8638 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8639
8640 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8641
8642 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8643
8644 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8645
8646 2012-03-13 Chris January <chris.january@allinea.com>
8647
8648 * aix-thread.c (fill_sprs): Store the floating point registers
8649 at the correct offsets into vals.
8650
8651 2012-03-13 Doug Evans <dje@google.com>
8652
8653 * NEWS: Mention symbol-reloading has been deleted.
8654 * symfile.c (symbol_reloading): Delete.
8655 (show_symbol_reloading): Delete.
8656 (_initialize_symfile): Delete set/show symbol-reloading.
8657
8658 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8659 read_in_chain until we have successfully read it in.
8660 (load_full_comp_unit): Ditto.
8661 (read_signatured_type): Add comment.
8662
8663 2012-03-13 Chris January <chris.january@allinea.com>
8664
8665 * stabsread.c (fix_common_block): Change type of valu argument
8666 to CORE_ADDR.
8667
8668 2012-03-13 Chris January <chris.january@allinea.com>
8669
8670 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8671 instruction.
8672
8673 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8674
8675 * common/linux-procfs.c (linux_proc_get_int): New, from
8676 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8677 field.
8678 (linux_proc_get_tgid): Only call linux_proc_get_int.
8679 (linux_proc_get_tracerpid): New.
8680 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8681 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8682 linux_proc_pid_has_state.
8683 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8684 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8685 (linux_ptrace_attach_warnings): New.
8686 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8687 New declaration.
8688 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8689 (linux_nat_attach): New variables ex, buffer, message and message_s.
8690 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8691
8692 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8693
8694 * Makefile.in (linux-ptrace.o): New.
8695 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8696 from linux-nat.c.
8697 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8698 * common/linux-ptrace.c: New file.
8699 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8700 * config/arm/linux.mh: Likewise.
8701 * config/i386/linux.mh: Likewise.
8702 * config/i386/linux64.mh: Likewise.
8703 * config/ia64/linux.mh: Likewise.
8704 * config/m32r/linux.mh: Likewise.
8705 * config/m68k/linux.mh: Likewise.
8706 * config/mips/linux.mh: Likewise.
8707 * config/pa/linux.mh: Likewise.
8708 * config/powerpc/linux.mh: Likewise.
8709 * config/powerpc/ppc64-linux.mh: Likewise.
8710 * config/powerpc/spu-linux.mh: Likewise.
8711 * config/s390/s390.mh: Likewise.
8712 * config/sparc/linux.mh: Likewise.
8713 * config/sparc/linux64.mh: Likewise.
8714 * config/xtensa/linux.mh: Likewise.
8715 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8716 common/linux-procfs.c.
8717 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8718
8719 2012-03-13 Hui Zhu <teawater@gmail.com>
8720 Pedro Alves <palves@redhat.com>
8721
8722 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8723 CREATE_BREAKPOINT_FLAGS_INSERTED.
8724 (create_breakpoint_sal, create_breakpoints_sal)
8725 (base_breakpoint_create_breakpoints_sal)
8726 (tracepoint_create_breakpoints_sal)
8727 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8728 down.
8729 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8730 (ftrace_command, strace_command): Adjust.
8731 (create_tracepoint_from_upload): Pass
8732 CREATE_BREAKPOINT_FLAGS_INSERTED.
8733 * breakpoint.h (enum breakpoint_create_flags): New.
8734 (create_breakpoint): New flags parameter.
8735 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8736 * python/py-breakpoint.c (bppy_init): Adjust.
8737 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8738 * spu-tdep.c (spu_catch_start): Adjust.
8739
8740 2012-03-13 Pedro Alves <palves@redhat.com>
8741 Hui Zhu <teawater@gmail.com>
8742 Yao Qi <yao@codesourcery.com>
8743
8744 * remote.c (struct remote_state): New field `starting_up'.
8745 (remote_start_remote): Set and clear it.
8746 (remote_can_download_tracepoint): If starting up, return false.
8747
8748 2012-03-13 Yao Qi <yao@codesourcery.com>
8749
8750 * inferior.h (struct inferior): Remove fields any_syscall_count,
8751 syscalls_counts and total_syscalls_count. Move them to new
8752 struct catch_syscall_inferior_data in breakpoint.c.
8753 * breakpoint.c: Call DEF_VEC_I(int).
8754 (struct catch_syscall_inferior_data): New.
8755 (get_catch_syscall_inferior_data): New.
8756 (catch_syscall_inferior_data_cleanup): New.
8757 (insert_catch_syscall): Update to access data in
8758 struct catch_syscall_inferior_data.
8759 (insert_catch_syscall): Likewise.
8760 (remove_catch_syscall): Likewise.
8761 (remove_catch_syscall): Likewise.
8762 (is_syscall_catchpoint_enabled): Likewise.
8763 (add_catch_command): Likewise.
8764 (_initialize_breakpoint): Register cleanup.
8765 * breakpoint.h: Removed DEF_VEC_I(int).
8766 * dwarf2loc.c: Call DEF_VEC_I(int).
8767 * mi/mi-main.c: Likewise.
8768
8769 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8770
8771 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8772
8773 2012-03-12 Chris January <chris.january@allinea.com>
8774
8775 * aix-thread.c (_initialize_aix_thread): Add prototype.
8776 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8777 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8778
8779 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8780
8781 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8782 include of "amd64-nat.h".
8783
8784 2012-03-12 Tom Tromey <tromey@redhat.com>
8785
8786 * buildsym.c (record_pending_block): Now static.
8787 * buildsym.h: (record_pending_block): Remove.
8788
8789 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8790
8791 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8792
8793 2012-03-09 Tom Tromey <tromey@redhat.com>
8794
8795 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8796 producer_is_gxx_lt_4_6>: New fields.
8797 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8798
8799 2012-03-09 Tom Tromey <tromey@redhat.com>
8800
8801 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8802
8803 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8804
8805 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8806 prototype.
8807
8808 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8809
8810 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8811
8812 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8813
8814 Fix -Wmissing-prototypes build.
8815 * arm-linux-nat.c (get_thread_id): Make it static.
8816 * xtensa-linux-nat.c (get_thread_id): Likewise.
8817
8818 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8819
8820 * server.c (process_point_options): If a conditional expression
8821 is found, only print a message if remote_debug is nonzero.
8822
8823 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8824
8825 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8826 of internal error for unknown/unsupported types.
8827
8828 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8829
8830 Fix CU relative vs. absolute DIE offsets.
8831 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8832 offset to offset_in_cu.
8833 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8834 TYPE_OFFSET.
8835 (dwarf2_fetch_die_location_block): Rename parameter offset to
8836 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8837
8838 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8839
8840 * libunwind-frame.c: Rename to ...
8841 * ia64-libunwind-tdep.c: ... here.
8842 * libunwind-frame.h: Rename to ...
8843 * ia64-libunwind-tdep.h: ... here.
8844 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8845 ia64-libunwind-tdep.h.
8846 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8847 * README (--with-libunwind): Rename to ...
8848 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8849 * config.in: Regenerate.
8850 * configure: Regenerate.
8851 * configure.ac: New option --with-libunwind-ia64, make the
8852 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8853 Remove AC_DEFINE for HAVE_LIBUNWIND.
8854 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8855 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8856 Rename libunwind-frame in the general comment.
8857 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8858 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8859 Move forward declarations inside #ifndef. Rename libunwind-frame in
8860 the general comment.
8861 * ia64-tdep.c: Rename libunwind-frame.h #include to
8862 ia64-libunwind-tdep.h.
8863 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8864 (ia64_libunwind_descr): Rename libunwind-frame to
8865 ia64-libunwind-tdep in these function comments.
8866 * ia64-tdep.h: Rename libunwind-frame.h #include to
8867 ia64-libunwind-tdep.h.
8868 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8869 ia64-libunwind-tdep in that data comment.
8870
8871 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8872
8873 * libunwind-frame.h (struct frame_unwind): New declaration.
8874
8875 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8876
8877 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8878 "set breakpoint condition-evaluation" command.
8879
8880 2012-03-08 Tristan Gingold <gingold@adacore.com>
8881
8882 * sparc-stub.c: Move to stubs/
8883 * sh-stub.c: Likewise.
8884 * m68k-stub.c: Likewise.
8885 * m32r-stub.c: Likewise.
8886 * i386-stub.c: Likewise.
8887
8888 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8889
8890 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8891 linux_get_siginfo_type.
8892
8893 * m68klinux-nat.c: Include "gdb_proc_service.h".
8894 (PTRACE_GET_THREAD_AREA): Define.
8895 (ps_get_thread_area): New function.
8896
8897 2012-03-08 Yao Qi <yao@codesourcery.com>
8898
8899 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8900 `xsnprintf'.
8901 (remote_query_attached): Likewise.
8902 (remote_static_tracepoint_marker_at): Likewise.
8903 (remote_set_permissions): Likewise.
8904 (remote_detach_1, extended_remote_attach_1): Likewise.
8905 (send_g_packet, remote_vkill): Likewise.
8906 (extended_remote_disable_randomization): Likewise.
8907 (remote_add_target_side_condition): Likewise.
8908 (remote_insert_breakpoint): Likewise.
8909 (remote_remove_breakpoint): Likewise.
8910 (remote_insert_watchpoint): Likewise.
8911 (remote_remove_watchpoint): Likewise.
8912 (remote_insert_hw_breakpoint): Likewise.
8913 (remote_insert_hw_breakpoint): Likewise.
8914 (remote_remove_hw_breakpoint): Likewise.
8915 (remote_download_command_source): Likewise.
8916 (remote_download_tracepoint): Likewise.
8917 (remote_download_trace_state_variable): Likewise.
8918 (remote_disable_tracepoint): Likewise.
8919 (remote_trace_set_readonly_regions): Likewise.
8920 (remote_get_tracepoint_status): Likewise.
8921 (remote_trace_find): Likewise.
8922 (remote_get_trace_state_variable_value): Likewise.
8923 (remote_set_disconnected_tracing): Likewise.
8924 (remote_set_circular_trace_buffer): Likewise.
8925 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8926 (remote_use_agent): Likewise.
8927 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8928 Update callers.
8929
8930 2012-03-07 Pedro Alves <palves@redhat.com>
8931
8932 * NEWS: Mention QProgramSignals.
8933 * inferior.h (update_signals_program_target): Declare.
8934 * infrun.c: (update_signals_program_target): New.
8935 (handle_command): Update the target of the new program signals
8936 array changes.
8937 * remote.c (PACKET_QProgramSignals): New enum.
8938 (last_program_signals_packet): New global.
8939 (remote_program_signals): New.
8940 (remote_start_remote): Update the target with the program signals
8941 list.
8942 (remote_protocol_features): Add entry for QPassSignals.
8943 (remote_open_1): Free anc clear last_program_signals_packet.
8944 (init_remote_ops): Install remote_program_signals.
8945 * target.c (update_current_target): Adjust.
8946 (target_program_signals): New.
8947 * target.h (struct target_ops) <to_program_signals>: New field.
8948 (target_program_signals): Declare.
8949
8950 2012-03-07 Pedro Alves <palves@redhat.com>
8951
8952 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8953 extensions.
8954
8955 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8956
8957 * m68klinux-nat.c (getregs_supplies): Make static.
8958 (getfpregs_supplies): Likewise.
8959 (have_ptrace_getregs): Likewise.
8960
8961 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8962
8963 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8964 in call to get_die_type_at_offset.
8965
8966 2012-03-06 Stan Shebs <stan@codesourcery.com>
8967
8968 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8969 * mi/mi-cmd-disas.c: Ditto.
8970 * mi/mi-cmd-env.c: Ditto.
8971 * mi/mi-cmd-file.c: Ditto.
8972 * mi/mi-cmd-stack.c: Ditto.
8973 * mi/mi-cmd-target.c: Ditto.
8974 * mi/mi-cmd-var.c: Ditto.
8975 * mi/mi-cmds.c: Ditto.
8976 * mi/mi-cmds.h: Ditto.
8977 * mi/mi-console.c: Ditto.
8978 * mi/mi-getopt.c: Ditto.
8979 * mi/mi-getopt.h: Ditto.
8980 * mi/mi-interp.c: Ditto.
8981 * mi/mi-main.c: Ditto.
8982 * mi/mi-out.c: Ditto.
8983 * mi/mi-parse.c: Ditto.
8984 * mi/mi-parse.h: Ditto.
8985 * mi/mi-symbol-cmds.c: Ditto.
8986
8987 * mi/mi-getopt.h: Move mi_opt struct up.
8988 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8989 return.
8990 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8991
8992 2012-03-06 Tom Tromey <tromey@redhat.com>
8993
8994 * proc-service.c (ps_pglobal_lookup): Set the current program
8995 space.
8996
8997 2012-03-06 Pedro Alves <palves@redhat.com>
8998
8999 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9000
9001 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9002
9003 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9004
9005 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9006
9007 Code cleanup.
9008 * common/linux-osdata.c (linux_common_core_of_thread): New function
9009 comment.
9010 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9011 call by linux_common_core_of_thread.
9012 (linux_nat_core_of_thread_1): Remove.
9013 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9014 * linux-thread-db.c: Include linux-osdata.h.
9015 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9016 linux_common_core_of_thread.
9017
9018 2012-03-05 Tom Tromey <tromey@redhat.com>
9019
9020 * value.c (value_primitive_field): Don't fetch contents for
9021 non-virtual bases.
9022
9023 2012-03-05 Tom Tromey <tromey@redhat.com>
9024
9025 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9026
9027 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9028
9029 * s390-nat.c: Include "gregset.h".
9030
9031 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9034 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9035 (libunwind_load): New variable so_error, use it for dlerror. Try to
9036 load also LIBUNWIND_SO_7.
9037
9038 2012-03-05 Pedro Alves <palves@redhat.com>
9039
9040 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9041 is not NULL, and remove resulting dead code.
9042
9043 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9044
9045 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9046 prologue to sh_analyze_prologue.
9047 (sh_analyze_prologue): Make better use of such an upper limit, and
9048 generally be more cautious about accessing memory.
9049
9050 2012-03-05 Tom Tromey <tromey@redhat.com>
9051
9052 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9053 _initialize_ia64_hpux_tdep.
9054
9055 2012-03-05 Pedro Alves <palves@redhat.com>
9056
9057 PR gdb/13766
9058
9059 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9060 the register state is clear, supply explicit zero, instead of
9061 marking the register unavailable.
9062
9063 2012-03-05 Tristan Gingold <gingold@adacore.com>
9064
9065 * NEWS: Mention OpenVMS ia64 new target.
9066
9067 2012-03-05 Tristan Gingold <gingold@adacore.com>
9068
9069 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9070 (ia64_unw_accessors, ia64_unw_rse_accessors)
9071 (ia64_libunwind_descr): Declare.
9072 * ia64-vms-tdep.c: New file.
9073 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9074 (ia64_libunwind_descr): Make them public.
9075 * configure.tgt: Add ia64-*-*vms*.
9076 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9077 (ALLDEPFILES): Add ia64-vms-tdep.c
9078
9079 2012-03-05 Tristan Gingold <gingold@adacore.com>
9080
9081 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9082 * remote.c (PACKET_qXfer_uib): New enum value.
9083 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9084 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9085 (_initialize_remote): Call add_packet_config_cmd for
9086 xfer:uib packet.
9087
9088 2012-03-05 Tristan Gingold <gingold@adacore.com>
9089
9090 * osabi.c (gdb_osabi_names): Add OpenVMS.
9091 (generic_elf_osabi_sniffer): Likewise.
9092 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9093
9094 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9095
9096 Removed unused code.
9097 * libunwind-frame.c (libunwind_frame_unwind)
9098 (libunwind_frame_base_address): Remove.
9099 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9100
9101 2012-03-04 Yao Qi <yao@codesourcery.com>
9102
9103 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9104 remove trailing new line.
9105 (agent_run_command, agent_run_command): Add _ markup.
9106 (agent_capability_check): Likewise.
9107
9108 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9109
9110 * breakpoint.c (set_condition_evaluation_mode): Set
9111 CONDITION_EVALUATION_MODE unconditionally.
9112
9113 2012-03-03 Yao Qi <yao@codesourcery.com>
9114
9115 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9116 * common/agent.h: Update declaration.
9117 * inf-child.c (inf_child_use_agent): New.
9118 (inf_child_can_use_agent): New.
9119 (inf_child_target): Initialize fields `to_use_agent'
9120 and `to_can_use_agent'.
9121 * agent.c (agent_new_objfile): New.
9122 (_initialize_agent): Add agent_new_objfile to new_objfile
9123 observer.
9124
9125 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9126 New.
9127 (linux_target_install_ops): Initialize field
9128 `to_static_tracepoint_markers_by_strid'.
9129 * remote.c (free_current_marker): Move it to ...
9130 * tracepoint.c (free_current_marker): ... here. New.
9131 (cleanup_target_stop): New.
9132 * tracepoint.h: Declare free_current_marker.
9133 * NEWS: Add one entry about `info static-tracepoint-marker'.
9134
9135 2012-03-03 Yao Qi <yao@codesourcery.com>
9136
9137 * common/agent.c (agent_loaded_p): New.
9138 (agent_look_up_symbols): New global.
9139 * common/agent.h: Declare agent_loaded_p.
9140
9141 2012-03-03 Yao Qi <yao@codesourcery.com>
9142
9143 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9144 (agent_capability_check, agent_capability_invalidate): New.
9145 (symbol_list): New array element.
9146 * common/agent.h (enum agent_capa): New.
9147 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9148
9149 2012-03-03 Yao Qi <yao@codesourcery.com>
9150
9151 * target.h (struct target_ops) <to_use_agent>: New field.
9152 (struct target_ops) <to_can_use_agent>: New field.
9153 (target_use_agent, target_can_use_agent): New macro.
9154 * target.c (update_current_target): Update.
9155 * remote.c: New enum `PACKET_QAgent'.
9156 (remote_protocol_features): Add a new element.
9157 (remote_use_agent, remote_can_use_agent): New.
9158 (init_remote_ops): Initialize field `can_use_agent' with
9159 remote_can_use_agent. Intiailize field `use_agent' with
9160 remote_use_agent.
9161 * common/agent.c (use_agent): New global.
9162 * common/agent.h: Declare it.
9163 * tracepoint.c (info_static_tracepoint_markers_command): Add
9164 comment.
9165 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9166 (COMMON_OBS): Add common/agent.o and agent.o
9167 (common-agent.o): New rule.
9168 * agent.c: New.
9169
9170 2012-03-03 Yao Qi <yao@codesourcery.com>
9171
9172 * common/agent.c: New.
9173 * common/agent.h: New.
9174 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9175 AC_CHECK_HEADERS.
9176 * configure, configh.in: Regenerated.
9177
9178 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9179
9180 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9181 unless it exists for this architecture.
9182
9183 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9184
9185 * language.h (struct language_defn): New "method" la_read_var_value.
9186 * findvar.c: #include "language.h".
9187 (default_read_var_value): Renames read_var_value. Rewrite
9188 function description.
9189 (read_var_value): New function.
9190 * value.h (default_read_var_value): Add prototype.
9191 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9192 New functions.
9193 (ada_language_defn): Add entry for la_read_var_value.
9194 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9195 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9196 language_defn structures to add entry for new la_read_var_value
9197 field.
9198
9199 2012-03-02 Tom Tromey <tromey@redhat.com>
9200 Pedro Alves <palves@redhat.com>
9201
9202 PR breakpoints/13776:
9203 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9204 breakpoints.
9205 (delete_longjmp_breakpoint_at_next_stop): New.
9206 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9207 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9208 before deleting the inferior. Add comments.
9209 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9210 breakpoints immediately, but only on next stop. Move that code
9211 next to where we mark other breakpoints for deletion.
9212
9213 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9214
9215 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9216 marker.
9217 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9218 violation.
9219
9220 2012-03-02 Pedro Alves <palves@redhat.com>
9221
9222 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9223
9224 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9225
9226 Fix -Wmissing-prototypes build.
9227 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9228 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9229 (gdbsim_has_memory): Likewise.
9230
9231 2012-03-02 Yao Qi <yao@codesourcery.com>
9232
9233 Fix -Wmissing-prototypes build.
9234 * charset.c (phony_iconv_open): Make static.
9235 (phony_iconv_close, phony_iconv): Likewise.
9236 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9237 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9238 prototype.
9239 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9240 * ser-mingw.c (create_select_thread): Make static.
9241 * windows-termcap.c (tgetent): New prototype.
9242 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9243
9244 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9245
9246 Fix -Wmissing-prototypes build.
9247 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9248 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9249 (_initialize_loadable): New prototypes.
9250
9251 2012-03-02 Doug Evans <dje@google.com>
9252
9253 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9254 abbrev table, read_comp_unit will do it.
9255
9256 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9257
9258 Fix -Wmissing-prototypes build.
9259 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9260 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9261 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9262 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9263 (_initialize_arm_symbian_tdep): New prototype.
9264 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9265 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9266 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9267 static.
9268 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9269 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9270 prototype.
9271 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9272 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9273 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9274 static.
9275 * moxie-tdep.c (moxie_process_record): Likewise.
9276 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9277 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9278 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9279 (_initialize_rl78_tdep): New prototype.
9280 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9281 (_initialize_rx_tdep): New prototype.
9282 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9283 (_initialize_darwin_solib): New prototype.
9284 * solib-spu.c: Include solib-spu.h.
9285 (_initialize_spu_solib): New prototype.
9286 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9287 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9288 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9289 (tic6x_software_single_step): Make it static.
9290 (_initialize_tic6x_tdep): New prototype.
9291
9292 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9293
9294 Fix -Wmissing-prototypes build.
9295 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9296 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9297
9298 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9299
9300 Fix -Wmissing-prototypes build.
9301 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9302 (frv_have_stopped_data_address): Remove.
9303
9304 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9305
9306 Fix -Wmissing-prototypes build.
9307 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9308 * sh-tdep.c: Include sh64-tdep.h.
9309 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9310 * sh64-tdep.c: Include sh64-tdep.h.
9311 * sh64-tdep.h: New file.
9312
9313 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9314
9315 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9316
9317 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9318
9319 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9320 sp_regnum once the gdbarch_init_osabi hook has been called.
9321
9322 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9323
9324 * mips-tdep.c (mips32_bc1_pc): New function.
9325 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9326 BPOSGE32 and BPOSGE64 instructions.
9327 (deal_with_atomic_sequence): Likewise.
9328 (mips32_instruction_has_delay_slot): Likewise.
9329
9330 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9331 Chris Dearman <chris@mips.com>
9332 Maciej W. Rozycki <macro@codesourcery.com>
9333 Joseph Myers <joseph@codesourcery.com>
9334
9335 * features/mips-dsp.xml: New file.
9336 * features/mips64-dsp.xml: New file.
9337 * features/mips-dsp-linux.xml: New file.
9338 * features/mips64-dsp-linux.xml: New file.
9339 * features/Makefile (WHICH): Add mips-dsp-linux and
9340 mips64-dsp-linux.
9341 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9342 * features/mips-dsp-linux.c: New file.
9343 * features/mips64-dsp-linux.c: New file.
9344 * regformats/mips-dsp-linux.dat: New file.
9345 * regformats/mips64-dsp-linux.dat: New file.
9346 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9347 registers.
9348 (mips64_linux_register_addr): Likewise.
9349 (mips64_linux_regsets_fetch_registers): Likewise.
9350 (mips64_linux_regsets_store_registers): Likewise.
9351 (mips64_linux_fetch_registers): Update call to
9352 mips64_linux_regsets_fetch_registers.
9353 (mips64_linux_store_registers): Update call to
9354 mips64_linux_regsets_store_registers.
9355 (mips_linux_read_description): Probe for DSP registers.
9356 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9357 and initialize_tdesc_mips64_dsp_linux.
9358 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9359 Remove padding of no longer used embedded register slots.
9360 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9361 (MIPS_RESTART_REGNUM): Redefine enum value.
9362 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9363 strings.
9364 (mips_tx39_reg_names): Likewise.
9365 (mips_linux_reg_names): New array of register names for Linux
9366 targets.
9367 (mips_register_name): Check for a null pointer in
9368 mips_processor_reg_names and return an empty string.
9369 (mips_register_type): Exclude embedded registers for the IRIX
9370 and Linux ABIs.
9371 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9372 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9373 DSP registers.
9374 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9375 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9376 (mips_gdbarch_init): Likewise. Initialize internal register
9377 indices for the Linux ABI. Use dynamic numbers to refer to
9378 registers, as applicable, while parsing the target description.
9379 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9380
9381 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9382
9383 * frame.h (read_frame_register_unsigned): Fix typo in function
9384 description.
9385
9386 2012-03-01 Pedro Alves <palves@redhat.com>
9387
9388 * jit-reader.in [!__cplusplus]
9389 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9390
9391 2012-03-01 Pedro Alves <palves@redhat.com>
9392
9393 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9394 * configure: Regenerate.
9395
9396 2012-03-01 Pedro Alves <palves@redhat.com>
9397
9398 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9399 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9400 (ftrace_command, strace_command): Make static.
9401 * d-lang.c (_initialize_d_language): Declare.
9402 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9403 * dwarf2loc.c (_initialize_dwarf2loc):
9404 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9405 * exec.c (exec_get_section_table): Make static.
9406 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9407 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9408 * inferior.c (remove_inferior_command, add_inferior_command)
9409 (clone_inferior_command): Make static.
9410 * linux-nat.c (linux_nat_thread_address_space)
9411 (linux_nat_core_of_thread): Make static.
9412 * linux-tdep.c (_initialize_linux_tdep): Declare.
9413 * objc-lang.c (_initialize_objc_lang): Declare.
9414 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9415 Make static.
9416 (_initialize_opencl_language): Declare.
9417 * record.c (_initialize_record): Declare.
9418 * remote.c (demand_private_info, remote_get_tib_address)
9419 (remote_supports_cond_tracepoints)
9420 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9421 Make static.
9422 * skip.c (_initialize_step_skip): Declare.
9423 * symtab.c (skip_prologue_using_lineinfo): Make static.
9424 * tracepoint.c (delete_trace_state_variable)
9425 (trace_variable_command, delete_trace_variable_command)
9426 (get_uploaded_tsv, find_matching_tracepoint_location)
9427 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9428 Make static.
9429 * value.c (pack_unsigned_long): Make static.
9430 * varobj.c (varobj_ensure_python_env): Make static.
9431 * windows-tdep.c (_initialize_windows_tdep): Declare.
9432 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9433
9434 2012-03-01 Pedro Alves <palves@redhat.com>
9435
9436 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9437 gdbarch parameter.
9438 (linux_init_abi): Install it as has_shared_address_space gdbarch
9439 callback.
9440
9441 2012-03-01 Pedro Alves <palves@redhat.com>
9442
9443 * observer.c (observer_test_first_notification_function)
9444 (observer_test_second_notification_function)
9445 (observer_test_third_notification_function): Add declarations.
9446
9447 2012-03-01 Pedro Alves <palves@redhat.com>
9448
9449 * common/signals.c (default_target_signal_to_host)
9450 (default_target_signal_from_host): Move ...
9451 * arch-utils.c: ... here.
9452 * arch-utils.h (default_target_signal_to_host)
9453 (default_target_signal_from_host): Declare.
9454
9455 * common/signals.c (target_signal_from_command): Move ...
9456 * infrun.c: ... here.
9457 * inferior.h (target_signal_from_command): Declare.
9458 * target.h (target_signal_from_command)
9459 (default_target_signal_from_host, default_target_signal_to_host):
9460 Delete declarations.
9461
9462 * common/signals.c (_initialize_signals): Delete.
9463
9464 2012-03-01 Pedro Alves <palves@redhat.com>
9465
9466 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9467 both __cplusplus and !__cplusplus.
9468
9469 2012-03-01 Pedro Alves <palves@redhat.com>
9470
9471 * psymtab.c (find_and_open_source): Delete declaration.
9472 * source.c (find_and_open_source): Move comment ...
9473 * source.h (find_and_open_source): ... to this new declaration.
9474
9475 2012-03-01 Pedro Alves <palves@redhat.com>
9476
9477 * inline-frame.c: Include inline-frame.h.
9478
9479 2012-03-01 Pedro Alves <palves@redhat.com>
9480
9481 * tui/tui-data.c (set_gen_win_origin): Delete.
9482 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9483 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9484
9485 2012-03-01 Pedro Alves <palves@redhat.com>
9486
9487 * remote.c (encode_actions): Delete declaration.
9488 * tracepoint.c (encode_actions): Make extern.
9489 * tracepoint.h (encode_actions): Declare.
9490
9491 2012-03-01 Pedro Alves <palves@redhat.com>
9492
9493 * python/py-breakpoint.c: Include python.h.
9494 * python/py-continueevent.c (create_continue_event_object): Make
9495 static.
9496 * python/py-lazy-string.c (stpy_get_type): Make static.
9497 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9498 Make static.
9499 * python/py-utils.c (unicode_to_target_python_string): Make
9500 static.
9501 * python/py-value.c: Include python.h.
9502
9503 2012-03-01 Pedro Alves <palves@redhat.com>
9504
9505 * inferior.c (delete_threads_of_inferior): Delete.
9506
9507 2012-03-01 Pedro Alves <palves@redhat.com>
9508
9509 Import fallback definitions from glibc.
9510
9511 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9512 ps_prochandle): Forward declare.
9513 (ps_err_e): Use glibc's comments.
9514 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9515 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9516 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9517 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9518 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9519 (struct ps_prochandle): Adjust comment.
9520
9521 2012-03-01 Pedro Alves <palves@redhat.com>
9522
9523 * ada-lang.c (ada_modulus_from_name): Delete.
9524 * ada-lex.l (lexer_init): Make static.
9525
9526 2012-03-01 Pedro Alves <palves@redhat.com>
9527
9528 PR gdb/13767
9529
9530 * frame.c (read_frame_register_unsigned): New.
9531 * frame.h (read_frame_register_unsigned): Declare.
9532 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9533 Handle it.
9534 (print_i387_control_word): New parameter `control_p'. Handle it.
9535 (i387_print_float_info): Handle unavailable float registers.
9536
9537 2012-03-01 Keith Seitz <keiths@redhat.com>
9538
9539 * linespec.c (decode_line_2): Sort the list of methods
9540 alphabetically before presenting the user with a selection
9541 menu.
9542
9543 2012-03-01 Doug Evans <dje@google.com>
9544
9545 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9546 has_namespace_info.
9547 (dwarf2_read_abbrevs): Remove corresponding initialization.
9548
9549 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9550
9551 * NEWS: Mention new python command class gdb.COMMAND_USER.
9552 * cli/cli-cmds.c (show_user): Print error when used on a python
9553 command.
9554 (init_cli_cmds): Update documentation strings for "show user" and
9555 "set/show max-user-call-depth" to clarify that it does not apply to
9556 python commands.
9557 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9558 error check.
9559 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9560 gdb python api.
9561 * top.c (execute_command): Only execute a user-defined command as a
9562 legacy macro if c->user_commands is set.
9563
9564 2012-03-01 Tom Tromey <tromey@redhat.com>
9565
9566 * valprint.h (struct generic_val_print_decorations): New.
9567 (generic_val_print): Declare.
9568 * valprint.c (generic_val_print): New function.
9569 * p-valprint.c (p_decorations): New global.
9570 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9571 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9572 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9573 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9574 * m2-valprint.c (m2_decorations): New global.
9575 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9576 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9577 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9578 TYPE_CODE_ERROR>: Call generic_val_print.
9579 * f-valprint.c (f_decorations): New global.
9580 (f_val_print): Use print_function_pointer_address.
9581 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9582 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9583 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9584 generic_val_print.
9585 * c-valprint.c (c_decorations): New global.
9586 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9587 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9588 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9589 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9590 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9591 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9592 case.
9593
9594 2012-03-01 Tom Tromey <tromey@redhat.com>
9595
9596 * valprint.c (val_print): Update.
9597 * p-valprint (pascal_val_print): Return void.
9598 * p-lang.h (pascal_val_print): Return void.
9599 * m2-valprint.c (m2_val_print): Return void.
9600 * m2-lang.h (m2_val_print): Return void.
9601 * language.h (struct language_defn) <la_val_print>: Return void.
9602 * language.c (unk_lang_val_print): Return void.
9603 * jv-valprint.c (java_val_print): Return void.
9604 * jv-lang.h (java_val_print): Return void.
9605 * f-valprint.c (f_val_print): Return void.
9606 * f-lang.h (f_val_print): Return void.
9607 * d-valprint.c (d_val_print): Return void.
9608 (dynamic_array_type): Update.
9609 * d-lang.h (d_val_print): Return void.
9610 * c-valprint.c (c_val_print): Return void.
9611 * c-lang.h (c_val_print): Return void.
9612 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9613 void.
9614 * ada-lang.h (ada_val_print): Return void.
9615
9616 2012-03-01 Tom Tromey <tromey@redhat.com>
9617
9618 * value.h (val_print): Return void.
9619 * valprint.c (val_print): Return void.
9620
9621 2012-03-01 Tom Tromey <tromey@redhat.com>
9622
9623 * value.h (common_val_print): Return void.
9624 * valprint.c (common_val_print): Return void.
9625
9626 2012-03-01 Tom Tromey <tromey@redhat.com>
9627
9628 * value.h (value_print): Return void.
9629 * valprint.c (value_print): Return void.
9630 * p-valprint.c (pascal_value_print): Return void.
9631 * p-lang.h (pascal_value_print): Return void.
9632 * language.h (struct language_defn) <la_value_print>: Return
9633 void.
9634 * language.c (unk_lang_value_print): Return void.
9635 * jv-valprint.c (java_value_print): Return void.
9636 * jv-lang.h (java_value_print): Return void.
9637 * f-valprint.c (c_value_print): Don't declare.
9638 Include c-lang.h.
9639 * c-valprint.c (c_value_print): Return void.
9640 * c-lang.h (c_value_print): Return void.
9641 * ada-valprint.c (ada_value_print): Return void.
9642 * ada-lang.h (ada_value_print): Return void.
9643
9644 2012-03-01 Tom Tromey <tromey@redhat.com>
9645
9646 * value.c (value_primitive_field): Handle virtual base classes.
9647
9648 2012-03-01 Tom Tromey <tromey@redhat.com>
9649
9650 * gdbtypes.h (struct vbase): Remove.
9651
9652 2012-03-01 Tom Tromey <tromey@redhat.com>
9653
9654 * c-valprint.c (print_function_pointer_address): Move...
9655 * valprint.c: ... here. Make non-static.
9656 * m2-valprint.c (print_function_pointer_address): Remove.
9657 * valprint.h (print_function_pointer_address): Declare.
9658
9659 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9660
9661 * NEWS: Document the fact that one can provide a condition when
9662 creating an Ada exception catchpoint.
9663
9664 2012-03-01 Tom Tromey <tromey@redhat.com>
9665
9666 * valprint.c (val_print_type_code_flags): Fix placement of
9667 trailing brace.
9668
9669 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9670
9671 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9672 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9673 environment variable before calling update-copyright.
9674
9675 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9676
9677 * gnulib/extra/update-copyright: Update to the latest from
9678 gnulib's git repository.
9679 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9680 variable to 2 instead of 1.
9681
9682 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9683
9684 * varobj.c (c_value_of_variable): Remove dead code.
9685
9686 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9687
9688 * ada-lex.p (processId): Do not modify already encoded IDs.
9689 Update function documentation.
9690
9691 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9692
9693 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9694 "name" with "struct symbol *name_sym".
9695 * ada-exp.y (write_var_or_type): Update call to
9696 ada_find_renaming_symbol.
9697 "name" with "struct symbol *name_sym". Adjust Implementation
9698 accordingly. Adjust the function documentation.
9699
9700 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9701
9702 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9703 * ada-lang.c (ada_find_any_type): Add advance declaration.
9704 Make static. Replace ada_find_any_symbol by
9705 ada_find_any_type_symbol.
9706 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9707 Improve function description. Make static.
9708 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9709 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9710
9711 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9712
9713 * ada-lang.c (struct tag_args): Delete.
9714 (ada_get_tsd_type): Function body moved up in source file.
9715 (ada_tag_name_1, ada_tag_name_2): Delete.
9716 (ada_get_tsd_from_tag): New function.
9717 (ada_tag_name_from_tsd): New function.
9718 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9719 to determine the tag name.
9720
9721 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9722
9723 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9724 declaration.
9725 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9726 function.
9727
9728 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9729
9730 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9731
9732 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9733
9734 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9735 full searches.
9736
9737 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9738
9739 * ada-lang.c (constrained_packed_array_type): If there is a
9740 parallel XA type, use it to determine the array index type.
9741
9742 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9743
9744 * ada-valprint.c (ada_val_print_1): If our value is a reference
9745 to an array descriptor, dereference it before converting it
9746 to a simple array.
9747
9748 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9749
9750 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9751 creating fixed value.
9752 (ada_value_ind, ada_coerce_ref, assign_component)
9753 (ada_evaluate_subexp): Remove call to unwrap_value before
9754 call to ada_to_fixed_value.
9755
9756 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9757
9758 * ada-lang.c (to_fixed_array_type): Set result's type name.
9759
9760 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9761
9762 * ada-lang.c (catch_ada_exception_command_split): Add new
9763 argument cond_string. Add support for condition at end of
9764 "catch exception" commands.
9765 (ada_decode_exception_location): Add new argument cond_string.
9766 Update call to catch_ada_exception_command_split.
9767 (create_ada_exception_catchpoint): Add new argument cond_string.
9768 Set the breakpoint condition if needed.
9769 (catch_ada_exception_command): Update call to
9770 ada_decode_exception_location.
9771 (ada_decode_assert_location): Add function documentation.
9772 Add support for condition at end of "catch assert" command.
9773 (catch_assert_command): Update calls to ada_decode_assert_location
9774 and create_ada_exception_catchpoint.
9775
9776 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9777
9778 Fix disp-step-syscall.exp: fork: single step over fork.
9779 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9780 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9781 comment, change parameters gdbarch and ptid to regcache. Remove
9782 parameter regcache, initialize gdbarch from regcache here.
9783 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9784 New functions.
9785 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9786 instead.
9787 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9788 'syscall'. Make the 'int' check more strict.
9789
9790 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9791
9792 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9793 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9794 (i386_linux_intx80_sysenter_syscall_record): ... here.
9795 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9796 Use the renamed function name.
9797
9798 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9799
9800 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9801 * breakpoint.c (until_break_command): Likewise.
9802 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9803 * infcall.c (call_function_by_hand): Likewise.
9804 * infcmd.c (finish_forward): Likewise.
9805 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9806
9807 2012-02-28 Tristan Gingold <gingold@adacore.com>
9808
9809 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9810 avoid variable assignments inside condition.
9811
9812 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9813
9814 Fix static analysis issue found by cppcheck.
9815 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9816 uninitialized BUF for size 2.
9817
9818 2012-02-27 Chris Dearman <chris@mips.com>
9819 Nathan Froyd <froydnj@codesourcery.com>
9820 Maciej W. Rozycki <macro@codesourcery.com>
9821
9822 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9823 (mips16_instruction_has_delay_slot): Likewise.
9824 (mips_segment_boundary): Likewise.
9825 (mips_adjust_breakpoint_address): Likewise.
9826 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9827
9828 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9829 Maciej W. Rozycki <macro@codesourcery.com>
9830
9831 * infrun.c (handle_inferior_event): Don't proceed through
9832 shared library trampolines if stepping at the machine
9833 instruction level.
9834
9835 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9836
9837 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9838 too.
9839
9840 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9841
9842 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9843 (sh_stub_unwind_sniffer): New functions.
9844 (sh_stub_unwind): New variable.
9845 (sh_gdbarch_init): Wire everything.
9846
9847 2012-02-27 Pedro Alves <palves@redhat.com>
9848
9849 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9850 (linux_nat_post_attach_wait): Adjust to use
9851 linux_proc_pid_is_stopped.
9852 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9853 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9854 based on pid_is_stopped from both linux-nat.c and
9855 gdbserver/linux-low.c, and renamed.
9856
9857 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9858
9859 * remote.c (remote_watchpoint_addr_within_range): New function.
9860 (init_remote_ops): Use it.
9861
9862 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9863
9864 * target.h (target_watchpoint_addr_within_range): Document macro.
9865
9866 2012-02-24 Pedro Alves <palves@redhat.com>
9867
9868 * stack.c (set_last_displayed_sal): Issue internal_error instead
9869 of warning, and issue it after clearing the last displayed sal.
9870
9871 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9872 Pedro Alves <palves@redhat.com>
9873
9874 * breakpoint.c (until_break_command): Install breakpoints after
9875 all frame manipulations.
9876
9877 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9878
9879 * remote.c (remote_supports_cond_breakpoints): New forward
9880 declaration.
9881 (remote_add_target_side_condition): New function.
9882 (remote_insert_breakpoint): Add target-side breakpoint
9883 conditional if supported.
9884 (remote_insert_hw_breakpoint): Likewise.
9885 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9886 hook.
9887
9888 * target.c (update_current_target): Inherit
9889 to_supports_evaluation_of_breakpoint_conditions.
9890 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9891
9892 * target.h (struct target_ops)
9893 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9894 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9895
9896 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9897 (condition_evaluation_both, condition_evaluation_auto,
9898 condition_evaluation_host, condition_evaluation_target,
9899 condition_evaluation_enums, condition_evaluation_mode_1,
9900 condition_evaluation_mode): New static globals.
9901 (translate_condition_evaluation_mode): New function.
9902 (breakpoint_condition_evaluation_mode): New function.
9903 (gdb_evaluates_breakpoint_condition_p): New function.
9904 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9905 (mark_breakpoint_modified): New function.
9906 (mark_breakpoint_location_modified): New function.
9907 (set_condition_evaluation_mode): New function.
9908 (show_condition_evaluation_mode): New function.
9909 (bp_location_compare_addrs): New function.
9910 (get_first_location_gte_addr): New helper function.
9911 (set_breakpoint_condition): Free condition bytecode if locations
9912 has become unconditional. Call mark_breakpoint_modified (...).
9913 (condition_command): Call update_global_location_list (1) for
9914 breakpoints.
9915 (breakpoint_xfer_memory): Use is_breakpoint (...).
9916 (is_breakpoint): New function.
9917 (parse_cond_to_aexpr): New function.
9918 (build_target_condition_list): New function.
9919 (insert_bp_location): Handle target-side conditional
9920 breakpoints and call build_target_condition_list (...).
9921 (update_inserted_breakpoint_locations): New function.
9922 (insert_breakpoint_locations): Handle target-side conditional
9923 breakpoints.
9924 (bpstat_check_breakpoint_conditions): Add comment.
9925 (bp_condition_evaluator): New function.
9926 (bp_location_condition_evaluator): New function.
9927 (print_breakpoint_location): Print information on where the condition
9928 will be evaluated.
9929 (print_one_breakpoint_location): Likewise.
9930 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9931 breakpoint location.
9932 (force_breakpoint_reinsertion): New functions.
9933 (update_global_location_list): Handle target-side breakpoint
9934 conditions.
9935 Reinsert locations that are already inserted if conditions have
9936 changed.
9937 (bp_location_dtor): Free agent expression bytecode.
9938 (disable_breakpoint): Call mark_breakpoint_modified (...).
9939 Call update_global_location_list (...) with parameter 1 for breakpoints.
9940 (disable_command): Call mark_breakpoint_location_modified (...).
9941 Call update_global_location_list (...) with parameter 1 for breakpoints.
9942 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9943 (enable_command): mark_breakpoint_location_modified (...).
9944 (_initialize_breakpoint): Update documentation and add
9945 condition-evaluation breakpoint subcommand.
9946
9947 * breakpoint.h: Include ax.h.
9948 (condition_list): New data structure.
9949 (condition_status): New enum.
9950 (bp_target_info) <cond_list>: New field.
9951 (bp_location) <condition_changed, cond_bytecode>: New fields.
9952 (is_breakpoint): New prototype.
9953
9954 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9955
9956 * remote.c (remote_state) <cond_breakpoints>: New field.
9957 (PACKET_ConditionalBreakpoints): New enum.
9958 (remote_cond_breakpoint_feature): New function.
9959 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9960 (remote_supports_cond_breakpoints): New function.
9961 (_initialize_remote): Add new packet configuration for
9962 target-side conditional breakpoints.
9963
9964 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9965
9966 * NEWS: Mention target-side conditional breakpoint support,
9967 new condition-evaluation breakpoint subcommand and remote
9968 packet extensions.
9969
9970 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9971
9972 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9973 number.
9974
9975 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9976
9977 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9978 (after_prologue): Remove.
9979
9980 2012-02-23 Tom Tromey <tromey@redhat.com>
9981
9982 * jv-valprint.c (java_val_print): Remove dead code.
9983
9984 2012-02-23 Tristan Gingold <gingold@adacore.com>
9985
9986 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9987 known_tasks_element and known_tasks_length fields.
9988 (read_known_tasks_array): Change argument type. Use pointer type
9989 and number of elements from DATA. Adjust.
9990 (read_known_tasks_list): Likewise.
9991 (get_known_tasks_addr): Remove.
9992 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9993 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9994 type and array length. Merge former get_known_tasks_addr code.
9995
9996 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 PR backtrace/13716
9999 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10000 it after set_momentary_breakpoint.
10001
10002 2012-02-22 Sterling Augustine <saugustine@google.com>
10003
10004 PR 13689:
10005 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10006
10007 2012-02-22 Gary Benson <gbenson@redhat.com>
10008
10009 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10010 (find_slot_in_mapped_hash): Likewise.
10011
10012 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10013
10014 PR build/13638
10015 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10016 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10017 * configure: Regenerate.
10018
10019 2012-02-21 Tristan Gingold <gingold@adacore.com>
10020 Pedro Alves <palves@redhat.com>
10021
10022 * ia64-tdep.c: Do not include libunwind-ia64.h.
10023 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10024 Include libunwind-ia64.h instead of libunwind.h.
10025 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10026 for libunwind.h existence.
10027 * configure, config.in: Regenerate.
10028
10029 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10030
10031 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10032 instead of value_rtti_target_type.
10033 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10034 instead of value_rtti_target_type.
10035 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10036 value_rtti_target_type.
10037 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10038 (value_rtti_target_type): Rename to ...
10039 (value_rtti_indirect_type): ... here and make it indirect. Update
10040 function comment.
10041 * value.c (readjust_indirect_value_type): New function.
10042 (coerce_ref): Support for enclosing type setting for references
10043 with readjust_indirect_value_type.
10044 * value.h (readjust_value_type): New declaration.
10045 (value_rtti_target_type): Rename to ...
10046 (value_rtti_indirect_type): ... here.
10047
10048 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10049
10050 * MAINTAINERS (Write After Approval): Add myself to the list.
10051
10052 2012-02-20 Doug Evans <dje@google.com>
10053
10054 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10055 Rename objfile_p_char parameter to objfilep.
10056 (build_objfile_section_table): Result is now void. All callers
10057 updated.
10058 * objfiles.h (struct objfile): Tweak comments, whitespace.
10059 (build_objfile_section_table): Update.
10060
10061 * elfread.c (elf_symfile_segments): Fix warning text.
10062
10063 2012-02-20 Tom Tromey <tromey@redhat.com>
10064
10065 PR gdb/13498:
10066 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10067 particular set of file names once.
10068 (dw2_map_symbol_filenames): Likewise.
10069
10070 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10071
10072 Code cleanup.
10073 * main.c (write_files): Remove the declaration.
10074 (external_editor_command): Move the declaration ...
10075 [GDBTK] (external_editor_command): ... here. Fix the comment.
10076
10077 2012-02-20 Tom Tromey <tromey@redhat.com>
10078
10079 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10080 extraneous block.
10081
10082 2012-02-20 Tristan Gingold <gingold@adacore.com>
10083
10084 * darwin-nat.h (enum darwin_msg_state): Add comments.
10085
10086 2012-02-20 Tristan Gingold <gingold@adacore.com>
10087
10088 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10089 value.
10090
10091 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10092
10093 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10094 between function description and implementation.
10095
10096 2012-02-17 Tom Tromey <tromey@redhat.com>
10097
10098 PR python/12070:
10099 * python/py-event.c (event_object_getset): New global.
10100 (event_object_type): Reference it.
10101 * python/py-type.c (field_object_getset): New global.
10102 (field_object_type): Reference it.
10103 * python/python-internal.h (gdb_py_generic_dict): Declare.
10104 * python/py-utils.c (gdb_py_generic_dict): New function.
10105
10106 2012-02-17 Tristan Gingold <gingold@adacore.com>
10107
10108 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10109
10110 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10111
10112 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10113 TYPE_CALLING_CONVENTION annotation.
10114
10115 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10116
10117 * MAINTAINERS: Add rx to target ISA section.
10118 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10119 (ALLDEPFILES): Add rx-tdep.c.
10120
10121 2012-02-16 Tom Tromey <tromey@redhat.com>
10122
10123 * symfile.c (symbol_file_add_main_1): Use inferior's
10124 symfile_flags.
10125 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10126 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10127 inferior.
10128 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10129 inferior.
10130 (follow_exec): Use inferior's symfile_flags.
10131 * inferior.h (struct inferior) <symfile_flags>: New field.
10132
10133 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10134
10135 PR gdb/9734:
10136 * remote-sim.c (gdbsim_create_inferior): Call error() when
10137 sim_create_inferior() fails.
10138
10139 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10140
10141 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10142
10143 2012-02-16 Tom Tromey <tromey@redhat.com>
10144
10145 PR c++/13653:
10146 * thread.c (struct current_thread_cleanup) <was_removable>: New
10147 field.
10148 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10149 (make_cleanup_restore_current_thread): Initialize new field.
10150
10151 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10152
10153 * MAINTAINERS: Add rl78 to target ISA section.
10154 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10155 (ALLDEPFILES): Add rl78-tdep.c.
10156 * NEWS: Mention rl78 as a new target.
10157
10158 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10159
10160 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10161 data.
10162 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10163
10164 2012-02-15 Tom Tromey <tromey@redhat.com>
10165
10166 PR gdb/12659:
10167 * infcmd.c (registers_info): Print just the current register's
10168 name.
10169
10170 2012-02-15 Tom Tromey <tromey@redhat.com>
10171
10172 * python/py-symbol.c (sympy_value): Use _().
10173
10174 2012-02-15 Pedro Alves <palves@redhat.com>
10175
10176 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10177 output to be like native targets'.
10178 (remote_pid_to_str): Special case the null ptid.
10179
10180 2012-02-14 Stan Shebs <stan@codesourcery.com>
10181
10182 * NEWS: Mention enable count command.
10183 * breakpoint.h (struct breakpoint): New field enable_count.
10184 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10185 (enable_breakpoint): Add arg to call.
10186 (struct disp_data): New struct.
10187 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10188 (do_map_enable_once_breakpoint): Create a struct and pass it.
10189 (do_map_enable_delete_breakpoint): Ditto.
10190 (do_map_enable_count_breakpoint): New function.
10191 (enable_count_command): New function.
10192 (bpstat_stop_status): Decrement enable_count.
10193 (print_one_breakpoint_location): Report enable count.
10194 (_initialize_breakpoint): Add enable count command.
10195
10196 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10197
10198 * rl78-tdep.c (reggroups.h): Include.
10199 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10200 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10201 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10202 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10203 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10204 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10205 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10206 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10207 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10208 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10209 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10210 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10211 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10212 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10213 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10214 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10215 beginning of register list.
10216 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10217 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10218 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10219 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10220 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10221 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10222 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10223 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10224 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10225 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10226 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10227 the pseudo registers. Rearrange other pseudo registers too so
10228 that the bank registers appear at the end.
10229 (rl78_register_type): Account for the fact that the byte sized
10230 bank registers are now pseudo-registers.
10231 (rl78_register_name): Rearrange the register name array. Make
10232 initial set of raw banked registers inaccessible.
10233 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10234 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10235 case for copying bytes back and forth between raw and pseudo
10236 versions of the banked registers. Update other cases to reflect
10237 the changed names.
10238 (rl78_return_value): Update to account for changed names of
10239 raw registers.
10240 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10241 rl78_register_sim_regno().
10242
10243 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10244
10245 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10246 the name parameter being passed to find_pc_partial_function().
10247
10248 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10249
10250 * MAINTAINERS: Step down from being ia64 target maintainer.
10251
10252 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10253
10254 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10255 compilation warning.
10256
10257 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 Fix crash on loaded shlibs without loaded exec_bfd.
10260 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10261 (set_section_command): Replace exec_bfd by p->bfd.
10262
10263 2012-02-10 Tom Tromey <tromey@redhat.com>
10264
10265 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10266 when we have a C++ qualified name.
10267
10268 2012-02-10 Pedro Alves <palves@redhat.com>
10269
10270 * inferior.c (inferior_pid_to_str): New.
10271 (print_inferior, inferior_command): Use it.
10272
10273 2012-02-10 Pedro Alves <palves@redhat.com>
10274
10275 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10276 the test CFLAGS.
10277 * configure: Regenerate.
10278
10279 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10280
10281 * linespec.c (decode_line_internal): Fix comment correctness.
10282
10283 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10284
10285 PR gdb/12953
10286 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10287 * amd64bsd-nat.c: Add support for debug registers (adapted from
10288 i386bsd-nat.c).
10289 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10290 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10291 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10292 (amd64bsd_dr_get_control): New functions.
10293 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10294 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10295 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10296 watchpoints initialization.
10297 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10298
10299 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10300
10301 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10302 flds_bnds.fields.
10303 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10304
10305 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10306
10307 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10308
10309 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10310
10311 * language.h (symbol_name_cmp_ftype): Renames
10312 symbol_name_match_p_ftype.
10313 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10314 la_get_symbol_name_match_p.
10315 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10316 ada_get_symbol_name_match_p. Update comment.
10317 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10318 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10319 Renames symbol_name_match_p. Update field type.
10320 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10321 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10322 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10323 "la_get_symbol_name_cmp" in comments.
10324 * language.c: Likewise.
10325
10326 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10327
10328 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10329 %eflags offset.
10330 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10331 (amd64_sol2_gregset32_reg_offs): Likewise.
10332
10333 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10334
10335 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10336 of the returned BFD is allocated by GDB.
10337
10338 2012-02-07 Tom Tromey <tromey@redhat.com>
10339
10340 PR python/12027:
10341 * python/python-internal.h (frame_object_type): Declare.
10342 * python/py-symbol.c (sympy_needs_frame): New function.
10343 (sympy_value): New function.
10344 (symbol_object_getset): Add "needs_frame".
10345 (symbol_object_methods): Add "value".
10346 * python/py-frame.c (frame_object_type): No longer static.
10347
10348 2012-02-07 Tom Tromey <tromey@redhat.com>
10349
10350 PR python/13599:
10351 * python/py-symbol.c (sympy_line): New function.
10352 (symbol_object_getset): Add "line".
10353
10354 2012-02-07 Tom Tromey <tromey@redhat.com>
10355
10356 * charset.c (find_charset_names): Check 'in' against NULL.
10357
10358 2012-02-06 Doug Evans <dje@google.com>
10359
10360 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10361 and fields.name members from char * to const char *. All uses updated.
10362 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10363 from char * to const char *. All uses updated.
10364 (type_name_no_tag): Update.
10365 (lookup_unsigned_typename, lookup_signed_typename): Update.
10366 * gdbtypes.c (type_name_no_tag): Change result type
10367 from char * to const char *. All callers updated.
10368 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10369 name parameter from char * to const char *.
10370 * symtab.h (struct cplus_specific): Change type of demangled_name
10371 member from char * to const char *. All uses updated.
10372 (struct general_symbol_info): Change type of name and
10373 mangled_lang.demangled_name members from char * to const char *.
10374 All uses updated.
10375 (symbol_get_demangled_name, symbol_natural_name): Update.
10376 (symbol_demangled_name, symbol_search_name): Update.
10377 * symtab.c (symbol_get_demangled_name): Change result type
10378 from char * to const char *. All callers updated.
10379 (symbol_natural_name, symbol_demangled_name): Ditto.
10380 (symbol_search_name): Ditto.
10381 (completion_list_add_name): Change type of symname,sym_text,
10382 text,word parameters from char * to const char *.
10383 (completion_list_objc_symbol): Change type of sym_text,
10384 text,word parameters from char * to const char *.
10385 * ada-lang.c (find_struct_field): Change type of name parameter
10386 from char * to const char *.
10387 (encoded_ordered_before): Similarly for N0,N1 parameters.
10388 (old_renaming_is_invisible): Similarly for function_name parameter.
10389 (ada_type_name): Change result type from char * to const char *.
10390 All callers updated.
10391 * ada-lang.h (ada_type_name): Update.
10392 * buildsym.c (hashname): Change type of name parameter
10393 from char * to const char *.
10394 * buildsym.h (hashname): Update.
10395 * dbxread.c (end_psymtab): Change type of include_list parameter
10396 from char ** to const char **.
10397 * dwarf2read.c (determine_prefix): Change result type
10398 from char * to const char *. All callers updated.
10399 * f-lang.c (find_common_for_function): Change type of name, funcname
10400 parameters from char * to const char *.
10401 * f-lang.c (find_common_for_function): Update.
10402 * f-valprint.c (list_all_visible_commons): Change type of funcname
10403 parameters from char * to const char *.
10404 * gdbarch.sh (static_transform_name): Change type of name parameter
10405 and result from char * to const char *.
10406 * gdbarch.c: Regenerate.
10407 * gdbarch.h: Regenerate.
10408 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10409 of name parameter from char * to const char *.
10410 * jv-lang.c (java_primitive_type_from_name): Ditto.
10411 (java_demangled_signature_length): Similarly for signature parameter.
10412 (java_demangled_signature_copy): Ditto.
10413 (java_demangle_type_signature): Ditto.
10414 * jv-lang.h (java_primitive_type_from_name): Update.
10415 (java_demangle_type_signature): Update.
10416 * objc-lang.c (specialcmp): Change type of a,b parameters
10417 from char * to const char *.
10418 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10419 from char * to const char *. All callers updated.
10420 * p-lang.h (is_pascal_string_type): Update.
10421 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10422 of name parameter from char * to const char *.
10423 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10424 * utils.c (fprintf_symbol_filtered): Ditto.
10425 * defs.h (fprintf_symbol_filtered): Update.
10426 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10427 * stabsread.h (end_psymtab): Update.
10428 * stack.c (find_frame_funname): Change type of funname parameter
10429 from char ** to const char **.
10430 * stack.h (find_frame_funname): Update.
10431 * typeprint.c (type_print): Change type of varstring parameter
10432 from char * to const char *.
10433 * value.h (type_print): Update.
10434 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10435 from char * to const char *. All callers updated.
10436 (xcoff_end_psymtab): Change type of include_list parameter
10437 from char ** to const char **. All callers updated.
10438 (swap_sym): Similarly for name parameter. All callers updated.
10439 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10440 Use xstrdup.
10441 (process_coff_symbol): Use xstrdup.
10442 * stabsread.c (stabs_method_name_from_physname): Renamed from
10443 update_method_name_from_physname. Change result type from void
10444 to char *. All callers updated.
10445 (read_member_functions): In has_destructor case, store name in objfile
10446 obstack instead of malloc space. In !has_stub case, fix mem leak.
10447
10448 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10449
10450 * configure: Rebuild.
10451 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10452 LDFLAGS.
10453
10454 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10455
10456 * configure.tgt (rl78-*-elf): New target.
10457 * rl78-tdep.c: New file.
10458
10459 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10460
10461 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10462 and continue the loop. Add QUIT statement.
10463
10464 2012-02-03 Tom Tromey <tromey@redhat.com>
10465
10466 PR gdb/13596:
10467 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10468 bfd_lookup_symbol_from_symtab.
10469 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10470 gdb_bfd_lookup_symbol_from_symtab.
10471
10472 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10473
10474 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10475 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10476 symbol. Add assertion that sym2 is never NULL.
10477
10478 2012-02-02 Doug Evans <dje@google.com>
10479
10480 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10481 "name" parameter to const char ** from char **. All callers updated.
10482 (find_pc_partial_function): Ditto.
10483 (cache_pc_function_name): Change type to const char * from char *.
10484 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10485 (find_pc_partial_function): Update.
10486 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10487 type of "name" parameter to const char * from char *.
10488 All uses updated.
10489 * arch-utils.c (generic_in_solib_return_trampoline): Change
10490 type of "name" parameter to const char * from char *.
10491 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10492 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10493 type of "name" parameter to const char * from char *.
10494 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10495 * gdbarch.c: Regenerate.
10496 * gdbarch.h: Regenerate.
10497 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10498 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10499 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10500 type of "name" parameter to const char * from char *.
10501 * skip.c (skip_function_pc): Ditto.
10502 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10503 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10504 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10505 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10506 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10507 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10508 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10509 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10510 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10511
10512 2012-02-02 Pedro Alves <palves@redhat.com>
10513
10514 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10515 the current inferior has no execution. Make sure the current
10516 remote process matches gdb's current inferior.
10517
10518 2012-02-02 Tom Tromey <tromey@redhat.com>
10519
10520 PR gdb/13405:
10521 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10522 read-only memory.
10523
10524 2012-02-02 Tom Tromey <tromey@redhat.com>
10525
10526 PR gdb/9307:
10527 * symtab.c (lookup_language_this): Set block_found.
10528
10529 2012-02-01 Tom Tromey <tromey@redhat.com>
10530
10531 PR gdb/13431:
10532 * jit.c (struct jit_inferior_data): Rewrite.
10533 (struct jit_objfile_data): New.
10534 (get_jit_objfile_data): New function.
10535 (add_objfile_entry): Update.
10536 (jit_read_descriptor): Return int. Replace descriptor_addr
10537 argument with inf_data. Update. Don't call error.
10538 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10539 descriptor here.
10540 (jit_inferior_init): Don't look up descriptor. Don't call error.
10541 (jit_reset_inferior_data_and_breakpoints)
10542 (jit_inferior_created_observer): Remove.
10543 (jit_inferior_exit_hook): Update.
10544 (jit_executable_changed_observer): Remove.
10545 (jit_event_handler): Update.
10546 (free_objfile_data): Reset inferior data if needed.
10547 (_initialize_jit): Update.
10548
10549 2012-02-01 Tom Tromey <tromey@redhat.com>
10550
10551 * jit.c (bfd_open_from_target_memory): Move higher in file.
10552
10553 2012-02-01 Tristan Gingold <gingold@adacore.com>
10554
10555 * libunwind-frame.c (libunwind_load): Display message if dlopen
10556 failed.
10557
10558 2012-02-01 Gary Benson <gbenson@redhat.com>
10559
10560 * symtab.h (symbol_found_callback_ftype): New typedef.
10561 (iterate_over_symbols): Use the above.
10562 * symtab.c (iterate_over_symbols): Likewise.
10563 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10564 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10565 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10566 (iterate_name_matcher): Document return values.
10567 (collect_one_symbol): Likewise.
10568 (collect_function_symbols): Likewise.
10569 (collect_symbols): Likewise.
10570
10571 2012-02-01 Tom Tromey <tromey@redhat.com>
10572
10573 * ada-lang.c (resolve_subexp): Update.
10574 (ada_lookup_symbol_list): Add 'full_search' argument.
10575 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10576 ada_lookup_symbol_list.
10577 (ada_lookup_encoded_symbol): Update.
10578 (get_var_value): Update.
10579 * ada-exp.y (block_lookup): Update.
10580 (write_var_or_type): Update.
10581 (write_name_assoc): Update.
10582 * ada-lang.h (ada_lookup_symbol_list): Update.
10583
10584 2012-01-31 Tom Tromey <tromey@redhat.com>
10585
10586 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10587 comment.
10588
10589 2012-01-31 Doug Evans <dje@google.com>
10590
10591 * symtab.h: Remove outdated comment.
10592 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10593
10594 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10595
10596 Fix build error in Darwin port.
10597 * i386-darwin-nat.c: Include i386-nat.h.
10598
10599 2012-01-30 Tom Tromey <tromey@redhat.com>
10600
10601 PR breakpoints/13568:
10602 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10603 argument. Check for recursive includes.
10604 (dwarf_decode_macros): Create an include hash.
10605
10606 2012-01-30 Michael Eager <eager@eagercon.com>
10607
10608 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10609 * ppc-linux-tdep.c: Include glibc-tdep.h.
10610 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10611 (powerpc_linux_in_plt_stub): New function.
10612 (powerpc_linux_in_dynsym_resolve_code): New function.
10613 (ppc_skip_trampoline_code): New function.
10614 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10615 Use glibc_skip_solib_resolver.
10616
10617 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 Code cleanup: Make 1440 bytes of data segment read-only.
10620 * arch-utils.c (endian_enum): Make it const char *const [].
10621 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10622 Likewise.
10623 * breakpoint.c (always_inserted_enums): Likewise.
10624 * cli/cli-cmds.c (script_ext_enums): Likewise.
10625 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10626 enumlist parameter const char *const *.
10627 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10628 const char *const *.
10629 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10630 parameter const char *const *.
10631 * cris-tdep.c (cris_modes): Make it const char *const [].
10632 * filesystem.c (target_file_system_kinds): Likewise.
10633 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10634 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10635 (can_use_displaced_stepping_enum, scheduler_enums)
10636 (exec_direction_names): Likewise.
10637 * language.c (_initialize_language): Make the type_or_range_names and
10638 case_sensitive_names variables const char *const [].
10639 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10640 * python/python.c (python_excp_enums): Likewise.
10641 * remote.c (interrupt_sequence_modes): Likewise.
10642 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10643 * serial.c (logbase_enums): Likewise.
10644 * sh-tdep.c (sh_cc_enum): Likewise.
10645 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10646 Likewise.
10647 * symtab.c (multiple_symbols_modes): Likewise.
10648 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10649 Likewise.
10650 * utils.c (internal_problem_modes): Likewise.
10651
10652 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10653
10654 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10655 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10656 result.
10657
10658 2012-01-27 Doug Evans <dje@google.com>
10659
10660 * configure.ac (with_python): Fix absolute path handling for win32.
10661 * configure: Regenerate.
10662
10663 2012-01-26 Doug Evans <dje@google.com>
10664
10665 * symtab.c: Whitespace cleanup, no code changes.
10666
10667 * symtab.c (lookup_symbol_in_language): Improve comment.
10668 (lookup_symbol_aux): Fix comment.
10669
10670 * psymtab.c (add_psymbol_to_list): Result is now "void".
10671 * psympriv.h (add_psymbol_to_list): Update.
10672
10673 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10674
10675 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10676
10677 Do not open script filenames twice.
10678 * cli/cli-cmds.c (source_script_from_stream): Pass to
10679 source_python_script also STREAM.
10680 * python/py-auto-load.c (source_section_scripts): Pass to
10681 source_python_script_for_objfile also STREAM.
10682 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10683 also INPUT.
10684 * python/python-internal.h (source_python_script_for_objfile): New
10685 parameter file, rename parameter file to filename.
10686 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10687 instead if !_WIN32. Update the function comment.
10688 (source_python_script, source_python_script_for_objfile)
10689 (source_python_script): New parameter file, rename parameter file to
10690 filename. Pass FILENAME to python_run_simple_file.
10691 * python/python.h (source_python_script): New parameter file, rename
10692 parameter file to filename.
10693
10694 2012-01-26 Pedro Alves <palves@redhat.com>
10695
10696 * corelow.c (core_has_fake_pid): Delete.
10697 (core_close): Delete references to `core_has_fake_pid'.
10698 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10699 (core_open): Delete references to `core_has_fake_pid'.
10700 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10701 the removed global.
10702
10703 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10704
10705 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10706 Remove language parameter from name_matcher. Adjust the comment.
10707 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10708 Remove language parameter.
10709 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10710 * linespec.c (iterate_name_matcher): Likewise.
10711 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10712 name_matcher. Adjust call accordingly.
10713 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10714 (maintenance_check_symtabs): Adjust type of parameter "fun".
10715 * psymtab.h (maintenance_check_symtabs): Likewise.
10716
10717 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10718
10719 * language.h (symbol_name_match_p_ftype): New typedef.
10720 (struct language_defn): Replace field la_symbol_name_compare
10721 by la_get_symbol_name_match_p.
10722 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10723 (ada_language_defn): Use it.
10724 * linespec.c (struct symbol_matcher_data): New type.
10725 (iterate_name_matcher): Rewrite.
10726 (iterate_over_all_matching_symtabs): Pass a pointer to
10727 a symbol_matcher_data struct to expand_symtabs_matching
10728 instead of just the lookup name.
10729 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10730 opencl-lang.c, p-lang.c, language.c: Delete field
10731 la_symbol_name_compare, and replace by NULL for new field
10732 la_get_symbol_name_match_p.
10733 * symfile.h (struct quick_symbol_functions): Update comment.
10734
10735 2012-01-25 Tom Tromey <tromey@redhat.com>
10736
10737 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10738 dereferencing.
10739
10740 2012-01-24 Tom Tromey <tromey@redhat.com>
10741
10742 PR symtab/12406:
10743 * solib.c (update_solib_list): Update the program space's
10744 added_solibs and deleted_solibs fields.
10745 * progspace.h (struct program_space) <added_solibs,
10746 deleted_solibs>: New fields.
10747 (clear_program_space_solib_cache): Declare.
10748 * progspace.c (release_program_space): Call
10749 clear_program_space_solib_cache.
10750 (clear_program_space_solib_cache): New function.
10751 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10752 bpstat_stop_status. Use handle_solib_event.
10753 * breakpoint.c: Include gdb_regex.h.
10754 (print_solib_event): New function.
10755 (bpstat_print): Use print_solib_event.
10756 (bpstat_stop_status): Add special case for bp_shlib_event.
10757 (handle_solib_event): New function.
10758 (bpstat_what): Use handle_solib_event.
10759 (struct solib_catchpoint): New.
10760 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10761 (breakpoint_hit_catch_solib, check_status_catch_solib)
10762 (print_it_catch_solib, print_one_catch_solib)
10763 (print_mention_catch_solib, print_recreate_catch_solib): New
10764 functions.
10765 (catch_solib_breakpoint_ops): New global.
10766 (catch_load_or_unload, catch_load_command_1)
10767 (catch_unload_command_1): New functions.
10768 (internal_bkpt_check_status): Add special case for
10769 bp_shlib_event.
10770 (internal_bkpt_print_it): Use print_solib_event.
10771 (initialize_breakpoint_ops): Initialize
10772 catch_solib_breakpoint_ops.
10773 (_initialize_breakpoint): Register "catch load" and "catch
10774 unload".
10775 * breakpoint.h (handle_solib_event): Declare.
10776 * NEWS: Add entry for "catch load" and "catch unload".
10777
10778 2012-01-24 Tom Tromey <tromey@redhat.com>
10779
10780 * ada-lang.c: Include gdb_vecs.h.
10781 * charset.c: Include gdb_vecs.h.
10782 * tracepoint.h: Include gdb_vecs.h.
10783 * gdb_vecs.h: New file.
10784
10785 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10786
10787 * breakpoint.c (breakpoint_hit_catch_fork)
10788 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10789 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10790 * infrun.c (inferior_has_forked, inferior_has_vforked)
10791 (inferior_has_execd, inferior_has_called_syscall): Delete.
10792 (handle_syscall_event): Get syscall_number from the execution
10793 control state's wait status.
10794 (wait_for_inferior): Don't clear syscall_number.
10795
10796 2012-01-24 Pedro Alves <palves@redhat.com>
10797
10798 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10799 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10800 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10801 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10802 `ws' parameter.
10803 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10804 false for events other than TARGET_SIGNAL_TRAP.
10805 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10806 Add `ws' parameter.
10807 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10808 events other than TARGET_SIGNAL_TRAP.
10809 (tracepoint_breakpoint_hit): Add `ws' parameter.
10810 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10811 parameter.
10812 (bpstat_stop_status): Same.
10813 (pc_at_non_inline_function): Same.
10814 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10815 to pass the current event's waitstatus to bpstat_stop_status
10816 and pc_at_non_inline_function.
10817
10818 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10819
10820 Code cleanup.
10821 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10822 Update the function comment for it.
10823 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10824 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10825 for STREAM.
10826
10827 2012-01-24 Pedro Alves <palves@redhat.com>
10828
10829 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10830 outside `bs->stop' block.
10831 (bpstat_what): Rework bp_shlib_event handling.
10832 (internal_bkpt_check_status): If the breakpoint is a
10833 bp_shlib_event, then set bs->stop and bs->print if
10834 stop_on_solib_events is set.
10835
10836 2012-01-24 Gary Benson <gbenson@redhat.com>
10837
10838 Delete #if 0'd out code.
10839 * stack.c (print_frame_label_vars): Remove.
10840 (catch_info): Likewise.
10841 (_initialize_stack): Remove "info catch" command.
10842 * NEWS: Mention the above.
10843
10844 2012-01-24 Pedro Alves <palves@redhat.com>
10845
10846 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10847 it.
10848 (remote_notice_new_inferior): If the remote end doesn't support
10849 the multiprocess extensions, then the PID is fake.
10850 (add_current_inferior_and_thread): New.
10851 (remote_start_remote): Use it.
10852 (extended_remote_attach_1): Adjust.
10853 (extended_remote_create_inferior_1): Use
10854 add_current_inferior_and_thread.
10855
10856 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10857
10858 Fix watchpoints to be specific for each inferior.
10859 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10860 current_program_space.
10861 * i386-nat.c (i386_inferior_data_cleanup): New.
10862 (i386_inferior_data_get): Replace variable inf_data_local by an
10863 inferior_data call.
10864 (i386_use_watchpoints): Initialize i386_inferior_data.
10865 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10866 specific iterate_over_lwps.
10867
10868 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10869
10870 Fix watchpoints across inferior fork.
10871 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10872 comment for linux_nat_iterate_watchpoint_lwps.
10873 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10874 linux_nat_iterate_watchpoint_lwps.
10875 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10876 * i386-linux-nat.c (update_debug_registers_callback): Update the
10877 comment for linux_nat_iterate_watchpoint_lwps.
10878 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10879 linux_nat_iterate_watchpoint_lwps.
10880 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10881 * i386-nat.c: Include inferior.h.
10882 (dr_mirror): Remove.
10883 (i386_inferior_data, struct i386_inferior_data)
10884 (i386_inferior_data_get): New.
10885 (i386_debug_reg_state): Use i386_inferior_data_get.
10886 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10887 (i386_insert_watchpoint, i386_remove_watchpoint)
10888 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10889 (i386_remove_hw_breakpoint): New variable state, use
10890 i386_debug_reg_state instead of DR_MIRROR.
10891 * linux-nat.c (delete_lwp): New declaration.
10892 (num_lwps): Move here from downwards.
10893 (delete_lwp_cleanup): New.
10894 (linux_child_follow_fork): Create new child_lp, call
10895 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10896 PTRACE_DETACH.
10897 (num_lwps): Move upwards.
10898 (linux_nat_iterate_watchpoint_lwps): New.
10899 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10900 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10901
10902 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10903
10904 GDB 7.4 released.
10905
10906 2012-01-23 Pedro Alves <palves@redhat.com>
10907
10908 * top.c (caution): Rename to ...
10909 (confirm): ... this.
10910 (show_caution): Rename to ...
10911 (show_confirm): ... this.
10912 (quit_cover): Adjust.
10913 (init_main): Adjust.
10914 * top.h (caution): Rename to ...
10915 (confirm): ... this.
10916 * utils.c (internal_vproblem, defaulted_query): Adjust.
10917
10918 2012-01-23 Pedro Alves <palves@redhat.com>
10919
10920 * top.c (caution): Update comment.
10921 (execute_command): Don't consider the current value of `caution'.
10922
10923 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10924
10925 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10926
10927 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10928
10929 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10930 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10931 * target.c (target_fileio_pwrite): Remove buffer address from
10932 debug output.
10933 (target_fileio_pread): Likewise.
10934
10935 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10936
10937 * NEWS: Document remote "info proc" and "generate-core-file".
10938
10939 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10940
10941 * gdbarch.sh (find_memory_regions): New callback.
10942 * gdbarch.c, gdbarch.h: Regenerate.
10943
10944 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10945 callback before falling back to target method.
10946
10947 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10948 (linux_target_install_ops): No longer install it.
10949
10950 * linux-tdep.c (linux_find_memory_regions): New function.
10951 (linux_init_abi): Install it.
10952
10953 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10954
10955 * gdbarch.sh (make_corefile_notes): New architecture callback.
10956 * gdbarch.c: Regenerate.
10957 * gdbarch.h: Likewise.
10958
10959 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10960 before target_make_corefile_notes. If NULL is returned, the
10961 target does not support core file generation.
10962
10963 * linux-nat.c: Include "linux-tdep.h".
10964 (find_signalled_thread, find_stop_signal): Remove.
10965 (linux_nat_do_thread_registers): Likewise.
10966 (struct linux_nat_corefile_thread_data): Likewise.
10967 (linux_nat_corefile_thread_callback): Likewise.
10968 (iterate_over_spus): Likewise.
10969 (struct linux_spu_corefile_data): Likewise.
10970 (linux_spu_corefile_callback): Likewise.
10971 (linux_spu_make_corefile_notes): Likewise.
10972 (linux_nat_collect_thread_registers): New function.
10973 (linux_nat_make_corefile_notes): Replace contents by call to
10974 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10975 as native-only callback.
10976
10977 * linux-tdep.h: Include "bfd.h".
10978 (struct regcache): Add forward declaration.
10979 (linux_collect_thread_registers_ftype): New typedef.
10980 (linux_make_corefile_notes): Add prototype.
10981 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10982 "regset.h", and "elf-bfd.h".
10983 (find_signalled_thread, find_stop_signal): New functions.
10984 (linux_spu_make_corefile_notes): Likewise.
10985 (linux_collect_thread_registers): Likewise.
10986 (struct linux_corefile_thread_data): New data structure.
10987 (linux_corefile_thread_callback): New funcion.
10988 (linux_make_corefile_notes): Likewise.
10989 (linux_make_corefile_notes_1): Likewise.
10990 (linux_init_abi): Install it.
10991
10992 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10993
10994 * gdbarch.sh (info_proc): New callback.
10995 * gdbarch.c, gdbarch.h: Regenerate.
10996
10997 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10998 before falling back to the target info_proc callback.
10999
11000 * linux-nat.c: Do not include "cli/cli-utils.h".
11001 (linux_nat_info_proc): Remove.
11002 (linux_target_install_ops): No longer install it.
11003
11004 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11005 (read_mapping): New function.
11006 (linux_info_proc): Likewise.
11007 (linux_init_abi): Install it.
11008
11009 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11010
11011 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11012 * infcmd.c: (info_proc_cmd_1): New function.
11013 (info_proc_cmd): New function, moved here from equivalent routine
11014 orignally in linux-nat.c.
11015 (info_proc_cmd_mappings): Likewise.
11016 (info_proc_cmd_stat): Likewise.
11017 (info_proc_cmd_status): Likewise.
11018 (info_proc_cmd_cwd): Likewise.
11019 (info_proc_cmd_cmdline): Likewise.
11020 (info_proc_cmd_exe): Likewise.
11021 (info_proc_cmd_all): Likewise.
11022 (_initialize_infcmd): Install "info proc" command and subcommands.
11023
11024 * target.h (struct target_ops): Add to_info_proc.
11025 (target_info_proc): Add prototype.
11026 * target.c (target_info_proc): New function.
11027
11028 * procfs.c (procfs_info_proc): Add prototype.
11029 (info_proc_cmd): Rename into ...
11030 (procfs_info_proc): ... this. Update argument types as appropriate
11031 for a to_info_proc implementation. Handle "what" argument.
11032 (procfs_target): Install procfs_info_proc.
11033 (_initialize_procfs): No longer install "info proc" command.
11034
11035 * linux-nat.c: (enum info_proc_what): Remove.
11036 (linux_nat_info_proc_cmd_1): Rename into ...
11037 (linux_nat_info_proc): ... this. Update argument types as appropriate
11038 for a to_info_proc implementation.
11039 (linux_nat_info_proc_cmd): Remove.
11040 (linux_nat_info_proc_cmd_mappings): Likewise.
11041 (linux_nat_info_proc_cmd_stat): Likewise.
11042 (linux_nat_info_proc_cmd_status): Likewise.
11043 (linux_nat_info_proc_cmd_cwd): Likewise.
11044 (linux_nat_info_proc_cmd_cmdline): Likewise.
11045 (linux_nat_info_proc_cmd_exe): Likewise.
11046 (linux_nat_info_proc_cmd_all): Likewise.
11047 (linux_target_install_ops): Install linux_nat_info_proc.
11048 (_initialize_linux_nat): No longer install "info proc" command
11049 and subcommands.
11050
11051 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11052
11053 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11054 * config.in, configure: Regenerate.
11055
11056 * target.h (struct target_ops): Add to_fileio_readlink.
11057 (target_fileio_readlink): Add prototype.
11058 * target.c (target_fileio_readlink): New function.
11059
11060 * inf-child.c: Conditionally include <sys/param.h>.
11061 (inf_child_fileio_readlink): New function.
11062 (inf_child_target): Install it.
11063
11064 * remote.c (PACKET_vFile_readlink): New enum value.
11065 (remote_hostio_readlink): New function.
11066 (init_remote_ops): Install it.
11067 (_initialize_remote): Handle vFile:readlink packet type.
11068
11069 2012-01-20 Pedro Alves <palves@redhat.com>
11070 Ulrich Weigand <ulrich.weigand@linaro.org>
11071
11072 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11073 * config.in, configure: Regenerate.
11074
11075 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11076 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11077 (target_fileio_open): Add prototype.
11078 (target_fileio_pwrite): Likewise.
11079 (target_fileio_pread): Likewise.
11080 (target_fileio_close): Likewise.
11081 (target_fileio_unlink): Likewise.
11082 (target_fileio_read_alloc): Likewise.
11083 (target_fileio_read_stralloc): Likewise.
11084
11085 * target.c: Include "gdb/fileio.h".
11086 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11087 (default_fileio_target): New function.
11088 (target_fileio_open): Likewise.
11089 (target_fileio_pwrite): Likewise.
11090 (target_fileio_pread): Likewise.
11091 (target_fileio_close): Likewise.
11092 (target_fileio_unlink): Likewise.
11093 (target_fileio_close_cleanup): Likewise.
11094 (target_fileio_read_alloc_1): Likewise.
11095 (target_fileio_read_alloc): Likewise.
11096 (target_fileio_read_stralloc): Likewise.
11097
11098 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11099 <fcntl.h>, and <unistd.h>.
11100 (inf_child_fileio_open_flags_to_host): New function.
11101 (inf_child_errno_to_fileio_error): Likewise.
11102 (inf_child_fileio_open): Likewise.
11103 (inf_child_fileio_pwrite): Likewise.
11104 (inf_child_fileio_pread): Likewise.
11105 (inf_child_fileio_close): Likewise.
11106 (inf_child_fileio_unlink): Likewise.
11107 (inf_child_target): Install to_fileio routines.
11108
11109 * remote.c (init_remote_ops): Install to_fileio routines.
11110
11111 2012-01-20 Pedro Alves <palves@redhat.com>
11112 Ulrich Weigand <ulrich.weigand@linaro.org>
11113
11114 * remote.c (remote_multi_process_p): Only check for multi-process
11115 protocol feature, do not check for extended protocol.
11116 (remote_supports_multi_process): Check for extended protocol here.
11117 (set_general_process): Likewise.
11118 (extended_remote_kill): Likewise.
11119 (remote_pid_to_str): Likewise.
11120 (remote_query_supported): Always query multiprocess mode.
11121
11122 2012-01-20 Pedro Alves <palves@redhat.com>
11123 Ulrich Weigand <ulrich.weigand@linaro.org>
11124
11125 * inferior.h (struct inferior): Add fake_pid_p.
11126 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11127 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11128 magic_null_ptid since the remote side doesn't provide a real PID.
11129
11130 2012-01-19 Tom Tromey <tromey@redhat.com>
11131
11132 * NEWS: Combine the two Python sections.
11133
11134 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11135
11136 * target.h (target_close): Update comment on the target's unpush state.
11137
11138 2012-01-19 Pedro Alves <palves@redhat.com>
11139
11140 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11141 linux_nat_async directly instead of going through the target
11142 vector.
11143 * target.c (unpush_target): Close target after unpushing it, not
11144 before.
11145
11146 2012-01-19 Gary Benson <gbenson@redhat.com>
11147
11148 * mdebugread.c (sort_blocks): Replace integer constants with ones
11149 derived from FIRST_LOCAL_BLOCK.
11150
11151 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11152 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 PR gdb/9538
11155 * symfile.c (find_separate_debug_file): New function.
11156 (terminate_after_last_dir_separator): Likewise.
11157 (find_separate_debug_file_by_debuglink): Also try realpath.
11158 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11159 * configure: Regenerate.
11160 * config.in: Regenerate.
11161
11162 2012-01-18 Doug Evans <dje@google.com>
11163
11164 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11165 (main.o): Remove rule.
11166 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11167 (--with-sysroot): Rewrite.
11168 * configure: Regenerate.
11169 * config.in: Regenerate.
11170
11171 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11172
11173 * parse.c (initialize_expout): New function.
11174 (reallocate_expout): Likewise.
11175 (parse_exp_in_context): Use `initialize_expout' and
11176 `reallocate_expout' when appropriate.
11177
11178 2012-01-18 Pedro Alves <palves@redhat.com>
11179
11180 * record.c (struct record_breakpoint, record_breakpoint_p)
11181 (record_breakpoints): New.
11182 (record_insert_breakpoint, record_remove_breakpoint): Manage
11183 record breakpoints list. Only remove breakpoints from the
11184 inferior if they had been inserted there in the first place.
11185
11186 2012-01-17 Doug Evans <dje@google.com>
11187
11188 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11189 if we know we don't have a file name to look for.
11190
11191 2012-01-17 Pedro Alves <palves@redhat.com>
11192
11193 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11194 the frame's stop reason is UNWIND_UNAVAILABLE.
11195
11196 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11197
11198 Fix compilation error.
11199 * m2-exp.y (yyerror): Use ANSI C prototype.
11200
11201 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11202
11203 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11204 (growbuf_by_size): Likewise.
11205 (yyerror): Likewise.
11206 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11207 (modblock): Remove variable (was #if 0'ed).
11208 (parse_number): Convert prototype from K&R to ANSI C.
11209 (yyerror): Likewise.
11210 * objc-exp.y (parse_number): Likewise.
11211 (yyerror): Likewise.
11212 (yylex): Remove #if 0'ed code.
11213 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11214 (yyerror): Likewise.
11215
11216 2012-01-16 Tom Tromey <tromey@redhat.com>
11217
11218 * NEWS: Add item.
11219 * symtab.h (compare_filenames_for_search): Declare.
11220 * symtab.c (compare_filenames_for_search): New function.
11221 (iterate_over_some_symtabs): Use it.
11222 * symfile.h (struct quick_symbol_functions)
11223 <map_symtabs_matching_filename>: Change spec.
11224 * psymtab.c (partial_map_symtabs_matching_filename): Use
11225 compare_filenames_for_search. Update for new spec.
11226 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11227 compare_filenames_for_search. Update for new spec.
11228 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11229
11230 2012-01-16 Tom Tromey <tromey@redhat.com>
11231
11232 PR python/13281:
11233 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11234 (struct main_type) <flag_flag_enum>: New field.
11235 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11236 * NEWS: Add entries.
11237 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11238 enums.
11239 * python/lib/gdb/printing.py (_EnumInstance): New class.
11240 (FlagEnumerationPrinter): Likewise.
11241
11242 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11243
11244 * breakpoint.c (create_sals_from_address_default): New function.
11245 (create_breakpoints_sal_default): Likewise.
11246 (decode_linespec_default): Likewise.
11247 (is_marker_spec): Removed.
11248 (strace_marker_p): New function.
11249 (init_breakpoint_sal): Using `strace_marker_p' instead of
11250 `is_marker_spec'.
11251 (create_breakpoint): Call method `create_sals_from_address' from
11252 breakpoint_ops, replacing code that created SALs conditionally
11253 on the type of the breakpoint. Call method `create_breakpoints_sal',
11254 replacing code that created breakpoints conditionally on the type
11255 wanted.
11256 (base_breakpoint_create_sals_from_address): New function.
11257 (base_breakpoint_create_breakpoints_sal): Likewise.
11258 (base_breakpoint_decode_linespec): Likewise.
11259 (base_breakpoint_ops): Add methods
11260 `base_breakpoint_create_sals_from_address',
11261 `base_breakpoint_create_breakpoints_sal' and
11262 `base_breakpoint_decode_linespec'.
11263 (bkpt_create_sals_from_address): New function.
11264 (bkpt_create_breakpoints_sal): Likewise.
11265 (bkpt_decode_linespec): Likewise.
11266 (tracepoint_create_sals_from_address): Likewise.
11267 (tracepoint_create_breakpoints_sal): Likewise.
11268 (tracepoint_decode_linespec): Likewise.
11269 (strace_marker_create_sals_from_address): Likewise.
11270 (strace_marker_create_breakpoints_sal): Likewise.
11271 (strace_marker_decode_linespec): Likewise.
11272 (strace_marker_breakpoint_ops): New variable.
11273 (addr_string_to_sals): Remove `marker_spec'. Call method
11274 `decode_linespec' from breakpoint_ops, replacing code that decoded
11275 an address string into a SAL. Use `strace_marker_p' instead of
11276 `marker_spec'.
11277 (strace_command): Decide whether we are dealing with a static
11278 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11279 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11280 * breakpoint.h (linespec_result, linespec_sals): New forward
11281 declarations.
11282 (breakpoint_ops) <create_sals_from_address>,
11283 <create_breakpoints_sal>, <decode_linespec>: New methods.
11284
11285 2012-01-14 Doug Evans <dje@google.com>
11286
11287 * NEWS: Update text for "maint set python print-stack".
11288 It is deprecated in gdb 7.4 and deleted in 7.5.
11289
11290 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11291
11292 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11293 including curses.h.
11294
11295 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11296
11297 * configure: Regenerate.
11298 * config.in: Regenerate.
11299
11300 2012-01-12 Keith Seitz <keiths@redhat.com>
11301
11302 PR mi/10586
11303 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11304 (ANONYMOUS_UNION_NAME): Define.
11305 (is_path_expr_parent): New function.
11306 (get_path_expr_parent): New function.
11307 (is_anonymous_child): New function.
11308 (create_child_with_value): If the child is anonymous and without
11309 a name, assign an object name to it.
11310 (c_describe_child): Use get_path_expr_parent to determine
11311 the parent expression.
11312 If there field represents an anonymous struct or union and
11313 has no name, set an appropriate display name and expression.
11314 (cplus_describe_child): Likewise.
11315
11316 2012-01-12 Pedro Alves <palves@redhat.com>
11317
11318 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11319 available when %ebp is found to be zero (outermost).
11320
11321 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11322
11323 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11324 an internal gdb_static_assert.
11325 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11326
11327 2012-01-11 Tom Tromey <tromey@redhat.com>
11328
11329 PR gdb/9598:
11330 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11331 catch" and "catch throw".
11332
11333 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11334
11335 * blockframe.c (block_innermost_frame): Start search from selected
11336 frame, if present, or otherwise the current frame.
11337
11338 * c-exp.y (variable): Update innermost_block for
11339 'block COLONCOLON NAME' clause.
11340 * m2-exp.y (variable): Ditto.
11341 * objc-exp.y (variable): Ditto.
11342
11343 2012-01-10 Tom Tromey <tromey@redhat.com>
11344
11345 PR python/13199:
11346 * python/python.c (finish_python_initialization): Set sys.argv.
11347
11348 2012-01-10 Doug Evans <dje@google.com>
11349
11350 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11351 "want_line_info". All callers updated.
11352 (dwarf_decode_lines_1): New function.
11353 (handle_DW_AT_stmt_list): Add function comment.
11354 New arg "want_line_info". All callers updated.
11355 (read_file_scope,read_type_unit_scope): Move comment from
11356 handle_DW_AT_stmt_list to here.
11357
11358 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11359
11360 Fix regression after libiberty/ update for GCC PR 6057 and others.
11361 * c-exp.y (operator) <OPERATOR DELETE>
11362 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11363 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11364 (make_builtin_type, make_name): New variable i, add gdb_assert.
11365 (operator) <OPERATOR NEW>: Update ARGS to 3.
11366 (operator) <OPERATOR DELETE>: Add trailing space.
11367 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11368 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11369 * cp-support.c (cp_canonicalize_string): Check NULL from
11370 cp_comp_to_string, call warning and return.
11371
11372 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11373
11374 Fix duplicate .o files after omitting libbfd.a.
11375 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11376 (SFILES): Add corelow.c.
11377 (COMMON_OBS): Add corelow.o.
11378 (ALLDEPFILES): Remove corelow.c.
11379 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11380 * config/alpha/alpha-osf3.mh: Likewise.
11381 * config/alpha/fbsd.mh: Likewise.
11382 * config/arm/nbsdaout.mh: Likewise.
11383 * config/arm/nbsdelf.mh: Likewise.
11384 * config/i386/i386gnu.mh: Likewise.
11385 * config/ia64/hpux.mh: Likewise.
11386 * config/ia64/linux.mh: Likewise.
11387 * config/m32r/linux.mh: Likewise.
11388 * config/m68k/linux.mh: Likewise.
11389 * config/mips/irix5.mh: Likewise.
11390 * config/mips/irix6.mh: Likewise.
11391 * config/pa/hpux.mh: Likewise.
11392 * config/pa/linux.mh: Likewise.
11393 * config/powerpc/aix.mh: Likewise.
11394 * config/sparc/linux.mh: Likewise.
11395 * config/sparc/linux64.mh: Likewise.
11396 * config/sparc/sol2.mh: Likewise.
11397 * config/vax/vax.mh: Likewise.
11398 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11399 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11400 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11401 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11402 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11403 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11404 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11405 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11406 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11407 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11408 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11409 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11410 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11411 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11412 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11413 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11414 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11415 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11416 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11417 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11418 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11419 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11420 corelow.o from gdb_target_obs.
11421 * corefile.c (core_target): Update the comment on NULL value.
11422 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11423 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11424 MATCHES. Drop YUMMY set on NULL.
11425 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11426 reclaim CORE_DATA if it is already NULL.
11427
11428 2012-01-09 Doug Evans <dje@google.com>
11429
11430 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11431 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11432
11433 2012-01-09 Keith Seitz <keiths@redhat.com>
11434
11435 * breakpoint.c (wrapper.h): Don't include.
11436
11437 2012-01-09 Keith Seitz <keiths@redhat.com>
11438
11439 * Makefile.in (SFILES): Remove wrapper.c.
11440 (HFILES_NO_SRCDIR): Remove wrapper.h.
11441 (COMMON_OBS): Remove wrapper.o.
11442 * cli/cli-interp.c: Don't inlude wrapper.h.
11443 * corelow.c: Likewise.
11444 (core_open): Replace gdb_target_find_new_threads with
11445 TRY_CATCH around target_find_new_threads.
11446 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11447 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11448 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11449 evaluate_expression.
11450 (varobj_set_value): Likewise for evaluate_expression and
11451 value_assign.
11452 (install_new_variable): Likewise for value_fetch_lazy.
11453 (adjust_value_for_child_access): Likewise for value_ind.
11454 (c_describe_child): Likewise for value_subscript and
11455 value_ind.
11456 (c_value_of_root): Likewise for evaluate_expression.
11457 * wrapper.c: Remove.
11458 * wrapper.h: Remove.
11459
11460 2012-01-09 Doug Evans <dje@google.com>
11461
11462 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11463 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11464 "abfd" args with "section". All callers updated.
11465 Error checking code moved ...
11466 (error_check_comp_unit_head): ... here. New function.
11467 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11468 Delete arg "abfd". New arg "type_offset". All callers updated.
11469 (create_debug_types_hash_table): Simplify by using
11470 read_and_check_type_unit_head.
11471
11472 * parser-defs.h (namecopy): Delete.
11473 * parse.c (namecopy, namecopy_size): Move into copy_name.
11474
11475 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11476
11477 Partially fix duplicate .o files after omitting libbfd.a.
11478 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11479 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11480 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11481 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11482 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11483 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11484 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11485
11486 2012-01-09 Pedro Alves <palves@redhat.com>
11487
11488 * MAINTAINERS: Update my email address.
11489
11490 2012-01-08 Doug Evans <dje@google.com>
11491
11492 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11493 n_type_units. Rename type_comp_units to all_type_units.
11494 All uses updated.
11495 (add_signatured_type_cu_to_table): Renamed from
11496 add_signatured_type_cu_to_list. All callers updated.
11497
11498 * gdbtypes.h (struct cplus_struct_type): Delete member
11499 nfn_fields_total. All uses removed.
11500
11501 2012-01-06 Doug Evans <dje@google.com>
11502
11503 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11504 to top of file.
11505 (dwarf2_find_comp_unit): Delete.
11506 (process_psymtab_comp_unit): Make result "void".
11507 Delete args buffer, info_ptr, buffer_size, and replace with
11508 "section". All callers updated.
11509 (dwarf2_build_psymtabs_hard): Simplify.
11510
11511 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11512 Thiago Jung Bauermann <bauerman@br.ibm.com>
11513
11514 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11515 before `struct gdb_exception'.
11516 * breakpoint.c (update_global_location_list_nothrow)
11517 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11518 * cp-abi.c (value_rtti_type): Likewise.
11519 * cp-support.c (cp_validate_operator): Likewise.
11520 * infrun.c (insert_exception_resume_breakpoint)
11521 (check_exception_resume, keep_going): Likewise.
11522 * mi-interp.c (mi_breakpoint_created)
11523 (mi_breakpoint_modified): Likewise.
11524 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11525 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11526 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11527
11528 2012-01-05 Doug Evans <dje@google.com>
11529
11530 * dwarf2read.c (statement_prologue): Delete, unused.
11531
11532 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11533 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11534
11535 * dwarf2read.c (comp_unit_header): Delete, unused.
11536
11537 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11538
11539 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11540 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11541
11542 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11543
11544 * infrun.c (normal_stop): Don't skip calling the normal_stop
11545 observers if the thread was doing a multi-step, but stopped for
11546 some reason other than stepping.
11547
11548 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11549
11550 * cli/cli-decode.h: Add comments.
11551 (CMD_LIST_AMBIGUOUS): Moved to command.h
11552 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11553 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11554 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11555 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11556 (add_com, add_com_alias, add_info, add_info_alias)
11557 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11558 declarations.
11559 * command.h: Add and adjust comments.
11560 (CMD_LIST_AMBIGUOUS): Moved here.
11561 (help_cmd, help_cmd_list): Delete declarations.
11562
11563 2012-01-04 Doug Evans <dje@google.com>
11564
11565 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11566 All callers updated.
11567 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11568 Replace all arguments with "per_cu". All callers updated.
11569
11570 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11571
11572 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11573 New arg "per_cu". All callers updated.
11574
11575 Delete #if 0'd out code.
11576 * language.c (binop_result_type): Delete.
11577 (simple_type, ordered_type, same_type, integral_type): Delete.
11578 (numeric_type, character_type, string_type, boolean_type): Delete.
11579 (float_type, structured_type): Delete.
11580 * language.h: Update.
11581
11582 2012-01-04 Tom Tromey <tromey@redhat.com>
11583
11584 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11585
11586 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11587
11588 * corefile.c (close_exec_file): Delete.
11589 (reopen_exec_file): Remove commented out code that seems related
11590 to close_exec_file, which is being deleted here.
11591 * inferior.h (close_exec_file): Delete.
11592 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11593
11594 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11595
11596 * ada-lang.c: #include "cli/cli-utils.h".
11597 (get_selections): Use skip_spaces.
11598 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11599 (catch_ada_exception_command_split): Use skip_spaces.
11600 (ada_decode_assert_location): Likewise.
11601
11602 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11603
11604 * linespec.c (decode_line_internal): Check for C++ or Java
11605 compound constructs only if the current language is C, C++
11606 or Java.
11607
11608 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11609
11610 Revert:
11611 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11612 Joel Brobecker <brobecker@adacore.com>
11613 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11614 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11615 3 times.
11616 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11617 fall through into AT_ENTRY_POINT.
11618 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11619 DUMMY_ADDR with it.
11620 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11621 PPC_INSN_SIZE skip to 3 times.
11622
11623 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11624
11625 * linespec.c (add_minsym): Preserve function descriptors.
11626
11627 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11628
11629 * breakpoint.c (all_locations_are_pending): Consider locations
11630 in program spaces executing during startup pending as well.
11631
11632 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11633
11634 Copyright year update in most files of the GDB Project.
11635
11636 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11637
11638 * copyright.sh: Delete.
11639 * copyright.py: Rewrite.
11640
11641 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11642
11643 * gnulib/extra/update-copyright: New file, imported from gnulib.
11644
11645 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11646
11647 * README (Copyright and License Notices): New section.
11648
11649 2012-01-03 Tom Tromey <tromey@redhat.com>
11650
11651 PR python/12533:
11652 * python/py-value.c (valpy_dereference, valpy_get_address
11653 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11654 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11655 (valpy_absolute, valpy_richcompare): Free intermediate values.
11656
11657 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11658
11659 * ada-lang.c: Reformat the copyright notice.
11660
11661 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11662
11663 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11664 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11665 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11666 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11667 Revert this part of:
11668 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11669 Build gdb directly from *.o files not using libgdb.a.
11670 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11671
11672 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11673
11674 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11675 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11676 Reformat the copyright header.
11677
11678 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11679
11680 Revert this part of:
11681 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11682 Remove the gdbtui binary.
11683 * gdb.c (main): Remove args.interpreter_p initialization.
11684 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11685 * main.h (struct captured_main_args): Remove interpreter_p.
11686
11687 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11688
11689 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11690
11691 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11692
11693 * top.c (print_gdb_version): Update copyright year.
11694
11695 2012-01-02 Yao Qi <yao@codesourcery.com>
11696
11697 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11698
11699 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11700 Joel Brobecker <brobecker@adacore.com>
11701
11702 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11703 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11704 3 times.
11705 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11706 fall through into AT_ENTRY_POINT.
11707 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11708 DUMMY_ADDR with it.
11709 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11710 PPC_INSN_SIZE skip to 3 times.
11711
11712 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11713
11714 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11715 the return value.
11716 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11717
11718 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11719
11720 Build gdb directly from *.o files not using libgdb.a.
11721 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11722 (COMMON_OBS): Remove solib-target.o.
11723 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11724 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11725 (LIBGDB_OBS, libgdb.a): Move it above.
11726 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11727 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11728 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11729 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11730 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11731 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11732 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11733 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11734 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11735 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11736 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11737 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11738 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11739 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11740 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11741 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11742 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11743 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11744 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11745 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11746 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11747 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11748 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11749 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11750 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11751 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11752 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11753
11754 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11755
11756 Remove the gdbtui binary.
11757 * .gitignore (/gdbtui): Remove.
11758 * Makefile.in (TUI): Remove.
11759 (SUBDIR_TUI_OBS): Remove tui-main.o.
11760 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11761 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11762 (tui-main.o): Remove.
11763 (all_object_files): Remove tui-main.o.
11764 * NEWS: New note for the gdbtui removal.
11765 * configure: Rebuilt.
11766 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11767 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11768 CONFIG_UNINSTALL respectively.
11769 * gdb.c (main): Remove args.interpreter_p initialization.
11770 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11771 * main.h (struct captured_main_args): Remove interpreter_p.
11772 * tui/tui-main.c: Remove.
11773
11774 2012-01-01 Doug Evans <dje@google.com>
11775
11776 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11777 (dwarf2_physname, read_import_statement): Ditto.
11778 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11779 (process_structure_scope read_subroutine_type): Ditto.
11780 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11781 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11782 (dwarf2_fetch_die_location_block): Ditto.
11783 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11784
11785 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11786 All callers updated.
11787 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11788 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11789 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11790
11791 * dwarf2read.c (load_cu): Move assert to more useful location.
11792
11793 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11794 All callers updated.
11795
11796 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11797 (dwarf2_elf_names): Minor reformat.
11798 (dwarf2_per_cu_data): Tweak comment.
11799 (dwarf2_read_section): Fix comment.
11800 (create_all_comp_units): Fix comment.
11801 (load_full_comp_unit): Fix comment.
11802 (process_full_comp_unit): Fix comment.
11803 (read_signatured_type): Fix comment.
11804
11805 For older changes see ChangeLog-2011.
11806 \f
11807 Local Variables:
11808 mode: change-log
11809 left-margin: 8
11810 fill-column: 74
11811 version-control: never
11812 coding: utf-8
11813 End:
This page took 0.339507 seconds and 4 git commands to generate.