9c5531fd6cbdc70fa9d2319403c3e04a3780799f
[binutils-gdb.git] / gdb / ChangeLog
1 2012-11-20 Pedro Alves <palves@redhat.com>
2
3 * annotate.c (breakpoints_changed): Rename to ...
4 (annotate_breakpoints_changed): ... this.
5 (annotate_stopped, breakpoint_changed): Adjust caller.
6 * annotate.h (breakpoints_changed): Rename to ...
7 (annotate_breakpoints_changed): ... this.
8 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
9 (do_map_commands_command, init_raw_breakpoint, clear_command)
10 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
11
12 2012-11-20 David S. Miller <davem@davemloft.net>
13
14 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
15 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
16 sysconf.
17 (get_cores_used_by_process): Update comment.
18
19 2012-11-20 Yao Qi <yao@codesourcery.com>
20
21 * objfiles.c (init_entry_point_info): Remove trailing spaces.
22
23 2012-11-20 Yao Qi <yao@codesourcery.com>
24
25 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
26 to deprecated_context_hook.
27
28 2012-11-19 Yao Qi <yao@codesourcery.com>
29
30 * infrun.c (infwait_state): Add static.
31
32 2012-11-16 Keith Seitz <keiths@redhat.com>
33
34 PR c++/13615
35 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
36 parameter and pass it to lookup_symbol_file.
37 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
38 to search base classes.
39 (cp_lookup_symbol_namespace): Likewise.
40 (lookup_namespace_scope): Likewise.
41 (lookup_symbol_file): Add SEARCH parameter.
42 If SEARCH is non-zero and no symbol is found, lookup the class
43 and call cp_lookup_nested_symbol.
44 (find_symbol_in_baseclass): New function.
45 (cp_lookup_nested_symbol): Do not let
46 cp_lookup_symbol_in_namespace search through base classes.
47 Do that later when there is no global symbol match.
48
49 2012-11-16 Doug Evans <dje@google.com>
50
51 * main.c (gdb_datadir_provided): New static global.
52 (get_init_files): If --data-directory is provided,
53 and SYSTEM_GDBINIT lives in data-directory, look for it there.
54 * NEWS: Mention it.
55
56 2012-11-15 Pierre Muller <muller@sourceware.org>
57
58 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
59 * gdb_stat.h: Delete. Moved to common directory.
60 * common/gdb_stat.h: New file.
61 * gdb_wait.h: Delete. Moved to common directory.
62 * common/gdb_wait.h: New file.
63 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
64 location.
65 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
66 location.
67 (stat.h rule): Adapt to new gdb_stat.h location.
68 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
69 <sys/stat.h> header.
70 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
71 <sys/wait.h> header.
72
73 2012-11-15 Pierre Muller <muller@sourceware.org>
74
75 * configure.ac (AC_HEADER_STAT): Remove.
76 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
77 and corresponding code.
78 * configure: Regenerate.
79 * config.in: Regenerate.
80
81 2012-11-15 Pierre Muller <muller@sourceware.org>
82
83 ARI xasprintf rule fixes.
84 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
85 instead of xasprintf.
86 (open_and_init_dwp_file): Ditto.
87
88 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
89
90 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
91 target types.
92
93 2012-11-14 Tom Tromey <tromey@redhat.com>
94
95 * configure, config.in: Rebuild.
96 * configure.ac: Don't check for ctype.h, time.h.
97 * expprint.c: Don't use HAVE_CTYPE_H.
98
99 2012-11-13 Tom Tromey <tromey@redhat.com>
100
101 * gdbarch.h, gdbarch.c: Rebuild.
102 * gdbarch.sh (set_target_gdbarch): Rename from
103 deprecated_target_gdbarch_select_hack.
104 * arch-utils.c (gdbarch_update_p): Update.
105 (set_gdbarch_from_file): Update.
106
107 2012-11-14 Pierre Muller <muller@sourceware.org>
108
109 * MAINTAINERS (Responsible Maintainers/misc): Add myself
110 as responsible of contrib/ari directory.
111
112 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
113 Yao Qi <yao@codesourcery.com>
114
115 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
116 bit of EXC_RETURN.
117 (arm_m_exception_cache, arm_m_exception_this_id)
118 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
119 (arm_m_exception_unwind): New.
120 (arm_gdbarch_init): Register arm_m_exception_unwind.
121
122 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
123
124 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
125 parameter COUNT, for pattern filling of memory regions.
126 * NEWS: Mention it.
127
128 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
129
130 * disasm.h (DISASSEMBLY_FILENAME): New macro.
131 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
132 to print_source_lines ().
133 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
134 flag.
135 * source.c (print_source_lines_base): Prefix source line with
136 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
137
138 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
139
140 * symtab.h (print_source_lines_flags): New enum.
141 * source.c (print_source_lines_base): Change noerror to flags.
142 (print_source_lines): Change noerror to flags.
143
144 2012-11-13 Pierre Muller <muller@sourceware.org>
145
146 ARI fixes: Avoid sprintf function use rule.
147 * charset.c (convert_between_encodings): Use xsnprintf.
148 * cli-out.c (cli_field_int): Likewise.
149 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
150 * expprint.c (op_name_standard): Likewise.
151 * frv-tdep.c (set_variant_num_gprs): Likewise.
152 (set_variant_num_fprs): Likewise.
153 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
154 * nto-tdep.c (nto_find_and_open_solib): Likewise.
155 (nto_init_solib_absolute_prefix): Likewise.
156 * source.c (init_source_path): Likewise.
157 (print_source_lines_base): Likewise.
158 * valprint.c (print_wchar): Likewise.
159 * mi/mi-out.c (mi_field_int): Likewise.
160 windows-nat.c (windows_pid_to_exec_file): Likewise.
161 (windows_create_inferior): Likewise.
162 (_initialize_check_for_gdb_ini): Likewise.
163
164 2012-11-12 Joel Brobecker <brobecker@adacore.com>
165
166 * frame.h (deprecated_frame_register_read): Renames
167 frame_register_read.
168 * frame.c (deprecated_frame_register_read): Renames
169 frame_register_read. Update all callers.
170 * i386-tdep.c: Update all callers of frame_register_read.
171 * infcmd.c: Likewise.
172 * jit.c: Likewise.
173 * mips-tdep.c: Likewise.
174 * mt-tdep.c: Likewise.
175 * sh64-tdep.c: Likewise.
176
177 2012-11-12 Joel Brobecker <brobecker@adacore.com>
178
179 * frame.h (frame_register_read): Remove FIXME comment.
180 * frame.c (frame_register_read): Add suggestion explaining
181 which function to use in place of this one.
182
183 2012-11-12 Tom Tromey <tromey@redhat.com>
184
185 * python/python.c (start_type_printers): Initialize 'result_obj'.
186
187 2012-11-12 Tom Tromey <tromey@redhat.com>
188
189 * NEWS: Update.
190 * data-directory/Makefile.in (PYTHON_FILES): Add
191 type_printers.py.
192 * python/lib/gdb/command/type_printers.py: New file.
193 * python/lib/gdb/command/types.py (TypePrinter): New class.
194 (_get_some_type_recognizers, get_type_recognizers,
195 apply_type_recognizers, register_type_printer): New
196 functions.
197 * python/py-objfile.c (objfile_object) <type_printers>: New
198 field.
199 (objfpy_dealloc): Decref new field.
200 (objfpy_new): Set new field.
201 (objfpy_get_type_printers, objfpy_set_type_printers): New
202 functions.
203 (objfile_to_objfile_object): Set new field.
204 (objfile_getset): Add "type_printers".
205 * python/py-progspace.c (pspace_object) <type_printers>: New
206 field.
207 (pspy_dealloc): Decref new field.
208 (pspy_new): Set new field.
209 (pspy_get_type_printers, pspy_set_type_printers): New functions.
210 (pspace_to_pspace_object): Set new field.
211 (pspace_getset): Add "type_printers".
212 * python/python.c (start_type_printers, apply_type_printers,
213 free_type_printers): New functions.
214 (_initialize_python): Set gdb.type_printers.
215 * python/python.h (start_type_printers, apply_type_printers,
216 free_type_printers): Declare.
217 * typeprint.c (type_print_raw_options, default_ptype_flags):
218 Update for new fields.
219 (do_free_global_table, create_global_typedef_table,
220 find_global_typedef): New functions.
221 (find_typedef_in_hash): Use find_global_typedef.
222 (whatis_exp): Use create_global_typedef_table. Change cleanup
223 handling.
224 * typeprint.h (struct type_print_options) <global_typedefs,
225 global_printers>: New fields.
226
227 2012-11-12 Tom Tromey <tromey@redhat.com>
228
229 * c-typeprint.c (find_typedef_for_canonicalize,
230 print_name_maybe_canonical): New functions.
231 (c_print_type): Look up type name.
232 (cp_type_print_derivation_info): Add flags argument. Use
233 print_name_maybe_canonical.
234 (cp_type_print_method_args): Add wrapping.
235 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
236 (c_type_print_template_args): New function.
237 (c_type_print_base): Change wrapping. Use
238 print_name_maybe_canonical.
239 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
240 type name lookups.
241 * gdbtypes.c (types_equal): No longer static.
242 * gdbtypes.h (types_equal): Declare.
243 * typeprint.c (type_print_raw_options, default_ptype_flags):
244 Update.
245 (struct typedef_hash_table): New.
246 (hash_typedef_field, eq_typedef_field,
247 recursively_update_typedef_hash, add_template_parameters,
248 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
249 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
250 copy_typedef_hash, find_typedef_in_hash): New functions.
251 * typeprint.h (struct type_print_options) <local_typedefs>:
252 New field.
253 (recursively_update_typedef_hash, add_template_parameters,
254 create_typedef_hash, free_typedef_hash,
255 make_cleanup_free_typedef_hash, copy_typedef_hash,
256 find_typedef_in_hash): Declare.
257
258 2012-11-12 Tom Tromey <tromey@redhat.com>
259
260 * cp-support.c (inspect_type,
261 replace_typedefs_qualified_name, replace_typedefs): Add
262 finder, data arguments. Call as needed.
263 (cp_canonicalize_string_full): New function.
264 (cp_canonicalize_string_no_typedefs): Rewrite.
265 * cp-support.h (canonicalization_ftype): New typedef.
266 (cp_canonicalize_string_full): Declare.
267
268 2012-11-12 Tom Tromey <tromey@redhat.com>
269
270 * NEWS: Update.
271 * c-typeprint.c (c_type_print_base): Handle print_method and
272 print_typedefs flags.
273 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
274 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
275 options.
276 * typeprint.c (type_print_raw_options, default_ptype_flags):
277 Update for new field.s
278 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
279 (setprinttypelist, showprinttypelist, print_methods,
280 print_typedefs): New globals.
281 (set_print_type, show_print_type, set_print_type_methods,
282 show_print_type_methods, set_print_type_typedefs,
283 show_print_type_typedefs): New functions.
284 (_initialize_typeprint): Update documentation. Add "print
285 type methods" and "print type typedefs" parameters.
286 * typeprint.h (struct type_print_options) <print_methods,
287 print_typedefs>: New fields.
288
289 2012-11-12 Tom Tromey <tromey@redhat.com>
290
291 * c-typeprint.c (cp_type_print_method_args): Add flags
292 argument. Call c_print_type, not type_print.
293 (c_type_print_base): Call c_print_type, not type_print.
294 Update.
295
296 2012-11-12 Tom Tromey <tromey@redhat.com>
297
298 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
299 to type-printing functions.
300 * ada-lang.h (ada_print_type): Add argument.
301 * ada-typeprint.c (print_array_type, print_variant_clauses,
302 print_variant_part, print_selected_record_field_types,
303 print_record_field_types, print_unchecked_union_type,
304 print_func_type, ada_print_type): Add flags argument.
305 (ada_print_typedef): Update.
306 * c-exp.y (OPERATOR conversion_type_id): Update.
307 * c-lang.h (c_print_type, c_type_print_base): Update.
308 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
309 c_type_print_modifier, c_type_print_args,
310 c_type_print_varspec_suffix, c_type_print_base): Add flags
311 argument.
312 * cp-valprint.c (cp_print_class_member): Update.
313 * dwarf2read.c (dwarf2_compute_name): Update.
314 * f-lang.h (f_print_type): Add argument.
315 * f-typeprint.c (f_print_type): Add flags argument.
316 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
317 * go-lang.h (go_print_type): Add argument.
318 * go-typeprint.c (go_print_type): Add flags argument.
319 * jv-lang.h (java_print_type): Add argument.
320 * jv-typeprint.c (java_type_print_base, java_print_type): Add
321 flags argument.
322 * language.c (unk_lang_print_type): Add flags argument.
323 * language.h (struct language_defn) <la_print_type>: Add flags
324 argument.
325 (LA_PRINT_TYPE): Likewise.
326 * m2-lang.h (m2_print_type): Add argument.
327 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
328 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
329 m2_unbounded_array, m2_record_fields): Add flags argument.
330 * p-lang.h (pascal_print_type, pascal_type_print_base,
331 pascal_type_print_varspec_prefix): Add argument.
332 * p-typeprint.c (pascal_print_type,
333 pascal_type_print_varspec_prefix, pascal_print_func_args,
334 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
335 flags argument.
336 * symmisc.c (print_symbol): Update.
337 * typeprint.c (type_print_raw_options, default_ptype_flags):
338 New globals.
339 (type_print): Update.
340 * typeprint.h (struct type_print_options): New.
341 (type_print_raw_options): Declare.
342 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
343
344 2012-11-10 Keith Seitz <keiths@redhat.com>
345
346 * breakpoint.c (clear_command): Add cleanup for
347 sals.sals if an argument is given.
348
349 * linespec.c (parse_linespec): Do cleanups after
350 parsing a convenience variable.
351
352 2012-11-10 Keith Seitz <keiths@redhat.com>
353
354 PR gdb/14288
355 * c-valprint.c (c_val_print): For character arrays
356 with "print null" option on, print ellipses if
357 the output is truncated and the next character is not \000.
358 * valprint.c (MAX_WCHARS): Define.
359 (WCHAR_BUFLEN): Likewise.
360 (WCHAR_BUFLEN_MAX): Likewise.
361 (struct converted_character): New structure.
362 (count_next_character): New function.
363 (print_converted_chars_to_obstack): New function.
364 (generic_printstr): Rewrite using count_next_character
365 and print_converted_chars_to_obstack.
366
367 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
368
369 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
370 while executing the gdb command.
371 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
372 are called from prompt_for_continue.
373 * tui/tui-io.c (tui_redisplay_readline): Likewise.
374
375 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
376
377 PR tui/9584
378
379 * tui/tui.c (tui_rl_command_key): Do not call execute_command
380 but insert the command to execute in readline's buffer.
381
382 2012-11-09 Tom Tromey <tromey@redhat.com>
383
384 * gdbarch.sh (target_gdbarch): Remove macro.
385 (get_target_gdbarch): Rename to target_gdbarch.
386 * gdbarch.c, gdbarch.h: Rebuild.
387 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
388 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
389 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
390 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
391 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
392 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
393 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
394 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
395 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
396 procfs.c, progspace.c, ravenscar-thread.c, record.c,
397 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
398 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
399 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
400 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
401 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
402 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
403 target-descriptions.c, target.c, target.h, tracepoint.c,
404 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
405 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
406 python/py-inferior.c, python/python.c: Update.
407
408 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
409
410 * source.c (print_source_lines_base): Add fullname field giving
411 full path to file in mi output.
412 * NEWS: Mention the new fullname field.
413
414 2012-11-09 Yao Qi <yao@codesourcery.com>
415
416 * NEWS: Mention the fix to the ambiguity of 'fo' command.
417
418 2012-11-09 Pedro Alves <palves@redhat.com>
419
420 PR gdb/14306
421
422 * infrun.c: Include target-descriptions.h.
423 (follow_exec): Fetch new target description.
424
425 2012-11-09 Yao Qi <yao@codesourcery.com>
426
427 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
428 0x8d (lea).
429
430 2012-11-09 Yao Qi <yao@codesourcery.com>
431
432 * breakpoint.c: Declare set_tracepoint_count.
433 (install_breakpoint): Call set_tracepoint_count if B is a
434 tracepoint.
435 (trace_command): Don't call set_tracepoint_count. Re-indent.
436 (strace_command, ftrace_command):
437 (create_tracepoint_from_upload): Likewise.
438
439 2012-11-09 Pedro Alves <palves@redhat.com>
440
441 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
442 (get_target_gdbarch) <gdbarch.h>: New function.
443 (startup_gdbarch) <gdbarch.h>: Declare.
444 <gdbarch.c> (target_gdbarch): Delete.
445 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
446 current inferior's gdbarch.
447 <gdbarch.c> (get_target_gdbarch): New function.
448 * inferior.c: Include target-descriptions.h.
449 (free_inferior): Free target description info.
450 (add_inferior_with_spaces): Set the inferior's initial
451 architecture.
452 (clone_inferior_command): Copy the original inferior's target
453 description if it was user specified.
454 (initialize_inferiors): Add comment.
455 * inferior.h (struct target_desc_info): Forward declare.
456 (struct inferior) <gdbarch>: New field.
457 * linux-nat.c: Include target-descriptions.h.
458 (linux_child_follow_fork): Copy the parent's architecture and
459 target description to the child.
460 * target-descriptions.c: Include inferior.h.
461 (struct target_desc_info): New structure, holding the equivalents
462 of ...
463 (target_desc_fetched, current_target_desc)
464 (target_description_filename): ... these removed globals.
465 (get_tdesc_info, target_desc_info_from_user_p)
466 (copy_inferior_target_desc_info, target_desc_info_free): New.
467 (target_desc_fetched, current_target_desc)
468 (target_description_filename): Reimplemented as convenience
469 macros.
470 (tdesc_filename_cmd_string): New global.
471 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
472 tdescs filename ..." commands to the per-inferior equivalent.
473 (show_tdesc_filename_cmd): Get the value to show from the
474 per-inferior description filename.
475 (_initilize_target_descriptions): Change the "set/show tdesc
476 filename" commands' variable.
477 * target-descriptions.h (struct target_desc, struct target_desc_info)
478 (struct inferior): Forward declare.
479 (target_find_description, target_clear_description)
480 (target_current_description): Adjust comments.
481 (copy_inferior_target_desc_info, target_desc_info_free)
482 (target_desc_info_from_user_p). Declare.
483
484 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
485
486 * tui/tui-hooks.c (tui_about_to_proceed): New function.
487 (tui_target_wait_hook): Remove.
488 (tui_install_hooks): Install the about_to_proceed observer.
489 (tui_remove_hooks): And remove it here.
490
491 2012-11-08 Tom Tromey <tromey@redhat.com>
492
493 * linux-tdep.c (linux_make_siginfo_note): New function.
494 (linux_make_corefile_notes): Use it.
495 * corelow.c (get_core_siginfo): New function.
496 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
497
498 2012-11-08 Tom Tromey <tromey@redhat.com>
499
500 PR gdb/14704:
501 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
502 (zlib_decompress_section): Remove.
503 (gdb_bfd_map_section): Only check for compressed section
504 in mmap case. Use bfd_get_full_section_contents.
505 * osabi.c (check_note): Add 'sectsize' argument. Read
506 section data.
507 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
508 section data. Update for check_note change.
509 * xcoffread.c (xcoff_initial_scan): Use
510 bfd_get_full_section_contents.
511 * py-auto-load.c (auto_load_section_scripts): Use
512 bfd_get_full_section_contents.
513 * contrib/cc-with-tweaks.sh: Add -Z option.
514
515 2012-11-08 Tom Tromey <tromey@redhat.com>
516
517 * python/py-bpevent.c: Include defs.h.
518 * python/py-continueevent.c: Include defs.h.
519 * python/py-event.c: Include defs.h.
520 * python/py-event.h: Don't include defs.h.
521 * python/py-events.h: Don't include defs.h.
522 * python/py-evts.c: Include defs.h.
523 * python/py-exitedevent.c: Include defs.h.
524 * python/py-newobjfileevent.c: Include defs.h.
525 * python/py-signalevent.c: Include defs.h.
526 * python/py-stopevent.c: Include defs.h.
527 * python/py-threadevent.c: Include defs.h.
528
529 2012-11-08 Pierre Muller <muller@sourceware.org>
530
531 * update-web-ari.sh (print_heading): Add number of files
532 checked.
533 (nb_files): New variable counting the number of sources
534 files found by gdb_find.sh script.
535 (debug_awk): New variable to allow extra debug output.
536 (indexes): Add more information if DEBUG_AWK is set.
537
538 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
539
540 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
541 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
542 following the change in PLT call stubs on linker.
543
544 2012-11-08 Pierre Muller <muller@sourceware.org>
545
546 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
547 as default language.
548 (AWK): Use = instead of == for sh test to avoid warning.
549 (Linux rule): Correct [:digit] into [[:digit:]].
550 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
551 (vasprintf rule): Adapt to common subdirectory moves.
552 (xasprintf rule): Idem.
553 (xvasprintf rule): Idem.
554 (var_boolean rule): Accept occurence in == or != test.
555
556 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
557
558 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
559
560 * tui/tui-hooks.c (tui_inferior_exit): New function.
561 (tui_detach_hook): Remove.
562 (tui_install_hooks): Install the inferior exit observer.
563 (tui_remove_hooks): Remove it.
564
565 2012-11-08 Yao Qi <yao@codesourcery.com>
566
567 PR gdb/14777.
568 * source.c (_initialize_source): Call add_com_alias to abbreviate
569 'forward-search' as 'fo'.
570
571 2012-11-07 Pedro Alves <palves@redhat.com>
572
573 * arm-tdep.c: Make defs.h be the first include.
574 * coff-pe-read.c: Ditto.
575 * gnu-nat.c: Ditto.
576 * go32-nat.c: Ditto.
577 * i386-nat.c: Ditto.
578 * ppcnbsd-nat.c: Ditto.
579 * ada-varobj.h: Don't include defs.h.
580 * i386-darwin-tdep.h: Ditto.
581 * i386-nat.h: Ditto.
582
583 2012-11-07 Pedro Alves <palves@redhat.com>
584
585 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
586 Committee.
587
588 2012-11-07 Pierre Muller <muller@sourceware.org>
589
590 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
591 File already uses "gdb_dirent.h" header.
592
593 2012-11-07 Yao Qi <yao@codesourcery.com>
594
595 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
596 tracepoint_count'.
597
598 2012-11-06 Tom Tromey <tromey@redhat.com>
599
600 * target.h (inferior_has_forked, inferior_has_vforked)
601 (inferior_has_execd, inferior_has_called_syscall): Remove
602 declarations.
603
604 2012-11-06 Pierre Muller <muller@sourceware.org>
605
606 * remote.c (remote_insert_hw_breakpoint): ARI fix,
607 add missing internalization markup.
608
609 2012-11-06 Pedro Alves <palves@redhat.com>
610
611 PR gdb/14810
612
613 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
614
615 2012-11-06 Pierre Muller <muller@sourceware.org>
616
617 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
618 is not executable.
619
620 2012-11-05 Joel Brobecker <brobecker@adacore.com>
621
622 * gnulib/update-gnulib.sh: New script.
623
624 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
625
626 * MAINTAINERS: Update my email address.
627
628 2012-11-05 Tom Tromey <tromey@redhat.com>
629
630 * frame.c (put_frame_register): Don't use temporary buffer.
631
632 2012-11-05 Pedro Alves <palves@redhat.com>
633
634 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
635 child. Clear 'pending_detach'.
636 * infrun.c (handle_vfork_child_exec_or_exit): Clear
637 'pending_detach' in the vfork parent.
638
639 2012-11-05 Doug Evans <dje@google.com>
640
641 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
642 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
643 * dwarf2read.c: #include "elf-bfd.h".
644 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
645 (dwop_section_names): Renamed from dwo_section names. All uses
646 updated. Add entries for .debug_cu_index, .debug_tu_index.
647 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
648 All uses updated.
649 (struct dwp_sections): New type.
650 (struct virtual_dwo_sections): New type.
651 (struct dwp_hash_table): New type.
652 (struct dwp_file): New type.
653 (init_cutu_and_read_dies): Ensure DWO info/types section has been
654 read in. Handle DWOs coming from DWP files.
655 (lookup_dwo_file_slot): New function.
656 (dwarf2_locate_dwo_sections): Move definition closer to use.
657 (create_dwo_debug_info_hash_table_reader): Renamed from
658 create_debug_info_hash_table_reader. All callers updated.
659 (create_dwo_debug_info_hash_table): Renamed from
660 create_debug_info_hash_table. All callers updated.
661 (create_dwp_hash_table): New function.
662 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
663 (lookup_dwo_in_dwp): New function.
664 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
665 is_dwp. All callers updated.
666 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
667 (open_and_init_dwo_file): Renamed from init_dwo_file.
668 All callers updated.
669 (lookup_dwo_file): Delete.
670 (dwarf2_locate_dwp_sections): New function.
671 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
672 (allocate_dwp_loaded_cutus_table): New function.
673 (open_and_init_dwp_file): New function.
674 (lookup_dwo_cutu): New function.
675 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
676
677 2012-11-03 Yao Qi <yao@codesourcery.com>
678
679 Fix PR gdb/14617.
680 * breakpoint.c (trace_pass_set_count): Call
681 observer_notify_breakpoint_modified instead of
682 observer_notify_tracepoint_modified.
683 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
684
685 2012-11-02 Tom Tromey <tromey@redhat.com>
686
687 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
688 argument to complete_on_enum.
689
690 2012-11-02 Tom Tromey <tromey@redhat.com>
691
692 * configure: Rebuild.
693 * configure.ac (build_warnings): Add -Wempty-body.
694 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
695 * remote.c (handle_notification): Use braces for empty 'else' body.
696 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
697 'else' body.
698 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
699 'else' body.
700 * solib-som.c (som_relocate_section_addresses): Use braces
701 for empty 'else' body.
702 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
703 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
704
705 2012-11-02 Pedro Alves <palves@redhat.com>
706
707 PR gdb/14766
708
709 * infrun.c (handle_inferior_event)
710 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
711 null_ptid before handling a vfork child exec or exit. Switch to
712 the event ptid afterwards.
713
714 2012-11-02 Yao Qi <yao@codesourcery.com>
715
716 * std-operator.def: Remove OP_LABELED.
717 * eval.c: Remove the declaration of 'get_label'.
718 (get_label): Remove.
719 (evaluate_struct_tuple): Remove code handling OP_LABELED.
720 Update comment.
721 Remove local variable 'variantno' and related code.
722 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
723 with 'fieldno'.
724 * expprint.c (print_subexp_standard): Likewise.
725 (dump_subexp_body_standard): Likewise.
726 * parse.c (operator_length_standard): Likewise.
727
728 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
729
730 Incorporate ARI web page generator into GDB sources.
731 * contrib/ari/create-web-ari-in-src.sh: New file.
732 * contrib/ari/gdb_ari.sh: New file.
733 * contrib/ari/gdb_find.sh: New file.
734 * contrib/ari/update-web-ari.sh: New file.
735
736 2012-10-31 Tom Tromey <tromey@redhat.com>
737
738 * gdbarch.c: Rebuild.
739 * gdbarch.sh: Remove references to gdbarch_swap.
740 * corelow.c (core_open): Remove obsolete comment.
741
742 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
743
744 PR cli/14772
745 * c-typeprint.c (c_print_type): Don't print a space for vector
746 types, this is handled within the suffix.
747 (c_type_print_varspec_suffix): Add a space to vector suffix.
748
749 2012-10-26 Pedro Alves <palves@redhat.com>
750
751 * amd64-tdep.c (amd64_relocate_instruction): Use
752 store_unsigned_integer instead of memcpy.
753 * i386-tdep.c (i386_relocate_instruction): Ditto.
754
755 2012-10-26 Pedro Alves <palves@redhat.com>
756
757 * infrun.c (handle_inferior_event): Merge handling of
758 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
759 switch case.
760
761 2012-10-26 Pedro Alves <palves@redhat.com>
762
763 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
764 Remove comment.
765
766 2012-10-26 Pedro Alves <palves@redhat.com>
767
768 * target.c (target_waitstatus_to_string): Handle
769 TARGET_WAITKIND_VFORK_DONE.
770
771 2012-10-26 Pedro Alves <palves@redhat.com>
772
773 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
774 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
775
776 2012-10-24 Tristan Gingold <gingold@adacore.com>
777
778 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
779 Add comments.
780
781 2012-10-24 Joel Brobecker <brobecker@adacore.com>
782
783 * ravenscar-thread.c (ravenscar_wait): Only update the list
784 of threads and inferior_ptid if the inferior is still alive.
785
786 2012-10-24 Joel Brobecker <brobecker@adacore.com>
787
788 * ada-lang.c (is_known_support_routine): Use lbasename when
789 matching the symtab's filename against
790 known_runtime_file_name_patterns.
791
792 2012-10-24 Joel Brobecker <brobecker@adacore.com>
793
794 * ada-lang.c (ada_same_array_size_p): New function.
795 (ada_promote_array_of_integrals): New function.
796 (coerce_for_assign): Add handling of arrays where the elements
797 are integrals of a smaller size than the size of the target
798 array element type.
799
800 2012-10-24 Joel Brobecker <brobecker@adacore.com>
801
802 * doublest.c (convert_doublest_to_floatformat): Fix comparison
803 against maximum exponent value.
804
805 2012-10-24 Joel Brobecker <brobecker@adacore.com>
806
807 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
808 "unwind-seh.c".
809
810 2012-10-24 Joel Brobecker <brobecker@adacore.com>
811
812 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
813 strip typedef layer when computing the fixed type's field type,
814 only when computing its size.
815
816 2012-10-24 Mark Kettenis <kettenis@gnu.org>
817
818 PR gdb/12783
819 * i386-tdep.c (i386_return_value): Handle complex double and long
820 double.
821
822 2012-10-24 Joel Brobecker <brobecker@adacore.com>
823
824 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
825 New local variable args_len.
826 Quote the name of the executable when computing the command line.
827
828 2012-10-23 Mark Kettenis <kettenis@gnu.org>
829
830 PR gdb/12796
831 PR gdb/12798
832 PR gdb/12800
833 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
834 AMD64_FTAG_REGNUM.
835 * amd64-tdep.c (amd64_classify): Classify complex types.
836 (amd64_return_value): Handle the COMPLEX_X87 class.
837
838 2012-10-23 Joel Brobecker <brobecker@adacore.com>
839
840 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
841 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
842
843 2012-10-23 Joel Brobecker <brobecker@adacore.com>
844
845 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
846 function.
847 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
848 to amd64_windows_auto_wide_charset.
849
850 2012-10-23 Yao Qi <yao@codesourcery.com>
851
852 * event-top.c (mark_async_signal_handler_wrapper): Remove.
853 * event-top.h: Remove its declaration.
854 (async_request_quit): Call mark_async_signal_handler instead of
855 mark_async_signal_handler_wrapper.
856 (async_do_nothing, async_disconnect): Likewise.
857 (async_stop_sig): Likewise.
858 * remote.c (handle_remote_sigint): Likewise.
859 (handle_remote_sigint_twice): Likewise.
860
861 2012-10-23 Yao Qi <yao@codesourcery.com>
862
863 * event-top.c (sigint_token, sighup_token): Replace 'void *'
864 with 'static struct async_signal_handler *'.
865 (sighup_token, sigquit_token, sigstp_token): Likewise.
866
867 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
868
869 * gdbarch.sh (function_list): Use 'pstring' when printing
870 a variable which could return NULL.
871 * gdbarch.c: Regenerate.
872
873 2012-10-10 Joel Brobecker <brobecker@adacore.com>
874 Tom Tromey <tromey@redhat.com>
875
876 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
877 inneffective if condition by gdb assertion. Add function
878 description comment.
879
880 2012-10-19 Joel Brobecker <brobecker@adacore.com>
881
882 * parser-defs.h (struct exp_descriptor): Document constraint
883 on return value for "op_name" callbacks.
884
885 2012-10-18 Tom Tromey <tromey@redhat.com>
886
887 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
888 * symtab.c (iterate_over_some_symtabs): Constify.
889 * source.h (symtab_to_fullname): Return 'const char *'.
890 * source.c (symtab_to_fullname): Return 'const char *'.
891 * python/py-symtab.c (stpy_fullname): Constify.
892 * cli/cli-cmds.c (edit_command): Constify.
893 * breakpoint.c (print_breakpoint_location)
894 (update_static_tracepoint): Constify.
895
896 2012-10-18 Tom Tromey <tromey@redhat.com>
897
898 * breakpoint.c (compare_breakpoints): Fix comparison.
899
900 2012-10-18 Tom Tromey <tromey@redhat.com>
901
902 * valprint.c (generic_emit_char, generic_printstr): Pass size of
903 gdb_wchar_t to convert_between_encodings.
904
905 2012-10-17 Yao Qi <yao@codesourcery.com>
906
907 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
908 more parameter 'inferior'.
909 * corefile.c (write_memory_with_notification): Caller update.
910
911 * mi/mi-cmd-var.c: Include "mi-main.h".
912 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
913 to 1 and restore it later.
914 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
915 and "data-write-memory-bytes.
916 * mi/mi-interp.c: Include objfiles.h.
917 (mi_interpreter_init): Call observer_attach_memory_changed.
918 (mi_memory_changed): New.
919 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
920 New field.
921
922 * NEWS: Mention new MI notification "memory-changed".
923
924 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
925
926 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
927
928 2012-10-15 Doug Evans <dje@google.com>
929
930 New option -nh: inhibit loading of ~/.gdbinit.
931 * NEWS: Mention -nh.
932 * main.c (captured_main): Recognize and process -nh.
933 (print_gdb_help): Mention -nh.
934 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
935
936 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
937
938 PR backtrace/14646
939 PR gdb/14647
940 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
941 pc_regnum_from_eax.
942 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
943 nor pc_regnum_from_eax.
944 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
945 nor pc_regnum_from_eax.
946
947 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
948
949 Fix entry values resolving in inlined frames.
950 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
951 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
952 entries of FRAME.
953
954 2012-10-15 Joel Brobecker <brobecker@adacore.com>
955
956 * configure.ac: Build with -DMS_WIN64 if building with Python
957 enabled using GCC on amd64-windows.
958 * configure: Regenerate.
959
960 2012-10-15 Tom Tromey <tromey@redhat.com>
961
962 PR python/14635:
963 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
964 to Py_None.
965
966 2012-10-15 Tom Tromey <tromey@redhat.com>
967
968 PR python/14634:
969 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
970
971 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
972
973 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
974 reset thread numbering back to 1.
975
976 2012-10-11 Doug Evans <dje@google.com>
977
978 PR breakpoints/14643.
979 * linespec.c (struct ls_parser): New member keyword_ok.
980 (linespec_lexer_lex_string): Add comment.
981 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
982 for one.
983 (parse_linespec): Set keyword_ok.
984
985 2012-10-10 Doug Evans <dje@google.com>
986
987 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
988 "0x" prefix on address in log message.
989
990 * dwarf2read.c (read_1_byte): Add const to buf parameter.
991 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
992 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
993 (lookup_dwo_file): Add const to dwo_name parameter.
994 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
995
996 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
997
998 Fix crash during stepping on ppc32.
999 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1000 SYM.
1001
1002 2012-10-03 Doug Evans <dje@google.com>
1003
1004 PR symtab/14601
1005 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1006
1007 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1008
1009 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1010 output and use uint32_t not long to ensure 4 byte size.
1011
1012 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1013
1014 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1015 unref'ed it.
1016
1017 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1018
1019 * target.c (simple_search_memory): Include access length in
1020 warning message.
1021
1022 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1023 Edjunior Machado <emachado@linux.vnet.ibm.com>
1024
1025 PR gdb/13989
1026 * solib.c (solib_find): Prevent GDB from loading native libraries when
1027 debugging a cross-target corefile.
1028
1029 2012-09-28 selven <pcthegreat@gmail.com>
1030
1031 Make definition match declaration.
1032
1033 * regcache.c (regcache_register_status): Change return type to
1034 enum register_status.
1035
1036 2012-09-28 Yao Qi <yao@codesourcery.com>
1037
1038 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1039 write_memory_with_notification instead of write_memory.
1040 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1041 instead of target_write_memory.
1042
1043 2012-09-28 Yao Qi <yao@codesourcery.com>
1044
1045 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1046 when the length of content is not an even number.
1047
1048 2012-09-27 Tom Tromey <tromey@redhat.com>
1049
1050 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1051 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1052
1053 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1054
1055 * sol-thread.c (sol_thread_fetch_registers)
1056 (sol_thread_store_registers): Delete commented out code.
1057
1058 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1059
1060 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1061 Move these functions to sparc-sol-thread.c.
1062 * sparc-sol-thread.c: New file.
1063 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1064 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1065 configurations.
1066 * configure: Regenerate.
1067
1068 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1069
1070 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1071 Remove commented-out code.
1072
1073 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1074
1075 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1076 Enable this code for sparc hosts only.
1077
1078 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1079
1080 * procfs.h (procfs_find_LDT_entry): Add declaration.
1081 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1082 function procfs_find_LDT_entry.
1083
1084 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1085
1086 * procfs.c (proc_get_LDT_entry): Make static.
1087
1088 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1089
1090 * procfs.c (proc_find_memory_regions): Fix declaration.
1091
1092 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1093
1094 * amd64-tdep.c (amd64_return_value): Revert previous change
1095 that used TYPE_LENGTH directly.
1096 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1097 (bfin_store_return_value): Likewise.
1098 * cris-tdep.c (cris_store_return_value): Likewise.
1099 (cris_extract_return_value): Likewise.
1100 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1101 * hppa-tdep.c (hppa64_return_value): Likewise.
1102 * lm32-tdep.c (lm32_store_return_value): Likewise.
1103 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1104 * spu-tdep.c (spu_value_from_register): Likewise.
1105 * vax-tdep.c (vax_return_value): Likewise.
1106
1107 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1108
1109 * gdbtypes.c (lookup_array_range_type): Expand parameters
1110 LOW_BOUND and HIGH_BOUND to LONGEST.
1111 (lookup_string_range_type): Likewise.
1112 * gdbtypes.h (lookup_array_range_type): Likewise.
1113 (lookup_string_range_type): Likewise.
1114 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1115 Expand HIGHBOUND to ssize_t.
1116 (value_string): Likewise.
1117 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1118 (value_string): Likewise.
1119
1120 2012-09-27 Yao Qi <yao@codesourcery.com>
1121
1122 PR breakpoints/13898
1123 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1124 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1125 per breakpoint type.
1126
1127 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1128
1129 * procfs.c: Add gdb_bfd header.
1130 * rs6000-nat.c: Likewise.
1131 * solib-pa64.c: Likewise.
1132 * spu-linux-nat.c: Likewise.
1133 * windows-nat.c: Likewise.
1134
1135 2012-09-26 Tom Tromey <tromey@redhat.com>
1136
1137 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1138
1139 2012-09-26 Tom Tromey <tromey@redhat.com>
1140
1141 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1142 (read_common_block): Handle child DIEs with
1143 DW_AT_data_member_location.
1144 (new_symbol_full): Add special case for common blocks.
1145
1146 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1147 Tom Tromey <tromey@redhat.com>
1148
1149 * dwarf2read.c (read_common_block): Rewrite.
1150 (new_symbol_full): Handle DW_TAG_common_block.
1151 * f-lang.c (head_common_list, find_common_for_function):
1152 Remove.
1153 * f-lang.h (struct common_entry, struct saved_f77_common,
1154 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1155 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1156 BLANK_COMMON_NAME_LOCAL): Remove.
1157 (struct common_block): New.
1158 * f-valprint.c (list_all_visible_commons): Remove.
1159 (info_common_command_for_block): New function.
1160 (info_common_command): Use it.
1161 * stack.c (iterate_over_block_locals): Special case for
1162 COMMON_BLOCK_DOMAIN.
1163 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1164 constant.
1165 (struct general_symbol_info) <value.common_block>: New field.
1166 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1167
1168 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1169 Tom Tromey <tromey@redhat.com>
1170
1171 * f-lang.c (allocate_saved_bf_node,
1172 allocate_saved_function_node, allocate_saved_f77_common_node,
1173 allocate_common_entry_node, tail_common_list, current_common,
1174 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1175 tmp_bf_ptr, add_common_block, add_common_entry,
1176 find_first_common_named, patch_common_entries,
1177 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1178 global_remote_debug, get_bf_for_fcn, saved_function_list,
1179 saved_function_list_end, clear_function_list, struct saved_fcn,
1180 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1181 SAVED_BF, SAVED_BF_PTR): Remove.
1182 * f-lang.h (tail_common_list, current_common,
1183 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1184 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1185 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1186 real_main_c_value): Remove.
1187 * f-valprint.c (there_is_a_visible_common_named): Remove.
1188
1189 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1190
1191 * breakpoint.c (update_global_location_list): Ignore previous
1192 duplicate status of a breakpoint when starting a new scan for
1193 duplicate breakpoints.
1194
1195 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1196 PR breakpoints/14419
1197 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1198 support LLVM compiler.
1199
1200 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1201
1202 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1203 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1204 (bfin_store_return_value): Likewise.
1205 * cris-tdep.c (cris_store_return_value): Likewise.
1206 (cris_extract_return_value): Likewise.
1207 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1208 * hppa-tdep.c (hppa64_return_value): Likewise.
1209 * lm32-tdep.c (lm32_store_return_value): Likewise.
1210 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1211 * spu-tdep.c (spu_value_from_register): Likewise.
1212 * vax-tdep.c (vax_return_value): Likewise.
1213
1214 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1215
1216 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1217 parameter LEN to ssize_t.
1218
1219 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1220
1221 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1222 variable LEN.
1223 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1224 directly.
1225 (alpha_store_return_value): Likewise.
1226 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1227 (amd64_push_arguments): Likewise.
1228 * ax-gdb.c (gen_trace_static_fields): Likewise.
1229 (gen_traced_pop): Likewise.
1230 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1231 * breakpoint.c (update_watchpoint): Likewise.
1232 * findcmd.c (parse_find_args): Use local variable for type
1233 instead of length.
1234 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1235 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1236 (h8300_store_return_value): Likewise.
1237 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1238 Use i386_darwin_arg_type_alignment directly.
1239 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1240 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1241 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1242 (m68hc11_extract_return_value): Likewise.
1243 * mep-tdep.c (mep_push_dummy_call): Likewise.
1244 * printcmd.c (float_type_from_length): Likewise.
1245 * s390-tdep.c (s390_value_from_register): Likewise.
1246 * stack.c (read_frame_arg): Likewise.
1247 * tracepoint.c (encode_actions_1): Likewise.
1248 * valops.c (value_fetch_lazy): Use local variable for type
1249 instead of length. Use TYPE_LENGTH directly.
1250 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1251
1252 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1253
1254 * symtab.c (skip_prologue_sal): Fix typo in comment.
1255
1256 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1257
1258 * linespec.c (create_sals_line_offset): Fix typo in comment.
1259
1260 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1261
1262 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1263 use plongest to print the array size.
1264
1265 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1266
1267 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1268 * p-valprint.c (pascal_type_print_base): Likewise.
1269
1270 2012-09-22 Yao Qi <yao@codesourcery.com>
1271
1272 * remote.c (remote_get_trace_status): Remove setting default
1273 values of fields of 'ts'.
1274
1275 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1276
1277 Fix internal error on canonicalization of clang types.
1278 * cp-name-parser.y (operator): New comment at make_operator call for
1279 new, delete, new[] and delete[].
1280 (exp): Use "sizeof ". Add new comment at make_operator call.
1281
1282 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1283
1284 Fix disassemble without parameters in tailcall frame.
1285 * cli/cli-cmds.c (disassemble_current_function): Use
1286 get_frame_address_in_block.
1287
1288 2012-09-21 Tom Tromey <tromey@redhat.com>
1289
1290 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1291 TYPE_CODE_UNION>: Unify, removing a goto.
1292
1293 2012-09-21 Tom Tromey <tromey@redhat.com>
1294
1295 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1296
1297 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1298
1299 * findvar.c (read_frame_register_value): Mark the result value as
1300 optimized out if any of the input registers have been optimized out.
1301
1302 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1303
1304 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1305
1306 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1307
1308 * eval.c (evaluate_subexp_standard): Eliminate single-use
1309 variable LOWER.
1310
1311 2012-09-21 Yao Qi <yao@codesourcery.com>
1312
1313 * mi/mi-interp.c: Declare mi_record_changed.
1314 (mi_interpreter_init): Call observer_attach_record_changed.
1315 (mi_record_changed): New.
1316 * record.c (record_open): Call observer_notify_record_changed.
1317 (cmd_record_stop): Call observer_notify_record_changed.
1318 * NEWS: Mention it.
1319
1320 2012-09-20 Tom Tromey <tromey@redhat.com>
1321
1322 * NEWS: Update.
1323 * python/python.c (finalize_python): New function.
1324 (_initialize_python): Make a final cleanup.
1325
1326 2012-09-19 Doug Evans <dje@google.com>
1327
1328 * buildsym.h (param_symbols): Delete, unused.
1329 (context_stack): Delete member "params", unused.
1330 * buildsym.c (push_context): Update.
1331 * dwarf2read.c (read_func_scope): Update.
1332
1333 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1334
1335 * sh-tdep.c (sh_register_convert_to_virtual)
1336 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1337 all callers. Just do a memcpy if not the little-endian case.
1338
1339 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1340 set_gdbarch_double_format and set_gdbarch_long_double_format.
1341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1342 set_gdbarch_double_format.
1343 * sh-tdep.c (sh_gdbarch_init): Likewise.
1344
1345 * NEWS: Document the removal of SH's 'regs' command.
1346 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1347 command.
1348
1349 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1350
1351 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1352 `jump'.
1353
1354 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1355
1356 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1357 language when iterating over symbols.
1358
1359 2012-09-18 Yao Qi <yao@codesourcery.com>
1360
1361 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1362 (mi_interpreter_init): Call observer_attach_tsv_created and
1363 observer_attach_tsv_deleted.
1364 (mi_tsv_created, mi_tsv_deleted): New.
1365 * tracepoint.c (delete_trace_state_variable): Call
1366 observer_notify_tsv_deleted.
1367 (trace_variable_command): Call observer_notify_tsv_created.
1368 (delete_trace_variable_command): Call
1369 observer_notify_tsv_deleted.
1370 (create_tsv_from_upload): Call observer_notify_tsv_created.
1371 * NEWS: Mention it.
1372
1373 2012-09-18 Yao Qi <yao@codesourcery.com>
1374
1375 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1376 if traceframe changed.
1377 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1378 "trace-find".
1379 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1380 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1381 'traceframe_changed'.
1382 (mi_traceframe_changed): New.
1383 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1384 New field.
1385 * NEWS: Mention the new MI notification.
1386
1387 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1388
1389 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1390
1391 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1392
1393 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1394 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1395 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1396 Extend code also for PaX support. Convert all gdb_assert to warning
1397 calls.
1398
1399 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1400
1401 Implement auto-load user conveniences suggested by Doug Evans.
1402 * auto-load.c: Include top.h.
1403 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1404 (_initialize_auto_load): New variable scripts_directory_help. Mention
1405 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1406 scripts-directory. Document in online help one can use also files for
1407 set auto-load safe-path.
1408 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1409 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1410
1411 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1412
1413 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1414 of LEN.
1415
1416 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1417
1418 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1419 ELTLEN and use TYPE_LENGTH directly.
1420 (m2_val_print): Likewise.
1421 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1422 variable LEN and use TYPE_LENGTH directly.
1423 (m68k_svr4_store_return_value): Likewise.
1424 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1425 ARGLEN and use TYPE_LENGTH directly.
1426 (mips_o64_push_dummy_call): Likewise.
1427 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1428 variable LENGTH and use TYPE_LENGTH directly.
1429 (s390_function_arg_float): Likewise.
1430 (s390_function_arg_integer): Likewise.
1431 (s390_push_dummy_call): Likewise.
1432 (s390_return_value_convention): Likewise.
1433 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1434 TYPE_LENGTH directly.
1435
1436 2012-09-17 Yao Qi <yao@codesourcery.com>
1437
1438 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1439 Update comment to add_setshow_integer_cmd.
1440 * cli/cli-setshow.c (do_set_command): Handle case
1441 'var_zuinteger_unlimited'.
1442 (do_show_command): Likewise.
1443 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1444 for command 'remotetimeout'.
1445 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1446 to var_integer.
1447 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1448 for command 'set listsize'.
1449
1450 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1451
1452 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1453 variable LEN.
1454
1455 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1456
1457 PR 14119
1458 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1459 (frame_pop): Drop also TAILCALL_FRAME frames.
1460 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1461
1462 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1463 Pedro Alves <palves@redhat.com>
1464
1465 PR 14548
1466 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1467 function start if we are already at function start. Both for
1468 reverse-next and for reverse-step into function without line number
1469 info.
1470
1471 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 Code cleanup - rename 'inline' depth to 'artificial' depth.
1474 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1475 frame_id_artificial_p, extend the comment.
1476 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1477 * frame.c (fprint_frame_id): Rename at a user, change debug output
1478 text to "artificial=".
1479 (skip_inlined_frames): Rename to ...
1480 (skip_artificial_frames): ... here. Extend the comment.
1481 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1482 (frame_id_inlined_p): Rename to ...
1483 (frame_id_artificial_p): ... here. Rename at a user.
1484 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1485 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1486 at a user.
1487 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1488 Extend the comment.
1489 (frame_id_inlined_p): Rename to ...
1490 (frame_id_artificial_p): ... here.
1491 * inline-frame.c (inline_frame_this_id): Rename at a user.
1492
1493 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1494
1495 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1496 vector variables using vector_size syntax rather than array
1497 syntax.
1498
1499 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1500
1501 * valarith.c (value_concat): Replace unsafe ALLOCA with
1502 XMALLOC/XFREE.
1503
1504 2012-09-14 Pedro Alves <palves@redhat.com>
1505
1506 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1507
1508 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1509
1510 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1511 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1512 data-directory as appropriate.
1513
1514 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1515
1516 * printcmd.c (ui_printf): Eliminate single-use variable
1517 PARAM_LEN.
1518
1519 2012-09-14 Yao Qi <yao@codesourcery.com>
1520 Pedro Alves <palves@redhat.com>
1521
1522 * valops.c (value_assign): Move observer_notify_target_changed
1523 below to replace reinit_frame_cache.
1524
1525 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1526
1527 Refactor Python "gdb" module into a proper Python package, by
1528 introducing a new "_gdb" module for code implemented in C, and
1529 using reload/__import__ instead of exec.
1530 * python/lib/gdb/__init__.py: Import * from _gdb.
1531 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1532 prompt_hook, sys.argv): Moved from finish_python_initialization.
1533 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1534 (packages, auto_load_packages): New list and function replacing
1535 module_dict and auto-loading code, using __file__ instead of
1536 gdb.PYTHONDIR and reload/__import__ instead of exec.
1537 (GdbSetPythonDirectory): Replacing function of the same name
1538 from finish_python_initialization, using reload/__import__ instead
1539 of exec, as well as call auto_load_packages.
1540 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1541 gdb_python_module and not gdb_module.
1542 * python/python-internal.h (gdb_python_module): Declare.
1543 * python/python.c (gdb_python_module): New global.
1544 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1545 (_initialize_python): Rename gdb module to _gdb.
1546 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1547 (finish_python_initialization): Move Python code to
1548 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1549 __main__.
1550
1551 2012-09-13 Pedro Alves <palves@redhat.com>
1552
1553 * Makefile.in (COMMON_OBS): Add registry.o.
1554 * registry.c: New file.
1555 * registry.h (struct registry_container): Declare.
1556 (registry_data_callback): New typedef.
1557 (struct registry_data, struct registry_data_registration, struct
1558 registry_data_registry): New type.
1559 (register_data_with_cleanup, registry_alloc_data)
1560 (registry_callback_adaptor, registry_clear_data)
1561 (registry_container_free_data, registry_set_data, registry_data):
1562 Declare.
1563 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1564 the new common structures and functions.
1565 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1566 callback typedefs.
1567
1568 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1569
1570 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1571 there is an error inserting hardware breakpoints and use the
1572 error message from the target.
1573
1574 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1575 Catch this exception and print the error message contained within. Do not
1576 print the default hardware error breakpoint message in this case.
1577
1578 2012-09-12 Doug Evans <dje@google.com>
1579
1580 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1581 cu == NULL.
1582
1583 2012-09-11 Doug Evans <dje@google.com>
1584
1585 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1586 .gdb_index symbol attributes if there are none.
1587
1588 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1589
1590 * symtab.h (struct minimal_symbol) [has_size]: New field.
1591 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1592 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1593 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1594 minimal symbols if the symbol's size is actually known.
1595 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1596 of msymbol's size field. Add comment.
1597 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1598 SET_MSYMBOL_SIZE to set the minimal symbol size.
1599
1600 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1601
1602 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1603 minimal_symbol struct object, rather than setting some of its
1604 fields one by one.
1605
1606 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1607
1608 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1609 passed_a_ptr flag when displaying typedef types.
1610
1611 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1612
1613 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1614 the optimized_out flag is preserved.
1615
1616 2012-09-10 Anthony Green <green@moxielogic.com>
1617
1618 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1619 prologue changes in GCC.
1620
1621 2012-09-10 Keith Seitz <keiths@redhat.com>
1622
1623 PR gdb/13483
1624 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1625 (BOOL_CONVERSION_BADNESS): ... this.
1626 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1627 (rank_one_type): Allow all boolean conversions
1628 permitted by the standard.
1629
1630 2012-09-06 Tom Tromey <tromey@redhat.com>
1631
1632 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1633 Don't decref py_objfile.
1634
1635 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1636
1637 Do not enable -lmcheck by default when Python is enabled with
1638 threading support.
1639 * configure.ac: (python_has_threads) New variable, by testing
1640 if WITH_THREAD is defined in Python.h.
1641 Move --enable-lmcheck after --with-python.
1642 Do not enable -lmcheck by default if python_has_threads=yes.
1643 Warn if --enable-lmcheck and python_has_threads=yes.
1644 * configure: Regenerate.
1645
1646 2012-08-31 Yao Qi <yao@codesourcery.com>
1647
1648 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1649 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1650 Update some commands.
1651 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1652 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1653 to 1.
1654
1655 2012-08-31 Yao Qi <yao@codesourcery.com>
1656
1657 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1658
1659 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1660
1661 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1662
1663 2012-08-29 Doug Evans <dje@google.com>
1664
1665 * main.c (print_gdb_help): Remove reference to
1666 --use-deprecated-index-sections.
1667
1668 2012-08-28 Yao Qi <yao@codesourcery.com>
1669
1670 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1671 (init_cmds): Call add_setshow_uinteger_cmd for command
1672 'max-user-call-depth'.
1673 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1674 declaration of 'max_user_call_depth'.
1675 * frame.c (backtrace_limit): Add 'unsigned'.
1676 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1677 'limit'.
1678 * remote.c (remoteaddresssize): Add 'unsigned'.
1679 (remote_address_masked): Change local var 'address_size' to
1680 'unsigned'.
1681 (_initialize_remote): Call add_setshow_uinteger_cmd for
1682 'remoteaddresssize'.
1683 * top.c (history_size): Add 'unsigned'.
1684 (show_commands): Change local variables to 'unsigned'.
1685 (set_history_size_command): Don't check history_size is negative.
1686 Adjust the condition to call unstifle_history and set history_size
1687 to UNIT_MAX.
1688
1689 2012-08-28 Pedro Alves <palves@redhat.com>
1690
1691 PR gdb/14428
1692
1693 * infcmd.c (default_print_one_register_info): New, factored out
1694 from default_print_registers_info.
1695 (default_print_registers_info): Use it. Mark value unavailable if
1696 necessary.
1697 (registers_info): Print user registers with
1698 default_print_one_register_info.
1699
1700 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1701
1702 PR tui/14486
1703 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1704 is not NULL before referencing it.
1705
1706 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1707
1708 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1709 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1710 original PC for it.
1711
1712 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1713 Jan Kratochvil <jan.kratochvil@redhat.com>
1714
1715 * auto-load.c (auto_load_objfile_script): Rename to ...
1716 (auto_load_objfile_script_1): ... here, change variable realname to
1717 parameter realname, document it, add return value, add variable retval.
1718 (auto_load_objfile_script): New function.
1719
1720 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1721
1722 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1723 followed by a whitespace.
1724
1725 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1726
1727 PR gdb/14494.
1728 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1729 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1730 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1731 here.
1732
1733 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1734
1735 * memattr.c (create_mem_region): Fix memory region overlapping
1736 checking.
1737
1738 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1739
1740 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1741 with xmalloc/cleanup.
1742 * mt-tdep.c (mt_push_dummy_call): Likewise.
1743 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1744 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1745
1746 2012-08-24 Yao Qi <yao@codesourcery.com>
1747
1748 * jv-exp.y (push_expression_name): Add "." at the end of error
1749 message.
1750
1751 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1752
1753 Document how to return from "python-interactive" to GDB.
1754 * python/python.c (_initialize_python): Update documentation.
1755
1756 2012-08-23 Pedro Alves <palves@redhat.com>
1757
1758 * infrun.c (_initialize_infrun) <handle command help text>:
1759 Mention that multiple signals are supported.
1760
1761 2012-08-23 Pedro Alves <palves@redhat.com>
1762
1763 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1764 string.
1765
1766 2012-08-23 Yao Qi <yao@codesourcery.com>
1767
1768 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1769 (tfind_1): Don't call registers_changed, set_traceframe_num,
1770 and clear_traceframe_info.
1771 Call set_current_traceframe.
1772 (set_current_traceframe): call set_traceframe_num.
1773
1774 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1775
1776 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1777 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1778
1779 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1780
1781 Enable readline in Python in a GDB-specific way and block the
1782 standard Python readline module to prevent conflicts with GDB.
1783 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1784 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1785 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1786 * python/py-gdb-readline.c: New file.
1787 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1788 prototype.
1789 * python/python.c (_initialize_python): Call
1790 gdbpy_initialize_gdb_readline.
1791
1792 2012-08-22 Keith Seitz <keiths@redhat.com>
1793
1794 * defs.h: Include build-gnulib/config.h
1795
1796 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1797
1798 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1799 and blx pc.
1800
1801 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1802
1803 Add a new "python-interactive" command that starts a standard
1804 Python interactive prompt with "pi" as alias, and add "py" as
1805 an alias to "python".
1806 * NEWS: Mention the new commands.
1807 * python/python.c (eval_python_command): New function.
1808 (python_interactive_command): For "python-interactive" with
1809 arguments, call eval_python_command. For "python-interactive"
1810 without arguments, call PyRun_InteractiveLoop.
1811 (_initialize_python): Add "python-interactive" command with
1812 "pi" as alias, and add "py" as an alias to "python".
1813
1814 2012-08-22 Tom Tromey <tromey@redhat.com>
1815
1816 * defs.h (quit_flag): Don't declare.
1817 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1818 (QUIT): Use new functions.
1819 * event-top.c (command_handler): Use clear_quit_flag.
1820 (handle_sigint): Use set_quit_flag.
1821 (async_request_quit): Use check_quit_flag. Don't check
1822 immediate_quit.
1823 * exceptions.c (throw_exception): Use clear_quit_flag.
1824 * main.c (captured_main): Use clear_quit_flag.
1825 * python/python.c (clear_quit_flag, set_quit_flag)
1826 (check_quit_flag): New functions.
1827 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1828 clear_quit_flag.
1829 * remote.c (remote_wait_as): Use check_quit_flag,
1830 clear_quit_flag.
1831 (remote_start_remote): Call QUIT.
1832 * symfile.c (load_progress): Use check_quit_flag.
1833 * top.c (command_loop): Use clear_quit_flag.
1834 (command_line_input): Call QUIT.
1835 * utils.c (quit_flag): Conditionally define.
1836 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1837 functions.
1838 (prompt_for_continue): Call QUIT. Use quit, not
1839 async_request_quit.
1840 * remote-mips.c (mips_expect_timeout): Call QUIT.
1841 * monitor.c (monitor_expect): Call QUIT.
1842
1843 2012-08-22 Tom Tromey <tromey@redhat.com>
1844
1845 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1846 (async_init_signals): Update.
1847 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1848 (SIGWINCH_HANDLER_BODY): Remove.
1849
1850 2012-08-22 Tom Tromey <tromey@redhat.com>
1851
1852 * jit.c (jit_object_close_impl): Don't malloc the objfile
1853 name.
1854 * objfiles.c (allocate_objfile): Don't malloc the objfile
1855 name.
1856 (free_objfile): Don't free the objfile name.
1857 * objfiles.h (struct objfile) <name>: Update comment.
1858 * symfile.c (reread_symbols): Fix reference counting. Don't
1859 malloc objfile name.
1860
1861 2012-08-22 Tom Tromey <tromey@redhat.com>
1862
1863 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1864 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1865 (symfile_bfd_open): Likewise.
1866 (generic_load): Likewise.
1867 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1868 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1869 gdb_bfd_open.
1870 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1871 Use gdb_bfd_open.
1872 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1873 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1874 (pmon_load_fast): Likewise.
1875 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1876 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1877 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1878 (macho_check_dsym): Likewise.
1879 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1880 (m32r_upload_command): Likewise.
1881 * gdb_bfd.h (gdb_bfd_cache): Declare.
1882 * gdb_bfd.c (struct gdb_bfd_data): New.
1883 (gdb_bfd_cache): New global.
1884 (struct gdb_bfd_cache_search): New.
1885 (hash_bfd): New function.
1886 (eq_bfd): Likewise.
1887 (gdb_bfd_open): Likewise.
1888 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1889 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1890 gdb_bfd_data.
1891 * exec.c (exec_file_attach): Use gdb_bfd_open.
1892 * dsrec.c (load_srec): Use gdb_bfd_open.
1893
1894 2012-08-22 Tom Tromey <tromey@redhat.com>
1895
1896 * dwarf2read.c (macro_start_file): Update.
1897 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1898 (free_objfile_per_bfd_storage): Destroy macro_cache.
1899 (allocate_objfile, free_objfile): Update.
1900 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1901 New field.
1902 (struct objfile) <macro_cache>: Remove.
1903 * symfile.c (reread_symbols): Update.
1904 * symmisc.c (print_symbol_bcache_statistics): Update.
1905 (print_objfile_statistics): Update.
1906
1907 2012-08-22 Tom Tromey <tromey@redhat.com>
1908
1909 * elfread.c (elf_symtab_read): Update.
1910 * objfiles.c (objfiles_bfd_data): New global.
1911 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1912 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1913 (allocate_objfile, free_objfile): Update.
1914 (_initialize_objfiles): Initialize objfiles_bfd_data.
1915 * objfiles.h (struct objfile_per_bfd_storage): New.
1916 (struct objfile) <per_bfd>: New field.
1917 <filename_cache>: Remove.
1918 (set_objfile_per_bfd): Declare.
1919 * symfile.c (reread_symbols): Update. Call
1920 set_objfile_per_bfd.
1921 (allocate_symtab): Update.
1922 * symmisc.c (print_symbol_bcache_statistics): Update.
1923 (print_objfile_statistics): Print the size of the BFD obstack.
1924
1925 2012-08-22 Tom Tromey <tromey@redhat.com>
1926
1927 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1928 * gdb_bfd.c: Use DEFINE_REGISTRY.
1929 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1930 (gdb_bfd_ref): Call bfd_alloc_data.
1931 (gdb_bfd_unref): Call bfd_free_data.
1932
1933 2012-08-22 Tom Tromey <tromey@redhat.com>
1934
1935 * registry.h (struct registry_fields): New.
1936 (REGISTRY_FIELDS): Redefine.
1937 (REGISTRY_ACCESS_FIELD): New macro.
1938 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1939 functions.
1940
1941 2012-08-22 Tom Tromey <tromey@redhat.com>
1942
1943 * auto-load.c (_initialize_auto_load): Update.
1944 * solib-svr4.c (_initialize_svr4_solib): Update
1945 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1946 * solib-darwin.c (_initialize_darwin_solib): Update.
1947 * registry.h: New file.
1948 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1949 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1950 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1951 (register_program_space_data_with_cleanup)
1952 (register_program_space_data, program_space_alloc_data)
1953 (clear_program_space_data, set_program_space_data)
1954 (program_space_data): Don't declare.
1955 * progspace.c: Use DEFINE_REGISTRY.
1956 (struct program_space_data, struct
1957 program_space_data_registration, struct
1958 program_space_data_registry, program_space_data_registry)
1959 (register_program_space_data_with_cleanup)
1960 (register_program_space_data, program_space_alloc_data)
1961 (program_space_free_data, clear_program_space_data)
1962 (set_program_space_data, program_space_data): Remove.
1963 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1964 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1965 (register_objfile_data_with_cleanup, register_objfile_data)
1966 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1967 declare.
1968 * objfiles.c: Use DEFINE_REGISTRY.
1969 (struct objfile_data, struct objfile_data_registration, struct
1970 objfile_data_registry, objfile_data_registry)
1971 (register_objfile_data_with_cleanup, register_objfile_data)
1972 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1973 (set_objfile_data, objfile_data): Remove.
1974 (_initialize_objfiles): Update.
1975 * jit.c (_initialize_jit): Update.
1976 * inflow.c (_initialize_inflow): Update.
1977 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1978 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1979 (register_inferior_data_with_cleanup, register_inferior_data)
1980 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1981 declare.
1982 * inferior.c: Use DEFINE_REGISTRY.
1983 (struct inferior_data, struct inferior_data_registration, struct
1984 inferior_data_registry, inferior_data_registry)
1985 (register_inferior_data_with_cleanup, register_inferior_data)
1986 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1987 (set_inferior_data, inferior_data): Remove.
1988 * auxv.c (_initialize_auxv): Update.
1989 * ada-lang.c (_initialize_ada_language): Update.
1990 * breakpoint.c (_initialize_breakpoint): Update.
1991 * i386-nat.c (i386_use_watchpoints): Update.
1992
1993 2012-08-22 Tom Tromey <tromey@redhat.com>
1994
1995 * exec.c (exec_close, exec_file_attach): Update.
1996 (add_to_section_table): Initialize 'key' field.
1997 (add_target_sections, remove_target_sections): Add 'key' argument.
1998 * exec.h (add_target_sections, remove_target_sections): Add
1999 'key' argument.
2000 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2001 (reload_shared_libraries_1): Update.
2002 * target.h (struct target_section) <key>: New field.
2003
2004 2012-08-22 Tom Tromey <tromey@redhat.com>
2005
2006 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2007
2008 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2009
2010 * symfile.c (allocate_symtab): Use host_address_to_string
2011 function instead of cast of pointer to long which is not
2012 compatible with x86_64-w64-mingw32 build.
2013
2014 2012-08-19 Andrew Pinski <apinski@cavium.com>
2015
2016 * mips-tdep.c (is_octeon): New function.
2017 (is_octeon_bbit_op): New function.
2018 (mips32_next_pc): Handle Octeon's bbit instructions.
2019 (mips32_instruction_has_delay_slot): Likewise.
2020
2021 2012-08-19 Andrew Pinski <apinski@cavium.com>
2022
2023 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2024 before the function.
2025
2026 2012-08-19 Andrew Pinski <apinski@cavium.com>
2027
2028 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2029
2030 2012-08-19 Keith Seitz <keiths@redhat.com>
2031
2032 PR c++/14365
2033 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2034 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2035
2036 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2037
2038 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2039 The typo broke "make TAGS".
2040
2041 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2042
2043 GDB 7.5 released.
2044
2045 2012-08-17 Keith Seitz <keiths@redhat.com>
2046
2047 PR c++/13356
2048 * gdbtypes.c (strict_type_checking): New variable.
2049 (show_strict_type_checking): New function.
2050 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2051 if strict type checking is disabled.
2052 (_initialize_gdbtypes): Add "check type" subcommand.
2053 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2054
2055 2012-08-17 Keith Seitz <keiths@redhat.com>
2056
2057 * language.h (type_mode): Remove.
2058 (type_check): Remove.
2059 (struct language_defn): Remove la_type_check.
2060 (STRICT_TYPE): Remove unused macro.
2061 (type_error): Remove.
2062 * language.c (set_type_range_case): Renamed to ...
2063 (set_range_case): ... this. Update all callers.
2064 Remove type_mode/type_check.
2065 (type_mode): Remove.
2066 (type_check): Remove.
2067 (show_type_command): Remove.
2068 (set_type_command): Remove.
2069 (language_info): Remove type checking output.
2070 (type_error): Remove unused function.
2071 (range_error): Update comment.
2072 (unknown_language_defn): Remove la_type_check.
2073 (auto_language_defn): Likewise.
2074 (local_language_defn): Likewise.
2075 (_initialize_language): Remove "check type" subcommand.
2076 * ada-lang.c (ada_language_defn): Remove la_type_check.
2077 * c-lang.c (c_language_defn): Likewise.
2078 (cplus_language_defn): Likewise.
2079 (asm_language_defn): Likewise.
2080 (minimal_language_defn): Likewise.
2081 * d-lang.c (d_language_defn): Likewise.
2082 * f-lang.c (f_language_defn): Likewise.
2083 * go-lang.c (go_language_defn): Likewise.
2084 * jv-lang.c (java_language_defn): Likewise.
2085 * m2-lang.c (m2_language_defn): Likewise.
2086 * objc-lang.c (objc_language_defn): Likewise.
2087 * opencl-lang.c (opencl_language_defn): Likewise.
2088 * p-lang.c (pascal_language_defn): Likewise.
2089
2090 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2091
2092 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2093
2094 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2095
2096 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2097 New function.
2098 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2099 using the regache. Use ia64_hpux_get_register_from_save_state_t
2100 to access the bsp and bspstore registers if not.
2101
2102 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2103
2104 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2105 * breakpoint.c (detach_breakpoints): Change pid parameter into
2106 a ptid. Adjust code accordingly.
2107 * infrun.c (handle_inferior_event): Delete variable child_pid.
2108 Update call to detach_breakpoints to pass the child ptid for
2109 fork events.
2110 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2111 assert that inferior_ptid's lwp is zero.
2112 (linux_handle_extended_wait): Update call to detach_breakpoints.
2113 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2114 detach_breakpoints.
2115
2116 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2117
2118 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2119 parent, only call detach_breakpoints if tts.tts_event ==
2120 TTEVT_VFORK.
2121
2122 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2123
2124 * dwarf2-frame.c (dwarf2_frame_cache): Use
2125 get_frame_address_in_block instead of get_frame_pc as
2126 the bound for executing the frame's FDE.
2127
2128 2012-08-16 Yao Qi <yao@codesourcery.com>
2129
2130 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2131 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2132 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2133 (c_type_print_varspec_suffix): Likewise.
2134 * eval.c (evaluate_subexp_standard): Likewise.
2135 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2136 (f_type_print_varspec_suffix): Likewise.
2137 * gdbtypes.c (is_scalar_type): Likewise.
2138 (recursive_dump_type): Likewise.
2139 * infcall.c (value_arg_coerce): Likewise.
2140 * m2-valprint.c (m2_val_print): Likewise.
2141 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2142 (pascal_type_print_varspec_suffix): Likewise.
2143 (pascal_type_print_base): Likewise.
2144 * p-valprint.c (pascal_val_print): Likewise.
2145 (pascal_val_print): Likewise.
2146 * valops.c (value_slice): Likewise.
2147 * valprint.c (scalar_type_p): Likewise.
2148 * valarith.c (value_bitstring_subscript): Remove.
2149 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2150 Remove comment on TYPE_CODE_BITSTRING.
2151
2152 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2153 TYPE_CODE_BITSTRING.
2154
2155 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2156 slot 0.
2157
2158 2012-08-16 Yao Qi <yao@codesourcery.com>
2159
2160 * tracepoint.c (trace_find_none_command): Remove.
2161 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2162
2163 2012-08-16 Yao Qi <yao@codesourcery.com>
2164
2165 * remote.c (handle_notification): Remove parameter 'length'.
2166 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2167
2168 2012-08-15 Keith Seitz <keiths@redhat.com>
2169
2170 * gdbtypes.c (opaque_type_resolution): Make static.
2171 Add missing comment.
2172 (overload_debug): Add missing comment.
2173 (show_opaque_type_resolution): Likewise.
2174 (show_overload_debug): Likewise.
2175 (print_bit_vector): Remove unnecessary forward declaration.
2176 (print_arg_types): Likewise.
2177 (dump_fn_fieldlists): Likewise.
2178 (print_cplus_stuff): Likewise.
2179
2180 2012-08-15 Tom Tromey <tromey@redhat.com>
2181
2182 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2183 (gdb_bfd_ref): Initialize new field.
2184 (gdb_bfd_unref): Unref the archive BFD.
2185 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2186 parent archive.
2187
2188 2012-08-15 Tom Tromey <tromey@redhat.com>
2189
2190 PR python/14387:
2191 * python/py-bpevent.c (create_breakpoint_event_object): Update
2192 comment.
2193 * python/py-event.c (evpy_add_attribute): Update comment.
2194 * python/py-exitedevent.c (create_exited_event_object): Fix
2195 reference counting and error handling.
2196 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2197 Fix reference counting.
2198 * python/py-signalevent.c (create_signal_event_object): Fix
2199 reference counting and error handling.
2200 * python/py-stopevent.c (emit_stop_event): Fix reference
2201 counting.
2202 * python/py-threadevent.c (get_event_thread): Return a
2203 borrowed reference.
2204 * python/py-type.c (convert_field): Fix reference counting.
2205
2206 2012-08-15 Tom Tromey <tromey@redhat.com>
2207
2208 * dwarf2read.c (dwarf_decode_macro_bytes)
2209 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2210 as hash key.
2211
2212 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2213
2214 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2215 stepi, nexti, finish, next, step, jump, and continue commands.
2216 * infrun.c (_initialize_infrun): Update help text for the handle
2217 command.
2218
2219 2012-08-14 Doug Evans <dje@google.com>
2220
2221 * gdbtypes.c (struct extra): Delete, unused.
2222
2223 * gdbtypes.c: Whitespace cleanup.
2224 (address_space_name_to_int): Remove "extern" from definition.
2225 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2226
2227 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2228 TYPE_POINTER_TYPE (type).
2229
2230 2012-08-14 Gary Benson <gbenson@redhat.com>
2231
2232 * solib-svr4.c (svr4_free_library_list): Use free_so.
2233
2234 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2235
2236 * .gitignore: Add go-exp.c.
2237
2238 2012-08-13 Doug Evans <dje@google.com>
2239
2240 * value.c (show_convenience): Tweak comment.
2241 (_initialize_values): Mention convenience functions in the help text
2242 for "show convenience".
2243
2244 2012-08-13 Yao Qi <yao@codesourcery.com>
2245
2246 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2247 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2248 TERNOP_SLICE_COUNT.
2249 * eval.c (evaluate_subexp_standard): Likewise.
2250 * expprint.c (print_subexp_standard): Likewise.
2251 (dump_subexp_body_standard): Likewise.
2252 * parse.c (operator_length_standard): Likewise.
2253
2254 2012-08-13 Yao Qi <yao@codesourcery.com>
2255
2256 * std-operator.def: Remove OP_BITSTRING.
2257 * breakpoint.c (watchpoint_exp_is_const): Update.
2258 * eval.c (evaluate_subexp_standard): Remove handling to
2259 OP_BITSTRING.
2260 * expprint.c (print_subexp_standard): Likewise.
2261 (dump_subexp_body_standard): Likewise.
2262 * parse.c (operator_length_standard): Likewise.
2263 * valops.c (value_bitstring): Remove.
2264 * value.h: Remove the declaration of 'value_bitstring'.
2265
2266 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2267
2268 * linespec.c (find_methods): Remove unused variables `i1' and
2269 `name_len'.
2270 (decode_line_full): Likewise for `arg_start'.
2271
2272 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2273
2274 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2275 (zlib_decompress_section): Likewise for `section_data'.
2276 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2277
2278 2012-08-10 Doug Evans <dje@google.com>
2279
2280 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2281 * NEWS: Document them.
2282 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2283 function/strfns.py.
2284 * python/py-type.c (typy_array_1): New function.
2285 (typy_array): Call it.
2286 (typy_vector): New function.
2287 (type_object_methods): Add "vector".
2288 * python/lib/gdb/function/__init__.py: New file.
2289 * python/lib/gdb/function/strfns.py: New file.
2290
2291 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2292
2293 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2294 for TYPE_FIELD_BITPOS.
2295 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2296
2297 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2298
2299 PR cli/10436:
2300 * common/vec.h (VEC_merge): Define.
2301 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2302 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2303 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2304 * completer.c: Include gdb_signals.h.
2305 (signal_completer): Define.
2306 * completer.h (signal_completer): Add prototype.
2307 * infcmd.c (_initialize_infcmd): Assign the command
2308 completer for "signal" to handle_completer.
2309 * infrun.c: Include completer.h.
2310 (handle_completer): Define.
2311 (_initialize_infrun): Declare a new local variable c. Store the
2312 result of add_com("handle") to it. Assign the command
2313 completer for "handle" to handle_completer.
2314
2315 2012-08-09 Yao Qi <yao@codesourcery.com>
2316
2317 * cli/cli-decode.c (set_cmd_prefix): New.
2318 (lookup_cmd_for_prefixlist): New.
2319 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2320 of each cmd_list_element in *prefixlist.
2321 (add_setshow_cmd_full): set_cmd_prefix.
2322 (add_alias_cmd): Likewise.
2323 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2324 Declare 'auto_boolean_enums'.
2325 * cli/cli-setshow.c: Include "observer.h".
2326 (notify_command_param_changed_p): New.
2327 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2328 Remove 'static'.
2329 (do_setshow_command): Split it to ...
2330 (do_set_command, do_show_command): ... them. New.
2331 (do_set_command): Call observer_notify_command_param_changed if
2332 notify_command_param_changed_p returns true.
2333 (cmd_show_list): Caller update.
2334 * auto-load.c (set_auto_load_cmd): Likewise.
2335 * remote.c (show_remote_cmd): Likewise.
2336 * cli/cli-setshow.h: Update declarations.
2337 * top.c (execute_command): Call do_set_command and do_show_command.
2338
2339 * NEWS: Mention new MI notification.
2340 * mi/mi-interp.c: Declare mi_command_param_changed.
2341 (mi_interpreter_init): Attach mi_command_param_changed to
2342 observer command_param_changed.
2343 (mi_command_param_changed): New.
2344 Remove mi_suppress_breakpoint_notifications.
2345 Define global variable mi_suppress_notification.
2346 (mi_breakpoint_created): Update.
2347 (mi_breakpoint_deleted): Likewise.
2348 (mi_breakpoint_modified): Likewise.
2349 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2350 'gdb-set' and set mi_suppress_notification.
2351 * mi/mi-main.h: (mi_suppress_notification): New struct.
2352
2353 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2354 Jan Kratochvil <jan.kratochvil@redhat.com>
2355
2356 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2357
2358 2012-08-09 Yao Qi <yao@codesourcery.com>
2359
2360 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2361 (skiplist): Move it to skip.c.
2362 (init_cmd_lists): Remove code setting enablebreaklist and
2363 skiplist to NULL.
2364 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2365 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2366 skiplist.
2367 * gdbcmd.h: Likewise.
2368 * skip.c (_initialize_step_skip): Move 'skiplist' from
2369 cli/cli-cmds.c.
2370
2371 2012-08-09 Yao Qi <yao@codesourcery.com>
2372
2373 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2374 * gnu-nat.c, symfile.c: Likewise.
2375
2376 2012-08-08 Aaron Gamble <agamble@google.com>
2377
2378 * utils.c (prompt_for_continue_wait_time): New static global.
2379 (make_command_stats_cleanup): Initialize it.
2380 (report_command_stats): Subtract time waiting for user.
2381 (prompt_for_continue): Track time waiting for user.
2382 (defaulted_query): Track time waiting for user.
2383
2384 2012-08-08 Doug Evans <dje@google.com>
2385
2386 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2387 UNOP_MEMVAL_TYPE.
2388 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2389 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2390 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2391 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2392 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2393 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2394 elt.
2395 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2396 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2397 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2398 (dump_prefix_expression): Handle OP_TYPE.
2399
2400 2012-08-08 Keith Seitz <keiths@redhat.com>
2401
2402 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2403 addr_start.
2404
2405 2012-08-08 Doug Evans <dje@google.com>
2406
2407 * linux-thread-db.c: #include "gdb_vecs.h".
2408 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2409 updated.
2410 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2411 (thread_db_load_search): Use a vector to iterate over path elements.
2412 Handle text appearing after "$pdir".
2413
2414 * gdb_string.h: Moved to ...
2415 * common/gdb_string.h: ... here.
2416 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2417 gdb_string.h and gdb_assert.h.
2418
2419 2012-08-08 Yao Qi <yao@codesourcery.com>
2420
2421 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2422 (tic6x_value_to_register): Likewise.
2423 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2424 and set_gdbarch_value_to_register.
2425
2426 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2427 Jean-Marc Saffroy <saffroy@gmail.com>
2428
2429 PR 11804
2430 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2431 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2432 * gcore.c (gcore_create_callback): New function comment. Add modified
2433 parameter. Only write modified regions. Set SEC_READONLY exactly
2434 according to MODIFIED.
2435 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2436 the passed modified value to FUNC.
2437 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2438 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2439 first. New variables modified and has_anonymous. Parse the lines of
2440 smaps file. Add the passed MODIFIED value to FUNC.
2441 * procfs.c (find_memory_regions_callback): Add the passed modified
2442 value.
2443
2444 2012-08-06 Tom Tromey <tromey@redhat.com>
2445
2446 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2447 (dwarf2_frame_cache): Use it.
2448 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2449 cache initialization constraint.
2450
2451 2012-08-06 Tom Tromey <tromey@redhat.com>
2452
2453 PR python/14386:
2454 * varobj.c (update_dynamic_varobj_children): Don't call
2455 PyIter_Check.
2456
2457 2012-08-06 Tom Tromey <tromey@redhat.com>
2458
2459 PR cli/14392:
2460 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2461
2462 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2463
2464 * NEWS: New entry for 'cd' default parameters.
2465 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2466
2467 2012-08-03 Tom Tromey <tromey@redhat.com>
2468
2469 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2470 return.
2471
2472 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2473
2474 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2475 to attempting lseek/write.
2476 (inf_child_fileio_pread): Likewise for pread.
2477
2478 2012-08-02 Yao Qi <yao@codesourcery.com>
2479
2480 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2481 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2482 add_setshow_zinteger_cmd.
2483 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2484 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2485 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2486 instead of add_setshow_zinteger_cmd.
2487 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2488 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2489 instead of add_setshow_zinteger_cmd.
2490 * frame.c (frame_debug): Add 'unsigned'.
2491 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2492 add_setshow_zinteger_cmd.
2493 * frame.h: Update the declaration of 'frame_debug'.
2494 * gdbtypes.c (overload_debug): Add 'unsigned'.
2495 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2496 add_setshow_zinteger_cmd.
2497 * inferior.h: Update declaration of 'debug_infrun'.
2498 * infrun.c (debug_infrun): Add 'unsigned'.
2499 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2500 add_setshow_zinteger_cmd.
2501 * jit.c (jit_debug): Add 'unsigned'.
2502 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2503 add_setshow_zinteger_cmd.
2504 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2505 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2506 instead of add_setshow_zinteger_cmd.
2507 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2508 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2509 add_setshow_zinteger_cmd.
2510 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2511 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2512 instead of add_setshow_zinteger_cmd.
2513 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2514 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2515 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2516 intead of add_setshow_zinteger_cmd.
2517 * mips-tdep.c (mips_debug): Add 'unsigned'.
2518 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2519 instead of add_setshow_zinteger_cmd.
2520 * monitor.c (monitor_debug): Add 'unsigned'.
2521 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2522 add_setshow_zinteger_cmd.
2523 * observer.c (observer_debug): Add 'unsigned'.
2524 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2525 add_setshow_zinteger_cmd.
2526 * parse.c (expressiondebug): Add 'unsigned'.
2527 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2528 add_setshow_zinteger_cmd.
2529 * record.c (record_debug): Add 'unsigned'.
2530 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2531 add_setshow_zinteger_cmd.
2532 * record.h: Update the declaration of 'record_debug'.
2533 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2534 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2535 add_setshow_zinteger_cmd.
2536 * serial.c (global_serial_debug_p): Add 'unsigned'.
2537 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2538 add_setshow_zinteger_cmd.
2539 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2540 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2541 add_setshow_zinteger_cmd.
2542 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2543 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2544 add_setshow_zinteger_cmd.
2545 * target.c (targetdebug): Add 'unsigned'.
2546 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2547 add_setshow_zinteger_cmd.
2548 * valops.c (overload_debug): Add 'unsigned'.
2549 * varobj.c (varobjdebug): Add 'unsigned'.
2550 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2551 add_setshow_zinteger_cmd.
2552 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2553 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2554 instead of add_setshow_zinteger_cmd.
2555
2556 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2557 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2558 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2559 instead of add_setshow_zinteger_cmd.
2560 * gdbarch.c, gdbarch.h: Re-generated.
2561
2562 2012-08-02 Yao Qi <yao@codesourcery.com>
2563
2564 * nto-tdep.c: Don't include cli/cli-decode.h and
2565 cli/cli-cmds.h.
2566 (_initialize_nto_tdep): Remove.
2567 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2568 Remove field.
2569 Remove macro nto_internal_debugging.
2570
2571 2012-08-01 Richard Henderson <rth@redhat.com>
2572
2573 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2574 (mep-*-*) [gdb_target_obs]: Likewise.
2575
2576 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2577
2578 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2579 linux_get_siginfo_type.
2580
2581 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2584 AT_ENTRY_POINT.
2585 (call_function_by_hand) <ON_STACK>: Call write_memory with
2586 gdbarch_breakpoint_from_pc, if possible.
2587 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2588 here.
2589
2590 2012-07-31 Yao Qi <yao@codesourcery.com>
2591
2592 * tracepoint.c: Add 'static' for some variables.
2593
2594 2012-07-31 Yao Qi <yao@codesourcery.com>
2595
2596 * go32-nat.c: Declare _initialize_go32_nat.
2597 * ser-go32.c: Declare _initialize_ser_dos.
2598 * top.c (do_chdir_cleanup): Add 'static'.
2599
2600 2012-07-30 Keith Seitz <keiths@redhat.com>
2601
2602 * linespec.c (linespec_lex_number): A number followed
2603 by quotes is a valid number, too.
2604
2605 2012-07-30 Tom Tromey <tromey@redhat.com>
2606
2607 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2608
2609 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2610
2611 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2612 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2613
2614 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2615
2616 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2617 invalid or reevaluated to prevent prevent references to possibly
2618 delete'd type objects being left in the varobj.
2619
2620 2012-07-27 Tom Tromey <tromey@redhat.com>
2621 Jan Kratochvil <jan.kratochvil@redhat.com>
2622
2623 * copying.awk: Print buffer-read-only and vi ro markers.
2624 * copying.c: Rebuild.
2625 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2626 * gdbarch.c, gdbarch.h: Rebuild.
2627 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2628 buffer-read-only and vi ro markers.
2629 * features/arm-with-iwmmxt.c: Rebuild.
2630 * features/arm-with-m-fpa-layout.c: Rebuild.
2631 * features/arm-with-m-vfp-d16.c: Rebuild.
2632 * features/arm-with-m.c: Rebuild.
2633 * features/arm-with-neon.c: Rebuild.
2634 * features/arm-with-vfpv2.c: Rebuild.
2635 * features/arm-with-vfpv3.c: Rebuild.
2636 * features/i386/amd64-avx-linux.c: Rebuild.
2637 * features/i386/amd64-avx.c: Rebuild.
2638 * features/i386/amd64-linux.c: Rebuild.
2639 * features/i386/amd64.c: Rebuild.
2640 * features/i386/i386-avx-linux.c: Rebuild.
2641 * features/i386/i386-avx.c: Rebuild.
2642 * features/i386/i386-linux.c: Rebuild.
2643 * features/i386/i386-mmx-linux.c: Rebuild.
2644 * features/i386/i386-mmx.c: Rebuild.
2645 * features/i386/i386.c: Rebuild.
2646 * features/i386/x32-avx-linux.c: Rebuild.
2647 * features/i386/x32-avx.c: Rebuild.
2648 * features/i386/x32-linux.c: Rebuild.
2649 * features/i386/x32.c: Rebuild.
2650 * features/mips-dsp-linux.c: Rebuild.
2651 * features/mips-linux.c: Rebuild.
2652 * features/mips64-dsp-linux.c: Rebuild.
2653 * features/mips64-linux.c: Rebuild.
2654 * features/rs6000/powerpc-32.c: Rebuild.
2655 * features/rs6000/powerpc-32l.c: Rebuild.
2656 * features/rs6000/powerpc-403.c: Rebuild.
2657 * features/rs6000/powerpc-403gc.c: Rebuild.
2658 * features/rs6000/powerpc-405.c: Rebuild.
2659 * features/rs6000/powerpc-505.c: Rebuild.
2660 * features/rs6000/powerpc-601.c: Rebuild.
2661 * features/rs6000/powerpc-602.c: Rebuild.
2662 * features/rs6000/powerpc-603.c: Rebuild.
2663 * features/rs6000/powerpc-604.c: Rebuild.
2664 * features/rs6000/powerpc-64.c: Rebuild.
2665 * features/rs6000/powerpc-64l.c: Rebuild.
2666 * features/rs6000/powerpc-7400.c: Rebuild.
2667 * features/rs6000/powerpc-750.c: Rebuild.
2668 * features/rs6000/powerpc-860.c: Rebuild.
2669 * features/rs6000/powerpc-altivec32.c: Rebuild.
2670 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2671 * features/rs6000/powerpc-altivec64.c: Rebuild.
2672 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2673 * features/rs6000/powerpc-cell32l.c: Rebuild.
2674 * features/rs6000/powerpc-cell64l.c: Rebuild.
2675 * features/rs6000/powerpc-e500.c: Rebuild.
2676 * features/rs6000/powerpc-e500l.c: Rebuild.
2677 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2678 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2679 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2680 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2681 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2682 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2683 * features/rs6000/powerpc-vsx32.c: Rebuild.
2684 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2685 * features/rs6000/powerpc-vsx64.c: Rebuild.
2686 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2687 * features/rs6000/rs6000.c: Rebuild.
2688 * features/s390-linux32.c: Rebuild.
2689 * features/s390-linux32v1.c: Rebuild.
2690 * features/s390-linux32v2.c: Rebuild.
2691 * features/s390-linux64.c: Rebuild.
2692 * features/s390-linux64v1.c: Rebuild.
2693 * features/s390-linux64v2.c: Rebuild.
2694 * features/s390x-linux64.c: Rebuild.
2695 * features/s390x-linux64v1.c: Rebuild.
2696 * features/s390x-linux64v2.c: Rebuild.
2697 * features/tic6x-c62x-linux.c: Rebuild.
2698 * features/tic6x-c62x.c: Rebuild.
2699 * features/tic6x-c64x-linux.c: Rebuild.
2700 * features/tic6x-c64x.c: Rebuild.
2701 * features/tic6x-c64xp-linux.c: Rebuild.
2702 * features/tic6x-c64xp.c: Rebuild.
2703
2704 2012-07-27 Tom Tromey <tromey@redhat.com>
2705
2706 * c-exp.y (classify_name): Avoid assignment in condition.
2707
2708 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2709
2710 * amd64-windows-tdep.c: Include "frame.h".
2711 (amd64_windows_skip_trampoline_code): New function.
2712 (amd64_windows_init_abi): Add trampoline registration.
2713
2714 2012-07-27 Yao Qi <yao@codesourcery.com>
2715
2716 * tracepoint.c (cur_traceframe_number): Remove.
2717 (set_tfile_traceframe): Remove.
2718 (tfile_trace_find, tfile_fetch_registers): Update callers.
2719 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2720 (tfile_open, tfile_trace_find): Likewise.
2721
2722 2012-07-27 Yao Qi <yao@codesourcery.com>
2723
2724 * thread.c (switch_to_thread): Don't call registers_changed.
2725
2726 2012-07-26 Tom Tromey <tromey@redhat.com>
2727
2728 * Makefile.in (SFILES): Remove objc-exp.y.
2729 (YYFILES): Remove objc-exp.c.
2730 (YYOBJ): Remove objc-exp.o.
2731 (local-maintainer-clean): Don't mention objc-exp.c.
2732 * c-exp.y: Include objc-lang.h.
2733 (%union) <class>: New field.
2734 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2735 (exp): Clone subscript production for OBJC_LBRAC. Add various
2736 Objective C productions.
2737 (msglist, msgarglist, msgarg): New productions.
2738 (array_mod, func_mod, operator): Clone productions for
2739 OBJC_LBRAC.
2740 (parse_string_or_char): Handle '@' strings.
2741 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2742 (classify_name): Check la_name_of_this. Recognize ObjC class
2743 names.
2744 * objc-exp.y: Remove.
2745 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2746 * objc-lang.h (objc_parse, objc_error): Don't declare.
2747
2748 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2749
2750 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2751
2752 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2755 and decrement.
2756
2757 2012-07-26 Tom Tromey <tromey@redhat.com>
2758
2759 * copying.c: Rebuild.
2760 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2761 'no_class'.
2762
2763 2012-07-26 Tom Tromey <tromey@redhat.com>
2764
2765 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2766 immediate_quit.
2767 (print_objfile_statistics): Likewise.
2768 (maintenance_print_symbols): Likewise.
2769 (maintenance_print_msymbols): Likewise.
2770 (maintenance_print_objfiles): Likewise.
2771 * psymtab.c (print_partial_symbols): Call QUIT.
2772 (maintenance_print_psymbols): Likewise. Don't modify
2773 immediate_quit.
2774 * copying.c (show_copying_command): Don't modify immediate_quit.
2775 (show_warranty_command): Likewise.
2776 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2777
2778 2012-07-26 Keith Seitz <keiths@redhat.com>
2779
2780 * linespec.c (linespec_lexer_lex_number): The input
2781 is also a valid number if the next character is a comma
2782 or colon.
2783
2784 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2785
2786 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2787 configure options.
2788
2789 2012-07-26 Tristan Gingold <gingold@adacore.com>
2790
2791 * machoread.c: Include gdb_bfd.h.
2792
2793 2012-07-26 Tristan Gingold <gingold@adacore.com>
2794
2795 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2796 offset.
2797
2798 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2799
2800 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2801 SIZE to size_t.
2802 (dwarf2_evaluate_loc_desc): Likewise.
2803 (dwarf2_loc_desc_needs_frame): Likewise.
2804 (locexpr_describe_location_1): Likewise.
2805 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2806 size_t.
2807 (struct dwarf2_loclist_baton): Likewise.
2808 * dwarf2read.c (struct dwarf_block): Likewise.
2809 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2810 (decode_locdesc): Expand SIZE and I to size_t.
2811
2812 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2813
2814 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2815
2816 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2817
2818 * doublest.c (convert_doublest_to_floatformat): If the exponent
2819 is too small, treat the value as zero. If the exponent is too
2820 large, treat the value as infinity.
2821
2822 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2823
2824 * configure.ac: Add --enable-lmcheck configure option.
2825 * configure: Regenerate.
2826
2827 2012-07-25 Tom Tromey <tromey@redhat.com>
2828
2829 * NEWS: Mention maint info bfds.
2830 * gdb_bfd.c (all_bfds): New global.
2831 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2832 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2833 New functions.
2834
2835 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2836
2837 * configure.tgt: Add v850*-*-rtems*.
2838
2839 2012-07-25 Tom Tromey <tromey@redhat.com>
2840
2841 * macrotab.c (macro_bcache_str): Remove cast.
2842
2843 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2844
2845 * linespec.c (linespec_lexer_lex_number): Update comments,
2846 change the return and add check to make sure the input is
2847 the decimal numbers.
2848 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2849 false, call linespec_lexer_lex_string.
2850
2851 2012-07-24 Tom Tromey <tromey@redhat.com>
2852
2853 * symfile.c (symbol_file_add): Don't open BFD twice.
2854
2855 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2856
2857 * breakpoint.c (create_breakpoint): Store condition for pending
2858 breakpoints.
2859
2860 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2861
2862 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2863 (m68k_return_value): Handle complex types like structures.
2864 (m68k_svr4_return_value): Likewise.
2865
2866 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2867
2868 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2869 parameters to bfd_get_section_name.
2870
2871 2012-07-24 Yao Qi <yao@codesourcery.com>
2872
2873 * cli/cli-setshow.c: Handle case 'var_uinteger'
2874 and 'var_zuninteger' together. Handle case 'var_integer' and
2875 'var_zinteger' together.
2876
2877 2012-07-23 Keith Seitz <keiths@redhat.com>
2878
2879 * linespec.c (convert_linespec_to_sal): Don't add
2880 any symbols to the result vector if symbol_to_sal
2881 returns zero.
2882
2883 2012-07-23 Keith Seitz <keiths@redhat.com>
2884
2885 * linespec.c (decode_objc): Record the function name
2886 in the linespec.
2887
2888 2012-07-23 Tom Tromey <tromey@redhat.com>
2889
2890 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2891 counting.
2892 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2893 (map_vmap): Acquire a reference to the BFD.
2894
2895 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2896
2897 * p-valprint.c (pascal_object_print_value): Replace potentially
2898 unsafe alloca with xmalloc/xfree.
2899 * valops.c (search_struct_method): Likewise.
2900
2901 2012-07-23 Tom Tromey <tromey@redhat.com>
2902
2903 * solib-svr4.c (enable_break): Update.
2904 * bfd-target.h (target_bfd_reopen): Update documentation.
2905
2906 2012-07-23 Tom Tromey <tromey@redhat.com>
2907
2908 * symfile.c (separate_debug_file_exists): Update.
2909 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2910 (reread_symbols): Update.
2911 * elfread.c (build_id_verify): Update.
2912 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2913 bfd_open_maybe_remote.
2914
2915 2012-07-23 Tom Tromey <tromey@redhat.com>
2916
2917 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2918
2919 2012-07-23 Tom Tromey <tromey@redhat.com>
2920
2921 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2922 and 'abfd'.
2923 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2924 and 'abfd'.
2925 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2926 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2927 'abfd'.
2928 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2929 * objfiles.c (allocate_objfile): Acquire a new reference.
2930 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2931 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2932 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2933 a cleanup for 'nbfd'.
2934 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2935 for 'nbfd'.
2936 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2937 make a cleanup for 'abfd'.
2938 (symbol_file_add): Make a BFD cleanup.
2939
2940 2012-07-23 Tom Tromey <tromey@redhat.com>
2941
2942 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2943 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2944 * corelow.c (core_open): Use gdb_bfd_fopen.
2945 * dsrec.c (load_srec): Use gdb_bfd_openr.
2946 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2947 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2948 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2949 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2950 (gdb_bfd_fdopenr): New functions.
2951 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2952 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2953 (gdb_bfd_fdopenr): Declare.
2954 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2955 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2956 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2957 gdb_bfd_openr_next_archived_file.
2958 (macho_check_dsym): Use gdb_bfd_openr.
2959 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2960 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2961 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2962 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2963 gdb_bfd_openr.
2964 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2965 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2966 gdb_bfd_openr_next_archived_file.
2967 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2968 Use gdb_bfd_openr.
2969 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2970 gdb_bfd_openr.
2971 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2972 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2973 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2974 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2975 (symfile_bfd_open): Use gdb_bfd_fopen.
2976 (generic_load): Use gdb_bfd_openr.
2977 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2978
2979 2012-07-23 Tom Tromey <tromey@redhat.com>
2980
2981 * bfd-target.c (target_bfd_reopen): Update.
2982 * cli/cli-dump.c (bfd_openr_with_cleanup)
2983 (bfd_openw_with_cleanup): Update.
2984 * corelow.c (core_open): Update.
2985 * dsrec.c (load_srec): Update.
2986 * exec.c (exec_file_attach): Update.
2987 * gcore.c (create_gcore_bfd): Update.
2988 * gdb_bfd.c (gdb_bfd_ref): Return void.
2989 (gdb_bfd_open): Update.
2990 * gdb_bfd.h (gdb_bfd_ref): Return void.
2991 Update comments.
2992 * jit.c (jit_bfd_try_read_symtab): Update.
2993 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2994 * machoread.c (macho_symfile_read_all_oso): Update.
2995 (macho_check_dsym): Update.
2996 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2997 * remote-m32r-sdi.c (m32r_load): Update.
2998 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2999 * rs6000-nat.c (add_vmap): Update.
3000 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3001 Update.
3002 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3003 * solib-spu.c (spu_bfd_open): Update.
3004 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3005 * spu-linux-nat.c (spu_bfd_open): Update.
3006 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3007 (generic_load): Update.
3008 * windows-nat.c (windows_make_so): Update.
3009
3010 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3011
3012 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3013
3014 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3015
3016 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3017 SIGTRAMP_FRAME unwinding.
3018
3019 2012-07-20 Doug Evans <dje@google.com>
3020
3021 * NEWS: Document new options "set/show use-deprecated-index-sections",
3022 and delete reference to --use-deprecated-index-sections.
3023 * symfile.h (use_deprecated_index_sections): Delete.
3024 * dwarf2read.c (use_deprecated_index_sections): Make static.
3025 (read_index_from_section): Update wording of how to load
3026 deprecated index sections.
3027 (_initialize_dwarf2_read): New options
3028 "set/show use-deprecated-index-sections".
3029 * main.c (captured_main): Delete --use-deprecated-index-sections.
3030
3031 2012-07-20 Pedro Alves <palves@redhat.com>
3032
3033 PR threads/11692
3034 PR gdb/12203
3035
3036 * infrun.c (handle_inferior_event) <new thread>: Don't special
3037 case minus_one_ptid.
3038 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3039 * linux-thread-db.c (thread_get_info_callback): Don't return early
3040 if the thread is zombie.
3041 (thread_from_lwp): Change return type to void. Rewrite stale
3042 comment.
3043 (attach_thread): Don't return early if the thread is zombie,
3044 instead set its "dying" flag.
3045 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3046 (find_new_threads_callback): Don't return early if the thread is
3047 zombie.
3048
3049 2012-07-20 Pedro Alves <palves@redhat.com>
3050
3051 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3052 * target.c (target_wait): Likewise.
3053 (str_comma_list_concat_elem, do_option, target_options_to_string):
3054 New functions.
3055 * target.h (target_options_to_string): Declare.
3056
3057 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3058 Tom Tromey <tromey@redhat.com>
3059
3060 * dwarf2read.c (dwarf_decode_macros)
3061 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3062 DW_MACRO_GNU_transparent_include_alt>: New cases.
3063 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3064 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3065
3066 2012-07-20 Tom Tromey <tromey@redhat.com>
3067
3068 * dwarf2read.c (try_open_dwo_file): Don't call
3069 gdb_bfd_stash_filename.
3070
3071 2012-07-20 Pedro Alves <palves@redhat.com>
3072
3073 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3074 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3075 (i386_process_record): Tweak description comments.
3076
3077 2012-07-20 Pedro Alves <palves@redhat.com>
3078
3079 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3080 (i386_process_record): Use record_read_memory.
3081 * record.c (record_read_memory): New function.
3082 (record_arch_list_add_mem, record_exec_insn): Use
3083 record_read_memory.
3084 * record.h (record_read_memory): Declare.
3085
3086 2012-07-20 Yao Qi <yao@codesourcery.com>
3087
3088 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3089 NULL for xfree.
3090
3091 2012-07-19 Pedro Alves <palves@redhat.com>
3092
3093 * record.c (record_resume): Ask the target beneath to report all
3094 signals.
3095
3096 2012-07-19 Doug Evans <dje@google.com>
3097
3098 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3099 there's no section at address zero.
3100 (dwarf2_record_block_ranges): Ditto.
3101
3102 2012-07-19 Yao Qi <yao@codesourcery.com>
3103
3104 * command.h, remote.c: Fix a typo in comment.
3105
3106 2012-07-19 Tom Tromey <tromey@redhat.com>
3107
3108 PR exp/13206:
3109 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3110 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3111 OP_DECLTYPE>: New cases.
3112 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3113 (type_exp): Add new productions.
3114 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3115 and decltype.
3116 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3117 New case.
3118 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3119 OP_DECLTYPE>: New case.
3120 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3121 New case.
3122 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3123 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3124
3125 2012-07-19 Tom Tromey <tromey@redhat.com>
3126
3127 * c-exp.y (enum token_flags): New.
3128 (struct token) <cxx_only>: Remove.
3129 <flags>: New field.
3130 (tokentab3, tokentab2, ident_tokens): Update.
3131 (lex_one_token): Update. Handle FLAG_SHADOW.
3132
3133 2012-07-19 Tom Tromey <tromey@redhat.com>
3134
3135 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3136 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3137 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3138 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3139 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3140 type_exp production where appropriate.
3141 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3142 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3143 <UNOP_MEMVAL_TYPE>: New case.
3144 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3145 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3146 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3147 <UNOP_MEMVAL_TYPE>: New case.
3148 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3149 UNOP_REINTERPRET_CAST>: Update.
3150 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3151 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3152 UNOP_REINTERPRET_CAST>: Update.
3153 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3154 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3155 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3156 constants.
3157
3158 2012-07-19 Yao Qi <yao@codesourcery.com>
3159 Jan Kratochvil <jan.kratochvil@redhat.com>
3160
3161 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3162 and case 'var_optional_filename' together.
3163 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3164 instead of add_setshow_optional_filename_cmd for setshow command
3165 'args'. Set completer for 'set args'.
3166
3167 2012-07-18 Doug Evans <dje@google.com>
3168
3169 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3170 * common/gdb_vecs.c: New file, contents from utils.c.
3171 * common/host-defs.h: New file, contents from defs.h.
3172 * utils.h: New file, contents from defs.h.
3173 * defs.h: Move all declarations of objects defined in utils.c
3174 to utils.h (except QUIT() and related).
3175 #include "utils.h", "host-defs.h".
3176 * probe.h (probe_p): Move here from gdb_vecs.h.
3177 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3178 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3179 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3180 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3181 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3182 (COMMON_OBS): Add gdb_vecs.o.
3183 (gdb_vecs.o): New rule.
3184
3185 2012-07-18 Keith Seitz <keiths@redhat.com>
3186
3187 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3188 parameter. If non-zero, use SYMNAME as the canonical name
3189 for the SaL.
3190 Update all callers.
3191 (convert_linespec_to_sals): Use add_sal_to_sals for
3192 expressions, too.
3193 (decode_line_full): No need to "fill in missing canonical names"
3194 anymore. Simply make cleanups for the allocated names.
3195
3196 2012-07-18 Keith Seitz <keiths@redhat.com>
3197
3198 * linespec.c (struct linespec): Constify expression,
3199 source_filename, function_name, and label_name.
3200 (symbol_not_found_error): Make all parameters const.
3201 (linespec_parser_delete): No need to check for NULL
3202 when using xfree. Cast const char * to char * for xfree.
3203
3204 2012-07-18 Keith Seitz <keiths@redhat.com>
3205
3206 * breakpoint.c (invalid_thread_id_error): New function.
3207 (find_condition_and_thread): Use invalid_thread_id_error.
3208 (watch_command_1): Likewise.
3209
3210 2012-07-18 Tom Tromey <tromey@redhat.com>
3211
3212 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3213 * contrib/cc-with-tweaks.sh: New file.
3214
3215 2012-07-18 Tom Tromey <tromey@redhat.com>
3216
3217 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3218 (locate_dwz_sections): Recognize .gdb_index.
3219 (create_cus_from_index_list): New function.
3220 (create_cus_from_index): Use it. Handle .dwz data.
3221 (read_index_from_section): New function, extracted from
3222 dwarf2_read_index.
3223 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3224 if needed.
3225
3226 2012-07-18 Tom Tromey <tromey@redhat.com>
3227
3228 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3229 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3230 <is_dwz>: New field.
3231 (struct dwz_file): New.
3232 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3233 (locate_dwz_sections, dwarf2_get_dwz_file)
3234 (get_abbrev_section_for_cu): New functions.
3235 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3236 (read_and_check_type_unit_head): Add abbrev_section argument.
3237 (create_debug_types_hash_table): Update.
3238 (init_cutu_and_read_dies): Use proper abbrev section.
3239 (init_cutu_and_read_dies_no_follow): Likewise.
3240 (set_partial_user): Do nothing if PST==NULL.
3241 (read_comp_units_from_section): New function.
3242 (create_all_comp_units): Use it.
3243 (scan_partial_symbols, partial_die_parent_scope): Update.
3244 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3245 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3246 (find_partial_die): Add offset_in_dwz argument. Update.
3247 (guess_partial_die_structure_name, fixup_partial_die): Update.
3248 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3249 DW_FORM_GNU_strp_alt.
3250 (read_indirect_string_from_dwz): New function.
3251 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3252 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3253 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3254 (follow_die_offset): Add offset_in_dwz argument.
3255 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3256 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3257 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3258 Handle new macro forms.
3259 (dwarf_decode_macros): Update.
3260 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3261 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3262 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3263 (create_debug_types_hash_table): Use correct abbrev section.
3264 (get_debug_line_section): New function.
3265 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3266 (process_full_comp_unit): Pass 'required' argument to
3267 end_symtab_get_static_block.
3268 * buildsym.h (end_symtab_get_static_block): Update.
3269 * buildsym.c (end_symtab_get_static_block): Add 'required'
3270 argument.
3271 (end_symtab, end_expandable_symtab): Update.
3272
3273 2012-07-18 Tom Tromey <tromey@redhat.com>
3274
3275 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3276 (pagesize): Remove.
3277 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3278 (zlib_decompress_section): Remove.
3279 (dwarf2_read_section): Use gdb_bfd_map_section.
3280 (munmap_section_buffer): Remove.
3281 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3282 munmap_section_buffer.
3283 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3284 (struct gdb_bfd_section_data): New.
3285 (free_one_bfd_section): New function.
3286 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3287 (get_section_descriptor, zlib_decompress_section)
3288 (gdb_bfd_map_section): New functions.
3289 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3290
3291 2012-07-18 Tom Tromey <tromey@redhat.com>
3292
3293 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3294
3295 2012-07-18 Tom Tromey <tromey@redhat.com>
3296
3297 * gdb_bfd.c (struct gdb_bfd_data): New.
3298 (gdb_bfd_cache): New global.
3299 (struct gdb_bfd_cache_search): New.
3300 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3301 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3302 * gdb_bfd.h (gdb_bfd_open): Declare.
3303
3304 2012-07-18 Tom Tromey <tromey@redhat.com>
3305
3306 * utils.c (make_cleanup_bfd_unref): Rename from
3307 make_cleanup_bfd_close.
3308 * defs.h (make_cleanup_bfd_unref): Rename from
3309 make_cleanup_bfd_close.
3310 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3311 (bfd_openw_with_cleanup): Update.
3312 * corelow.c (core_open): Update.
3313 * dsrec.c (load_srec): Update.
3314 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3315 * remote-m32r-sdi.c (m32r_load): Update.
3316 * remote-mips.c (mips_load_srec): Update.
3317 (pmon_load_fast): Update.
3318 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3319 Update.
3320 (darwin_bfd_open): Update.
3321 * solib.c (solib_bfd_fopen): Update.
3322 * symfile-mem.c (symbol_file_add_from_memory): Update.
3323 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3324 (symfile_bfd_open): Update.
3325 (generic_load): Update.
3326
3327 2012-07-18 Tom Tromey <tromey@redhat.com>
3328
3329 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3330 (pmon_load_fast): Likewise.
3331 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3332 (m32r_upload_command): Likewise.
3333 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3334 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3335 Use make_cleanup_bfd_close.
3336
3337 2012-07-18 Tom Tromey <tromey@redhat.com>
3338
3339 * symfile.c (symfile_bfd_open): Don't copy name. Call
3340 gdb_bfd_stash_filename.
3341 (load_command): Open the new BFD before freeing the old.
3342 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3343 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3344 Call gdb_bfd_stash_filename.
3345 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3346 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3347 gdb_bfd_stash_filename.
3348 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3349 Free found_pathname.
3350 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3351 gdb_bfd_stash_filename.
3352 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3353 * machoread.c (macho_add_oso_symfile): Call
3354 gdb_bfd_stash_filename.
3355 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3356 gdb_bfd_stash_filename.
3357 (macho_check_dsym): Don't copy filename. Call
3358 gdb_bfd_stash_filename.
3359 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3360 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3361 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3362 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3363 * exec.c (exec_close): Don't free the BFD's filename.
3364 (exec_file_attach): Don't copy the filename. Call
3365 gdb_bfd_stash_filename.
3366 * corelow.c (core_close): Don't free the BFD's filename.
3367 (core_open): Call gdb_bfd_stash_filename.
3368 * corefile.c (reopen_exec_file): Remove #if 0 code.
3369 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3370 pathname.
3371 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3372
3373 2012-07-18 Tom Tromey <tromey@redhat.com>
3374
3375 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3376 gdb_bfd_unref.
3377 (free_dwo_file): Use gdb_bfd_unref.
3378 * cli/cli-dump.c: Include gdb_bfd.h.
3379 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3380 (bfd_openr_with_cleanup): Likewise.
3381 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3382 gdb_bfd_unref.
3383 * utils.c: Include gdb_bfd.h.
3384 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3385 * symfile.c: Include gdb_bfd.h.
3386 (separate_debug_file_exists): Use gdb_bfd_unref.
3387 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3388 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3389 (generic_load): Use gdb_bfd_ref.
3390 (reread_symbols): Use gdb_bfd_unref.
3391 * symfile-mem.c: Include gdb_bfd.h.
3392 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3393 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3394 * solib.c: Include gdb_bfd.h.
3395 (solib_bfd_fopen): Use gdb_bfd_ref.
3396 (solib_bfd_open): Use gdb_bfd_unref.
3397 (free_so_symbols): Use gdb_bfd_unref.
3398 (reload_shared_libraries_1): Use gdb_bfd_unref.
3399 * solib-spu.c: Include gdb_bfd.h.
3400 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3401 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3402 gdb_bfd_unref.
3403 * solib-frv.c: Include gdb_bfd.h.
3404 (enable_break2): Use gdb_bfd_unref.
3405 * solib-dsbt.c: Include gdb_bfd.h.
3406 (enable_break2): Use gdb_bfd_unref.
3407 * solib-darwin.c: Include gdb_bfd.h.
3408 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3409 gdb_bfd_unref.
3410 (darwin_bfd_open): Use gdb_bfd_unref.
3411 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3412 * remote-mips.c: Include gdb_bfd.h.
3413 (mips_load_srec): Use gdb_bfd_ref.
3414 (pmon_load_fast): Use gdb_bfd_ref.
3415 * remote-m32r-sdi.c: Include gdb_bfd.h.
3416 (m32r_load): Use gdb_bfd_ref.
3417 * record.c: Include gdb_bfd.h.
3418 (record_save_cleanups): Use gdb_bfd_unref.
3419 (cmd_record_save): Use gdb_bfd_unref.
3420 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3421 gdb_bfd_unref.
3422 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3423 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3424 * objfiles.c: Include gdb_bfd.h.
3425 (free_objfile): Use gdb_bfd_unref.
3426 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3427 gdb_bfd.c.
3428 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3429 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3430 (macho_check_dsym): Likewise.
3431 * m32r-rom.c: Include gdb_bfd.h.
3432 (m32r_load): Use gdb_bfd_ref.
3433 (m32r_upload_command): Use gdb_bfd_ref.
3434 * jit.c: Include gdb_bfd.h.
3435 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3436 * gdb_bfd.h: New file.
3437 * gdb_bfd.c: New file.
3438 * gcore.c: Include gdb_bfd.h.
3439 (create_gcore_bfd): Use gdb_bfd_ref.
3440 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3441 (gcore_command): Use gdb_bfd_unref.
3442 * exec.c: Include gdb_bfd.h.
3443 (exec_close): Use gdb_bfd_unref.
3444 (exec_close_1): Use gdb_bfd_unref.
3445 (exec_file_attach): Use gdb_bfd_ref.
3446 * elfread.c: Include gdb_bfd.h.
3447 (build_id_verify): Use gdb_bfd_unref.
3448 * dsrec.c: Include gdb_bfd.h.
3449 (load_srec): Use gdb_bfd_ref.
3450 * corelow.c: Include gdb_bfd.h.
3451 (core_close): Use gdb_bfd_unref.
3452 (core_open): Use gdb_bfd_ref.
3453 * bfd-target.c: Include gdb_bfd.h.
3454 (target_bfd_xclose): Use gdb_bfd_unref.
3455 (target_bfd_reopen): Use gdb_bfd_ref.
3456 * Makefile.in (SFILES): Add gdb_bfd.c.
3457 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3458 (COMMON_OBS): Add gdb_bfd.o.
3459
3460 2012-07-18 Keith Seitz <keiths@redhat.com>
3461
3462 * breakpoint.c (find_condition_and_thread): Initialize
3463 TASK and REST.
3464 (create_breakpiont): find_condition_and_thread will now
3465 initialize COND_STRING, THREAD, and REST (and TASK).
3466 (addr_string_to_sals): Likewise.
3467
3468 2012-07-18 Pedro Alves <palves@redhat.com>
3469
3470 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3471 Pull the single step breakpoints out of the target.
3472
3473 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3474
3475 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3476 * stap-probe.c (compile_probe_arg): Likewise.
3477
3478 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3479
3480 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3481 (elf_compile_to_ax): Likewise.
3482 * infrun.c (insert_exception_resume_from_probe): Likewise.
3483 (check_exception_resume): Remove `objfile' variable.
3484 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3485 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3486 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3487 (compare_entries): Rename to...
3488 (compare_probes): ...this. Adjust function to work with
3489 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3490 respectively.
3491 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3492 `VEC (probe_p) *'.
3493 (print_ui_out_info): Adjust argument to be `struct probe *'.
3494 (info_probes_for_ops): Adjust internal computations to use
3495 `VEC (probe_p) *'.
3496 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3497 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3498 gen_info_probes_table_values>: Remove `objfile' argument.
3499 (struct probe) <objfile>: New field.
3500 (find_probe_by_pc): Remove `objfile' argument.
3501 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3502 (stap_get_probe_argument_count): Likewise.
3503 (stap_get_arg): Likewise.
3504 (stap_evaluate_probe_argument): Likewise.
3505 (stap_compile_to_ax): Likewise.
3506 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3507 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3508 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3509 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3510 sym_compile_to_ax>: Likewise.
3511
3512 2012-07-18 Terry Guo <terry.guo@arm.com>
3513
3514 PR 14329
3515 * defs.h (GDB_MI_MSG_WIDTH): New.
3516 * ser_base (ser_base_read_error_fd): New function.
3517 (do_ser_base_readchar): Poll error file descriptor as well as
3518 standard output.
3519 (generic_readchar): Refactor error handling.
3520
3521 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3522
3523 * NEWS: Create a new section for the next release branch.
3524 Rename the section of the current branch, now that it has
3525 been cut.
3526
3527 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3528
3529 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3530 * version.in: Bump version to 7.5.50.20120718-cvs.
3531
3532 2012-07-17 Keith Seitz <keiths@redhat.com>
3533
3534 * linespec.c (linespec_parse_line_offset): Make parameter
3535 const.
3536
3537 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3538
3539 PR 11914
3540 * f-valprint.c (info_common_command): New variable frame_id.
3541 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3542 * printcmd.c (print_variable_and_value): Extend function comment.
3543 Add comment for invalidated FRAME.
3544 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3545 FI form FRAME_ID after each print_frame_local_vars.
3546 (struct print_variable_and_value_data): Change frame to frame_id.
3547 (do_print_variable_and_value): New variable frame, initialize it from
3548 p->frame_id. Add comment for invalidated FRAME.
3549 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3550 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3551 for invalidated FRAME.
3552
3553 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3554 Pedro Alves <palves@redhat.com>
3555
3556 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3557 loop.
3558
3559 2012-07-16 Tom Tromey <tromey@redhat.com>
3560
3561 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3562
3563 2012-07-15 Doug Evans <dje@google.com>
3564
3565 * dwarf2read.c (stmt_list_hash): New struct.
3566 (type_unit_group): Embed "per_cu" member, remove pointer.
3567 New union member "t", move member "tus" into it, all uses updated.
3568 New member "hash", replaces member "line_offset, all uses updated.
3569 (quick_file_names): Replace member "offset" with "hash", all uses
3570 updated.
3571 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3572 (hash_file_name_entry, eq_file_name_entry): Call them.
3573 (hash_type_unit_group, eq_type_unit_group): Ditto.
3574 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3575 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3576 (dw2_get_file_names): Update.
3577 (create_type_unit_group): Replace "per_cu" arg with "cu".
3578 All callers updated. Fix "quick" (.gdb_index) handling.
3579 (get_type_unit_group): Replace "per_cu" arg with "cu".
3580 All callers updated.
3581 (build_type_unit_groups): Don't reset tu_stats.
3582
3583 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3584 "tab_cur_size". Change member "tab" to be a htab_t.
3585 (create_filename_seen_cache): Update.
3586 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3587 (filename_seen): Update.
3588
3589 2012-07-13 Doug Evans <dje@google.com>
3590
3591 * symtab.c (filename_seen): Update comment.
3592
3593 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3594 Doug Evans <dje@google.com>
3595
3596 * buildsym.c (end_symtab_1): Split it to ...
3597 (end_symtab_get_static_block): ... this ...
3598 (end_symtab_from_static_block): ... and this function.
3599 (end_symtab, end_expandable_symtab): Call them.
3600 * buildsym.h (end_symtab_get_static_block)
3601 (end_symtab_from_static_block): New declarations.
3602 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3603 Set its valid CU ranges.
3604
3605 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3606
3607 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3608 DW_OP_GNU_parameter_ref.
3609
3610 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3611
3612 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3613 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3614
3615 2012-07-13 Doug Evans <dje@google.com>
3616
3617 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3618 (filename_seen_cache): New struct.
3619 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3620 (create_filename_seen_cache): New function.
3621 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3622 (filename_seen): Delete arg "first". New arg "cache". All callers
3623 updated.
3624 (output_source_filename_data): New struct.
3625 (output_source_filename): Delete arg "first". New arg "data".
3626 All callers updated.
3627 (sources_info): Delete local "first". New locals "data", "cleanups".
3628 Rewrite to use filename_seen_cache.
3629 (add_partial_filename_data): Delete member "first". New member
3630 "filename_seen_cache". All uses updated.
3631 (make_source_files_completion_list): Rewrite to use
3632 filename_seen_cache.
3633
3634 2012-07-12 Doug Evans <dje@google.com>
3635
3636 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3637
3638 2012-07-10 Doug Evans <dje@google.com>
3639
3640 PR gdb/13498
3641 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3642 all_type_unit_groups, type_unit_groups, tu_stats.
3643 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3644 All uses updated. Add type_unit_group to union "s".
3645 (type_unit_group): New struct.
3646 (IS_TYPE_UNIT_GROUP): New macro.
3647 (abbrev_table): Delete unused member "section".
3648 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3649 (dw2_get_cu): Assert not used with type_unit_group.
3650 (dw2_get_primary_cu): New function.
3651 (dw2_build_type_unit_groups_reader): New function.
3652 (dw2_build_type_unit_groups): New function.
3653 (dw2_get_file_names): Assert not called on type units.
3654 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3655 Redo loop to iterate over type unit groups instead of type units.
3656 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3657 (read_abbrev_offset): New function.
3658 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3659 updated.
3660 (create_partial_symtab): New function.
3661 (process_psymtab_comp_unit_reader): Assert not used with type units.
3662 Call create_partial_symtab.
3663 (process_psymtab_type_unit): Delete.
3664 (hash_type_unit_group, eq_type_unit_group): New functions.
3665 (allocate_type_unit_groups_table): New function.
3666 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3667 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3668 (create_type_unit_group, get_type_unit_group): New functions.
3669 (tu_abbrev_offset): New struct.
3670 (sort_tu_by_abbrev_offset): New function.
3671 (add_type_unit_group_to_table): New function.
3672 (build_type_unit_groups): New function.
3673 (build_type_psymtabs_reader): New function.
3674 (build_type_psymtab_dependencies): New function.
3675 (build_type_psymtabs): Rewrite.
3676 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3677 is seen in a type unit.
3678 (process_queue): Move symtab expansion debugging printfs here.
3679 Call process_full_type_unit for type units.
3680 (compute_symtab_includes): Assert not called for type units.
3681 (process_cu_includes): Don't call compute_symtab_includes for
3682 type units.
3683 (process_full_type_unit): New function.
3684 (process_imported_unit_die): Flag an error if called for type units.
3685 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3686 updated. Assert not called for type units.
3687 (read_file_scope): Call dwarf2_start_symtab.
3688 (setup_type_unit_groups): New function.
3689 (read_type_unit_scope): Rewrite.
3690 (abbrev_table_read_table): Initialize abbrev_table->offset.
3691 (abbrev_table_free_cleanup): New function.
3692 (dwarf2_start_symtab): New function.
3693 (load_full_type_unit): Assert not called for type unit groups.
3694 * buildsym.c (finish_block_internal): New arg "expandable".
3695 All callers updated.
3696 (start_symtab): Move most contents to ...
3697 (restart_symtab): ... here. New function.
3698 (reset_symtab_globals): New function.
3699 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3700 Call reset_symtab_globals.
3701 (end_symtab, end_expandable_symtab): New functions.
3702 (set_missing_symtab, augment_type_symtab): New functions.
3703 * buildsym.h (end_expandable_symtab): Declare.
3704 (augment_type_symtab, restart_symtab): Declare.
3705 * psympriv.h (struct partial_symtab): New member "anonymous".
3706 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3707 anonymous psymtabs.
3708 (read_psymtabs_with_filename): Ditto.
3709 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3710 (expand_symtabs_matching_via_partial): Ditto.
3711 (dump_psymtab): Update.
3712 * dictionary.c (dict_add_pending): New function.
3713 * dictionary.h (dict_add_pending): Declare.
3714
3715 2012-07-09 Doug Evans <dje@google.com>
3716
3717 * buildsym.c (start_subfile): Remove unnecessary check for
3718 name == NULL.
3719
3720 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3721
3722 * dwarf2read.c (load_full_type_unit): Simplify.
3723
3724 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3725 to struct signatured_type **. All uses updated.
3726
3727 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3728 All callers updated.
3729
3730 2012-07-09 Tom Tromey <tromey@redhat.com>
3731
3732 * c-exp.y (check_parameter_typelist): New function.
3733 (parameter_typelist): Call it.
3734 * eval.c (make_params): Handle '(void)' case.
3735 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3736 '(void)' case.
3737
3738 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3739
3740 * common/linux-ptrace.c: Include gdb_assert.h.
3741 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3742 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3743 stdint.h.
3744 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3745 functions.
3746 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3747 * linux-nat.c (linux_child_post_attach)
3748 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3749
3750 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3753 nptl <2.7 bug workaround for core files.
3754
3755 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3756
3757 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3758 clearing.
3759 (save_siginfo): Remove.
3760 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3761 call.
3762 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3763 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3764 * linux-nat.h (struct lwp_info): Remove field siginfo.
3765
3766 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3767
3768 Code cleanup for the next patch.
3769 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3770 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3771 call for it.
3772 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3773 (ia64_linux_stopped_data_address):
3774 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3775 the return value.
3776 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3777 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3778 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3779 call for it.
3780
3781 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3782
3783 PR 14321
3784 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3785 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3786
3787 2012-07-06 Tom Tromey <tromey@redhat.com>
3788
3789 * c-exp.y (DOTDOTDOT): New token.
3790 (func_mod, exp): Use parameter_typelist.
3791 (parameter_typelist): New production.
3792 (tokentab3): Add "..." token.
3793 * eval.c (make_params): Handle varargs.
3794 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3795 varargs.
3796
3797 2012-07-06 Tom Tromey <tromey@redhat.com>
3798
3799 PR exp/9608:
3800 * c-exp.y (%union) <tvec>: Change type.
3801 (func_mod): Now uses <tvec> type.
3802 (exp): Update for tvec change.
3803 (direct_abs_decl): Push the typelist.
3804 (func_mod): Return a typelist.
3805 (nonempty_typelist): Update for tvec change.
3806 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3807 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3808 * parse.c (pop_type_list): New function.
3809 (push_typelist): New function.
3810 (follow_types): Handle tp_function_with_arguments.
3811 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3812 (enum type_pieces) <tp_function_with_arguments>: New constant.
3813 (union type_stack_elt) <typelist_val>: New field.
3814 (push_typelist): Declare.
3815
3816 2012-07-06 Tom Tromey <tromey@redhat.com>
3817
3818 * c-exp.y (%union) <type_stack>: New field.
3819 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3820 (ptr_operator_ts): New production.
3821 (ptype): Update.
3822 * parse.c (type_stack_reserve): New function.
3823 (check_type_stack_depth): Use it.
3824 (pop_type_stack, append_type_stack, push_type_stack)
3825 (get_type_stack, type_stack_cleanup): New functions.
3826 (follow_types): Handle tp_type_stack.
3827 (_initialize_parse): Simplify initialization.
3828 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3829 constant.
3830 (union type_stack_elt) <stack_val>: New field.
3831 (get_type_stack, append_type_stack, push_type_stack)
3832 (type_stack_cleanup): Declare.
3833
3834 2012-07-06 Tom Tromey <tromey@redhat.com>
3835
3836 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3837 Remove.
3838 (struct type_stack): New.
3839 * parse.c (type_stack, type_stack_size, type_stack_depth):
3840 Remove.
3841 (type_stack): New global.
3842 (parse_exp_in_context, check_type_stack_depth)
3843 (insert_into_type_stack, insert_type, push_type, push_type_int)
3844 (insert_type_address_space, pop_type, pop_type_int)
3845 (_initialize_parse): Update.
3846
3847 2012-07-06 Tom Tromey <tromey@redhat.com>
3848
3849 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3850 Remove %type.
3851
3852 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3853
3854 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3855
3856 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3857 Jan Kratochvil <jan.kratochvil@redhat.com>
3858
3859 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3860 alloca with xmalloc/xfree.
3861
3862 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3863
3864 * MAINTAINERS (Write After Approval): Add myself to the list.
3865
3866 2012-07-05 Doug Evans <dje@google.com>
3867
3868 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3869
3870 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3871
3872 * ax-gdb.c (cli/cli-utils.h): New include.
3873 (linespec.h): Ditto.
3874 (agent_eval_command_one): New function.
3875 (agent_command_1): Ditto.
3876 (agent_command): Call function agent_command_1.
3877 (agent_eval_command): Ditto.
3878 (_initialize_ax_gdb): Change help for "maint agent"
3879 and "maint agent-eval".
3880
3881 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3882
3883 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3884 * cli/cli-utils.c (check_for_argument): New function.
3885 * cli/cli-utils.h (check_for_argument): Ditto.
3886
3887 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3888
3889 * NEWS: Mention x32 ABI support.
3890
3891 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3892
3893 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3894 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3895
3896 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3897 and pc_regnum_from_eax to -1. Update SP regnum from
3898 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3899 needed.
3900
3901 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3902 pc_regnum_from_eax.
3903
3904 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3905
3906 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3907 * dwarf2expr.h: Include gdbtypes.h.
3908 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3909 these forward declarations.
3910 (cu_offset, sect_offset): Move these ...
3911 * gdbtypes.h: Remove include dwarf2expr.h.
3912 (cu_offset, sect_offset): ... here.
3913
3914 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3915
3916 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3917 (amd64_linux_sigtramp_code): This.
3918 (amd64_x32_linux_sigtramp_code): New.
3919 (LINUX_SIGTRAMP_LEN): Updated.
3920 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3921
3922 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3923
3924 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3925
3926 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3927
3928 * config.in: Regenerate.
3929 * configure: Regenerate.
3930 * configure.ac: Remove check for gnu/libc-version.h.
3931 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3932 gnu/libc-version.h.
3933 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3934 variables libc_version, libc_major and libc_minor. Replace sscanf by
3935 inferior_has_bug. Extend the comment.
3936
3937 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3938
3939 * linux-thread-db.c (inferior_has_bug): New function.
3940 (thread_db_find_new_threads_silently): Return boolean as checked by
3941 inferior_has_bug, describe it in the comments.
3942 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3943 earlier. Abort the initialization if it returned non-zero.
3944 (thread_db_new_objfile): Exclude debug files.
3945 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3946 if UNTIL_NO_NEW,
3947
3948 2012-07-02 Doug Evans <dje@google.com>
3949
3950 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3951 related to queue management.
3952
3953 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3954 instead of "debug dwarf2-die" in debugging printfs.
3955 (create_debug_info_hash_table_reader): Ditto.
3956 (create_debug_info_hash_table): Ditto.
3957 (init_dwo_file): Ditto.
3958 (init_cutu_and_read_dies): Add debugging printf.
3959 (init_cutu_and_read_dies_no_follow): Ditto.
3960 (process_psymtab_comp_unit_reader): Ditto.
3961
3962 2012-07-02 Stan Shebs <stan@codesourcery.com>
3963
3964 Add target-side support for dynamic printf.
3965 * NEWS: Mention the additional style.
3966 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3967 (struct bp_location): New field cmd_bytecode.
3968 * breakpoint.c: Include format.h.
3969 (disconnected_dprintf): New global.
3970 (parse_cmd_to_aexpr): New function.
3971 (build_target_command_list): New function.
3972 (insert_bp_location): Call it.
3973 (remove_breakpoints_pid): Skip dprintf breakpoints.
3974 (print_one_breakpoint_location): Ditto.
3975 (dprintf_style_agent): New global.
3976 (dprintf_style_enums): Add dprintf_style_agent.
3977 (update_dprintf_command_list): Add agent case.
3978 (agent_printf_command): New function.
3979 (_initialize_breakpoint): Add new commands.
3980 * common/ax.def (printf): New bytecode.
3981 * ax.h (ax_string): Declare.
3982 * ax-gdb.h (gen_printf): Declare.
3983 * ax-gdb.c: Include cli-utils.h, format.h.
3984 (gen_printf): New function.
3985 (maint_agent_print_command): New function.
3986 (_initialize_ax_gdb): Add maint agent-printf command.
3987 * ax-general.c (ax_string): New function.
3988 (ax_print): Add printf disassembly.
3989 * Makefile.in (SFILES): Add format.c
3990 (COMMON_OBS): Add format.o.
3991 * common/format.h: New file.
3992 * common/format.c: New file.
3993 * printcmd.c: Include format.h.
3994 (ui_printf): Call parse_format_string.
3995 * remote.c (remote_state): New field breakpoint_commands.
3996 (PACKET_BreakpointCommands): New enum.
3997 (remote_breakpoint_commands_feature): New function.
3998 (remote_protocol_features): Add new BreakpointCommands entry.
3999 (remote_can_run_breakpoint_commands): New function.
4000 (remote_add_target_side_commands): New function.
4001 (remote_insert_breakpoint): Call it.
4002 (remote_insert_hw_breakpoint): Ditto.
4003 (_initialize_remote): Add new packet configuration for
4004 target-side breakpoint commands.
4005 * target.h (struct target_ops): New field
4006 to_can_run_breakpoint_commands.
4007 (target_can_run_breakpoint_commands): New macro.
4008 * target.c (update_current_target): Handle
4009 to_can_run_breakpoint_commands.
4010
4011 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4012
4013 Execute -ix and -iex only after system and user gdbinit files.
4014 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4015 processing down after gdbinit files.
4016
4017 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4018
4019 Add fnmatch-gnu module.
4020 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4021 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4022 * gnulib/aclocal.m4: Regenerate.
4023 * gnulib/config.in: Regenerate.
4024 * gnulib/configure: Regenerate.
4025 * gnulib/import/dummy.c: Remove.
4026 * gnulib/import/Makefile.am: Regenerate.
4027 * gnulib/import/Makefile.in: Likewise.
4028 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4029 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4030 * gnulib/import/alloca.c: New file.
4031 * gnulib/import/alloca.in.h: Likewise.
4032 * gnulib/import/config.charset: Likewise.
4033 * gnulib/import/fnmatch.c: Likewise.
4034 * gnulib/import/fnmatch.in.h: Likewise.
4035 * gnulib/import/fnmatch_loop.c: Likewise.
4036 * gnulib/import/localcharset.c: Likewise.
4037 * gnulib/import/localcharset.h: Likewise.
4038 * gnulib/import/m4/alloca.m4: Likewise.
4039 * gnulib/import/m4/codeset.m4: Likewise.
4040 * gnulib/import/m4/configmake.m4: Likewise.
4041 * gnulib/import/m4/fcntl-o.m4: Likewise.
4042 * gnulib/import/m4/fnmatch.m4: Likewise.
4043 * gnulib/import/m4/glibc21.m4: Likewise.
4044 * gnulib/import/m4/localcharset.m4: Likewise.
4045 * gnulib/import/m4/locale-fr.m4: Likewise.
4046 * gnulib/import/m4/locale-ja.m4: Likewise.
4047 * gnulib/import/m4/locale-zh.m4: Likewise.
4048 * gnulib/import/m4/mbrtowc.m4: Likewise.
4049 * gnulib/import/m4/mbsinit.m4: Likewise.
4050 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4051 * gnulib/import/m4/mbstate_t.m4: Likewise.
4052 * gnulib/import/m4/stdbool.m4: Likewise.
4053 * gnulib/import/m4/wchar_h.m4: Likewise.
4054 * gnulib/import/m4/wctype_h.m4: Likewise.
4055 * gnulib/import/m4/wint_t.m4: Likewise.
4056 * gnulib/import/mbrtowc.c: Likewise.
4057 * gnulib/import/mbsinit.c: Likewise.
4058 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4059 * gnulib/import/mbsrtowcs-state.c: Likewise.
4060 * gnulib/import/mbsrtowcs.c: Likewise.
4061 * gnulib/import/ref-add.sin: Likewise.
4062 * gnulib/import/ref-del.sin: Likewise.
4063 * gnulib/import/stdbool.in.h: Likewise.
4064 * gnulib/import/streq.h: Likewise.
4065 * gnulib/import/strnlen1.c: Likewise.
4066 * gnulib/import/strnlen1.h: Likewise.
4067 * gnulib/import/verify.h: Likewise.
4068 * gnulib/import/wchar.in.h: Likewise.
4069 * gnulib/import/wctype.in.h: Likewise.
4070
4071 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4072
4073 Support shell wildcards for 'set auto-load safe-path'.
4074 * auto-load.c: Include fnmatch.h.
4075 (filename_is_in_dir): Rename to ...
4076 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4077 it. Update function comment. Rename dir_len to pattern_len. New
4078 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4079 messages. Use gdb_filename_fnmatch.
4080 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4081 pattern.
4082 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4083 * defs.h (gdb_filename_fnmatch): New declaration.
4084 * utils.c: Include fnmatch.h.
4085 (gdb_filename_fnmatch): New function.
4086
4087 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4088
4089 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4090 `-probe' and `-probe-stap' options.
4091
4092 2012-07-01 Yao Qi <yao@codesourcery.com>
4093
4094 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4095 always_inserted_off, and always_inserted_enums.
4096 Change always_inserted_mode's type to 'enum auto_boolean'.
4097 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4098 callers.
4099 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4100 of add_setshow_enum_cmd.
4101 * infrun.c: Remove can_use_displaced_stepping_auto,
4102 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4103 can_use_displaced_stepping_enum.
4104 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4105 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4106 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4107 add_setshow_enum_cmd.
4108
4109 2012-06-30 Doug Evans <dje@google.com>
4110
4111 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4112 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4113 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4114
4115 2012-06-29 Doug Evans <dje@google.com>
4116
4117 * linespec.c: #include "stack.h".
4118 (decode_line_with_current_source): Moved here from symtab.c and
4119 renamed from decode_line_spec. All callers updated.
4120 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4121 renamed from decode_line_spec_1. All callers updated.
4122 * linespec.h (decode_line_with_current_source): Move declaration here
4123 from symtab.h and renamed from decode_line_spec.
4124 (decode_line_with_last_displayed): Move declaration here from symtab.h
4125 and renamed from decode_line_spec_1.
4126 * macrocmd.c: #include "linespec.h".
4127 * symtab.c: Remove #include "linespec.h".
4128
4129 2012-06-28 Doug Evans <dje@google.com>
4130
4131 * dwarf2read.c (get_cu_length): New function.
4132 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4133 (create_debug_types_hash_table): Ditto.
4134 (init_cutu_and_read_dies): Ditto.
4135 (init_cutu_and_read_dies_no_follow): Ditto.
4136
4137 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4138
4139 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4140 (struct abbrev_table): Define.
4141 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4142 abbrev_table.
4143 (init_cutu_and_read_dies): Update.
4144 (abbrev_table_alloc_abbrev): New function. Replaces
4145 dwarf_alloc_abbrev. All callers updated.
4146 (abbrev_table_add_abbrev): New function.
4147 (abbrev_table_lookup_abbrev): New function. Replaces
4148 dwarf2_lookup_abbrev. All callers updated.
4149 (abbrev_table_read_table): New function. Contents moved here from
4150 dwarf2_read_abbrevs.
4151 (dwarf2_read_abbrevs): Call it.
4152 (abbrev_table_free): New function.
4153 (dwarf2_free_abbrev_table): Call it.
4154
4155 2012-06-28 Stan Shebs <stan@codesourcery.com>
4156
4157 * osdata.c (info_osdata_command): Filter out "Title" columns
4158 from non-MI uses.
4159 * common/linux-osdata.c (struct osdata_type): Add title field.
4160 (osdata_table): Add titles to each entry.
4161 (linux_command_xfer_osdata): Add a column for title data.
4162
4163 2012-06-28 Stan Shebs <stan@codesourcery.com>
4164
4165 Make logging work for MI.
4166 * NEWS: Mention it.
4167 * interps.h (interp_set_logging_ftype): New typedef.
4168 (struct interp_procs): New field set_logging_proc.
4169 (current_interp_set_logging): Declare.
4170 * interps.c (current_interp_set_logging): New function.
4171 * cli/cli-logging.c: Include interps.h.
4172 (set_logging_redirect): Call current_interp_set_logging.
4173 (pop_output_files): Ditto.
4174 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4175 * mi/mi-console.h (mi_console_set_raw): Declare.
4176 * mi/mi-console.c (mi_console_set_raw): New function.
4177 * mi/mi-interp.c (saved_raw_stdout): New global.
4178 (mi_set_logging): New function.
4179 (_initialize_mi_interp): Add it to interp procs.
4180
4181 2012-06-28 Doug Evans <dje@google.com>
4182
4183 * symtab.c (lookup_symbol_aux_objfile): Use
4184 ALL_OBJFILE_PRIMARY_SYMTABS.
4185
4186 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4187
4188 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4189
4190 * common/buffer.c: Include inttypes.h and stdint.h.
4191 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4192
4193 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4194 Pedro Alves <palves@redhat.com>
4195
4196 * gdbthread.h (ALL_THREADS): New macro.
4197 (thread_list): Declare.
4198 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4199 going, but instead fall through to the stepping handling.
4200 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4201 the passed in signal. Adjust debug output.
4202 (resume_callback): Rename to ...
4203 (linux_nat_resume_callback): ... this. Pass the thread's last
4204 stop signal, if in "pass" state.
4205 (linux_nat_resume): Adjust to rename.
4206 (stop_wait_callback): New assertion. Don't respawn signals;
4207 instead let the LWP remain with SIGNALLED set.
4208 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4209 * remote.c (append_pending_thread_resumptions): New.
4210 (remote_vcont_resume): Call it.
4211 * target.h (target_resume): Extend comment.
4212
4213 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4214
4215 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4216
4217 2012-06-27 Doug Evans <dje@google.com>
4218
4219 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4220 Delete have_addr_base, unused. All uses updated.
4221 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4222 (dwarf2_get_pc_bounds): Add ranges_base.
4223 (dwarf2_record_block_ranges): Ditto.
4224
4225 2012-06-27 Tom Tromey <tromey@redhat.com>
4226
4227 PR macros/7961:
4228 * varobj.c (varobj_create): Update.
4229 (varobj_set_value): Update.
4230 * tracepoint.c (validate_actionline): Update.
4231 (encode_actions_1): Update.
4232 * parse.c (parse_exp_1): Add 'pc' argument.
4233 (parse_exp_in_context): Add 'pc' argument. Change how
4234 expression_context_pc is set.
4235 (parse_expression): Update.
4236 (parse_field_expression): Update.
4237 * expression.h (parse_exp_1): Update.
4238 * eval.c (parse_to_comma_and_eval): Update.
4239 * breakpoint.c (set_breakpoint_condition): Update.
4240 (update_watchpoint): Update.
4241 (init_breakpoint_sal): Update
4242 (find_condition_and_thread): Update.
4243 (watch_command_1): Update.
4244 (update_breakpoint_locations): Update.
4245 * ada-lang.c (ada_read_renaming_var_value): Update.
4246 (create_excep_cond_exprs): Update.
4247
4248 2012-06-27 Doug Evans <dje@google.com>
4249
4250 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4251 type units.
4252
4253 2012-06-26 Doug Evans <dje@google.com>
4254
4255 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4256 prototype.
4257 (error_check_comp_unit_head): New arg abbrev_section. All callers
4258 updated.
4259 (read_and_check_comp_unit_head): Ditto.
4260 (read_and_check_type_unit_head): Ditto.
4261
4262 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4263
4264 New attribute 'last' for gdb.Symtab_and_line.
4265 * NEWS (Python Scripting): Add entry about the new attribute.
4266 * python/py-symtab.c (salpy_get_last): New function which
4267 implements the get method for the 'last' attribute of
4268 gdb.Symtab_and_line.
4269 (sal_object_getset): Add entry for the 'last' attribute.
4270
4271 2012-06-26 Doug Evans <dje@google.com>
4272
4273 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4274 (dwo_sections): Add macinfo, macro.
4275 (dwarf2_locate_dwo_sections): Watch for macro sections.
4276 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4277 All callers updated. Handle DWO files.
4278
4279 * NEWS: Mention new options "set debug dwarf2-read" and
4280 "set debug symtab-create".
4281 * dwarf2read.c (dwarf2_read_debug): New static global.
4282 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4283 (process_queue): Ditto.
4284 (process_full_comp_unit): Ditto.
4285 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4286 * elfread.c (elf_symfile_read): Add debugging printf.
4287 * minsyms.c (install_minimal_symbols): Ditto.
4288 * psymtab.c (allocate_psymtab): Ditto.
4289 * symfile.c (allocate_symtab): Ditto.
4290 * symtab.c (symtab_create_debug): New global.
4291 (_initialize_symtab): Add new option "set debug symtab-create".
4292 * symtab.h (symtab_create_debug): Declare.
4293
4294 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4295 (lookup_dwo_type_unit): Ditto.
4296
4297 2012-06-26 Roland McGrath <roland@hack.frob.com>
4298 H.J. Lu <hongjiu.lu@intel.com>
4299
4300 * amd64-linux-nat.c: Include <sys/user.h>.
4301 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4302 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4303 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4304
4305 * configure.ac: Check if the fs_base and gs_base members of
4306 `struct user_regs_struct' exist.
4307 * config.in: Regenerated.
4308 * configure: Likewise.
4309
4310 2012-06-25 Michael Eager <eager@eagercon.com>
4311
4312 PR python/14291
4313 * python/python.c (gdbpy_write): Check for interrupted output.
4314
4315 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4316
4317 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4318 register as a stack alignment in ARM mode.
4319
4320 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4321
4322 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4323 * gnulib/config.in: Regenerate.
4324 * gnulib/configure: Likewise.
4325 * gnulib/import/m4/extensions.m4: Update it.
4326 * gnulib/import/m4/gnulib-common.m4: Likewise.
4327 * gnulib/import/m4/memmem.m4: Likewise.
4328 * gnulib/import/m4/mmap-anon.m4: Likewise.
4329 * gnulib/import/m4/multiarch.m4: Likewise.
4330 * gnulib/import/stdint.in.h: Likewise.
4331
4332 2012-06-24 Yao Qi <yao@codesourcery.com>
4333
4334 * corefile.c (write_memory_with_notification): New.
4335 * gdbcore.h: Declare write_memory_with_notification.
4336 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4337 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4338 * valops.c (value_assign): Likewise.
4339 * python/py-inferior.c (infpy_write_memory): Call
4340 'write_memory_with_notification'.
4341
4342 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4343
4344 * cc-with-index.sh: Use also -ex "set auto-load no".
4345
4346 2012-06-23 Doug Evans <dje@google.com>
4347
4348 PR 14125
4349 * NEWS: Document additions to .gdb_index.
4350 * dwarf2read.c: #include "gdb/gdb-index.h".
4351 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4352 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4353 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4354 (dwarf2_read_index): Recognize version 7.
4355 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4356 block_kind, domain): All callers updated.
4357 (dw2_find_symbol_file): Handle new index CU values.
4358 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4359 (add_index_entry): New args is_static, kind. All callers updated.
4360 (offset_type_compare, uniquify_cu_indices): New functions
4361 (symbol_kind): New function.
4362 (write_psymtabs_to_index): Remove duplicate CU values.
4363 (write_psymtabs_to_index): Write .gdb_index version 7.
4364
4365 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4366
4367 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4368 * configure: Regenerate.
4369
4370 2012-06-20 Yao Qi <yao@codesourcery.com>
4371
4372 * python/py-inferior.c: Update comments of infpy_read_memory
4373 and infpy_write_memory.
4374
4375 2012-06-19 Tom Tromey <tromey@redhat.com>
4376
4377 PR exp/9514:
4378 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4379 (push_type_address_space): Remove.
4380 * parse.c (insert_into_type_stack): New function.
4381 (insert_type): Likewise.
4382 (insert_type_address_space): Rename from push_type_address_space.
4383 Insert tp_space_identifier.
4384 * c-exp.y (ptr_operator): New production.
4385 (abs_decl): Use ptr_operator.
4386 (space_identifier): Call insert_type_address_space.
4387 (ptype): Don't use const_or_volatile_or_space_identifier.
4388 (const_or_volatile_noopt): Call insert_type.
4389 (conversion_type_id, conversion_declarator): New productions.
4390 (operator): Use conversion_type_id.
4391
4392 2012-06-18 Doug Evans <dje@google.com>
4393
4394 * symtab.h (minimal_symbol): New member created_by_gdb.
4395 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4396 created by gdb.
4397 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4398 (search_symbols): Call it instead of lookup_symbol.
4399 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4400
4401 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4402 Adjust address for DW_OP_GNU_addr_index.
4403 * dwarf2expr.h (dwarf_expr_context): Update comment.
4404 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4405 all callers updated. Handle TLS vars described with
4406 DW_OP_GNU_const_index.
4407 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4408 and DW_OP_GNU_const_index.
4409 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4410
4411 * block.c (find_block_in_blockvector): Make explicit the fact that we
4412 ignore GLOBAL_BLOCK.
4413
4414 2012-06-18 Tom Tromey <tromey@redhat.com>
4415
4416 * c-exp.y (operator): Remove trailing space after "delete" and
4417 "delete[]".
4418
4419 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4420 Jan Kratochvil <jan.kratochvil@redhat.com>
4421
4422 Switch i386 and derived targets to ON_STACK.
4423 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4424 (amd64_dicos_init_abi): Remove its installment.
4425 * dicos-tdep.c (dicos_init_abi): Remove the
4426 set_gdbarch_call_dummy_location call. Update the comment here.
4427 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4428 (i386_dicos_init_abi): Remove its installment.
4429 * i386-tdep.c (i386_push_dummy_code): New function.
4430 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4431 i386_push_dummy_code.
4432
4433 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4434
4435 Remove stale dummy frames.
4436 * breakpoint.c: Include dummy-frame.h.
4437 (longjmp_breakpoint_ops): New variable.
4438 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4439 bp_longjmp_call_dummy.
4440 (bpstat_what, bptype_string, print_one_breakpoint_location)
4441 (init_bp_location): Support bp_longjmp_call_dummy.
4442 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4443 (set_longjmp_breakpoint_for_call_dummy)
4444 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4445 functions.
4446 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4447 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4448 FIXME comment and extend the other comment for bp_call_dummy.
4449 (set_longjmp_breakpoint_for_call_dummy)
4450 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4451 * dummy-frame.c: Include gdbthread.h.
4452 (pop_dummy_frame_bpt): New function.
4453 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4454 (dummy_frame_discard): New function.
4455 (cleanup_dummy_frames): Update the comment about longjmps.
4456 * dummy-frame.h (dummy_frame_discard): New declaration.
4457 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4458 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4459 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4460 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4461 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4462 keep_going if IS_LONGJMP and there is no other reason to stop.
4463
4464 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4465
4466 * remote-sim.c (sim_command_completer): Initialize
4467 variable 'result'.
4468
4469 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4470
4471 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4472 * dwarf2loc.c (call_site_parameter_matches): Support
4473 CALL_SITE_PARAMETER_PARAM_OFFSET.
4474 (needs_dwarf_reg_entry_value): Push stub value.
4475 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4476 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4477 * gdbtypes.h (enum call_site_parameter_kind): New item
4478 CALL_SITE_PARAMETER_PARAM_OFFSET.
4479 (struct call_site.parameter.u): New field param_offset.
4480
4481 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4482
4483 Code cleanup: Generalize call_site.parameter key.
4484 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4485 variable dwarf_reg. New variable kind_u. Update parameters to
4486 push_dwarf_reg_entry_value.
4487 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4488 * dwarf2expr.h (enum call_site_parameter_kind)
4489 (union call_site_parameter_u): Forward declarations.
4490 (struct dwarf_expr_context_funcs): Update parameters and their
4491 description for push_dwarf_reg_entry_value.
4492 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4493 * dwarf2loc.c (call_site_parameter_matches): New function.
4494 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4495 description. Use call_site_parameter_matches.
4496 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4497 Update parameters and their description.
4498 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4499 New variable kind_u. Adjust the caller for updated parameters.
4500 (needs_dwarf_reg_entry_value): Update parameters.
4501 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4502 instead of attr. Update for the changed fields of struct
4503 call_site_parameter.
4504 * gdbtypes.h: Include dwarf2expr.h.
4505 (enum call_site_parameter_kind): New.
4506 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4507 fb_offset into new union u.
4508
4509 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4510
4511 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4512 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4513 for x32.
4514
4515 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4516
4517 * amd64-linux-nat.c (compat_x32_clock_t): New.
4518 (compat_x32_siginfo_t): Likewise.
4519 (compat_x32_siginfo_from_siginfo): Likewise.
4520 (siginfo_from_compat_x32_siginfo): Likewise.
4521 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4522 and siginfo_from_compat_x32_siginfo for x32.
4523
4524 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4525
4526 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4527
4528 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4529
4530 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4531 instead of gdbarch_ptr_bit.
4532 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4533 (amd64_supply_native_gregset): Likewise.
4534 (amd64_collect_native_gregset): Likewise.
4535 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4536 (amd64_supply_xsave): Likewise.
4537 (amd64_collect_fxsave): Likewise.
4538 (amd64_collect_xsave): Likewise.
4539
4540 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4541
4542 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4543 (amd64_linux_read_description): Check DS segment register for
4544 x32 process.
4545
4546 2012-06-15 Tom Tromey <tromey@redhat.com>
4547
4548 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4549 init_cutu_and_read_dies.
4550
4551 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4552
4553 * MAINTAINERS (Write After Approval): Add myself to the list.
4554
4555 2012-06-15 Tom Tromey <tromey@redhat.com>
4556
4557 * valops.c (value_find_oload_method_list): Now static.
4558 * value.h (value_find_oload_method_list): Don't declare.
4559
4560 2012-06-15 Tom Tromey <tromey@redhat.com>
4561
4562 * valops.c (find_overload_match): Use value_ind.
4563
4564 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4565
4566 * infrun.c (handle_inferior_event): Correct indentation.
4567
4568 2012-06-14 Doug Evans <dje@google.com>
4569
4570 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4571 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4572 All uses updated.
4573 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4574 updated. Handle DEBUG_LOC_START_LENGTH.
4575 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4576 (loclist_describe_location): Ditto.
4577
4578 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4579
4580 PR backtrace/13866
4581 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4582 after hiding inline functions.
4583
4584 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4585
4586 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4587 _initialize_inf_ttrace.
4588
4589 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4590
4591 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4592 _initialize_hppa_hpux_nat.
4593
4594 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4595
4596 * remote-sim.c (sim_command_completer): Change type of return
4597 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4598
4599 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4600 Jan Kratochvil <jan.kratochvil@redhat.com>
4601
4602 PR tdep/14222
4603 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4604 stack on a 16-byte boundary.
4605
4606 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4607
4608 * jit.c (finalize_symtab): Set function's return type to 'void' by
4609 default.
4610
4611 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4612 H.J. Lu <hongjiu.lu@intel.com>
4613
4614 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4615 Move bits common to both the classic LP64 and the new x32 ILP32
4616 ABI here.
4617 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4618 (amd64_x32_linux_init_abi): New function.
4619 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4620 subtype.
4621
4622 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4623 * i386-tdep.c (i386_pseudo_register_name): Make public.
4624 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4625 * amd64-tdep.c (amd64_dword_names): Add "eip".
4626 (amd64_x32_pseudo_register_type): New function
4627 (amd64_x32_init_abi): New function.
4628
4629 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 PR build/14003
4632 * inferior.h (struct inferior_suspend_state): Comment out.
4633 (struct inferior): Comment out the field suspend.
4634 * infrun.c (struct infcall_suspend_state): Comment out the field
4635 inferior_suspend.
4636 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4637 out its assignment.
4638
4639 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4642 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4643 function comment. Return ERROR for unresolved cases. Implement
4644 returning proper NAME.
4645 (yylex): Accept also NAME from classify_inner_name.
4646 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4647 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4648 LOC_TYPEDEF type.
4649 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4650
4651 2012-06-13 Tom Tromey <tromey@redhat.com>
4652
4653 * breakpoint.c (condition_completer): New function.
4654 (_initialize_breakpoint): Use it.
4655 * value.c (complete_internalvar): New function.
4656 * value.h (complete_internalvar): Declare.
4657
4658 2012-06-13 Tom Tromey <tromey@redhat.com>
4659
4660 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4661 * breakpoint.c (catch_syscall_completer): Return a VEC.
4662 * cli/cli-cmds.c (complete_command): Update.
4663 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4664 (complete_on_enum): Likewise.
4665 * command.h: Include gdb_vecs.h.
4666 (completer_ftype): Change return type.
4667 (complete_on_cmdlist, complete_on_enum): Likewise.
4668 * completer.c (noop_completer, filename_completer)
4669 (location_completer): Return a VEC.
4670 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4671 to a VEC.
4672 (expression_completer, complete_line_internal, complete_line)
4673 (command_completer): Return a VEC.
4674 (gdb_completion_word_break_characters, line_completion_function):
4675 Update.
4676 * completer.h: Include gdb_vecs.h.
4677 (complete_line, noop_completer, filename_completer)
4678 (expression_completer, location_completer, command_completer):
4679 Update.
4680 * f-lang.c (f_word_break_characters): Return a VEC.
4681 * interps.c (interpreter_completer): Return a VEC.
4682 * language.h (struct language_defn)
4683 <la_make_symbol_completion_list>: Return a VEC.
4684 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4685 * symtab.c (free_completion_list): Take a VEC.
4686 (return_val_size, return_val_index): Remove.
4687 (return_val): Now a VEC.
4688 (completion_list_add_name): Update.
4689 (default_make_symbol_completion_list_break_on)
4690 (default_make_symbol_completion_list, make_symbol_completion_list)
4691 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4692 Return a VEC.
4693 (add_filename_to_list): Update.
4694 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4695 <list>: Now a VEC.
4696 (maybe_add_partial_symtab_filename): Update.
4697 (make_source_files_completion_list): Return a VEC.
4698 * symtab.h (default_make_symbol_completion_list_break_on)
4699 (default_make_symbol_completion_list, make_symbol_completion_list)
4700 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4701 (make_source_files_completion_list): Update.
4702
4703 2012-06-13 Tom Tromey <tromey@redhat.com>
4704
4705 * breakpoint.c (add_catch_command): Use completer_ftype.
4706 * breakpoint.h: Include command.h.
4707 (add_catch_command): Use completer_ftype.
4708 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4709 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4710 Use completer_ftype.
4711 * command.h (completer_ftype): New typedef.
4712 (set_cmd_completer): Use it.
4713 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4714 completer_ftype.
4715
4716 2012-06-13 Pedro Alves <palves@redhat.com>
4717
4718 Partial revert of previous change.
4719
4720 * serial.c (scb_base): New global.
4721 (serial_for_fd): New.
4722 (serial_open, serial_fdopen_ops): Link new serial in open serials
4723 chain.
4724 (do_serial_close): Unlink serial from the open serials chain.
4725
4726 2012-06-12 Pedro Alves <palves@redhat.com>
4727
4728 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4729 threads here.
4730 (prepare_for_detach): No longer context switch here in non-stop
4731 mode.
4732 (fetch_inferior_event): Ditto.
4733 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4734 to the event thread before removing breakpoints. Switch to the
4735 event thread before inserting breakpoints and resuming.
4736 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4737 event thread before resuming.
4738 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4739 Switch to the event thread before removing breakpoints.
4740
4741 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4742
4743 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4744 special characters correctly for the Windows shells. See
4745 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4746 report.
4747 [!__MINGW32__]: Remove extra double quote character from special
4748 characters.
4749
4750 2012-06-11 Stan Shebs <stan@codesourcery.com>
4751
4752 * ui-out.h: Remove #if 0 declarations.
4753 * ui-out.c: Remove #if 0 functions.
4754
4755 2012-06-11 Pedro Alves <palves@redhat.com>
4756
4757 * ser-base.c (run_async_handler_and_reschedule): New.
4758 (fd_event, push_event): Use it.
4759 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4760 reference count to 1.
4761 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4762 instead of xfree.
4763 (serial_is_open, serial_ref, serial_unref): New.
4764 * serial.h (serial_open): Adjust comment.
4765 (serial_is_open): Declare.
4766 (serial_close): Adjust comment.
4767 (serial_ref, serial_unref) Declare.
4768 (struct serial): New field 'refcnt'.
4769
4770 2012-06-11 Pedro Alves <palves@redhat.com>
4771
4772 Remove #if 0'd "connect" command, and unnecessary associated
4773 refcounting and serial reuse bits.
4774
4775 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4776 * serial.c (last_serial_opened): Delete.
4777 (scb_base): Delete.
4778 (serial_open): Adjust.
4779 (serial_for_fd): Delete.
4780 (serial_fdopen_ops, do_serial_close): Adjust.
4781 (serial_fdopen_ops): Adjust.
4782
4783 2012-06-11 Pedro Alves <palves@redhat.com>
4784
4785 * serial.c (do_serial_close): Remove early return when SCB is
4786 null.
4787
4788 2012-06-11 Tom Tromey <tromey@redhat.com>
4789
4790 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4791
4792 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4793
4794 Fix regression by the "ambiguous linespec" series.
4795 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4796 get_last_displayed_symtab and get_last_displayed_line and depending
4797 on CURSAL.
4798
4799 2012-06-11 Tom Tromey <tromey@redhat.com>
4800
4801 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4802 (dw2_find_symbol_file): Use it.
4803
4804 2012-06-11 Michael Eager <eager@eagercon.com>
4805
4806 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4807 * mips-linux-tdep.h (mips_signals): New
4808
4809 2012-06-11 Tom Tromey <tromey@redhat.com>
4810
4811 * infrun.c (handle_inferior_event)
4812 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4813 breakpoint.
4814 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4815 exception logic in all cases. Update comments.
4816 (insert_longjmp_resume_breakpoint): Set the exception resume
4817 breakpoint.
4818
4819 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4820
4821 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4822
4823 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4824
4825 * valarith.c (binop_types_user_defined_p): Fix a typo.
4826
4827 2012-06-08 Yao Qi <yao@codesourcery.com>
4828 Chung-Lin Tang <cltang@codesourcery.com>
4829
4830 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4831 * arch-utils.h: Declare.
4832 * gdbarch.sh: Add return_in_first_hidden_param_p.
4833 * gdbarch.c, gdbarch.h: Regenerated.
4834 * infcall.c (call_function_by_hand): Call
4835 gdbarch_return_in_first_hidden_param_p instead of
4836 language_pass_by_reference.
4837
4838 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4839 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4840 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4841 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4842 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4843 `cplus_return_struct_by_reference'.
4844 (tic6x_return_value): Handle language cplusplus.
4845 (tic6x_return_in_first_hidden_param_p): New.
4846 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4847
4848 2012-06-07 Doug Evans <dje@google.com>
4849
4850 * dwarf2read.c (dwarf2_cu): Add comment.
4851
4852 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4853
4854 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4855 variable.
4856 (mips_eabi_push_dummy_call): Likewise.
4857 (mips_n32n64_push_dummy_call): Likewise.
4858 (mips_o32_push_dummy_call): Likewise.
4859 (mips_o64_push_dummy_call): Likewise.
4860
4861 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4862
4863 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4864
4865 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4866
4867 * mips-tdep.c (mips_pseudo_register_type): Use
4868 mips_float_register_p.
4869
4870 2012-06-06 Pedro Alves <palves@redhat.com>
4871
4872 * infrun.c (handle_inferior_event): Remove calls to
4873 reinit_frame_cache that follow a context_switch call.
4874
4875 2012-06-06 Pedro Alves <palves@redhat.com>
4876
4877 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4878 context_switch and remove stale comment.
4879
4880 2012-06-06 Pedro Alves <palves@redhat.com>
4881
4882 * infrun.c (struct execution_control_state): Remove
4883 `new_thread_event' field.
4884 (handle_inferior_event): Simplify new threads handling; don't
4885 resume the inferior if we find a new thread.
4886
4887 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4888
4889 * NEWS: Document the deprecation of SH's 'regs' command.
4890 * inferior.h (all_registers_info): Add function declaration.
4891 * sh-tdep.c (sh_show_regs): Remove variable.
4892 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4893 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4894 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4895 (sh_show_regs_command): Remove functions.
4896 (sh_gdbarch_init): Don't set sh_show_regs.
4897 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4898 'info all-registers'.
4899 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4900 (sh64_show_regs): Remove functions.
4901 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4902
4903 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 * configure.ac: Move development=true below AC_INIT.
4906 * configure: Regenerate.
4907
4908 2012-06-05 Stan Shebs <stan@codesourcery.com>
4909
4910 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4911 gdb_stdout.
4912
4913 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4914
4915 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4916 argument as ssize_t.
4917 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4918 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4919 * target.c (target_read_stack, target_write_memory)
4920 (target_write_raw_memory): Likewise.
4921 * target.h (target_read_stack, target_write_memory)
4922 (target_write_raw_memory): Likewise.
4923
4924 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4925
4926 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4927 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4928 * target.c (target_read_memory): Change LEN to ssize_t.
4929 * target.h (target_read_memory): Change LEN to ssize_t.
4930
4931 2012-06-05 Pedro Alves <palves@redhat.com>
4932
4933 PR backtrace/13866
4934
4935 * breakpoint.c (until_break_command): Only fetch the selected
4936 frame after decode_line_1.
4937
4938 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4939
4940 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4941 event breakpoint at _start, __start or main if a program
4942 interpreter is not found.
4943
4944 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4945
4946 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4947 Add declaration.
4948 * windows-tdep.c: #include "objfiles.h".
4949 (windows_iterate_over_objfiles_in_search_order): New function.
4950 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4951 iterate_over_objfiles_in_search_order gdbarch method to
4952 windows_iterate_over_objfiles_in_search_order.
4953 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4954
4955 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4956
4957 * gdbarch.sh: Add generation of
4958 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4959 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4960 (iterate_over_objfiles_in_search_order): New gdbarch method.
4961 * gdbarch.h, gdbarch.c: Regenerate.
4962 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4963 Add declaration.
4964 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4965 New function.
4966 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4967 out of lookup_symbol_aux_symtabs.
4968 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4969 call to lookup_symbol_aux_objfile.
4970 (struct global_sym_lookup_data): New type.
4971 (lookup_symbol_global_iterator_cb): New function.
4972 (lookup_symbol_global): Search for symbol using
4973 gdbarch_iterate_over_objfiles_in_search_order and
4974 lookup_symbol_global_iterator_cb.
4975 * findvar.c (struct minsym_lookup_data): New type.
4976 (minsym_lookup_iterator_cb): New function.
4977 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4978 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4979 and minsym_lookup_iterator_cb.
4980
4981 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4982
4983 Revert the following patch:
4984 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4985 try locating the symbol in the symbol's own objfile first, before
4986 extending the search to all objfiles.
4987 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4988 out of lookup_symbol_aux_symtabs.
4989 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4990 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4991 Do not search EXCLUDE_OBJFILE.
4992 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4993 (lookup_symbol_global): Search for matches in the block's objfile
4994 first, before searching all other objfiles.
4995
4996 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4997
4998 * breakpoint.c (find_condition_and_thread): Stop parsing
4999 as soon as the first invalid keyword is found.
5000
5001 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5002
5003 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5004
5005 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5006
5007 * config/djgpp/djcheck.sh: Add copyright header.
5008
5009 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5010
5011 * copyright.py (update_files, main): Fix path to update-copyright
5012 script.
5013
5014 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5015
5016 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5017 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5018 for which a reminder to update by hand is printed.
5019
5020 2012-06-04 Doug Evans <dje@google.com>
5021
5022 * buildsym.c (make_blockvector): Add comment.
5023
5024 2012-06-04 Pedro Alves <palves@redhat.com>
5025
5026 * arch-utils.c (default_gdb_signal_from_target): Delete.
5027 * arch-utils.h (default_gdb_signal_from_target): Delete.
5028 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5029 gdbarch_gdb_signal_from_target_p.
5030 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5031 predicate).
5032 * gdbarch.h: Regenerate.
5033 * gdbarch.c: Regenerate.
5034
5035 2012-06-04 Pedro Alves <palves@redhat.com>
5036
5037 * gdbarch.sh (gdb_signal_from_target): Mention that the
5038 implementation of the method must be host independent.
5039 * gdbarch.h: Regenerate.
5040
5041 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5042
5043 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5044 parameters.
5045 (target_read_memory_bfd): New function.
5046 (symbol_file_add_from_memory): Use it.
5047
5048 2012-06-03 Doug Evans <dje@google.com>
5049
5050 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5051 of primary symtab.
5052 (basic_lookup_transparent_type): Ditto.
5053
5054 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5055 (ALL_PRIMARY_SYMTABS): Use it.
5056 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5057 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5058 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5059 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5060 (basic_lookup_transparent_type): Ditto.
5061
5062 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5063
5064 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5065 it to optimize resolution of demangled name.
5066
5067 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5068
5069 * configure.ac (development): Define new variable.
5070 Call AC_CHECK_LIB for mcheck if $development.
5071 (ERROR_ON_WARNING): Enable it by default only if $development.
5072 * config.in: Regenerate.
5073 * configure: Regenerate.
5074
5075 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5076
5077 * target.c (target_read_memory): Make LEN argument as size_t.
5078 * target.h (target_read_memory): Likewise.
5079
5080 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5081
5082 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5083
5084 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5085
5086 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5087 BookE interface for PowerPC server processors if not available
5088 in the Linux Kernel.
5089
5090 2012-05-31 Keith Seitz <keiths@redhat.com>
5091
5092 * linespec.c (decode_objc): Add cleanup to free
5093 INFO.FILE_SYMTABS.
5094 (find_linespec_symbols): Add cleanup to free CLASSES.
5095 * symfile.c (find_separate_debug_file_by_debuglink): Add
5096 cleanup to free DEBUGLINK.
5097 * ui-out.c (clear_header_list): No need to check if
5098 HEADER_NEXT.COLHDR is NULL.
5099 Free HEADER_NEXT.COL_NAME.
5100
5101 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5102
5103 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5104 warning.
5105
5106 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5107
5108 * configure.host (gdb_host_cpu): Handle tilegx*.
5109 (gdb_host): Handle tilegx-*-linux*.
5110 * tilegx-linux-nat.c: New file.
5111 * config/tilegx/linux.mh: New file.
5112
5113 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5114
5115 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5116 tilegx-linux-tdep.o.
5117 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5118 tilegx-linux-tdep.c.
5119 * configure.tgt: Handle tilegx-*-linux*.
5120 * tilegx-tdep.h: New file.
5121 * tilegx-tdep.c: New file.
5122 * tilegx-linux-tdep.c: New file.
5123 * regformats/reg-tilegx.dat: New file.
5124
5125 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5126
5127 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5128 accounting of hw watchpoints on ppc.
5129
5130 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5131
5132 * source.c (openp): Expand tilde in path entries.
5133
5134 2012-05-29 Doug Evans <dje@google.com>
5135
5136 * buildsym.c (block_compar): Fix comment.
5137 (end_symtab): Fix and clarify some comments.
5138
5139 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5140 cleanup_undefined_types.
5141 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5142 All callers updated.
5143
5144 2012-05-29 Tom Tromey <tromey@redhat.com>
5145
5146 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5147 fails.
5148 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5149 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5150 fails.
5151 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5152 fails.
5153
5154 2012-05-29 Tristan Gingold <gingold@adacore.com>
5155
5156 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5157 (struct darwin_info): ... New struct.
5158 (solib_darwin_pspace_data): New variable.
5159 (darwin_pspace_data_cleanup): New function.
5160 (get_darwin_info): Likewise.
5161 (darwin_dyld_version_ok, darwin_load_image_infos)
5162 (darwin_solib_get_all_image_info_addr_at_init)
5163 (darwin_solib_read_all_image_info_addr): Add info argument.
5164 Adjust code.
5165 (darwin_current_sos): Use per pspace structure.
5166 (darwin_solib_create_inferior_hook): Likewise.
5167 (darwin_clear_solib): Likewise.
5168 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5169
5170 2012-05-28 Pedro Alves <palves@redhat.com>
5171
5172 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5173 block that uses them. Clear ecss before handling each event.
5174
5175 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5176
5177 * solib-svr4.c (svr4_current_sos): New comment on
5178 svr4_current_sos_via_xfer_libraries fall back.
5179
5180 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5181
5182 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5183 it as a fallback for TYPE_IS_OPAQUE.
5184 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5185 symbols for lookup_symbol.
5186
5187 2012-05-24 John Steele Scott <toojays@toojays.net>
5188
5189 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5190 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5191 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5192 (check_producer): ... this new function, which also checks for ICC
5193 and caches the result.
5194 (producer_is_icc): New function.
5195 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5196 producer was ICC.
5197
5198 2012-05-24 Pedro Alves <palves@redhat.com>
5199
5200 PR gdb/7205
5201
5202 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5203 (default_gdb_signal_to_target): ... this. Add comment.
5204 (default_gdb_signal_from_host): Rename to ...
5205 (default_gdb_signal_from_target): ... this. Add comment.
5206 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5207 (default_gdb_signal_to_target): ... this.
5208 (default_gdb_signal_from_host): Rename to ...
5209 (default_gdb_signal_from_target): ... this.
5210 * corelow.c (core_open): Adjust to naming change. Replace comment.
5211 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5212 (gdb_signal_from_target): ... this. Adjust to
5213 default_gdb_signal_from_host naming change. Extend comment.
5214 (gdb_signal_to_host): Rename to ...
5215 (gdb_signal_to_target): ... this. Adjust to
5216 default_gdb_signal_to_host naming change.
5217 * gdbarch.h, gdbarch.c: Renegerate.
5218
5219 2012-05-24 Pedro Alves <palves@redhat.com>
5220
5221 PR gdb/7205
5222
5223 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5224
5225 2012-05-24 Pedro Alves <palves@redhat.com>
5226
5227 PR gdb/7205
5228
5229 Replace target_signal with gdb_signal throughout.
5230
5231 2012-05-24 Pedro Alves <palves@redhat.com>
5232
5233 PR tui/14159
5234
5235 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5236 string, instead of reusing the va_list argument.
5237
5238 2012-05-24 Tom Tromey <tromey@redhat.com>
5239
5240 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5241 Remove.
5242
5243 2012-05-23 Doug Evans <dje@google.com>
5244
5245 * symtab.c (search_symbols): Formatting fixes.
5246 (print_symbol_info): Formatting fixes.
5247
5248 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5249 int64_t change to leb128 API.
5250 (read_encoded_value, decode_frame_entry_1): Ditto.
5251 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5252 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5253 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5254 (execute_stack_op): Ditto.
5255 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5256 (safe_read_uleb128, safe_read_sleb128): Ditto.
5257 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5258 (dwarf2_compile_expr_to_ax): Ditto.
5259 (locexpr_describe_location_piece): Ditto.
5260 (disassemble_dwarf_expression): Ditto.
5261 (locexpr_describe_location_1): Ditto.
5262
5263 2012-05-23 Stan Shebs <stan@codesourcery.com>
5264 Kwok Cheung Yeung <kcy@codesourcery.com>
5265
5266 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5267 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5268 (mi-cmd-info.o): New rule.
5269 * osdata.h (info_osdata_command): New declaration.
5270 * osdata.c (info_osdata_command): Change to non-static.
5271 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5272 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5273 * mi/mi-cmd-info.c: New file.
5274
5275 2012-05-23 Doug Evans <dje@google.com>
5276
5277 * symtab.c (search_symbols): Pass NULL for file_matcher to
5278 expand_symtabs_matching if there are no files to match.
5279
5280 * gdbtypes.c (lookup_typename): Simplify.
5281
5282 2012-05-23 Pedro Alves <palves@redhat.com>
5283
5284 * arch-utils.h (default_target_signal_to_host): Delete.
5285 * arch-utils.c (default_target_signal_to_host): Delete.
5286 * gdbarch.sh (target_signal_to_host): Remove.
5287 * gdbarch.h, gdbarch.c: Regenerate.
5288
5289 2012-05-22 Doug Evans <dje@google.com>
5290
5291 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5292 "const gdb_byte *".
5293 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5294 (execute_cfa_program): Update to match API of leb128 functions.
5295 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5296 "const gdb_byte *".
5297 (read_unsigned_leb128, read_signed_leb128): Delete.
5298 (read_initial_length): Change type of buf argument to
5299 "const gdb_byte *".
5300 (read_encoded_value): Update to match API of leb128 functions.
5301 (decode_frame_entry): Change result to "const gdb_byte *", and
5302 similarly for "start" parameter.
5303 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5304 (dwarf2_build_frame_info): Change local frame_ptr to
5305 "const gdb_byte *".
5306 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5307 read_uleb128, read_sleb128. All callers updated.
5308 (safe_skip_leb128): New function.
5309 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5310 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5311 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5312 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5313 read_uleb128, read_sleb128.
5314 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5315 (execute_stack_op): Update to match API of leb128 functions.
5316 * dwarf2expr.h: #include "leb128.h".
5317 (read_uleb128, read_sleb128): Delete.
5318 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5319 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5320 * dwarf2loc.c (debug_loc_kind): New enum.
5321 (decode_debug_loc_addresses): New function.
5322 (decode_debug_loc_dwo_addresses): New function.
5323 (dwarf2_find_location_expression): Rewrite.
5324 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5325 (locexpr_describe_location_piece): Ditto.
5326 (disassemble_dwarf_expression): Ditto.
5327 (locexpr_describe_location_1): Ditto.
5328 (loclist_describe_location): Rewrite.
5329 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5330 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5331 (dwarf2_section_buffer_overflow_complaint): Renamed from
5332 dwarf2_macros_too_long_complaint. All callers updated.
5333 (skip_leb128): Delete.
5334 (init_cu_die_reader): Initialize reader->buffer_end.
5335 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5336 (skip_form_bytes): New arg buffer_end. All callers updated.
5337 Replace call to skip_leb128 with gdb_skip_leb128.
5338 (skip_unknown_opcode): New arg mac_end. All callers updated.
5339 (fill_in_loclist_baton): Initialize baton->from_dwo.
5340
5341 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5342
5343 * mips-linux-nat.c (mips_linux_read_description): Use a more
5344 verbose error message.
5345
5346 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5347
5348 * NEWS: Add MIPS/Linux DSP support.
5349 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5350 (SIGCONTEXT_DSPCTL): New macro.
5351 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5352 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5353 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5354 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5355 (N64_SIGCONTEXT_HI3): Likewise.
5356 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5357 (N64_SIGCONTEXT_LO3): Likewise.
5358 (N64_SIGCONTEXT_DSPCTL): Likewise.
5359 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5360 (mips_linux_o32_sigframe_init): Handle DSP registers.
5361 (mips_linux_n32n64_sigframe_init): Likewise.
5362
5363 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5364
5365 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5366 call to abort.
5367
5368 2012-05-22 Pedro Alves <palves@redhat.com>
5369
5370 * target.h (store_waitstatus): Move declaration ...
5371 * inf-child.h (store_waitstatus): ... here.
5372 * target.c: Move inclusion of gdb_wait.h, and ...
5373 (store_waitstatus): ... this ...
5374 * inf-child.c: ... here.
5375 * linux-nat.c: Include inf-child.h.
5376 * rs6000-nat.c: Include inf-child.h.
5377 * spu-linux-nat.c: Include inf-child.h.
5378
5379 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5380
5381 * tracepoint.c (start_tracing): Add missing i18n markup.
5382 (stop_tracing, set_trace_user): Ditto.
5383 (set_trace_notes, set_trace_stop_notes): Ditto.
5384
5385 2012-05-21 Tom Tromey <tromey@redhat.com>
5386
5387 PR c++/7173:
5388 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5389 types.
5390 * value.h (value_cast_pointers): Update.
5391 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5392 (value_cast): Update.
5393 (update_search_result): New function.
5394 (do_search_struct_field): New, from search_struct_field. Check
5395 for ambiguous results.
5396 (search_struct_field): Rewrite.
5397 * infcall.c (value_arg_coerce): Update.
5398 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5399 value_cast_pointers.
5400 * ada-lang.c (ada_convert_actual): Update.
5401
5402 2012-05-21 Tom Tromey <tromey@redhat.com>
5403
5404 * macroexp.c (macro_stringify): Terminate the string.
5405
5406 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5407
5408 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5409 Describe it.
5410 * auto-load.c (auto_load_expand_dir_vars): New function.
5411 (auto_load_safe_path_vec_update): Use it, remove the
5412 substitute_path_component call thanks to it.
5413 (auto_load_objfile_script): Remove the debug_file_directory processing.
5414 Use auto_load_expand_dir_vars, remove the substitute_path_component
5415 call thanks to it.
5416 * configure: Regenerate.
5417 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5418 path. Escape $ also for $debugdir.
5419 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5420 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5421
5422 2012-05-20 Doug Evans <dje@google.com>
5423
5424 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5425 before use. Check for symtab->includes == NULL before scanning it.
5426
5427 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5428
5429 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5430
5431 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5432
5433 * NEWS: Add microMIPS support and "set mips compression",
5434 "show mips compression" commands.
5435 * mips-tdep.h (mips_isa): New enum.
5436 (gdbarch_tdep): Add mips_isa.
5437 (mips_pc_is_mips16): Update prototype.
5438 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5439 * mips-tdep.c (mips_compression_mips16): New variable.
5440 (mips_compression_micromips): Likewise.
5441 (mips_compression_strings): Likewise.
5442 (mips_compression_string): Likewise.
5443 (is_mips16_isa, is_micromips_isa): New functions.
5444 (is_mips16_addr): Rename to...
5445 (is_compact_addr): ... this.
5446 (unmake_mips16_addr): Likewise to...
5447 (unmake_compact_addr): ... this.
5448 (make_mips16_addr): Likewise to...
5449 (make_compact_addr): ... this.
5450 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5451 functions.
5452 (mips_elf_make_msymbol_special): Handle microMIPS code.
5453 (msymbol_is_special): Rename to...
5454 (msymbol_is_mips16): ... this.
5455 (mips_make_symbol_special, mips_pc_is_mips16): Update
5456 accordingly.
5457 (msymbol_is_mips, msymbol_is_micromips): New functions.
5458 (mips16_to_32_reg): Rename to...
5459 (mips_reg3_to_reg): ... this.
5460 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5461 (mips_pc_isa): Likewise.
5462 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5463 code.
5464 (mips_fetch_instruction): Pass return status instead of printing
5465 an error message if requested. Handle microMIPS code. Bail out
5466 on an invalid ISA.
5467 (micromips_op): New macro.
5468 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5469 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5470 (b6s4_op, b7s3_reg): Likewise.
5471 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5472 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5473 (mips_insn_size): New function.
5474 (mips32_next_pc): Update mips_fetch_instruction call.
5475 (micromips_relative_offset7): New function.
5476 (micromips_relative_offset10): Likewise.
5477 (micromips_relative_offset16): Likewise.
5478 (micromips_pc_insn_size): Likewise.
5479 (micromips_bc1_pc): Likewise.
5480 (micromips_next_pc): Likewise.
5481 (unpack_mips16): Update mips_fetch_instruction call.
5482 (extended_mips16_next_pc): Update according to change to
5483 mips16_to_32_reg.
5484 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5485 code.
5486 (mips16_scan_prologue): Update mips_fetch_instruction call.
5487 Update according to change to mips16_to_32_reg.
5488 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5489 (mips_insn16_frame_base_sniffer): Likewise.
5490 (micromips_decode_imm9): New function.
5491 (micromips_scan_prologue): Likewise.
5492 (mips_micro_frame_cache): Likewise.
5493 (mips_micro_frame_this_id): Likewise.
5494 (mips_micro_frame_prev_register): Likewise.
5495 (mips_micro_frame_sniffer): Likewise.
5496 (mips_micro_frame_unwind): New variable.
5497 (mips_micro_frame_base_address): New function.
5498 (mips_micro_frame_base): New variable.
5499 (mips_micro_frame_base_sniffer): New function.
5500 (mips32_scan_prologue): Update mips_fetch_instruction call.
5501 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5502 rather than for MIPS16.
5503 (mips_insn32_frame_base_sniffer): Likewise.
5504 (mips_addr_bits_remove): Handle microMIPS code.
5505 (deal_with_atomic_sequence): Rename to...
5506 (mips_deal_with_atomic_sequence): ... this. Update the type
5507 of the variable used to hold an instruction. Remove the ISA bit
5508 check. Update mips_fetch_instruction call.
5509 (micromips_deal_with_atomic_sequence): New function.
5510 (deal_with_atomic_sequence): Likewise.
5511 (mips_about_to_return): Handle microMIPS code. Update
5512 mips_fetch_instruction call.
5513 (heuristic_proc_start): Check for the standard MIPS ISA rather
5514 than for MIPS16. Update mips_pc_is_mips16 and
5515 mips_fetch_instruction calls. Handle microMIPS code.
5516 (mips_push_dummy_code): Handle microMIPS code.
5517 (mips_eabi_push_dummy_call): Likewise.
5518 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5519 (mips_o64_push_dummy_call): Handle microMIPS code.
5520 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5521 (is_delayed): Remove function.
5522 (mips_single_step_through_delay): Replace the call to is_delayed
5523 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5524 Handle microMIPS code.
5525 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5526 microMIPS code.
5527 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5528 call.
5529 (micromips_in_function_epilogue_p): New function.
5530 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5531 call.
5532 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5533 Handle microMIPS.
5534 (gdb_print_insn_mips): Likewise.
5535 (mips_breakpoint_from_pc): Likewise.
5536 (mips_remote_breakpoint_from_pc): New function.
5537 (mips32_instruction_has_delay_slot): Simplify making use of the
5538 updated mips_fetch_instruction interface.
5539 (micromips_instruction_has_delay_slot): New function.
5540 (mips16_instruction_has_delay_slot): Simplify making use of the
5541 updated mips_fetch_instruction interface.
5542 (mips_adjust_breakpoint_address): Check for the standard MIPS
5543 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5544 calls. Handle microMIPS code.
5545 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5546 (mips_skip_trampoline_code): Handle microMIPS code.
5547 (global_mips_compression): New function.
5548 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5549 file flags. Register the microMIPS remote breakpoint handler
5550 and heuristic frame unwinder.
5551 (show_mips_compression): New function.
5552 (_initialize_mips_tdep): Add the "set mips compression" and
5553 "show mips compression" commands.
5554
5555 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5556
5557 * ada-lang.c:
5558 * ada-tasks.c:
5559 * ada-varobj.c:
5560 * amd64-darwin-tdep.c:
5561 * arm-symbian-tdep.c:
5562 * arm-tdep.c:
5563 * avr-tdep.c:
5564 * ax-gdb.c:
5565 * bfin-linux-tdep.c:
5566 * breakpoint.c:
5567 * c-valprint.c:
5568 * cli/cli-cmds.c:
5569 * coffread.c:
5570 * cp-support.c:
5571 * cris-tdep.c:
5572 * dwarf2-frame-tailcall.c:
5573 * dwarf2-frame.c:
5574 * dwarf2expr.c:
5575 * dwarf2loc.c:
5576 * dwarf2read.c:
5577 * elfread.c:
5578 * eval.c:
5579 * expprint.c:
5580 * f-valprint.c:
5581 * frv-tdep.c:
5582 * h8300-tdep.c:
5583 * hppa-hpux-tdep.c:
5584 * hppa-tdep.c:
5585 * hppanbsd-tdep.c:
5586 * i386-nto-tdep.c:
5587 * i386-tdep.c:
5588 * i387-tdep.c:
5589 * ia64-tdep.c:
5590 * jit.c:
5591 * linespec.c:
5592 * linux-tdep.c:
5593 * lm32-tdep.c:
5594 * m2-valprint.c:
5595 * m32c-tdep.c:
5596 * m32r-rom.c:
5597 * m32r-tdep.c:
5598 * m68k-tdep.c:
5599 * m68klinux-tdep.c:
5600 * mi/mi-main.c:
5601 * microblaze-tdep.c:
5602 * mips-linux-tdep.c:
5603 * mips-tdep.c:
5604 * mn10300-tdep.c:
5605 * p-valprint.c:
5606 * parse.c:
5607 * ppc-linux-tdep.c:
5608 * ppc-sysv-tdep.c:
5609 * printcmd.c:
5610 * python/py-finishbreakpoint.c:
5611 * python/py-inferior.c:
5612 * python/py-infthread.c:
5613 * python/py-type.c:
5614 * python/python.c:
5615 * remote-fileio.c:
5616 * remote-m32r-sdi.c:
5617 * remote-mips.c:
5618 * reverse.c:
5619 * rl78-tdep.c:
5620 * rs6000-aix-tdep.c:
5621 * rs6000-tdep.c:
5622 * s390-tdep.c:
5623 * score-tdep.c:
5624 * sh64-tdep.c:
5625 * skip.c:
5626 * solib-darwin.c:
5627 * solib-dsbt.c:
5628 * solib-frv.c:
5629 * sparc-tdep.c:
5630 * spu-multiarch.c:
5631 * spu-tdep.c:
5632 * stack.c:
5633 * symfile.c:
5634 * symtab.c:
5635 * tic6x-tdep.c:
5636 * tracepoint.c:
5637 * v850-tdep.c:
5638 * valarith.c:
5639 * valprint.c:
5640 * value.c:
5641 * xcoffread.c:
5642 * xtensa-tdep.c:
5643 * ada-lang.c:
5644 * ada-tasks.c:
5645 * ada-varobj.c:
5646 * amd64-darwin-tdep.c:
5647 * arm-symbian-tdep.c:
5648 * arm-tdep.c: Delete unused variables.
5649
5650 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5651
5652 Rename $ddir to $datadir.
5653 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5654 * auto-load.c (auto_load_safe_path_vec_update)
5655 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5656 * configure: Regenerate.
5657 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5658 Likewise. Remove the 'use $ddir' help string.
5659
5660 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5661
5662 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5663 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5664
5665 2012-05-18 Tom Tromey <tromey@redhat.com>
5666
5667 PR exp/13907:
5668 * valprint.h (struct value_print_options) <symbol_print>: New
5669 field.
5670 * valprint.c (user_print_options): Add default for symbol_print.
5671 (show_symbol_print): New function.
5672 (generic_val_print): Respect symbol_print.
5673 (_initialize_valprint): Add "print symbol" setting.
5674 * f-valprint.c (f_val_print): Respect symbol_print.
5675 * c-valprint.c (c_val_print): Respect symbol_print.
5676 * NEWS: Update.
5677 * printcmd.c (print_address_symbolic): Return int. Ignore some
5678 zero-size symbols.
5679 (print_address_demangle): Return int.
5680 * defs.h: (print_address_symbolic): Return int.
5681 * value.h (print_address_demangle): Return int.
5682
5683 2012-05-18 Tom Tromey <tromey@redhat.com>
5684
5685 * valprint.c (val_print_string): Don't print leading space.
5686 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5687 print space before string or vtbl.
5688 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5689 before string.
5690 * jv-valprint.c (java_value_print): Print space before string.
5691 * go-valprint.c (print_go_string): Print space before string.
5692 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5693 space before string.
5694 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5695 space before string or vtbl.
5696 * auxv.c (fprint_target_auxv): Print space after address.
5697
5698 2012-05-18 Tom Tromey <tromey@redhat.com>
5699
5700 * printcmd.c (print_address_demangle): Remove special case for 0.
5701
5702 2012-05-18 Tom Tromey <tromey@redhat.com>
5703
5704 * printcmd.c (print_address_demangle): Add 'opts' argument.
5705 * p-valprint.c (pascal_val_print): Update.
5706 * jv-valprint.c (java_val_print): Update.
5707 * value.h: Update.
5708 * valprint.c (generic_val_print): Update.
5709 (print_function_pointer_address): Add 'options' argument. Remove
5710 'addressprint' argument. Update.
5711 * m2-valprint.c (print_unpacked_pointer): Update.
5712 * gnu-v3-abi.c (print_one_vtable): Update.
5713 (gnuv3_print_method_ptr): Update.
5714 * f-valprint.c (f_val_print): Update.
5715 * cp-valprint.c (cp_print_value_fields): Update.
5716 * valprint.h (print_function_pointer_address): Update.
5717 * c-valprint.c (c_val_print): Update.
5718
5719 2012-05-18 Tom Tromey <tromey@redhat.com>
5720
5721 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5722 directly corresponding to the found psymtab.
5723 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5724 (dw2_find_pc_sect_symtab): Use it.
5725 * block.h (blockvector_contains_pc): Declare.
5726 * block.c (find_block_in_blockvector): New function.
5727 (blockvector_for_pc_sect): Use it.
5728 (blockvector_contains_pc): New function.
5729
5730 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5731
5732 * mips-tdep.h (mips_write_pc): New prototype.
5733 * mips-tdep.c (mips_write_pc): Make external, add description.
5734 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5735 add description.
5736
5737 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5738
5739 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5740 mips_regnum->pc.
5741 (mips_unwind_pc, mips_write_pc): Likewise.
5742 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5743 gdbarch_read_pc.
5744
5745 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5746
5747 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5748 proc_warn, proc_error, proc_get_status, proc_flags,
5749 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5750 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5751 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5752 proc_stop_process, proc_wait_for_stop, proc_run_process,
5753 proc_set_traced_signals, proc_set_traced_faults,
5754 proc_set_traced_sysentry, proc_set_traced_sysexit,
5755 proc_set_held_signals, proc_get_held_signals,
5756 proc_get_traced_signals, proc_get_traced_faults,
5757 proc_get_traced_sysentry, proc_get_traced_sysexit,
5758 proc_clear_current_fault, proc_set_current_signal,
5759 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5760 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5761 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5762 proc_get_current_thread, proc_get_current_thread,
5763 proc_get_current_thread, proc_update_threads,
5764 proc_update_threads, proc_update_threads, proc_update_threads,
5765 proc_iterate_over_threads, procfs_find_new_threads,
5766 procfs_pid_to_str): Make static. Remove advance declaration.
5767 (proc_cursig): Make static. Conditionalized defintion on
5768 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5769 (proc_syscall, proc_set_kill_on_last_close,
5770 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5771 proc_get_pending_signals, proc_get_signal_actions,
5772 proc_trace_signal, proc_ignore_signal): Delete.
5773
5774 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5775
5776 * coffread.c (cs_section_address): Passing proper argument for
5777 `bfd_get_section_vma'.
5778 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5779 `bfd_get_section_flags'.
5780 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5781 `bfd_get_section_vma'.
5782
5783 2012-05-16 Tom Tromey <tromey@redhat.com>
5784
5785 PR macros/13205:
5786 * macrotab.h: (macro_define_special): Declare.
5787 (enum macro_special_kind): New.
5788 (struct macro_definition) <argc, replacement>: Update comments.
5789 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5790 (macro_define_object_internal): New function.
5791 (macro_define_object): Use it.
5792 (macro_define_special): New function.
5793 (fixup_definition): New function.
5794 (macro_lookup_definition, foreach_macro_in_scope)
5795 (foreach_macro): Use fixup_definition.
5796 * macroexp.h (macro_stringify): Declare.
5797 * macroexp.c (free_buffer_return_text): New function.
5798 (stringify): Constify "arg".
5799 (macro_stringify): New function.
5800 * dwarf2read.c (macro_start_file): Call macro_define_special.
5801
5802 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5803 Maciej W. Rozycki <macro@mips.com>
5804
5805 * breakpoint.h (bp_location): Add related_address member.
5806 * inferior.h (get_return_value): Take a pointer to struct value
5807 instead of struct type for the function requested.
5808 * value.h (using_struct_return): Likewise.
5809 * gdbarch.sh (return_value): Take a pointer to struct value
5810 instead of struct type for the function requested.
5811 * breakpoint.c (set_breakpoint_location_function): Initialize
5812 related_address for bp_gnu_ifunc_resolver breakpoints.
5813 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5814 requested function's address to gdbarch_return_value.
5815 * eval.c (evaluate_subexp_standard): Pass the requested
5816 function's address to using_struct_return.
5817 * infcall.c (call_function_by_hand): Pass the requested
5818 function's address to using_struct_return and
5819 gdbarch_return_value.
5820 * infcmd.c (get_return_value): Take a pointer to struct value
5821 instead of struct type for the function requested.
5822 (print_return_value): Update accordingly.
5823 (finish_command_continuation): Likewise.
5824 * stack.c (return_command): Pass the requested function's
5825 address to using_struct_return and gdbarch_return_value.
5826 * value.c (using_struct_return): Take a pointer to struct value
5827 instead of struct type for the function requested. Pass the
5828 requested function's address to gdbarch_return_value.
5829 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5830 New function_value member, replacing function_type.
5831 (bpfinishpy_dealloc): Update accordingly.
5832 (bpfinishpy_pre_stop_hook): Likewise.
5833 (bpfinishpy_init): Likewise. Record the requested function's
5834 address.
5835 * mips-tdep.c (mips_fval_reg): New enum.
5836 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5837 words put in GP registers.
5838 (mips_o64_push_dummy_call): Update a comment.
5839 (mips_o32_return_value): Take a pointer to struct value instead
5840 of struct type for the function requested and use it to check if
5841 using the MIPS16 calling convention. Return the designated
5842 general purpose registers for floating-point values returned in
5843 MIPS16 mode.
5844 (mips_o64_return_value): Likewise.
5845 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5846 (ppc_sysv_abi_broken_return_value): Likewise.
5847 (ppc64_sysv_abi_return_value): Likewise.
5848 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5849 value instead of struct type for the function requested.
5850 * amd64-tdep.c (amd64_return_value): Likewise.
5851 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5852 * arm-tdep.c (arm_return_value): Likewise.
5853 * avr-tdep.c (avr_return_value): Likewise.
5854 * bfin-tdep.c (bfin_return_value): Likewise.
5855 * cris-tdep.c (cris_return_value): Likewise.
5856 * frv-tdep.c (frv_return_value): Likewise.
5857 * h8300-tdep.c (h8300_return_value): Likewise.
5858 (h8300h_return_value): Likewise.
5859 * hppa-tdep.c (hppa32_return_value): Likewise.
5860 (hppa64_return_value): Likewise.
5861 * i386-tdep.c (i386_return_value): Likewise.
5862 * ia64-tdep.c (ia64_return_value): Likewise.
5863 * iq2000-tdep.c (iq2000_return_value): Likewise.
5864 * lm32-tdep.c (lm32_return_value): Likewise.
5865 * m32c-tdep.c (m32c_return_value): Likewise.
5866 * m32r-tdep.c (m32r_return_value): Likewise.
5867 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5868 * m68k-tdep.c (m68k_return_value): Likewise.
5869 (m68k_svr4_return_value): Likewise.
5870 * m88k-tdep.c (m88k_return_value): Likewise.
5871 * mep-tdep.c (mep_return_value): Likewise.
5872 * microblaze-tdep.c (microblaze_return_value): Likewise.
5873 * mn10300-tdep.c (mn10300_return_value): Likewise.
5874 * moxie-tdep.c (moxie_return_value): Likewise.
5875 * mt-tdep.c (mt_return_value): Likewise.
5876 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5877 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5878 (ppc_sysv_abi_broken_return_value): Likewise.
5879 (ppc64_sysv_abi_return_value): Likewise.
5880 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5881 * rl78-tdep.c (rl78_return_value): Likewise.
5882 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5883 * rx-tdep.c (rx_return_value): Likewise.
5884 * s390-tdep.c (s390_return_value): Likewise.
5885 * score-tdep.c (score_return_value): Likewise.
5886 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5887 (sh_return_value_fpu): Likewise.
5888 * sh64-tdep.c (sh64_return_value): Likewise.
5889 * sparc-tdep.c (sparc32_return_value): Likewise.
5890 * sparc64-tdep.c (sparc64_return_value): Likewise.
5891 * spu-tdep.c (spu_return_value): Likewise.
5892 * tic6x-tdep.c (tic6x_return_value): Likewise.
5893 * v850-tdep.c (v850_return_value): Likewise.
5894 * vax-tdep.c (vax_return_value): Likewise.
5895 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5896 * xtensa-tdep.c (xtensa_return_value): Likewise.
5897 * gdbarch.c: Regenerate.
5898 * gdbarch.h: Regenerate.
5899
5900 2012-05-15 Tom Tromey <tromey@redhat.com>
5901
5902 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5903
5904 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5905
5906 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5907 of command in two error message.
5908
5909 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5910
5911 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5912
5913 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5914
5915 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5916
5917 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5918
5919 * NEWS (show auto-load scripts-directory): Add forgotten command.
5920
5921 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5922
5923 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5924 parameters.
5925
5926 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5927
5928 * amd64-tdep.c: Include features/i386/x32.c and
5929 features/i386/x32-avx.c.
5930 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5931 initialize_tdesc_x32_avx.
5932
5933 2012-05-14 Stan Shebs <stan@codesourcery.com>
5934
5935 Add dynamic printf.
5936 * breakpoint.h (enum bptype): New type bp_dprintf.
5937 (struct breakpoint): New field extra_string.
5938 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5939 (create_breakpoint): Add extra_string arg.
5940 * breakpoint.c (dprintf_breakpoint_ops): New.
5941 (is_breakpoint): Add bp_dprintf.
5942 (bpstat_what): Add dprintf case.
5943 (bptype_string): Ditto.
5944 (print_one_breakpoint_location): Ditto.
5945 (init_bp_location): Ditto.
5946 (bkpt_print_mention): Ditto.
5947 (dprintf_style_enums): New array.
5948 (dprintf_style): New global.
5949 (dprintf_function): New global.
5950 (dprintf_channel): New global.
5951 (update_dprintf_command_list): New function.
5952 (update_dprintf_commands): New function.
5953 (init_breakpoint_sal): Add extra_string argument, handle it.
5954 (create_breakpoint_sal): Add extra_string argument.
5955 (create_breakpoints_sal): Add extra_string argument, update callers.
5956 (find_condition_and_thread): Add extra argument.
5957 (create_breakpoint): Add extra_string argument, record it.
5958 (dprintf_command): New function.
5959 (break_command_1): Add arg to create_breakpoint call.
5960 (handle_gnu_v3_exceptions): Ditto.
5961 (trace_command): Ditto.
5962 (ftrace_command): Ditto.
5963 (strace_command): Ditto.
5964 (bkpt_print_mention): Add dprintf case.
5965 (create_breakpoint_sal_default): Add extra_string argument.
5966 (_initialize_breakpoint): Add new commands.
5967 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5968 * python/py-breakpoint.c (bppy_init): Ditto.
5969 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5970
5971 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5972
5973 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5974
5975 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5976
5977 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5978 unsigned long long.
5979
5980 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5981
5982 Add a new function gdb.find_pc_line to the Python API.
5983 * NEWS (Python Scripting): Add entry about the new function.
5984 * python/python.c (gdbpy_find_pc_line): New function which
5985 implements gdb.find_pc_line.
5986 (GdbMethods): Add entry for the new function.
5987
5988 2012-05-12 Pedro Alves <palves@redhat.com>
5989
5990 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5991 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5992
5993 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5994
5995 * inferior.c: Include completer.h
5996 (initialize_inferiors): Set completer of add-inferior to
5997 filename_completer.
5998
5999 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6000
6001 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6002 gdbarch_ptr_bit for x32 core dump.
6003
6004 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6005
6006 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6007 and features/i386/x32-avx-linux.c.
6008
6009 2012-05-11 Stan Shebs <stan@codesourcery.com>
6010 Kwok Cheung Yeung <kcy@codesourcery.com>
6011
6012 * NEWS: Describe new info os commands.
6013 * common/linux-osdata.c (PID_T, TIME_T): Define.
6014 (MAX_PID_T_STRLEN): New.
6015 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6016 MAX_PID_T_STRLEN.
6017 (command_from_pid): Add comment. Change to use PID_T.
6018 (commandline_from_pid): Change to use PID_T.
6019 (user_from_pid): Add comment.
6020 (get_process_owner): Add comment. Change to use PID_T and
6021 MAX_PID_T_STRLEN.
6022 (get_number_of_cpu_cores): Add comment.
6023 (get_cores_used_by_process): Add comment. Change to use PID_T and
6024 MAX_PID_T_STRLEN.
6025 (linux_xfer_osdata_processes): Change to use PID_T and
6026 MAX_PID_T_STRLEN.
6027 (compare_processes): New function.
6028 (linux_xfer_osdata_processgroups): New function.
6029 (linux_xfer_osdata_threads): Change to use PID_T.
6030 (linux_xfer_osdata_fds): New function.
6031 (format_socket_state, print_sockets): New functions.
6032 (union socket_addr): New union.
6033 (linux_xfer_osdata_isockets): New function.
6034 (time_from_time_t, group_from_gid): New functions.
6035 (linux_xfer_osdata_shm): New function.
6036 (linux_xfer_osdata_sem): New function.
6037 (linux_xfer_osdata_msg): New function.
6038 (linux_xfer_osdata_modules): New function.
6039 (osdata_table): Add new entries.
6040 * common/buffer.c (buffer_xml_printf): Add support for long and
6041 long long format specifiers.
6042
6043 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6044
6045 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6046 (tdesc_x32_avx_linux): Likewise.
6047
6048 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6049
6050 Implement multi-component --with-auto-load-dir.
6051 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6052 entries.
6053 (--with-auto-load-safe-path): Update the default value description.
6054 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6055 New.
6056 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6057 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6058 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6059 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6060 "set auto-load scripts-directory".
6061 * config.in: Regenerate.
6062 * configure: Regenerate.
6063 * configure.ac (--with-auto-load-dir): New configure option.
6064 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6065
6066 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6067
6068 Provide $ddir substitution for --with-auto-load-safe-path.
6069 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6070 entries.
6071 * auto-load.c: Include observer.h.
6072 (auto_load_safe_path_vec_update): Call substitute_path_component for
6073 each component. New variable ddir_subst.
6074 (auto_load_gdb_datadir_changed): New function.
6075 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6076 AUTO_LOAD_SAFE_PATH. New comment.
6077 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6078 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6079 * config.in: Regenerate.
6080 * configure: Regenerate.
6081 * configure.ac (--auto-load-safe-path): Rename
6082 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6083 GDB_DATADIR/auto-load.
6084 * defs.h (substitute_path_component): New declaration.
6085 * top.c: Include observer.h.
6086 (set_gdb_datadir): New function.
6087 (init_main): Install it for "set data-directory".
6088 * utils.c (substitute_path_component): New function.
6089
6090 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6091
6092 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6093 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6094 DEBUG_FILE_DIRECTORY. Handle multiple components of
6095 DEBUG_FILE_DIRECTORY.
6096
6097 2012-05-10 Tom Tromey <tromey@redhat.com>
6098
6099 * dwarf2read.c (recursively_write_psymbols): New function.
6100 (write_psymtabs_to_index): Use it.
6101
6102 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6103 field.
6104 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6105 (load_partial_comp_unit): Update.
6106 (queue_comp_unit): Add argument 'pretend_language'.
6107 (process_queue): Update.
6108 (psymtab_to_symtab_1): Skip dependencies that have a user.
6109 (load_partial_comp_unit_reader): Give meaning to the 'data'
6110 argument.
6111 (load_full_comp_unit): Add 'pretend_language' argument.
6112 (process_full_comp_unit): Add 'pretend_language' argument. Set
6113 language on CU.
6114 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6115 Update.
6116 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6117 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6118 Update.
6119 (prepare_one_comp_unit): Add 'pretend_language' argument.
6120
6121 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6122 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6123 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6124 (dw2_do_instantiate_symtab): Check whether symtab was read in
6125 before queueing.
6126 (dw2_instantiate_symtab): Add assertion. Call
6127 process_cu_includes.
6128 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6129 (partial_symtab_p): New typedef.
6130 (set_partial_user): New function.
6131 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6132 (scan_partial_symbols): Add imported CU to imported_symtabs.
6133 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6134 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6135 (get_symtab, recursively_compute_inclusions)
6136 (compute_symtab_includes, process_cu_includes)
6137 (process_imported_unit_die): New functions.
6138 (process_die) <DW_TAG_imported_unit>: New case.
6139 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6140
6141 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6142 comment.
6143 (struct partial_die_info) <locdesc>: Remove.
6144 <d>: New field.
6145 (process_psymtab_comp_unit): Add 'read_partial' argument.
6146 Update.
6147 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6148 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6149 (add_partial_symbol): Update.
6150 (process_die): Handle DW_TAG_partial_unit.
6151 (read_file_scope): Update comment.
6152 (load_partial_dies): Handle DW_TAG_imported_unit.
6153 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6154 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6155
6156 2012-05-10 Tom Tromey <tromey@redhat.com>
6157
6158 * cc-with-dwz.sh: New file.
6159
6160 2012-05-10 Tom Tromey <tromey@redhat.com>
6161
6162 * symtab.h (struct symtab) <includes, user>: New fields.
6163 * block.h (struct block_iterator) <d, idx, which>: New fields.
6164 * block.c (initialize_block_iterator, find_iterator_symtab)
6165 (block_iterator_step, block_iter_name_step)
6166 (block_iter_match_step): New functions.
6167 (block_iterator_first, block_iterator_next)
6168 (block_iter_name_first, block_iter_name_next)
6169 (block_iter_match_first, block_iter_match_next): Rewrite.
6170 (get_block_symtab): New function.
6171
6172 2012-05-10 Tom Tromey <tromey@redhat.com>
6173
6174 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6175 set_block_symtab.
6176 * jit.c (finalize_symtab): Use allocate_global_block,
6177 set_block_symtab.
6178 * buildsym.c (finish_block_internal): New function, from old
6179 finish_block.
6180 (finish_block): Rewrite.
6181 (end_symtab): Use finish_block_internal, set_block_symtab.
6182 * block.h (struct global_block): New.
6183 (allocate_global_block, set_block_symtab): Declare.
6184 * block.c (allocate_global_block, set_block_symtab): New
6185 functions.
6186
6187 2012-05-10 Tom Tromey <tromey@redhat.com>
6188
6189 * psymtab.c (partial_map_expand_apply): Add assertion.
6190 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6191 (psymtab_to_symtab): Find unshared psymtab.
6192 (dump_psymtab): Print including psymtabs.
6193 (recursively_search_psymtabs): New function.
6194 (expand_symtabs_matching_via_partial): Use it.
6195 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6196 fields.
6197 (enum psymtab_search_status): New.
6198
6199 2012-05-10 Tom Tromey <tromey@redhat.com>
6200
6201 * tracepoint.c (scope_info): Update.
6202 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6203 (find_pc_sect_symtab, search_symbols)
6204 (default_make_symbol_completion_list_break_on)
6205 (make_file_symbol_completion_list): Update.
6206 * symmisc.c (dump_symtab_1): Update.
6207 * stack.c (print_frame_args, iterate_over_block_locals)
6208 (print_frame_labels, iterate_over_block_arg_vars): Update.
6209 * python/py-block.c (block_object) <dict>: Remove.
6210 <block>: New field.
6211 <iter>: Change type.
6212 (blpy_iter): Update.
6213 (blpy_block_syms_iternext): Update.
6214 * psymtab.c (map_block): Use block iterators.
6215 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6216 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6217 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6218 * infrun.c (check_exception_resume): Update.
6219 * cp-support.c (make_symbol_overload_list_block): Update.
6220 * coffread.c (patch_opaque_types): Update.
6221 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6222 * block.h (struct block_iterator): New.
6223 (block_iterator_first, block_iterator_next, block_iter_name_first)
6224 (block_iter_name_next, block_iter_match_first)
6225 (block_iter_match_next): Declare.
6226 (ALL_BLOCK_SYMBOLS): Redefine.
6227 * block.c (block_iterator_first, block_iterator_next)
6228 (block_iter_name_first, block_iter_name_next)
6229 (block_iter_match_first, block_iter_match_next): New functions.
6230 * ada-lang.c (ada_add_block_symbols)
6231 (ada_make_symbol_completion_list): Use block iterator.
6232
6233 2012-05-10 Tom Tromey <tromey@redhat.com>
6234
6235 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6236 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6237 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6238 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6239 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6240 Update.
6241
6242 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6243
6244 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6245 print-file-var-lib2.c, print-file-var-main.c and
6246 print-file-var.exp (located in gdb/testsuite/gdb.base).
6247
6248 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6249
6250 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6251 try locating the symbol in the symbol's own objfile first, before
6252 extending the search to all objfiles.
6253 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6254 out of lookup_symbol_aux_symtabs.
6255 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6256 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6257 Do not search EXCLUDE_OBJFILE.
6258 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6259 (lookup_symbol_global): Search for matches in the block's objfile
6260 first, before searching all other objfiles.
6261
6262 2012-05-10 Tristan Gingold <gingold@adacore.com>
6263
6264 * printcmd.c (set_command): Add pre/post inc/dec.
6265
6266 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6267
6268 * gdb.1: Document -ex option.
6269
6270 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6271
6272 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6273 * inferior.h (AT_SYMBOL): Delete.
6274
6275 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6276
6277 * mips-tdep.c (mips_push_dummy_code): New function.
6278 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6279 ON_STACK and install mips_push_dummy_code as our gdbarch
6280 push_dummy_code routine.
6281
6282 2012-05-09 Pedro Alves <palves@redhat.com>
6283
6284 * target.c (set_maintenance_target_async_permitted): Rename to ...
6285 (set_target_async_command): ... this.
6286 (show_maintenance_target_async_permitted): Rename to ...
6287 (show_target_async_command): ... this.
6288 (initialize_targets): Adjust.
6289
6290 2012-05-08 Doug Evans <dje@google.com>
6291
6292 * go-exp.y (classify_name): Add missing assignment of fields of
6293 yylval.ssym.
6294
6295 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6296
6297 Display the ">" prompt in interactive mode while reading canned
6298 commands, even when the current interpreter is MI.
6299
6300 * interps.c (interp_set_temp): New function.
6301
6302 * interps.h (interp_set_temp): Add prototype.
6303
6304 * cli/cli-script.c (restore_interp): New cleanup function.
6305 (read_command_lines): Temporarily override the current interpreter
6306 with CLI and arrange for restoring the original one.
6307
6308 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6309
6310 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6311
6312 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6313
6314 * probe.c (parse_probes): Move conditional to check for
6315 debuginfo files from here...
6316 * stap-probe.c (stap_get_probes): ... to here.
6317
6318 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6319 H.J. Lu <hongjiu.lu@intel.com>
6320
6321 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6322 `movl %esp, %ebp' for the X32 ABI.
6323
6324 2012-05-07 Tom Tromey <tromey@redhat.com>
6325
6326 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6327 get_DW_TAG_name.
6328 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6329 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6330 (dwarf_stack_op_name): Remove.
6331 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6332 (decode_locdesc): Use get_DW_OP_name.
6333 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6334 (dwarf2_compile_expr_to_ax): Likewise.
6335 (disassemble_dwarf_expression): Likewise.
6336 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6337
6338 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6339
6340 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6341 (sh_linux_sigtramp_cache): New function.
6342 (sh_linux_sigreturn_init): New function.
6343 (sh_linux_rt_sigreturn_init): New function.
6344 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6345 patterns.
6346 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6347 syscall codes.
6348 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6349 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6350 (sh_linux_init_abi): Add init calls to register new tramp_frame
6351 definitions under 32-bit SH, update comments.
6352
6353 2012-05-07 Pedro Alves <palves@redhat.com>
6354
6355 PR gdb/10952
6356
6357 * amd64-linux-tdep.c: Include glibc-tdep.h.
6358 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6359 gdbarch_skip_solib_resolver callback.
6360
6361 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6364 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6365 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6366 (add_auto_load_safe_path): Change the error message.
6367 (_initialize_auto_load): Change the "safe-path" help text.
6368 * configure: Regenerate
6369 * configure.ac (--without-auto-load-safe-path): Set
6370 WITH_AUTO_LOAD_SAFE_PATH to /.
6371
6372 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6373
6374 * stap-probe.h: Do not include unecessary `probe.h'.
6375
6376 2012-05-05 Alan Modra <amodra@gmail.com>
6377
6378 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6379 bfd_und_section_ptr.
6380 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6381 and bfd_com_section_ptr.
6382
6383 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6384
6385 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6386
6387 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6388
6389 * windows-nat.h (segment_register_p_ftype): New typedef.
6390 (windows_set_segment_register_p): Add declaration.
6391 * windows-nat.c (segment_register_p): New static global.
6392 (windows_set_segment_register_p): New function.
6393 (do_windows_fetch_inferior_registers): Add special handling
6394 for segment registers.
6395 * amd64-windows-nat.c: #include "amd64-tdep.h".
6396 (amd64_windows_segment_register_p): New function.
6397 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6398 * i386-windows-nat.c: #include "i386-tdep.h".
6399 (i386_windows_segment_register_p): New function.
6400 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6401
6402 2012-05-04 Tristan Gingold <gingold@adacore.com>
6403
6404 * printcmd.c (set_command): Emit a warning if the expression is not
6405 an assignment.
6406
6407 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6408
6409 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6410 Make static.
6411
6412 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6413
6414 * stap-probe.c (stap_is_operator): Change declaration.
6415 (stap_get_opcode): Change return value.
6416 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6417 `stap_parse_argument_1'.
6418
6419 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6420
6421 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6422 debug log.
6423
6424 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6425
6426 Add two new methods global_block and static_block to gdb.Symtab
6427 objects.
6428 * NEWS (Python scripting): Add entry about the new methods.
6429 * python/py-symtab.c (stpy_global_block): New function which
6430 implements the gdb.Symtab.global_block() method.
6431 (stpy_static_block): New function which implements the
6432 gdb.Symtab.static_block() method.
6433 (symtab_object_methods): Add entries for the two new methods.
6434
6435 2012-05-03 Doug Evans <dje@google.com>
6436
6437 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6438 files.
6439
6440 2012-05-03 Yao Qi <yao@codesourcery.com>
6441
6442 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6443 space.
6444 (i386_process_record): Ditto.
6445
6446 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6447
6448 * infcall.c (unwind_on_signal_p): Make static.
6449
6450 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6451
6452 * sol-thread.c (solaris_pid_to_str): Make static.
6453 (_initialize_sol_thread): Add prototype.
6454
6455 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6456
6457 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6458
6459 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6460
6461 * MAINTAINERS: Remove myself.
6462
6463 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6464
6465 Fix --without-auto-load-safe-path for MS-Windows host platform.
6466 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6467
6468 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6469
6470 * gdb_curses.h: Undefine KEY_EVENT before including curses
6471 headers. Move "#undef MOUSE_MOVED" before any curses header
6472 inclusion.
6473
6474 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6475
6476 * features/i386/i386-mmx-linux.c: Regenerate.
6477 * features/rs6000/powerpc-32.c: Likewise.
6478 * features/rs6000/powerpc-32l.c: Likewise.
6479 * features/rs6000/powerpc-403.c: Likewise.
6480 * features/rs6000/powerpc-403gc.c: Likewise.
6481 * features/rs6000/powerpc-405.c: Likewise.
6482 * features/rs6000/powerpc-505.c: Likewise.
6483 * features/rs6000/powerpc-601.c: Likewise.
6484 * features/rs6000/powerpc-602.c: Likewise.
6485 * features/rs6000/powerpc-603.c: Likewise.
6486 * features/rs6000/powerpc-604.c: Likewise.
6487 * features/rs6000/powerpc-64.c: Likewise.
6488 * features/rs6000/powerpc-64l.c: Likewise.
6489 * features/rs6000/powerpc-750.c: Likewise.
6490 * features/rs6000/powerpc-860.c: Likewise.
6491 * features/rs6000/powerpc-e500.c: Likewise.
6492 * features/rs6000/powerpc-e500l.c: Likewise.
6493 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6494 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6495 * features/rs6000/rs6000.c: Likewise.
6496
6497 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6498
6499 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6500 variable.
6501 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6502 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6503 (stap_parse_argument) <e>: Likewise.
6504 (handle_stap_probe) <byte_order>: Likewise.
6505
6506 2012-04-30 Doug Evans <dje@google.com>
6507
6508 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6509 init_and_read_dies_worker. All callers updated.
6510 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6511 replaced with init_cutu_and_read_dies.
6512 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6513 (find_partial_die): Remove FIXME. Don't free current CU.
6514
6515 2012-04-30 Sterling Augustine <saugustine@google.com>
6516
6517 * contrib: New directory.
6518 * contrib/test_pubnames_and_indexes.py: New file.
6519
6520 2012-04-30 Doug Evans <dje@google.com>
6521
6522 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6523 All callers updated.
6524 (init_cu_die_reader): Verify the section is non-empty.
6525 (dwarf_decode_line_header): Don't dereference section->asection
6526 until we know the section is present.
6527
6528 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6529
6530 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6531 probes.
6532
6533 2012-04-29 Yao Qi <yao@codesourcery.com>
6534
6535 * gdb-code-style.el: New hook gdb-markup-hook
6536 and gdb-comment-hook.
6537
6538 2012-04-28 Doug Evans <dje@google.com>
6539
6540 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6541 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6542 objfile->obfd.
6543 * symfile.h (dwarf2_debug_sections): New member addr.
6544 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6545 (ctx_no_get_addr_index): New function.
6546 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6547 (ctx_no_get_addr_index): Declare.
6548 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6549 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6550 (dwarf_expr_ctx_funcs): Update.
6551 (needs_get_addr_index): New function.
6552 (needs_frame_ctx_funcs): Update.
6553 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6554 * dwarf2read.c: #include "gdbcore.h".
6555 (dwarf2_per_objfile): New members addr, dwo_files.
6556 (dwarf2_elf_names): Add entry for addr.
6557 (struct dwo_section_names): New type.
6558 (dwo_section_names): New static global.
6559 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6560 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6561 old debug_types_section member updated to use this.
6562 Rename member debug_types_section to info_or_types_section,
6563 all uses updated.
6564 (signatured_type): Rename member type_offset to type_offset_in_tu,
6565 all uses updated. New member type_offset_in_section.
6566 (struct dwo_sections): New type.
6567 (struct dwo_unit): New type.
6568 (struct dwo_file): New type.
6569 (die_reader_specs): New member dwo_file.
6570 (dwarf2_locate_sections): Watch for .debug_addr.
6571 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6572 (dwarf2_read_section): Get bfd of section from bfd's asection,
6573 instead of objfile.
6574 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6575 (create_signatured_type_table_from_index): Initialize
6576 sig_type->info_or_types_section.
6577 (dw2_get_file_names): Statement lists for type units with DWO files
6578 live in the DWO file.
6579 (create_debug_types_hash_table): New function.
6580 (create_all_type_units): Rewrite.
6581 (init_cu_die_reader): New arg dwo_file, all callers updated.
6582 (init_and_read_dies_worker): Get section from
6583 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6584 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6585 continue reading the CU/TU from there.
6586 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6587 updated. Get section from this_cu->info_or_types_section.
6588 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6589 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6590 DW_FORM_GNU_str_index.
6591 (hash_dwo_file, eq_dwo_file): New functions.
6592 (allocate_dwo_file_hash_table): New function.
6593 (hash_dwo_unit, eq_dwo_unit): New functions.
6594 (allocate_dwo_unit_table): New function.
6595 (dwarf2_locate_dwo_sections): New function.
6596 (struct create_dwo_info_table_data): New type.
6597 (create_debug_info_hash_table_reader): New function.
6598 (create_debug_info_hash_table): New function.
6599 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6600 (lookup_dwo_file): New function.
6601 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6602 (free_dwo_file, free_dwo_file_cleanup): New functions.
6603 (free_dwo_file_from_slot, free_dwo_files): New functions.
6604 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6605 (dwarf2_record_block_ranges): Ditto.
6606 (read_partial_die): Ditto.
6607 (process_enumeration_scope): Update to use type_offset_in_section.
6608 (read_full_die_1): New function.
6609 (read_full_die): Rewrite.
6610 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6611 DW_FORM_GNU_str_index.
6612 (read_addr_index_1, read_addr_index): New functions.
6613 (read_addr_index_from_leb128): New function.
6614 (struct dwarf2_read_addr_index_data): New type.
6615 (dwarf2_read_addr_index_reader): New function.
6616 (dwarf2_read_addr_index): New function.
6617 (read_str_index): New function.
6618 (leb128_size): New function.
6619 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6620 If processing a type unit from a DWO file, get the line section
6621 from the DWO file.
6622 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6623 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6624 DW_FORM_GNU_str_index.
6625 (lookup_die_type): Check whether section offset of type's die is
6626 known before looking it up. Remove assert. Condition can
6627 legimately happen for inter-cu type references.
6628 (dwarf_attr_name): Handle Fission attributes.
6629 (dwarf_form_name): Handle Fission forms.
6630 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6631 DW_FORM_GNU_str_index.
6632 (follow_die_sig): Update to use type_offset_in_section.
6633 (decode_locdesc): New case DW_OP_GNU_addr_index.
6634 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6635 DW_FORM_GNU_str_index.
6636 (cu_debug_loc_section): New function.
6637 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6638 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6639 Free DWO files if present.
6640 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6641
6642 Refactor DIE reading.
6643 * dwarf2read.c (dwarf2_per_objfile): Replace members
6644 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6645 (die_reader_specs): New member "die_section". Temporarily make
6646 member "buffer" non-const, pending constifying all info_ptr uses.
6647 (die_reader_func_ftype): New typedef.
6648 (dw2_get_file_names_reader): New function.
6649 (dw2_get_file_names): Rewrite.
6650 (read_and_check_type_unit_head): Rename arg type_offset to
6651 type_offset_in_tu.
6652 (create_all_type_units): Improve debugging message.
6653 Improve dummy type unit check.
6654 (init_cu_die_reader): New arg "section". All callers updated.
6655 (init_and_read_dies_worker): New function.
6656 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6657 (init_cutu_and_read_dies_no_follow): New function.
6658 (init_cutu_and_read_dies_simple): New function.
6659 (process_psymtab_comp_unit_reader): New function.
6660 (process_psymtab_comp_unit): Delete args section,
6661 is_debug_types_section. Rewrite. All callers updated.
6662 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6663 All callers updated. Rewrite.
6664 (load_partial_comp_unit_reader): New function.
6665 (load_partial_comp_unit): Rewrite.
6666 (skip_children): New arg reader. Delete args buffer, cu.
6667 All callers updated.
6668 (skip_one_die): New arg reader. Delete args buffer, cu.
6669 All callers updated.
6670 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6671 All callers updated.
6672 (load_full_comp_unit_reader): New function.
6673 (load_full_comp_unit): Rewrite.
6674 (read_comp_unit): Delete.
6675 (read_die_and_children_1): Delete, contents moved ...
6676 (read_die_and_children): ... here.
6677 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6678 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6679 All callers updated.
6680 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6681 All callers updated.
6682 (find_partial_die): Rewrite load_all_dies support.
6683 (read_attribute_value): New arg reader. Delete args abfd, cu.
6684 All callers updated.
6685 (read_attribute): New arg reader. Delete args abfd, cu.
6686 All callers updated.
6687 (load_full_type_unit): Add assert.
6688 (read_signatured_type_reader): New function.
6689 (read_signatured_type): Rewrite.
6690 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6691 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6692 All callers updated. Set per_cu->cu = NULL after freeing it.
6693 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6694 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6695 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6696 (set_die_type): Update.
6697 (get_die_type_at_offset): Update.
6698 (read_file_scope): Call prepare_one_comp_unit.
6699 (read_type_unit_scope): Ditto.
6700 (prepare_one_comp_unit): Set producer if present.
6701
6702 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6703
6704 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6705 gettext function on `error'.
6706
6707 2012-04-27 Doug Evans <dje@google.com>
6708
6709 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6710 is empty.
6711
6712 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6713 Tom Tromey <tromey@redhat.com>
6714
6715 * breakpoint.c (struct breakpoint_objfile_data)
6716 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6717 <exception_probes>: New fields.
6718 (free_breakpoint_probes): New function.
6719 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6720 `_Unwind_DebugHook'.
6721 (create_exception_master_breakpoint): Likewise.
6722 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6723 * infrun.c: Including necessary header files for handling SystemTap
6724 probes.
6725 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6726 via SystemTap probes.
6727 (check_exception_resume): Remove `func' argument. Handle exception
6728 unwinding breakpoint set via a SystemTap probe.
6729 (insert_exception_resume_from_probe): New function.
6730
6731 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6732 Tom Tromey <tromey@redhat.com>
6733 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6736 (COMMON_OBS): Likewise.
6737 (HFILES_NO_SRCDIR): Add `probe'.
6738 * NEWS: Mention support for static and SystemTap probes.
6739 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6740 SystemTap probes' arguments parser.
6741 * arm-linux-tdep.c: Including headers needed to perform the parsing
6742 of SystemTap probes' arguments.
6743 (arm_stap_is_single_operand): New function.
6744 (arm_stap_parse_special_token): Likewise.
6745 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6746 probes' arguments parser.
6747 * ax-gdb.c (require_rvalue): Removing static declaration.
6748 (gen_expr): Likewise.
6749 * ax-gdb.h (gen_expr): Declaring function.
6750 (require_rvalue): Likewise.
6751 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6752 (bkpt_probe_breakpoint_ops): New variable.
6753 (momentary_breakpoint_from_master): Set the `probe' value.
6754 (add_location_to_breakpoint): Likewise.
6755 (break_command_1): Using proper breakpoint_ops according to the
6756 argument passed by the user in the command line.
6757 (bkpt_probe_insert_location): New function.
6758 (bkpt_probe_remove_location): Likewise.
6759 (bkpt_probe_create_sals_from_address): Likewise.
6760 (bkpt_probe_decode_linespec): Likewise.
6761 (tracepoint_probe_create_sals_from_address): Likewise.
6762 (tracepoint_probe_decode_linespec): Likewise.
6763 (tracepoint_probe_breakpoint_ops): New variable.
6764 (trace_command): Using proper breakpoint_ops according to the
6765 argument passed by the user in the command line.
6766 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6767 static probes on breakpoints and tracepoints.
6768 * breakpoint.h (struct bp_location) <probe>: New field.
6769 * cli-utils.c (skip_spaces_const): New function.
6770 (extract_arg): Likewise.
6771 * cli-utils.h (skip_spaces_const): Likewise.
6772 (extract_arg): Likewise.
6773 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6774 * configure.ac: Append `stap-probe.o' to be generated when ELF
6775 support is present.
6776 * configure: Regenerate.
6777 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6778 * elfread.c: Include `probe.h' and `arch-utils.h'.
6779 (probe_key): New variable.
6780 (elf_get_probes): New function.
6781 (elf_get_probe_argument_count): Likewise.
6782 (elf_evaluate_probe_argument): Likewise.
6783 (elf_compile_to_ax): Likewise.
6784 (elf_symfile_relocate_probe): Likewise.
6785 (stap_probe_key_free): Likewise.
6786 (elf_probe_fns): New variable.
6787 (elf_sym_fns): Add `sym_probe_fns' value.
6788 (elf_sym_fns_lazy_psyms): Likewise.
6789 (elf_sym_fns_gdb_index): Likewise.
6790 (_initialize_elfread): Initialize objfile cache for static
6791 probes.
6792 * gdb_vecs.h (struct probe): New forward declaration.
6793 (probe_p): New VEC declaration.
6794 * gdbarch.c: Regenerate.
6795 * gdbarch.h: Regenerate.
6796 * gdbarch.sh (stap_integer_prefix): New variable.
6797 (stap_integer_suffix): Likewise.
6798 (stap_register_prefix): Likewise.
6799 (stap_register_suffix): Likewise.
6800 (stap_register_indirection_prefix): Likewise.
6801 (stap_register_indirection_suffix): Likewise.
6802 (stap_gdb_register_prefix): Likewise.
6803 (stap_gdb_register_suffix): Likewise.
6804 (stap_is_single_operand): New function.
6805 (stap_parse_special_token): Likewise.
6806 (struct stap_parse_info): Forward declaration.
6807 * i386-tdep.c: Including headers needed to perform the parsing
6808 of SystemTap probes' arguments.
6809 (i386_stap_is_single_operand): New function.
6810 (i386_stap_parse_special_token): Likewise.
6811 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6812 probes' arguments parser.
6813 * i386-tdep.h (i386_stap_is_single_operand): New function.
6814 (i386_stap_parse_special_token): Likewise.
6815 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6816 * mipsread.c (ecoff_sym_fns): Likewise.
6817 * objfiles.c (objfile_relocate1): Support relocation for static
6818 probes.
6819 * parse.c (prefixify_expression): Remove static declaration.
6820 (initialize_expout): Likewise.
6821 (reallocate_expout): Likewise.
6822 * parser-defs.h (initialize_expout): Declare function.
6823 (reallocate_expout): Likewise.
6824 (prefixify_expression): Likewise.
6825 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6826 of SystemTap probes' arguments.
6827 (ppc_stap_is_single_operand): New function.
6828 (ppc_stap_parse_special_token): Likewise.
6829 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6830 probes' arguments parser.
6831 * probe.c: New file, for generic statically defined probe support.
6832 * probe.h: Likewise.
6833 * s390-tdep.c: Including headers needed to perform the parsing of
6834 SystemTap probes' arguments.
6835 (s390_stap_is_single_operand): New function.
6836 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6837 probes' arguments parser.
6838 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6839 * stap-probe.c: New file, for SystemTap probe support.
6840 * stap-probe.h: Likewise.
6841 * symfile.h: Include `gdb_vecs.h'.
6842 (struct sym_probe_fns): New struct.
6843 (struct sym_fns) <sym_probe_fns>: New field.
6844 * symtab.c (init_sal): Initialize `probe' field.
6845 * symtab.h (struct probe): Forward declaration.
6846 (struct symtab_and_line) <probe>: New field.
6847 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6848 locations.
6849 (stop_tracing): Likewise.
6850 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6851
6852 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6853 Tom Tromey <tromey@redhat.com>
6854
6855 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6856 and to compile agent expressions.
6857 * infrun.c (siginfo_make_value): New argument `ignore'.
6858 (siginfo_funcs): New struct.
6859 (_initialize_infrun): New argument when calling
6860 `create_internalvar_type_lazy'.
6861 * thread.c (thread_id_make_value): New argument `ignore'.
6862 (thread_funcs): New struct.
6863 (_initialize_thread): New argument when calling
6864 `create_internalvar_type_lazy'.
6865 * tracepoint.c (sdata_make_value): New argument `ignore'.
6866 (sdata_funcs): New struct.
6867 (_initialize_tracepoint): New argument when calling
6868 `create_internalvar_type_lazy'.
6869 * value.c (make_value): New struct.
6870 (create_internalvar_type_lazy): New argument `data'.
6871 (compile_internalvar_to_ax): New function.
6872 (value_of_internalvar): Properly handling `make_value' case.
6873 (clear_internalvar): Likewise.
6874 (show_convenience): Adding `TRY_CATCH' block.
6875 * value.h (internalvar_make_value): Delete, replace by...
6876 (struct internalvar_funcs): ... this.
6877 (create_internalvar_type_lazy) <fun>: Delete argument.
6878 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6879 (compile_internalvar_to_ax): New function.
6880 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6881 (tlb_funcs): New struct.
6882 (_initialize_windows_tdep): New argument when calling
6883 `create_internalvar_type_lazy'.
6884
6885 2012-04-27 Mark Wielaard <mjw@redhat.com>
6886
6887 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6888 see whether it is an address or a constant offset from DW_AT_low_pc.
6889 (dwarf2_record_block_ranges): Likewise.
6890 (read_partial_die): Likewise.
6891
6892 2012-04-26 Mark Wielaard <mjw@redhat.com>
6893
6894 * MAINTAINERS (Write After Approval): Add myself to the list.
6895
6896 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6897
6898 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6899 (proc_prettyprint_signal): Likewise.
6900 (proc_prettyprint_faultset): Likewise.
6901 (proc_prettyprint_fault): Likewise.
6902 (proc_prettyprint_actionset): Likewise.
6903 (proc_prettyprint_flags): Move to new proc-flags.c section.
6904 (proc_prettyfprint_flags): New prototype.
6905 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6906 (proc_syscall, proc_cursig): Likewise.
6907 (proc_set_kill_on_last_close): Likewise.
6908 (proc_unset_kill_on_last_close): Likewise.
6909 (proc_set_watchpoint): Make static.
6910 (proc_delete_dead_threads): Likewise.
6911 (procfs_set_watchpoint): Likewise.
6912 (_initialize_procfs): Add prototype.
6913 * proc-events.c: Include proc-utils.h.
6914 (init_syscall_table): Make static.
6915 * proc-api.c (_initialize_proc_api): Add prototype.
6916 * proc-flags.c: Include proc-utils.h.
6917
6918 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6919
6920 * configure.ac: Add AC_ARG_PROGRAM.
6921 * configure: Regenerate.
6922
6923 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6924
6925 Fix DW_AT_lower_bound defaults for DWARF-4+.
6926 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6927 high. New variable low_default_is_valid. Implement DWARF-4+
6928 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6929 no default by the DWARF standard.
6930
6931 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6932 Maciej W. Rozycki <macro@codesourcery.com>
6933
6934 * infrun.c (handle_inferior_event): Move the check for return
6935 trampolines ahead of the check for function trampolines.
6936 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6937 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6938 (mips_str_mips16_ret_stub): Likewise.
6939 (mips_str_call_fp_stub): Likewise.
6940 (mips_str_call_stub): Likewise.
6941 (mips_str_fn_stub): Likewise.
6942 (mips_str_pic): Likewise.
6943 (mips_in_frame_stub): New function.
6944 (mips_unwind_pc): Return the return address rather than the PC
6945 if the PC of an intermediate frame is inside a call thunk.
6946 (mips_is_stub_suffix): New function.
6947 (mips_is_stub_mode): Likewise.
6948 (mips_get_mips16_fn_stub_pc): Likewise.
6949 (mips_skip_mips16_trampoline_code): Update to handle all the
6950 currently generated stub types. Don't recurse into __fn_stub
6951 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6952 Use cooked register accesses.
6953 (mips_in_return_stub): Reintroduce function.
6954 (mips_skip_trampoline_code): Traverse trampolines recursively.
6955 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6956
6957 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6958
6959 GDB 7.4.1 released.
6960
6961 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6962
6963 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6964 * features/arm-with-m-vfp-d16.xml: New file. Describes
6965 Cortex-M with VFPv4-sp-d16 FPU register layout.
6966 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6967 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6968 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6969 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6970 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6971
6972 2012-04-25 Doug Evans <dje@google.com>
6973
6974 * cli/cli-decode.c (print_doc_line): Use stream instead of
6975 current_uiout.
6976
6977 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6978
6979 * features/arm-with-iwmmxt.c: Regenerate.
6980 * features/arm-with-m-fpa-layout.c: Likewise.
6981 * features/arm-with-m.c: Likewise.
6982 * features/arm-with-neon.c: Likewise.
6983 * features/arm-with-vfpv2.c: Likewise.
6984 * features/arm-with-vfpv3.c: Likewise.
6985 * features/mips-dsp-linux.c: Likewise.
6986 * features/mips-linux.c: Likewise.
6987 * features/mips64-dsp-linux.c: Likewise.
6988 * features/mips64-linux.c: Likewise.
6989 * features/s390-linux32.c: Likewise.
6990 * features/s390-linux32v1.c: Likewise.
6991 * features/s390-linux32v2.c: Likewise.
6992 * features/s390-linux64.c: Likewise.
6993 * features/s390-linux64v1.c: Likewise.
6994 * features/s390-linux64v2.c: Likewise.
6995 * features/s390x-linux64.c: Likewise.
6996 * features/s390x-linux64v1.c: Likewise.
6997 * features/s390x-linux64v2.c: Likewise.
6998 * features/tic6x-c62x-linux.c: Likewise.
6999 * features/tic6x-c62x.c: Likewise.
7000 * features/tic6x-c64x-linux.c: Likewise.
7001 * features/tic6x-c64x.c: Likewise.
7002 * features/tic6x-c64xp-linux.c: Likewise.
7003 * features/tic6x-c64xp.c: Likewise.
7004 * target-descriptions.c: Only generate `field_type' and `type'
7005 variables when needed.
7006
7007 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7008
7009 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7010
7011 2012-04-25 Doug Evans <dje@google.com>
7012
7013 Initial pass at Go language support.
7014 * NEWS: Mention Go.
7015 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7016 go-valprint.c.
7017 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7018 (YYFILES): Add go-exp.c.
7019 (YYOBJ): Add go-exp.o.
7020 (local-maintainer-clean): Delete go-exp.c.
7021 * defs.h (enum language): Add language_go.
7022 * dwarf2read.c: #include "go-lang.h".
7023 (fixup_go_packaging): New function.
7024 (process_full_comp_unit): Call it when processing Go CUs.
7025 (dwarf2_physname): Add Go support.
7026 (read_file_scope): Handle missing language spec for GNU Go.
7027 (set_cu_language): Handle DW_LANG_Go.
7028 * go-exp.y: New file.
7029 * go-lang.h: New file.
7030 * go-lang.c: New file.
7031 * go-typeprint.c: New file.
7032 * go-valprint.c: New file.
7033 * symtab.c: #include "go-lang.h".
7034 (symbol_set_language): Handle language_go.
7035 (symbol_find_demangled_name, symbol_set_names): Ditto.
7036 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7037
7038 2012-04-24 Jim Meyering <meyering@redhat.com>
7039
7040 avoid a few strncpy-induced buffer overruns
7041 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7042 fname and psargs before trying to concatenate.
7043 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7044 "name" before applying strchr.
7045
7046 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7047
7048 * CONTRIBUTE: Use unified diff instead of context diff when
7049 generating patches.
7050
7051 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7052
7053 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7054 code. Handle JR.HB correctly.
7055
7056 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7057
7058 * mips-tdep.c
7059 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7060 with the other MIPS16 helpers.
7061
7062 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7063
7064 * observer.sh: Conditionally declare `args', thus cleaning up
7065 unused instances of this variable.
7066
7067 2012-04-24 Yao Qi <yao@codesourcery.com>
7068
7069 Revert this patch to allow breakpoint always-inserted
7070 in record target.
7071 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7072 * breakpoint.c: Include record.h.
7073 (breakpoints_always_inserted_mode): Return false when the record
7074 target is in use.
7075
7076 * breakpoint.c (iterate_over_bp_locations): New.
7077 * breakpoint.h: Declare.
7078 New typedef walk_bp_location_callback.
7079 * record.c (record_open): Call record_init_record_breakpoints.
7080 (record_sync_record_breakpoints): New.
7081 (record_init_record_breakpoints): New.
7082 * NEWS: Mention supporting breakpoint always-inserted mode in
7083 record target.
7084
7085 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7086
7087 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7088 any thread.
7089
7090 2012-04-24 Yao Qi <yao@codesourcery.com>
7091
7092 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7093 (is_catchpoint): ... it.
7094 (print_one_breakpoint_location): Caller update.
7095 * breakpoint.h: Update declaration.
7096
7097 2012-04-23 David S. Miller <davem@davemloft.net>
7098
7099 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7100
7101 2012-04-23 Tom Tromey <tromey@redhat.com>
7102
7103 * buildsym.c (add_free_pendings): Remove.
7104 * buildsym.h (add_free_pendings): Remove.
7105
7106 2012-04-23 Doug Evans <dje@google.com>
7107
7108 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7109 attr.u.unsnd instead of attr.u.addr.
7110 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7111 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7112 DW_FORM_ref_udata.
7113 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7114 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7115 DW_FORM_ref_udata.
7116 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7117
7118 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7119
7120 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7121 (mips_o32_return_value): Likewise.
7122 (mips_o64_return_value): Likewise.
7123
7124 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7125
7126 * ada-lang.c (ada_evaluate_subexp): Add cases for
7127 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7128 their treatment in eval.c.
7129
7130 2012-04-21 David S. Miller <davem@davemloft.net>
7131
7132 * sparc-tdep.c (X_DISP10): Define.
7133 (sparc_analyze_control_transfer): Handle compare-and-branch.
7134
7135 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7136
7137 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7138 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7139
7140 2012-04-20 Nigel Stephens <nigel@mips.com>
7141 Maciej W. Rozycki <macro@codesourcery.com>
7142
7143 * mips-tdep.c (mips_float_register_p): New function.
7144 (mips_convert_register_float_case_p): Use mips_float_register_p.
7145 (mips_register_type): Likewise.
7146 (mips_print_register): Likewise.
7147 (print_gp_register_row): Likewise.
7148 (mips_print_registers_info): Likewise.
7149
7150 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7151
7152 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7153 of mips16 symbols.
7154
7155 2012-04-20 Andrew Pinski <apinski@cavium.com>
7156
7157 * MAINTAINERS (Write After Approval): Add myself to the list.
7158
7159 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7160
7161 * MAINTAINERS: Update my e-mail address.
7162
7163 2012-04-20 Pedro Alves <palves@redhat.com>
7164
7165 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7166 $srcdir.
7167 * configure: Regenerate.
7168
7169 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7170
7171 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7172 declaration.
7173 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7174
7175 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7176
7177 Fix compilation compatibility with python-2.4
7178 * python/py-type.c (convert_field): Cast ADDRSTRING for
7179 PyObject_SetAttrString as non-const. New comment.
7180
7181 2012-04-19 Tom Tromey <tromey@redhat.com>
7182
7183 * top.c (quit_target): Use all_cleanups.
7184 * main.c (captured_command_loop): Use all_cleanups.
7185 * exceptions.c (throw_exception): Use all_cleanups.
7186
7187 2012-04-19 Pedro Alves <palves@redhat.com>
7188
7189 * Makefile.in (GNULIB_BUILDDIR): New.
7190 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7191 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7192 (CLEANDIRS). Remove gnulib/import.
7193 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7194 (all-lib): Ditto.
7195 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7196 (gnulib/import/Makefile): Replace gnulib/import with
7197 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7198 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7199 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7200 acx_configure_dir.m4.
7201 * acinclude.m4: Include acx_configure_dir.m4.
7202 * acx_configure_dir.m4: New file.
7203 * aclocal.m4: Regenerate.
7204 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7205 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7206 (GNULIB): New variable.
7207 (GNULIB_STDINT_H): Adjust.
7208 (AC_OUTPUT): Don't output gnulib/Makefile.
7209 * gdb/defs.h: Include build-gnulib/config.h.
7210 * aclocal.m4: Regenerate.
7211 * config.in: Regenerate.
7212 * configure: Regenerate.
7213
7214 * gnulib/Makefile.in: New file.
7215 * gnulib/configure.ac: New file.
7216 * gnulib/aclocal.m4: New file.
7217 * gnulib/config.in: New file.
7218 * gnulib/configure: New file.
7219 * gnulib/: Re-run gnulib-tool to adjust.
7220
7221 2012-04-19 Doug Evans <dje@google.com>
7222
7223 * cleanups.h (struct cleanup): Move to cleanups.c.
7224 (make_cleanup_dtor_ftype): New typedef.
7225 (make_cleanup_dtor): Use it.
7226 (ALL_CLEANUPS): Replace with ...
7227 (all_cleanups): ... this. Declare. All uses updated.
7228 * cleanups.c: #include "gdb_assert.h".
7229 (sentinel_cleanup): New static global.
7230 (SENTINEL_CLEANUP): Define.
7231 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7232 (make_my_cleanup2): Assert result is non-NULL.
7233 (all_cleanups): New function.
7234 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7235 of NULL.
7236
7237 2012-04-19 Pedro Alves <palves@redhat.com>
7238
7239 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7240 Adjust paths to gnulib imported files.
7241
7242 2012-04-19 Pedro Alves <palves@redhat.com>
7243
7244 * gnulib/: Move whole directory ...
7245 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7246 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7247 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7248 (aclocal_m4_deps): Adjust.
7249 * aclocal.m4: Regenerate.
7250 * configure: Regenerate.
7251 * configure.ac: Adjust AC_OUTPUT output.
7252
7253 2012-04-19 Yao Qi <yao@codesourcery.com>
7254
7255 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7256 (vec.o): New rule.
7257 * vec.c: Move it ...
7258 * common/vec.c: ... here.
7259 * vec.h: Move it ...
7260 * common/vec.h: ... here.
7261
7262 2012-04-19 Yao Qi <yao@codesourcery.com>
7263
7264 * gdb-code-style.el: New.
7265
7266 2012-04-18 Pedro Alves <palves@redhat.com>
7267
7268 Update gnulib from latest git.
7269 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7270
7271 * gnulib/Makefile.am: Update.
7272 * gnulib/dummy.c: Update.
7273 * gnulib/extra/arg-nonnull.h: Update.
7274 * gnulib/extra/c++defs.h: Update.
7275 * gnulib/extra/update-copyright: Update.
7276 * gnulib/extra/warn-on-use.h: Update.
7277 * gnulib/inttypes.in.h: Update.
7278 * gnulib/m4/00gnulib.m4: Update.
7279 * gnulib/m4/extensions.m4: Update.
7280 * gnulib/m4/gnulib-cache.m4: Update.
7281 * gnulib/m4/gnulib-common.m4: Update.
7282 * gnulib/m4/gnulib-comp.m4: Update.
7283 * gnulib/m4/gnulib-tool.m4: Update.
7284 * gnulib/m4/include_next.m4: Update.
7285 * gnulib/m4/inttypes-pri.m4: Update.
7286 * gnulib/m4/inttypes.m4: Update.
7287 * gnulib/m4/longlong.m4: Update.
7288 * gnulib/m4/memchr.m4: Update.
7289 * gnulib/m4/memmem.m4: Update.
7290 * gnulib/m4/mmap-anon.m4: Update.
7291 * gnulib/m4/multiarch.m4: Update.
7292 * gnulib/m4/onceonly.m4: Update.
7293 * gnulib/m4/stddef_h.m4: Update.
7294 * gnulib/m4/stdint.m4: Update.
7295 * gnulib/m4/string_h.m4: Update.
7296 * gnulib/m4/warn-on-use.m4: Update.
7297 * gnulib/m4/wchar_h.m4: Update.
7298 * gnulib/m4/wchar_t.m4: Update.
7299 * gnulib/m4/wint_t.m4: Update.
7300 * gnulib/memchr.c: Update.
7301 * gnulib/memmem.c: Update.
7302 * gnulib/stddef.in.h: Update.
7303 * gnulib/stdint.in.h: Update.
7304 * gnulib/str-two-way.h: Update.
7305 * gnulib/string.in.h: Update.
7306 * gnulib/wchar.in.h: Update.
7307
7308 * gnulib/extra/arg-nonnull.h: Delete.
7309 * gnulib/extra/c++defs.h: Delete.
7310 * gnulib/extra/warn-on-use.h: Delete.
7311 * gnulib/m4/wchar_h.m4: Delete.
7312 * gnulib/m4/wint_t.m4: Delete.
7313 * gnulib/wchar.in.h: Delete.
7314
7315 * gnulib/extra/snippets/arg-nonnull.h: New.
7316 * gnulib/extra/snippets/c++defs.h: New.
7317 * gnulib/extra/snippets/warn-on-use.h: New.
7318
7319 * aclocal.m4: Regenerate.
7320 * config.in: Regenerate.
7321 * configure: Regenerate.
7322 * gnulib/Makefile.in: Regenerate.
7323
7324 2012-04-18 Pedro Alves <palves@redhat.com>
7325
7326 Reimport the update-copyright module from gnulib
7327 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7328
7329 * configure: Regenerate.
7330 * gnulib/Makefile.am: Update.
7331 * gnulib/Makefile.in: Regenerate.
7332 * gnulib/extra/update-copyright: Update.
7333 * gnulib/m4/gnulib-cache.m4: Update.
7334 * gnulib/m4/gnulib-comp.m4: Update.
7335
7336 2012-04-18 Tristan Gingold <gingold@adacore.com>
7337
7338 * configure.ac (aix): Put -lpthread into libs.
7339 * configure: Regenerate.
7340
7341 2012-04-18 Tom Tromey <tromey@redhat.com>
7342
7343 * linespec.c (convert_linespec_to_sals): Don't use
7344 SYMBOL_OBJ_SECTION.
7345 (compare_msymbols): Arguments are minsym_and_objfile, not
7346 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7347
7348 2012-04-18 Pedro Alves <palves@redhat.com>
7349
7350 Revert gnulib/ part of:
7351 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7352 Copyright year update in most files (performed by copyright.sh).
7353
7354 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7355
7356 Fix 64-bit constants on 32-bit hosts.
7357 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7358 from unsigned long to ULONGEST.
7359 (read_signed_leb128): Change declaration return type from long to
7360 LONGEST.
7361 (dwarf2_const_value_attr): Change declaration parameter value from long
7362 to LONGEST.
7363 (dwarf2_compute_name): Change variable value from long to LONGEST.
7364 (read_unsigned_leb128): Change return type, variable result and some
7365 casts from unsigned long to ULONGEST.
7366 (read_signed_leb128): Change return type, variable result and some
7367 casts from long to LONGEST.
7368 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7369 value from long to LONGEST.
7370 (dwarf2_const_value): Change variable value from long to LONGEST.
7371 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7372 plongest and hex_string.
7373 * symtab.h (struct general_symbol_info): Change ivalue from long to
7374 LONGEST, remove the comment.
7375 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7376 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7377
7378 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7379
7380 PR symtab/7259:
7381 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7382 * ada-lang.c (ada_discrete_type_high_bound)
7383 (ada_discrete_type_low_bound): Fix function comment. Use
7384 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7385 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7386 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7387 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7388 Use TYPE_FIELD_ENUMVAL.
7389 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7390 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7391 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7392 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7393 TYPE_CODE_ENUM.
7394 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7395 * dwarf2read.c (process_enumeration_scope): Likewise.
7396 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7397 field.bitpos.
7398 (class StructMainTypePrettyPrinter): Support also
7399 FIELD_LOC_KIND_ENUMVAL.
7400 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7401 TYPE_CODE_ENUM.
7402 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7403 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7404 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7405 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7406 field enumval.
7407 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7408 accommodate enumval.
7409 (struct call_site): Adjust loc_kind to accommodate enumval.
7410 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7411 (TYPE_FIELD_ENUMVAL): New macros.
7412 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7413 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7414 TYPE_CODE_ENUM.
7415 * p-typeprint.c (pascal_type_print_base): Likewise.
7416 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7417 enumval.
7418 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7419 * python/py-type.c (convert_field): New variable addrstring. Use
7420 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7421 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7422 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7423 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7424 TYPE_CODE_ENUM.
7425 * valprint.c (generic_val_print): Likewise.
7426
7427 2012-04-17 Doug Evans <dje@google.com>
7428
7429 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7430
7431 * dwarf2read.c: Whitespace fixes.
7432 (lookup_signatured_type): Tweak comment.
7433 (get_die_type_at_offset): Fix comment.
7434
7435 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7436
7437 * xcoffread.c (xcoff_secnum_to_sections): New function.
7438 (secnum_to_section, secnum_to_bfd_section): Reimplement
7439 using xcoff_secnum_to_sections. Rename "secnum" parameter
7440 into "n_scnum".
7441 (RECORD_MINIMAL_SYMBOL): Delete.
7442 (record_minimal_symbol): New function.
7443 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7444 by call to record_minimal_symbol and set misc_func_recorded
7445 to 1. Set last_csect_sec to the XCOFF section index instead
7446 of GDB's section_offset index. Update calls to
7447 prim_record_minimal_symbol_and_info to pass the BFD section
7448 as well.
7449
7450 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7451
7452 * xcoffread.c (read_xcoff_symtab): Delete variables
7453 last_csect_val and last_csect_sec and associated code.
7454
7455 2012-04-17 Doug Evans <dje@google.com>
7456
7457 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7458 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7459 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7460 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7461
7462 * cleanups.h: New file.
7463 * cleanups.c: New file.
7464 * Makefile.in (SFILES): Add cleanups.c.
7465 (HFILES_NO_SRCDIR): Add cleanups.h.
7466 (COMMON_OBS): Add cleanups.o.
7467 * defs.h (struct cleanup): Moved to cleanups.h.
7468 (do_cleanups,do_final_cleanups): Ditto.
7469 (discard_cleanups,discard_final_cleanups): Ditto
7470 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7471 (save_cleanups,save_final_cleanups): Ditto.
7472 (restore_cleanups,restore_final_cleanups): Ditto.
7473 (null_cleanup): Ditto.
7474 (make_my_cleanup,make_my_cleanup2): Ditto.
7475 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7476 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7477 (do_cleanups,do_final_cleanups): Ditto.
7478 (discard_cleanups,discard_final_cleanups): Ditto
7479 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7480 (save_cleanups,save_final_cleanups): Ditto.
7481 (restore_cleanups,restore_final_cleanups): Ditto.
7482 (null_cleanup): Ditto.
7483 (make_my_cleanup,make_my_cleanup2): Ditto.
7484 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7485
7486 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7487 make_my_cleanup.
7488 (make_cleanup_dyn_string_delete): Ditto.
7489 (make_cleanup_ui_file_delete): Ditto.
7490 (make_cleanup_ui_out_redirect_pop): Ditto.
7491 (make_cleanup_free_section_addr_info): Ditto.
7492 (make_cleanup_restore_integer): Ditto.
7493 (make_cleanup_unpush_target): Ditto.
7494 (make_cleanup_value_free_to_mark): Ditto.
7495 (make_cleanup_value_free): Ditto.
7496 (make_cleanup_free_so): Ditto.
7497
7498 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7499
7500 New option "set debug auto-load".
7501 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7502 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7503 (auto_load_safe_path_vec_update)
7504 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7505 if DEBUG_AUTO_LOAD.
7506 (file_is_auto_load_safe): New parameters debug_fmt and ....
7507 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7508 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7509 caller by explanatory string.
7510 (_initialize_auto_load): Register "set debug auto-load".
7511 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7512 and ....
7513 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7514 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7515 by explanatory string.
7516 * main.c (captured_main): Likewise.
7517 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7518 (source_section_scripts): Likewise.
7519
7520 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7521
7522 New option "set auto-load safe-path".
7523 * NEWS: New commands "set auto-load safe-path"
7524 and "show auto-load safe-path".
7525 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7526 (auto_load_safe_path, auto_load_safe_path_vec)
7527 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7528 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7529 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7530 (source_gdb_script_for_objfile): New variable is_safe. Call
7531 file_is_auto_load_safe. Return if it is not.
7532 (struct loaded_script): New field loaded.
7533 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7534 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7535 output "Missing" to "No".
7536 (_initialize_auto_load): New variable cmd. Initialize
7537 auto_load_safe_path. Register "set auto-load safe-path",
7538 "show auto-load safe-path" and "add-auto-load-safe-path".
7539 * auto-load.h (maybe_add_script): Add parameter loaded.
7540 (file_is_auto_load_safe): New declaration.
7541 * config.in: Regenerate.
7542 * configure: Regenerate.
7543 * configure.ac: New parameters --with-auto-load-safe-path
7544 and --without-auto-load-safe-path.
7545 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7546 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7547 * main.c (captured_main): Check file_is_auto_load_safe for
7548 LOCAL_GDBINIT.
7549 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7550 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7551 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7552 not.
7553
7554 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7555
7556 auto-load: Implementation.
7557 * NEWS: New descriptions for "info auto-load",
7558 "info auto-load gdb-scripts", "info auto-load python-scripts",
7559 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7560 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7561 and "show auto-load-scripts". New description for "set auto-load",
7562 "show auto-load", "set auto-load gdb-scripts",
7563 "show auto-load gdb-scripts", "set auto-load python-scripts",
7564 "show auto-load python-scripts", "set auto-load local-gdbinit",
7565 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7566 "show auto-load libthread-db".
7567 * auto-load.c: Remove include python/python-internal.h. Add includes
7568 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7569 cli/cli-setshow.h.
7570 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7571 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7572 (gdbpy_global_auto_load): Rename to ...
7573 (global_auto_load): ... here.
7574 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7575 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7576 (script_language_gdb, source_gdb_script_for_objfile): New.
7577 (struct loaded_script): New field language.
7578 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7579 LANGUAGE.
7580 (maybe_add_script): Add parameter language. Drop redundant
7581 entry.full_path initialization. Initialize entry.language and
7582 (*slot)->language.
7583 (auto_load_objfile_script): Change parameter suffix to language.
7584 Remove the call of maybe_add_script.
7585 Call language->source_script_for_objfile.
7586 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7587 New.
7588 (collect_matching_scripts): Adjust it for
7589 struct collect_matching_scripts_data.
7590 (auto_load_info_scripts_pattern_nl): New variable.
7591 (info_auto_load_scripts): Rename to ...
7592 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7593 for struct collect_matching_scripts_data.
7594 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7595 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7596 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7597 (auto_load_info_cmdlist_get): New.
7598 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7599 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7600 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7601 "info auto-load local-gdbinit".
7602 * auto-load.h (struct script_language): New.
7603 (gdbpy_global_auto_load): Rename to ...
7604 (global_auto_load): ... here.
7605 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7606 (auto_load_local_gdbinit_loaded): New declarations.
7607 (maybe_add_script): New parameter language.
7608 (auto_load_objfile_script): Change parameter suffix to language.
7609 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7610 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7611 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7612 declarations.
7613 * linux-thread-db.c: Include auto-load.h and ctype.h.
7614 (auto_load_thread_db, show_auto_load_thread_db): New.
7615 (struct thread_db_info): New field filename.
7616 (delete_thread_db_info): Call xfree for FILENAME.
7617 (try_thread_db_load): Initialize FILENAME.
7618 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7619 if !AUTO_LOAD_THREAD_DB.
7620 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7621 (_initialize_thread_db): Install auto_load_thread_db
7622 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7623 as "info auto-load libthread-db".
7624 * main.c (captured_main): Rename gdbpy_global_auto_load to
7625 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7626 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7627 (print_gdb_help): Extend the help for 'local init file'.
7628 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7629 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7630 (auto_load_scripts): Rename to ...
7631 (auto_load_python_scripts): ... here, update the comment.
7632 (gdbpy_load_auto_script_for_objfile): New declaration.
7633 (show_auto_load_python_scripts, script_language_python)
7634 (gdbpy_load_auto_script_for_objfile): New.
7635 (source_section_scripts): Refactor the code.
7636 (load_auto_scripts_for_objfile): Rename to ...
7637 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7638 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7639 (info_auto_load_python_scripts): New.
7640 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7641 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7642 Register "set auto-load-scripts" as its deprecated alias. Register
7643 "info auto-load python-scripts". Register "info auto-load-scripts" as
7644 its deprecated alias.
7645 (load_auto_scripts_for_objfile): Rename to ...
7646 (gdbpy_load_auto_scripts_for_objfile): ... here.
7647 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7648 (gdbpy_load_auto_scripts_for_objfile): ... here.
7649
7650 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7651
7652 auto-load: Move files.
7653 * Makefile.in (SFILES): Add auto-load.c.
7654 (HFILES_NO_SRCDIR): Add auto-load.h.
7655 (COMMON_OBS): Add auto-load.o.
7656 (distclean): Change .gdbinit for gdb-gdb.gdb.
7657 * auto-load.c: New file, with parts from python/py-auto-load.c.
7658 * auto-load.h: New file, with parts from python/python.h.
7659 * configure: Regenerate.
7660 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7661 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7662 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7663 * main.c: Include auto-load.h.
7664 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7665 command.h, observer.h and progspace.h to auto-load.c. Add include
7666 auto-load.h.
7667 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7668 (struct loaded_script, auto_load_pspace_data)
7669 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7670 (hash_loaded_script_entry, eq_loaded_script_entry)
7671 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7672 (maybe_add_script): Move to auto-load.c.
7673 (source_section_scripts): Change maybe_add_script parameters passing,
7674 use script_not_found_warning_print.
7675 (clear_section_scripts, auto_load_objfile_script)
7676 (auto_load_new_objfile, loaded_script_ptr)
7677 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7678 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7679 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7680 auto_load_new_objfile and info_auto_load_scripts initizations to
7681 auto-load.c.
7682 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7683
7684 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 Code cleanup.
7687 * charset.c (find_charset_names): Remove variables ix and elt.
7688 Use free_char_ptr_vec.
7689 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7690 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7691 debugdir_end. New variable debugdir_len.
7692 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7693 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7694 declarations.
7695 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7696 and elt. Use free_char_ptr_vec.
7697 * source.c (add_path): Remove variables argv, arg and argv_index.
7698 New variables dir_vec, back_to, ix and name.
7699 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7700 make_cleanup_freeargv. Remove variable separator. Simplify the code
7701 no longer expecting DIRNAME_SEPARATOR.
7702 (openp): Remove variable p, p1 and len. New variables dir_vec,
7703 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7704 no longer expecting DIRNAME_SEPARATOR.
7705 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7706 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7707 debugdir_end.
7708 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7709 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7710 (dirnames_to_char_ptr_vec): New functions.
7711
7712 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7713
7714 Code cleanup.
7715 * source.c (add_path): Remove always true conditional 'p == 0' and
7716 unindent its code block.
7717
7718 2012-04-17 Pedro Alves <palves@redhat.com>
7719
7720 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7721 (FIELD_BITPOS_LVAL): ... this.
7722 (FIELD_BITPOS): New.
7723 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7724 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7725 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7726 SET_FIELD_BITPOS.
7727 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7728 SET_FIELD_BITPOS.
7729 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7730 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7731 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7732 SET_FIELD_BITPOS.
7733
7734 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7735
7736 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7737 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7738 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7739 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7740 * jv-lang.c (java_link_class_type): Likewise, once.
7741 * stabsread.c (read_enum_type): Likewise.
7742
7743 2012-04-16 Yao Qi <yao@codesourcery.com>
7744
7745 * common/agent.c (agent_run_command): Add one more parameter `len'.
7746 Update callers.
7747 * common/agent.h: Update declaration.
7748 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7749 Update.
7750 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7751
7752 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7753
7754 PR mi/13393
7755 * value.c (value_actual_type): New function.
7756 * value.h (value_actual_type): New declaration.
7757 * varobj.c (update_type_if_necessary): New function.
7758 (varobj_create): Call value_actual_type instead of
7759 value_type.
7760 (install_dynamic_child): distinct changed and type changed MI variable
7761 objects.
7762 (update_dynamic_varobj_children): Updated for install_dynamic_child
7763 change. All callers updated.
7764 (varobj_update): Support for MI variable object type change if
7765 the value changed and RTTI is used to determine the type.
7766 (create_child_with_value): Call value_actual_type instead of
7767 value_type.
7768 (adjust_value_for_child_access): Extended with a new parameter which
7769 specify whether the given value should be casted to enclosing type.
7770 All callers updated.
7771
7772 2012-04-14 Yao Qi <yao@codesourcery.com>
7773
7774 Import gnulib module inttypes from git
7775 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7776 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7777 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7778 gnulib/m4/inttypes-pri.m4
7779 * aclocal.m4, config.in, configure: Regenerated.
7780 * gnulib/Makefile.am: Update.
7781 * gnulib/Makefile.in: Update.
7782 * gnulib/m4/gnulib-cache.m4: Update.
7783 * gnulib/m4/gnulib-comp.m4: Update.
7784 * gnulib/inttypes.in.h: New.
7785 * gnulib/m4/inttypes-pri.m4: New.
7786 * gnulib/m4/inttypes.m4: New.
7787
7788 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7789
7790 * infrun.c (resume): Update PC address to the real PC after
7791 preparing to do displaced stepping.
7792
7793 2012-04-12 Doug Evans <dje@google.com>
7794
7795 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7796 All callers updated.
7797
7798 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7799
7800 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7801
7802 2012-04-12 Doug Evans <dje@google.com>
7803
7804 * dwarf2read.c (create_all_type_units): Renamed from
7805 create_debug_types_hash_table. All callers updated.
7806
7807 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7808 local type_sig to sig_type, type_offset to type_offset_in_tu.
7809 (hash_signatured_type): Renamed from hash_type_signature,
7810 all callers updated.
7811 (eq_signatured_type): Renamed from eq_type_signature,
7812 all callers updated.
7813 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7814 (process_enumeration_scope): Ditto.
7815 (lookup_signatured_type_at_offset): Ditto.
7816 (load_full_type_unit, read_signatured_type): Ditto.
7817
7818 2012-04-12 Yao Qi <yao@codesourcery.com>
7819
7820 * remote.c (async_remote_interrupt): Correct function name in
7821 debug message.
7822 (async_remote_interrupt_twice): Ditto.
7823
7824 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7825
7826 * source.c (find_and_open_source): Consistently pass resulting
7827 full path through xfullpath.
7828
7829 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7830
7831 Provide more specific displaced-stepping memory error message.
7832 * infrun.c (displaced_step_prepare): New variable status. Call
7833 target_read_memory instead of read_memory, provide more specific
7834 error message.
7835
7836 2012-04-11 Tristan Gingold <gingold@adacore.com>
7837
7838 PR gdb/13901
7839 * darwin-nat.c (darwin_execvp): Revert previous patch.
7840
7841 2012-04-11 Tristan Gingold <gingold@adacore.com>
7842
7843 PR gdb/13901
7844 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7845 in case of change.
7846
7847 2012-04-11 Tristan Gingold <gingold@adacore.com>
7848
7849 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7850 warning.
7851
7852 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7853
7854 New command 'explore' which helps explore values and types in
7855 scope.
7856 * NEWS: Add an entry about the new 'explore' command.
7857 * data-directory/Makefile.in: Add gdb/command/explore.py
7858 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7859 command using the GDB Python API.
7860
7861 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7862
7863 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7864 extension in jump target calculation.
7865
7866 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7867
7868 * mips-tdep.c (mips32_next_pc): Handle JALX.
7869
7870 2012-04-10 Yao Qi <yao@codesourcery.com>
7871
7872 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7873
7874 2012-04-10 Yao Qi <yao@codesourcery.com>
7875
7876 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7877 and gnulib/m4/gnulib-tool.m4.
7878
7879 2012-04-10 Doug Evans <dje@google.com>
7880
7881 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7882 (load_partial_dies): Clarify comment.
7883 (find_partial_die): Support rereading type units.
7884 Clarify CU handling, if we know offset is in CU, don't search for the
7885 containing CU. Add comment regarding memory waste.
7886
7887 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7888
7889 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7890 i386/x32-avx and i386/x32-avx-linux.
7891 (i386/x32-expedite): New.
7892 (i386/x32-linux-expedite): Likewise.
7893 (i386/x32-avx-expedite): Likewise.
7894 (i386/x32-avx-linux-expedite): Likewise.
7895 ($(outdir)/i386/x32.dat): Likewise.
7896 ($(outdir)/i386/x32-linux.dat): Likewise.
7897 ($(outdir)/i386/x32-avx.dat): Likewise.
7898 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7899
7900 * features/i386/x32-avx-linux.xml: New file.
7901 * features/i386/x32-avx.xml: Likewise.
7902 * features/i386/x32-core.xml: Likewise.
7903 * features/i386/x32-linux.xml: Likewise.
7904 * features/i386/x32.xml: Likewise.
7905
7906 * features/i386/x32-avx-linux.c: New. Generated.
7907 * features/i386/x32-avx.c: Likewise.
7908 * features/i386/x32-linux.c: Likewise.
7909 * features/i386/x32.c: Likewise.
7910 * regformats/i386/x32-avx-linux.dat: Likewise.
7911 * regformats/i386/x32-avx.dat: Likewise.
7912 * regformats/i386/x32-linux.dat: Likewise.
7913 * regformats/i386/x32.dat: Likewise.
7914
7915 2012-04-10 Tristan Gingold <gingold@adacore.com>
7916
7917 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7918 code to kill the inferior.
7919
7920 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7921
7922 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7923 defines.
7924 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7925 defines.
7926 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7927 (yyvsp): New defines.
7928 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7929 defines.
7930 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7931 defines.
7932 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7933 defines.
7934 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7935 defines.
7936 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7937 defines.
7938
7939 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7940
7941 * sparc64-tdep.c (sparc64_store_arguments)
7942 (sparc64_store_arguments): Fix coding style.
7943
7944 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7945
7946 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7947 complex floats, adjust some related comments and tighten a related
7948 assertion.
7949 (sparc64_extract_return_value): Handle complex floats.
7950
7951 2012-04-07 Doug Evans <dje@google.com>
7952
7953 * dwarf2read.c (load_partial_dies): Change condition to assert.
7954
7955 2012-04-06 Doug Evans <dje@google.com>
7956
7957 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7958 "mov %rsp,%rbp".
7959
7960 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7961
7962 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7963 fencepost error.
7964 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7965 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7966 architecture.
7967
7968 2012-04-05 Keith Seitz <keiths@redhat.com>
7969
7970 * linespec.c (decode_compound): Remove.
7971 (enum offset_relative_sign): New enum.
7972 (struct line_offset): New struct.
7973 (struct linespec): New struct.
7974 (struct linespec_state): Move file_symtabs,
7975 user_filename, and user_function into struct linespec.
7976 Make result an anonymous struct holding vectors of
7977 symbolp and minsym_and_objfile_d.
7978 Add language member.
7979 (enum ls_token_type): New enum.
7980 (linespec_keywords): New array.
7981 (struct ls_token): New struct.
7982 (struct ls_parser): New struct.
7983 (linespec_lexer_lex_number): New function.
7984 (linespec_lexer_lex_keyword): New function.
7985 (is_ada_operator): New function.
7986 (skip_quote_char): New function.
7987 (copy_token_string): New function.
7988 (is_closing_quote_enclosed): New function.
7989 (find_parameter_list_end): New function.
7990 (linespec_lexer_lex_string): New function.
7991 (linespec_lexer_lex_one): New function.
7992 (linespec_lexer_consume_token): New function.
7993 (linespec_lexer_peek_token): New function.
7994 (cplusplus_error): Remove unused function.
7995 (find_methods): Update comment.
7996 (find_toplevel_char): Return const.
7997 (is_objc_method_format): Remove unused function.
7998 (find_toplevel_string): New function.
7999 (is_linespec_boundary): Remove.
8000 (symbol_not_found_error): New function.
8001 (find_method_overload_end): Remove function.
8002 (unexpected_linespec_error): New function.
8003 (keep_name_info): Remove.
8004 (linespec_parse_line_offset): New function.
8005 (linespec_parse_basic): New function.
8006 (canonicalize_linespec): New function.
8007 (decode_line_internal): Remove.
8008 (create_sals_line_offset): New function adapted from
8009 decode_all_digits.
8010 (convert_linespec_to_sals): New function.
8011 (parse_linespec): New function.
8012 (linespec_parser_new): New function.
8013 (linespec_state_destructor): Change parameter type to
8014 struct linespec_state *.
8015 Add language parameter.
8016 Remove freeing of moved members.
8017 (linespec_parser_delete): New function.
8018 (decode_line_full): Use parse_linespec and linespec_parser_new.
8019 (decode_line_1): Likewise.
8020 (decode_indirect): Rename to ...
8021 (linespec_expression_to_pc): ... this and rewrite
8022 to simply find CORE_ADDR, storing this result for later
8023 conversion to SALs.
8024 (locate_first_half): Remove.
8025 (deocde_objc): Add parameter LS.
8026 Initialize new struct collect_info members.
8027 Handle minimal symbols, too.
8028 (decode_compound): Delete.
8029 (lookup_prefix_sym): Rewrite.
8030 (compare_msymbols): New function.
8031 (find_method): Rewrite.
8032 Do not call cplusplus_error.
8033 (symtabs_from_filename): Rewrite.
8034 (collect_function_symbols): Delete.
8035 (find_function_symbols): Rewrite without ARGPTR-style
8036 processing.
8037 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8038 (decode_dollar): Adapted and renamed to ...
8039 (linespec_parse_variable): ... this.
8040 (find_linespec_symbols): New function.
8041 (decode_label): Adapted and renamed to ...
8042 (find_label_symbols): ... this.
8043 (decode_digits_list_mode): Add and use LS argument.
8044 (decode_digits_ordinary): Likewise.
8045 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8046 If in list mode, allow any symbol class. Otherwise, only
8047 permit LOC_BLOCK symbols.
8048 (minsym_found): Update comments.
8049 (search_minsyms_for_name): Do not convert the matching symbol
8050 into a SAL. Simply push the symbol and objfile into the
8051 result vector.
8052 (decode_variable): Delete. Contents adapted into
8053 find_linespec_symbols.
8054
8055 * cp-support.c (SKIP_SPACE): Remove.
8056 (operator_tokens): Remove unused global.
8057 (cp_validate_operator): Remove.
8058 * cp-support.h (cp_validate_operator): Remove declaration.
8059
8060 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8061
8062 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8063 for TYPE_VPTR_FIELDNO.
8064 * valprint.c (valprint_check_validity): Make it global, move the
8065 function comment ...
8066 * value.h (valprint_check_validity): ... to this new declaration.
8067
8068 2012-04-02 Tristan Gingold <gingold@adacore.com>
8069
8070 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8071 the STATE32 api for i386 state.
8072 (i386_darwin_store_inferior_registers): Likewise.
8073
8074 2012-04-02 Tristan Gingold <gingold@adacore.com>
8075
8076 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8077 SS offset.
8078 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8079 format_string.
8080
8081 2012-04-02 Tristan Gingold <gingold@adacore.com>
8082
8083 PR gdb/13901
8084 * darwin-nat.c (darwin_execvp): Set binary preference.
8085
8086 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8087
8088 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8089
8090 2012-03-30 Tom Tromey <tromey@redhat.com>
8091
8092 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8093 of TRY_CATCH. Fix error handling.
8094 * python/py-value.c (convert_value_from_python): Move 'old'
8095 declaration to innermost scope.
8096
8097 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8098 Andrey Smirnov <andrew.smirnov@gmail.com>
8099
8100 -Wshadow warning fix.
8101 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8102 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8103 Adjust code accordingly.
8104
8105 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8106
8107 * ada-lang.c (symbol_completion_add): Rename parameter
8108 "encoded" into "encoded_p". Ajust code and documentation
8109 accordingly.
8110
8111 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8112 Andrey Smirnov <andrew.smirnov@gmail.com>
8113
8114 -Wshadow warning fix.
8115 * ada-lang.c (symbol_completion_add): Rename parameter
8116 "wild_match" into wild_match_p. Update code and documentation
8117 accordingly.
8118
8119 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8120
8121 * ada-lang.c (symbol_completion_match): Rename parameter
8122 "encoded" into "encoded_p". Ajust code and documentation
8123 accordingly.
8124
8125 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8126 Andrey Smirnov <andrew.smirnov@gmail.com>
8127
8128 -Wshadow warning fix.
8129 * ada-lang.c (symbol_completion_match): Rename parameter
8130 "wild_match" into "wild_match_p". Adjust code and function
8131 documentation accordingly.
8132
8133 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8134 Andrey Smirnov <andrew.smirnov@gmail.com>
8135
8136 -Wshadow warning fix.
8137 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8138 "symbol_info" into "info". Adjust code accordingly.
8139 (ada_lookup_symbol): Likewise.
8140
8141 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8142
8143 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8144 of this function's documentation.
8145
8146 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8147 Andrey Smirnov <andrew.smirnov@gmail.com>
8148
8149 -Wshadow warning fix.
8150 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8151 variable into "wild_match_p". Adjust code accordingly.
8152
8153 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8154 Andrey Smirnov <andrew.smirnov@gmail.com>
8155
8156 -Wshadow warning fix.
8157 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8158 parameter into "wild_match_p". Adjust code accordingly.
8159 Document this parameter in the function description.
8160
8161 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8162 Andrey Smirnov <andrew.smirnov@gmail.com>
8163
8164 -Wshadow warning fix.
8165 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8166 "wild_match" parameter to "wild_match_p" (-Wshadow).
8167
8168 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8169
8170 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8171 in function documentation.
8172
8173 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8174 Andrey Smirnov <andrew.smirnov@gmail.com>
8175
8176 -Wshadow warning fix.
8177 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8178 variable into wild_match_p. Adjust code accordingly.
8179
8180 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8181 Andrey Smirnov <andrew.smirnov@gmail.com>
8182
8183 * ada-valprint.c (ada_val_print_1): Move the code handling
8184 TYPE_CODE_ENUM inside its own lexical block. Declare
8185 variables len and val there, instead of in the function's
8186 top level block. Avoid declaring deref_val again in a way
8187 that shadows another variable of the same name declared
8188 in one of the up-level blocks. Just re-use the up-level
8189 variable instead.
8190
8191 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8192
8193 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8194 Replace block_found argument by symbol_info. Adjust
8195 implementation accordingly. Add function documentation.
8196 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8197 Fix documentation.
8198 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8199 * ada-exp.y (write_object_renaming): Adjust to new
8200 ada_lookup_encoded_symbol API.
8201
8202 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8203
8204 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8205 documentation.
8206
8207 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8208
8209 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8210 (v850_register_name): Add the mpu and fpu register names.
8211 (v850e_register_name): Add the mpu and fpu register names.
8212 (v850e2_register_name): New function.
8213 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8214 bfd_mach_v850e2v3.
8215
8216 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8217
8218 * NEWS: Add entry for Ada varobj support.
8219
8220 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8221
8222 * varobj.c (default_value_is_changeable_p): New function,
8223 extracted from varobj_value_is_changeable_p. Add declaration.
8224 (ada_value_is_changeable_p): New function, extracted from
8225 varobj_value_is_changeable_p. Add declaration.
8226 (struct language_specific): New field "value_is_changeable_p".
8227 (languages): Add entries for new field.
8228 (varobj_create): Set language before calling install_new_value.
8229 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8230 "value_is_changeable_p" language callback.
8231
8232 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8233
8234 * ada-varobj.h, ada-varobj.c: New files.
8235 * Makefile.in (SFILES): Add ada-varobj.c.
8236 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8237 (COMMON_OBS): Add ada-varobj.o.
8238
8239 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8240
8241 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8242 (struct language_specific): New field "value_has_mutated".
8243 (languages): Set field "value_has_mutated" in each entry of array.
8244 (varobj_value_has_mutated): New function.
8245 (varobj_udpdate): Add handling of type mutation.
8246 (value_of_root): Add handling of type mutation.
8247 (ada_value_has_mutated): New function.
8248
8249 2012-03-28 Pedro Alves <palves@redhat.com>
8250
8251 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8252 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8253
8254 2012-03-28 Tom Tromey <tromey@redhat.com>
8255
8256 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8257 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8258 before returning.
8259
8260 2012-03-28 Tom Tromey <tromey@redhat.com>
8261
8262 * .dir-locals.el: New file.
8263
8264 2012-03-28 Pedro Alves <palves@redhat.com>
8265
8266 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8267
8268 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8269
8270 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8271 handling for r0.
8272
8273 2012-03-27 Pedro Alves <palves@redhat.com>
8274
8275 Eliminate struct ui_stream.
8276
8277 * ui-out.h (struct ui_stream): Delete.
8278 (ui_out_field_stream): Adjust prototype.
8279 (ui_out_stream_new, ui_out_stream_delete)
8280 (make_cleanup_ui_out_stream_delete): Delete declarations.
8281 * ui-out.c (ui_out_field_stream): Change prototype to take a
8282 ui_file instead of a ui_stream. Adjust.
8283 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8284 (make_cleanup_ui_out_stream_delete): Delete.
8285 * breakpoint.c (print_breakpoint_location)
8286 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8287 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8288 * disasm.c (dump_insns): Ditto.
8289 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8290 prototype.
8291 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8292 ui_stream/ui_out_stream_new.
8293 * infcmd.c (print_return_value): Ditto.
8294 * osdata.c (info_osdata_command): Don't allocate a local
8295 ui_stream.
8296 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8297 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8298 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8299 allocate a local ui_stream.
8300 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8301 instead of ui_stream/ui_out_stream_new.
8302 (list_args_or_locals): Don't allocate a local ui_stream.
8303 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8304 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8305 ui_stream/ui_out_stream_new.
8306 * cli/cli-setshow.c (do_setshow_command): Ditto.
8307
8308 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8309
8310 * arm-linux-tdep.c (arm_linux_init_abi): Call
8311 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8312 * arm-tdep.c (arm_process_record): New function.
8313 (deallocate_reg_mem): New function.
8314 (decode_insn): New function.
8315 (thumb_record_branch): New function.
8316 (thumb_record_ldm_stm_swi(): New function.
8317 (thumb_record_misc): New function.
8318 (thumb_record_ld_st_stack): New function.
8319 (thumb_record_ld_st_imm_offset): New function.
8320 (thumb_record_ld_st_reg_offset(): New function.
8321 (thumb_record_add_sub_cmp_mov): New function.
8322 (thumb_record_shift_add_sub): New function.
8323 (arm_record_coproc_data_proc): New function.
8324 (arm_record_coproc): New function.
8325 (arm_record_b_bl): New function.
8326 (arm_record_ld_st_multiple): New function.
8327 (arm_record_ld_st_reg_offset): New function.
8328 (arm_record_ld_st_imm_offset): New function.
8329 (arm_record_data_proc_imm): New function.
8330 (arm_record_data_proc_misc_ld_str): New function.
8331 (arm_record_extension_space): New function.
8332 (arm_record_strx): New function.
8333 (sbo_sbz): New function.
8334 (struct insn_decode_record): New structure for arm insn record.
8335 (REG_ALLOC): New macro for reg allocations.
8336 (MEM_ALLOC): New macro for memory allocations.
8337 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8338
8339 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8340
8341 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8342 (store_register): Likewise.
8343
8344 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8345
8346 * MAINTAINERS (Write After Approval): Add myself to the list.
8347
8348 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8349
8350 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8351 Describe also the option "auto".
8352
8353 2012-03-22 Richard Henderson <rth@redhat.com>
8354
8355 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8356 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8357
8358 2012-03-22 Richard Henderson <rth@redhat.com>
8359
8360 * jit.c (jit_read_code_entry): Compute alignment and offset of
8361 int64_t member before computing entry_size.
8362
8363 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8364
8365 Python scripting: Add new method Value.referenced_value to
8366 gdb.Value which can dereference pointer as well as reference
8367 values.
8368 * NEWS: Add entry under 'Python scripting' about the new method
8369 Value.referenced_value on gdb.Value objects.
8370 * python/py-value.c (valpy_referenced_value): New function
8371 defining a new method on gdb.Value objects which can dereference
8372 pointer and reference values.
8373
8374 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8375
8376 * MAINTAINERS (Write After Approval): Add myself to the list.
8377
8378 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8379
8380 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8381 in addition to "main".
8382
8383 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8384
8385 * expression.h (op_name): Add declaration.
8386 * expprint.c (op_name): Remove declaration. Make non-static.
8387 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8388
8389 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8390
8391 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8392 of struct siginfo.
8393 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8394 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8395 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8396 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8397 (linux_nat_get_siginfo): Likewise.
8398 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8399 (linux_nat_get_siginfo): Likewise.
8400 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8401 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8402 * procfs.c (gdb_siginfo_t): Likewise.
8403
8404 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8405
8406 * .gitignore: Ignore more files.
8407
8408 2012-03-20 Pedro Alves <palves@redhat.com>
8409
8410 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8411 returns.
8412
8413 2012-03-20 Yao Qi <yao@codesourcery.com>
8414
8415 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8416 comment.
8417
8418 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8419
8420 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8421 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8422 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8423 sect_offset.
8424 * dwarf2expr.h (cu_offset, sect_offset): New types.
8425 (struct dwarf_expr_context_funcs) <dwarf_call>
8426 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8427 sect_offset.
8428 (struct dwarf_expr_context) <len>: Improve the comment.
8429 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8430 cu_offset and sect_offset.
8431 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8432 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8433 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8434 * dwarf2loc.h: Include dwarf2expr.h.
8435 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8436 and sect_offset.
8437 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8438 Improve the comment.
8439 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8440 (struct signatured_type, struct line_header, struct partial_die_info)
8441 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8442 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8443 (get_die_type_at_offset, create_cus_from_index)
8444 (create_signatured_type_table_from_index, dw2_get_file_names)
8445 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8446 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8447 (create_debug_types_hash_table, process_psymtab_comp_unit)
8448 (load_partial_comp_unit, create_all_comp_units)
8449 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8450 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8451 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8452 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8453 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8454 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8455 (find_partial_die, read_attribute_value, lookup_die_type)
8456 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8457 (is_ref_attr): New function comment.
8458 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8459 Use cu_offset and sect_offset.
8460 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8461 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8462 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8463 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8464 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8465 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8466 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8467 sect_offset.
8468
8469 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8470
8471 Code cleanup.
8472 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8473 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8474 with xfree.
8475 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8476
8477 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8478
8479 * NEWS: Describe new options --init-command=FILE, -ix and
8480 --init-eval-command=COMMAND, -iex.
8481 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8482 CMDARG_INIT_COMMAND.
8483 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8484 "init-command", "init-eval-command", "ix" and "iex" to the variable
8485 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8486 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8487 (print_gdb_help): Describe --init-command=FILE, -ix and
8488 --init-eval-command=COMMAND, -iex.
8489
8490 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8491
8492 Code cleanup.
8493 * main.c (struct cmdarg): Move it here from main. Add more comments.
8494 (cmdarg_s, VEC (cmdarg_s)): New.
8495 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8496 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8497 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8498 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8499 of CMDARG.
8500
8501 2012-03-19 Tom Tromey <tromey@redhat.com>
8502
8503 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8504
8505 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8506
8507 PR symtab/13777
8508 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8509 GCC >=4.5.
8510
8511 2012-03-16 Chris January <chris.january@allinea.com>
8512
8513 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8514 of clear.
8515
8516 2012-03-16 Chris January <chris.january@allinea.com>
8517
8518 * source.c (add_path): Use memmove instead of strcpy because the
8519 strings overlap.
8520
8521 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8522
8523 * value.h (set_value_parent): Add declaration.
8524 * value.c (set_value_parent): New function.
8525 (value_address): If VALUE->PARENT is not NULL, then use it as
8526 the base address instead of VALUE->LOCATION.address.
8527 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8528 the same as OBJ's address. Adjust V's offset accordingly.
8529 Set V's parent.
8530
8531 2012-03-16 Gary Benson <gbenson@redhat.com>
8532
8533 PR breakpoints/10738
8534 * dwarf2read.c (use_deprecated_index_sections): New global.
8535 (struct partial_die_info): New member may_be_inlined.
8536 (read_partial_die): Set may_be_inlined where appropriate.
8537 (add_partial_subprogram): Add partial symbols for partial
8538 DIEs that may be inlined.
8539 (new_symbol_full): Add inlined subroutines to the current
8540 scope.
8541 (write_psymtabs_to_index): Bump version number.
8542 (dwarf2_read_index): Read only version 6 indices unless
8543 use_deprecated_index_sections is set.
8544 * linespec.c (symbol_and_data_callback): New structure.
8545 (iterate_inline_only): New function.
8546 (iterate_over_all_matching_symtabs): New argument
8547 "include_inline". If nonzero, also call the callback for
8548 symbols representing inlined subroutines.
8549 (lookup_prefix_sym): Pass extra argument to the above.
8550 (find_function_symbols): Likewise.
8551 (add_matching_symbols_to_info): Likewise.
8552 * NEWS: Mention that GDB can now set breakpoints on inlined
8553 functions.
8554
8555 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8556
8557 * p-typeprint.c (pascal_type_print_method_args):
8558 Fix display of parameter of methods.
8559
8560 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8561
8562 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8563 Add missing prototype.
8564
8565 2012-03-16 Yao Qi <yao@codesourcery.com>
8566 Jan Kratochvil <jan.kratochvil@redhat.com>
8567
8568 Fix false compilation warning.
8569 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8570
8571 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8572 Pedro Alves <pedro@codesourcery.com>
8573
8574 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8575 (arm_register_g_packet_guesses): New function.
8576 (arm_gdbarch_init): Don't force a target description with
8577 registers when the executable is detected as M-profile. Instead
8578 set gdbarch->tdep->is_m. Register `g' packet guesses.
8579 (_initialize_arm_tdep): Initialize the new target description.
8580 * features/arm-with-m-fpa-layout.xml: New description.
8581 * features/arm-with-m-fpa-layout.c: New, generated.
8582
8583 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8584
8585 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8586 Update function description.
8587 (insert_bp_location): Do not wipe bl->target_info out.
8588 * mem-break.c: #include "gdb_string.h".
8589 (default_memory_insert_breakpoint): Do not call target_read_memory
8590 with a pointer to the breakpoint's shadow_contents buffer. Use
8591 a local buffer instead.
8592 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8593
8594 2012-03-15 Tom Tromey <tromey@redhat.com>
8595
8596 * NEWS: Mention "info vtbl", not "info vtable".
8597 * cp-support.c (info_vtbl_command): Fix comment.
8598 (_initialize_cp_support): Fix text.
8599
8600 2012-03-15 Tom Tromey <tromey@redhat.com>
8601
8602 * cp-valprint.c (cp_print_value_fields): Use
8603 print_function_pointer_address for vtable slot.
8604
8605 2012-03-15 Tom Tromey <tromey@redhat.com>
8606
8607 * gnu-v3-abi.c (struct value_and_voffset): New.
8608 (hash_value_and_voffset, eq_value_and_voffset)
8609 (compare_value_and_voffset, compute_vtable_size)
8610 (print_one_vtable, gnuv3_print_vtable): New functions.
8611 (init_gnuv3_ops): Initialize 'print_vtable' field.
8612 * cp-support.c (info_vtbl_command): New function.
8613 (_initialize_cp_support): Add "info vtbl".
8614 * cp-abi.h (cplus_print_vtable): Declare.
8615 (struct cp_abi_ops) <print_vtable>: New field.
8616 * cp-abi.c (cplus_print_vtable): New function.
8617 * NEWS: Update.
8618
8619 2012-03-15 Tom Tromey <tromey@redhat.com>
8620
8621 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8622 iterate_over_symbols.
8623
8624 2012-03-14 Doug Evans <dje@google.com>
8625
8626 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8627 DW_OP_GNU_parameter_ref.
8628
8629 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8630
8631 Fix double prompt of 'interpreter-exec mi'.
8632 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8633 (mi_interpreter_resume): use it.
8634 (mi_execute_command_input_handler): New function.
8635 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8636 mi_execute_command_input_handler.
8637
8638 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8639
8640 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8641 prototype.
8642 (darwin_debug_port_info): Make static.
8643 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8644 * machoread.c (_initialize_machoread): Add prototype.
8645 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8646 (i386_darwin_set_control, i386_darwin_get_control)
8647 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8648 i386_darwin_get_status, i386_darwin_get_control):
8649 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8650
8651 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8652
8653 * ax-gdb.c (gen_usual_unary): Remove special handling of
8654 enum and bool types.
8655
8656 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8657
8658 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8659
8660 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8661
8662 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8663
8664 2012-03-13 Chris January <chris.january@allinea.com>
8665
8666 * aix-thread.c (fill_sprs): Store the floating point registers
8667 at the correct offsets into vals.
8668
8669 2012-03-13 Doug Evans <dje@google.com>
8670
8671 * NEWS: Mention symbol-reloading has been deleted.
8672 * symfile.c (symbol_reloading): Delete.
8673 (show_symbol_reloading): Delete.
8674 (_initialize_symfile): Delete set/show symbol-reloading.
8675
8676 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8677 read_in_chain until we have successfully read it in.
8678 (load_full_comp_unit): Ditto.
8679 (read_signatured_type): Add comment.
8680
8681 2012-03-13 Chris January <chris.january@allinea.com>
8682
8683 * stabsread.c (fix_common_block): Change type of valu argument
8684 to CORE_ADDR.
8685
8686 2012-03-13 Chris January <chris.january@allinea.com>
8687
8688 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8689 instruction.
8690
8691 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8692
8693 * common/linux-procfs.c (linux_proc_get_int): New, from
8694 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8695 field.
8696 (linux_proc_get_tgid): Only call linux_proc_get_int.
8697 (linux_proc_get_tracerpid): New.
8698 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8699 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8700 linux_proc_pid_has_state.
8701 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8702 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8703 (linux_ptrace_attach_warnings): New.
8704 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8705 New declaration.
8706 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8707 (linux_nat_attach): New variables ex, buffer, message and message_s.
8708 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8709
8710 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8711
8712 * Makefile.in (linux-ptrace.o): New.
8713 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8714 from linux-nat.c.
8715 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8716 * common/linux-ptrace.c: New file.
8717 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8718 * config/arm/linux.mh: Likewise.
8719 * config/i386/linux.mh: Likewise.
8720 * config/i386/linux64.mh: Likewise.
8721 * config/ia64/linux.mh: Likewise.
8722 * config/m32r/linux.mh: Likewise.
8723 * config/m68k/linux.mh: Likewise.
8724 * config/mips/linux.mh: Likewise.
8725 * config/pa/linux.mh: Likewise.
8726 * config/powerpc/linux.mh: Likewise.
8727 * config/powerpc/ppc64-linux.mh: Likewise.
8728 * config/powerpc/spu-linux.mh: Likewise.
8729 * config/s390/s390.mh: Likewise.
8730 * config/sparc/linux.mh: Likewise.
8731 * config/sparc/linux64.mh: Likewise.
8732 * config/xtensa/linux.mh: Likewise.
8733 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8734 common/linux-procfs.c.
8735 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8736
8737 2012-03-13 Hui Zhu <teawater@gmail.com>
8738 Pedro Alves <palves@redhat.com>
8739
8740 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8741 CREATE_BREAKPOINT_FLAGS_INSERTED.
8742 (create_breakpoint_sal, create_breakpoints_sal)
8743 (base_breakpoint_create_breakpoints_sal)
8744 (tracepoint_create_breakpoints_sal)
8745 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8746 down.
8747 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8748 (ftrace_command, strace_command): Adjust.
8749 (create_tracepoint_from_upload): Pass
8750 CREATE_BREAKPOINT_FLAGS_INSERTED.
8751 * breakpoint.h (enum breakpoint_create_flags): New.
8752 (create_breakpoint): New flags parameter.
8753 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8754 * python/py-breakpoint.c (bppy_init): Adjust.
8755 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8756 * spu-tdep.c (spu_catch_start): Adjust.
8757
8758 2012-03-13 Pedro Alves <palves@redhat.com>
8759 Hui Zhu <teawater@gmail.com>
8760 Yao Qi <yao@codesourcery.com>
8761
8762 * remote.c (struct remote_state): New field `starting_up'.
8763 (remote_start_remote): Set and clear it.
8764 (remote_can_download_tracepoint): If starting up, return false.
8765
8766 2012-03-13 Yao Qi <yao@codesourcery.com>
8767
8768 * inferior.h (struct inferior): Remove fields any_syscall_count,
8769 syscalls_counts and total_syscalls_count. Move them to new
8770 struct catch_syscall_inferior_data in breakpoint.c.
8771 * breakpoint.c: Call DEF_VEC_I(int).
8772 (struct catch_syscall_inferior_data): New.
8773 (get_catch_syscall_inferior_data): New.
8774 (catch_syscall_inferior_data_cleanup): New.
8775 (insert_catch_syscall): Update to access data in
8776 struct catch_syscall_inferior_data.
8777 (insert_catch_syscall): Likewise.
8778 (remove_catch_syscall): Likewise.
8779 (remove_catch_syscall): Likewise.
8780 (is_syscall_catchpoint_enabled): Likewise.
8781 (add_catch_command): Likewise.
8782 (_initialize_breakpoint): Register cleanup.
8783 * breakpoint.h: Removed DEF_VEC_I(int).
8784 * dwarf2loc.c: Call DEF_VEC_I(int).
8785 * mi/mi-main.c: Likewise.
8786
8787 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8788
8789 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8790
8791 2012-03-12 Chris January <chris.january@allinea.com>
8792
8793 * aix-thread.c (_initialize_aix_thread): Add prototype.
8794 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8795 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8796
8797 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8798
8799 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8800 include of "amd64-nat.h".
8801
8802 2012-03-12 Tom Tromey <tromey@redhat.com>
8803
8804 * buildsym.c (record_pending_block): Now static.
8805 * buildsym.h: (record_pending_block): Remove.
8806
8807 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8808
8809 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8810
8811 2012-03-09 Tom Tromey <tromey@redhat.com>
8812
8813 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8814 producer_is_gxx_lt_4_6>: New fields.
8815 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8816
8817 2012-03-09 Tom Tromey <tromey@redhat.com>
8818
8819 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8820
8821 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8822
8823 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8824 prototype.
8825
8826 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8827
8828 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8829
8830 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8831
8832 Fix -Wmissing-prototypes build.
8833 * arm-linux-nat.c (get_thread_id): Make it static.
8834 * xtensa-linux-nat.c (get_thread_id): Likewise.
8835
8836 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8837
8838 * server.c (process_point_options): If a conditional expression
8839 is found, only print a message if remote_debug is nonzero.
8840
8841 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8842
8843 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8844 of internal error for unknown/unsupported types.
8845
8846 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8847
8848 Fix CU relative vs. absolute DIE offsets.
8849 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8850 offset to offset_in_cu.
8851 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8852 TYPE_OFFSET.
8853 (dwarf2_fetch_die_location_block): Rename parameter offset to
8854 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8855
8856 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8857
8858 * libunwind-frame.c: Rename to ...
8859 * ia64-libunwind-tdep.c: ... here.
8860 * libunwind-frame.h: Rename to ...
8861 * ia64-libunwind-tdep.h: ... here.
8862 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8863 ia64-libunwind-tdep.h.
8864 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8865 * README (--with-libunwind): Rename to ...
8866 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8867 * config.in: Regenerate.
8868 * configure: Regenerate.
8869 * configure.ac: New option --with-libunwind-ia64, make the
8870 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8871 Remove AC_DEFINE for HAVE_LIBUNWIND.
8872 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8873 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8874 Rename libunwind-frame in the general comment.
8875 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8876 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8877 Move forward declarations inside #ifndef. Rename libunwind-frame in
8878 the general comment.
8879 * ia64-tdep.c: Rename libunwind-frame.h #include to
8880 ia64-libunwind-tdep.h.
8881 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8882 (ia64_libunwind_descr): Rename libunwind-frame to
8883 ia64-libunwind-tdep in these function comments.
8884 * ia64-tdep.h: Rename libunwind-frame.h #include to
8885 ia64-libunwind-tdep.h.
8886 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8887 ia64-libunwind-tdep in that data comment.
8888
8889 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8890
8891 * libunwind-frame.h (struct frame_unwind): New declaration.
8892
8893 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8894
8895 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8896 "set breakpoint condition-evaluation" command.
8897
8898 2012-03-08 Tristan Gingold <gingold@adacore.com>
8899
8900 * sparc-stub.c: Move to stubs/
8901 * sh-stub.c: Likewise.
8902 * m68k-stub.c: Likewise.
8903 * m32r-stub.c: Likewise.
8904 * i386-stub.c: Likewise.
8905
8906 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8907
8908 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8909 linux_get_siginfo_type.
8910
8911 * m68klinux-nat.c: Include "gdb_proc_service.h".
8912 (PTRACE_GET_THREAD_AREA): Define.
8913 (ps_get_thread_area): New function.
8914
8915 2012-03-08 Yao Qi <yao@codesourcery.com>
8916
8917 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8918 `xsnprintf'.
8919 (remote_query_attached): Likewise.
8920 (remote_static_tracepoint_marker_at): Likewise.
8921 (remote_set_permissions): Likewise.
8922 (remote_detach_1, extended_remote_attach_1): Likewise.
8923 (send_g_packet, remote_vkill): Likewise.
8924 (extended_remote_disable_randomization): Likewise.
8925 (remote_add_target_side_condition): Likewise.
8926 (remote_insert_breakpoint): Likewise.
8927 (remote_remove_breakpoint): Likewise.
8928 (remote_insert_watchpoint): Likewise.
8929 (remote_remove_watchpoint): Likewise.
8930 (remote_insert_hw_breakpoint): Likewise.
8931 (remote_insert_hw_breakpoint): Likewise.
8932 (remote_remove_hw_breakpoint): Likewise.
8933 (remote_download_command_source): Likewise.
8934 (remote_download_tracepoint): Likewise.
8935 (remote_download_trace_state_variable): Likewise.
8936 (remote_disable_tracepoint): Likewise.
8937 (remote_trace_set_readonly_regions): Likewise.
8938 (remote_get_tracepoint_status): Likewise.
8939 (remote_trace_find): Likewise.
8940 (remote_get_trace_state_variable_value): Likewise.
8941 (remote_set_disconnected_tracing): Likewise.
8942 (remote_set_circular_trace_buffer): Likewise.
8943 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8944 (remote_use_agent): Likewise.
8945 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8946 Update callers.
8947
8948 2012-03-07 Pedro Alves <palves@redhat.com>
8949
8950 * NEWS: Mention QProgramSignals.
8951 * inferior.h (update_signals_program_target): Declare.
8952 * infrun.c: (update_signals_program_target): New.
8953 (handle_command): Update the target of the new program signals
8954 array changes.
8955 * remote.c (PACKET_QProgramSignals): New enum.
8956 (last_program_signals_packet): New global.
8957 (remote_program_signals): New.
8958 (remote_start_remote): Update the target with the program signals
8959 list.
8960 (remote_protocol_features): Add entry for QPassSignals.
8961 (remote_open_1): Free anc clear last_program_signals_packet.
8962 (init_remote_ops): Install remote_program_signals.
8963 * target.c (update_current_target): Adjust.
8964 (target_program_signals): New.
8965 * target.h (struct target_ops) <to_program_signals>: New field.
8966 (target_program_signals): Declare.
8967
8968 2012-03-07 Pedro Alves <palves@redhat.com>
8969
8970 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8971 extensions.
8972
8973 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8974
8975 * m68klinux-nat.c (getregs_supplies): Make static.
8976 (getfpregs_supplies): Likewise.
8977 (have_ptrace_getregs): Likewise.
8978
8979 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8980
8981 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8982 in call to get_die_type_at_offset.
8983
8984 2012-03-06 Stan Shebs <stan@codesourcery.com>
8985
8986 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8987 * mi/mi-cmd-disas.c: Ditto.
8988 * mi/mi-cmd-env.c: Ditto.
8989 * mi/mi-cmd-file.c: Ditto.
8990 * mi/mi-cmd-stack.c: Ditto.
8991 * mi/mi-cmd-target.c: Ditto.
8992 * mi/mi-cmd-var.c: Ditto.
8993 * mi/mi-cmds.c: Ditto.
8994 * mi/mi-cmds.h: Ditto.
8995 * mi/mi-console.c: Ditto.
8996 * mi/mi-getopt.c: Ditto.
8997 * mi/mi-getopt.h: Ditto.
8998 * mi/mi-interp.c: Ditto.
8999 * mi/mi-main.c: Ditto.
9000 * mi/mi-out.c: Ditto.
9001 * mi/mi-parse.c: Ditto.
9002 * mi/mi-parse.h: Ditto.
9003 * mi/mi-symbol-cmds.c: Ditto.
9004
9005 * mi/mi-getopt.h: Move mi_opt struct up.
9006 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9007 return.
9008 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9009
9010 2012-03-06 Tom Tromey <tromey@redhat.com>
9011
9012 * proc-service.c (ps_pglobal_lookup): Set the current program
9013 space.
9014
9015 2012-03-06 Pedro Alves <palves@redhat.com>
9016
9017 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9018
9019 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9020
9021 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9022
9023 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9024
9025 Code cleanup.
9026 * common/linux-osdata.c (linux_common_core_of_thread): New function
9027 comment.
9028 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9029 call by linux_common_core_of_thread.
9030 (linux_nat_core_of_thread_1): Remove.
9031 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9032 * linux-thread-db.c: Include linux-osdata.h.
9033 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9034 linux_common_core_of_thread.
9035
9036 2012-03-05 Tom Tromey <tromey@redhat.com>
9037
9038 * value.c (value_primitive_field): Don't fetch contents for
9039 non-virtual bases.
9040
9041 2012-03-05 Tom Tromey <tromey@redhat.com>
9042
9043 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9044
9045 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9046
9047 * s390-nat.c: Include "gregset.h".
9048
9049 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9050
9051 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9052 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9053 (libunwind_load): New variable so_error, use it for dlerror. Try to
9054 load also LIBUNWIND_SO_7.
9055
9056 2012-03-05 Pedro Alves <palves@redhat.com>
9057
9058 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9059 is not NULL, and remove resulting dead code.
9060
9061 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9062
9063 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9064 prologue to sh_analyze_prologue.
9065 (sh_analyze_prologue): Make better use of such an upper limit, and
9066 generally be more cautious about accessing memory.
9067
9068 2012-03-05 Tom Tromey <tromey@redhat.com>
9069
9070 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9071 _initialize_ia64_hpux_tdep.
9072
9073 2012-03-05 Pedro Alves <palves@redhat.com>
9074
9075 PR gdb/13766
9076
9077 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9078 the register state is clear, supply explicit zero, instead of
9079 marking the register unavailable.
9080
9081 2012-03-05 Tristan Gingold <gingold@adacore.com>
9082
9083 * NEWS: Mention OpenVMS ia64 new target.
9084
9085 2012-03-05 Tristan Gingold <gingold@adacore.com>
9086
9087 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9088 (ia64_unw_accessors, ia64_unw_rse_accessors)
9089 (ia64_libunwind_descr): Declare.
9090 * ia64-vms-tdep.c: New file.
9091 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9092 (ia64_libunwind_descr): Make them public.
9093 * configure.tgt: Add ia64-*-*vms*.
9094 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9095 (ALLDEPFILES): Add ia64-vms-tdep.c
9096
9097 2012-03-05 Tristan Gingold <gingold@adacore.com>
9098
9099 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9100 * remote.c (PACKET_qXfer_uib): New enum value.
9101 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9102 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9103 (_initialize_remote): Call add_packet_config_cmd for
9104 xfer:uib packet.
9105
9106 2012-03-05 Tristan Gingold <gingold@adacore.com>
9107
9108 * osabi.c (gdb_osabi_names): Add OpenVMS.
9109 (generic_elf_osabi_sniffer): Likewise.
9110 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9111
9112 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9113
9114 Removed unused code.
9115 * libunwind-frame.c (libunwind_frame_unwind)
9116 (libunwind_frame_base_address): Remove.
9117 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9118
9119 2012-03-04 Yao Qi <yao@codesourcery.com>
9120
9121 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9122 remove trailing new line.
9123 (agent_run_command, agent_run_command): Add _ markup.
9124 (agent_capability_check): Likewise.
9125
9126 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9127
9128 * breakpoint.c (set_condition_evaluation_mode): Set
9129 CONDITION_EVALUATION_MODE unconditionally.
9130
9131 2012-03-03 Yao Qi <yao@codesourcery.com>
9132
9133 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9134 * common/agent.h: Update declaration.
9135 * inf-child.c (inf_child_use_agent): New.
9136 (inf_child_can_use_agent): New.
9137 (inf_child_target): Initialize fields `to_use_agent'
9138 and `to_can_use_agent'.
9139 * agent.c (agent_new_objfile): New.
9140 (_initialize_agent): Add agent_new_objfile to new_objfile
9141 observer.
9142
9143 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9144 New.
9145 (linux_target_install_ops): Initialize field
9146 `to_static_tracepoint_markers_by_strid'.
9147 * remote.c (free_current_marker): Move it to ...
9148 * tracepoint.c (free_current_marker): ... here. New.
9149 (cleanup_target_stop): New.
9150 * tracepoint.h: Declare free_current_marker.
9151 * NEWS: Add one entry about `info static-tracepoint-marker'.
9152
9153 2012-03-03 Yao Qi <yao@codesourcery.com>
9154
9155 * common/agent.c (agent_loaded_p): New.
9156 (agent_look_up_symbols): New global.
9157 * common/agent.h: Declare agent_loaded_p.
9158
9159 2012-03-03 Yao Qi <yao@codesourcery.com>
9160
9161 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9162 (agent_capability_check, agent_capability_invalidate): New.
9163 (symbol_list): New array element.
9164 * common/agent.h (enum agent_capa): New.
9165 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9166
9167 2012-03-03 Yao Qi <yao@codesourcery.com>
9168
9169 * target.h (struct target_ops) <to_use_agent>: New field.
9170 (struct target_ops) <to_can_use_agent>: New field.
9171 (target_use_agent, target_can_use_agent): New macro.
9172 * target.c (update_current_target): Update.
9173 * remote.c: New enum `PACKET_QAgent'.
9174 (remote_protocol_features): Add a new element.
9175 (remote_use_agent, remote_can_use_agent): New.
9176 (init_remote_ops): Initialize field `can_use_agent' with
9177 remote_can_use_agent. Intiailize field `use_agent' with
9178 remote_use_agent.
9179 * common/agent.c (use_agent): New global.
9180 * common/agent.h: Declare it.
9181 * tracepoint.c (info_static_tracepoint_markers_command): Add
9182 comment.
9183 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9184 (COMMON_OBS): Add common/agent.o and agent.o
9185 (common-agent.o): New rule.
9186 * agent.c: New.
9187
9188 2012-03-03 Yao Qi <yao@codesourcery.com>
9189
9190 * common/agent.c: New.
9191 * common/agent.h: New.
9192 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9193 AC_CHECK_HEADERS.
9194 * configure, configh.in: Regenerated.
9195
9196 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9197
9198 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9199 unless it exists for this architecture.
9200
9201 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9202
9203 * language.h (struct language_defn): New "method" la_read_var_value.
9204 * findvar.c: #include "language.h".
9205 (default_read_var_value): Renames read_var_value. Rewrite
9206 function description.
9207 (read_var_value): New function.
9208 * value.h (default_read_var_value): Add prototype.
9209 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9210 New functions.
9211 (ada_language_defn): Add entry for la_read_var_value.
9212 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9213 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9214 language_defn structures to add entry for new la_read_var_value
9215 field.
9216
9217 2012-03-02 Tom Tromey <tromey@redhat.com>
9218 Pedro Alves <palves@redhat.com>
9219
9220 PR breakpoints/13776:
9221 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9222 breakpoints.
9223 (delete_longjmp_breakpoint_at_next_stop): New.
9224 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9225 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9226 before deleting the inferior. Add comments.
9227 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9228 breakpoints immediately, but only on next stop. Move that code
9229 next to where we mark other breakpoints for deletion.
9230
9231 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9232
9233 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9234 marker.
9235 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9236 violation.
9237
9238 2012-03-02 Pedro Alves <palves@redhat.com>
9239
9240 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9241
9242 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9243
9244 Fix -Wmissing-prototypes build.
9245 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9246 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9247 (gdbsim_has_memory): Likewise.
9248
9249 2012-03-02 Yao Qi <yao@codesourcery.com>
9250
9251 Fix -Wmissing-prototypes build.
9252 * charset.c (phony_iconv_open): Make static.
9253 (phony_iconv_close, phony_iconv): Likewise.
9254 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9255 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9256 prototype.
9257 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9258 * ser-mingw.c (create_select_thread): Make static.
9259 * windows-termcap.c (tgetent): New prototype.
9260 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9261
9262 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9263
9264 Fix -Wmissing-prototypes build.
9265 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9266 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9267 (_initialize_loadable): New prototypes.
9268
9269 2012-03-02 Doug Evans <dje@google.com>
9270
9271 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9272 abbrev table, read_comp_unit will do it.
9273
9274 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9275
9276 Fix -Wmissing-prototypes build.
9277 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9278 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9279 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9280 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9281 (_initialize_arm_symbian_tdep): New prototype.
9282 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9283 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9284 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9285 static.
9286 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9287 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9288 prototype.
9289 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9290 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9291 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9292 static.
9293 * moxie-tdep.c (moxie_process_record): Likewise.
9294 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9295 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9296 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9297 (_initialize_rl78_tdep): New prototype.
9298 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9299 (_initialize_rx_tdep): New prototype.
9300 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9301 (_initialize_darwin_solib): New prototype.
9302 * solib-spu.c: Include solib-spu.h.
9303 (_initialize_spu_solib): New prototype.
9304 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9305 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9306 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9307 (tic6x_software_single_step): Make it static.
9308 (_initialize_tic6x_tdep): New prototype.
9309
9310 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9311
9312 Fix -Wmissing-prototypes build.
9313 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9314 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9315
9316 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9317
9318 Fix -Wmissing-prototypes build.
9319 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9320 (frv_have_stopped_data_address): Remove.
9321
9322 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9323
9324 Fix -Wmissing-prototypes build.
9325 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9326 * sh-tdep.c: Include sh64-tdep.h.
9327 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9328 * sh64-tdep.c: Include sh64-tdep.h.
9329 * sh64-tdep.h: New file.
9330
9331 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9332
9333 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9334
9335 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9336
9337 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9338 sp_regnum once the gdbarch_init_osabi hook has been called.
9339
9340 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9341
9342 * mips-tdep.c (mips32_bc1_pc): New function.
9343 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9344 BPOSGE32 and BPOSGE64 instructions.
9345 (deal_with_atomic_sequence): Likewise.
9346 (mips32_instruction_has_delay_slot): Likewise.
9347
9348 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9349 Chris Dearman <chris@mips.com>
9350 Maciej W. Rozycki <macro@codesourcery.com>
9351 Joseph Myers <joseph@codesourcery.com>
9352
9353 * features/mips-dsp.xml: New file.
9354 * features/mips64-dsp.xml: New file.
9355 * features/mips-dsp-linux.xml: New file.
9356 * features/mips64-dsp-linux.xml: New file.
9357 * features/Makefile (WHICH): Add mips-dsp-linux and
9358 mips64-dsp-linux.
9359 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9360 * features/mips-dsp-linux.c: New file.
9361 * features/mips64-dsp-linux.c: New file.
9362 * regformats/mips-dsp-linux.dat: New file.
9363 * regformats/mips64-dsp-linux.dat: New file.
9364 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9365 registers.
9366 (mips64_linux_register_addr): Likewise.
9367 (mips64_linux_regsets_fetch_registers): Likewise.
9368 (mips64_linux_regsets_store_registers): Likewise.
9369 (mips64_linux_fetch_registers): Update call to
9370 mips64_linux_regsets_fetch_registers.
9371 (mips64_linux_store_registers): Update call to
9372 mips64_linux_regsets_store_registers.
9373 (mips_linux_read_description): Probe for DSP registers.
9374 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9375 and initialize_tdesc_mips64_dsp_linux.
9376 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9377 Remove padding of no longer used embedded register slots.
9378 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9379 (MIPS_RESTART_REGNUM): Redefine enum value.
9380 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9381 strings.
9382 (mips_tx39_reg_names): Likewise.
9383 (mips_linux_reg_names): New array of register names for Linux
9384 targets.
9385 (mips_register_name): Check for a null pointer in
9386 mips_processor_reg_names and return an empty string.
9387 (mips_register_type): Exclude embedded registers for the IRIX
9388 and Linux ABIs.
9389 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9390 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9391 DSP registers.
9392 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9393 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9394 (mips_gdbarch_init): Likewise. Initialize internal register
9395 indices for the Linux ABI. Use dynamic numbers to refer to
9396 registers, as applicable, while parsing the target description.
9397 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9398
9399 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9400
9401 * frame.h (read_frame_register_unsigned): Fix typo in function
9402 description.
9403
9404 2012-03-01 Pedro Alves <palves@redhat.com>
9405
9406 * jit-reader.in [!__cplusplus]
9407 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9408
9409 2012-03-01 Pedro Alves <palves@redhat.com>
9410
9411 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9412 * configure: Regenerate.
9413
9414 2012-03-01 Pedro Alves <palves@redhat.com>
9415
9416 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9417 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9418 (ftrace_command, strace_command): Make static.
9419 * d-lang.c (_initialize_d_language): Declare.
9420 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9421 * dwarf2loc.c (_initialize_dwarf2loc):
9422 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9423 * exec.c (exec_get_section_table): Make static.
9424 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9425 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9426 * inferior.c (remove_inferior_command, add_inferior_command)
9427 (clone_inferior_command): Make static.
9428 * linux-nat.c (linux_nat_thread_address_space)
9429 (linux_nat_core_of_thread): Make static.
9430 * linux-tdep.c (_initialize_linux_tdep): Declare.
9431 * objc-lang.c (_initialize_objc_lang): Declare.
9432 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9433 Make static.
9434 (_initialize_opencl_language): Declare.
9435 * record.c (_initialize_record): Declare.
9436 * remote.c (demand_private_info, remote_get_tib_address)
9437 (remote_supports_cond_tracepoints)
9438 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9439 Make static.
9440 * skip.c (_initialize_step_skip): Declare.
9441 * symtab.c (skip_prologue_using_lineinfo): Make static.
9442 * tracepoint.c (delete_trace_state_variable)
9443 (trace_variable_command, delete_trace_variable_command)
9444 (get_uploaded_tsv, find_matching_tracepoint_location)
9445 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9446 Make static.
9447 * value.c (pack_unsigned_long): Make static.
9448 * varobj.c (varobj_ensure_python_env): Make static.
9449 * windows-tdep.c (_initialize_windows_tdep): Declare.
9450 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9451
9452 2012-03-01 Pedro Alves <palves@redhat.com>
9453
9454 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9455 gdbarch parameter.
9456 (linux_init_abi): Install it as has_shared_address_space gdbarch
9457 callback.
9458
9459 2012-03-01 Pedro Alves <palves@redhat.com>
9460
9461 * observer.c (observer_test_first_notification_function)
9462 (observer_test_second_notification_function)
9463 (observer_test_third_notification_function): Add declarations.
9464
9465 2012-03-01 Pedro Alves <palves@redhat.com>
9466
9467 * common/signals.c (default_target_signal_to_host)
9468 (default_target_signal_from_host): Move ...
9469 * arch-utils.c: ... here.
9470 * arch-utils.h (default_target_signal_to_host)
9471 (default_target_signal_from_host): Declare.
9472
9473 * common/signals.c (target_signal_from_command): Move ...
9474 * infrun.c: ... here.
9475 * inferior.h (target_signal_from_command): Declare.
9476 * target.h (target_signal_from_command)
9477 (default_target_signal_from_host, default_target_signal_to_host):
9478 Delete declarations.
9479
9480 * common/signals.c (_initialize_signals): Delete.
9481
9482 2012-03-01 Pedro Alves <palves@redhat.com>
9483
9484 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9485 both __cplusplus and !__cplusplus.
9486
9487 2012-03-01 Pedro Alves <palves@redhat.com>
9488
9489 * psymtab.c (find_and_open_source): Delete declaration.
9490 * source.c (find_and_open_source): Move comment ...
9491 * source.h (find_and_open_source): ... to this new declaration.
9492
9493 2012-03-01 Pedro Alves <palves@redhat.com>
9494
9495 * inline-frame.c: Include inline-frame.h.
9496
9497 2012-03-01 Pedro Alves <palves@redhat.com>
9498
9499 * tui/tui-data.c (set_gen_win_origin): Delete.
9500 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9501 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9502
9503 2012-03-01 Pedro Alves <palves@redhat.com>
9504
9505 * remote.c (encode_actions): Delete declaration.
9506 * tracepoint.c (encode_actions): Make extern.
9507 * tracepoint.h (encode_actions): Declare.
9508
9509 2012-03-01 Pedro Alves <palves@redhat.com>
9510
9511 * python/py-breakpoint.c: Include python.h.
9512 * python/py-continueevent.c (create_continue_event_object): Make
9513 static.
9514 * python/py-lazy-string.c (stpy_get_type): Make static.
9515 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9516 Make static.
9517 * python/py-utils.c (unicode_to_target_python_string): Make
9518 static.
9519 * python/py-value.c: Include python.h.
9520
9521 2012-03-01 Pedro Alves <palves@redhat.com>
9522
9523 * inferior.c (delete_threads_of_inferior): Delete.
9524
9525 2012-03-01 Pedro Alves <palves@redhat.com>
9526
9527 Import fallback definitions from glibc.
9528
9529 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9530 ps_prochandle): Forward declare.
9531 (ps_err_e): Use glibc's comments.
9532 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9533 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9534 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9535 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9536 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9537 (struct ps_prochandle): Adjust comment.
9538
9539 2012-03-01 Pedro Alves <palves@redhat.com>
9540
9541 * ada-lang.c (ada_modulus_from_name): Delete.
9542 * ada-lex.l (lexer_init): Make static.
9543
9544 2012-03-01 Pedro Alves <palves@redhat.com>
9545
9546 PR gdb/13767
9547
9548 * frame.c (read_frame_register_unsigned): New.
9549 * frame.h (read_frame_register_unsigned): Declare.
9550 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9551 Handle it.
9552 (print_i387_control_word): New parameter `control_p'. Handle it.
9553 (i387_print_float_info): Handle unavailable float registers.
9554
9555 2012-03-01 Keith Seitz <keiths@redhat.com>
9556
9557 * linespec.c (decode_line_2): Sort the list of methods
9558 alphabetically before presenting the user with a selection
9559 menu.
9560
9561 2012-03-01 Doug Evans <dje@google.com>
9562
9563 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9564 has_namespace_info.
9565 (dwarf2_read_abbrevs): Remove corresponding initialization.
9566
9567 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9568
9569 * NEWS: Mention new python command class gdb.COMMAND_USER.
9570 * cli/cli-cmds.c (show_user): Print error when used on a python
9571 command.
9572 (init_cli_cmds): Update documentation strings for "show user" and
9573 "set/show max-user-call-depth" to clarify that it does not apply to
9574 python commands.
9575 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9576 error check.
9577 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9578 gdb python api.
9579 * top.c (execute_command): Only execute a user-defined command as a
9580 legacy macro if c->user_commands is set.
9581
9582 2012-03-01 Tom Tromey <tromey@redhat.com>
9583
9584 * valprint.h (struct generic_val_print_decorations): New.
9585 (generic_val_print): Declare.
9586 * valprint.c (generic_val_print): New function.
9587 * p-valprint.c (p_decorations): New global.
9588 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9589 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9590 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9591 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9592 * m2-valprint.c (m2_decorations): New global.
9593 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9594 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9595 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9596 TYPE_CODE_ERROR>: Call generic_val_print.
9597 * f-valprint.c (f_decorations): New global.
9598 (f_val_print): Use print_function_pointer_address.
9599 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9600 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9601 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9602 generic_val_print.
9603 * c-valprint.c (c_decorations): New global.
9604 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9605 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9606 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9607 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9608 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9609 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9610 case.
9611
9612 2012-03-01 Tom Tromey <tromey@redhat.com>
9613
9614 * valprint.c (val_print): Update.
9615 * p-valprint (pascal_val_print): Return void.
9616 * p-lang.h (pascal_val_print): Return void.
9617 * m2-valprint.c (m2_val_print): Return void.
9618 * m2-lang.h (m2_val_print): Return void.
9619 * language.h (struct language_defn) <la_val_print>: Return void.
9620 * language.c (unk_lang_val_print): Return void.
9621 * jv-valprint.c (java_val_print): Return void.
9622 * jv-lang.h (java_val_print): Return void.
9623 * f-valprint.c (f_val_print): Return void.
9624 * f-lang.h (f_val_print): Return void.
9625 * d-valprint.c (d_val_print): Return void.
9626 (dynamic_array_type): Update.
9627 * d-lang.h (d_val_print): Return void.
9628 * c-valprint.c (c_val_print): Return void.
9629 * c-lang.h (c_val_print): Return void.
9630 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9631 void.
9632 * ada-lang.h (ada_val_print): Return void.
9633
9634 2012-03-01 Tom Tromey <tromey@redhat.com>
9635
9636 * value.h (val_print): Return void.
9637 * valprint.c (val_print): Return void.
9638
9639 2012-03-01 Tom Tromey <tromey@redhat.com>
9640
9641 * value.h (common_val_print): Return void.
9642 * valprint.c (common_val_print): Return void.
9643
9644 2012-03-01 Tom Tromey <tromey@redhat.com>
9645
9646 * value.h (value_print): Return void.
9647 * valprint.c (value_print): Return void.
9648 * p-valprint.c (pascal_value_print): Return void.
9649 * p-lang.h (pascal_value_print): Return void.
9650 * language.h (struct language_defn) <la_value_print>: Return
9651 void.
9652 * language.c (unk_lang_value_print): Return void.
9653 * jv-valprint.c (java_value_print): Return void.
9654 * jv-lang.h (java_value_print): Return void.
9655 * f-valprint.c (c_value_print): Don't declare.
9656 Include c-lang.h.
9657 * c-valprint.c (c_value_print): Return void.
9658 * c-lang.h (c_value_print): Return void.
9659 * ada-valprint.c (ada_value_print): Return void.
9660 * ada-lang.h (ada_value_print): Return void.
9661
9662 2012-03-01 Tom Tromey <tromey@redhat.com>
9663
9664 * value.c (value_primitive_field): Handle virtual base classes.
9665
9666 2012-03-01 Tom Tromey <tromey@redhat.com>
9667
9668 * gdbtypes.h (struct vbase): Remove.
9669
9670 2012-03-01 Tom Tromey <tromey@redhat.com>
9671
9672 * c-valprint.c (print_function_pointer_address): Move...
9673 * valprint.c: ... here. Make non-static.
9674 * m2-valprint.c (print_function_pointer_address): Remove.
9675 * valprint.h (print_function_pointer_address): Declare.
9676
9677 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9678
9679 * NEWS: Document the fact that one can provide a condition when
9680 creating an Ada exception catchpoint.
9681
9682 2012-03-01 Tom Tromey <tromey@redhat.com>
9683
9684 * valprint.c (val_print_type_code_flags): Fix placement of
9685 trailing brace.
9686
9687 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9688
9689 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9690 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9691 environment variable before calling update-copyright.
9692
9693 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9694
9695 * gnulib/extra/update-copyright: Update to the latest from
9696 gnulib's git repository.
9697 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9698 variable to 2 instead of 1.
9699
9700 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9701
9702 * varobj.c (c_value_of_variable): Remove dead code.
9703
9704 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9705
9706 * ada-lex.p (processId): Do not modify already encoded IDs.
9707 Update function documentation.
9708
9709 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9710
9711 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9712 "name" with "struct symbol *name_sym".
9713 * ada-exp.y (write_var_or_type): Update call to
9714 ada_find_renaming_symbol.
9715 "name" with "struct symbol *name_sym". Adjust Implementation
9716 accordingly. Adjust the function documentation.
9717
9718 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9719
9720 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9721 * ada-lang.c (ada_find_any_type): Add advance declaration.
9722 Make static. Replace ada_find_any_symbol by
9723 ada_find_any_type_symbol.
9724 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9725 Improve function description. Make static.
9726 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9727 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9728
9729 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9730
9731 * ada-lang.c (struct tag_args): Delete.
9732 (ada_get_tsd_type): Function body moved up in source file.
9733 (ada_tag_name_1, ada_tag_name_2): Delete.
9734 (ada_get_tsd_from_tag): New function.
9735 (ada_tag_name_from_tsd): New function.
9736 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9737 to determine the tag name.
9738
9739 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9740
9741 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9742 declaration.
9743 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9744 function.
9745
9746 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9747
9748 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9749
9750 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9751
9752 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9753 full searches.
9754
9755 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9756
9757 * ada-lang.c (constrained_packed_array_type): If there is a
9758 parallel XA type, use it to determine the array index type.
9759
9760 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9761
9762 * ada-valprint.c (ada_val_print_1): If our value is a reference
9763 to an array descriptor, dereference it before converting it
9764 to a simple array.
9765
9766 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9767
9768 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9769 creating fixed value.
9770 (ada_value_ind, ada_coerce_ref, assign_component)
9771 (ada_evaluate_subexp): Remove call to unwrap_value before
9772 call to ada_to_fixed_value.
9773
9774 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9775
9776 * ada-lang.c (to_fixed_array_type): Set result's type name.
9777
9778 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9779
9780 * ada-lang.c (catch_ada_exception_command_split): Add new
9781 argument cond_string. Add support for condition at end of
9782 "catch exception" commands.
9783 (ada_decode_exception_location): Add new argument cond_string.
9784 Update call to catch_ada_exception_command_split.
9785 (create_ada_exception_catchpoint): Add new argument cond_string.
9786 Set the breakpoint condition if needed.
9787 (catch_ada_exception_command): Update call to
9788 ada_decode_exception_location.
9789 (ada_decode_assert_location): Add function documentation.
9790 Add support for condition at end of "catch assert" command.
9791 (catch_assert_command): Update calls to ada_decode_assert_location
9792 and create_ada_exception_catchpoint.
9793
9794 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9795
9796 Fix disp-step-syscall.exp: fork: single step over fork.
9797 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9798 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9799 comment, change parameters gdbarch and ptid to regcache. Remove
9800 parameter regcache, initialize gdbarch from regcache here.
9801 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9802 New functions.
9803 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9804 instead.
9805 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9806 'syscall'. Make the 'int' check more strict.
9807
9808 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9809
9810 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9811 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9812 (i386_linux_intx80_sysenter_syscall_record): ... here.
9813 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9814 Use the renamed function name.
9815
9816 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9817
9818 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9819 * breakpoint.c (until_break_command): Likewise.
9820 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9821 * infcall.c (call_function_by_hand): Likewise.
9822 * infcmd.c (finish_forward): Likewise.
9823 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9824
9825 2012-02-28 Tristan Gingold <gingold@adacore.com>
9826
9827 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9828 avoid variable assignments inside condition.
9829
9830 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9831
9832 Fix static analysis issue found by cppcheck.
9833 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9834 uninitialized BUF for size 2.
9835
9836 2012-02-27 Chris Dearman <chris@mips.com>
9837 Nathan Froyd <froydnj@codesourcery.com>
9838 Maciej W. Rozycki <macro@codesourcery.com>
9839
9840 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9841 (mips16_instruction_has_delay_slot): Likewise.
9842 (mips_segment_boundary): Likewise.
9843 (mips_adjust_breakpoint_address): Likewise.
9844 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9845
9846 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9847 Maciej W. Rozycki <macro@codesourcery.com>
9848
9849 * infrun.c (handle_inferior_event): Don't proceed through
9850 shared library trampolines if stepping at the machine
9851 instruction level.
9852
9853 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9854
9855 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9856 too.
9857
9858 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9859
9860 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9861 (sh_stub_unwind_sniffer): New functions.
9862 (sh_stub_unwind): New variable.
9863 (sh_gdbarch_init): Wire everything.
9864
9865 2012-02-27 Pedro Alves <palves@redhat.com>
9866
9867 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9868 (linux_nat_post_attach_wait): Adjust to use
9869 linux_proc_pid_is_stopped.
9870 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9871 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9872 based on pid_is_stopped from both linux-nat.c and
9873 gdbserver/linux-low.c, and renamed.
9874
9875 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9876
9877 * remote.c (remote_watchpoint_addr_within_range): New function.
9878 (init_remote_ops): Use it.
9879
9880 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9881
9882 * target.h (target_watchpoint_addr_within_range): Document macro.
9883
9884 2012-02-24 Pedro Alves <palves@redhat.com>
9885
9886 * stack.c (set_last_displayed_sal): Issue internal_error instead
9887 of warning, and issue it after clearing the last displayed sal.
9888
9889 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9890 Pedro Alves <palves@redhat.com>
9891
9892 * breakpoint.c (until_break_command): Install breakpoints after
9893 all frame manipulations.
9894
9895 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9896
9897 * remote.c (remote_supports_cond_breakpoints): New forward
9898 declaration.
9899 (remote_add_target_side_condition): New function.
9900 (remote_insert_breakpoint): Add target-side breakpoint
9901 conditional if supported.
9902 (remote_insert_hw_breakpoint): Likewise.
9903 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9904 hook.
9905
9906 * target.c (update_current_target): Inherit
9907 to_supports_evaluation_of_breakpoint_conditions.
9908 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9909
9910 * target.h (struct target_ops)
9911 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9912 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9913
9914 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9915 (condition_evaluation_both, condition_evaluation_auto,
9916 condition_evaluation_host, condition_evaluation_target,
9917 condition_evaluation_enums, condition_evaluation_mode_1,
9918 condition_evaluation_mode): New static globals.
9919 (translate_condition_evaluation_mode): New function.
9920 (breakpoint_condition_evaluation_mode): New function.
9921 (gdb_evaluates_breakpoint_condition_p): New function.
9922 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9923 (mark_breakpoint_modified): New function.
9924 (mark_breakpoint_location_modified): New function.
9925 (set_condition_evaluation_mode): New function.
9926 (show_condition_evaluation_mode): New function.
9927 (bp_location_compare_addrs): New function.
9928 (get_first_location_gte_addr): New helper function.
9929 (set_breakpoint_condition): Free condition bytecode if locations
9930 has become unconditional. Call mark_breakpoint_modified (...).
9931 (condition_command): Call update_global_location_list (1) for
9932 breakpoints.
9933 (breakpoint_xfer_memory): Use is_breakpoint (...).
9934 (is_breakpoint): New function.
9935 (parse_cond_to_aexpr): New function.
9936 (build_target_condition_list): New function.
9937 (insert_bp_location): Handle target-side conditional
9938 breakpoints and call build_target_condition_list (...).
9939 (update_inserted_breakpoint_locations): New function.
9940 (insert_breakpoint_locations): Handle target-side conditional
9941 breakpoints.
9942 (bpstat_check_breakpoint_conditions): Add comment.
9943 (bp_condition_evaluator): New function.
9944 (bp_location_condition_evaluator): New function.
9945 (print_breakpoint_location): Print information on where the condition
9946 will be evaluated.
9947 (print_one_breakpoint_location): Likewise.
9948 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9949 breakpoint location.
9950 (force_breakpoint_reinsertion): New functions.
9951 (update_global_location_list): Handle target-side breakpoint
9952 conditions.
9953 Reinsert locations that are already inserted if conditions have
9954 changed.
9955 (bp_location_dtor): Free agent expression bytecode.
9956 (disable_breakpoint): Call mark_breakpoint_modified (...).
9957 Call update_global_location_list (...) with parameter 1 for breakpoints.
9958 (disable_command): Call mark_breakpoint_location_modified (...).
9959 Call update_global_location_list (...) with parameter 1 for breakpoints.
9960 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9961 (enable_command): mark_breakpoint_location_modified (...).
9962 (_initialize_breakpoint): Update documentation and add
9963 condition-evaluation breakpoint subcommand.
9964
9965 * breakpoint.h: Include ax.h.
9966 (condition_list): New data structure.
9967 (condition_status): New enum.
9968 (bp_target_info) <cond_list>: New field.
9969 (bp_location) <condition_changed, cond_bytecode>: New fields.
9970 (is_breakpoint): New prototype.
9971
9972 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9973
9974 * remote.c (remote_state) <cond_breakpoints>: New field.
9975 (PACKET_ConditionalBreakpoints): New enum.
9976 (remote_cond_breakpoint_feature): New function.
9977 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9978 (remote_supports_cond_breakpoints): New function.
9979 (_initialize_remote): Add new packet configuration for
9980 target-side conditional breakpoints.
9981
9982 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9983
9984 * NEWS: Mention target-side conditional breakpoint support,
9985 new condition-evaluation breakpoint subcommand and remote
9986 packet extensions.
9987
9988 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9989
9990 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9991 number.
9992
9993 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9994
9995 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9996 (after_prologue): Remove.
9997
9998 2012-02-23 Tom Tromey <tromey@redhat.com>
9999
10000 * jv-valprint.c (java_val_print): Remove dead code.
10001
10002 2012-02-23 Tristan Gingold <gingold@adacore.com>
10003
10004 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10005 known_tasks_element and known_tasks_length fields.
10006 (read_known_tasks_array): Change argument type. Use pointer type
10007 and number of elements from DATA. Adjust.
10008 (read_known_tasks_list): Likewise.
10009 (get_known_tasks_addr): Remove.
10010 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10011 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10012 type and array length. Merge former get_known_tasks_addr code.
10013
10014 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10015
10016 PR backtrace/13716
10017 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10018 it after set_momentary_breakpoint.
10019
10020 2012-02-22 Sterling Augustine <saugustine@google.com>
10021
10022 PR 13689:
10023 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10024
10025 2012-02-22 Gary Benson <gbenson@redhat.com>
10026
10027 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10028 (find_slot_in_mapped_hash): Likewise.
10029
10030 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10031
10032 PR build/13638
10033 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10034 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10035 * configure: Regenerate.
10036
10037 2012-02-21 Tristan Gingold <gingold@adacore.com>
10038 Pedro Alves <palves@redhat.com>
10039
10040 * ia64-tdep.c: Do not include libunwind-ia64.h.
10041 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10042 Include libunwind-ia64.h instead of libunwind.h.
10043 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10044 for libunwind.h existence.
10045 * configure, config.in: Regenerate.
10046
10047 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10048
10049 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10050 instead of value_rtti_target_type.
10051 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10052 instead of value_rtti_target_type.
10053 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10054 value_rtti_target_type.
10055 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10056 (value_rtti_target_type): Rename to ...
10057 (value_rtti_indirect_type): ... here and make it indirect. Update
10058 function comment.
10059 * value.c (readjust_indirect_value_type): New function.
10060 (coerce_ref): Support for enclosing type setting for references
10061 with readjust_indirect_value_type.
10062 * value.h (readjust_value_type): New declaration.
10063 (value_rtti_target_type): Rename to ...
10064 (value_rtti_indirect_type): ... here.
10065
10066 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10067
10068 * MAINTAINERS (Write After Approval): Add myself to the list.
10069
10070 2012-02-20 Doug Evans <dje@google.com>
10071
10072 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10073 Rename objfile_p_char parameter to objfilep.
10074 (build_objfile_section_table): Result is now void. All callers
10075 updated.
10076 * objfiles.h (struct objfile): Tweak comments, whitespace.
10077 (build_objfile_section_table): Update.
10078
10079 * elfread.c (elf_symfile_segments): Fix warning text.
10080
10081 2012-02-20 Tom Tromey <tromey@redhat.com>
10082
10083 PR gdb/13498:
10084 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10085 particular set of file names once.
10086 (dw2_map_symbol_filenames): Likewise.
10087
10088 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10089
10090 Code cleanup.
10091 * main.c (write_files): Remove the declaration.
10092 (external_editor_command): Move the declaration ...
10093 [GDBTK] (external_editor_command): ... here. Fix the comment.
10094
10095 2012-02-20 Tom Tromey <tromey@redhat.com>
10096
10097 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10098 extraneous block.
10099
10100 2012-02-20 Tristan Gingold <gingold@adacore.com>
10101
10102 * darwin-nat.h (enum darwin_msg_state): Add comments.
10103
10104 2012-02-20 Tristan Gingold <gingold@adacore.com>
10105
10106 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10107 value.
10108
10109 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10110
10111 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10112 between function description and implementation.
10113
10114 2012-02-17 Tom Tromey <tromey@redhat.com>
10115
10116 PR python/12070:
10117 * python/py-event.c (event_object_getset): New global.
10118 (event_object_type): Reference it.
10119 * python/py-type.c (field_object_getset): New global.
10120 (field_object_type): Reference it.
10121 * python/python-internal.h (gdb_py_generic_dict): Declare.
10122 * python/py-utils.c (gdb_py_generic_dict): New function.
10123
10124 2012-02-17 Tristan Gingold <gingold@adacore.com>
10125
10126 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10127
10128 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10129
10130 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10131 TYPE_CALLING_CONVENTION annotation.
10132
10133 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10134
10135 * MAINTAINERS: Add rx to target ISA section.
10136 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10137 (ALLDEPFILES): Add rx-tdep.c.
10138
10139 2012-02-16 Tom Tromey <tromey@redhat.com>
10140
10141 * symfile.c (symbol_file_add_main_1): Use inferior's
10142 symfile_flags.
10143 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10144 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10145 inferior.
10146 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10147 inferior.
10148 (follow_exec): Use inferior's symfile_flags.
10149 * inferior.h (struct inferior) <symfile_flags>: New field.
10150
10151 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10152
10153 PR gdb/9734:
10154 * remote-sim.c (gdbsim_create_inferior): Call error() when
10155 sim_create_inferior() fails.
10156
10157 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10158
10159 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10160
10161 2012-02-16 Tom Tromey <tromey@redhat.com>
10162
10163 PR c++/13653:
10164 * thread.c (struct current_thread_cleanup) <was_removable>: New
10165 field.
10166 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10167 (make_cleanup_restore_current_thread): Initialize new field.
10168
10169 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10170
10171 * MAINTAINERS: Add rl78 to target ISA section.
10172 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10173 (ALLDEPFILES): Add rl78-tdep.c.
10174 * NEWS: Mention rl78 as a new target.
10175
10176 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10177
10178 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10179 data.
10180 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10181
10182 2012-02-15 Tom Tromey <tromey@redhat.com>
10183
10184 PR gdb/12659:
10185 * infcmd.c (registers_info): Print just the current register's
10186 name.
10187
10188 2012-02-15 Tom Tromey <tromey@redhat.com>
10189
10190 * python/py-symbol.c (sympy_value): Use _().
10191
10192 2012-02-15 Pedro Alves <palves@redhat.com>
10193
10194 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10195 output to be like native targets'.
10196 (remote_pid_to_str): Special case the null ptid.
10197
10198 2012-02-14 Stan Shebs <stan@codesourcery.com>
10199
10200 * NEWS: Mention enable count command.
10201 * breakpoint.h (struct breakpoint): New field enable_count.
10202 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10203 (enable_breakpoint): Add arg to call.
10204 (struct disp_data): New struct.
10205 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10206 (do_map_enable_once_breakpoint): Create a struct and pass it.
10207 (do_map_enable_delete_breakpoint): Ditto.
10208 (do_map_enable_count_breakpoint): New function.
10209 (enable_count_command): New function.
10210 (bpstat_stop_status): Decrement enable_count.
10211 (print_one_breakpoint_location): Report enable count.
10212 (_initialize_breakpoint): Add enable count command.
10213
10214 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10215
10216 * rl78-tdep.c (reggroups.h): Include.
10217 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10218 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10219 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10220 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10221 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10222 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10223 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10224 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10225 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10226 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10227 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10228 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10229 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10230 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10231 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10232 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10233 beginning of register list.
10234 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10235 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10236 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10237 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10238 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10239 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10240 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10241 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10242 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10243 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10244 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10245 the pseudo registers. Rearrange other pseudo registers too so
10246 that the bank registers appear at the end.
10247 (rl78_register_type): Account for the fact that the byte sized
10248 bank registers are now pseudo-registers.
10249 (rl78_register_name): Rearrange the register name array. Make
10250 initial set of raw banked registers inaccessible.
10251 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10252 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10253 case for copying bytes back and forth between raw and pseudo
10254 versions of the banked registers. Update other cases to reflect
10255 the changed names.
10256 (rl78_return_value): Update to account for changed names of
10257 raw registers.
10258 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10259 rl78_register_sim_regno().
10260
10261 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10262
10263 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10264 the name parameter being passed to find_pc_partial_function().
10265
10266 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10267
10268 * MAINTAINERS: Step down from being ia64 target maintainer.
10269
10270 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10271
10272 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10273 compilation warning.
10274
10275 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10276
10277 Fix crash on loaded shlibs without loaded exec_bfd.
10278 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10279 (set_section_command): Replace exec_bfd by p->bfd.
10280
10281 2012-02-10 Tom Tromey <tromey@redhat.com>
10282
10283 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10284 when we have a C++ qualified name.
10285
10286 2012-02-10 Pedro Alves <palves@redhat.com>
10287
10288 * inferior.c (inferior_pid_to_str): New.
10289 (print_inferior, inferior_command): Use it.
10290
10291 2012-02-10 Pedro Alves <palves@redhat.com>
10292
10293 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10294 the test CFLAGS.
10295 * configure: Regenerate.
10296
10297 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10298
10299 * linespec.c (decode_line_internal): Fix comment correctness.
10300
10301 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10302
10303 PR gdb/12953
10304 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10305 * amd64bsd-nat.c: Add support for debug registers (adapted from
10306 i386bsd-nat.c).
10307 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10308 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10309 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10310 (amd64bsd_dr_get_control): New functions.
10311 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10312 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10313 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10314 watchpoints initialization.
10315 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10316
10317 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10318
10319 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10320 flds_bnds.fields.
10321 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10322
10323 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10324
10325 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10326
10327 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10328
10329 * language.h (symbol_name_cmp_ftype): Renames
10330 symbol_name_match_p_ftype.
10331 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10332 la_get_symbol_name_match_p.
10333 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10334 ada_get_symbol_name_match_p. Update comment.
10335 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10336 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10337 Renames symbol_name_match_p. Update field type.
10338 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10339 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10340 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10341 "la_get_symbol_name_cmp" in comments.
10342 * language.c: Likewise.
10343
10344 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10345
10346 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10347 %eflags offset.
10348 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10349 (amd64_sol2_gregset32_reg_offs): Likewise.
10350
10351 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10352
10353 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10354 of the returned BFD is allocated by GDB.
10355
10356 2012-02-07 Tom Tromey <tromey@redhat.com>
10357
10358 PR python/12027:
10359 * python/python-internal.h (frame_object_type): Declare.
10360 * python/py-symbol.c (sympy_needs_frame): New function.
10361 (sympy_value): New function.
10362 (symbol_object_getset): Add "needs_frame".
10363 (symbol_object_methods): Add "value".
10364 * python/py-frame.c (frame_object_type): No longer static.
10365
10366 2012-02-07 Tom Tromey <tromey@redhat.com>
10367
10368 PR python/13599:
10369 * python/py-symbol.c (sympy_line): New function.
10370 (symbol_object_getset): Add "line".
10371
10372 2012-02-07 Tom Tromey <tromey@redhat.com>
10373
10374 * charset.c (find_charset_names): Check 'in' against NULL.
10375
10376 2012-02-06 Doug Evans <dje@google.com>
10377
10378 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10379 and fields.name members from char * to const char *. All uses updated.
10380 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10381 from char * to const char *. All uses updated.
10382 (type_name_no_tag): Update.
10383 (lookup_unsigned_typename, lookup_signed_typename): Update.
10384 * gdbtypes.c (type_name_no_tag): Change result type
10385 from char * to const char *. All callers updated.
10386 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10387 name parameter from char * to const char *.
10388 * symtab.h (struct cplus_specific): Change type of demangled_name
10389 member from char * to const char *. All uses updated.
10390 (struct general_symbol_info): Change type of name and
10391 mangled_lang.demangled_name members from char * to const char *.
10392 All uses updated.
10393 (symbol_get_demangled_name, symbol_natural_name): Update.
10394 (symbol_demangled_name, symbol_search_name): Update.
10395 * symtab.c (symbol_get_demangled_name): Change result type
10396 from char * to const char *. All callers updated.
10397 (symbol_natural_name, symbol_demangled_name): Ditto.
10398 (symbol_search_name): Ditto.
10399 (completion_list_add_name): Change type of symname,sym_text,
10400 text,word parameters from char * to const char *.
10401 (completion_list_objc_symbol): Change type of sym_text,
10402 text,word parameters from char * to const char *.
10403 * ada-lang.c (find_struct_field): Change type of name parameter
10404 from char * to const char *.
10405 (encoded_ordered_before): Similarly for N0,N1 parameters.
10406 (old_renaming_is_invisible): Similarly for function_name parameter.
10407 (ada_type_name): Change result type from char * to const char *.
10408 All callers updated.
10409 * ada-lang.h (ada_type_name): Update.
10410 * buildsym.c (hashname): Change type of name parameter
10411 from char * to const char *.
10412 * buildsym.h (hashname): Update.
10413 * dbxread.c (end_psymtab): Change type of include_list parameter
10414 from char ** to const char **.
10415 * dwarf2read.c (determine_prefix): Change result type
10416 from char * to const char *. All callers updated.
10417 * f-lang.c (find_common_for_function): Change type of name, funcname
10418 parameters from char * to const char *.
10419 * f-lang.c (find_common_for_function): Update.
10420 * f-valprint.c (list_all_visible_commons): Change type of funcname
10421 parameters from char * to const char *.
10422 * gdbarch.sh (static_transform_name): Change type of name parameter
10423 and result from char * to const char *.
10424 * gdbarch.c: Regenerate.
10425 * gdbarch.h: Regenerate.
10426 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10427 of name parameter from char * to const char *.
10428 * jv-lang.c (java_primitive_type_from_name): Ditto.
10429 (java_demangled_signature_length): Similarly for signature parameter.
10430 (java_demangled_signature_copy): Ditto.
10431 (java_demangle_type_signature): Ditto.
10432 * jv-lang.h (java_primitive_type_from_name): Update.
10433 (java_demangle_type_signature): Update.
10434 * objc-lang.c (specialcmp): Change type of a,b parameters
10435 from char * to const char *.
10436 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10437 from char * to const char *. All callers updated.
10438 * p-lang.h (is_pascal_string_type): Update.
10439 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10440 of name parameter from char * to const char *.
10441 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10442 * utils.c (fprintf_symbol_filtered): Ditto.
10443 * defs.h (fprintf_symbol_filtered): Update.
10444 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10445 * stabsread.h (end_psymtab): Update.
10446 * stack.c (find_frame_funname): Change type of funname parameter
10447 from char ** to const char **.
10448 * stack.h (find_frame_funname): Update.
10449 * typeprint.c (type_print): Change type of varstring parameter
10450 from char * to const char *.
10451 * value.h (type_print): Update.
10452 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10453 from char * to const char *. All callers updated.
10454 (xcoff_end_psymtab): Change type of include_list parameter
10455 from char ** to const char **. All callers updated.
10456 (swap_sym): Similarly for name parameter. All callers updated.
10457 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10458 Use xstrdup.
10459 (process_coff_symbol): Use xstrdup.
10460 * stabsread.c (stabs_method_name_from_physname): Renamed from
10461 update_method_name_from_physname. Change result type from void
10462 to char *. All callers updated.
10463 (read_member_functions): In has_destructor case, store name in objfile
10464 obstack instead of malloc space. In !has_stub case, fix mem leak.
10465
10466 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10467
10468 * configure: Rebuild.
10469 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10470 LDFLAGS.
10471
10472 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10473
10474 * configure.tgt (rl78-*-elf): New target.
10475 * rl78-tdep.c: New file.
10476
10477 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10478
10479 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10480 and continue the loop. Add QUIT statement.
10481
10482 2012-02-03 Tom Tromey <tromey@redhat.com>
10483
10484 PR gdb/13596:
10485 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10486 bfd_lookup_symbol_from_symtab.
10487 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10488 gdb_bfd_lookup_symbol_from_symtab.
10489
10490 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10491
10492 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10493 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10494 symbol. Add assertion that sym2 is never NULL.
10495
10496 2012-02-02 Doug Evans <dje@google.com>
10497
10498 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10499 "name" parameter to const char ** from char **. All callers updated.
10500 (find_pc_partial_function): Ditto.
10501 (cache_pc_function_name): Change type to const char * from char *.
10502 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10503 (find_pc_partial_function): Update.
10504 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10505 type of "name" parameter to const char * from char *.
10506 All uses updated.
10507 * arch-utils.c (generic_in_solib_return_trampoline): Change
10508 type of "name" parameter to const char * from char *.
10509 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10510 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10511 type of "name" parameter to const char * from char *.
10512 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10513 * gdbarch.c: Regenerate.
10514 * gdbarch.h: Regenerate.
10515 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10516 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10517 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10518 type of "name" parameter to const char * from char *.
10519 * skip.c (skip_function_pc): Ditto.
10520 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10521 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10522 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10523 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10524 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10525 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10526 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10527 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10528 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10529
10530 2012-02-02 Pedro Alves <palves@redhat.com>
10531
10532 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10533 the current inferior has no execution. Make sure the current
10534 remote process matches gdb's current inferior.
10535
10536 2012-02-02 Tom Tromey <tromey@redhat.com>
10537
10538 PR gdb/13405:
10539 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10540 read-only memory.
10541
10542 2012-02-02 Tom Tromey <tromey@redhat.com>
10543
10544 PR gdb/9307:
10545 * symtab.c (lookup_language_this): Set block_found.
10546
10547 2012-02-01 Tom Tromey <tromey@redhat.com>
10548
10549 PR gdb/13431:
10550 * jit.c (struct jit_inferior_data): Rewrite.
10551 (struct jit_objfile_data): New.
10552 (get_jit_objfile_data): New function.
10553 (add_objfile_entry): Update.
10554 (jit_read_descriptor): Return int. Replace descriptor_addr
10555 argument with inf_data. Update. Don't call error.
10556 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10557 descriptor here.
10558 (jit_inferior_init): Don't look up descriptor. Don't call error.
10559 (jit_reset_inferior_data_and_breakpoints)
10560 (jit_inferior_created_observer): Remove.
10561 (jit_inferior_exit_hook): Update.
10562 (jit_executable_changed_observer): Remove.
10563 (jit_event_handler): Update.
10564 (free_objfile_data): Reset inferior data if needed.
10565 (_initialize_jit): Update.
10566
10567 2012-02-01 Tom Tromey <tromey@redhat.com>
10568
10569 * jit.c (bfd_open_from_target_memory): Move higher in file.
10570
10571 2012-02-01 Tristan Gingold <gingold@adacore.com>
10572
10573 * libunwind-frame.c (libunwind_load): Display message if dlopen
10574 failed.
10575
10576 2012-02-01 Gary Benson <gbenson@redhat.com>
10577
10578 * symtab.h (symbol_found_callback_ftype): New typedef.
10579 (iterate_over_symbols): Use the above.
10580 * symtab.c (iterate_over_symbols): Likewise.
10581 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10582 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10583 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10584 (iterate_name_matcher): Document return values.
10585 (collect_one_symbol): Likewise.
10586 (collect_function_symbols): Likewise.
10587 (collect_symbols): Likewise.
10588
10589 2012-02-01 Tom Tromey <tromey@redhat.com>
10590
10591 * ada-lang.c (resolve_subexp): Update.
10592 (ada_lookup_symbol_list): Add 'full_search' argument.
10593 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10594 ada_lookup_symbol_list.
10595 (ada_lookup_encoded_symbol): Update.
10596 (get_var_value): Update.
10597 * ada-exp.y (block_lookup): Update.
10598 (write_var_or_type): Update.
10599 (write_name_assoc): Update.
10600 * ada-lang.h (ada_lookup_symbol_list): Update.
10601
10602 2012-01-31 Tom Tromey <tromey@redhat.com>
10603
10604 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10605 comment.
10606
10607 2012-01-31 Doug Evans <dje@google.com>
10608
10609 * symtab.h: Remove outdated comment.
10610 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10611
10612 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10613
10614 Fix build error in Darwin port.
10615 * i386-darwin-nat.c: Include i386-nat.h.
10616
10617 2012-01-30 Tom Tromey <tromey@redhat.com>
10618
10619 PR breakpoints/13568:
10620 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10621 argument. Check for recursive includes.
10622 (dwarf_decode_macros): Create an include hash.
10623
10624 2012-01-30 Michael Eager <eager@eagercon.com>
10625
10626 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10627 * ppc-linux-tdep.c: Include glibc-tdep.h.
10628 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10629 (powerpc_linux_in_plt_stub): New function.
10630 (powerpc_linux_in_dynsym_resolve_code): New function.
10631 (ppc_skip_trampoline_code): New function.
10632 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10633 Use glibc_skip_solib_resolver.
10634
10635 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10636
10637 Code cleanup: Make 1440 bytes of data segment read-only.
10638 * arch-utils.c (endian_enum): Make it const char *const [].
10639 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10640 Likewise.
10641 * breakpoint.c (always_inserted_enums): Likewise.
10642 * cli/cli-cmds.c (script_ext_enums): Likewise.
10643 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10644 enumlist parameter const char *const *.
10645 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10646 const char *const *.
10647 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10648 parameter const char *const *.
10649 * cris-tdep.c (cris_modes): Make it const char *const [].
10650 * filesystem.c (target_file_system_kinds): Likewise.
10651 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10652 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10653 (can_use_displaced_stepping_enum, scheduler_enums)
10654 (exec_direction_names): Likewise.
10655 * language.c (_initialize_language): Make the type_or_range_names and
10656 case_sensitive_names variables const char *const [].
10657 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10658 * python/python.c (python_excp_enums): Likewise.
10659 * remote.c (interrupt_sequence_modes): Likewise.
10660 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10661 * serial.c (logbase_enums): Likewise.
10662 * sh-tdep.c (sh_cc_enum): Likewise.
10663 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10664 Likewise.
10665 * symtab.c (multiple_symbols_modes): Likewise.
10666 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10667 Likewise.
10668 * utils.c (internal_problem_modes): Likewise.
10669
10670 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10671
10672 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10673 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10674 result.
10675
10676 2012-01-27 Doug Evans <dje@google.com>
10677
10678 * configure.ac (with_python): Fix absolute path handling for win32.
10679 * configure: Regenerate.
10680
10681 2012-01-26 Doug Evans <dje@google.com>
10682
10683 * symtab.c: Whitespace cleanup, no code changes.
10684
10685 * symtab.c (lookup_symbol_in_language): Improve comment.
10686 (lookup_symbol_aux): Fix comment.
10687
10688 * psymtab.c (add_psymbol_to_list): Result is now "void".
10689 * psympriv.h (add_psymbol_to_list): Update.
10690
10691 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10692
10693 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10694
10695 Do not open script filenames twice.
10696 * cli/cli-cmds.c (source_script_from_stream): Pass to
10697 source_python_script also STREAM.
10698 * python/py-auto-load.c (source_section_scripts): Pass to
10699 source_python_script_for_objfile also STREAM.
10700 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10701 also INPUT.
10702 * python/python-internal.h (source_python_script_for_objfile): New
10703 parameter file, rename parameter file to filename.
10704 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10705 instead if !_WIN32. Update the function comment.
10706 (source_python_script, source_python_script_for_objfile)
10707 (source_python_script): New parameter file, rename parameter file to
10708 filename. Pass FILENAME to python_run_simple_file.
10709 * python/python.h (source_python_script): New parameter file, rename
10710 parameter file to filename.
10711
10712 2012-01-26 Pedro Alves <palves@redhat.com>
10713
10714 * corelow.c (core_has_fake_pid): Delete.
10715 (core_close): Delete references to `core_has_fake_pid'.
10716 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10717 (core_open): Delete references to `core_has_fake_pid'.
10718 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10719 the removed global.
10720
10721 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10722
10723 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10724 Remove language parameter from name_matcher. Adjust the comment.
10725 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10726 Remove language parameter.
10727 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10728 * linespec.c (iterate_name_matcher): Likewise.
10729 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10730 name_matcher. Adjust call accordingly.
10731 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10732 (maintenance_check_symtabs): Adjust type of parameter "fun".
10733 * psymtab.h (maintenance_check_symtabs): Likewise.
10734
10735 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10736
10737 * language.h (symbol_name_match_p_ftype): New typedef.
10738 (struct language_defn): Replace field la_symbol_name_compare
10739 by la_get_symbol_name_match_p.
10740 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10741 (ada_language_defn): Use it.
10742 * linespec.c (struct symbol_matcher_data): New type.
10743 (iterate_name_matcher): Rewrite.
10744 (iterate_over_all_matching_symtabs): Pass a pointer to
10745 a symbol_matcher_data struct to expand_symtabs_matching
10746 instead of just the lookup name.
10747 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10748 opencl-lang.c, p-lang.c, language.c: Delete field
10749 la_symbol_name_compare, and replace by NULL for new field
10750 la_get_symbol_name_match_p.
10751 * symfile.h (struct quick_symbol_functions): Update comment.
10752
10753 2012-01-25 Tom Tromey <tromey@redhat.com>
10754
10755 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10756 dereferencing.
10757
10758 2012-01-24 Tom Tromey <tromey@redhat.com>
10759
10760 PR symtab/12406:
10761 * solib.c (update_solib_list): Update the program space's
10762 added_solibs and deleted_solibs fields.
10763 * progspace.h (struct program_space) <added_solibs,
10764 deleted_solibs>: New fields.
10765 (clear_program_space_solib_cache): Declare.
10766 * progspace.c (release_program_space): Call
10767 clear_program_space_solib_cache.
10768 (clear_program_space_solib_cache): New function.
10769 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10770 bpstat_stop_status. Use handle_solib_event.
10771 * breakpoint.c: Include gdb_regex.h.
10772 (print_solib_event): New function.
10773 (bpstat_print): Use print_solib_event.
10774 (bpstat_stop_status): Add special case for bp_shlib_event.
10775 (handle_solib_event): New function.
10776 (bpstat_what): Use handle_solib_event.
10777 (struct solib_catchpoint): New.
10778 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10779 (breakpoint_hit_catch_solib, check_status_catch_solib)
10780 (print_it_catch_solib, print_one_catch_solib)
10781 (print_mention_catch_solib, print_recreate_catch_solib): New
10782 functions.
10783 (catch_solib_breakpoint_ops): New global.
10784 (catch_load_or_unload, catch_load_command_1)
10785 (catch_unload_command_1): New functions.
10786 (internal_bkpt_check_status): Add special case for
10787 bp_shlib_event.
10788 (internal_bkpt_print_it): Use print_solib_event.
10789 (initialize_breakpoint_ops): Initialize
10790 catch_solib_breakpoint_ops.
10791 (_initialize_breakpoint): Register "catch load" and "catch
10792 unload".
10793 * breakpoint.h (handle_solib_event): Declare.
10794 * NEWS: Add entry for "catch load" and "catch unload".
10795
10796 2012-01-24 Tom Tromey <tromey@redhat.com>
10797
10798 * ada-lang.c: Include gdb_vecs.h.
10799 * charset.c: Include gdb_vecs.h.
10800 * tracepoint.h: Include gdb_vecs.h.
10801 * gdb_vecs.h: New file.
10802
10803 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10804
10805 * breakpoint.c (breakpoint_hit_catch_fork)
10806 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10807 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10808 * infrun.c (inferior_has_forked, inferior_has_vforked)
10809 (inferior_has_execd, inferior_has_called_syscall): Delete.
10810 (handle_syscall_event): Get syscall_number from the execution
10811 control state's wait status.
10812 (wait_for_inferior): Don't clear syscall_number.
10813
10814 2012-01-24 Pedro Alves <palves@redhat.com>
10815
10816 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10817 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10818 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10819 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10820 `ws' parameter.
10821 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10822 false for events other than TARGET_SIGNAL_TRAP.
10823 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10824 Add `ws' parameter.
10825 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10826 events other than TARGET_SIGNAL_TRAP.
10827 (tracepoint_breakpoint_hit): Add `ws' parameter.
10828 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10829 parameter.
10830 (bpstat_stop_status): Same.
10831 (pc_at_non_inline_function): Same.
10832 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10833 to pass the current event's waitstatus to bpstat_stop_status
10834 and pc_at_non_inline_function.
10835
10836 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10837
10838 Code cleanup.
10839 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10840 Update the function comment for it.
10841 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10842 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10843 for STREAM.
10844
10845 2012-01-24 Pedro Alves <palves@redhat.com>
10846
10847 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10848 outside `bs->stop' block.
10849 (bpstat_what): Rework bp_shlib_event handling.
10850 (internal_bkpt_check_status): If the breakpoint is a
10851 bp_shlib_event, then set bs->stop and bs->print if
10852 stop_on_solib_events is set.
10853
10854 2012-01-24 Gary Benson <gbenson@redhat.com>
10855
10856 Delete #if 0'd out code.
10857 * stack.c (print_frame_label_vars): Remove.
10858 (catch_info): Likewise.
10859 (_initialize_stack): Remove "info catch" command.
10860 * NEWS: Mention the above.
10861
10862 2012-01-24 Pedro Alves <palves@redhat.com>
10863
10864 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10865 it.
10866 (remote_notice_new_inferior): If the remote end doesn't support
10867 the multiprocess extensions, then the PID is fake.
10868 (add_current_inferior_and_thread): New.
10869 (remote_start_remote): Use it.
10870 (extended_remote_attach_1): Adjust.
10871 (extended_remote_create_inferior_1): Use
10872 add_current_inferior_and_thread.
10873
10874 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10875
10876 Fix watchpoints to be specific for each inferior.
10877 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10878 current_program_space.
10879 * i386-nat.c (i386_inferior_data_cleanup): New.
10880 (i386_inferior_data_get): Replace variable inf_data_local by an
10881 inferior_data call.
10882 (i386_use_watchpoints): Initialize i386_inferior_data.
10883 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10884 specific iterate_over_lwps.
10885
10886 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10887
10888 Fix watchpoints across inferior fork.
10889 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10890 comment for linux_nat_iterate_watchpoint_lwps.
10891 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10892 linux_nat_iterate_watchpoint_lwps.
10893 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10894 * i386-linux-nat.c (update_debug_registers_callback): Update the
10895 comment for linux_nat_iterate_watchpoint_lwps.
10896 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10897 linux_nat_iterate_watchpoint_lwps.
10898 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10899 * i386-nat.c: Include inferior.h.
10900 (dr_mirror): Remove.
10901 (i386_inferior_data, struct i386_inferior_data)
10902 (i386_inferior_data_get): New.
10903 (i386_debug_reg_state): Use i386_inferior_data_get.
10904 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10905 (i386_insert_watchpoint, i386_remove_watchpoint)
10906 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10907 (i386_remove_hw_breakpoint): New variable state, use
10908 i386_debug_reg_state instead of DR_MIRROR.
10909 * linux-nat.c (delete_lwp): New declaration.
10910 (num_lwps): Move here from downwards.
10911 (delete_lwp_cleanup): New.
10912 (linux_child_follow_fork): Create new child_lp, call
10913 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10914 PTRACE_DETACH.
10915 (num_lwps): Move upwards.
10916 (linux_nat_iterate_watchpoint_lwps): New.
10917 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10918 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10919
10920 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10921
10922 GDB 7.4 released.
10923
10924 2012-01-23 Pedro Alves <palves@redhat.com>
10925
10926 * top.c (caution): Rename to ...
10927 (confirm): ... this.
10928 (show_caution): Rename to ...
10929 (show_confirm): ... this.
10930 (quit_cover): Adjust.
10931 (init_main): Adjust.
10932 * top.h (caution): Rename to ...
10933 (confirm): ... this.
10934 * utils.c (internal_vproblem, defaulted_query): Adjust.
10935
10936 2012-01-23 Pedro Alves <palves@redhat.com>
10937
10938 * top.c (caution): Update comment.
10939 (execute_command): Don't consider the current value of `caution'.
10940
10941 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10942
10943 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10944
10945 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10946
10947 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10948 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10949 * target.c (target_fileio_pwrite): Remove buffer address from
10950 debug output.
10951 (target_fileio_pread): Likewise.
10952
10953 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10954
10955 * NEWS: Document remote "info proc" and "generate-core-file".
10956
10957 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10958
10959 * gdbarch.sh (find_memory_regions): New callback.
10960 * gdbarch.c, gdbarch.h: Regenerate.
10961
10962 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10963 callback before falling back to target method.
10964
10965 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10966 (linux_target_install_ops): No longer install it.
10967
10968 * linux-tdep.c (linux_find_memory_regions): New function.
10969 (linux_init_abi): Install it.
10970
10971 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10972
10973 * gdbarch.sh (make_corefile_notes): New architecture callback.
10974 * gdbarch.c: Regenerate.
10975 * gdbarch.h: Likewise.
10976
10977 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10978 before target_make_corefile_notes. If NULL is returned, the
10979 target does not support core file generation.
10980
10981 * linux-nat.c: Include "linux-tdep.h".
10982 (find_signalled_thread, find_stop_signal): Remove.
10983 (linux_nat_do_thread_registers): Likewise.
10984 (struct linux_nat_corefile_thread_data): Likewise.
10985 (linux_nat_corefile_thread_callback): Likewise.
10986 (iterate_over_spus): Likewise.
10987 (struct linux_spu_corefile_data): Likewise.
10988 (linux_spu_corefile_callback): Likewise.
10989 (linux_spu_make_corefile_notes): Likewise.
10990 (linux_nat_collect_thread_registers): New function.
10991 (linux_nat_make_corefile_notes): Replace contents by call to
10992 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10993 as native-only callback.
10994
10995 * linux-tdep.h: Include "bfd.h".
10996 (struct regcache): Add forward declaration.
10997 (linux_collect_thread_registers_ftype): New typedef.
10998 (linux_make_corefile_notes): Add prototype.
10999 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11000 "regset.h", and "elf-bfd.h".
11001 (find_signalled_thread, find_stop_signal): New functions.
11002 (linux_spu_make_corefile_notes): Likewise.
11003 (linux_collect_thread_registers): Likewise.
11004 (struct linux_corefile_thread_data): New data structure.
11005 (linux_corefile_thread_callback): New funcion.
11006 (linux_make_corefile_notes): Likewise.
11007 (linux_make_corefile_notes_1): Likewise.
11008 (linux_init_abi): Install it.
11009
11010 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11011
11012 * gdbarch.sh (info_proc): New callback.
11013 * gdbarch.c, gdbarch.h: Regenerate.
11014
11015 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11016 before falling back to the target info_proc callback.
11017
11018 * linux-nat.c: Do not include "cli/cli-utils.h".
11019 (linux_nat_info_proc): Remove.
11020 (linux_target_install_ops): No longer install it.
11021
11022 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11023 (read_mapping): New function.
11024 (linux_info_proc): Likewise.
11025 (linux_init_abi): Install it.
11026
11027 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11028
11029 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11030 * infcmd.c: (info_proc_cmd_1): New function.
11031 (info_proc_cmd): New function, moved here from equivalent routine
11032 orignally in linux-nat.c.
11033 (info_proc_cmd_mappings): Likewise.
11034 (info_proc_cmd_stat): Likewise.
11035 (info_proc_cmd_status): Likewise.
11036 (info_proc_cmd_cwd): Likewise.
11037 (info_proc_cmd_cmdline): Likewise.
11038 (info_proc_cmd_exe): Likewise.
11039 (info_proc_cmd_all): Likewise.
11040 (_initialize_infcmd): Install "info proc" command and subcommands.
11041
11042 * target.h (struct target_ops): Add to_info_proc.
11043 (target_info_proc): Add prototype.
11044 * target.c (target_info_proc): New function.
11045
11046 * procfs.c (procfs_info_proc): Add prototype.
11047 (info_proc_cmd): Rename into ...
11048 (procfs_info_proc): ... this. Update argument types as appropriate
11049 for a to_info_proc implementation. Handle "what" argument.
11050 (procfs_target): Install procfs_info_proc.
11051 (_initialize_procfs): No longer install "info proc" command.
11052
11053 * linux-nat.c: (enum info_proc_what): Remove.
11054 (linux_nat_info_proc_cmd_1): Rename into ...
11055 (linux_nat_info_proc): ... this. Update argument types as appropriate
11056 for a to_info_proc implementation.
11057 (linux_nat_info_proc_cmd): Remove.
11058 (linux_nat_info_proc_cmd_mappings): Likewise.
11059 (linux_nat_info_proc_cmd_stat): Likewise.
11060 (linux_nat_info_proc_cmd_status): Likewise.
11061 (linux_nat_info_proc_cmd_cwd): Likewise.
11062 (linux_nat_info_proc_cmd_cmdline): Likewise.
11063 (linux_nat_info_proc_cmd_exe): Likewise.
11064 (linux_nat_info_proc_cmd_all): Likewise.
11065 (linux_target_install_ops): Install linux_nat_info_proc.
11066 (_initialize_linux_nat): No longer install "info proc" command
11067 and subcommands.
11068
11069 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11070
11071 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11072 * config.in, configure: Regenerate.
11073
11074 * target.h (struct target_ops): Add to_fileio_readlink.
11075 (target_fileio_readlink): Add prototype.
11076 * target.c (target_fileio_readlink): New function.
11077
11078 * inf-child.c: Conditionally include <sys/param.h>.
11079 (inf_child_fileio_readlink): New function.
11080 (inf_child_target): Install it.
11081
11082 * remote.c (PACKET_vFile_readlink): New enum value.
11083 (remote_hostio_readlink): New function.
11084 (init_remote_ops): Install it.
11085 (_initialize_remote): Handle vFile:readlink packet type.
11086
11087 2012-01-20 Pedro Alves <palves@redhat.com>
11088 Ulrich Weigand <ulrich.weigand@linaro.org>
11089
11090 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11091 * config.in, configure: Regenerate.
11092
11093 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11094 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11095 (target_fileio_open): Add prototype.
11096 (target_fileio_pwrite): Likewise.
11097 (target_fileio_pread): Likewise.
11098 (target_fileio_close): Likewise.
11099 (target_fileio_unlink): Likewise.
11100 (target_fileio_read_alloc): Likewise.
11101 (target_fileio_read_stralloc): Likewise.
11102
11103 * target.c: Include "gdb/fileio.h".
11104 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11105 (default_fileio_target): New function.
11106 (target_fileio_open): Likewise.
11107 (target_fileio_pwrite): Likewise.
11108 (target_fileio_pread): Likewise.
11109 (target_fileio_close): Likewise.
11110 (target_fileio_unlink): Likewise.
11111 (target_fileio_close_cleanup): Likewise.
11112 (target_fileio_read_alloc_1): Likewise.
11113 (target_fileio_read_alloc): Likewise.
11114 (target_fileio_read_stralloc): Likewise.
11115
11116 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11117 <fcntl.h>, and <unistd.h>.
11118 (inf_child_fileio_open_flags_to_host): New function.
11119 (inf_child_errno_to_fileio_error): Likewise.
11120 (inf_child_fileio_open): Likewise.
11121 (inf_child_fileio_pwrite): Likewise.
11122 (inf_child_fileio_pread): Likewise.
11123 (inf_child_fileio_close): Likewise.
11124 (inf_child_fileio_unlink): Likewise.
11125 (inf_child_target): Install to_fileio routines.
11126
11127 * remote.c (init_remote_ops): Install to_fileio routines.
11128
11129 2012-01-20 Pedro Alves <palves@redhat.com>
11130 Ulrich Weigand <ulrich.weigand@linaro.org>
11131
11132 * remote.c (remote_multi_process_p): Only check for multi-process
11133 protocol feature, do not check for extended protocol.
11134 (remote_supports_multi_process): Check for extended protocol here.
11135 (set_general_process): Likewise.
11136 (extended_remote_kill): Likewise.
11137 (remote_pid_to_str): Likewise.
11138 (remote_query_supported): Always query multiprocess mode.
11139
11140 2012-01-20 Pedro Alves <palves@redhat.com>
11141 Ulrich Weigand <ulrich.weigand@linaro.org>
11142
11143 * inferior.h (struct inferior): Add fake_pid_p.
11144 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11145 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11146 magic_null_ptid since the remote side doesn't provide a real PID.
11147
11148 2012-01-19 Tom Tromey <tromey@redhat.com>
11149
11150 * NEWS: Combine the two Python sections.
11151
11152 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 * target.h (target_close): Update comment on the target's unpush state.
11155
11156 2012-01-19 Pedro Alves <palves@redhat.com>
11157
11158 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11159 linux_nat_async directly instead of going through the target
11160 vector.
11161 * target.c (unpush_target): Close target after unpushing it, not
11162 before.
11163
11164 2012-01-19 Gary Benson <gbenson@redhat.com>
11165
11166 * mdebugread.c (sort_blocks): Replace integer constants with ones
11167 derived from FIRST_LOCAL_BLOCK.
11168
11169 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11170 Jan Kratochvil <jan.kratochvil@redhat.com>
11171
11172 PR gdb/9538
11173 * symfile.c (find_separate_debug_file): New function.
11174 (terminate_after_last_dir_separator): Likewise.
11175 (find_separate_debug_file_by_debuglink): Also try realpath.
11176 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11177 * configure: Regenerate.
11178 * config.in: Regenerate.
11179
11180 2012-01-18 Doug Evans <dje@google.com>
11181
11182 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11183 (main.o): Remove rule.
11184 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11185 (--with-sysroot): Rewrite.
11186 * configure: Regenerate.
11187 * config.in: Regenerate.
11188
11189 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11190
11191 * parse.c (initialize_expout): New function.
11192 (reallocate_expout): Likewise.
11193 (parse_exp_in_context): Use `initialize_expout' and
11194 `reallocate_expout' when appropriate.
11195
11196 2012-01-18 Pedro Alves <palves@redhat.com>
11197
11198 * record.c (struct record_breakpoint, record_breakpoint_p)
11199 (record_breakpoints): New.
11200 (record_insert_breakpoint, record_remove_breakpoint): Manage
11201 record breakpoints list. Only remove breakpoints from the
11202 inferior if they had been inserted there in the first place.
11203
11204 2012-01-17 Doug Evans <dje@google.com>
11205
11206 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11207 if we know we don't have a file name to look for.
11208
11209 2012-01-17 Pedro Alves <palves@redhat.com>
11210
11211 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11212 the frame's stop reason is UNWIND_UNAVAILABLE.
11213
11214 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11215
11216 Fix compilation error.
11217 * m2-exp.y (yyerror): Use ANSI C prototype.
11218
11219 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11220
11221 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11222 (growbuf_by_size): Likewise.
11223 (yyerror): Likewise.
11224 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11225 (modblock): Remove variable (was #if 0'ed).
11226 (parse_number): Convert prototype from K&R to ANSI C.
11227 (yyerror): Likewise.
11228 * objc-exp.y (parse_number): Likewise.
11229 (yyerror): Likewise.
11230 (yylex): Remove #if 0'ed code.
11231 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11232 (yyerror): Likewise.
11233
11234 2012-01-16 Tom Tromey <tromey@redhat.com>
11235
11236 * NEWS: Add item.
11237 * symtab.h (compare_filenames_for_search): Declare.
11238 * symtab.c (compare_filenames_for_search): New function.
11239 (iterate_over_some_symtabs): Use it.
11240 * symfile.h (struct quick_symbol_functions)
11241 <map_symtabs_matching_filename>: Change spec.
11242 * psymtab.c (partial_map_symtabs_matching_filename): Use
11243 compare_filenames_for_search. Update for new spec.
11244 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11245 compare_filenames_for_search. Update for new spec.
11246 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11247
11248 2012-01-16 Tom Tromey <tromey@redhat.com>
11249
11250 PR python/13281:
11251 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11252 (struct main_type) <flag_flag_enum>: New field.
11253 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11254 * NEWS: Add entries.
11255 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11256 enums.
11257 * python/lib/gdb/printing.py (_EnumInstance): New class.
11258 (FlagEnumerationPrinter): Likewise.
11259
11260 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11261
11262 * breakpoint.c (create_sals_from_address_default): New function.
11263 (create_breakpoints_sal_default): Likewise.
11264 (decode_linespec_default): Likewise.
11265 (is_marker_spec): Removed.
11266 (strace_marker_p): New function.
11267 (init_breakpoint_sal): Using `strace_marker_p' instead of
11268 `is_marker_spec'.
11269 (create_breakpoint): Call method `create_sals_from_address' from
11270 breakpoint_ops, replacing code that created SALs conditionally
11271 on the type of the breakpoint. Call method `create_breakpoints_sal',
11272 replacing code that created breakpoints conditionally on the type
11273 wanted.
11274 (base_breakpoint_create_sals_from_address): New function.
11275 (base_breakpoint_create_breakpoints_sal): Likewise.
11276 (base_breakpoint_decode_linespec): Likewise.
11277 (base_breakpoint_ops): Add methods
11278 `base_breakpoint_create_sals_from_address',
11279 `base_breakpoint_create_breakpoints_sal' and
11280 `base_breakpoint_decode_linespec'.
11281 (bkpt_create_sals_from_address): New function.
11282 (bkpt_create_breakpoints_sal): Likewise.
11283 (bkpt_decode_linespec): Likewise.
11284 (tracepoint_create_sals_from_address): Likewise.
11285 (tracepoint_create_breakpoints_sal): Likewise.
11286 (tracepoint_decode_linespec): Likewise.
11287 (strace_marker_create_sals_from_address): Likewise.
11288 (strace_marker_create_breakpoints_sal): Likewise.
11289 (strace_marker_decode_linespec): Likewise.
11290 (strace_marker_breakpoint_ops): New variable.
11291 (addr_string_to_sals): Remove `marker_spec'. Call method
11292 `decode_linespec' from breakpoint_ops, replacing code that decoded
11293 an address string into a SAL. Use `strace_marker_p' instead of
11294 `marker_spec'.
11295 (strace_command): Decide whether we are dealing with a static
11296 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11297 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11298 * breakpoint.h (linespec_result, linespec_sals): New forward
11299 declarations.
11300 (breakpoint_ops) <create_sals_from_address>,
11301 <create_breakpoints_sal>, <decode_linespec>: New methods.
11302
11303 2012-01-14 Doug Evans <dje@google.com>
11304
11305 * NEWS: Update text for "maint set python print-stack".
11306 It is deprecated in gdb 7.4 and deleted in 7.5.
11307
11308 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11309
11310 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11311 including curses.h.
11312
11313 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11314
11315 * configure: Regenerate.
11316 * config.in: Regenerate.
11317
11318 2012-01-12 Keith Seitz <keiths@redhat.com>
11319
11320 PR mi/10586
11321 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11322 (ANONYMOUS_UNION_NAME): Define.
11323 (is_path_expr_parent): New function.
11324 (get_path_expr_parent): New function.
11325 (is_anonymous_child): New function.
11326 (create_child_with_value): If the child is anonymous and without
11327 a name, assign an object name to it.
11328 (c_describe_child): Use get_path_expr_parent to determine
11329 the parent expression.
11330 If there field represents an anonymous struct or union and
11331 has no name, set an appropriate display name and expression.
11332 (cplus_describe_child): Likewise.
11333
11334 2012-01-12 Pedro Alves <palves@redhat.com>
11335
11336 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11337 available when %ebp is found to be zero (outermost).
11338
11339 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11340
11341 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11342 an internal gdb_static_assert.
11343 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11344
11345 2012-01-11 Tom Tromey <tromey@redhat.com>
11346
11347 PR gdb/9598:
11348 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11349 catch" and "catch throw".
11350
11351 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11352
11353 * blockframe.c (block_innermost_frame): Start search from selected
11354 frame, if present, or otherwise the current frame.
11355
11356 * c-exp.y (variable): Update innermost_block for
11357 'block COLONCOLON NAME' clause.
11358 * m2-exp.y (variable): Ditto.
11359 * objc-exp.y (variable): Ditto.
11360
11361 2012-01-10 Tom Tromey <tromey@redhat.com>
11362
11363 PR python/13199:
11364 * python/python.c (finish_python_initialization): Set sys.argv.
11365
11366 2012-01-10 Doug Evans <dje@google.com>
11367
11368 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11369 "want_line_info". All callers updated.
11370 (dwarf_decode_lines_1): New function.
11371 (handle_DW_AT_stmt_list): Add function comment.
11372 New arg "want_line_info". All callers updated.
11373 (read_file_scope,read_type_unit_scope): Move comment from
11374 handle_DW_AT_stmt_list to here.
11375
11376 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11377
11378 Fix regression after libiberty/ update for GCC PR 6057 and others.
11379 * c-exp.y (operator) <OPERATOR DELETE>
11380 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11381 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11382 (make_builtin_type, make_name): New variable i, add gdb_assert.
11383 (operator) <OPERATOR NEW>: Update ARGS to 3.
11384 (operator) <OPERATOR DELETE>: Add trailing space.
11385 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11386 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11387 * cp-support.c (cp_canonicalize_string): Check NULL from
11388 cp_comp_to_string, call warning and return.
11389
11390 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11391
11392 Fix duplicate .o files after omitting libbfd.a.
11393 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11394 (SFILES): Add corelow.c.
11395 (COMMON_OBS): Add corelow.o.
11396 (ALLDEPFILES): Remove corelow.c.
11397 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11398 * config/alpha/alpha-osf3.mh: Likewise.
11399 * config/alpha/fbsd.mh: Likewise.
11400 * config/arm/nbsdaout.mh: Likewise.
11401 * config/arm/nbsdelf.mh: Likewise.
11402 * config/i386/i386gnu.mh: Likewise.
11403 * config/ia64/hpux.mh: Likewise.
11404 * config/ia64/linux.mh: Likewise.
11405 * config/m32r/linux.mh: Likewise.
11406 * config/m68k/linux.mh: Likewise.
11407 * config/mips/irix5.mh: Likewise.
11408 * config/mips/irix6.mh: Likewise.
11409 * config/pa/hpux.mh: Likewise.
11410 * config/pa/linux.mh: Likewise.
11411 * config/powerpc/aix.mh: Likewise.
11412 * config/sparc/linux.mh: Likewise.
11413 * config/sparc/linux64.mh: Likewise.
11414 * config/sparc/sol2.mh: Likewise.
11415 * config/vax/vax.mh: Likewise.
11416 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11417 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11418 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11419 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11420 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11421 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11422 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11423 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11424 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11425 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11426 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11427 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11428 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11429 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11430 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11431 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11432 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11433 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11434 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11435 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11436 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11437 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11438 corelow.o from gdb_target_obs.
11439 * corefile.c (core_target): Update the comment on NULL value.
11440 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11441 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11442 MATCHES. Drop YUMMY set on NULL.
11443 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11444 reclaim CORE_DATA if it is already NULL.
11445
11446 2012-01-09 Doug Evans <dje@google.com>
11447
11448 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11449 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11450
11451 2012-01-09 Keith Seitz <keiths@redhat.com>
11452
11453 * breakpoint.c (wrapper.h): Don't include.
11454
11455 2012-01-09 Keith Seitz <keiths@redhat.com>
11456
11457 * Makefile.in (SFILES): Remove wrapper.c.
11458 (HFILES_NO_SRCDIR): Remove wrapper.h.
11459 (COMMON_OBS): Remove wrapper.o.
11460 * cli/cli-interp.c: Don't inlude wrapper.h.
11461 * corelow.c: Likewise.
11462 (core_open): Replace gdb_target_find_new_threads with
11463 TRY_CATCH around target_find_new_threads.
11464 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11465 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11466 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11467 evaluate_expression.
11468 (varobj_set_value): Likewise for evaluate_expression and
11469 value_assign.
11470 (install_new_variable): Likewise for value_fetch_lazy.
11471 (adjust_value_for_child_access): Likewise for value_ind.
11472 (c_describe_child): Likewise for value_subscript and
11473 value_ind.
11474 (c_value_of_root): Likewise for evaluate_expression.
11475 * wrapper.c: Remove.
11476 * wrapper.h: Remove.
11477
11478 2012-01-09 Doug Evans <dje@google.com>
11479
11480 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11481 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11482 "abfd" args with "section". All callers updated.
11483 Error checking code moved ...
11484 (error_check_comp_unit_head): ... here. New function.
11485 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11486 Delete arg "abfd". New arg "type_offset". All callers updated.
11487 (create_debug_types_hash_table): Simplify by using
11488 read_and_check_type_unit_head.
11489
11490 * parser-defs.h (namecopy): Delete.
11491 * parse.c (namecopy, namecopy_size): Move into copy_name.
11492
11493 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11494
11495 Partially fix duplicate .o files after omitting libbfd.a.
11496 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11497 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11498 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11499 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11500 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11501 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11502 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11503
11504 2012-01-09 Pedro Alves <palves@redhat.com>
11505
11506 * MAINTAINERS: Update my email address.
11507
11508 2012-01-08 Doug Evans <dje@google.com>
11509
11510 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11511 n_type_units. Rename type_comp_units to all_type_units.
11512 All uses updated.
11513 (add_signatured_type_cu_to_table): Renamed from
11514 add_signatured_type_cu_to_list. All callers updated.
11515
11516 * gdbtypes.h (struct cplus_struct_type): Delete member
11517 nfn_fields_total. All uses removed.
11518
11519 2012-01-06 Doug Evans <dje@google.com>
11520
11521 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11522 to top of file.
11523 (dwarf2_find_comp_unit): Delete.
11524 (process_psymtab_comp_unit): Make result "void".
11525 Delete args buffer, info_ptr, buffer_size, and replace with
11526 "section". All callers updated.
11527 (dwarf2_build_psymtabs_hard): Simplify.
11528
11529 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11530 Thiago Jung Bauermann <bauerman@br.ibm.com>
11531
11532 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11533 before `struct gdb_exception'.
11534 * breakpoint.c (update_global_location_list_nothrow)
11535 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11536 * cp-abi.c (value_rtti_type): Likewise.
11537 * cp-support.c (cp_validate_operator): Likewise.
11538 * infrun.c (insert_exception_resume_breakpoint)
11539 (check_exception_resume, keep_going): Likewise.
11540 * mi-interp.c (mi_breakpoint_created)
11541 (mi_breakpoint_modified): Likewise.
11542 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11543 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11544 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11545
11546 2012-01-05 Doug Evans <dje@google.com>
11547
11548 * dwarf2read.c (statement_prologue): Delete, unused.
11549
11550 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11551 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11552
11553 * dwarf2read.c (comp_unit_header): Delete, unused.
11554
11555 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11556
11557 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11558 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11559
11560 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11561
11562 * infrun.c (normal_stop): Don't skip calling the normal_stop
11563 observers if the thread was doing a multi-step, but stopped for
11564 some reason other than stepping.
11565
11566 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11567
11568 * cli/cli-decode.h: Add comments.
11569 (CMD_LIST_AMBIGUOUS): Moved to command.h
11570 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11571 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11572 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11573 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11574 (add_com, add_com_alias, add_info, add_info_alias)
11575 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11576 declarations.
11577 * command.h: Add and adjust comments.
11578 (CMD_LIST_AMBIGUOUS): Moved here.
11579 (help_cmd, help_cmd_list): Delete declarations.
11580
11581 2012-01-04 Doug Evans <dje@google.com>
11582
11583 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11584 All callers updated.
11585 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11586 Replace all arguments with "per_cu". All callers updated.
11587
11588 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11589
11590 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11591 New arg "per_cu". All callers updated.
11592
11593 Delete #if 0'd out code.
11594 * language.c (binop_result_type): Delete.
11595 (simple_type, ordered_type, same_type, integral_type): Delete.
11596 (numeric_type, character_type, string_type, boolean_type): Delete.
11597 (float_type, structured_type): Delete.
11598 * language.h: Update.
11599
11600 2012-01-04 Tom Tromey <tromey@redhat.com>
11601
11602 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11603
11604 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11605
11606 * corefile.c (close_exec_file): Delete.
11607 (reopen_exec_file): Remove commented out code that seems related
11608 to close_exec_file, which is being deleted here.
11609 * inferior.h (close_exec_file): Delete.
11610 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11611
11612 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11613
11614 * ada-lang.c: #include "cli/cli-utils.h".
11615 (get_selections): Use skip_spaces.
11616 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11617 (catch_ada_exception_command_split): Use skip_spaces.
11618 (ada_decode_assert_location): Likewise.
11619
11620 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11621
11622 * linespec.c (decode_line_internal): Check for C++ or Java
11623 compound constructs only if the current language is C, C++
11624 or Java.
11625
11626 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11627
11628 Revert:
11629 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11630 Joel Brobecker <brobecker@adacore.com>
11631 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11632 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11633 3 times.
11634 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11635 fall through into AT_ENTRY_POINT.
11636 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11637 DUMMY_ADDR with it.
11638 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11639 PPC_INSN_SIZE skip to 3 times.
11640
11641 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11642
11643 * linespec.c (add_minsym): Preserve function descriptors.
11644
11645 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11646
11647 * breakpoint.c (all_locations_are_pending): Consider locations
11648 in program spaces executing during startup pending as well.
11649
11650 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11651
11652 Copyright year update in most files of the GDB Project.
11653
11654 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11655
11656 * copyright.sh: Delete.
11657 * copyright.py: Rewrite.
11658
11659 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11660
11661 * gnulib/extra/update-copyright: New file, imported from gnulib.
11662
11663 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11664
11665 * README (Copyright and License Notices): New section.
11666
11667 2012-01-03 Tom Tromey <tromey@redhat.com>
11668
11669 PR python/12533:
11670 * python/py-value.c (valpy_dereference, valpy_get_address
11671 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11672 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11673 (valpy_absolute, valpy_richcompare): Free intermediate values.
11674
11675 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11676
11677 * ada-lang.c: Reformat the copyright notice.
11678
11679 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11680
11681 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11682 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11683 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11684 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11685 Revert this part of:
11686 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11687 Build gdb directly from *.o files not using libgdb.a.
11688 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11689
11690 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11691
11692 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11693 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11694 Reformat the copyright header.
11695
11696 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11697
11698 Revert this part of:
11699 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11700 Remove the gdbtui binary.
11701 * gdb.c (main): Remove args.interpreter_p initialization.
11702 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11703 * main.h (struct captured_main_args): Remove interpreter_p.
11704
11705 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11706
11707 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11708
11709 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11710
11711 * top.c (print_gdb_version): Update copyright year.
11712
11713 2012-01-02 Yao Qi <yao@codesourcery.com>
11714
11715 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11716
11717 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11718 Joel Brobecker <brobecker@adacore.com>
11719
11720 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11721 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11722 3 times.
11723 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11724 fall through into AT_ENTRY_POINT.
11725 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11726 DUMMY_ADDR with it.
11727 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11728 PPC_INSN_SIZE skip to 3 times.
11729
11730 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11731
11732 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11733 the return value.
11734 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11735
11736 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11737
11738 Build gdb directly from *.o files not using libgdb.a.
11739 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11740 (COMMON_OBS): Remove solib-target.o.
11741 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11742 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11743 (LIBGDB_OBS, libgdb.a): Move it above.
11744 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11745 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11746 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11747 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11748 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11749 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11750 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11751 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11752 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11753 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11754 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11755 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11756 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11757 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11758 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11759 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11760 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11761 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11762 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11763 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11764 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11765 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11766 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11767 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11768 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11769 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11770 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11771
11772 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11773
11774 Remove the gdbtui binary.
11775 * .gitignore (/gdbtui): Remove.
11776 * Makefile.in (TUI): Remove.
11777 (SUBDIR_TUI_OBS): Remove tui-main.o.
11778 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11779 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11780 (tui-main.o): Remove.
11781 (all_object_files): Remove tui-main.o.
11782 * NEWS: New note for the gdbtui removal.
11783 * configure: Rebuilt.
11784 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11785 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11786 CONFIG_UNINSTALL respectively.
11787 * gdb.c (main): Remove args.interpreter_p initialization.
11788 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11789 * main.h (struct captured_main_args): Remove interpreter_p.
11790 * tui/tui-main.c: Remove.
11791
11792 2012-01-01 Doug Evans <dje@google.com>
11793
11794 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11795 (dwarf2_physname, read_import_statement): Ditto.
11796 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11797 (process_structure_scope read_subroutine_type): Ditto.
11798 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11799 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11800 (dwarf2_fetch_die_location_block): Ditto.
11801 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11802
11803 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11804 All callers updated.
11805 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11806 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11807 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11808
11809 * dwarf2read.c (load_cu): Move assert to more useful location.
11810
11811 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11812 All callers updated.
11813
11814 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11815 (dwarf2_elf_names): Minor reformat.
11816 (dwarf2_per_cu_data): Tweak comment.
11817 (dwarf2_read_section): Fix comment.
11818 (create_all_comp_units): Fix comment.
11819 (load_full_comp_unit): Fix comment.
11820 (process_full_comp_unit): Fix comment.
11821 (read_signatured_type): Fix comment.
11822
11823 For older changes see ChangeLog-2011.
11824 \f
11825 Local Variables:
11826 mode: change-log
11827 left-margin: 8
11828 fill-column: 74
11829 version-control: never
11830 coding: utf-8
11831 End: