* c-typeprint.c (find_typedef_for_canonicalize,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bd69fc68
TT
12012-11-12 Tom Tromey <tromey@redhat.com>
2
3 * c-typeprint.c (find_typedef_for_canonicalize,
4 print_name_maybe_canonical): New functions.
5 (c_print_type): Look up type name.
6 (cp_type_print_derivation_info): Add flags argument. Use
7 print_name_maybe_canonical.
8 (cp_type_print_method_args): Add wrapping.
9 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
10 (c_type_print_template_args): New function.
11 (c_type_print_base): Change wrapping. Use
12 print_name_maybe_canonical.
13 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
14 type name lookups.
15 * gdbtypes.c (types_equal): No longer static.
16 * gdbtypes.h (types_equal): Declare.
17 * typeprint.c (type_print_raw_options, default_ptype_flags):
18 Update.
19 (struct typedef_hash_table): New.
20 (hash_typedef_field, eq_typedef_field,
21 recursively_update_typedef_hash, add_template_parameters,
22 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
23 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
24 copy_typedef_hash, find_typedef_in_hash): New functions.
25 * typeprint.h (struct type_print_options) <local_typedefs>:
26 New field.
27 (recursively_update_typedef_hash, add_template_parameters,
28 create_typedef_hash, free_typedef_hash,
29 make_cleanup_free_typedef_hash, copy_typedef_hash,
30 find_typedef_in_hash): Declare.
31
2621e0fd
TT
322012-11-12 Tom Tromey <tromey@redhat.com>
33
34 * cp-support.c (inspect_type,
35 replace_typedefs_qualified_name, replace_typedefs): Add
36 finder, data arguments. Call as needed.
37 (cp_canonicalize_string_full): New function.
38 (cp_canonicalize_string_no_typedefs): Rewrite.
39 * cp-support.h (canonicalization_ftype): New typedef.
40 (cp_canonicalize_string_full): Declare.
41
53342f27
TT
422012-11-12 Tom Tromey <tromey@redhat.com>
43
44 * NEWS: Update.
45 * c-typeprint.c (c_type_print_base): Handle print_method and
46 print_typedefs flags.
47 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
48 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
49 options.
50 * typeprint.c (type_print_raw_options, default_ptype_flags):
51 Update for new field.s
52 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
53 (setprinttypelist, showprinttypelist, print_methods,
54 print_typedefs): New globals.
55 (set_print_type, show_print_type, set_print_type_methods,
56 show_print_type_methods, set_print_type_typedefs,
57 show_print_type_typedefs): New functions.
58 (_initialize_typeprint): Update documentation. Add "print
59 type methods" and "print type typedefs" parameters.
60 * typeprint.h (struct type_print_options) <print_methods,
61 print_typedefs>: New fields.
62
6c8702eb
TT
632012-11-12 Tom Tromey <tromey@redhat.com>
64
65 * c-typeprint.c (cp_type_print_method_args): Add flags
66 argument. Call c_print_type, not type_print.
67 (c_type_print_base): Call c_print_type, not type_print.
68 Update.
69
79d43c61
TT
702012-11-12 Tom Tromey <tromey@redhat.com>
71
72 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
73 to type-printing functions.
74 * ada-lang.h (ada_print_type): Add argument.
75 * ada-typeprint.c (print_array_type, print_variant_clauses,
76 print_variant_part, print_selected_record_field_types,
77 print_record_field_types, print_unchecked_union_type,
78 print_func_type, ada_print_type): Add flags argument.
79 (ada_print_typedef): Update.
80 * c-exp.y (OPERATOR conversion_type_id): Update.
81 * c-lang.h (c_print_type, c_type_print_base): Update.
82 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
83 c_type_print_modifier, c_type_print_args,
84 c_type_print_varspec_suffix, c_type_print_base): Add flags
85 argument.
86 * cp-valprint.c (cp_print_class_member): Update.
87 * dwarf2read.c (dwarf2_compute_name): Update.
88 * f-lang.h (f_print_type): Add argument.
89 * f-typeprint.c (f_print_type): Add flags argument.
90 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
91 * go-lang.h (go_print_type): Add argument.
92 * go-typeprint.c (go_print_type): Add flags argument.
93 * jv-lang.h (java_print_type): Add argument.
94 * jv-typeprint.c (java_type_print_base, java_print_type): Add
95 flags argument.
96 * language.c (unk_lang_print_type): Add flags argument.
97 * language.h (struct language_defn) <la_print_type>: Add flags
98 argument.
99 (LA_PRINT_TYPE): Likewise.
100 * m2-lang.h (m2_print_type): Add argument.
101 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
102 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
103 m2_unbounded_array, m2_record_fields): Add flags argument.
104 * p-lang.h (pascal_print_type, pascal_type_print_base,
105 pascal_type_print_varspec_prefix): Add argument.
106 * p-typeprint.c (pascal_print_type,
107 pascal_type_print_varspec_prefix, pascal_print_func_args,
108 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
109 flags argument.
110 * symmisc.c (print_symbol): Update.
111 * typeprint.c (type_print_raw_options, default_ptype_flags):
112 New globals.
113 (type_print): Update.
114 * typeprint.h (struct type_print_options): New.
115 (type_print_raw_options): Declare.
116 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
117
cf4ded82
KS
1182012-11-10 Keith Seitz <keiths@redhat.com>
119
120 * breakpoint.c (clear_command): Add cleanup for
121 sals.sals if an argument is given.
122
123 * linespec.c (parse_linespec): Do cleanups after
124 parsing a convenience variable.
125
0d63ecda
KS
1262012-11-10 Keith Seitz <keiths@redhat.com>
127
128 PR gdb/14288
129 * c-valprint.c (c_val_print): For character arrays
130 with "print null" option on, print ellipses if
131 the output is truncated and the next character is not \000.
132 * valprint.c (MAX_WCHARS): Define.
133 (WCHAR_BUFLEN): Likewise.
134 (WCHAR_BUFLEN_MAX): Likewise.
135 (struct converted_character): New structure.
136 (count_next_character): New function.
137 (print_converted_chars_to_obstack): New function.
138 (generic_printstr): Rewrite using count_next_character
139 and print_converted_chars_to_obstack.
140
9b8d6827
SC
1412012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
142
143 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
144 while executing the gdb command.
145 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
146 are called from prompt_for_continue.
147 * tui/tui-io.c (tui_redisplay_readline): Likewise.
148
e840f632
SC
1492012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
150
151 PR tui/9584
152
153 * tui/tui.c (tui_rl_command_key): Do not call execute_command
154 but insert the command to execute in readline's buffer.
155
f5656ead
TT
1562012-11-09 Tom Tromey <tromey@redhat.com>
157
158 * gdbarch.sh (target_gdbarch): Remove macro.
159 (get_target_gdbarch): Rename to target_gdbarch.
160 * gdbarch.c, gdbarch.h: Rebuild.
161 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
162 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
163 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
164 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
165 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
166 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
167 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
168 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
169 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
170 procfs.c, progspace.c, ravenscar-thread.c, record.c,
171 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
172 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
173 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
174 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
175 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
176 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
177 target-descriptions.c, target.c, target.h, tracepoint.c,
178 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
179 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
180 python/py-inferior.c, python/python.c: Update.
181
ed8a1c2d
AB
1822012-11-09 Andrew Burgess <aburgess@broadcom.com>
183
184 * source.c (print_source_lines_base): Add fullname field giving
185 full path to file in mi output.
186 * NEWS: Mention the new fullname field.
187
504b36fd
YQ
1882012-11-09 Yao Qi <yao@codesourcery.com>
189
190 * NEWS: Mention the fix to the ambiguity of 'fo' command.
191
9107fc8d
PA
1922012-11-09 Pedro Alves <palves@redhat.com>
193
194 PR gdb/14306
195
196 * infrun.c: Include target-descriptions.h.
197 (follow_exec): Fetch new target description.
198
30f8135b
YQ
1992012-11-09 Yao Qi <yao@codesourcery.com>
200
201 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
202 0x8d (lea).
203
558a9d82
YQ
2042012-11-09 Yao Qi <yao@codesourcery.com>
205
206 * breakpoint.c: Declare set_tracepoint_count.
207 (install_breakpoint): Call set_tracepoint_count if B is a
208 tracepoint.
209 (trace_command): Don't call set_tracepoint_count. Re-indent.
210 (strace_command, ftrace_command):
211 (create_tracepoint_from_upload): Likewise.
212
6ecd4729
PA
2132012-11-09 Pedro Alves <palves@redhat.com>
214
215 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
216 (get_target_gdbarch) <gdbarch.h>: New function.
217 (startup_gdbarch) <gdbarch.h>: Declare.
218 <gdbarch.c> (target_gdbarch): Delete.
219 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
220 current inferior's gdbarch.
221 <gdbarch.c> (get_target_gdbarch): New function.
222 * inferior.c: Include target-descriptions.h.
223 (free_inferior): Free target description info.
224 (add_inferior_with_spaces): Set the inferior's initial
225 architecture.
226 (clone_inferior_command): Copy the original inferior's target
227 description if it was user specified.
228 (initialize_inferiors): Add comment.
229 * inferior.h (struct target_desc_info): Forward declare.
230 (struct inferior) <gdbarch>: New field.
231 * linux-nat.c: Include target-descriptions.h.
232 (linux_child_follow_fork): Copy the parent's architecture and
233 target description to the child.
234 * target-descriptions.c: Include inferior.h.
235 (struct target_desc_info): New structure, holding the equivalents
236 of ...
237 (target_desc_fetched, current_target_desc)
238 (target_description_filename): ... these removed globals.
239 (get_tdesc_info, target_desc_info_from_user_p)
240 (copy_inferior_target_desc_info, target_desc_info_free): New.
241 (target_desc_fetched, current_target_desc)
242 (target_description_filename): Reimplemented as convenience
243 macros.
244 (tdesc_filename_cmd_string): New global.
245 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
246 tdescs filename ..." commands to the per-inferior equivalent.
247 (show_tdesc_filename_cmd): Get the value to show from the
248 per-inferior description filename.
249 (_initilize_target_descriptions): Change the "set/show tdesc
250 filename" commands' variable.
251 * target-descriptions.h (struct target_desc, struct target_desc_info)
252 (struct inferior): Forward declare.
253 (target_find_description, target_clear_description)
254 (target_current_description): Adjust comments.
255 (copy_inferior_target_desc_info, target_desc_info_free)
256 (target_desc_info_from_user_p). Declare.
257
4ca4d161
SC
2582012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
259
260 * tui/tui-hooks.c (tui_about_to_proceed): New function.
261 (tui_target_wait_hook): Remove.
262 (tui_install_hooks): Install the about_to_proceed observer.
263 (tui_remove_hooks): And remove it here.
264
9015683b
TT
2652012-11-08 Tom Tromey <tromey@redhat.com>
266
267 * linux-tdep.c (linux_make_siginfo_note): New function.
268 (linux_make_corefile_notes): Use it.
269 * corelow.c (get_core_siginfo): New function.
270 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
271
ea9f10bb
TT
2722012-11-08 Tom Tromey <tromey@redhat.com>
273
274 PR gdb/14704:
275 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
276 (zlib_decompress_section): Remove.
277 (gdb_bfd_map_section): Only check for compressed section
278 in mmap case. Use bfd_get_full_section_contents.
279 * osabi.c (check_note): Add 'sectsize' argument. Read
280 section data.
281 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
282 section data. Update for check_note change.
283 * xcoffread.c (xcoff_initial_scan): Use
284 bfd_get_full_section_contents.
285 * py-auto-load.c (auto_load_section_scripts): Use
286 bfd_get_full_section_contents.
287 * contrib/cc-with-tweaks.sh: Add -Z option.
288
d071a26b
TT
2892012-11-08 Tom Tromey <tromey@redhat.com>
290
291 * python/py-bpevent.c: Include defs.h.
292 * python/py-continueevent.c: Include defs.h.
293 * python/py-event.c: Include defs.h.
294 * python/py-event.h: Don't include defs.h.
295 * python/py-events.h: Don't include defs.h.
296 * python/py-evts.c: Include defs.h.
297 * python/py-exitedevent.c: Include defs.h.
298 * python/py-newobjfileevent.c: Include defs.h.
299 * python/py-signalevent.c: Include defs.h.
300 * python/py-stopevent.c: Include defs.h.
301 * python/py-threadevent.c: Include defs.h.
302
4574b35a
PM
3032012-11-08 Pierre Muller <muller@sourceware.org>
304
305 * update-web-ari.sh (print_heading): Add number of files
306 checked.
307 (nb_files): New variable counting the number of sources
308 files found by gdb_find.sh script.
309 (debug_awk): New variable to allow extra debug output.
310 (indexes): Add more information if DEBUG_AWK is set.
311
2834ab42
EBM
3122012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
313
314 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
315 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
316 following the change in PLT call stubs on linker.
317
84f13595
PM
3182012-11-08 Pierre Muller <muller@sourceware.org>
319
320 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
321 as default language.
322 (AWK): Use = instead of == for sh test to avoid warning.
323 (Linux rule): Correct [:digit] into [[:digit:]].
324 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
325 (vasprintf rule): Adapt to common subdirectory moves.
326 (xasprintf rule): Idem.
327 (xvasprintf rule): Idem.
328 (var_boolean rule): Accept occurence in == or != test.
329
330 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
331
d69e6a33
SC
3322012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
333
334 * tui/tui-hooks.c (tui_inferior_exit): New function.
335 (tui_detach_hook): Remove.
336 (tui_install_hooks): Install the inferior exit observer.
337 (tui_remove_hooks): Remove it.
338
1e96de83
YQ
3392012-11-08 Yao Qi <yao@codesourcery.com>
340
341 PR gdb/14777.
342 * source.c (_initialize_source): Call add_com_alias to abbreviate
343 'forward-search' as 'fo'.
344
0baeab03
PA
3452012-11-07 Pedro Alves <palves@redhat.com>
346
347 * arm-tdep.c: Make defs.h be the first include.
348 * coff-pe-read.c: Ditto.
349 * gnu-nat.c: Ditto.
350 * go32-nat.c: Ditto.
351 * i386-nat.c: Ditto.
352 * ppcnbsd-nat.c: Ditto.
353 * ada-varobj.h: Don't include defs.h.
354 * i386-darwin-tdep.h: Ditto.
355 * i386-nat.h: Ditto.
356
892a8570
PA
3572012-11-07 Pedro Alves <palves@redhat.com>
358
359 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
360 Committee.
361
719502e9
PM
3622012-11-07 Pierre Muller <muller@sourceware.org>
363
364 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
365 File already uses "gdb_dirent.h" header.
366
ed86b350
YQ
3672012-11-07 Yao Qi <yao@codesourcery.com>
368
369 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
370 tracepoint_count'.
371
9a4f1e4f
TT
3722012-11-06 Tom Tromey <tromey@redhat.com>
373
374 * target.h (inferior_has_forked, inferior_has_vforked)
375 (inferior_has_execd, inferior_has_called_syscall): Remove
376 declarations.
377
0316657e
PM
3782012-11-06 Pierre Muller <muller@sourceware.org>
379
380 * remote.c (remote_insert_hw_breakpoint): ARI fix,
381 add missing internalization markup.
382
f6592439
PA
3832012-11-06 Pedro Alves <palves@redhat.com>
384
385 PR gdb/14810
386
387 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
388
01f2564a
PM
3892012-11-06 Pierre Muller <muller@sourceware.org>
390
391 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
392 is not executable.
393
f37c4431
JB
3942012-11-05 Joel Brobecker <brobecker@adacore.com>
395
396 * gnulib/update-gnulib.sh: New script.
397
550889c3
JB
3982012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
399
400 * MAINTAINERS: Update my email address.
401
954b50b3
TT
4022012-11-05 Tom Tromey <tromey@redhat.com>
403
404 * frame.c (put_frame_register): Don't use temporary buffer.
405
68c9da30
PA
4062012-11-05 Pedro Alves <palves@redhat.com>
407
408 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
409 child. Clear 'pending_detach'.
410 * infrun.c (handle_vfork_child_exec_or_exit): Clear
411 'pending_detach' in the vfork parent.
412
80626a55
DE
4132012-11-05 Doug Evans <dje@google.com>
414
415 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
416 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
417 * dwarf2read.c: #include "elf-bfd.h".
418 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
419 (dwop_section_names): Renamed from dwo_section names. All uses
420 updated. Add entries for .debug_cu_index, .debug_tu_index.
421 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
422 All uses updated.
423 (struct dwp_sections): New type.
424 (struct virtual_dwo_sections): New type.
425 (struct dwp_hash_table): New type.
426 (struct dwp_file): New type.
427 (init_cutu_and_read_dies): Ensure DWO info/types section has been
428 read in. Handle DWOs coming from DWP files.
429 (lookup_dwo_file_slot): New function.
430 (dwarf2_locate_dwo_sections): Move definition closer to use.
431 (create_dwo_debug_info_hash_table_reader): Renamed from
432 create_debug_info_hash_table_reader. All callers updated.
433 (create_dwo_debug_info_hash_table): Renamed from
434 create_debug_info_hash_table. All callers updated.
435 (create_dwp_hash_table): New function.
436 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
437 (lookup_dwo_in_dwp): New function.
438 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
439 is_dwp. All callers updated.
440 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
441 (open_and_init_dwo_file): Renamed from init_dwo_file.
442 All callers updated.
443 (lookup_dwo_file): Delete.
444 (dwarf2_locate_dwp_sections): New function.
445 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
446 (allocate_dwp_loaded_cutus_table): New function.
447 (open_and_init_dwp_file): New function.
448 (lookup_dwo_cutu): New function.
449 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
450
6f6484cd
YQ
4512012-11-03 Yao Qi <yao@codesourcery.com>
452
453 Fix PR gdb/14617.
454 * breakpoint.c (trace_pass_set_count): Call
455 observer_notify_breakpoint_modified instead of
456 observer_notify_tracepoint_modified.
457 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
458
b45627a0
TT
4592012-11-02 Tom Tromey <tromey@redhat.com>
460
461 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
462 argument to complete_on_enum.
463
d4fb63e1
TT
4642012-11-02 Tom Tromey <tromey@redhat.com>
465
466 * configure: Rebuild.
467 * configure.ac (build_warnings): Add -Wempty-body.
468 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
469 * remote.c (handle_notification): Use braces for empty 'else' body.
470 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
471 'else' body.
472 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
473 'else' body.
474 * solib-som.c (som_relocate_section_addresses): Use braces
475 for empty 'else' body.
476 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
477 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
478
f50f4e56
PA
4792012-11-02 Pedro Alves <palves@redhat.com>
480
481 PR gdb/14766
482
483 * infrun.c (handle_inferior_event)
484 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
485 null_ptid before handling a vfork child exec or exit. Switch to
486 the event ptid afterwards.
487
f0559fff
YQ
4882012-11-02 Yao Qi <yao@codesourcery.com>
489
490 * std-operator.def: Remove OP_LABELED.
491 * eval.c: Remove the declaration of 'get_label'.
492 (get_label): Remove.
493 (evaluate_struct_tuple): Remove code handling OP_LABELED.
494 Update comment.
495 Remove local variable 'variantno' and related code.
496 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
497 with 'fieldno'.
498 * expprint.c (print_subexp_standard): Likewise.
499 (dump_subexp_body_standard): Likewise.
500 * parse.c (operator_length_standard): Likewise.
501
e5496e3e
PM
5022012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
503
504 Incorporate ARI web page generator into GDB sources.
505 * contrib/ari/create-web-ari-in-src.sh: New file.
506 * contrib/ari/gdb_ari.sh: New file.
507 * contrib/ari/gdb_find.sh: New file.
508 * contrib/ari/update-web-ari.sh: New file.
509
c66fb220
TT
5102012-10-31 Tom Tromey <tromey@redhat.com>
511
512 * gdbarch.c: Rebuild.
513 * gdbarch.sh: Remove references to gdbarch_swap.
514 * corelow.c (core_open): Remove obsolete comment.
515
2f27adfe
AB
5162012-10-31 Andrew Burgess <aburgess@broadcom.com>
517
518 PR cli/14772
519 * c-typeprint.c (c_print_type): Don't print a space for vector
520 types, this is handled within the suffix.
521 (c_type_print_varspec_suffix): Add a space to vector suffix.
522
144db827
PA
5232012-10-26 Pedro Alves <palves@redhat.com>
524
525 * amd64-tdep.c (amd64_relocate_instruction): Use
526 store_unsigned_integer instead of memcpy.
527 * i386-tdep.c (i386_relocate_instruction): Ditto.
528
940c3c06
PA
5292012-10-26 Pedro Alves <palves@redhat.com>
530
531 * infrun.c (handle_inferior_event): Merge handling of
532 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
533 switch case.
534
47b19065
PA
5352012-10-26 Pedro Alves <palves@redhat.com>
536
537 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
538 Remove comment.
539
87d2d2a4
PA
5402012-10-26 Pedro Alves <palves@redhat.com>
541
542 * target.c (target_waitstatus_to_string): Handle
543 TARGET_WAITKIND_VFORK_DONE.
544
fed708ed
PA
5452012-10-26 Pedro Alves <palves@redhat.com>
546
547 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
548 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
549
2590b645
JB
5502012-10-24 Tristan Gingold <gingold@adacore.com>
551
552 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
553 Add comments.
554
bed0c243
JB
5552012-10-24 Joel Brobecker <brobecker@adacore.com>
556
557 * ravenscar-thread.c (ravenscar_wait): Only update the list
558 of threads and inferior_ptid if the inferior is still alive.
559
f69c91ad
JB
5602012-10-24 Joel Brobecker <brobecker@adacore.com>
561
562 * ada-lang.c (is_known_support_routine): Use lbasename when
563 matching the symtab's filename against
564 known_runtime_file_name_patterns.
565
d99dcf51
JB
5662012-10-24 Joel Brobecker <brobecker@adacore.com>
567
568 * ada-lang.c (ada_same_array_size_p): New function.
569 (ada_promote_array_of_integrals): New function.
570 (coerce_for_assign): Add handling of arrays where the elements
571 are integrals of a smaller size than the size of the target
572 array element type.
573
32560274
JB
5742012-10-24 Joel Brobecker <brobecker@adacore.com>
575
576 * doublest.c (convert_doublest_to_floatformat): Fix comparison
577 against maximum exponent value.
578
5a04cc98
JB
5792012-10-24 Joel Brobecker <brobecker@adacore.com>
580
581 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
582 "unwind-seh.c".
583
5ded5331
JB
5842012-10-24 Joel Brobecker <brobecker@adacore.com>
585
586 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
587 strip typedef layer when computing the fixed type's field type,
588 only when computing its size.
589
2445fd7b
MK
5902012-10-24 Mark Kettenis <kettenis@gnu.org>
591
592 PR gdb/12783
593 * i386-tdep.c (i386_return_value): Handle complex double and long
594 double.
595
8f205f9c
JB
5962012-10-24 Joel Brobecker <brobecker@adacore.com>
597
598 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
599 New local variable args_len.
600 Quote the name of the executable when computing the command line.
601
7f7930dd
MK
6022012-10-23 Mark Kettenis <kettenis@gnu.org>
603
604 PR gdb/12796
605 PR gdb/12798
606 PR gdb/12800
607 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
608 AMD64_FTAG_REGNUM.
609 * amd64-tdep.c (amd64_classify): Classify complex types.
610 (amd64_return_value): Handle the COMPLEX_X87 class.
611
38a69d0a
JB
6122012-10-23 Joel Brobecker <brobecker@adacore.com>
613
614 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
615 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
616
83ab93c6
JB
6172012-10-23 Joel Brobecker <brobecker@adacore.com>
618
619 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
620 function.
621 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
622 to amd64_windows_auto_wide_charset.
623
f6fbab7d
YQ
6242012-10-23 Yao Qi <yao@codesourcery.com>
625
626 * event-top.c (mark_async_signal_handler_wrapper): Remove.
627 * event-top.h: Remove its declaration.
628 (async_request_quit): Call mark_async_signal_handler instead of
629 mark_async_signal_handler_wrapper.
630 (async_do_nothing, async_disconnect): Likewise.
631 (async_stop_sig): Likewise.
632 * remote.c (handle_remote_sigint): Likewise.
633 (handle_remote_sigint_twice): Likewise.
634
05fa9251
YQ
6352012-10-23 Yao Qi <yao@codesourcery.com>
636
637 * event-top.c (sigint_token, sighup_token): Replace 'void *'
638 with 'static struct async_signal_handler *'.
639 (sighup_token, sigquit_token, sigstp_token): Likewise.
640
08af7a40
AA
6412012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
642
643 * gdbarch.sh (function_list): Use 'pstring' when printing
644 a variable which could return NULL.
645 * gdbarch.c: Regenerate.
646
beb4b03c
JB
6472012-10-10 Joel Brobecker <brobecker@adacore.com>
648 Tom Tromey <tromey@redhat.com>
649
650 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
651 inneffective if condition by gdb assertion. Add function
652 description comment.
653
a5b12627
JB
6542012-10-19 Joel Brobecker <brobecker@adacore.com>
655
656 * parser-defs.h (struct exp_descriptor): Document constraint
657 on return value for "op_name" callbacks.
658
0b0865da
TT
6592012-10-18 Tom Tromey <tromey@redhat.com>
660
661 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
662 * symtab.c (iterate_over_some_symtabs): Constify.
663 * source.h (symtab_to_fullname): Return 'const char *'.
664 * source.c (symtab_to_fullname): Return 'const char *'.
665 * python/py-symtab.c (stpy_fullname): Constify.
666 * cli/cli-cmds.c (edit_command): Constify.
667 * breakpoint.c (print_breakpoint_location)
668 (update_static_tracepoint): Constify.
669
94b0e70d
TT
6702012-10-18 Tom Tromey <tromey@redhat.com>
671
672 * breakpoint.c (compare_breakpoints): Fix comparison.
673
fff10684
TT
6742012-10-18 Tom Tromey <tromey@redhat.com>
675
676 * valprint.c (generic_emit_char, generic_printstr): Pass size of
677 gdb_wchar_t to convert_between_encodings.
678
8de0566d
YQ
6792012-10-17 Yao Qi <yao@codesourcery.com>
680
681 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
682 more parameter 'inferior'.
683 * corefile.c (write_memory_with_notification): Caller update.
684
685 * mi/mi-cmd-var.c: Include "mi-main.h".
686 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
687 to 1 and restore it later.
688 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
689 and "data-write-memory-bytes.
690 * mi/mi-interp.c: Include objfiles.h.
691 (mi_interpreter_init): Call observer_attach_memory_changed.
692 (mi_memory_changed): New.
693 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
694 New field.
695
696 * NEWS: Mention new MI notification "memory-changed".
697
6235cdd1
JK
6982012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
699
700 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
701
07540c15
DE
7022012-10-15 Doug Evans <dje@google.com>
703
704 New option -nh: inhibit loading of ~/.gdbinit.
705 * NEWS: Mention -nh.
706 * main.c (captured_main): Recognize and process -nh.
707 (print_gdb_help): Mention -nh.
708 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
709
eab09350
L
7102012-10-15 H.J. Lu <hongjiu.lu@intel.com>
711
712 PR backtrace/14646
713 PR gdb/14647
714 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
715 pc_regnum_from_eax.
716 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
717 nor pc_regnum_from_eax.
718 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
719 nor pc_regnum_from_eax.
720
9e3a7d65
JK
7212012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
722
723 Fix entry values resolving in inlined frames.
724 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
725 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
726 entries of FRAME.
727
c83393b9
JB
7282012-10-15 Joel Brobecker <brobecker@adacore.com>
729
730 * configure.ac: Build with -DMS_WIN64 if building with Python
731 enabled using GCC on amd64-windows.
732 * configure: Regenerate.
733
801e4185
TT
7342012-10-15 Tom Tromey <tromey@redhat.com>
735
736 PR python/14635:
737 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
738 to Py_None.
739
74f910c8
TT
7402012-10-15 Tom Tromey <tromey@redhat.com>
741
742 PR python/14634:
743 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
744
2a7c8fd5
AB
7452012-10-11 Andrew Burgess <aburgess@broadcom.com>
746
747 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
748 reset thread numbering back to 1.
749
7c09e5a0
DE
7502012-10-11 Doug Evans <dje@google.com>
751
752 PR breakpoints/14643.
753 * linespec.c (struct ls_parser): New member keyword_ok.
754 (linespec_lexer_lex_string): Add comment.
755 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
756 for one.
757 (parse_linespec): Set keyword_ok.
758
a1855c1d
DE
7592012-10-10 Doug Evans <dje@google.com>
760
844226d6
DE
761 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
762 "0x" prefix on address in log message.
763
a1855c1d
DE
764 * dwarf2read.c (read_1_byte): Add const to buf parameter.
765 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
766 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
767 (lookup_dwo_file): Add const to dwo_name parameter.
768 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
769
2e24f4aa
JK
7702012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
771
772 Fix crash during stepping on ppc32.
773 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
774 SYM.
775
aa14df25
DE
7762012-10-03 Doug Evans <dje@google.com>
777
778 PR symtab/14601
779 * buildsym.c (buildsym_init): Reset using_directives to NULL.
780
3d468296
AB
7812012-10-02 Andrew Burgess <aburgess@broadcom.com>
782
783 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
784 output and use uint32_t not long to ensure 4 byte size.
785
8f0ee2eb
JB
7862012-10-02 Joel Brobecker <brobecker@adacore.com>
787
788 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
789 unref'ed it.
790
b3dc46ff
AB
7912012-10-01 Andrew Burgess <aburgess@broadcom.com>
792
793 * target.c (simple_search_memory): Include access length in
794 warning message.
795
f712f01f
EBM
7962012-09-28 Nathan Miller <nathanm2@us.ibm.com>
797 Edjunior Machado <emachado@linux.vnet.ibm.com>
798
799 PR gdb/13989
800 * solib.c (solib_find): Prevent GDB from loading native libraries when
801 debugging a cross-target corefile.
802
39181896
PA
8032012-09-28 selven <pcthegreat@gmail.com>
804
805 Make definition match declaration.
806
807 * regcache.c (regcache_register_status): Change return type to
808 enum register_status.
809
4c2786ba
YQ
8102012-09-28 Yao Qi <yao@codesourcery.com>
811
812 * mi/mi-main.c (mi_cmd_data_write_memory): Call
813 write_memory_with_notification instead of write_memory.
814 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
815 instead of target_write_memory.
816
1ae0c35e
YQ
8172012-09-28 Yao Qi <yao@codesourcery.com>
818
819 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
820 when the length of content is not an even number.
821
7977e5d2
TT
8222012-09-27 Tom Tromey <tromey@redhat.com>
823
824 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
825 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
826
807160da
JB
8272012-09-27 Joel Brobecker <brobecker@adacore.com>
828
829 * sol-thread.c (sol_thread_fetch_registers)
830 (sol_thread_store_registers): Delete commented out code.
831
43c75337
JB
8322012-09-27 Joel Brobecker <brobecker@adacore.com>
833
834 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
835 Move these functions to sparc-sol-thread.c.
836 * sparc-sol-thread.c: New file.
837 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
838 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
839 configurations.
840 * configure: Regenerate.
841
d292a972
JB
8422012-09-27 Joel Brobecker <brobecker@adacore.com>
843
844 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
845 Remove commented-out code.
846
8c3da003
JB
8472012-09-27 Joel Brobecker <brobecker@adacore.com>
848
849 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
850 Enable this code for sparc hosts only.
851
f00482b6
JB
8522012-09-27 Joel Brobecker <brobecker@adacore.com>
853
854 * procfs.h (procfs_find_LDT_entry): Add declaration.
855 * sol-thread.c (ps_lgetLDT): Delete local declaration of
856 function procfs_find_LDT_entry.
857
337c776f
JB
8582012-09-27 Joel Brobecker <brobecker@adacore.com>
859
860 * procfs.c (proc_get_LDT_entry): Make static.
861
1a04d88f
JB
8622012-09-27 Joel Brobecker <brobecker@adacore.com>
863
864 * procfs.c (proc_find_memory_regions): Fix declaration.
865
bad43aa5
SP
8662012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
867
868 * amd64-tdep.c (amd64_return_value): Revert previous change
869 that used TYPE_LENGTH directly.
870 * bfin-tdep.c (bfin_extract_return_value): Likewise.
871 (bfin_store_return_value): Likewise.
872 * cris-tdep.c (cris_store_return_value): Likewise.
873 (cris_extract_return_value): Likewise.
874 * h8300-tdep.c (h8300_extract_return_value): Likewise.
875 * hppa-tdep.c (hppa64_return_value): Likewise.
876 * lm32-tdep.c (lm32_store_return_value): Likewise.
877 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
878 * spu-tdep.c (spu_value_from_register): Likewise.
879 * vax-tdep.c (vax_return_value): Likewise.
880
63375b74
SP
8812012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
882
883 * gdbtypes.c (lookup_array_range_type): Expand parameters
884 LOW_BOUND and HIGH_BOUND to LONGEST.
885 (lookup_string_range_type): Likewise.
886 * gdbtypes.h (lookup_array_range_type): Likewise.
887 (lookup_string_range_type): Likewise.
888 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
889 Expand HIGHBOUND to ssize_t.
890 (value_string): Likewise.
891 * value.h (value_cstring): Expand parameter LEN to ssize_t.
892 (value_string): Likewise.
893
19ca11c5
YQ
8942012-09-27 Yao Qi <yao@codesourcery.com>
895
896 PR breakpoints/13898
897 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
898 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
899 per breakpoint type.
900
92107356
PM
9012012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
902
903 * procfs.c: Add gdb_bfd header.
904 * rs6000-nat.c: Likewise.
905 * solib-pa64.c: Likewise.
906 * spu-linux-nat.c: Likewise.
907 * windows-nat.c: Likewise.
908
9742094a
TT
9092012-09-26 Tom Tromey <tromey@redhat.com>
910
911 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
912
0971de02
TT
9132012-09-26 Tom Tromey <tromey@redhat.com>
914
915 * dwarf2read.c (mark_common_block_symbol_computed): New function.
916 (read_common_block): Handle child DIEs with
917 DW_AT_data_member_location.
918 (new_symbol_full): Add special case for common blocks.
919
4357ac6c
TT
9202012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
921 Tom Tromey <tromey@redhat.com>
922
923 * dwarf2read.c (read_common_block): Rewrite.
924 (new_symbol_full): Handle DW_TAG_common_block.
925 * f-lang.c (head_common_list, find_common_for_function):
926 Remove.
927 * f-lang.h (struct common_entry, struct saved_f77_common,
928 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
929 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
930 BLANK_COMMON_NAME_LOCAL): Remove.
931 (struct common_block): New.
932 * f-valprint.c (list_all_visible_commons): Remove.
933 (info_common_command_for_block): New function.
934 (info_common_command): Use it.
935 * stack.c (iterate_over_block_locals): Special case for
936 COMMON_BLOCK_DOMAIN.
937 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
938 constant.
939 (struct general_symbol_info) <value.common_block>: New field.
940 (SYMBOL_VALUE_COMMON_BLOCK): New define.
941
965f07a8
TT
9422012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
943 Tom Tromey <tromey@redhat.com>
944
945 * f-lang.c (allocate_saved_bf_node,
946 allocate_saved_function_node, allocate_saved_f77_common_node,
947 allocate_common_entry_node, tail_common_list, current_common,
948 saved_bf_list, saved_bf_list_end, current_head_bf_list,
949 tmp_bf_ptr, add_common_block, add_common_entry,
950 find_first_common_named, patch_common_entries,
951 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
952 global_remote_debug, get_bf_for_fcn, saved_function_list,
953 saved_function_list_end, clear_function_list, struct saved_fcn,
954 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
955 SAVED_BF, SAVED_BF_PTR): Remove.
956 * f-lang.h (tail_common_list, current_common,
957 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
958 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
959 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
960 real_main_c_value): Remove.
961 * f-valprint.c (there_is_a_visible_common_named): Remove.
962
6f380991
AB
9632012-09-26 Andrew Burgess <aburgess@broadcom.com>
964
965 * breakpoint.c (update_global_location_list): Ignore previous
966 duplicate status of a breakpoint when starting a new scan for
967 duplicate breakpoints.
968
9ead7ae4 9692012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 970 PR breakpoints/14419
2536b51c
YQ
971 * arm-tdep.c (arm_skip_prologue): Extending producer check to
972 support LLVM compiler.
9ead7ae4 973
8f8a23a2
SP
9742012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
975
976 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
977 * bfin-tdep.c (bfin_extract_return_value): Likewise.
978 (bfin_store_return_value): Likewise.
979 * cris-tdep.c (cris_store_return_value): Likewise.
980 (cris_extract_return_value): Likewise.
981 * h8300-tdep.c (h8300_extract_return_value): Likewise.
982 * hppa-tdep.c (hppa64_return_value): Likewise.
983 * lm32-tdep.c (lm32_store_return_value): Likewise.
984 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
985 * spu-tdep.c (spu_value_from_register): Likewise.
986 * vax-tdep.c (vax_return_value): Likewise.
987
d7019589
SP
9882012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
989
990 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
991 parameter LEN to ssize_t.
992
744a8059
SP
9932012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
994
995 * ada-valprint.c (ada_val_print_1): Eliminate single-use
996 variable LEN.
997 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
998 directly.
999 (alpha_store_return_value): Likewise.
1000 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1001 (amd64_push_arguments): Likewise.
1002 * ax-gdb.c (gen_trace_static_fields): Likewise.
1003 (gen_traced_pop): Likewise.
1004 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1005 * breakpoint.c (update_watchpoint): Likewise.
1006 * findcmd.c (parse_find_args): Use local variable for type
1007 instead of length.
1008 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1009 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1010 (h8300_store_return_value): Likewise.
1011 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1012 Use i386_darwin_arg_type_alignment directly.
1013 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1014 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1015 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1016 (m68hc11_extract_return_value): Likewise.
1017 * mep-tdep.c (mep_push_dummy_call): Likewise.
1018 * printcmd.c (float_type_from_length): Likewise.
1019 * s390-tdep.c (s390_value_from_register): Likewise.
1020 * stack.c (read_frame_arg): Likewise.
1021 * tracepoint.c (encode_actions_1): Likewise.
1022 * valops.c (value_fetch_lazy): Use local variable for type
1023 instead of length. Use TYPE_LENGTH directly.
1024 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1025
a4b411d6
JB
10262012-09-25 Joel Brobecker <brobecker@adacore.com>
1027
1028 * symtab.c (skip_prologue_sal): Fix typo in comment.
1029
11dba07a
JB
10302012-09-25 Joel Brobecker <brobecker@adacore.com>
1031
1032 * linespec.c (create_sals_line_offset): Fix typo in comment.
1033
318102b9
SP
10342012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1035
1036 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1037 use plongest to print the array size.
1038
b4aa388a
SP
10392012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1040
1041 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1042 * p-valprint.c (pascal_type_print_base): Likewise.
1043
84cebc4a
YQ
10442012-09-22 Yao Qi <yao@codesourcery.com>
1045
1046 * remote.c (remote_get_trace_status): Remove setting default
1047 values of fields of 'ts'.
1048
04e7407c
JK
10492012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1050
1051 Fix internal error on canonicalization of clang types.
1052 * cp-name-parser.y (operator): New comment at make_operator call for
1053 new, delete, new[] and delete[].
1054 (exp): Use "sizeof ". Add new comment at make_operator call.
1055
9bf4bce9
JK
10562012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1057
1058 Fix disassemble without parameters in tailcall frame.
1059 * cli/cli-cmds.c (disassemble_current_function): Use
1060 get_frame_address_in_block.
1061
1c5b7826
TT
10622012-09-21 Tom Tromey <tromey@redhat.com>
1063
1064 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1065 TYPE_CODE_UNION>: Unify, removing a goto.
1066
62a49610
TT
10672012-09-21 Tom Tromey <tromey@redhat.com>
1068
1069 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1070
2603f7ee
AB
10712012-09-21 Andrew Burgess <aburgess@broadcom.com>
1072
1073 * findvar.c (read_frame_register_value): Mark the result value as
1074 optimized out if any of the input registers have been optimized out.
1075
810849a3
AS
10762012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1077
1078 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1079
0953dec1
SP
10802012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1081
1082 * eval.c (evaluate_subexp_standard): Eliminate single-use
1083 variable LOWER.
1084
82a90ccf
YQ
10852012-09-21 Yao Qi <yao@codesourcery.com>
1086
1087 * mi/mi-interp.c: Declare mi_record_changed.
1088 (mi_interpreter_init): Call observer_attach_record_changed.
1089 (mi_record_changed): New.
1090 * record.c (record_open): Call observer_notify_record_changed.
1091 (cmd_record_stop): Call observer_notify_record_changed.
1092 * NEWS: Mention it.
1093
d7de8e3c
TT
10942012-09-20 Tom Tromey <tromey@redhat.com>
1095
1096 * NEWS: Update.
1097 * python/python.c (finalize_python): New function.
1098 (_initialize_python): Make a final cleanup.
1099
43c7c83d
DE
11002012-09-19 Doug Evans <dje@google.com>
1101
1102 * buildsym.h (param_symbols): Delete, unused.
1103 (context_stack): Delete member "params", unused.
1104 * buildsym.c (push_context): Update.
1105 * dwarf2read.c (read_func_scope): Update.
1106
aa9259cc
TS
11072012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1108
a6521d9a
TS
1109 * sh-tdep.c (sh_register_convert_to_virtual)
1110 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1111 all callers. Just do a memcpy if not the little-endian case.
1112
f92589cb
TS
1113 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1114 set_gdbarch_double_format and set_gdbarch_long_double_format.
1115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1116 set_gdbarch_double_format.
1117 * sh-tdep.c (sh_gdbarch_init): Likewise.
1118
aa9259cc
TS
1119 * NEWS: Document the removal of SH's 'regs' command.
1120 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1121 command.
1122
c1d780c2
SDJ
11232012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1124
1125 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1126 `jump'.
1127
4ae24af0
JB
11282012-09-18 Joel Brobecker <brobecker@adacore.com>
1129
1130 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1131 language when iterating over symbols.
1132
bb25a15c
YQ
11332012-09-18 Yao Qi <yao@codesourcery.com>
1134
1135 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1136 (mi_interpreter_init): Call observer_attach_tsv_created and
1137 observer_attach_tsv_deleted.
1138 (mi_tsv_created, mi_tsv_deleted): New.
1139 * tracepoint.c (delete_trace_state_variable): Call
1140 observer_notify_tsv_deleted.
1141 (trace_variable_command): Call observer_notify_tsv_created.
1142 (delete_trace_variable_command): Call
1143 observer_notify_tsv_deleted.
1144 (create_tsv_from_upload): Call observer_notify_tsv_created.
1145 * NEWS: Mention it.
1146
201b4506
YQ
11472012-09-18 Yao Qi <yao@codesourcery.com>
1148
1149 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1150 if traceframe changed.
1151 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1152 "trace-find".
1153 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1154 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1155 'traceframe_changed'.
1156 (mi_traceframe_changed): New.
1157 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1158 New field.
1159 * NEWS: Mention the new MI notification.
1160
eaeb12db
MW
11612012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1162
1163 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1164
6e3c039e
JK
11652012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1166
1167 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1168 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1169 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1170 Extend code also for PaX support. Convert all gdb_assert to warning
1171 calls.
1172
9a950c7c
JK
11732012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1174
1175 Implement auto-load user conveniences suggested by Doug Evans.
1176 * auto-load.c: Include top.h.
1177 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1178 (_initialize_auto_load): New variable scripts_directory_help. Mention
1179 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1180 scripts-directory. Document in online help one can use also files for
1181 set auto-load safe-path.
1182 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1183 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1184
deec9a9d
SP
11852012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1186
1187 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1188 of LEN.
1189
354ecfd5
SP
11902012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1191
1192 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1193 ELTLEN and use TYPE_LENGTH directly.
1194 (m2_val_print): Likewise.
1195 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1196 variable LEN and use TYPE_LENGTH directly.
1197 (m68k_svr4_store_return_value): Likewise.
1198 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1199 ARGLEN and use TYPE_LENGTH directly.
1200 (mips_o64_push_dummy_call): Likewise.
1201 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1202 variable LENGTH and use TYPE_LENGTH directly.
1203 (s390_function_arg_float): Likewise.
1204 (s390_function_arg_integer): Likewise.
1205 (s390_push_dummy_call): Likewise.
1206 (s390_return_value_convention): Likewise.
1207 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1208 TYPE_LENGTH directly.
1209
6fc1c773
YQ
12102012-09-17 Yao Qi <yao@codesourcery.com>
1211
1212 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1213 Update comment to add_setshow_integer_cmd.
1214 * cli/cli-setshow.c (do_set_command): Handle case
1215 'var_zuinteger_unlimited'.
1216 (do_show_command): Likewise.
1217 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1218 for command 'remotetimeout'.
1219 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1220 to var_integer.
1221 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1222 for command 'set listsize'.
1223
6acef6cd
SP
12242012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1225
1226 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1227 variable LEN.
1228
1ab3b62c
JK
12292012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1230
1231 PR 14119
1232 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1233 (frame_pop): Drop also TAILCALL_FRAME frames.
1234 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1235
acf9414f
JK
12362012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1237 Pedro Alves <palves@redhat.com>
1238
1239 PR 14548
1240 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1241 function start if we are already at function start. Both for
1242 reverse-next and for reverse-step into function without line number
1243 info.
1244
193facb3
JK
12452012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1246
1247 Code cleanup - rename 'inline' depth to 'artificial' depth.
1248 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1249 frame_id_artificial_p, extend the comment.
1250 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1251 * frame.c (fprint_frame_id): Rename at a user, change debug output
1252 text to "artificial=".
1253 (skip_inlined_frames): Rename to ...
1254 (skip_artificial_frames): ... here. Extend the comment.
1255 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1256 (frame_id_inlined_p): Rename to ...
1257 (frame_id_artificial_p): ... here. Rename at a user.
1258 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1259 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1260 at a user.
1261 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1262 Extend the comment.
1263 (frame_id_inlined_p): Rename to ...
1264 (frame_id_artificial_p): ... here.
1265 * inline-frame.c (inline_frame_this_id): Rename at a user.
1266
42056501
AB
12672012-09-14 Andrew Burgess <aburgess@broadcom.com>
1268
1269 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1270 vector variables using vector_size syntax rather than array
1271 syntax.
1272
84c47588
SP
12732012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1274
1275 * valarith.c (value_concat): Replace unsafe ALLOCA with
1276 XMALLOC/XFREE.
1277
f4045bcb
PA
12782012-09-14 Pedro Alves <palves@redhat.com>
1279
1280 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1281
63b46266
YPK
12822012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1283
1284 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1285 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1286 data-directory as appropriate.
1287
ddd7a8e7
SP
12882012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1289
1290 * printcmd.c (ui_printf): Eliminate single-use variable
1291 PARAM_LEN.
1292
d649a38e
YQ
12932012-09-14 Yao Qi <yao@codesourcery.com>
1294 Pedro Alves <palves@redhat.com>
1295
1296 * valops.c (value_assign): Move observer_notify_target_changed
1297 below to replace reinit_frame_cache.
1298
b9516fa1
YPK
12992012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1300
1301 Refactor Python "gdb" module into a proper Python package, by
1302 introducing a new "_gdb" module for code implemented in C, and
1303 using reload/__import__ instead of exec.
1304 * python/lib/gdb/__init__.py: Import * from _gdb.
1305 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1306 prompt_hook, sys.argv): Moved from finish_python_initialization.
1307 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1308 (packages, auto_load_packages): New list and function replacing
1309 module_dict and auto-loading code, using __file__ instead of
1310 gdb.PYTHONDIR and reload/__import__ instead of exec.
1311 (GdbSetPythonDirectory): Replacing function of the same name
1312 from finish_python_initialization, using reload/__import__ instead
1313 of exec, as well as call auto_load_packages.
1314 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1315 gdb_python_module and not gdb_module.
1316 * python/python-internal.h (gdb_python_module): Declare.
1317 * python/python.c (gdb_python_module): New global.
1318 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1319 (_initialize_python): Rename gdb module to _gdb.
1320 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1321 (finish_python_initialization): Move Python code to
1322 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1323 __main__.
1324
aa0fbdd8
PA
13252012-09-13 Pedro Alves <palves@redhat.com>
1326
1327 * Makefile.in (COMMON_OBS): Add registry.o.
1328 * registry.c: New file.
1329 * registry.h (struct registry_container): Declare.
1330 (registry_data_callback): New typedef.
1331 (struct registry_data, struct registry_data_registration, struct
1332 registry_data_registry): New type.
1333 (register_data_with_cleanup, registry_alloc_data)
1334 (registry_callback_adaptor, registry_clear_data)
1335 (registry_container_free_data, registry_set_data, registry_data):
1336 Declare.
1337 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1338 the new common structures and functions.
1339 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1340 callback typedefs.
1341
42b5c53d
MW
13422012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1343
1344 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1345 there is an error inserting hardware breakpoints and use the
1346 error message from the target.
1347
1348 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1349 Catch this exception and print the error message contained within. Do not
1350 print the default hardware error breakpoint message in this case.
1351
a1b64ce1
DE
13522012-09-12 Doug Evans <dje@google.com>
1353
1354 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1355 cu == NULL.
1356
83a788b8
DE
13572012-09-11 Doug Evans <dje@google.com>
1358
1359 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1360 .gdb_index symbol attributes if there are none.
1361
d9eaeb59
JB
13622012-09-11 Joel Brobecker <brobecker@adacore.com>
1363
1364 * symtab.h (struct minimal_symbol) [has_size]: New field.
1365 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1366 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1367 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1368 minimal symbols if the symbol's size is actually known.
1369 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1370 of msymbol's size field. Add comment.
1371 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1372 SET_MSYMBOL_SIZE to set the minimal symbol size.
1373
a83e9154
JB
13742012-09-11 Joel Brobecker <brobecker@adacore.com>
1375
1376 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1377 minimal_symbol struct object, rather than setting some of its
1378 fields one by one.
1379
350b1b26
AB
13802012-09-11 Andrew Burgess <aburgess@broadcom.com>
1381
1382 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1383 passed_a_ptr flag when displaying typedef types.
1384
2fa15f23
JB
13852012-09-10 Joel Brobecker <brobecker@adacore.com>
1386
1387 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1388 the optimized_out flag is preserved.
1389
5152ff90
AG
13902012-09-10 Anthony Green <green@moxielogic.com>
1391
1392 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1393 prologue changes in GCC.
1394
5b4f6e25
KS
13952012-09-10 Keith Seitz <keiths@redhat.com>
1396
1397 PR gdb/13483
1398 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1399 (BOOL_CONVERSION_BADNESS): ... this.
1400 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1401 (rank_one_type): Allow all boolean conversions
1402 permitted by the standard.
1403
f1070426
TT
14042012-09-06 Tom Tromey <tromey@redhat.com>
1405
1406 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1407 Don't decref py_objfile.
1408
a8db4212
YPK
14092012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1410
1411 Do not enable -lmcheck by default when Python is enabled with
1412 threading support.
1413 * configure.ac: (python_has_threads) New variable, by testing
1414 if WITH_THREAD is defined in Python.h.
1415 Move --enable-lmcheck after --with-python.
1416 Do not enable -lmcheck by default if python_has_threads=yes.
1417 Warn if --enable-lmcheck and python_has_threads=yes.
1418 * configure: Regenerate.
1419
648beb2b
YQ
14202012-08-31 Yao Qi <yao@codesourcery.com>
1421
1422 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1423 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1424 Update some commands.
1425 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1426 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1427 to 1.
1428
ef07a9f7
YQ
14292012-08-31 Yao Qi <yao@codesourcery.com>
1430
1431 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1432
fda395cf
YPK
14332012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1434
1435 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1436
8efd8e78
DE
14372012-08-29 Doug Evans <dje@google.com>
1438
1439 * main.c (print_gdb_help): Remove reference to
1440 --use-deprecated-index-sections.
1441
883b9c6c
YQ
14422012-08-28 Yao Qi <yao@codesourcery.com>
1443
1444 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1445 (init_cmds): Call add_setshow_uinteger_cmd for command
1446 'max-user-call-depth'.
1447 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1448 declaration of 'max_user_call_depth'.
1449 * frame.c (backtrace_limit): Add 'unsigned'.
1450 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1451 'limit'.
1452 * remote.c (remoteaddresssize): Add 'unsigned'.
1453 (remote_address_masked): Change local var 'address_size' to
1454 'unsigned'.
1455 (_initialize_remote): Call add_setshow_uinteger_cmd for
1456 'remoteaddresssize'.
1457 * top.c (history_size): Add 'unsigned'.
1458 (show_commands): Change local variables to 'unsigned'.
1459 (set_history_size_command): Don't check history_size is negative.
1460 Adjust the condition to call unstifle_history and set history_size
1461 to UNIT_MAX.
1462
1292279a
PA
14632012-08-28 Pedro Alves <palves@redhat.com>
1464
1465 PR gdb/14428
1466
1467 * infcmd.c (default_print_one_register_info): New, factored out
1468 from default_print_registers_info.
1469 (default_print_registers_info): Use it. Mark value unavailable if
1470 necessary.
1471 (registers_info): Print user registers with
1472 default_print_one_register_info.
1473
f629cd75
L
14742010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1475
1476 PR tui/14486
1477 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1478 is not NULL before referencing it.
1479
1c8cdcb1
JK
14802012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1483 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1484 original PC for it.
1485
e9687799
JK
14862012-08-27 Eli Zaretskii <eliz@gnu.org>
1487 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 * auto-load.c (auto_load_objfile_script): Rename to ...
1490 (auto_load_objfile_script_1): ... here, change variable realname to
1491 parameter realname, document it, add return value, add variable retval.
1492 (auto_load_objfile_script): New function.
1493
7afa1642
JK
14942012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1495
1496 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1497 followed by a whitespace.
1498
dc7650b8
JK
14992012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1500
28e66c70 1501 PR gdb/14494.
dc7650b8
JK
1502 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1503 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1504 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1505 here.
1506
1591a1e8
PA
15072012-08-27 Wei-cheng Wang <cole945@gmail.com>
1508
1509 * memattr.c (create_mem_region): Fix memory region overlapping
1510 checking.
1511
ecfb0d68
SP
15122012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1513
1514 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1515 with xmalloc/cleanup.
1516 * mt-tdep.c (mt_push_dummy_call): Likewise.
1517 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1518 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1519
8c56c1b9
YQ
15202012-08-24 Yao Qi <yao@codesourcery.com>
1521
1522 * jv-exp.y (push_expression_name): Add "." at the end of error
1523 message.
1524
e3480f4a
YPK
15252012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1526
1527 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1528 * python/python.c (_initialize_python): Update documentation.
1529
dfbd5e7b
PA
15302012-08-23 Pedro Alves <palves@redhat.com>
1531
1532 * infrun.c (_initialize_infrun) <handle command help text>:
1533 Mention that multiple signals are supported.
1534
2edda2ff
PA
15352012-08-23 Pedro Alves <palves@redhat.com>
1536
1537 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1538 string.
1539
8d735b87
YQ
15402012-08-23 Yao Qi <yao@codesourcery.com>
1541
1542 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1543 (tfind_1): Don't call registers_changed, set_traceframe_num,
1544 and clear_traceframe_info.
1545 Call set_current_traceframe.
1546 (set_current_traceframe): call set_traceframe_num.
1547
c5d9b215
SDJ
15482012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1549
1550 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1551 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1552
037bbc8e
YPK
15532012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1554
1555 Enable readline in Python in a GDB-specific way and block the
1556 standard Python readline module to prevent conflicts with GDB.
1557 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1558 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1559 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1560 * python/py-gdb-readline.c: New file.
1561 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1562 prototype.
1563 * python/python.c (_initialize_python): Call
1564 gdbpy_initialize_gdb_readline.
1565
406b1477
KS
15662012-08-22 Keith Seitz <keiths@redhat.com>
1567
1568 * defs.h: Include build-gnulib/config.h
1569
6ca1b147
JM
15702012-08-22 Joseph Myers <joseph@codesourcery.com>
1571
1572 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1573 and blx pc.
1574
8315665e
YPK
15752012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1576
1577 Add a new "python-interactive" command that starts a standard
1578 Python interactive prompt with "pi" as alias, and add "py" as
1579 an alias to "python".
1580 * NEWS: Mention the new commands.
8315665e
YPK
1581 * python/python.c (eval_python_command): New function.
1582 (python_interactive_command): For "python-interactive" with
1583 arguments, call eval_python_command. For "python-interactive"
1584 without arguments, call PyRun_InteractiveLoop.
1585 (_initialize_python): Add "python-interactive" command with
1586 "pi" as alias, and add "py" as an alias to "python".
1587
522002f9
TT
15882012-08-22 Tom Tromey <tromey@redhat.com>
1589
1590 * defs.h (quit_flag): Don't declare.
1591 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1592 (QUIT): Use new functions.
1593 * event-top.c (command_handler): Use clear_quit_flag.
1594 (handle_sigint): Use set_quit_flag.
1595 (async_request_quit): Use check_quit_flag. Don't check
1596 immediate_quit.
1597 * exceptions.c (throw_exception): Use clear_quit_flag.
1598 * main.c (captured_main): Use clear_quit_flag.
1599 * python/python.c (clear_quit_flag, set_quit_flag)
1600 (check_quit_flag): New functions.
1601 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1602 clear_quit_flag.
1603 * remote.c (remote_wait_as): Use check_quit_flag,
1604 clear_quit_flag.
1605 (remote_start_remote): Call QUIT.
1606 * symfile.c (load_progress): Use check_quit_flag.
1607 * top.c (command_loop): Use clear_quit_flag.
1608 (command_line_input): Call QUIT.
1609 * utils.c (quit_flag): Conditionally define.
1610 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1611 functions.
1612 (prompt_for_continue): Call QUIT. Use quit, not
1613 async_request_quit.
1614 * remote-mips.c (mips_expect_timeout): Call QUIT.
1615 * monitor.c (monitor_expect): Call QUIT.
1616
b583003e
TT
16172012-08-22 Tom Tromey <tromey@redhat.com>
1618
1619 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1620 (async_init_signals): Update.
1621 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1622 (SIGWINCH_HANDLER_BODY): Remove.
1623
e1507e95
TT
16242012-08-22 Tom Tromey <tromey@redhat.com>
1625
1626 * jit.c (jit_object_close_impl): Don't malloc the objfile
1627 name.
1628 * objfiles.c (allocate_objfile): Don't malloc the objfile
1629 name.
1630 (free_objfile): Don't free the objfile name.
1631 * objfiles.h (struct objfile) <name>: Update comment.
1632 * symfile.c (reread_symbols): Fix reference counting. Don't
1633 malloc objfile name.
1634
1c00ec6b
TT
16352012-08-22 Tom Tromey <tromey@redhat.com>
1636
1637 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1638 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1639 (symfile_bfd_open): Likewise.
1640 (generic_load): Likewise.
1641 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1642 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1643 gdb_bfd_open.
1644 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1645 Use gdb_bfd_open.
1646 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1647 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1648 (pmon_load_fast): Likewise.
1649 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1650 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1651 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1652 (macho_check_dsym): Likewise.
1653 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1654 (m32r_upload_command): Likewise.
1655 * gdb_bfd.h (gdb_bfd_cache): Declare.
1656 * gdb_bfd.c (struct gdb_bfd_data): New.
1657 (gdb_bfd_cache): New global.
1658 (struct gdb_bfd_cache_search): New.
1659 (hash_bfd): New function.
1660 (eq_bfd): Likewise.
1661 (gdb_bfd_open): Likewise.
1662 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1663 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1664 gdb_bfd_data.
1665 * exec.c (exec_file_attach): Use gdb_bfd_open.
1666 * dsrec.c (load_srec): Use gdb_bfd_open.
1667
6532ff36
TT
16682012-08-22 Tom Tromey <tromey@redhat.com>
1669
1670 * dwarf2read.c (macro_start_file): Update.
1671 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1672 (free_objfile_per_bfd_storage): Destroy macro_cache.
1673 (allocate_objfile, free_objfile): Update.
1674 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1675 New field.
1676 (struct objfile) <macro_cache>: Remove.
1677 * symfile.c (reread_symbols): Update.
1678 * symmisc.c (print_symbol_bcache_statistics): Update.
1679 (print_objfile_statistics): Update.
1680
706e3705
TT
16812012-08-22 Tom Tromey <tromey@redhat.com>
1682
1683 * elfread.c (elf_symtab_read): Update.
1684 * objfiles.c (objfiles_bfd_data): New global.
1685 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1686 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1687 (allocate_objfile, free_objfile): Update.
1688 (_initialize_objfiles): Initialize objfiles_bfd_data.
1689 * objfiles.h (struct objfile_per_bfd_storage): New.
1690 (struct objfile) <per_bfd>: New field.
1691 <filename_cache>: Remove.
1692 (set_objfile_per_bfd): Declare.
1693 * symfile.c (reread_symbols): Update. Call
1694 set_objfile_per_bfd.
1695 (allocate_symtab): Update.
1696 * symmisc.c (print_symbol_bcache_statistics): Update.
1697 (print_objfile_statistics): Print the size of the BFD obstack.
1698
e992eda4
TT
16992012-08-22 Tom Tromey <tromey@redhat.com>
1700
1701 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1702 * gdb_bfd.c: Use DEFINE_REGISTRY.
1703 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1704 (gdb_bfd_ref): Call bfd_alloc_data.
1705 (gdb_bfd_unref): Call bfd_free_data.
1706
6b81941e
TT
17072012-08-22 Tom Tromey <tromey@redhat.com>
1708
1709 * registry.h (struct registry_fields): New.
1710 (REGISTRY_FIELDS): Redefine.
1711 (REGISTRY_ACCESS_FIELD): New macro.
1712 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1713 functions.
1714
8e260fc0
TT
17152012-08-22 Tom Tromey <tromey@redhat.com>
1716
1717 * auto-load.c (_initialize_auto_load): Update.
1718 * solib-svr4.c (_initialize_svr4_solib): Update
1719 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1720 * solib-darwin.c (_initialize_darwin_solib): Update.
1721 * registry.h: New file.
1722 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1723 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1724 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1725 (register_program_space_data_with_cleanup)
1726 (register_program_space_data, program_space_alloc_data)
1727 (clear_program_space_data, set_program_space_data)
1728 (program_space_data): Don't declare.
1729 * progspace.c: Use DEFINE_REGISTRY.
1730 (struct program_space_data, struct
1731 program_space_data_registration, struct
1732 program_space_data_registry, program_space_data_registry)
1733 (register_program_space_data_with_cleanup)
1734 (register_program_space_data, program_space_alloc_data)
1735 (program_space_free_data, clear_program_space_data)
1736 (set_program_space_data, program_space_data): Remove.
1737 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1738 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1739 (register_objfile_data_with_cleanup, register_objfile_data)
1740 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1741 declare.
1742 * objfiles.c: Use DEFINE_REGISTRY.
1743 (struct objfile_data, struct objfile_data_registration, struct
1744 objfile_data_registry, objfile_data_registry)
1745 (register_objfile_data_with_cleanup, register_objfile_data)
1746 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1747 (set_objfile_data, objfile_data): Remove.
1748 (_initialize_objfiles): Update.
1749 * jit.c (_initialize_jit): Update.
1750 * inflow.c (_initialize_inflow): Update.
1751 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1752 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1753 (register_inferior_data_with_cleanup, register_inferior_data)
1754 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1755 declare.
1756 * inferior.c: Use DEFINE_REGISTRY.
1757 (struct inferior_data, struct inferior_data_registration, struct
1758 inferior_data_registry, inferior_data_registry)
1759 (register_inferior_data_with_cleanup, register_inferior_data)
1760 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1761 (set_inferior_data, inferior_data): Remove.
1762 * auxv.c (_initialize_auxv): Update.
1763 * ada-lang.c (_initialize_ada_language): Update.
1764 * breakpoint.c (_initialize_breakpoint): Update.
1765 * i386-nat.c (i386_use_watchpoints): Update.
1766
ed9eebaf
TT
17672012-08-22 Tom Tromey <tromey@redhat.com>
1768
1769 * exec.c (exec_close, exec_file_attach): Update.
1770 (add_to_section_table): Initialize 'key' field.
1771 (add_target_sections, remove_target_sections): Add 'key' argument.
1772 * exec.h (add_target_sections, remove_target_sections): Add
1773 'key' argument.
1774 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1775 (reload_shared_libraries_1): Update.
1776 * target.h (struct target_section) <key>: New field.
1777
2f2e97fa
TT
17782012-08-22 Tom Tromey <tromey@redhat.com>
1779
1780 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1781
b3dbbd6f
PM
17822012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1783
1784 * symfile.c (allocate_symtab): Use host_address_to_string
1785 function instead of cast of pointer to long which is not
1786 compatible with x86_64-w64-mingw32 build.
1787
f94363d7
AP
17882012-08-19 Andrew Pinski <apinski@cavium.com>
1789
1790 * mips-tdep.c (is_octeon): New function.
1791 (is_octeon_bbit_op): New function.
1792 (mips32_next_pc): Handle Octeon's bbit instructions.
1793 (mips32_instruction_has_delay_slot): Likewise.
1794
78a59c2f
AP
17952012-08-19 Andrew Pinski <apinski@cavium.com>
1796
1797 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1798 before the function.
1799
4f5bcb50
AP
18002012-08-19 Andrew Pinski <apinski@cavium.com>
1801
1802 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1803
e5afdbd7
KS
18042012-08-19 Keith Seitz <keiths@redhat.com>
1805
1806 PR c++/14365
1807 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1808 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1809
13c9750e
EZ
18102012-08-18 Eli Zaretskii <eliz@gnu.org>
1811
1812 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1813 The typo broke "make TAGS".
1814
db761810 18152012-08-17 Joel Brobecker <brobecker@adacore.com>
1816
1817 GDB 7.5 released.
1818
a451cb65
KS
18192012-08-17 Keith Seitz <keiths@redhat.com>
1820
1821 PR c++/13356
1822 * gdbtypes.c (strict_type_checking): New variable.
1823 (show_strict_type_checking): New function.
1824 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1825 if strict type checking is disabled.
1826 (_initialize_gdbtypes): Add "check type" subcommand.
1827 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1828
18292012-08-17 Keith Seitz <keiths@redhat.com>
1830
1831 * language.h (type_mode): Remove.
1832 (type_check): Remove.
1833 (struct language_defn): Remove la_type_check.
1834 (STRICT_TYPE): Remove unused macro.
1835 (type_error): Remove.
1836 * language.c (set_type_range_case): Renamed to ...
1837 (set_range_case): ... this. Update all callers.
1838 Remove type_mode/type_check.
1839 (type_mode): Remove.
1840 (type_check): Remove.
1841 (show_type_command): Remove.
1842 (set_type_command): Remove.
1843 (language_info): Remove type checking output.
1844 (type_error): Remove unused function.
1845 (range_error): Update comment.
1846 (unknown_language_defn): Remove la_type_check.
1847 (auto_language_defn): Likewise.
1848 (local_language_defn): Likewise.
1849 (_initialize_language): Remove "check type" subcommand.
1850 * ada-lang.c (ada_language_defn): Remove la_type_check.
1851 * c-lang.c (c_language_defn): Likewise.
1852 (cplus_language_defn): Likewise.
1853 (asm_language_defn): Likewise.
1854 (minimal_language_defn): Likewise.
1855 * d-lang.c (d_language_defn): Likewise.
1856 * f-lang.c (f_language_defn): Likewise.
1857 * go-lang.c (go_language_defn): Likewise.
1858 * jv-lang.c (java_language_defn): Likewise.
1859 * m2-lang.c (m2_language_defn): Likewise.
1860 * objc-lang.c (objc_language_defn): Likewise.
1861 * opencl-lang.c (opencl_language_defn): Likewise.
1862 * p-lang.c (pascal_language_defn): Likewise.
1863
dbf6a605
MF
18642012-08-16 Mike Frysinger <vapier@gentoo.org>
1865
1866 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1867
973e3cf7
JB
18682012-08-16 Joel Brobecker <brobecker@adacore.com>
1869
1870 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1871 New function.
1872 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1873 using the regache. Use ia64_hpux_get_register_from_save_state_t
1874 to access the bsp and bspstore registers if not.
1875
d80ee84f
JB
18762012-08-16 Joel Brobecker <brobecker@adacore.com>
1877
1878 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1879 * breakpoint.c (detach_breakpoints): Change pid parameter into
1880 a ptid. Adjust code accordingly.
1881 * infrun.c (handle_inferior_event): Delete variable child_pid.
1882 Update call to detach_breakpoints to pass the child ptid for
1883 fork events.
1884 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1885 assert that inferior_ptid's lwp is zero.
1886 (linux_handle_extended_wait): Update call to detach_breakpoints.
1887 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1888 detach_breakpoints.
1889
2dcc6086
JB
18902012-08-16 Joel Brobecker <brobecker@adacore.com>
1891
1892 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1893 parent, only call detach_breakpoints if tts.tts_event ==
1894 TTEVT_VFORK.
1895
0c92d8c1
JB
18962012-08-16 Joel Brobecker <brobecker@adacore.com>
1897
1898 * dwarf2-frame.c (dwarf2_frame_cache): Use
1899 get_frame_address_in_block instead of get_frame_pc as
1900 the bound for executing the frame's FDE.
1901
6b1755ce
YQ
19022012-08-16 Yao Qi <yao@codesourcery.com>
1903
1904 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1905 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1906 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1907 (c_type_print_varspec_suffix): Likewise.
1908 * eval.c (evaluate_subexp_standard): Likewise.
1909 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1910 (f_type_print_varspec_suffix): Likewise.
1911 * gdbtypes.c (is_scalar_type): Likewise.
1912 (recursive_dump_type): Likewise.
1913 * infcall.c (value_arg_coerce): Likewise.
1914 * m2-valprint.c (m2_val_print): Likewise.
1915 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1916 (pascal_type_print_varspec_suffix): Likewise.
1917 (pascal_type_print_base): Likewise.
1918 * p-valprint.c (pascal_val_print): Likewise.
1919 (pascal_val_print): Likewise.
1920 * valops.c (value_slice): Likewise.
1921 * valprint.c (scalar_type_p): Likewise.
1922 * valarith.c (value_bitstring_subscript): Remove.
1923 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1924 Remove comment on TYPE_CODE_BITSTRING.
1925
1926 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1927 TYPE_CODE_BITSTRING.
1928
1929 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1930 slot 0.
1931
8acc4065
YQ
19322012-08-16 Yao Qi <yao@codesourcery.com>
1933
1934 * tracepoint.c (trace_find_none_command): Remove.
1935 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1936
8128fd8e
YQ
19372012-08-16 Yao Qi <yao@codesourcery.com>
1938
1939 * remote.c (handle_notification): Remove parameter 'length'.
1940 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1941
2873700e
KS
19422012-08-15 Keith Seitz <keiths@redhat.com>
1943
1944 * gdbtypes.c (opaque_type_resolution): Make static.
1945 Add missing comment.
1946 (overload_debug): Add missing comment.
1947 (show_opaque_type_resolution): Likewise.
1948 (show_overload_debug): Likewise.
1949 (print_bit_vector): Remove unnecessary forward declaration.
1950 (print_arg_types): Likewise.
1951 (dump_fn_fieldlists): Likewise.
1952 (print_cplus_stuff): Likewise.
1953
b82d08cd
TT
19542012-08-15 Tom Tromey <tromey@redhat.com>
1955
1956 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1957 (gdb_bfd_ref): Initialize new field.
1958 (gdb_bfd_unref): Unref the archive BFD.
1959 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1960 parent archive.
1961
db6573d6
TT
19622012-08-15 Tom Tromey <tromey@redhat.com>
1963
1964 PR python/14387:
1965 * python/py-bpevent.c (create_breakpoint_event_object): Update
1966 comment.
1967 * python/py-event.c (evpy_add_attribute): Update comment.
1968 * python/py-exitedevent.c (create_exited_event_object): Fix
1969 reference counting and error handling.
1970 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1971 Fix reference counting.
1972 * python/py-signalevent.c (create_signal_event_object): Fix
1973 reference counting and error handling.
1974 * python/py-stopevent.c (emit_stop_event): Fix reference
1975 counting.
1976 * python/py-threadevent.c (get_event_thread): Return a
1977 borrowed reference.
1978 * python/py-type.c (convert_field): Fix reference counting.
1979
a036ba48
TT
19802012-08-15 Tom Tromey <tromey@redhat.com>
1981
1982 * dwarf2read.c (dwarf_decode_macro_bytes)
1983 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1984 as hash key.
1985
486c7739
MF
19862012-08-14 Mike Frysinger <vapier@gentoo.org>
1987
1988 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1989 stepi, nexti, finish, next, step, jump, and continue commands.
1990 * infrun.c (_initialize_infrun): Update help text for the handle
1991 command.
1992
4cf93a03
DE
19932012-08-14 Doug Evans <dje@google.com>
1994
70b099cf
DE
1995 * gdbtypes.c (struct extra): Delete, unused.
1996
5212577a
DE
1997 * gdbtypes.c: Whitespace cleanup.
1998 (address_space_name_to_int): Remove "extern" from definition.
1999 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2000
4cf93a03
DE
2001 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2002 TYPE_POINTER_TYPE (type).
2003
3756ef7e
GB
20042012-08-14 Gary Benson <gbenson@redhat.com>
2005
2006 * solib-svr4.c (svr4_free_library_list): Use free_so.
2007
40d72643
MF
20082012-08-13 Mike Frysinger <vapier@gentoo.org>
2009
2010 * .gitignore: Add go-exp.c.
2011
f47f77df
DE
20122012-08-13 Doug Evans <dje@google.com>
2013
2014 * value.c (show_convenience): Tweak comment.
2015 (_initialize_values): Mention convenience functions in the help text
2016 for "show convenience".
2017
7507c54a
YQ
20182012-08-13 Yao Qi <yao@codesourcery.com>
2019
2020 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2021 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2022 TERNOP_SLICE_COUNT.
2023 * eval.c (evaluate_subexp_standard): Likewise.
2024 * expprint.c (print_subexp_standard): Likewise.
2025 (dump_subexp_body_standard): Likewise.
2026 * parse.c (operator_length_standard): Likewise.
2027
5cad9736
YQ
20282012-08-13 Yao Qi <yao@codesourcery.com>
2029
2030 * std-operator.def: Remove OP_BITSTRING.
2031 * breakpoint.c (watchpoint_exp_is_const): Update.
2032 * eval.c (evaluate_subexp_standard): Remove handling to
2033 OP_BITSTRING.
2034 * expprint.c (print_subexp_standard): Likewise.
2035 (dump_subexp_body_standard): Likewise.
2036 * parse.c (operator_length_standard): Likewise.
2037 * valops.c (value_bitstring): Remove.
2038 * value.h: Remove the declaration of 'value_bitstring'.
2039
bad7670a
SDJ
20402012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2041
2042 * linespec.c (find_methods): Remove unused variables `i1' and
2043 `name_len'.
2044 (decode_line_full): Likewise for `arg_start'.
2045
d9dce7fa
SDJ
20462012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2047
2048 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2049 (zlib_decompress_section): Likewise for `section_data'.
2050 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2051
a72c3253
DE
20522012-08-10 Doug Evans <dje@google.com>
2053
2054 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2055 * NEWS: Document them.
2056 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2057 function/strfns.py.
2058 * python/py-type.c (typy_array_1): New function.
2059 (typy_array): Call it.
2060 (typy_vector): New function.
2061 (type_object_methods): Add "vector".
2062 * python/lib/gdb/function/__init__.py: New file.
2063 * python/lib/gdb/function/strfns.py: New file.
2064
200bc880
SP
20652012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2066
2067 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2068 for TYPE_FIELD_BITPOS.
2069 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2070
de0bea00
MF
20712012-08-10 Mike Frysinger <vapier@gentoo.org>
2072
2073 PR cli/10436:
2074 * common/vec.h (VEC_merge): Define.
2075 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2076 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2077 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2078 * completer.c: Include gdb_signals.h.
2079 (signal_completer): Define.
2080 * completer.h (signal_completer): Add prototype.
2081 * infcmd.c (_initialize_infcmd): Assign the command
2082 completer for "signal" to handle_completer.
2083 * infrun.c: Include completer.h.
2084 (handle_completer): Define.
2085 (_initialize_infrun): Declare a new local variable c. Store the
2086 result of add_com("handle") to it. Assign the command
2087 completer for "handle" to handle_completer.
2088
5b9afe8a
YQ
20892012-08-09 Yao Qi <yao@codesourcery.com>
2090
2091 * cli/cli-decode.c (set_cmd_prefix): New.
2092 (lookup_cmd_for_prefixlist): New.
2093 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2094 of each cmd_list_element in *prefixlist.
2095 (add_setshow_cmd_full): set_cmd_prefix.
2096 (add_alias_cmd): Likewise.
2097 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2098 Declare 'auto_boolean_enums'.
2099 * cli/cli-setshow.c: Include "observer.h".
2100 (notify_command_param_changed_p): New.
2101 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2102 Remove 'static'.
2103 (do_setshow_command): Split it to ...
2104 (do_set_command, do_show_command): ... them. New.
2105 (do_set_command): Call observer_notify_command_param_changed if
2106 notify_command_param_changed_p returns true.
2107 (cmd_show_list): Caller update.
2108 * auto-load.c (set_auto_load_cmd): Likewise.
2109 * remote.c (show_remote_cmd): Likewise.
2110 * cli/cli-setshow.h: Update declarations.
2111 * top.c (execute_command): Call do_set_command and do_show_command.
2112
2113 * NEWS: Mention new MI notification.
2114 * mi/mi-interp.c: Declare mi_command_param_changed.
2115 (mi_interpreter_init): Attach mi_command_param_changed to
2116 observer command_param_changed.
2117 (mi_command_param_changed): New.
2118 Remove mi_suppress_breakpoint_notifications.
2119 Define global variable mi_suppress_notification.
2120 (mi_breakpoint_created): Update.
2121 (mi_breakpoint_deleted): Likewise.
2122 (mi_breakpoint_modified): Likewise.
2123 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2124 'gdb-set' and set mi_suppress_notification.
2125 * mi/mi-main.h: (mi_suppress_notification): New struct.
2126
1969df89
JK
21272012-08-09 Andreas Tobler <andreast@fgznet.ch>
2128 Jan Kratochvil <jan.kratochvil@redhat.com>
2129
2130 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2131
8bfd80db
YQ
21322012-08-09 Yao Qi <yao@codesourcery.com>
2133
2134 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2135 (skiplist): Move it to skip.c.
2136 (init_cmd_lists): Remove code setting enablebreaklist and
2137 skiplist to NULL.
2138 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2139 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2140 skiplist.
2141 * gdbcmd.h: Likewise.
2142 * skip.c (_initialize_step_skip): Move 'skiplist' from
2143 cli/cli-cmds.c.
2144
28578e6b
YQ
21452012-08-09 Yao Qi <yao@codesourcery.com>
2146
2147 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2148 * gnu-nat.c, symfile.c: Likewise.
2149
260c0b2a
DE
21502012-08-08 Aaron Gamble <agamble@google.com>
2151
2152 * utils.c (prompt_for_continue_wait_time): New static global.
2153 (make_command_stats_cleanup): Initialize it.
2154 (report_command_stats): Subtract time waiting for user.
2155 (prompt_for_continue): Track time waiting for user.
2156 (defaulted_query): Track time waiting for user.
2157
4f485ebc
DE
21582012-08-08 Doug Evans <dje@google.com>
2159
2160 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2161 UNOP_MEMVAL_TYPE.
2162 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2163 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2164 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2165 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2166 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2167 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2168 elt.
2169 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2170 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2171 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2172 (dump_prefix_expression): Handle OP_TYPE.
2173
2acf2b39
KS
21742012-08-08 Keith Seitz <keiths@redhat.com>
2175
2176 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2177 addr_start.
2178
e6712ff1
DE
21792012-08-08 Doug Evans <dje@google.com>
2180
2181 * linux-thread-db.c: #include "gdb_vecs.h".
2182 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2183 updated.
2184 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2185 (thread_db_load_search): Use a vector to iterate over path elements.
2186 Handle text appearing after "$pdir".
2187
2188 * gdb_string.h: Moved to ...
2189 * common/gdb_string.h: ... here.
2190 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2191 gdb_string.h and gdb_assert.h.
2192
ab854e54
YQ
21932012-08-08 Yao Qi <yao@codesourcery.com>
2194
2195 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2196 (tic6x_value_to_register): Likewise.
2197 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2198 and set_gdbarch_value_to_register.
2199
4f69f4c2
JK
22002012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2201 Jean-Marc Saffroy <saffroy@gmail.com>
2202
2203 PR 11804
2204 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2205 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2206 * gcore.c (gcore_create_callback): New function comment. Add modified
2207 parameter. Only write modified regions. Set SEC_READONLY exactly
2208 according to MODIFIED.
2209 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2210 the passed modified value to FUNC.
2211 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2212 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2213 first. New variables modified and has_anonymous. Parse the lines of
2214 smaps file. Add the passed MODIFIED value to FUNC.
2215 * procfs.c (find_memory_regions_callback): Add the passed modified
2216 value.
2217
78ac5f83
TT
22182012-08-06 Tom Tromey <tromey@redhat.com>
2219
2220 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2221 (dwarf2_frame_cache): Use it.
2222 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2223 cache initialization constraint.
2224
2c12abee
TT
22252012-08-06 Tom Tromey <tromey@redhat.com>
2226
2227 PR python/14386:
2228 * varobj.c (update_dynamic_varobj_children): Don't call
2229 PyIter_Check.
2230
4979d7f0
TT
22312012-08-06 Tom Tromey <tromey@redhat.com>
2232
2233 PR cli/14392:
2234 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2235
f3c8a52a
JK
22362012-08-06 Nathaniel Flath <flat0103@gmail.com>
2237
2238 * NEWS: New entry for 'cd' default parameters.
2239 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2240
5a1cf4d6
TT
22412012-08-03 Tom Tromey <tromey@redhat.com>
2242
2243 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2244 return.
2245
7c3270ae
UW
22462012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2247
2248 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2249 to attempting lseek/write.
2250 (inf_child_fileio_pread): Likewise for pread.
2251
ccce17b0
YQ
22522012-08-02 Yao Qi <yao@codesourcery.com>
2253
2254 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2255 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2256 add_setshow_zinteger_cmd.
2257 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2258 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2259 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2260 instead of add_setshow_zinteger_cmd.
2261 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2262 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2263 instead of add_setshow_zinteger_cmd.
2264 * frame.c (frame_debug): Add 'unsigned'.
2265 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2266 add_setshow_zinteger_cmd.
2267 * frame.h: Update the declaration of 'frame_debug'.
2268 * gdbtypes.c (overload_debug): Add 'unsigned'.
2269 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2270 add_setshow_zinteger_cmd.
2271 * inferior.h: Update declaration of 'debug_infrun'.
2272 * infrun.c (debug_infrun): Add 'unsigned'.
2273 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2274 add_setshow_zinteger_cmd.
2275 * jit.c (jit_debug): Add 'unsigned'.
2276 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2277 add_setshow_zinteger_cmd.
2278 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2279 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2280 instead of add_setshow_zinteger_cmd.
2281 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2282 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2283 add_setshow_zinteger_cmd.
2284 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2285 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2286 instead of add_setshow_zinteger_cmd.
2287 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2288 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2289 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2290 intead of add_setshow_zinteger_cmd.
2291 * mips-tdep.c (mips_debug): Add 'unsigned'.
2292 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2293 instead of add_setshow_zinteger_cmd.
2294 * monitor.c (monitor_debug): Add 'unsigned'.
2295 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2296 add_setshow_zinteger_cmd.
2297 * observer.c (observer_debug): Add 'unsigned'.
2298 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2299 add_setshow_zinteger_cmd.
2300 * parse.c (expressiondebug): Add 'unsigned'.
2301 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2302 add_setshow_zinteger_cmd.
2303 * record.c (record_debug): Add 'unsigned'.
2304 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2305 add_setshow_zinteger_cmd.
2306 * record.h: Update the declaration of 'record_debug'.
2307 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2308 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2309 add_setshow_zinteger_cmd.
2310 * serial.c (global_serial_debug_p): Add 'unsigned'.
2311 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2312 add_setshow_zinteger_cmd.
2313 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2314 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2315 add_setshow_zinteger_cmd.
2316 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2317 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2318 add_setshow_zinteger_cmd.
2319 * target.c (targetdebug): Add 'unsigned'.
2320 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2321 add_setshow_zinteger_cmd.
2322 * valops.c (overload_debug): Add 'unsigned'.
2323 * varobj.c (varobjdebug): Add 'unsigned'.
2324 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2325 add_setshow_zinteger_cmd.
2326 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2327 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2328 instead of add_setshow_zinteger_cmd.
2329
2330 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2331 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2332 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2333 instead of add_setshow_zinteger_cmd.
2334 * gdbarch.c, gdbarch.h: Re-generated.
2335
95b07c96
YQ
23362012-08-02 Yao Qi <yao@codesourcery.com>
2337
2338 * nto-tdep.c: Don't include cli/cli-decode.h and
2339 cli/cli-cmds.h.
2340 (_initialize_nto_tdep): Remove.
2341 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2342 Remove field.
2343 Remove macro nto_internal_debugging.
2344
57295b0b
RH
23452012-08-01 Richard Henderson <rth@redhat.com>
2346
2347 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2348 (mep-*-*) [gdb_target_obs]: Likewise.
2349
f782ad9b
AS
23502012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2351
2352 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2353 linux_get_siginfo_type.
2354
a14dd77e
JK
23552012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2356
2357 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2358 AT_ENTRY_POINT.
2359 (call_function_by_hand) <ON_STACK>: Call write_memory with
2360 gdbarch_breakpoint_from_pc, if possible.
2361 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2362 here.
2363
1467929f
YQ
23642012-07-31 Yao Qi <yao@codesourcery.com>
2365
2366 * tracepoint.c: Add 'static' for some variables.
2367
70976b65
YQ
23682012-07-31 Yao Qi <yao@codesourcery.com>
2369
2370 * go32-nat.c: Declare _initialize_go32_nat.
2371 * ser-go32.c: Declare _initialize_ser_dos.
2372 * top.c (do_chdir_cleanup): Add 'static'.
2373
eff9c3e6
KS
23742012-07-30 Keith Seitz <keiths@redhat.com>
2375
2376 * linespec.c (linespec_lex_number): A number followed
2377 by quotes is a valid number, too.
2378
728400d7
TT
23792012-07-30 Tom Tromey <tromey@redhat.com>
2380
2381 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2382
fcf303ab
UW
23832012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2384
2385 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2386 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2387
4e969b4f
AB
23882012-07-30 Andrew Burgess <aburgess@broadcom.com>
2389
2390 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2391 invalid or reevaluated to prevent prevent references to possibly
2392 delete'd type objects being left in the varobj.
2393
c4bfde41
JK
23942012-07-27 Tom Tromey <tromey@redhat.com>
2395 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 * copying.awk: Print buffer-read-only and vi ro markers.
2398 * copying.c: Rebuild.
2399 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2400 * gdbarch.c, gdbarch.h: Rebuild.
2401 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2402 buffer-read-only and vi ro markers.
2403 * features/arm-with-iwmmxt.c: Rebuild.
2404 * features/arm-with-m-fpa-layout.c: Rebuild.
2405 * features/arm-with-m-vfp-d16.c: Rebuild.
2406 * features/arm-with-m.c: Rebuild.
2407 * features/arm-with-neon.c: Rebuild.
2408 * features/arm-with-vfpv2.c: Rebuild.
2409 * features/arm-with-vfpv3.c: Rebuild.
2410 * features/i386/amd64-avx-linux.c: Rebuild.
2411 * features/i386/amd64-avx.c: Rebuild.
2412 * features/i386/amd64-linux.c: Rebuild.
2413 * features/i386/amd64.c: Rebuild.
2414 * features/i386/i386-avx-linux.c: Rebuild.
2415 * features/i386/i386-avx.c: Rebuild.
2416 * features/i386/i386-linux.c: Rebuild.
2417 * features/i386/i386-mmx-linux.c: Rebuild.
2418 * features/i386/i386-mmx.c: Rebuild.
2419 * features/i386/i386.c: Rebuild.
2420 * features/i386/x32-avx-linux.c: Rebuild.
2421 * features/i386/x32-avx.c: Rebuild.
2422 * features/i386/x32-linux.c: Rebuild.
2423 * features/i386/x32.c: Rebuild.
2424 * features/mips-dsp-linux.c: Rebuild.
2425 * features/mips-linux.c: Rebuild.
2426 * features/mips64-dsp-linux.c: Rebuild.
2427 * features/mips64-linux.c: Rebuild.
2428 * features/rs6000/powerpc-32.c: Rebuild.
2429 * features/rs6000/powerpc-32l.c: Rebuild.
2430 * features/rs6000/powerpc-403.c: Rebuild.
2431 * features/rs6000/powerpc-403gc.c: Rebuild.
2432 * features/rs6000/powerpc-405.c: Rebuild.
2433 * features/rs6000/powerpc-505.c: Rebuild.
2434 * features/rs6000/powerpc-601.c: Rebuild.
2435 * features/rs6000/powerpc-602.c: Rebuild.
2436 * features/rs6000/powerpc-603.c: Rebuild.
2437 * features/rs6000/powerpc-604.c: Rebuild.
2438 * features/rs6000/powerpc-64.c: Rebuild.
2439 * features/rs6000/powerpc-64l.c: Rebuild.
2440 * features/rs6000/powerpc-7400.c: Rebuild.
2441 * features/rs6000/powerpc-750.c: Rebuild.
2442 * features/rs6000/powerpc-860.c: Rebuild.
2443 * features/rs6000/powerpc-altivec32.c: Rebuild.
2444 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2445 * features/rs6000/powerpc-altivec64.c: Rebuild.
2446 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2447 * features/rs6000/powerpc-cell32l.c: Rebuild.
2448 * features/rs6000/powerpc-cell64l.c: Rebuild.
2449 * features/rs6000/powerpc-e500.c: Rebuild.
2450 * features/rs6000/powerpc-e500l.c: Rebuild.
2451 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2452 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2453 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2454 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2455 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2456 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2457 * features/rs6000/powerpc-vsx32.c: Rebuild.
2458 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2459 * features/rs6000/powerpc-vsx64.c: Rebuild.
2460 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2461 * features/rs6000/rs6000.c: Rebuild.
2462 * features/s390-linux32.c: Rebuild.
2463 * features/s390-linux32v1.c: Rebuild.
2464 * features/s390-linux32v2.c: Rebuild.
2465 * features/s390-linux64.c: Rebuild.
2466 * features/s390-linux64v1.c: Rebuild.
2467 * features/s390-linux64v2.c: Rebuild.
2468 * features/s390x-linux64.c: Rebuild.
2469 * features/s390x-linux64v1.c: Rebuild.
2470 * features/s390x-linux64v2.c: Rebuild.
2471 * features/tic6x-c62x-linux.c: Rebuild.
2472 * features/tic6x-c62x.c: Rebuild.
2473 * features/tic6x-c64x-linux.c: Rebuild.
2474 * features/tic6x-c64x.c: Rebuild.
2475 * features/tic6x-c64xp-linux.c: Rebuild.
2476 * features/tic6x-c64xp.c: Rebuild.
2477
826f0041
TT
24782012-07-27 Tom Tromey <tromey@redhat.com>
2479
2480 * c-exp.y (classify_name): Avoid assignment in condition.
2481
84552b16
PA
24822012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2483
2484 * amd64-windows-tdep.c: Include "frame.h".
2485 (amd64_windows_skip_trampoline_code): New function.
2486 (amd64_windows_init_abi): Add trampoline registration.
2487
a8a64aa8
YQ
24882012-07-27 Yao Qi <yao@codesourcery.com>
2489
2490 * tracepoint.c (cur_traceframe_number): Remove.
2491 (set_tfile_traceframe): Remove.
2492 (tfile_trace_find, tfile_fetch_registers): Update callers.
2493 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2494 (tfile_open, tfile_trace_find): Likewise.
2495
d99067cb
YQ
24962012-07-27 Yao Qi <yao@codesourcery.com>
2497
2498 * thread.c (switch_to_thread): Don't call registers_changed.
2499
f2e8016f
TT
25002012-07-26 Tom Tromey <tromey@redhat.com>
2501
f782ad9b
AS
2502 * Makefile.in (SFILES): Remove objc-exp.y.
2503 (YYFILES): Remove objc-exp.c.
2504 (YYOBJ): Remove objc-exp.o.
2505 (local-maintainer-clean): Don't mention objc-exp.c.
2506 * c-exp.y: Include objc-lang.h.
2507 (%union) <class>: New field.
2508 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2509 (exp): Clone subscript production for OBJC_LBRAC. Add various
2510 Objective C productions.
2511 (msglist, msgarglist, msgarg): New productions.
2512 (array_mod, func_mod, operator): Clone productions for
2513 OBJC_LBRAC.
2514 (parse_string_or_char): Handle '@' strings.
2515 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2516 (classify_name): Check la_name_of_this. Recognize ObjC class
2517 names.
2518 * objc-exp.y: Remove.
2519 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2520 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2521
f66713d2
JK
25222012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2523
2524 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2525
7cfe01b4
JK
25262012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2527
2528 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2529 and decrement.
2530
5ba19b4c
TT
25312012-07-26 Tom Tromey <tromey@redhat.com>
2532
2533 * copying.c: Rebuild.
2534 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2535 'no_class'.
2536
27618ce4
TT
25372012-07-26 Tom Tromey <tromey@redhat.com>
2538
2539 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2540 immediate_quit.
2541 (print_objfile_statistics): Likewise.
2542 (maintenance_print_symbols): Likewise.
2543 (maintenance_print_msymbols): Likewise.
2544 (maintenance_print_objfiles): Likewise.
2545 * psymtab.c (print_partial_symbols): Call QUIT.
2546 (maintenance_print_psymbols): Likewise. Don't modify
2547 immediate_quit.
2548 * copying.c (show_copying_command): Don't modify immediate_quit.
2549 (show_warranty_command): Likewise.
2550 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2551
dd3818c8
KS
25522012-07-26 Keith Seitz <keiths@redhat.com>
2553
2554 * linespec.c (linespec_lexer_lex_number): The input
2555 is also a valid number if the next character is a comma
2556 or colon.
2557
23a80689
JB
25582012-07-26 Joel Brobecker <brobecker@adacore.com>
2559
2560 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2561 configure options.
2562
29f77997
TG
25632012-07-26 Tristan Gingold <gingold@adacore.com>
2564
2565 * machoread.c: Include gdb_bfd.h.
2566
a55c1f32
TG
25672012-07-26 Tristan Gingold <gingold@adacore.com>
2568
2569 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2570 offset.
2571
56eb65bd
SP
25722012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2573
2574 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2575 SIZE to size_t.
2576 (dwarf2_evaluate_loc_desc): Likewise.
2577 (dwarf2_loc_desc_needs_frame): Likewise.
2578 (locexpr_describe_location_1): Likewise.
2579 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2580 size_t.
2581 (struct dwarf2_loclist_baton): Likewise.
2582 * dwarf2read.c (struct dwarf_block): Likewise.
2583 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2584 (decode_locdesc): Expand SIZE and I to size_t.
2585
aec8845c
JK
25862012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2587
2588 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2589
33d7655b
JB
25902012-07-25 Joel Brobecker <brobecker@adacore.com>
2591
2592 * doublest.c (convert_doublest_to_floatformat): If the exponent
2593 is too small, treat the value as zero. If the exponent is too
2594 large, treat the value as infinity.
2595
a22d44ff
JB
25962012-07-25 Joel Brobecker <brobecker@adacore.com>
2597
2598 * configure.ac: Add --enable-lmcheck configure option.
2599 * configure: Regenerate.
2600
d6b28940
TT
26012012-07-25 Tom Tromey <tromey@redhat.com>
2602
f782ad9b
AS
2603 * NEWS: Mention maint info bfds.
2604 * gdb_bfd.c (all_bfds): New global.
2605 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2606 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2607 New functions.
d6b28940 2608
6e73ba20
RC
26092012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2610
2611 * configure.tgt: Add v850*-*-rtems*.
2612
d560eebd
TT
26132012-07-25 Tom Tromey <tromey@redhat.com>
2614
2615 * macrotab.c (macro_bcache_str): Remove cast.
2616
d7cbec71
HZ
26172012-07-25 Hui Zhu <hui_zhu@mentor.com>
2618
2619 * linespec.c (linespec_lexer_lex_number): Update comments,
2620 change the return and add check to make sure the input is
2621 the decimal numbers.
2622 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2623 false, call linespec_lexer_lex_string.
2624
882f447f
TT
26252012-07-24 Tom Tromey <tromey@redhat.com>
2626
2627 * symfile.c (symbol_file_add): Don't open BFD twice.
2628
53ab4066 26292012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2630
2631 * breakpoint.c (create_breakpoint): Store condition for pending
2632 breakpoints.
2633
108fb0f7
AS
26342012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2635
2636 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2637 (m68k_return_value): Handle complex types like structures.
2638 (m68k_svr4_return_value): Likewise.
2639
1634dcbe
JK
26402012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2641
2642 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2643 parameters to bfd_get_section_name.
2644
e2d12c21
YQ
26452012-07-24 Yao Qi <yao@codesourcery.com>
2646
2647 * cli/cli-setshow.c: Handle case 'var_uinteger'
2648 and 'var_zuninteger' together. Handle case 'var_integer' and
2649 'var_zinteger' together.
2650
64b92e45
KS
26512012-07-23 Keith Seitz <keiths@redhat.com>
2652
2653 * linespec.c (convert_linespec_to_sal): Don't add
2654 any symbols to the result vector if symbol_to_sal
2655 returns zero.
2656
0f5f4ffe
KS
26572012-07-23 Keith Seitz <keiths@redhat.com>
2658
2659 * linespec.c (decode_objc): Record the function name
2660 in the linespec.
2661
da1cc82f
TT
26622012-07-23 Tom Tromey <tromey@redhat.com>
2663
2664 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2665 counting.
2666 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2667 (map_vmap): Acquire a reference to the BFD.
2668
6c18f3e0
SP
26692012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2670
2671 * p-valprint.c (pascal_object_print_value): Replace potentially
2672 unsafe alloca with xmalloc/xfree.
2673 * valops.c (search_struct_method): Likewise.
2674
695c3173
TT
26752012-07-23 Tom Tromey <tromey@redhat.com>
2676
2677 * solib-svr4.c (enable_break): Update.
2678 * bfd-target.h (target_bfd_reopen): Update documentation.
2679
08d2cd74
TT
26802012-07-23 Tom Tromey <tromey@redhat.com>
2681
2682 * symfile.c (separate_debug_file_exists): Update.
2683 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2684 (reread_symbols): Update.
2685 * elfread.c (build_id_verify): Update.
2686 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2687 bfd_open_maybe_remote.
2688
596f7d67
TT
26892012-07-23 Tom Tromey <tromey@redhat.com>
2690
2691 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2692
8ac244b4
TT
26932012-07-23 Tom Tromey <tromey@redhat.com>
2694
2695 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2696 and 'abfd'.
2697 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2698 and 'abfd'.
2699 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2700 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2701 'abfd'.
2702 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2703 * objfiles.c (allocate_objfile): Acquire a new reference.
2704 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2705 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2706 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2707 a cleanup for 'nbfd'.
2708 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2709 for 'nbfd'.
2710 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2711 make a cleanup for 'abfd'.
2712 (symbol_file_add): Make a BFD cleanup.
2713
64c31149
TT
27142012-07-23 Tom Tromey <tromey@redhat.com>
2715
2716 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2717 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2718 * corelow.c (core_open): Use gdb_bfd_fopen.
2719 * dsrec.c (load_srec): Use gdb_bfd_openr.
2720 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2721 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2722 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2723 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2724 (gdb_bfd_fdopenr): New functions.
2725 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2726 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2727 (gdb_bfd_fdopenr): Declare.
2728 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2729 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2730 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2731 gdb_bfd_openr_next_archived_file.
2732 (macho_check_dsym): Use gdb_bfd_openr.
2733 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2734 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2735 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2736 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2737 gdb_bfd_openr.
2738 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2739 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2740 gdb_bfd_openr_next_archived_file.
2741 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2742 Use gdb_bfd_openr.
2743 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2744 gdb_bfd_openr.
2745 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2746 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2747 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2748 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2749 (symfile_bfd_open): Use gdb_bfd_fopen.
2750 (generic_load): Use gdb_bfd_openr.
2751 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2752
520b0001
TT
27532012-07-23 Tom Tromey <tromey@redhat.com>
2754
2755 * bfd-target.c (target_bfd_reopen): Update.
2756 * cli/cli-dump.c (bfd_openr_with_cleanup)
2757 (bfd_openw_with_cleanup): Update.
2758 * corelow.c (core_open): Update.
2759 * dsrec.c (load_srec): Update.
2760 * exec.c (exec_file_attach): Update.
2761 * gcore.c (create_gcore_bfd): Update.
2762 * gdb_bfd.c (gdb_bfd_ref): Return void.
2763 (gdb_bfd_open): Update.
2764 * gdb_bfd.h (gdb_bfd_ref): Return void.
2765 Update comments.
2766 * jit.c (jit_bfd_try_read_symtab): Update.
2767 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2768 * machoread.c (macho_symfile_read_all_oso): Update.
2769 (macho_check_dsym): Update.
2770 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2771 * remote-m32r-sdi.c (m32r_load): Update.
2772 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2773 * rs6000-nat.c (add_vmap): Update.
2774 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2775 Update.
2776 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2777 * solib-spu.c (spu_bfd_open): Update.
2778 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2779 * spu-linux-nat.c (spu_bfd_open): Update.
2780 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2781 (generic_load): Update.
2782 * windows-nat.c (windows_make_so): Update.
2783
2322ff16
SP
27842012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2785
2786 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2787
3def0b36
PA
27882012-07-20 Jeff Kenton <jkenton@tilera.com>
2789
2790 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2791 SIGTRAMP_FRAME unwinding.
2792
e615022a
DE
27932012-07-20 Doug Evans <dje@google.com>
2794
2795 * NEWS: Document new options "set/show use-deprecated-index-sections",
2796 and delete reference to --use-deprecated-index-sections.
2797 * symfile.h (use_deprecated_index_sections): Delete.
2798 * dwarf2read.c (use_deprecated_index_sections): Make static.
2799 (read_index_from_section): Update wording of how to load
2800 deprecated index sections.
2801 (_initialize_dwarf2_read): New options
2802 "set/show use-deprecated-index-sections".
2803 * main.c (captured_main): Delete --use-deprecated-index-sections.
2804
64776a0b
PA
28052012-07-20 Pedro Alves <palves@redhat.com>
2806
2807 PR threads/11692
2808 PR gdb/12203
2809
2810 * infrun.c (handle_inferior_event) <new thread>: Don't special
2811 case minus_one_ptid.
2812 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2813 * linux-thread-db.c (thread_get_info_callback): Don't return early
2814 if the thread is zombie.
2815 (thread_from_lwp): Change return type to void. Rewrite stale
2816 comment.
2817 (attach_thread): Don't return early if the thread is zombie,
2818 instead set its "dying" flag.
2819 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2820 (find_new_threads_callback): Don't return early if the thread is
2821 zombie.
2822
09826ec5
PA
28232012-07-20 Pedro Alves <palves@redhat.com>
2824
2825 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2826 * target.c (target_wait): Likewise.
2827 (str_comma_list_concat_elem, do_option, target_options_to_string):
2828 New functions.
2829 * target.h (target_options_to_string): Declare.
2830
f7a35f02
TT
28312012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2832 Tom Tromey <tromey@redhat.com>
2833
2834 * dwarf2read.c (dwarf_decode_macros)
2835 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2836 DW_MACRO_GNU_transparent_include_alt>: New cases.
2837 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2838 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2839
b81e1ee0
TT
28402012-07-20 Tom Tromey <tromey@redhat.com>
2841
2842 * dwarf2read.c (try_open_dwo_file): Don't call
2843 gdb_bfd_stash_filename.
2844
99c1624c
PA
28452012-07-20 Pedro Alves <palves@redhat.com>
2846
2847 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2848 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2849 (i386_process_record): Tweak description comments.
2850
4ffa4fc7
PA
28512012-07-20 Pedro Alves <palves@redhat.com>
2852
2853 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2854 (i386_process_record): Use record_read_memory.
2855 * record.c (record_read_memory): New function.
2856 (record_arch_list_add_mem, record_exec_insn): Use
2857 record_read_memory.
2858 * record.h (record_read_memory): Declare.
2859
c24343e2
YQ
28602012-07-20 Yao Qi <yao@codesourcery.com>
2861
2862 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2863 NULL for xfree.
2864
90f47860
PA
28652012-07-19 Pedro Alves <palves@redhat.com>
2866
2867 * record.c (record_resume): Ask the target beneath to report all
2868 signals.
2869
01093045
DE
28702012-07-19 Doug Evans <dje@google.com>
2871
2872 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2873 there's no section at address zero.
2874 (dwarf2_record_block_ranges): Ditto.
2875
a7c3d162
YQ
28762012-07-19 Yao Qi <yao@codesourcery.com>
2877
2878 * command.h, remote.c: Fix a typo in comment.
2879
608b4967
TT
28802012-07-19 Tom Tromey <tromey@redhat.com>
2881
2882 PR exp/13206:
2883 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2884 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2885 OP_DECLTYPE>: New cases.
2886 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2887 (type_exp): Add new productions.
2888 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2889 and decltype.
2890 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2891 New case.
2892 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2893 OP_DECLTYPE>: New case.
2894 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2895 New case.
2896 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2897 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2898
274b54d7
TT
28992012-07-19 Tom Tromey <tromey@redhat.com>
2900
2901 * c-exp.y (enum token_flags): New.
2902 (struct token) <cxx_only>: Remove.
2903 <flags>: New field.
2904 (tokentab3, tokentab2, ident_tokens): Update.
2905 (lex_one_token): Update. Handle FLAG_SHADOW.
2906
9eaf6705
TT
29072012-07-19 Tom Tromey <tromey@redhat.com>
2908
2909 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2910 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2911 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2912 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2913 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2914 type_exp production where appropriate.
2915 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2916 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2917 <UNOP_MEMVAL_TYPE>: New case.
2918 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2919 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2920 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2921 <UNOP_MEMVAL_TYPE>: New case.
2922 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2923 UNOP_REINTERPRET_CAST>: Update.
2924 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2925 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2926 UNOP_REINTERPRET_CAST>: Update.
2927 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2928 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2929 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2930 constants.
2931
6ace3df1
YQ
29322012-07-19 Yao Qi <yao@codesourcery.com>
2933 Jan Kratochvil <jan.kratochvil@redhat.com>
2934
2935 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2936 and case 'var_optional_filename' together.
2937 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2938 instead of add_setshow_optional_filename_cmd for setshow command
2939 'args'. Set completer for 'set args'.
2940
48faced0
DE
29412012-07-18 Doug Evans <dje@google.com>
2942
2943 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2944 * common/gdb_vecs.c: New file, contents from utils.c.
2945 * common/host-defs.h: New file, contents from defs.h.
2946 * utils.h: New file, contents from defs.h.
2947 * defs.h: Move all declarations of objects defined in utils.c
2948 to utils.h (except QUIT() and related).
2949 #include "utils.h", "host-defs.h".
2950 * probe.h (probe_p): Move here from gdb_vecs.h.
2951 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2952 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2953 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2954 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2955 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2956 (COMMON_OBS): Add gdb_vecs.o.
2957 (gdb_vecs.o): New rule.
2958
66f1999b
KS
29592012-07-18 Keith Seitz <keiths@redhat.com>
2960
2961 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2962 parameter. If non-zero, use SYMNAME as the canonical name
2963 for the SaL.
2964 Update all callers.
2965 (convert_linespec_to_sals): Use add_sal_to_sals for
2966 expressions, too.
2967 (decode_line_full): No need to "fill in missing canonical names"
2968 anymore. Simply make cleanups for the allocated names.
2969
5d94e27b
KS
29702012-07-18 Keith Seitz <keiths@redhat.com>
2971
2972 * linespec.c (struct linespec): Constify expression,
2973 source_filename, function_name, and label_name.
2974 (symbol_not_found_error): Make all parameters const.
2975 (linespec_parser_delete): No need to check for NULL
2976 when using xfree. Cast const char * to char * for xfree.
2977
af4908ba
KS
29782012-07-18 Keith Seitz <keiths@redhat.com>
2979
2980 * breakpoint.c (invalid_thread_id_error): New function.
2981 (find_condition_and_thread): Use invalid_thread_id_error.
2982 (watch_command_1): Likewise.
2983
853254db
TT
29842012-07-18 Tom Tromey <tromey@redhat.com>
2985
2986 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2987 * contrib/cc-with-tweaks.sh: New file.
2988
2ec9a5e0
TT
29892012-07-18 Tom Tromey <tromey@redhat.com>
2990
2991 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2992 (locate_dwz_sections): Recognize .gdb_index.
2993 (create_cus_from_index_list): New function.
2994 (create_cus_from_index): Use it. Handle .dwz data.
2995 (read_index_from_section): New function, extracted from
2996 dwarf2_read_index.
2997 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2998 if needed.
2999
36586728
TT
30002012-07-18 Tom Tromey <tromey@redhat.com>
3001
3002 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3003 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3004 <is_dwz>: New field.
3005 (struct dwz_file): New.
3006 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3007 (locate_dwz_sections, dwarf2_get_dwz_file)
3008 (get_abbrev_section_for_cu): New functions.
3009 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3010 (read_and_check_type_unit_head): Add abbrev_section argument.
3011 (create_debug_types_hash_table): Update.
3012 (init_cutu_and_read_dies): Use proper abbrev section.
3013 (init_cutu_and_read_dies_no_follow): Likewise.
3014 (set_partial_user): Do nothing if PST==NULL.
3015 (read_comp_units_from_section): New function.
3016 (create_all_comp_units): Use it.
3017 (scan_partial_symbols, partial_die_parent_scope): Update.
3018 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3019 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3020 (find_partial_die): Add offset_in_dwz argument. Update.
3021 (guess_partial_die_structure_name, fixup_partial_die): Update.
3022 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3023 DW_FORM_GNU_strp_alt.
3024 (read_indirect_string_from_dwz): New function.
3025 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3026 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3027 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3028 (follow_die_offset): Add offset_in_dwz argument.
3029 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3030 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3031 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3032 Handle new macro forms.
3033 (dwarf_decode_macros): Update.
3034 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3035 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3036 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3037 (create_debug_types_hash_table): Use correct abbrev section.
3038 (get_debug_line_section): New function.
3039 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3040 (process_full_comp_unit): Pass 'required' argument to
3041 end_symtab_get_static_block.
3042 * buildsym.h (end_symtab_get_static_block): Update.
3043 * buildsym.c (end_symtab_get_static_block): Add 'required'
3044 argument.
3045 (end_symtab, end_expandable_symtab): Update.
3046
4bf44c1c
TT
30472012-07-18 Tom Tromey <tromey@redhat.com>
3048
3049 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3050 (pagesize): Remove.
3051 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3052 (zlib_decompress_section): Remove.
3053 (dwarf2_read_section): Use gdb_bfd_map_section.
3054 (munmap_section_buffer): Remove.
3055 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3056 munmap_section_buffer.
3057 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3058 (struct gdb_bfd_section_data): New.
3059 (free_one_bfd_section): New function.
3060 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3061 (get_section_descriptor, zlib_decompress_section)
3062 (gdb_bfd_map_section): New functions.
3063 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3064
bb397797
TT
30652012-07-18 Tom Tromey <tromey@redhat.com>
3066
3067 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3068
6ec53d05
TT
30692012-07-18 Tom Tromey <tromey@redhat.com>
3070
3071 * gdb_bfd.c (struct gdb_bfd_data): New.
3072 (gdb_bfd_cache): New global.
3073 (struct gdb_bfd_cache_search): New.
3074 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3075 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3076 * gdb_bfd.h (gdb_bfd_open): Declare.
3077
f9a062ff
TT
30782012-07-18 Tom Tromey <tromey@redhat.com>
3079
3080 * utils.c (make_cleanup_bfd_unref): Rename from
3081 make_cleanup_bfd_close.
3082 * defs.h (make_cleanup_bfd_unref): Rename from
3083 make_cleanup_bfd_close.
3084 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3085 (bfd_openw_with_cleanup): Update.
3086 * corelow.c (core_open): Update.
3087 * dsrec.c (load_srec): Update.
3088 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3089 * remote-m32r-sdi.c (m32r_load): Update.
3090 * remote-mips.c (mips_load_srec): Update.
3091 (pmon_load_fast): Update.
3092 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3093 Update.
3094 (darwin_bfd_open): Update.
3095 * solib.c (solib_bfd_fopen): Update.
3096 * symfile-mem.c (symbol_file_add_from_memory): Update.
3097 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3098 (symfile_bfd_open): Update.
3099 (generic_load): Update.
3100
d6ad71ba
TT
31012012-07-18 Tom Tromey <tromey@redhat.com>
3102
3103 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3104 (pmon_load_fast): Likewise.
3105 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3106 (m32r_upload_command): Likewise.
3107 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3108 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3109 Use make_cleanup_bfd_close.
3110
a4453b7e
TT
31112012-07-18 Tom Tromey <tromey@redhat.com>
3112
3113 * symfile.c (symfile_bfd_open): Don't copy name. Call
3114 gdb_bfd_stash_filename.
3115 (load_command): Open the new BFD before freeing the old.
3116 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3117 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3118 Call gdb_bfd_stash_filename.
3119 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3120 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3121 gdb_bfd_stash_filename.
3122 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3123 Free found_pathname.
3124 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3125 gdb_bfd_stash_filename.
3126 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3127 * machoread.c (macho_add_oso_symfile): Call
3128 gdb_bfd_stash_filename.
3129 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3130 gdb_bfd_stash_filename.
3131 (macho_check_dsym): Don't copy filename. Call
3132 gdb_bfd_stash_filename.
3133 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3134 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3135 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3136 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3137 * exec.c (exec_close): Don't free the BFD's filename.
3138 (exec_file_attach): Don't copy the filename. Call
3139 gdb_bfd_stash_filename.
3140 * corelow.c (core_close): Don't free the BFD's filename.
3141 (core_open): Call gdb_bfd_stash_filename.
3142 * corefile.c (reopen_exec_file): Remove #if 0 code.
3143 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3144 pathname.
3145 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3146
cbb099e8
TT
31472012-07-18 Tom Tromey <tromey@redhat.com>
3148
3149 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3150 gdb_bfd_unref.
3151 (free_dwo_file): Use gdb_bfd_unref.
3152 * cli/cli-dump.c: Include gdb_bfd.h.
3153 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3154 (bfd_openr_with_cleanup): Likewise.
3155 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3156 gdb_bfd_unref.
3157 * utils.c: Include gdb_bfd.h.
3158 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3159 * symfile.c: Include gdb_bfd.h.
3160 (separate_debug_file_exists): Use gdb_bfd_unref.
3161 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3162 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3163 (generic_load): Use gdb_bfd_ref.
3164 (reread_symbols): Use gdb_bfd_unref.
3165 * symfile-mem.c: Include gdb_bfd.h.
3166 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3167 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3168 * solib.c: Include gdb_bfd.h.
3169 (solib_bfd_fopen): Use gdb_bfd_ref.
3170 (solib_bfd_open): Use gdb_bfd_unref.
3171 (free_so_symbols): Use gdb_bfd_unref.
3172 (reload_shared_libraries_1): Use gdb_bfd_unref.
3173 * solib-spu.c: Include gdb_bfd.h.
3174 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3175 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3176 gdb_bfd_unref.
3177 * solib-frv.c: Include gdb_bfd.h.
3178 (enable_break2): Use gdb_bfd_unref.
3179 * solib-dsbt.c: Include gdb_bfd.h.
3180 (enable_break2): Use gdb_bfd_unref.
3181 * solib-darwin.c: Include gdb_bfd.h.
3182 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3183 gdb_bfd_unref.
3184 (darwin_bfd_open): Use gdb_bfd_unref.
3185 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3186 * remote-mips.c: Include gdb_bfd.h.
3187 (mips_load_srec): Use gdb_bfd_ref.
3188 (pmon_load_fast): Use gdb_bfd_ref.
3189 * remote-m32r-sdi.c: Include gdb_bfd.h.
3190 (m32r_load): Use gdb_bfd_ref.
3191 * record.c: Include gdb_bfd.h.
3192 (record_save_cleanups): Use gdb_bfd_unref.
3193 (cmd_record_save): Use gdb_bfd_unref.
3194 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3195 gdb_bfd_unref.
3196 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3197 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3198 * objfiles.c: Include gdb_bfd.h.
3199 (free_objfile): Use gdb_bfd_unref.
3200 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3201 gdb_bfd.c.
3202 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3203 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3204 (macho_check_dsym): Likewise.
3205 * m32r-rom.c: Include gdb_bfd.h.
3206 (m32r_load): Use gdb_bfd_ref.
3207 (m32r_upload_command): Use gdb_bfd_ref.
3208 * jit.c: Include gdb_bfd.h.
3209 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3210 * gdb_bfd.h: New file.
3211 * gdb_bfd.c: New file.
3212 * gcore.c: Include gdb_bfd.h.
3213 (create_gcore_bfd): Use gdb_bfd_ref.
3214 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3215 (gcore_command): Use gdb_bfd_unref.
3216 * exec.c: Include gdb_bfd.h.
3217 (exec_close): Use gdb_bfd_unref.
3218 (exec_close_1): Use gdb_bfd_unref.
3219 (exec_file_attach): Use gdb_bfd_ref.
3220 * elfread.c: Include gdb_bfd.h.
3221 (build_id_verify): Use gdb_bfd_unref.
3222 * dsrec.c: Include gdb_bfd.h.
3223 (load_srec): Use gdb_bfd_ref.
3224 * corelow.c: Include gdb_bfd.h.
3225 (core_close): Use gdb_bfd_unref.
3226 (core_open): Use gdb_bfd_ref.
3227 * bfd-target.c: Include gdb_bfd.h.
3228 (target_bfd_xclose): Use gdb_bfd_unref.
3229 (target_bfd_reopen): Use gdb_bfd_ref.
3230 * Makefile.in (SFILES): Add gdb_bfd.c.
3231 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3232 (COMMON_OBS): Add gdb_bfd.o.
3233
ed1d1739
KS
32342012-07-18 Keith Seitz <keiths@redhat.com>
3235
3236 * breakpoint.c (find_condition_and_thread): Initialize
3237 TASK and REST.
3238 (create_breakpiont): find_condition_and_thread will now
3239 initialize COND_STRING, THREAD, and REST (and TASK).
3240 (addr_string_to_sals): Likewise.
3241
eab402df
PA
32422012-07-18 Pedro Alves <palves@redhat.com>
3243
3244 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3245 Pull the single step breakpoints out of the target.
3246
2b963b68
SDJ
32472012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3248
3249 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3250 * stap-probe.c (compile_probe_arg): Likewise.
3251
6bac7473
SDJ
32522012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3253
3254 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3255 (elf_compile_to_ax): Likewise.
3256 * infrun.c (insert_exception_resume_from_probe): Likewise.
3257 (check_exception_resume): Remove `objfile' variable.
3258 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3259 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3260 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3261 (compare_entries): Rename to...
3262 (compare_probes): ...this. Adjust function to work with
3263 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3264 respectively.
3265 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3266 `VEC (probe_p) *'.
3267 (print_ui_out_info): Adjust argument to be `struct probe *'.
3268 (info_probes_for_ops): Adjust internal computations to use
3269 `VEC (probe_p) *'.
3270 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3271 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3272 gen_info_probes_table_values>: Remove `objfile' argument.
3273 (struct probe) <objfile>: New field.
3274 (find_probe_by_pc): Remove `objfile' argument.
3275 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3276 (stap_get_probe_argument_count): Likewise.
3277 (stap_get_arg): Likewise.
3278 (stap_evaluate_probe_argument): Likewise.
3279 (stap_compile_to_ax): Likewise.
3280 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3281 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3282 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3283 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3284 sym_compile_to_ax>: Likewise.
3285
3347eb1a 32862012-07-18 Terry Guo <terry.guo@arm.com>
3287
3288 PR 14329
3289 * defs.h (GDB_MI_MSG_WIDTH): New.
3290 * ser_base (ser_base_read_error_fd): New function.
3291 (do_ser_base_readchar): Poll error file descriptor as well as
3292 standard output.
f782ad9b 3293 (generic_readchar): Refactor error handling.
3347eb1a 3294
80c8d323
JB
32952012-07-18 Joel Brobecker <brobecker@adacore.com>
3296
3297 * NEWS: Create a new section for the next release branch.
3298 Rename the section of the current branch, now that it has
3299 been cut.
3300
b45a0664 33012012-07-18 Joel Brobecker <brobecker@adacore.com>
3302
3303 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3304 * version.in: Bump version to 7.5.50.20120718-cvs.
3305
09cf2b22
KS
33062012-07-17 Keith Seitz <keiths@redhat.com>
3307
3308 * linespec.c (linespec_parse_line_offset): Make parameter
3309 const.
3310
8f043999
JK
33112012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3312
3313 PR 11914
3314 * f-valprint.c (info_common_command): New variable frame_id.
3315 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3316 * printcmd.c (print_variable_and_value): Extend function comment.
3317 Add comment for invalidated FRAME.
3318 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3319 FI form FRAME_ID after each print_frame_local_vars.
3320 (struct print_variable_and_value_data): Change frame to frame_id.
3321 (do_print_variable_and_value): New variable frame, initialize it from
3322 p->frame_id. Add comment for invalidated FRAME.
3323 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3324 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3325 for invalidated FRAME.
3326
ae5e0686
MK
33272012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3328 Pedro Alves <palves@redhat.com>
3329
3330 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3331 loop.
3332
5049c5be
TT
33332012-07-16 Tom Tromey <tromey@redhat.com>
3334
3335 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3336
2908cac6
DE
33372012-07-15 Doug Evans <dje@google.com>
3338
094b34ac
DE
3339 * dwarf2read.c (stmt_list_hash): New struct.
3340 (type_unit_group): Embed "per_cu" member, remove pointer.
3341 New union member "t", move member "tus" into it, all uses updated.
3342 New member "hash", replaces member "line_offset, all uses updated.
3343 (quick_file_names): Replace member "offset" with "hash", all uses
3344 updated.
3345 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3346 (hash_file_name_entry, eq_file_name_entry): Call them.
3347 (hash_type_unit_group, eq_type_unit_group): Ditto.
3348 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3349 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3350 (dw2_get_file_names): Update.
3351 (create_type_unit_group): Replace "per_cu" arg with "cu".
3352 All callers updated. Fix "quick" (.gdb_index) handling.
3353 (get_type_unit_group): Replace "per_cu" arg with "cu".
3354 All callers updated.
3355 (build_type_unit_groups): Don't reset tu_stats.
3356
2908cac6
DE
3357 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3358 "tab_cur_size". Change member "tab" to be a htab_t.
3359 (create_filename_seen_cache): Update.
3360 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3361 (filename_seen): Update.
3362
a2b6eff5
DE
33632012-07-13 Doug Evans <dje@google.com>
3364
3365 * symtab.c (filename_seen): Update comment.
3366
4359dff1
JK
33672012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3368 Doug Evans <dje@google.com>
3369
3370 * buildsym.c (end_symtab_1): Split it to ...
3371 (end_symtab_get_static_block): ... this ...
3372 (end_symtab_from_static_block): ... and this function.
3373 (end_symtab, end_expandable_symtab): Call them.
3374 * buildsym.h (end_symtab_get_static_block)
3375 (end_symtab_from_static_block): New declarations.
3376 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3377 Set its valid CU ranges.
3378
a24f71ab
JK
33792012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3380
3381 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3382 DW_OP_GNU_parameter_ref.
3383
d76b7dbc
JK
33842012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3387 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3388
9fdc877b
DE
33892012-07-13 Doug Evans <dje@google.com>
3390
3391 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3392 (filename_seen_cache): New struct.
3393 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3394 (create_filename_seen_cache): New function.
3395 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3396 (filename_seen): Delete arg "first". New arg "cache". All callers
3397 updated.
3398 (output_source_filename_data): New struct.
3399 (output_source_filename): Delete arg "first". New arg "data".
3400 All callers updated.
3401 (sources_info): Delete local "first". New locals "data", "cleanups".
3402 Rewrite to use filename_seen_cache.
3403 (add_partial_filename_data): Delete member "first". New member
3404 "filename_seen_cache". All uses updated.
3405 (make_source_files_completion_list): Rewrite to use
3406 filename_seen_cache.
3407
f80c6f3f
DE
34082012-07-12 Doug Evans <dje@google.com>
3409
3410 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3411
0bfa869d
DE
34122012-07-10 Doug Evans <dje@google.com>
3413
f4dc4d17
DE
3414 PR gdb/13498
3415 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3416 all_type_unit_groups, type_unit_groups, tu_stats.
3417 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3418 All uses updated. Add type_unit_group to union "s".
3419 (type_unit_group): New struct.
3420 (IS_TYPE_UNIT_GROUP): New macro.
3421 (abbrev_table): Delete unused member "section".
3422 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3423 (dw2_get_cu): Assert not used with type_unit_group.
3424 (dw2_get_primary_cu): New function.
3425 (dw2_build_type_unit_groups_reader): New function.
3426 (dw2_build_type_unit_groups): New function.
3427 (dw2_get_file_names): Assert not called on type units.
3428 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3429 Redo loop to iterate over type unit groups instead of type units.
3430 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3431 (read_abbrev_offset): New function.
3432 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3433 updated.
3434 (create_partial_symtab): New function.
3435 (process_psymtab_comp_unit_reader): Assert not used with type units.
3436 Call create_partial_symtab.
3437 (process_psymtab_type_unit): Delete.
3438 (hash_type_unit_group, eq_type_unit_group): New functions.
3439 (allocate_type_unit_groups_table): New function.
3440 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3441 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3442 (create_type_unit_group, get_type_unit_group): New functions.
3443 (tu_abbrev_offset): New struct.
3444 (sort_tu_by_abbrev_offset): New function.
3445 (add_type_unit_group_to_table): New function.
3446 (build_type_unit_groups): New function.
3447 (build_type_psymtabs_reader): New function.
3448 (build_type_psymtab_dependencies): New function.
3449 (build_type_psymtabs): Rewrite.
3450 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3451 is seen in a type unit.
3452 (process_queue): Move symtab expansion debugging printfs here.
3453 Call process_full_type_unit for type units.
3454 (compute_symtab_includes): Assert not called for type units.
3455 (process_cu_includes): Don't call compute_symtab_includes for
3456 type units.
3457 (process_full_type_unit): New function.
3458 (process_imported_unit_die): Flag an error if called for type units.
3459 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3460 updated. Assert not called for type units.
3461 (read_file_scope): Call dwarf2_start_symtab.
3462 (setup_type_unit_groups): New function.
3463 (read_type_unit_scope): Rewrite.
3464 (abbrev_table_read_table): Initialize abbrev_table->offset.
3465 (abbrev_table_free_cleanup): New function.
3466 (dwarf2_start_symtab): New function.
3467 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3468 * buildsym.c (finish_block_internal): New arg "expandable".
3469 All callers updated.
3470 (start_symtab): Move most contents to ...
3471 (restart_symtab): ... here. New function.
3472 (reset_symtab_globals): New function.
3473 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3474 Call reset_symtab_globals.
3475 (end_symtab, end_expandable_symtab): New functions.
3476 (set_missing_symtab, augment_type_symtab): New functions.
3477 * buildsym.h (end_expandable_symtab): Declare.
3478 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3479 * psympriv.h (struct partial_symtab): New member "anonymous".
3480 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3481 anonymous psymtabs.
3482 (read_psymtabs_with_filename): Ditto.
3483 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3484 (expand_symtabs_matching_via_partial): Ditto.
3485 (dump_psymtab): Update.
0bfa869d
DE
3486 * dictionary.c (dict_add_pending): New function.
3487 * dictionary.h (dict_add_pending): Declare.
3488
45e58e77
DE
34892012-07-09 Doug Evans <dje@google.com>
3490
b74db436
DE
3491 * buildsym.c (start_subfile): Remove unnecessary check for
3492 name == NULL.
3493
fd55216c
DE
3494 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3495
6721b2ec
DE
3496 * dwarf2read.c (load_full_type_unit): Simplify.
3497
b4dd5633
DE
3498 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3499 to struct signatured_type **. All uses updated.
3500
45e58e77
DE
3501 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3502 All callers updated.
3503
e314d629
TT
35042012-07-09 Tom Tromey <tromey@redhat.com>
3505
3506 * c-exp.y (check_parameter_typelist): New function.
3507 (parameter_typelist): Call it.
3508 * eval.c (make_params): Handle '(void)' case.
3509 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3510 '(void)' case.
3511
aa7c7447
JK
35122012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3513
3514 * common/linux-ptrace.c: Include gdb_assert.h.
3515 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3516 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3517 stdint.h.
3518 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3519 functions.
3520 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3521 * linux-nat.c (linux_child_post_attach)
3522 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3523
889003ed
JK
35242012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3525
3526 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3527 nptl <2.7 bug workaround for core files.
3528
da559b09
JK
35292012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3530
3531 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3532 clearing.
3533 (save_siginfo): Remove.
3534 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3535 call.
3536 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3537 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3538 * linux-nat.h (struct lwp_info): Remove field siginfo.
3539
f865ee35
JK
35402012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3541
3542 Code cleanup for the next patch.
3543 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3544 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3545 call for it.
3546 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3547 (ia64_linux_stopped_data_address):
3548 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3549 the return value.
3550 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3551 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3552 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3553 call for it.
3554
76b83c51
JK
35552012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 PR 14321
3558 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3559 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3560
a6fb9c08
TT
35612012-07-06 Tom Tromey <tromey@redhat.com>
3562
3563 * c-exp.y (DOTDOTDOT): New token.
3564 (func_mod, exp): Use parameter_typelist.
3565 (parameter_typelist): New production.
3566 (tokentab3): Add "..." token.
3567 * eval.c (make_params): Handle varargs.
3568 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3569 varargs.
3570
71918a86
TT
35712012-07-06 Tom Tromey <tromey@redhat.com>
3572
3573 PR exp/9608:
3574 * c-exp.y (%union) <tvec>: Change type.
3575 (func_mod): Now uses <tvec> type.
3576 (exp): Update for tvec change.
3577 (direct_abs_decl): Push the typelist.
3578 (func_mod): Return a typelist.
3579 (nonempty_typelist): Update for tvec change.
3580 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3581 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3582 * parse.c (pop_type_list): New function.
3583 (push_typelist): New function.
3584 (follow_types): Handle tp_function_with_arguments.
3585 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3586 (enum type_pieces) <tp_function_with_arguments>: New constant.
3587 (union type_stack_elt) <typelist_val>: New field.
3588 (push_typelist): Declare.
3589
fcde5961
TT
35902012-07-06 Tom Tromey <tromey@redhat.com>
3591
3592 * c-exp.y (%union) <type_stack>: New field.
3593 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3594 (ptr_operator_ts): New production.
3595 (ptype): Update.
3596 * parse.c (type_stack_reserve): New function.
3597 (check_type_stack_depth): Use it.
3598 (pop_type_stack, append_type_stack, push_type_stack)
3599 (get_type_stack, type_stack_cleanup): New functions.
3600 (follow_types): Handle tp_type_stack.
3601 (_initialize_parse): Simplify initialization.
3602 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3603 constant.
3604 (union type_stack_elt) <stack_val>: New field.
3605 (get_type_stack, append_type_stack, push_type_stack)
3606 (type_stack_cleanup): Declare.
3607
1a7d0ce4
TT
36082012-07-06 Tom Tromey <tromey@redhat.com>
3609
3610 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3611 Remove.
3612 (struct type_stack): New.
3613 * parse.c (type_stack, type_stack_size, type_stack_depth):
3614 Remove.
3615 (type_stack): New global.
3616 (parse_exp_in_context, check_type_stack_depth)
3617 (insert_into_type_stack, insert_type, push_type, push_type_int)
3618 (insert_type_address_space, pop_type, pop_type_int)
3619 (_initialize_parse): Update.
3620
16d01384
TT
36212012-07-06 Tom Tromey <tromey@redhat.com>
3622
3623 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3624 Remove %type.
3625
9bfc60bf
SP
36262012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3627
3628 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3629
d5161074
SP
36302012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3631 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3634 alloca with xmalloc/xfree.
3635
a74bc576
SP
36362012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3637
3638 * MAINTAINERS (Write After Approval): Add myself to the list.
3639
667e0a4b
DE
36402012-07-05 Doug Evans <dje@google.com>
3641
3642 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3643
34b536a8
HZ
36442012-07-05 Hui Zhu <hui_zhu@mentor.com>
3645
3646 * ax-gdb.c (cli/cli-utils.h): New include.
3647 (linespec.h): Ditto.
3648 (agent_eval_command_one): New function.
3649 (agent_command_1): Ditto.
3650 (agent_command): Call function agent_command_1.
3651 (agent_eval_command): Ditto.
3652 (_initialize_ax_gdb): Change help for "maint agent"
3653 and "maint agent-eval".
3654
e6f0bce7
HZ
36552012-07-05 Hui Zhu <hui_zhu@mentor.com>
3656
3657 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3658 * cli/cli-utils.c (check_for_argument): New function.
3659 * cli/cli-utils.h (check_for_argument): Ditto.
3660
1b3371b1
L
36612012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3662
3663 * NEWS: Mention x32 ABI support.
3664
23e2d720
L
36652012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3666
3667 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3668 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3669
3670 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3671 and pc_regnum_from_eax to -1. Update SP regnum from
3672 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3673 needed.
3674
3675 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3676 pc_regnum_from_eax.
3677
836bf454
JK
36782012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3679
3680 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3681 * dwarf2expr.h: Include gdbtypes.h.
3682 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3683 these forward declarations.
3684 (cu_offset, sect_offset): Move these ...
3685 * gdbtypes.h: Remove include dwarf2expr.h.
3686 (cu_offset, sect_offset): ... here.
3687
1e55e04f
L
36882012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3689
3690 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3691 (amd64_linux_sigtramp_code): This.
3692 (amd64_x32_linux_sigtramp_code): New.
3693 (LINUX_SIGTRAMP_LEN): Updated.
3694 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3695
7d0e21ad
JK
36962012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3697
3698 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3699
8775fd2d
JK
37002012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3701
3702 * config.in: Regenerate.
3703 * configure: Regenerate.
3704 * configure.ac: Remove check for gnu/libc-version.h.
3705 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3706 gnu/libc-version.h.
3707 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3708 variables libc_version, libc_major and libc_minor. Replace sscanf by
3709 inferior_has_bug. Extend the comment.
3710
fcb44371
JK
37112012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3712
3713 * linux-thread-db.c (inferior_has_bug): New function.
3714 (thread_db_find_new_threads_silently): Return boolean as checked by
3715 inferior_has_bug, describe it in the comments.
3716 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3717 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3718 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3719 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3720 if UNTIL_NO_NEW,
3721
09406207
DE
37222012-07-02 Doug Evans <dje@google.com>
3723
0907af0c
DE
3724 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3725 related to queue management.
3726
09406207
DE
3727 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3728 instead of "debug dwarf2-die" in debugging printfs.
3729 (create_debug_info_hash_table_reader): Ditto.
3730 (create_debug_info_hash_table): Ditto.
3731 (init_dwo_file): Ditto.
3732 (init_cutu_and_read_dies): Add debugging printf.
3733 (init_cutu_and_read_dies_no_follow): Ditto.
3734 (process_psymtab_comp_unit_reader): Ditto.
3735
d3ce09f5
SS
37362012-07-02 Stan Shebs <stan@codesourcery.com>
3737
3738 Add target-side support for dynamic printf.
3739 * NEWS: Mention the additional style.
3740 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3741 (struct bp_location): New field cmd_bytecode.
3742 * breakpoint.c: Include format.h.
3743 (disconnected_dprintf): New global.
3744 (parse_cmd_to_aexpr): New function.
3745 (build_target_command_list): New function.
3746 (insert_bp_location): Call it.
3747 (remove_breakpoints_pid): Skip dprintf breakpoints.
3748 (print_one_breakpoint_location): Ditto.
3749 (dprintf_style_agent): New global.
3750 (dprintf_style_enums): Add dprintf_style_agent.
3751 (update_dprintf_command_list): Add agent case.
3752 (agent_printf_command): New function.
3753 (_initialize_breakpoint): Add new commands.
3754 * common/ax.def (printf): New bytecode.
3755 * ax.h (ax_string): Declare.
3756 * ax-gdb.h (gen_printf): Declare.
3757 * ax-gdb.c: Include cli-utils.h, format.h.
3758 (gen_printf): New function.
3759 (maint_agent_print_command): New function.
3760 (_initialize_ax_gdb): Add maint agent-printf command.
3761 * ax-general.c (ax_string): New function.
3762 (ax_print): Add printf disassembly.
3763 * Makefile.in (SFILES): Add format.c
3764 (COMMON_OBS): Add format.o.
3765 * common/format.h: New file.
3766 * common/format.c: New file.
3767 * printcmd.c: Include format.h.
3768 (ui_printf): Call parse_format_string.
3769 * remote.c (remote_state): New field breakpoint_commands.
3770 (PACKET_BreakpointCommands): New enum.
3771 (remote_breakpoint_commands_feature): New function.
3772 (remote_protocol_features): Add new BreakpointCommands entry.
3773 (remote_can_run_breakpoint_commands): New function.
3774 (remote_add_target_side_commands): New function.
3775 (remote_insert_breakpoint): Call it.
3776 (remote_insert_hw_breakpoint): Ditto.
3777 (_initialize_remote): Add new packet configuration for
3778 target-side breakpoint commands.
3779 * target.h (struct target_ops): New field
3780 to_can_run_breakpoint_commands.
3781 (target_can_run_breakpoint_commands): New macro.
3782 * target.c (update_current_target): Handle
3783 to_can_run_breakpoint_commands.
3784
2d7b58e8
JK
37852012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 Execute -ix and -iex only after system and user gdbinit files.
3788 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3789 processing down after gdbinit files.
3790
8690e634
JK
37912012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3792
3793 Add fnmatch-gnu module.
3794 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3795 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3796 * gnulib/aclocal.m4: Regenerate.
3797 * gnulib/config.in: Regenerate.
3798 * gnulib/configure: Regenerate.
3799 * gnulib/import/dummy.c: Remove.
3800 * gnulib/import/Makefile.am: Regenerate.
3801 * gnulib/import/Makefile.in: Likewise.
3802 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3803 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3804 * gnulib/import/alloca.c: New file.
3805 * gnulib/import/alloca.in.h: Likewise.
3806 * gnulib/import/config.charset: Likewise.
3807 * gnulib/import/fnmatch.c: Likewise.
3808 * gnulib/import/fnmatch.in.h: Likewise.
3809 * gnulib/import/fnmatch_loop.c: Likewise.
3810 * gnulib/import/localcharset.c: Likewise.
3811 * gnulib/import/localcharset.h: Likewise.
3812 * gnulib/import/m4/alloca.m4: Likewise.
3813 * gnulib/import/m4/codeset.m4: Likewise.
3814 * gnulib/import/m4/configmake.m4: Likewise.
3815 * gnulib/import/m4/fcntl-o.m4: Likewise.
3816 * gnulib/import/m4/fnmatch.m4: Likewise.
3817 * gnulib/import/m4/glibc21.m4: Likewise.
3818 * gnulib/import/m4/localcharset.m4: Likewise.
3819 * gnulib/import/m4/locale-fr.m4: Likewise.
3820 * gnulib/import/m4/locale-ja.m4: Likewise.
3821 * gnulib/import/m4/locale-zh.m4: Likewise.
3822 * gnulib/import/m4/mbrtowc.m4: Likewise.
3823 * gnulib/import/m4/mbsinit.m4: Likewise.
3824 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3825 * gnulib/import/m4/mbstate_t.m4: Likewise.
3826 * gnulib/import/m4/stdbool.m4: Likewise.
3827 * gnulib/import/m4/wchar_h.m4: Likewise.
3828 * gnulib/import/m4/wctype_h.m4: Likewise.
3829 * gnulib/import/m4/wint_t.m4: Likewise.
3830 * gnulib/import/mbrtowc.c: Likewise.
3831 * gnulib/import/mbsinit.c: Likewise.
3832 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3833 * gnulib/import/mbsrtowcs-state.c: Likewise.
3834 * gnulib/import/mbsrtowcs.c: Likewise.
3835 * gnulib/import/ref-add.sin: Likewise.
3836 * gnulib/import/ref-del.sin: Likewise.
3837 * gnulib/import/stdbool.in.h: Likewise.
3838 * gnulib/import/streq.h: Likewise.
3839 * gnulib/import/strnlen1.c: Likewise.
3840 * gnulib/import/strnlen1.h: Likewise.
3841 * gnulib/import/verify.h: Likewise.
3842 * gnulib/import/wchar.in.h: Likewise.
3843 * gnulib/import/wctype.in.h: Likewise.
3844
202cbf1c
JK
38452012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3846
3847 Support shell wildcards for 'set auto-load safe-path'.
3848 * auto-load.c: Include fnmatch.h.
3849 (filename_is_in_dir): Rename to ...
3850 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3851 it. Update function comment. Rename dir_len to pattern_len. New
3852 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3853 messages. Use gdb_filename_fnmatch.
3854 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3855 pattern.
3856 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3857 * defs.h (gdb_filename_fnmatch): New declaration.
3858 * utils.c: Include fnmatch.h.
3859 (gdb_filename_fnmatch): New function.
3860
fb7b5af4
SDJ
38612012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3862
3863 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3864 `-probe' and `-probe-stap' options.
3865
72d0e2c5
YQ
38662012-07-01 Yao Qi <yao@codesourcery.com>
3867
3868 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3869 always_inserted_off, and always_inserted_enums.
3870 Change always_inserted_mode's type to 'enum auto_boolean'.
3871 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3872 callers.
3873 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3874 of add_setshow_enum_cmd.
3875 * infrun.c: Remove can_use_displaced_stepping_auto,
3876 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3877 can_use_displaced_stepping_enum.
3878 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3879 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3880 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3881 add_setshow_enum_cmd.
3882
42e7ad6c
DE
38832012-06-30 Doug Evans <dje@google.com>
3884
3885 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3886 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3887 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3888
39cf75f7
DE
38892012-06-29 Doug Evans <dje@google.com>
3890
3891 * linespec.c: #include "stack.h".
3892 (decode_line_with_current_source): Moved here from symtab.c and
3893 renamed from decode_line_spec. All callers updated.
3894 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3895 renamed from decode_line_spec_1. All callers updated.
3896 * linespec.h (decode_line_with_current_source): Move declaration here
3897 from symtab.h and renamed from decode_line_spec.
3898 (decode_line_with_last_displayed): Move declaration here from symtab.h
3899 and renamed from decode_line_spec_1.
3900 * macrocmd.c: #include "linespec.h".
3901 * symtab.c: Remove #include "linespec.h".
3902
433df2d4
DE
39032012-06-28 Doug Evans <dje@google.com>
3904
1ce1cefd
DE
3905 * dwarf2read.c (get_cu_length): New function.
3906 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3907 (create_debug_types_hash_table): Ditto.
3908 (init_cutu_and_read_dies): Ditto.
3909 (init_cutu_and_read_dies_no_follow): Ditto.
3910
3b80fe9b
DE
3911 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3912
433df2d4
DE
3913 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3914 (struct abbrev_table): Define.
3915 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3916 abbrev_table.
3917 (init_cutu_and_read_dies): Update.
3918 (abbrev_table_alloc_abbrev): New function. Replaces
3919 dwarf_alloc_abbrev. All callers updated.
3920 (abbrev_table_add_abbrev): New function.
3921 (abbrev_table_lookup_abbrev): New function. Replaces
3922 dwarf2_lookup_abbrev. All callers updated.
3923 (abbrev_table_read_table): New function. Contents moved here from
3924 dwarf2_read_abbrevs.
3925 (dwarf2_read_abbrevs): Call it.
3926 (abbrev_table_free): New function.
3927 (dwarf2_free_abbrev_table): Call it.
3928
71caed83
SS
39292012-06-28 Stan Shebs <stan@codesourcery.com>
3930
3931 * osdata.c (info_osdata_command): Filter out "Title" columns
3932 from non-MI uses.
3933 * common/linux-osdata.c (struct osdata_type): Add title field.
3934 (osdata_table): Add titles to each entry.
3935 (linux_command_xfer_osdata): Add a column for title data.
3936
37ce89eb
SS
39372012-06-28 Stan Shebs <stan@codesourcery.com>
3938
3939 Make logging work for MI.
3940 * NEWS: Mention it.
3941 * interps.h (interp_set_logging_ftype): New typedef.
3942 (struct interp_procs): New field set_logging_proc.
3943 (current_interp_set_logging): Declare.
3944 * interps.c (current_interp_set_logging): New function.
3945 * cli/cli-logging.c: Include interps.h.
3946 (set_logging_redirect): Call current_interp_set_logging.
3947 (pop_output_files): Ditto.
3948 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3949 * mi/mi-console.h (mi_console_set_raw): Declare.
3950 * mi/mi-console.c (mi_console_set_raw): New function.
3951 * mi/mi-interp.c (saved_raw_stdout): New global.
3952 (mi_set_logging): New function.
3953 (_initialize_mi_interp): Add it to interp procs.
3954
659c9f3a
DE
39552012-06-28 Doug Evans <dje@google.com>
3956
a743abeb
DE
3957 * symtab.c (lookup_symbol_aux_objfile): Use
3958 ALL_OBJFILE_PRIMARY_SYMTABS.
3959
659c9f3a
DE
3960 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3961
da2d6d3d
JK
39622012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3963
3964 * common/buffer.c: Include inttypes.h and stdint.h.
3965 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3966
e5ef252a
PA
39672012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3968 Pedro Alves <palves@redhat.com>
3969
3970 * gdbthread.h (ALL_THREADS): New macro.
3971 (thread_list): Declare.
3972 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3973 going, but instead fall through to the stepping handling.
3974 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3975 the passed in signal. Adjust debug output.
3976 (resume_callback): Rename to ...
3977 (linux_nat_resume_callback): ... this. Pass the thread's last
3978 stop signal, if in "pass" state.
3979 (linux_nat_resume): Adjust to rename.
3980 (stop_wait_callback): New assertion. Don't respawn signals;
3981 instead let the LWP remain with SIGNALLED set.
3982 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3983 * remote.c (append_pending_thread_resumptions): New.
3984 (remote_vcont_resume): Call it.
3985 * target.h (target_resume): Extend comment.
3986
1d7975eb
IS
39872012-06-28 Iain Sandoe <iain@codesourcery.com>
3988
3989 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3990
2e3cf129
DE
39912012-06-27 Doug Evans <dje@google.com>
3992
3993 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3994 Delete have_addr_base, unused. All uses updated.
3995 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3996 (dwarf2_get_pc_bounds): Add ranges_base.
3997 (dwarf2_record_block_ranges): Ditto.
3998
1bb9788d
TT
39992012-06-27 Tom Tromey <tromey@redhat.com>
4000
4001 PR macros/7961:
4002 * varobj.c (varobj_create): Update.
4003 (varobj_set_value): Update.
4004 * tracepoint.c (validate_actionline): Update.
4005 (encode_actions_1): Update.
4006 * parse.c (parse_exp_1): Add 'pc' argument.
4007 (parse_exp_in_context): Add 'pc' argument. Change how
4008 expression_context_pc is set.
4009 (parse_expression): Update.
4010 (parse_field_expression): Update.
4011 * expression.h (parse_exp_1): Update.
4012 * eval.c (parse_to_comma_and_eval): Update.
4013 * breakpoint.c (set_breakpoint_condition): Update.
4014 (update_watchpoint): Update.
4015 (init_breakpoint_sal): Update
4016 (find_condition_and_thread): Update.
4017 (watch_command_1): Update.
4018 (update_breakpoint_locations): Update.
4019 * ada-lang.c (ada_read_renaming_var_value): Update.
4020 (create_excep_cond_exprs): Update.
4021
0bc3a05c
DE
40222012-06-27 Doug Evans <dje@google.com>
4023
4024 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4025 type units.
4026
4bdcc0c1
DE
40272012-06-26 Doug Evans <dje@google.com>
4028
4029 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4030 prototype.
4031 (error_check_comp_unit_head): New arg abbrev_section. All callers
4032 updated.
4033 (read_and_check_comp_unit_head): Ditto.
4034 (read_and_check_type_unit_head): Ditto.
4035
ee0bf529
SCR
40362012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4037
4038 New attribute 'last' for gdb.Symtab_and_line.
4039 * NEWS (Python Scripting): Add entry about the new attribute.
4040 * python/py-symtab.c (salpy_get_last): New function which
4041 implements the get method for the 'last' attribute of
4042 gdb.Symtab_and_line.
4043 (sal_object_getset): Add entry for the 'last' attribute.
4044
1c658ad5
DE
40452012-06-26 Doug Evans <dje@google.com>
4046
09262596
DE
4047 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4048 (dwo_sections): Add macinfo, macro.
4049 (dwarf2_locate_dwo_sections): Watch for macro sections.
4050 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4051 All callers updated. Handle DWO files.
4052
45cfd468
DE
4053 * NEWS: Mention new options "set debug dwarf2-read" and
4054 "set debug symtab-create".
4055 * dwarf2read.c (dwarf2_read_debug): New static global.
4056 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4057 (process_queue): Ditto.
4058 (process_full_comp_unit): Ditto.
4059 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4060 * elfread.c (elf_symfile_read): Add debugging printf.
4061 * minsyms.c (install_minimal_symbols): Ditto.
4062 * psymtab.c (allocate_psymtab): Ditto.
4063 * symfile.c (allocate_symtab): Ditto.
4064 * symtab.c (symtab_create_debug): New global.
4065 (_initialize_symtab): Add new option "set debug symtab-create".
4066 * symtab.h (symtab_create_debug): Declare.
4067
1c658ad5
DE
4068 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4069 (lookup_dwo_type_unit): Ditto.
4070
6fea9e18
L
40712012-06-26 Roland McGrath <roland@hack.frob.com>
4072 H.J. Lu <hongjiu.lu@intel.com>
4073
4074 * amd64-linux-nat.c: Include <sys/user.h>.
4075 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4076 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4077 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4078
4079 * configure.ac: Check if the fs_base and gs_base members of
4080 `struct user_regs_struct' exist.
4081 * config.in: Regenerated.
4082 * configure: Likewise.
4083
adb4fe3b
ME
40842012-06-25 Michael Eager <eager@eagercon.com>
4085
4086 PR python/14291
f782ad9b 4087 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4088
fc51cce1
MGD
40892012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4090
4091 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4092 register as a stack alignment in ARM mode.
4093
40a73391
JK
40942012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4095
4096 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4097 * gnulib/config.in: Regenerate.
4098 * gnulib/configure: Likewise.
4099 * gnulib/import/m4/extensions.m4: Update it.
4100 * gnulib/import/m4/gnulib-common.m4: Likewise.
4101 * gnulib/import/m4/memmem.m4: Likewise.
4102 * gnulib/import/m4/mmap-anon.m4: Likewise.
4103 * gnulib/import/m4/multiarch.m4: Likewise.
4104 * gnulib/import/stdint.in.h: Likewise.
4105
972daa01
YQ
41062012-06-24 Yao Qi <yao@codesourcery.com>
4107
4108 * corefile.c (write_memory_with_notification): New.
4109 * gdbcore.h: Declare write_memory_with_notification.
4110 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4111 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4112 * valops.c (value_assign): Likewise.
4113 * python/py-inferior.c (infpy_write_memory): Call
4114 'write_memory_with_notification'.
4115
8d6e0714
JK
41162012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4117
4118 * cc-with-index.sh: Use also -ex "set auto-load no".
4119
156942c7
DE
41202012-06-23 Doug Evans <dje@google.com>
4121
4122 PR 14125
4123 * NEWS: Document additions to .gdb_index.
4124 * dwarf2read.c: #include "gdb/gdb-index.h".
4125 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4126 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4127 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4128 (dwarf2_read_index): Recognize version 7.
4129 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4130 block_kind, domain): All callers updated.
4131 (dw2_find_symbol_file): Handle new index CU values.
4132 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4133 (add_index_entry): New args is_static, kind. All callers updated.
4134 (offset_type_compare, uniquify_cu_indices): New functions
4135 (symbol_kind): New function.
4136 (write_psymtabs_to_index): Remove duplicate CU values.
4137 (write_psymtabs_to_index): Write .gdb_index version 7.
4138
352b3eda
JB
41392012-06-22 Joel Brobecker <brobecker@adacore.com>
4140
4141 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4142 * configure: Regenerate.
4143
2678e2af
YQ
41442012-06-20 Yao Qi <yao@codesourcery.com>
4145
4146 * python/py-inferior.c: Update comments of infpy_read_memory
4147 and infpy_write_memory.
4148
95c391b6
TT
41492012-06-19 Tom Tromey <tromey@redhat.com>
4150
4151 PR exp/9514:
4152 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4153 (push_type_address_space): Remove.
4154 * parse.c (insert_into_type_stack): New function.
4155 (insert_type): Likewise.
4156 (insert_type_address_space): Rename from push_type_address_space.
4157 Insert tp_space_identifier.
4158 * c-exp.y (ptr_operator): New production.
4159 (abs_decl): Use ptr_operator.
4160 (space_identifier): Call insert_type_address_space.
4161 (ptype): Don't use const_or_volatile_or_space_identifier.
4162 (const_or_volatile_noopt): Call insert_type.
4163 (conversion_type_id, conversion_declarator): New productions.
4164 (operator): Use conversion_type_id.
4165
6ac9ef80
DE
41662012-06-18 Doug Evans <dje@google.com>
4167
422d65e7
DE
4168 * symtab.h (minimal_symbol): New member created_by_gdb.
4169 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4170 created by gdb.
4171 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4172 (search_symbols): Call it instead of lookup_symbol.
4173 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4174
49f6c839
DE
4175 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4176 Adjust address for DW_OP_GNU_addr_index.
4177 * dwarf2expr.h (dwarf_expr_context): Update comment.
4178 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4179 all callers updated. Handle TLS vars described with
4180 DW_OP_GNU_const_index.
4181 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4182 and DW_OP_GNU_const_index.
4183 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4184
6ac9ef80
DE
4185 * block.c (find_block_in_blockvector): Make explicit the fact that we
4186 ignore GLOBAL_BLOCK.
4187
4cd18215
TT
41882012-06-18 Tom Tromey <tromey@redhat.com>
4189
4190 * c-exp.y (operator): Remove trailing space after "delete" and
4191 "delete[]".
4192
a9b8d892
JK
41932012-06-18 Mark Kettenis <kettenis@gnu.org>
4194 Jan Kratochvil <jan.kratochvil@redhat.com>
4195
4196 Switch i386 and derived targets to ON_STACK.
4197 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4198 (amd64_dicos_init_abi): Remove its installment.
4199 * dicos-tdep.c (dicos_init_abi): Remove the
4200 set_gdbarch_call_dummy_location call. Update the comment here.
4201 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4202 (i386_dicos_init_abi): Remove its installment.
4203 * i386-tdep.c (i386_push_dummy_code): New function.
4204 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4205 i386_push_dummy_code.
4206
e2e4d78b
JK
42072012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4208
4209 Remove stale dummy frames.
4210 * breakpoint.c: Include dummy-frame.h.
4211 (longjmp_breakpoint_ops): New variable.
4212 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4213 bp_longjmp_call_dummy.
4214 (bpstat_what, bptype_string, print_one_breakpoint_location)
4215 (init_bp_location): Support bp_longjmp_call_dummy.
4216 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4217 (set_longjmp_breakpoint_for_call_dummy)
4218 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4219 functions.
4220 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4221 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4222 FIXME comment and extend the other comment for bp_call_dummy.
4223 (set_longjmp_breakpoint_for_call_dummy)
4224 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4225 * dummy-frame.c: Include gdbthread.h.
4226 (pop_dummy_frame_bpt): New function.
4227 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4228 (dummy_frame_discard): New function.
4229 (cleanup_dummy_frames): Update the comment about longjmps.
4230 * dummy-frame.h (dummy_frame_discard): New declaration.
4231 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4232 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4233 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4234 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4235 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4236 keep_going if IS_LONGJMP and there is no other reason to stop.
4237
09d5912c
TT
42382012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4239
4240 * remote-sim.c (sim_command_completer): Initialize
4241 variable 'result'.
4242
1788b2d3
JK
42432012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4244
4245 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4246 * dwarf2loc.c (call_site_parameter_matches): Support
4247 CALL_SITE_PARAMETER_PARAM_OFFSET.
4248 (needs_dwarf_reg_entry_value): Push stub value.
4249 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4250 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4251 * gdbtypes.h (enum call_site_parameter_kind): New item
4252 CALL_SITE_PARAMETER_PARAM_OFFSET.
4253 (struct call_site.parameter.u): New field param_offset.
4254
24c5c679
JK
42552012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4256
4257 Code cleanup: Generalize call_site.parameter key.
4258 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4259 variable dwarf_reg. New variable kind_u. Update parameters to
4260 push_dwarf_reg_entry_value.
4261 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4262 * dwarf2expr.h (enum call_site_parameter_kind)
4263 (union call_site_parameter_u): Forward declarations.
4264 (struct dwarf_expr_context_funcs): Update parameters and their
4265 description for push_dwarf_reg_entry_value.
4266 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4267 * dwarf2loc.c (call_site_parameter_matches): New function.
4268 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4269 description. Use call_site_parameter_matches.
4270 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4271 Update parameters and their description.
4272 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4273 New variable kind_u. Adjust the caller for updated parameters.
4274 (needs_dwarf_reg_entry_value): Update parameters.
4275 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4276 instead of attr. Update for the changed fields of struct
4277 call_site_parameter.
4278 * gdbtypes.h: Include dwarf2expr.h.
4279 (enum call_site_parameter_kind): New.
4280 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4281 fb_offset into new union u.
4282
ac142d96
L
42832012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4284
4285 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4286 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4287 for x32.
4288
ba224c70
L
42892012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4290
4291 * amd64-linux-nat.c (compat_x32_clock_t): New.
4292 (compat_x32_siginfo_t): Likewise.
4293 (compat_x32_siginfo_from_siginfo): Likewise.
4294 (siginfo_from_compat_x32_siginfo): Likewise.
4295 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4296 and siginfo_from_compat_x32_siginfo for x32.
4297
7ecbc825
HZ
42982012-06-15 Hui Zhu <hui_zhu@mentor.com>
4299
4300 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4301
233dfcf0
L
43022012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4303
4304 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4305 instead of gdbarch_ptr_bit.
4306 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4307 (amd64_supply_native_gregset): Likewise.
4308 (amd64_collect_native_gregset): Likewise.
4309 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4310 (amd64_supply_xsave): Likewise.
4311 (amd64_collect_fxsave): Likewise.
4312 (amd64_collect_xsave): Likewise.
4313
6da38f42
L
43142012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4315
4316 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4317 (amd64_linux_read_description): Check DS segment register for
4318 x32 process.
4319
663b969e
TT
43202012-06-15 Tom Tromey <tromey@redhat.com>
4321
4322 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4323 init_cutu_and_read_dies.
4324
d6f05027
IS
43252012-06-15 Iain Sandoe <iain@codesourcery.com>
4326
4327 * MAINTAINERS (Write After Approval): Add myself to the list.
4328
6598ed07
TT
43292012-06-15 Tom Tromey <tromey@redhat.com>
4330
4331 * valops.c (value_find_oload_method_list): Now static.
4332 * value.h (value_find_oload_method_list): Don't declare.
4333
2b214ea6
TT
43342012-06-15 Tom Tromey <tromey@redhat.com>
4335
4336 * valops.c (find_overload_match): Use value_ind.
4337
a210c238
MR
43382012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4339
4340 * infrun.c (handle_inferior_event): Correct indentation.
4341
3771a44c
DE
43422012-06-14 Doug Evans <dje@google.com>
4343
4344 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4345 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4346 All uses updated.
4347 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4348 updated. Handle DEBUG_LOC_START_LENGTH.
4349 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4350 (loclist_describe_location): Ditto.
4351
1c5a993e
MR
43522012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4353
4354 PR backtrace/13866
4355 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4356 after hiding inline functions.
4357
0b155465
JB
43582012-06-13 Joel Brobecker <brobecker@adacore.com>
4359
4360 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4361 _initialize_inf_ttrace.
4362
45717bac
JB
43632012-06-13 Joel Brobecker <brobecker@adacore.com>
4364
4365 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4366 _initialize_hppa_hpux_nat.
4367
34370865
JB
43682012-06-13 Joel Brobecker <brobecker@adacore.com>
4369
4370 * remote-sim.c (sim_command_completer): Change type of return
4371 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4372
284c5a60
MK
43732012-06-13 Mark Kettenis <kettenis@gnu.org>
4374 Jan Kratochvil <jan.kratochvil@redhat.com>
4375
4376 PR tdep/14222
4377 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4378 stack on a 16-byte boundary.
4379
2535757a
TT
43802012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4381
4382 * jit.c (finalize_symtab): Set function's return type to 'void' by
4383 default.
4384
fff4548b
MK
43852012-06-13 Mark Kettenis <kettenis@gnu.org>
4386 H.J. Lu <hongjiu.lu@intel.com>
4387
5a83521a
MK
4388 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4389 Move bits common to both the classic LP64 and the new x32 ILP32
4390 ABI here.
4391 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4392 (amd64_x32_linux_init_abi): New function.
4393 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4394 subtype.
4395
fff4548b
MK
4396 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4397 * i386-tdep.c (i386_pseudo_register_name): Make public.
4398 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4399 * amd64-tdep.c (amd64_dword_names): Add "eip".
4400 (amd64_x32_pseudo_register_type): New function
4401 (amd64_x32_init_abi): New function.
4402
dd80ea3c
JK
44032012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4404
4405 PR build/14003
4406 * inferior.h (struct inferior_suspend_state): Comment out.
4407 (struct inferior): Comment out the field suspend.
4408 * infrun.c (struct infcall_suspend_state): Comment out the field
4409 inferior_suspend.
4410 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4411 out its assignment.
4412
50af5481
JK
44132012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4414
4415 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4416 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4417 function comment. Return ERROR for unresolved cases. Implement
4418 returning proper NAME.
4419 (yylex): Accept also NAME from classify_inner_name.
4420 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4421 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4422 LOC_TYPEDEF type.
4423 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4424
d55637df
TT
44252012-06-13 Tom Tromey <tromey@redhat.com>
4426
4427 * breakpoint.c (condition_completer): New function.
4428 (_initialize_breakpoint): Use it.
4429 * value.c (complete_internalvar): New function.
4430 * value.h (complete_internalvar): Declare.
4431
49c4e619
TT
44322012-06-13 Tom Tromey <tromey@redhat.com>
4433
4434 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4435 * breakpoint.c (catch_syscall_completer): Return a VEC.
4436 * cli/cli-cmds.c (complete_command): Update.
4437 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4438 (complete_on_enum): Likewise.
4439 * command.h: Include gdb_vecs.h.
4440 (completer_ftype): Change return type.
4441 (complete_on_cmdlist, complete_on_enum): Likewise.
4442 * completer.c (noop_completer, filename_completer)
4443 (location_completer): Return a VEC.
4444 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4445 to a VEC.
4446 (expression_completer, complete_line_internal, complete_line)
4447 (command_completer): Return a VEC.
4448 (gdb_completion_word_break_characters, line_completion_function):
4449 Update.
4450 * completer.h: Include gdb_vecs.h.
4451 (complete_line, noop_completer, filename_completer)
4452 (expression_completer, location_completer, command_completer):
4453 Update.
4454 * f-lang.c (f_word_break_characters): Return a VEC.
4455 * interps.c (interpreter_completer): Return a VEC.
4456 * language.h (struct language_defn)
4457 <la_make_symbol_completion_list>: Return a VEC.
4458 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4459 * symtab.c (free_completion_list): Take a VEC.
4460 (return_val_size, return_val_index): Remove.
4461 (return_val): Now a VEC.
4462 (completion_list_add_name): Update.
4463 (default_make_symbol_completion_list_break_on)
4464 (default_make_symbol_completion_list, make_symbol_completion_list)
4465 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4466 Return a VEC.
4467 (add_filename_to_list): Update.
4468 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4469 <list>: Now a VEC.
4470 (maybe_add_partial_symtab_filename): Update.
4471 (make_source_files_completion_list): Return a VEC.
4472 * symtab.h (default_make_symbol_completion_list_break_on)
4473 (default_make_symbol_completion_list, make_symbol_completion_list)
4474 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4475 (make_source_files_completion_list): Update.
4476
625e8578
TT
44772012-06-13 Tom Tromey <tromey@redhat.com>
4478
4479 * breakpoint.c (add_catch_command): Use completer_ftype.
4480 * breakpoint.h: Include command.h.
4481 (add_catch_command): Use completer_ftype.
4482 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4483 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4484 Use completer_ftype.
4485 * command.h (completer_ftype): New typedef.
4486 (set_cmd_completer): Use it.
4487 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4488 completer_ftype.
4489
5eb3b062
PA
44902012-06-13 Pedro Alves <palves@redhat.com>
4491
4492 Partial revert of previous change.
4493
4494 * serial.c (scb_base): New global.
4495 (serial_for_fd): New.
4496 (serial_open, serial_fdopen_ops): Link new serial in open serials
4497 chain.
4498 (do_serial_close): Unlink serial from the open serials chain.
4499
8b3ee56d
PA
45002012-06-12 Pedro Alves <palves@redhat.com>
4501
4502 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4503 threads here.
4504 (prepare_for_detach): No longer context switch here in non-stop
4505 mode.
4506 (fetch_inferior_event): Ditto.
4507 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4508 to the event thread before removing breakpoints. Switch to the
4509 event thread before inserting breakpoints and resuming.
4510 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4511 event thread before resuming.
4512 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4513 Switch to the event thread before removing breakpoints.
4514
5d60742e
EZ
45152012-06-12 Eli Zaretskii <eliz@gnu.org>
4516
4517 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4518 special characters correctly for the Windows shells. See
4519 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4520 report.
4521 [!__MINGW32__]: Remove extra double quote character from special
4522 characters.
4523
a6feecf7
SS
45242012-06-11 Stan Shebs <stan@codesourcery.com>
4525
4526 * ui-out.h: Remove #if 0 declarations.
4527 * ui-out.c: Remove #if 0 functions.
4528
ddefb60f
PA
45292012-06-11 Pedro Alves <palves@redhat.com>
4530
4531 * ser-base.c (run_async_handler_and_reschedule): New.
4532 (fd_event, push_event): Use it.
4533 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4534 reference count to 1.
4535 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4536 instead of xfree.
4537 (serial_is_open, serial_ref, serial_unref): New.
4538 * serial.h (serial_open): Adjust comment.
4539 (serial_is_open): Declare.
4540 (serial_close): Adjust comment.
4541 (serial_ref, serial_unref) Declare.
4542 (struct serial): New field 'refcnt'.
4543
d5ad6aa5
PA
45442012-06-11 Pedro Alves <palves@redhat.com>
4545
4546 Remove #if 0'd "connect" command, and unnecessary associated
4547 refcounting and serial reuse bits.
4548
4549 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4550 * serial.c (last_serial_opened): Delete.
4551 (scb_base): Delete.
4552 (serial_open): Adjust.
4553 (serial_for_fd): Delete.
4554 (serial_fdopen_ops, do_serial_close): Adjust.
4555 (serial_fdopen_ops): Adjust.
4556
318aa544
PA
45572012-06-11 Pedro Alves <palves@redhat.com>
4558
4559 * serial.c (do_serial_close): Remove early return when SCB is
4560 null.
4561
07261596
TT
45622012-06-11 Tom Tromey <tromey@redhat.com>
4563
4564 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4565
cc80f267
JK
45662012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4567
4568 Fix regression by the "ambiguous linespec" series.
4569 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4570 get_last_displayed_symtab and get_last_displayed_line and depending
4571 on CURSAL.
4572
356d9f9d
TT
45732012-06-11 Tom Tromey <tromey@redhat.com>
4574
4575 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4576 (dw2_find_symbol_file): Use it.
4577
232b8704
ME
45782012-06-11 Michael Eager <eager@eagercon.com>
4579
4580 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4581 * mips-linux-tdep.h (mips_signals): New
4582
e81a37f7
TT
45832012-06-11 Tom Tromey <tromey@redhat.com>
4584
4585 * infrun.c (handle_inferior_event)
4586 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4587 breakpoint.
4588 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4589 exception logic in all cases. Update comments.
4590 (insert_longjmp_resume_breakpoint): Set the exception resume
4591 breakpoint.
4592
2e81047f
MR
45932012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4594
4595 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4596
4e32eda7
SCR
45972012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4598
4599 * valarith.c (binop_types_user_defined_p): Fix a typo.
4600
18648a37 46012012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4602 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4603
4604 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4605 * arch-utils.h: Declare.
4606 * gdbarch.sh: Add return_in_first_hidden_param_p.
4607 * gdbarch.c, gdbarch.h: Regenerated.
4608 * infcall.c (call_function_by_hand): Call
4609 gdbarch_return_in_first_hidden_param_p instead of
4610 language_pass_by_reference.
4611
4612 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4613 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4614 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4615 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4616 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4617 `cplus_return_struct_by_reference'.
4618 (tic6x_return_value): Handle language cplusplus.
4619 (tic6x_return_in_first_hidden_param_p): New.
4620 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4621
034e5797
DE
46222012-06-07 Doug Evans <dje@google.com>
4623
4624 * dwarf2read.c (dwarf2_cu): Add comment.
4625
6a00aa1e
MR
46262012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4627
4628 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4629 variable.
4630 (mips_eabi_push_dummy_call): Likewise.
4631 (mips_n32n64_push_dummy_call): Likewise.
4632 (mips_o32_push_dummy_call): Likewise.
4633 (mips_o64_push_dummy_call): Likewise.
4634
eaa05d59
MR
46352012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4636
4637 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4638
de13fcf2
MR
46392012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4640
4641 * mips-tdep.c (mips_pseudo_register_type): Use
4642 mips_float_register_p.
4643
c3a01a22
PA
46442012-06-06 Pedro Alves <palves@redhat.com>
4645
4646 * infrun.c (handle_inferior_event): Remove calls to
4647 reinit_frame_cache that follow a context_switch call.
4648
d25f45d9
PA
46492012-06-06 Pedro Alves <palves@redhat.com>
4650
4651 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4652 context_switch and remove stale comment.
4653
359f5fe6
PA
46542012-06-06 Pedro Alves <palves@redhat.com>
4655
4656 * infrun.c (struct execution_control_state): Remove
4657 `new_thread_event' field.
4658 (handle_inferior_event): Simplify new threads handling; don't
4659 resume the inferior if we find a new thread.
4660
2d4c29c5
TS
46612012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4662
4663 * NEWS: Document the deprecation of SH's 'regs' command.
4664 * inferior.h (all_registers_info): Add function declaration.
4665 * sh-tdep.c (sh_show_regs): Remove variable.
4666 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4667 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4668 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4669 (sh_show_regs_command): Remove functions.
4670 (sh_gdbarch_init): Don't set sh_show_regs.
4671 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4672 'info all-registers'.
4673 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4674 (sh64_show_regs): Remove functions.
4675 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4676
f5f1cdb6
JK
46772012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4678
4679 * configure.ac: Move development=true below AC_INIT.
4680 * configure: Regenerate.
4681
bf6309af
SS
46822012-06-05 Stan Shebs <stan@codesourcery.com>
4683
4684 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4685 gdb_stdout.
4686
45aa4659
JK
46872012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4688
4689 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4690 argument as ssize_t.
4691 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4692 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4693 * target.c (target_read_stack, target_write_memory)
4694 (target_write_raw_memory): Likewise.
4695 * target.h (target_read_stack, target_write_memory)
4696 (target_write_raw_memory): Likewise.
4697
1b162304
JK
46982012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4699
4700 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4701 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4702 * target.c (target_read_memory): Change LEN to ssize_t.
4703 * target.h (target_read_memory): Change LEN to ssize_t.
4704
8556afb4
PA
47052012-06-05 Pedro Alves <palves@redhat.com>
4706
4707 PR backtrace/13866
4708
4709 * breakpoint.c (until_break_command): Only fetch the selected
4710 frame after decode_line_1.
4711
fb139f32
PA
47122012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4713
4714 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4715 event breakpoint at _start, __start or main if a program
4716 interpreter is not found.
4717
a8e1bb34
JB
47182012-06-05 Joel Brobecker <brobecker@adacore.com>
4719
4720 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4721 Add declaration.
4722 * windows-tdep.c: #include "objfiles.h".
4723 (windows_iterate_over_objfiles_in_search_order): New function.
4724 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4725 iterate_over_objfiles_in_search_order gdbarch method to
4726 windows_iterate_over_objfiles_in_search_order.
4727 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4728
19630284
JB
47292012-06-05 Joel Brobecker <brobecker@adacore.com>
4730
4731 * gdbarch.sh: Add generation of
4732 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4733 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4734 (iterate_over_objfiles_in_search_order): New gdbarch method.
4735 * gdbarch.h, gdbarch.c: Regenerate.
4736 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4737 Add declaration.
4738 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4739 New function.
4740 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4741 out of lookup_symbol_aux_symtabs.
4742 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4743 call to lookup_symbol_aux_objfile.
4744 (struct global_sym_lookup_data): New type.
4745 (lookup_symbol_global_iterator_cb): New function.
4746 (lookup_symbol_global): Search for symbol using
4747 gdbarch_iterate_over_objfiles_in_search_order and
4748 lookup_symbol_global_iterator_cb.
4749 * findvar.c (struct minsym_lookup_data): New type.
4750 (minsym_lookup_iterator_cb): New function.
4751 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4752 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4753 and minsym_lookup_iterator_cb.
4754
67ff19f7
JB
47552012-06-05 Joel Brobecker <brobecker@adacore.com>
4756
4757 Revert the following patch:
4758 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4759 try locating the symbol in the symbol's own objfile first, before
4760 extending the search to all objfiles.
4761 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4762 out of lookup_symbol_aux_symtabs.
4763 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4764 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4765 Do not search EXCLUDE_OBJFILE.
4766 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4767 (lookup_symbol_global): Search for matches in the block's objfile
4768 first, before searching all other objfiles.
4769
ccab2054
JB
47702012-06-05 Joel Brobecker <brobecker@adacore.com>
4771
4772 * breakpoint.c (find_condition_and_thread): Stop parsing
4773 as soon as the first invalid keyword is found.
4774
e23d4a9c
JB
47752012-06-05 Joel Brobecker <brobecker@adacore.com>
4776
4777 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4778
70160166
JB
47792012-06-05 Joel Brobecker <brobecker@adacore.com>
4780
4781 * config/djgpp/djcheck.sh: Add copyright header.
4782
399501a5
JB
47832012-06-05 Joel Brobecker <brobecker@adacore.com>
4784
4785 * copyright.py (update_files, main): Fix path to update-copyright
4786 script.
4787
3770a159
JB
47882012-06-05 Joel Brobecker <brobecker@adacore.com>
4789
4790 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4791 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4792 for which a reminder to update by hand is printed.
4793
4aad0dfc
DE
47942012-06-04 Doug Evans <dje@google.com>
4795
4796 * buildsym.c (make_blockvector): Add comment.
4797
1f8cf220
PA
47982012-06-04 Pedro Alves <palves@redhat.com>
4799
4800 * arch-utils.c (default_gdb_signal_from_target): Delete.
4801 * arch-utils.h (default_gdb_signal_from_target): Delete.
4802 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4803 gdbarch_gdb_signal_from_target_p.
4804 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4805 predicate).
4806 * gdbarch.h: Regenerate.
4807 * gdbarch.c: Regenerate.
4808
86b49880
PA
48092012-06-04 Pedro Alves <palves@redhat.com>
4810
4811 * gdbarch.sh (gdb_signal_from_target): Mention that the
4812 implementation of the method must be host independent.
4813 * gdbarch.h: Regenerate.
4814
fe78531d
JK
48152012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4816
4817 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4818 parameters.
4819 (target_read_memory_bfd): New function.
4820 (symbol_file_add_from_memory): Use it.
4821
d790cf0a
DE
48222012-06-03 Doug Evans <dje@google.com>
4823
78e5175a
DE
4824 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4825 of primary symtab.
4826 (basic_lookup_transparent_type): Ditto.
4827
d790cf0a
DE
4828 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4829 (ALL_PRIMARY_SYMTABS): Use it.
4830 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4831 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4832 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4833 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4834 (basic_lookup_transparent_type): Ditto.
4835
c6e5ee5e
SDJ
48362012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4837
4838 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4839 it to optimize resolution of demangled name.
4840
a68ffae9
JK
48412012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4842
4843 * configure.ac (development): Define new variable.
4844 Call AC_CHECK_LIB for mcheck if $development.
4845 (ERROR_ON_WARNING): Enable it by default only if $development.
4846 * config.in: Regenerate.
4847 * configure: Regenerate.
4848
5299c1c4
JK
48492012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4850
4851 * target.c (target_read_memory): Make LEN argument as size_t.
4852 * target.h (target_read_memory): Likewise.
4853
48542012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4855
4856 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4857
0c56f59b
EBM
48582012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4859
4860 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4861 BookE interface for PowerPC server processors if not available
4862 in the Linux Kernel.
4863
71bdabee
KS
48642012-05-31 Keith Seitz <keiths@redhat.com>
4865
4866 * linespec.c (decode_objc): Add cleanup to free
4867 INFO.FILE_SYMTABS.
4868 (find_linespec_symbols): Add cleanup to free CLASSES.
4869 * symfile.c (find_separate_debug_file_by_debuglink): Add
4870 cleanup to free DEBUGLINK.
4871 * ui-out.c (clear_header_list): No need to check if
4872 HEADER_NEXT.COLHDR is NULL.
4873 Free HEADER_NEXT.COL_NAME.
4874
acbd605d
MGD
48752012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4876
4877 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4878 warning.
4879
65662cde
PA
48802012-05-30 Jeff Kenton <jkenton@tilera.com>
4881
4882 * configure.host (gdb_host_cpu): Handle tilegx*.
4883 (gdb_host): Handle tilegx-*-linux*.
4884 * tilegx-linux-nat.c: New file.
4885 * config/tilegx/linux.mh: New file.
4886
ade64f0e
PA
48872012-05-30 Jeff Kenton <jkenton@tilera.com>
4888
4889 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4890 tilegx-linux-tdep.o.
4891 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4892 tilegx-linux-tdep.c.
4893 * configure.tgt: Handle tilegx-*-linux*.
4894 * tilegx-tdep.h: New file.
4895 * tilegx-tdep.c: New file.
4896 * tilegx-linux-tdep.c: New file.
4897 * regformats/reg-tilegx.dat: New file.
4898
bb08bdbd
EBM
48992012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4900
4901 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4902 accounting of hw watchpoints on ppc.
4903
ebd86fb5
TJB
49042012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4905
4906 * source.c (openp): Expand tilde in path entries.
4907
0a0edcd5
DE
49082012-05-29 Doug Evans <dje@google.com>
4909
98cc87bd
DE
4910 * buildsym.c (block_compar): Fix comment.
4911 (end_symtab): Fix and clarify some comments.
4912
0a0edcd5
DE
4913 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4914 cleanup_undefined_types.
4915 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4916 All callers updated.
4917
6f0c7050
TT
49182012-05-29 Tom Tromey <tromey@redhat.com>
4919
4920 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4921 fails.
4922 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4923 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4924 fails.
4925 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4926 fails.
4927
ec95993c
TG
49282012-05-29 Tristan Gingold <gingold@adacore.com>
4929
4930 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4931 (struct darwin_info): ... New struct.
4932 (solib_darwin_pspace_data): New variable.
4933 (darwin_pspace_data_cleanup): New function.
4934 (get_darwin_info): Likewise.
4935 (darwin_dyld_version_ok, darwin_load_image_infos)
4936 (darwin_solib_get_all_image_info_addr_at_init)
4937 (darwin_solib_read_all_image_info_addr): Add info argument.
4938 Adjust code.
4939 (darwin_current_sos): Use per pspace structure.
4940 (darwin_solib_create_inferior_hook): Likewise.
4941 (darwin_clear_solib): Likewise.
4942 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4943
ae25568b
PA
49442012-05-28 Pedro Alves <palves@redhat.com>
4945
4946 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4947 block that uses them. Clear ecss before handling each event.
4948
0c5bf5a9
JK
49492012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4950
4951 * solib-svr4.c (svr4_current_sos): New comment on
4952 svr4_current_sos_via_xfer_libraries fall back.
4953
bfb05775
JK
49542012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4955
4956 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4957 it as a fallback for TYPE_IS_OPAQUE.
4958 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4959 symbols for lookup_symbol.
4960
685b1105
JK
49612012-05-24 John Steele Scott <toojays@toojays.net>
4962
4963 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4964 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4965 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4966 (check_producer): ... this new function, which also checks for ICC
4967 and caches the result.
4968 (producer_is_icc): New function.
4969 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4970 producer was ICC.
4971
22203bbf
PA
49722012-05-24 Pedro Alves <palves@redhat.com>
4973
4974 PR gdb/7205
4975
4976 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4977 (default_gdb_signal_to_target): ... this. Add comment.
4978 (default_gdb_signal_from_host): Rename to ...
4979 (default_gdb_signal_from_target): ... this. Add comment.
4980 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4981 (default_gdb_signal_to_target): ... this.
4982 (default_gdb_signal_from_host): Rename to ...
4983 (default_gdb_signal_from_target): ... this.
4984 * corelow.c (core_open): Adjust to naming change. Replace comment.
4985 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4986 (gdb_signal_from_target): ... this. Adjust to
4987 default_gdb_signal_from_host naming change. Extend comment.
4988 (gdb_signal_to_host): Rename to ...
4989 (gdb_signal_to_target): ... this. Adjust to
4990 default_gdb_signal_to_host naming change.
4991 * gdbarch.h, gdbarch.c: Renegerate.
4992
a493e3e2
PA
49932012-05-24 Pedro Alves <palves@redhat.com>
4994
4995 PR gdb/7205
4996
f782ad9b 4997 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4998
2ea28649
PA
49992012-05-24 Pedro Alves <palves@redhat.com>
5000
5001 PR gdb/7205
5002
5003 Replace target_signal with gdb_signal throughout.
5004
b09846a9
PA
50052012-05-24 Pedro Alves <palves@redhat.com>
5006
5007 PR tui/14159
5008
5009 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5010 string, instead of reusing the va_list argument.
5011
e77c107e
TT
50122012-05-24 Tom Tromey <tromey@redhat.com>
5013
5014 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5015 Remove.
5016
9fccedf7
DE
50172012-05-23 Doug Evans <dje@google.com>
5018
d50bd42b
DE
5019 * symtab.c (search_symbols): Formatting fixes.
5020 (print_symbol_info): Formatting fixes.
5021
9fccedf7
DE
5022 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5023 int64_t change to leb128 API.
5024 (read_encoded_value, decode_frame_entry_1): Ditto.
5025 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5026 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5027 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5028 (execute_stack_op): Ditto.
5029 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5030 (safe_read_uleb128, safe_read_sleb128): Ditto.
5031 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5032 (dwarf2_compile_expr_to_ax): Ditto.
5033 (locexpr_describe_location_piece): Ditto.
5034 (disassemble_dwarf_expression): Ditto.
5035 (locexpr_describe_location_1): Ditto.
5036
f3e0e960
SS
50372012-05-23 Stan Shebs <stan@codesourcery.com>
5038 Kwok Cheung Yeung <kcy@codesourcery.com>
5039
5040 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5041 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5042 (mi-cmd-info.o): New rule.
5043 * osdata.h (info_osdata_command): New declaration.
5044 * osdata.c (info_osdata_command): Change to non-static.
5045 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5046 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5047 * mi/mi-cmd-info.c: New file.
5048
c51fe631
DE
50492012-05-23 Doug Evans <dje@google.com>
5050
71cddcc1
DE
5051 * symtab.c (search_symbols): Pass NULL for file_matcher to
5052 expand_symtabs_matching if there are no files to match.
5053
c51fe631
DE
5054 * gdbtypes.c (lookup_typename): Simplify.
5055
a79378d4
PA
50562012-05-23 Pedro Alves <palves@redhat.com>
5057
5058 * arch-utils.h (default_target_signal_to_host): Delete.
5059 * arch-utils.c (default_target_signal_to_host): Delete.
5060 * gdbarch.sh (target_signal_to_host): Remove.
5061 * gdbarch.h, gdbarch.c: Regenerate.
5062
f664829e
DE
50632012-05-22 Doug Evans <dje@google.com>
5064
5065 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5066 "const gdb_byte *".
5067 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5068 (execute_cfa_program): Update to match API of leb128 functions.
5069 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5070 "const gdb_byte *".
5071 (read_unsigned_leb128, read_signed_leb128): Delete.
5072 (read_initial_length): Change type of buf argument to
5073 "const gdb_byte *".
5074 (read_encoded_value): Update to match API of leb128 functions.
5075 (decode_frame_entry): Change result to "const gdb_byte *", and
5076 similarly for "start" parameter.
5077 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5078 (dwarf2_build_frame_info): Change local frame_ptr to
5079 "const gdb_byte *".
5080 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5081 read_uleb128, read_sleb128. All callers updated.
5082 (safe_skip_leb128): New function.
5083 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5084 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5085 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5086 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5087 read_uleb128, read_sleb128.
5088 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5089 (execute_stack_op): Update to match API of leb128 functions.
5090 * dwarf2expr.h: #include "leb128.h".
5091 (read_uleb128, read_sleb128): Delete.
5092 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5093 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5094 * dwarf2loc.c (debug_loc_kind): New enum.
5095 (decode_debug_loc_addresses): New function.
5096 (decode_debug_loc_dwo_addresses): New function.
5097 (dwarf2_find_location_expression): Rewrite.
5098 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5099 (locexpr_describe_location_piece): Ditto.
5100 (disassemble_dwarf_expression): Ditto.
5101 (locexpr_describe_location_1): Ditto.
5102 (loclist_describe_location): Rewrite.
5103 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5104 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5105 (dwarf2_section_buffer_overflow_complaint): Renamed from
5106 dwarf2_macros_too_long_complaint. All callers updated.
5107 (skip_leb128): Delete.
5108 (init_cu_die_reader): Initialize reader->buffer_end.
5109 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5110 (skip_form_bytes): New arg buffer_end. All callers updated.
5111 Replace call to skip_leb128 with gdb_skip_leb128.
5112 (skip_unknown_opcode): New arg mac_end. All callers updated.
5113 (fill_in_loclist_baton): Initialize baton->from_dwo.
5114
837a1b32
MR
51152012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5116
5117 * mips-linux-nat.c (mips_linux_read_description): Use a more
5118 verbose error message.
5119
d0e64392
MR
51202012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5121
5122 * NEWS: Add MIPS/Linux DSP support.
5123 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5124 (SIGCONTEXT_DSPCTL): New macro.
5125 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5126 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5127 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5128 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5129 (N64_SIGCONTEXT_HI3): Likewise.
5130 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5131 (N64_SIGCONTEXT_LO3): Likewise.
5132 (N64_SIGCONTEXT_DSPCTL): Likewise.
5133 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5134 (mips_linux_o32_sigframe_init): Handle DSP registers.
5135 (mips_linux_n32n64_sigframe_init): Likewise.
5136
8bea7ed1
PM
51372012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5138
5139 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5140 call to abort.
5141
dab06dbe
PA
51422012-05-22 Pedro Alves <palves@redhat.com>
5143
5144 * target.h (store_waitstatus): Move declaration ...
5145 * inf-child.h (store_waitstatus): ... here.
5146 * target.c: Move inclusion of gdb_wait.h, and ...
5147 (store_waitstatus): ... this ...
5148 * inf-child.c: ... here.
5149 * linux-nat.c: Include inf-child.h.
5150 * rs6000-nat.c: Include inf-child.h.
5151 * spu-linux-nat.c: Include inf-child.h.
5152
43011e52
PM
51532012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5154
5155 * tracepoint.c (start_tracing): Add missing i18n markup.
5156 (stop_tracing, set_trace_user): Ditto.
5157 (set_trace_notes, set_trace_stop_notes): Ditto.
5158
b1af9e97
TT
51592012-05-21 Tom Tromey <tromey@redhat.com>
5160
5161 PR c++/7173:
5162 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5163 types.
5164 * value.h (value_cast_pointers): Update.
5165 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5166 (value_cast): Update.
5167 (update_search_result): New function.
5168 (do_search_struct_field): New, from search_struct_field. Check
5169 for ambiguous results.
5170 (search_struct_field): Rewrite.
5171 * infcall.c (value_arg_coerce): Update.
5172 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5173 value_cast_pointers.
5174 * ada-lang.c (ada_convert_actual): Update.
5175
e9e5e6b3
TT
51762012-05-21 Tom Tromey <tromey@redhat.com>
5177
5178 * macroexp.c (macro_stringify): Terminate the string.
5179
1564a261
JK
51802012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5181
5182 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5183 Describe it.
5184 * auto-load.c (auto_load_expand_dir_vars): New function.
5185 (auto_load_safe_path_vec_update): Use it, remove the
5186 substitute_path_component call thanks to it.
5187 (auto_load_objfile_script): Remove the debug_file_directory processing.
5188 Use auto_load_expand_dir_vars, remove the substitute_path_component
5189 call thanks to it.
5190 * configure: Regenerate.
5191 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5192 path. Escape $ also for $debugdir.
5193 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5194 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5195
a3ec0bb1
DE
51962012-05-20 Doug Evans <dje@google.com>
5197
5198 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5199 before use. Check for symtab->includes == NULL before scanning it.
5200
d467df4e
MR
52012012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5202
5203 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5204
4cc0665f
MR
52052012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5206
5207 * NEWS: Add microMIPS support and "set mips compression",
5208 "show mips compression" commands.
5209 * mips-tdep.h (mips_isa): New enum.
5210 (gdbarch_tdep): Add mips_isa.
5211 (mips_pc_is_mips16): Update prototype.
5212 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5213 * mips-tdep.c (mips_compression_mips16): New variable.
5214 (mips_compression_micromips): Likewise.
5215 (mips_compression_strings): Likewise.
5216 (mips_compression_string): Likewise.
5217 (is_mips16_isa, is_micromips_isa): New functions.
5218 (is_mips16_addr): Rename to...
5219 (is_compact_addr): ... this.
5220 (unmake_mips16_addr): Likewise to...
5221 (unmake_compact_addr): ... this.
5222 (make_mips16_addr): Likewise to...
5223 (make_compact_addr): ... this.
5224 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5225 functions.
5226 (mips_elf_make_msymbol_special): Handle microMIPS code.
5227 (msymbol_is_special): Rename to...
5228 (msymbol_is_mips16): ... this.
5229 (mips_make_symbol_special, mips_pc_is_mips16): Update
5230 accordingly.
5231 (msymbol_is_mips, msymbol_is_micromips): New functions.
5232 (mips16_to_32_reg): Rename to...
5233 (mips_reg3_to_reg): ... this.
5234 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5235 (mips_pc_isa): Likewise.
5236 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5237 code.
5238 (mips_fetch_instruction): Pass return status instead of printing
5239 an error message if requested. Handle microMIPS code. Bail out
5240 on an invalid ISA.
5241 (micromips_op): New macro.
5242 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5243 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5244 (b6s4_op, b7s3_reg): Likewise.
5245 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5246 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5247 (mips_insn_size): New function.
5248 (mips32_next_pc): Update mips_fetch_instruction call.
5249 (micromips_relative_offset7): New function.
5250 (micromips_relative_offset10): Likewise.
5251 (micromips_relative_offset16): Likewise.
5252 (micromips_pc_insn_size): Likewise.
5253 (micromips_bc1_pc): Likewise.
5254 (micromips_next_pc): Likewise.
5255 (unpack_mips16): Update mips_fetch_instruction call.
5256 (extended_mips16_next_pc): Update according to change to
5257 mips16_to_32_reg.
5258 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5259 code.
5260 (mips16_scan_prologue): Update mips_fetch_instruction call.
5261 Update according to change to mips16_to_32_reg.
5262 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5263 (mips_insn16_frame_base_sniffer): Likewise.
5264 (micromips_decode_imm9): New function.
5265 (micromips_scan_prologue): Likewise.
5266 (mips_micro_frame_cache): Likewise.
5267 (mips_micro_frame_this_id): Likewise.
5268 (mips_micro_frame_prev_register): Likewise.
5269 (mips_micro_frame_sniffer): Likewise.
5270 (mips_micro_frame_unwind): New variable.
5271 (mips_micro_frame_base_address): New function.
5272 (mips_micro_frame_base): New variable.
5273 (mips_micro_frame_base_sniffer): New function.
5274 (mips32_scan_prologue): Update mips_fetch_instruction call.
5275 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5276 rather than for MIPS16.
5277 (mips_insn32_frame_base_sniffer): Likewise.
5278 (mips_addr_bits_remove): Handle microMIPS code.
5279 (deal_with_atomic_sequence): Rename to...
5280 (mips_deal_with_atomic_sequence): ... this. Update the type
5281 of the variable used to hold an instruction. Remove the ISA bit
5282 check. Update mips_fetch_instruction call.
5283 (micromips_deal_with_atomic_sequence): New function.
5284 (deal_with_atomic_sequence): Likewise.
5285 (mips_about_to_return): Handle microMIPS code. Update
5286 mips_fetch_instruction call.
5287 (heuristic_proc_start): Check for the standard MIPS ISA rather
5288 than for MIPS16. Update mips_pc_is_mips16 and
5289 mips_fetch_instruction calls. Handle microMIPS code.
5290 (mips_push_dummy_code): Handle microMIPS code.
5291 (mips_eabi_push_dummy_call): Likewise.
5292 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5293 (mips_o64_push_dummy_call): Handle microMIPS code.
5294 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5295 (is_delayed): Remove function.
5296 (mips_single_step_through_delay): Replace the call to is_delayed
5297 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5298 Handle microMIPS code.
5299 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5300 microMIPS code.
5301 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5302 call.
5303 (micromips_in_function_epilogue_p): New function.
5304 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5305 call.
5306 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5307 Handle microMIPS.
5308 (gdb_print_insn_mips): Likewise.
5309 (mips_breakpoint_from_pc): Likewise.
5310 (mips_remote_breakpoint_from_pc): New function.
5311 (mips32_instruction_has_delay_slot): Simplify making use of the
5312 updated mips_fetch_instruction interface.
5313 (micromips_instruction_has_delay_slot): New function.
5314 (mips16_instruction_has_delay_slot): Simplify making use of the
5315 updated mips_fetch_instruction interface.
5316 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5317 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5318 calls. Handle microMIPS code.
5319 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5320 (mips_skip_trampoline_code): Handle microMIPS code.
5321 (global_mips_compression): New function.
5322 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5323 file flags. Register the microMIPS remote breakpoint handler
5324 and heuristic frame unwinder.
5325 (show_mips_compression): New function.
5326 (_initialize_mips_tdep): Add the "set mips compression" and
5327 "show mips compression" commands.
5328
22e048c9
SDJ
53292012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5330
5331 * ada-lang.c:
5332 * ada-tasks.c:
5333 * ada-varobj.c:
5334 * amd64-darwin-tdep.c:
5335 * arm-symbian-tdep.c:
5336 * arm-tdep.c:
5337 * avr-tdep.c:
5338 * ax-gdb.c:
5339 * bfin-linux-tdep.c:
5340 * breakpoint.c:
5341 * c-valprint.c:
5342 * cli/cli-cmds.c:
5343 * coffread.c:
5344 * cp-support.c:
5345 * cris-tdep.c:
5346 * dwarf2-frame-tailcall.c:
5347 * dwarf2-frame.c:
5348 * dwarf2expr.c:
5349 * dwarf2loc.c:
5350 * dwarf2read.c:
5351 * elfread.c:
5352 * eval.c:
5353 * expprint.c:
5354 * f-valprint.c:
5355 * frv-tdep.c:
5356 * h8300-tdep.c:
5357 * hppa-hpux-tdep.c:
5358 * hppa-tdep.c:
5359 * hppanbsd-tdep.c:
5360 * i386-nto-tdep.c:
5361 * i386-tdep.c:
5362 * i387-tdep.c:
5363 * ia64-tdep.c:
5364 * jit.c:
5365 * linespec.c:
5366 * linux-tdep.c:
5367 * lm32-tdep.c:
5368 * m2-valprint.c:
5369 * m32c-tdep.c:
5370 * m32r-rom.c:
5371 * m32r-tdep.c:
5372 * m68k-tdep.c:
5373 * m68klinux-tdep.c:
5374 * mi/mi-main.c:
5375 * microblaze-tdep.c:
5376 * mips-linux-tdep.c:
5377 * mips-tdep.c:
5378 * mn10300-tdep.c:
5379 * p-valprint.c:
5380 * parse.c:
5381 * ppc-linux-tdep.c:
5382 * ppc-sysv-tdep.c:
5383 * printcmd.c:
5384 * python/py-finishbreakpoint.c:
5385 * python/py-inferior.c:
5386 * python/py-infthread.c:
5387 * python/py-type.c:
5388 * python/python.c:
5389 * remote-fileio.c:
5390 * remote-m32r-sdi.c:
5391 * remote-mips.c:
5392 * reverse.c:
5393 * rl78-tdep.c:
5394 * rs6000-aix-tdep.c:
5395 * rs6000-tdep.c:
5396 * s390-tdep.c:
5397 * score-tdep.c:
5398 * sh64-tdep.c:
5399 * skip.c:
5400 * solib-darwin.c:
5401 * solib-dsbt.c:
5402 * solib-frv.c:
5403 * sparc-tdep.c:
5404 * spu-multiarch.c:
5405 * spu-tdep.c:
5406 * stack.c:
5407 * symfile.c:
5408 * symtab.c:
5409 * tic6x-tdep.c:
5410 * tracepoint.c:
5411 * v850-tdep.c:
5412 * valarith.c:
5413 * valprint.c:
5414 * value.c:
5415 * xcoffread.c:
5416 * xtensa-tdep.c:
5417 * ada-lang.c:
5418 * ada-tasks.c:
5419 * ada-varobj.c:
5420 * amd64-darwin-tdep.c:
5421 * arm-symbian-tdep.c:
5422 * arm-tdep.c: Delete unused variables.
5423
aff139ff
JK
54242012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5425
5426 Rename $ddir to $datadir.
5427 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5428 * auto-load.c (auto_load_safe_path_vec_update)
5429 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5430 * configure: Regenerate.
5431 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5432 Likewise. Remove the 'use $ddir' help string.
5433
f7bfa992
JK
54342012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5435
5436 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5437 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5438
9cb709b6
TT
54392012-05-18 Tom Tromey <tromey@redhat.com>
5440
5441 PR exp/13907:
5442 * valprint.h (struct value_print_options) <symbol_print>: New
5443 field.
5444 * valprint.c (user_print_options): Add default for symbol_print.
5445 (show_symbol_print): New function.
5446 (generic_val_print): Respect symbol_print.
5447 (_initialize_valprint): Add "print symbol" setting.
5448 * f-valprint.c (f_val_print): Respect symbol_print.
5449 * c-valprint.c (c_val_print): Respect symbol_print.
5450 * NEWS: Update.
5451 * printcmd.c (print_address_symbolic): Return int. Ignore some
5452 zero-size symbols.
5453 (print_address_demangle): Return int.
5454 * defs.h: (print_address_symbolic): Return int.
5455 * value.h (print_address_demangle): Return int.
5456
b012acdd
TT
54572012-05-18 Tom Tromey <tromey@redhat.com>
5458
5459 * valprint.c (val_print_string): Don't print leading space.
5460 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5461 print space before string or vtbl.
5462 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5463 before string.
5464 * jv-valprint.c (java_value_print): Print space before string.
5465 * go-valprint.c (print_go_string): Print space before string.
5466 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5467 space before string.
5468 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5469 space before string or vtbl.
5470 * auxv.c (fprint_target_auxv): Print space after address.
5471
1d51a733
TT
54722012-05-18 Tom Tromey <tromey@redhat.com>
5473
5474 * printcmd.c (print_address_demangle): Remove special case for 0.
5475
edf0c1b7
TT
54762012-05-18 Tom Tromey <tromey@redhat.com>
5477
5478 * printcmd.c (print_address_demangle): Add 'opts' argument.
5479 * p-valprint.c (pascal_val_print): Update.
5480 * jv-valprint.c (java_val_print): Update.
5481 * value.h: Update.
5482 * valprint.c (generic_val_print): Update.
5483 (print_function_pointer_address): Add 'options' argument. Remove
5484 'addressprint' argument. Update.
5485 * m2-valprint.c (print_unpacked_pointer): Update.
5486 * gnu-v3-abi.c (print_one_vtable): Update.
5487 (gnuv3_print_method_ptr): Update.
5488 * f-valprint.c (f_val_print): Update.
5489 * cp-valprint.c (cp_print_value_fields): Update.
5490 * valprint.h (print_function_pointer_address): Update.
5491 * c-valprint.c (c_val_print): Update.
5492
9703b513
TT
54932012-05-18 Tom Tromey <tromey@redhat.com>
5494
5495 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5496 directly corresponding to the found psymtab.
5497 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5498 (dw2_find_pc_sect_symtab): Use it.
5499 * block.h (blockvector_contains_pc): Declare.
5500 * block.c (find_block_in_blockvector): New function.
5501 (blockvector_for_pc_sect): Use it.
5502 (blockvector_contains_pc): New function.
5503
5a439849
MR
55042012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5505
5506 * mips-tdep.h (mips_write_pc): New prototype.
5507 * mips-tdep.c (mips_write_pc): Make external, add description.
5508 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5509 add description.
5510
8376de04
MR
55112012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5512
5513 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5514 mips_regnum->pc.
5515 (mips_unwind_pc, mips_write_pc): Likewise.
5516 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5517 gdbarch_read_pc.
5518
d3581e61
JB
55192012-05-17 Joel Brobecker <brobecker@adacore.com>
5520
5521 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5522 proc_warn, proc_error, proc_get_status, proc_flags,
5523 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5524 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5525 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5526 proc_stop_process, proc_wait_for_stop, proc_run_process,
5527 proc_set_traced_signals, proc_set_traced_faults,
5528 proc_set_traced_sysentry, proc_set_traced_sysexit,
5529 proc_set_held_signals, proc_get_held_signals,
5530 proc_get_traced_signals, proc_get_traced_faults,
5531 proc_get_traced_sysentry, proc_get_traced_sysexit,
5532 proc_clear_current_fault, proc_set_current_signal,
5533 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5534 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5535 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5536 proc_get_current_thread, proc_get_current_thread,
5537 proc_get_current_thread, proc_update_threads,
5538 proc_update_threads, proc_update_threads, proc_update_threads,
5539 proc_iterate_over_threads, procfs_find_new_threads,
5540 procfs_pid_to_str): Make static. Remove advance declaration.
5541 (proc_cursig): Make static. Conditionalized defintion on
5542 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5543 (proc_syscall, proc_set_kill_on_last_close,
5544 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5545 proc_get_pending_signals, proc_get_signal_actions,
5546 proc_trace_signal, proc_ignore_signal): Delete.
5547
81b9b86e
SDJ
55482012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5549
5550 * coffread.c (cs_section_address): Passing proper argument for
5551 `bfd_get_section_vma'.
5552 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5553 `bfd_get_section_flags'.
5554 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5555 `bfd_get_section_vma'.
5556
abc9d0dc
TT
55572012-05-16 Tom Tromey <tromey@redhat.com>
5558
5559 PR macros/13205:
5560 * macrotab.h: (macro_define_special): Declare.
5561 (enum macro_special_kind): New.
5562 (struct macro_definition) <argc, replacement>: Update comments.
5563 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5564 (macro_define_object_internal): New function.
5565 (macro_define_object): Use it.
5566 (macro_define_special): New function.
5567 (fixup_definition): New function.
5568 (macro_lookup_definition, foreach_macro_in_scope)
5569 (foreach_macro): Use fixup_definition.
5570 * macroexp.h (macro_stringify): Declare.
5571 * macroexp.c (free_buffer_return_text): New function.
5572 (stringify): Constify "arg".
5573 (macro_stringify): New function.
5574 * dwarf2read.c (macro_start_file): Call macro_define_special.
5575
6a3a010b 55762012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5577 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5578
5579 * breakpoint.h (bp_location): Add related_address member.
5580 * inferior.h (get_return_value): Take a pointer to struct value
5581 instead of struct type for the function requested.
5582 * value.h (using_struct_return): Likewise.
5583 * gdbarch.sh (return_value): Take a pointer to struct value
5584 instead of struct type for the function requested.
5585 * breakpoint.c (set_breakpoint_location_function): Initialize
5586 related_address for bp_gnu_ifunc_resolver breakpoints.
5587 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5588 requested function's address to gdbarch_return_value.
5589 * eval.c (evaluate_subexp_standard): Pass the requested
5590 function's address to using_struct_return.
5591 * infcall.c (call_function_by_hand): Pass the requested
5592 function's address to using_struct_return and
5593 gdbarch_return_value.
5594 * infcmd.c (get_return_value): Take a pointer to struct value
5595 instead of struct type for the function requested.
5596 (print_return_value): Update accordingly.
5597 (finish_command_continuation): Likewise.
5598 * stack.c (return_command): Pass the requested function's
5599 address to using_struct_return and gdbarch_return_value.
5600 * value.c (using_struct_return): Take a pointer to struct value
5601 instead of struct type for the function requested. Pass the
5602 requested function's address to gdbarch_return_value.
5603 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5604 New function_value member, replacing function_type.
5605 (bpfinishpy_dealloc): Update accordingly.
5606 (bpfinishpy_pre_stop_hook): Likewise.
5607 (bpfinishpy_init): Likewise. Record the requested function's
5608 address.
5609 * mips-tdep.c (mips_fval_reg): New enum.
5610 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5611 words put in GP registers.
5612 (mips_o64_push_dummy_call): Update a comment.
5613 (mips_o32_return_value): Take a pointer to struct value instead
5614 of struct type for the function requested and use it to check if
5615 using the MIPS16 calling convention. Return the designated
5616 general purpose registers for floating-point values returned in
5617 MIPS16 mode.
5618 (mips_o64_return_value): Likewise.
5619 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5620 (ppc_sysv_abi_broken_return_value): Likewise.
5621 (ppc64_sysv_abi_return_value): Likewise.
5622 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5623 value instead of struct type for the function requested.
5624 * amd64-tdep.c (amd64_return_value): Likewise.
5625 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5626 * arm-tdep.c (arm_return_value): Likewise.
5627 * avr-tdep.c (avr_return_value): Likewise.
5628 * bfin-tdep.c (bfin_return_value): Likewise.
5629 * cris-tdep.c (cris_return_value): Likewise.
5630 * frv-tdep.c (frv_return_value): Likewise.
5631 * h8300-tdep.c (h8300_return_value): Likewise.
5632 (h8300h_return_value): Likewise.
5633 * hppa-tdep.c (hppa32_return_value): Likewise.
5634 (hppa64_return_value): Likewise.
5635 * i386-tdep.c (i386_return_value): Likewise.
5636 * ia64-tdep.c (ia64_return_value): Likewise.
5637 * iq2000-tdep.c (iq2000_return_value): Likewise.
5638 * lm32-tdep.c (lm32_return_value): Likewise.
5639 * m32c-tdep.c (m32c_return_value): Likewise.
5640 * m32r-tdep.c (m32r_return_value): Likewise.
5641 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5642 * m68k-tdep.c (m68k_return_value): Likewise.
5643 (m68k_svr4_return_value): Likewise.
5644 * m88k-tdep.c (m88k_return_value): Likewise.
5645 * mep-tdep.c (mep_return_value): Likewise.
5646 * microblaze-tdep.c (microblaze_return_value): Likewise.
5647 * mn10300-tdep.c (mn10300_return_value): Likewise.
5648 * moxie-tdep.c (moxie_return_value): Likewise.
5649 * mt-tdep.c (mt_return_value): Likewise.
5650 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5651 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5652 (ppc_sysv_abi_broken_return_value): Likewise.
5653 (ppc64_sysv_abi_return_value): Likewise.
5654 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5655 * rl78-tdep.c (rl78_return_value): Likewise.
5656 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5657 * rx-tdep.c (rx_return_value): Likewise.
5658 * s390-tdep.c (s390_return_value): Likewise.
5659 * score-tdep.c (score_return_value): Likewise.
5660 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5661 (sh_return_value_fpu): Likewise.
5662 * sh64-tdep.c (sh64_return_value): Likewise.
5663 * sparc-tdep.c (sparc32_return_value): Likewise.
5664 * sparc64-tdep.c (sparc64_return_value): Likewise.
5665 * spu-tdep.c (spu_return_value): Likewise.
5666 * tic6x-tdep.c (tic6x_return_value): Likewise.
5667 * v850-tdep.c (v850_return_value): Likewise.
5668 * vax-tdep.c (vax_return_value): Likewise.
5669 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5670 * xtensa-tdep.c (xtensa_return_value): Likewise.
5671 * gdbarch.c: Regenerate.
5672 * gdbarch.h: Regenerate.
5673
29ca12b3
TT
56742012-05-15 Tom Tromey <tromey@redhat.com>
5675
5676 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5677
588ae58c
JB
56782012-05-15 Joel Brobecker <brobecker@adacore.com>
5679
5680 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5681 of command in two error message.
5682
855a6e68
JB
56832012-05-15 Joel Brobecker <brobecker@adacore.com>
5684
5685 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5686
d634f2de
JB
56872012-05-15 Joel Brobecker <brobecker@adacore.com>
5688
5689 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5690
9cc815f5
JK
56912012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5692
5693 * NEWS (show auto-load scripts-directory): Add forgotten command.
5694
6a609e58
JK
56952012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5696
5697 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5698 parameters.
5699
ac1438b5
L
57002012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5701
5702 * amd64-tdep.c: Include features/i386/x32.c and
5703 features/i386/x32-avx.c.
5704 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5705 initialize_tdesc_x32_avx.
5706
e7e0cddf
SS
57072012-05-14 Stan Shebs <stan@codesourcery.com>
5708
5709 Add dynamic printf.
5710 * breakpoint.h (enum bptype): New type bp_dprintf.
5711 (struct breakpoint): New field extra_string.
5712 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5713 (create_breakpoint): Add extra_string arg.
5714 * breakpoint.c (dprintf_breakpoint_ops): New.
5715 (is_breakpoint): Add bp_dprintf.
5716 (bpstat_what): Add dprintf case.
5717 (bptype_string): Ditto.
5718 (print_one_breakpoint_location): Ditto.
5719 (init_bp_location): Ditto.
5720 (bkpt_print_mention): Ditto.
5721 (dprintf_style_enums): New array.
5722 (dprintf_style): New global.
5723 (dprintf_function): New global.
5724 (dprintf_channel): New global.
5725 (update_dprintf_command_list): New function.
5726 (update_dprintf_commands): New function.
5727 (init_breakpoint_sal): Add extra_string argument, handle it.
5728 (create_breakpoint_sal): Add extra_string argument.
5729 (create_breakpoints_sal): Add extra_string argument, update callers.
5730 (find_condition_and_thread): Add extra argument.
5731 (create_breakpoint): Add extra_string argument, record it.
5732 (dprintf_command): New function.
5733 (break_command_1): Add arg to create_breakpoint call.
5734 (handle_gnu_v3_exceptions): Ditto.
5735 (trace_command): Ditto.
5736 (ftrace_command): Ditto.
5737 (strace_command): Ditto.
5738 (bkpt_print_mention): Add dprintf case.
5739 (create_breakpoint_sal_default): Add extra_string argument.
5740 (_initialize_breakpoint): Add new commands.
5741 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5742 * python/py-breakpoint.c (bppy_init): Ditto.
5743 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5744
8ae38c14
MR
57452012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5746
5747 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5748
9f676e66
SCR
57492012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5750
5751 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5752 unsigned long long.
5753
7efc75aa
SCR
57542012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5755
5756 Add a new function gdb.find_pc_line to the Python API.
5757 * NEWS (Python Scripting): Add entry about the new function.
5758 * python/python.c (gdbpy_find_pc_line): New function which
5759 implements gdb.find_pc_line.
5760 (GdbMethods): Add entry for the new function.
5761
70af3797
PA
57622012-05-12 Pedro Alves <palves@redhat.com>
5763
5764 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5765 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5766
06da564e
EZ
57672012-05-12 Eli Zaretskii <eliz@gnu.org>
5768
5769 * inferior.c: Include completer.h
5770 (initialize_inferiors): Set completer of add-inferior to
5771 filename_completer.
5772
0288cee2
L
57732012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5774
5775 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5776 gdbarch_ptr_bit for x32 core dump.
5777
f6537a2c
L
57782012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5779
5780 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5781 and features/i386/x32-avx-linux.c.
5782
85d4a676
SS
57832012-05-11 Stan Shebs <stan@codesourcery.com>
5784 Kwok Cheung Yeung <kcy@codesourcery.com>
5785
5786 * NEWS: Describe new info os commands.
5787 * common/linux-osdata.c (PID_T, TIME_T): Define.
5788 (MAX_PID_T_STRLEN): New.
5789 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5790 MAX_PID_T_STRLEN.
5791 (command_from_pid): Add comment. Change to use PID_T.
5792 (commandline_from_pid): Change to use PID_T.
5793 (user_from_pid): Add comment.
5794 (get_process_owner): Add comment. Change to use PID_T and
5795 MAX_PID_T_STRLEN.
5796 (get_number_of_cpu_cores): Add comment.
5797 (get_cores_used_by_process): Add comment. Change to use PID_T and
5798 MAX_PID_T_STRLEN.
5799 (linux_xfer_osdata_processes): Change to use PID_T and
5800 MAX_PID_T_STRLEN.
5801 (compare_processes): New function.
5802 (linux_xfer_osdata_processgroups): New function.
5803 (linux_xfer_osdata_threads): Change to use PID_T.
5804 (linux_xfer_osdata_fds): New function.
5805 (format_socket_state, print_sockets): New functions.
5806 (union socket_addr): New union.
5807 (linux_xfer_osdata_isockets): New function.
5808 (time_from_time_t, group_from_gid): New functions.
5809 (linux_xfer_osdata_shm): New function.
5810 (linux_xfer_osdata_sem): New function.
5811 (linux_xfer_osdata_msg): New function.
5812 (linux_xfer_osdata_modules): New function.
5813 (osdata_table): Add new entries.
5814 * common/buffer.c (buffer_xml_printf): Add support for long and
5815 long long format specifiers.
5816
f24afd6d
L
58172012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5818
5819 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5820 (tdesc_x32_avx_linux): Likewise.
5821
7349ff92
JK
58222012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 Implement multi-component --with-auto-load-dir.
5825 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5826 entries.
5827 (--with-auto-load-safe-path): Update the default value description.
5828 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5829 New.
5830 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5831 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5832 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5833 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5834 "set auto-load scripts-directory".
5835 * config.in: Regenerate.
5836 * configure: Regenerate.
5837 * configure.ac (--with-auto-load-dir): New configure option.
5838 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5839
6dea1fbd
JK
58402012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5841
5842 Provide $ddir substitution for --with-auto-load-safe-path.
5843 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5844 entries.
5845 * auto-load.c: Include observer.h.
5846 (auto_load_safe_path_vec_update): Call substitute_path_component for
5847 each component. New variable ddir_subst.
5848 (auto_load_gdb_datadir_changed): New function.
5849 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5850 AUTO_LOAD_SAFE_PATH. New comment.
5851 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5852 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5853 * config.in: Regenerate.
5854 * configure: Regenerate.
5855 * configure.ac (--auto-load-safe-path): Rename
5856 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5857 GDB_DATADIR/auto-load.
5858 * defs.h (substitute_path_component): New declaration.
5859 * top.c: Include observer.h.
5860 (set_gdb_datadir): New function.
5861 (init_main): Install it for "set data-directory".
5862 * utils.c (substitute_path_component): New function.
5863
b09aca3a
JK
58642012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5865
5866 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5867 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5868 DEBUG_FILE_DIRECTORY. Handle multiple components of
5869 DEBUG_FILE_DIRECTORY.
5870
95554aad
TT
58712012-05-10 Tom Tromey <tromey@redhat.com>
5872
5873 * dwarf2read.c (recursively_write_psymbols): New function.
5874 (write_psymtabs_to_index): Use it.
5875
5876 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5877 field.
5878 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5879 (load_partial_comp_unit): Update.
5880 (queue_comp_unit): Add argument 'pretend_language'.
5881 (process_queue): Update.
5882 (psymtab_to_symtab_1): Skip dependencies that have a user.
5883 (load_partial_comp_unit_reader): Give meaning to the 'data'
5884 argument.
5885 (load_full_comp_unit): Add 'pretend_language' argument.
5886 (process_full_comp_unit): Add 'pretend_language' argument. Set
5887 language on CU.
5888 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5889 Update.
5890 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5891 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5892 Update.
5893 (prepare_one_comp_unit): Add 'pretend_language' argument.
5894
5895 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5896 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5897 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5898 (dw2_do_instantiate_symtab): Check whether symtab was read in
5899 before queueing.
5900 (dw2_instantiate_symtab): Add assertion. Call
5901 process_cu_includes.
5902 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5903 (partial_symtab_p): New typedef.
5904 (set_partial_user): New function.
5905 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5906 (scan_partial_symbols): Add imported CU to imported_symtabs.
5907 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5908 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5909 (get_symtab, recursively_compute_inclusions)
5910 (compute_symtab_includes, process_cu_includes)
5911 (process_imported_unit_die): New functions.
5912 (process_die) <DW_TAG_imported_unit>: New case.
5913 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5914
5915 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5916 comment.
5917 (struct partial_die_info) <locdesc>: Remove.
5918 <d>: New field.
5919 (process_psymtab_comp_unit): Add 'read_partial' argument.
5920 Update.
5921 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5922 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5923 (add_partial_symbol): Update.
5924 (process_die): Handle DW_TAG_partial_unit.
5925 (read_file_scope): Update comment.
5926 (load_partial_dies): Handle DW_TAG_imported_unit.
5927 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5928 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5929
e871fbb9
TT
59302012-05-10 Tom Tromey <tromey@redhat.com>
5931
5932 * cc-with-dwz.sh: New file.
5933
b5b04b5b
TT
59342012-05-10 Tom Tromey <tromey@redhat.com>
5935
5936 * symtab.h (struct symtab) <includes, user>: New fields.
5937 * block.h (struct block_iterator) <d, idx, which>: New fields.
5938 * block.c (initialize_block_iterator, find_iterator_symtab)
5939 (block_iterator_step, block_iter_name_step)
5940 (block_iter_match_step): New functions.
5941 (block_iterator_first, block_iterator_next)
5942 (block_iter_name_first, block_iter_name_next)
5943 (block_iter_match_first, block_iter_match_next): Rewrite.
5944 (get_block_symtab): New function.
5945
84a146c9
TT
59462012-05-10 Tom Tromey <tromey@redhat.com>
5947
5948 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5949 set_block_symtab.
5950 * jit.c (finalize_symtab): Use allocate_global_block,
5951 set_block_symtab.
5952 * buildsym.c (finish_block_internal): New function, from old
5953 finish_block.
5954 (finish_block): Rewrite.
5955 (end_symtab): Use finish_block_internal, set_block_symtab.
5956 * block.h (struct global_block): New.
5957 (allocate_global_block, set_block_symtab): Declare.
5958 * block.c (allocate_global_block, set_block_symtab): New
5959 functions.
5960
9439a077
TT
59612012-05-10 Tom Tromey <tromey@redhat.com>
5962
5963 * psymtab.c (partial_map_expand_apply): Add assertion.
5964 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5965 (psymtab_to_symtab): Find unshared psymtab.
5966 (dump_psymtab): Print including psymtabs.
5967 (recursively_search_psymtabs): New function.
5968 (expand_symtabs_matching_via_partial): Use it.
5969 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5970 fields.
5971 (enum psymtab_search_status): New.
5972
8157b174
TT
59732012-05-10 Tom Tromey <tromey@redhat.com>
5974
5975 * tracepoint.c (scope_info): Update.
5976 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5977 (find_pc_sect_symtab, search_symbols)
5978 (default_make_symbol_completion_list_break_on)
5979 (make_file_symbol_completion_list): Update.
5980 * symmisc.c (dump_symtab_1): Update.
5981 * stack.c (print_frame_args, iterate_over_block_locals)
5982 (print_frame_labels, iterate_over_block_arg_vars): Update.
5983 * python/py-block.c (block_object) <dict>: Remove.
5984 <block>: New field.
5985 <iter>: Change type.
5986 (blpy_iter): Update.
5987 (blpy_block_syms_iternext): Update.
5988 * psymtab.c (map_block): Use block iterators.
5989 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5990 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5991 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5992 * infrun.c (check_exception_resume): Update.
5993 * cp-support.c (make_symbol_overload_list_block): Update.
5994 * coffread.c (patch_opaque_types): Update.
5995 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5996 * block.h (struct block_iterator): New.
5997 (block_iterator_first, block_iterator_next, block_iter_name_first)
5998 (block_iter_name_next, block_iter_match_first)
5999 (block_iter_match_next): Declare.
6000 (ALL_BLOCK_SYMBOLS): Redefine.
6001 * block.c (block_iterator_first, block_iterator_next)
6002 (block_iter_name_first, block_iter_name_next)
6003 (block_iter_match_first, block_iter_match_next): New functions.
6004 * ada-lang.c (ada_add_block_symbols)
6005 (ada_make_symbol_completion_list): Use block iterator.
6006
a2ca7a52
TT
60072012-05-10 Tom Tromey <tromey@redhat.com>
6008
6009 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6010 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6011 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6012 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6013 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6014 Update.
6015
64ea88dc
JB
60162012-05-10 Joel Brobecker <brobecker@adacore.com>
6017
6018 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6019 print-file-var-lib2.c, print-file-var-main.c and
6020 print-file-var.exp (located in gdb/testsuite/gdb.base).
6021
99a547d6
JB
60222012-05-10 Joel Brobecker <brobecker@adacore.com>
6023
6024 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6025 try locating the symbol in the symbol's own objfile first, before
6026 extending the search to all objfiles.
6027 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6028 out of lookup_symbol_aux_symtabs.
6029 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6030 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6031 Do not search EXCLUDE_OBJFILE.
6032 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6033 (lookup_symbol_global): Search for matches in the block's objfile
6034 first, before searching all other objfiles.
6035
0ece64fd
TG
60362012-05-10 Tristan Gingold <gingold@adacore.com>
6037
6038 * printcmd.c (set_command): Add pre/post inc/dec.
6039
3d16a105
FCE
60402012-05-09 Frank Ch. Eigler <fche@redhat.com>
6041
6042 * gdb.1: Document -ex option.
6043
2efbc0f7
JB
60442012-05-09 Joel Brobecker <brobecker@adacore.com>
6045
6046 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6047 * inferior.h (AT_SYMBOL): Delete.
6048
2c76a0c7
JB
60492012-05-09 Joel Brobecker <brobecker@adacore.com>
6050
6051 * mips-tdep.c (mips_push_dummy_code): New function.
6052 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6053 ON_STACK and install mips_push_dummy_code as our gdbarch
6054 push_dummy_code routine.
6055
9401a810
PA
60562012-05-09 Pedro Alves <palves@redhat.com>
6057
6058 * target.c (set_maintenance_target_async_permitted): Rename to ...
6059 (set_target_async_command): ... this.
6060 (show_maintenance_target_async_permitted): Rename to ...
6061 (show_target_async_command): ... this.
6062 (initialize_targets): Adjust.
6063
3929b321
DE
60642012-05-08 Doug Evans <dje@google.com>
6065
6066 * go-exp.y (classify_name): Add missing assignment of fields of
6067 yylval.ssym.
6068
c41535fd
EZ
60692012-05-08 Eli Zaretskii <eliz@gnu.org>
6070
6071 Display the ">" prompt in interactive mode while reading canned
6072 commands, even when the current interpreter is MI.
6073
6074 * interps.c (interp_set_temp): New function.
6075
6076 * interps.h (interp_set_temp): Add prototype.
6077
6078 * cli/cli-script.c (restore_interp): New cleanup function.
6079 (read_command_lines): Temporarily override the current interpreter
6080 with CLI and arrange for restoring the original one.
6081
c0749c4d
JS
60822012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6083
6084 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6085
d7333987
SDJ
60862012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6087
6088 * probe.c (parse_probes): Move conditional to check for
6089 debuginfo files from here...
6090 * stap-probe.c (stap_get_probes): ... to here.
6091
649e6d92
MK
60922012-05-07 Mark Kettenis <kettenis@gnu.org>
6093 H.J. Lu <hongjiu.lu@intel.com>
6094
6095 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6096 `movl %esp, %ebp' for the X32 ABI.
6097
f39c6ffd
TT
60982012-05-07 Tom Tromey <tromey@redhat.com>
6099
6100 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6101 get_DW_TAG_name.
6102 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6103 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6104 (dwarf_stack_op_name): Remove.
6105 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6106 (decode_locdesc): Use get_DW_OP_name.
6107 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6108 (dwarf2_compile_expr_to_ax): Likewise.
6109 (disassemble_dwarf_expression): Likewise.
6110 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6111
1e1f6591
CLT
61122012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6113
6114 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6115 (sh_linux_sigtramp_cache): New function.
6116 (sh_linux_sigreturn_init): New function.
6117 (sh_linux_rt_sigreturn_init): New function.
6118 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6119 patterns.
6120 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6121 syscall codes.
6122 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6123 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6124 (sh_linux_init_abi): Add init calls to register new tramp_frame
6125 definitions under 32-bit SH, update comments.
6126
545c08b4
PA
61272012-05-07 Pedro Alves <palves@redhat.com>
6128
daac165e
PA
6129 PR gdb/10952
6130
545c08b4
PA
6131 * amd64-linux-tdep.c: Include glibc-tdep.h.
6132 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6133 gdbarch_skip_solib_resolver callback.
6134
af2c1515
JK
61352012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6136
6137 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6138 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6139 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6140 (add_auto_load_safe_path): Change the error message.
6141 (_initialize_auto_load): Change the "safe-path" help text.
6142 * configure: Regenerate
6143 * configure.ac (--without-auto-load-safe-path): Set
6144 WITH_AUTO_LOAD_SAFE_PATH to /.
6145
1067f998
SDJ
61462012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6147
6148 * stap-probe.h: Do not include unecessary `probe.h'.
6149
45dfa85a
AM
61502012-05-05 Alan Modra <amodra@gmail.com>
6151
6152 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6153 bfd_und_section_ptr.
6154 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6155 and bfd_com_section_ptr.
6156
cf093994
JB
61572012-05-04 Joel Brobecker <brobecker@adacore.com>
6158
762ebb75 6159 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6160
d40dc7a8
JB
61612012-05-04 Joel Brobecker <brobecker@adacore.com>
6162
6163 * windows-nat.h (segment_register_p_ftype): New typedef.
6164 (windows_set_segment_register_p): Add declaration.
6165 * windows-nat.c (segment_register_p): New static global.
6166 (windows_set_segment_register_p): New function.
6167 (do_windows_fetch_inferior_registers): Add special handling
6168 for segment registers.
6169 * amd64-windows-nat.c: #include "amd64-tdep.h".
6170 (amd64_windows_segment_register_p): New function.
6171 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6172 * i386-windows-nat.c: #include "i386-tdep.h".
6173 (i386_windows_segment_register_p): New function.
6174 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6175
52b3699b
TG
61762012-05-04 Tristan Gingold <gingold@adacore.com>
6177
6178 * printcmd.c (set_command): Emit a warning if the expression is not
6179 an assignment.
6180
94c74239
JB
61812012-05-03 Joel Brobecker <brobecker@adacore.com>
6182
6183 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6184 Make static.
6185
fcf57f19
SDJ
61862012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6187
6188 * stap-probe.c (stap_is_operator): Change declaration.
6189 (stap_get_opcode): Change return value.
6190 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6191 `stap_parse_argument_1'.
6192
27d2932e
PA
61932012-05-03 Pedro Alves <pedro@codesourcery.com>
6194
6195 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6196 debug log.
6197
a20ee7a4
SCR
61982012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6199
6200 Add two new methods global_block and static_block to gdb.Symtab
6201 objects.
6202 * NEWS (Python scripting): Add entry about the new methods.
6203 * python/py-symtab.c (stpy_global_block): New function which
6204 implements the gdb.Symtab.global_block() method.
6205 (stpy_static_block): New function which implements the
6206 gdb.Symtab.static_block() method.
6207 (symtab_object_methods): Add entries for the two new methods.
6208
943cb756
DE
62092012-05-03 Doug Evans <dje@google.com>
6210
6211 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6212 files.
6213
f4644a3f
YQ
62142012-05-03 Yao Qi <yao@codesourcery.com>
6215
6216 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6217 space.
6218 (i386_process_record): Ditto.
6219
ef61f180
JB
62202012-05-02 Joel Brobecker <brobecker@adacore.com>
6221
6222 * infcall.c (unwind_on_signal_p): Make static.
6223
02f1df11
JB
62242012-05-02 Joel Brobecker <brobecker@adacore.com>
6225
6226 * sol-thread.c (solaris_pid_to_str): Make static.
6227 (_initialize_sol_thread): Add prototype.
6228
39023530
JB
62292012-05-02 Joel Brobecker <brobecker@adacore.com>
6230
6231 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6232
c6b0c501
CF
62332012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6234
6235 * MAINTAINERS: Remove myself.
6236
1ef71717
JK
62372012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6238
6239 Fix --without-auto-load-safe-path for MS-Windows host platform.
6240 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6241
b31b86a7
EZ
62422012-05-02 Eli Zaretskii <eliz@gnu.org>
6243
6244 * gdb_curses.h: Undefine KEY_EVENT before including curses
6245 headers. Move "#undef MOUSE_MOVED" before any curses header
6246 inclusion.
6247
777532fc
SDJ
62482012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6249
6250 * features/i386/i386-mmx-linux.c: Regenerate.
6251 * features/rs6000/powerpc-32.c: Likewise.
6252 * features/rs6000/powerpc-32l.c: Likewise.
6253 * features/rs6000/powerpc-403.c: Likewise.
6254 * features/rs6000/powerpc-403gc.c: Likewise.
6255 * features/rs6000/powerpc-405.c: Likewise.
6256 * features/rs6000/powerpc-505.c: Likewise.
6257 * features/rs6000/powerpc-601.c: Likewise.
6258 * features/rs6000/powerpc-602.c: Likewise.
6259 * features/rs6000/powerpc-603.c: Likewise.
6260 * features/rs6000/powerpc-604.c: Likewise.
6261 * features/rs6000/powerpc-64.c: Likewise.
6262 * features/rs6000/powerpc-64l.c: Likewise.
6263 * features/rs6000/powerpc-750.c: Likewise.
6264 * features/rs6000/powerpc-860.c: Likewise.
6265 * features/rs6000/powerpc-e500.c: Likewise.
6266 * features/rs6000/powerpc-e500l.c: Likewise.
6267 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6268 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6269 * features/rs6000/rs6000.c: Likewise.
6270
d71871bc
SDJ
62712012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6272
6273 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6274 variable.
6275 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6276 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6277 (stap_parse_argument) <e>: Likewise.
6278 (handle_stap_probe) <byte_order>: Likewise.
6279
fd820528
DE
62802012-04-30 Doug Evans <dje@google.com>
6281
6282 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6283 init_and_read_dies_worker. All callers updated.
6284 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6285 replaced with init_cutu_and_read_dies.
6286 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6287 (find_partial_die): Remove FIXME. Don't free current CU.
6288
ec3f619d 62892012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6290
6291 * contrib: New directory.
6292 * contrib/test_pubnames_and_indexes.py: New file.
6293
fceca515
DE
62942012-04-30 Doug Evans <dje@google.com>
6295
6296 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6297 All callers updated.
6298 (init_cu_die_reader): Verify the section is non-empty.
6299 (dwarf_decode_line_header): Don't dereference section->asection
6300 until we know the section is present.
6301
311fe7e1
SDJ
63022012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6303
6304 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6305 probes.
6306
5977971a
YQ
63072012-04-29 Yao Qi <yao@codesourcery.com>
6308
6309 * gdb-code-style.el: New hook gdb-markup-hook
6310 and gdb-comment-hook.
6311
dee91e82
DE
63122012-04-28 Doug Evans <dje@google.com>
6313
3019eac3
DE
6314 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6315 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6316 objfile->obfd.
6317 * symfile.h (dwarf2_debug_sections): New member addr.
6318 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6319 (ctx_no_get_addr_index): New function.
6320 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6321 (ctx_no_get_addr_index): Declare.
6322 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6323 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6324 (dwarf_expr_ctx_funcs): Update.
6325 (needs_get_addr_index): New function.
6326 (needs_frame_ctx_funcs): Update.
6327 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6328 * dwarf2read.c: #include "gdbcore.h".
6329 (dwarf2_per_objfile): New members addr, dwo_files.
6330 (dwarf2_elf_names): Add entry for addr.
6331 (struct dwo_section_names): New type.
6332 (dwo_section_names): New static global.
6333 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6334 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6335 old debug_types_section member updated to use this.
6336 Rename member debug_types_section to info_or_types_section,
6337 all uses updated.
6338 (signatured_type): Rename member type_offset to type_offset_in_tu,
6339 all uses updated. New member type_offset_in_section.
6340 (struct dwo_sections): New type.
6341 (struct dwo_unit): New type.
6342 (struct dwo_file): New type.
6343 (die_reader_specs): New member dwo_file.
6344 (dwarf2_locate_sections): Watch for .debug_addr.
6345 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6346 (dwarf2_read_section): Get bfd of section from bfd's asection,
6347 instead of objfile.
6348 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6349 (create_signatured_type_table_from_index): Initialize
6350 sig_type->info_or_types_section.
6351 (dw2_get_file_names): Statement lists for type units with DWO files
6352 live in the DWO file.
6353 (create_debug_types_hash_table): New function.
6354 (create_all_type_units): Rewrite.
6355 (init_cu_die_reader): New arg dwo_file, all callers updated.
6356 (init_and_read_dies_worker): Get section from
6357 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6358 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6359 continue reading the CU/TU from there.
6360 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6361 updated. Get section from this_cu->info_or_types_section.
6362 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6363 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6364 DW_FORM_GNU_str_index.
6365 (hash_dwo_file, eq_dwo_file): New functions.
6366 (allocate_dwo_file_hash_table): New function.
6367 (hash_dwo_unit, eq_dwo_unit): New functions.
6368 (allocate_dwo_unit_table): New function.
6369 (dwarf2_locate_dwo_sections): New function.
6370 (struct create_dwo_info_table_data): New type.
6371 (create_debug_info_hash_table_reader): New function.
6372 (create_debug_info_hash_table): New function.
6373 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6374 (lookup_dwo_file): New function.
6375 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6376 (free_dwo_file, free_dwo_file_cleanup): New functions.
6377 (free_dwo_file_from_slot, free_dwo_files): New functions.
6378 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6379 (dwarf2_record_block_ranges): Ditto.
6380 (read_partial_die): Ditto.
6381 (process_enumeration_scope): Update to use type_offset_in_section.
6382 (read_full_die_1): New function.
6383 (read_full_die): Rewrite.
6384 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6385 DW_FORM_GNU_str_index.
6386 (read_addr_index_1, read_addr_index): New functions.
6387 (read_addr_index_from_leb128): New function.
6388 (struct dwarf2_read_addr_index_data): New type.
6389 (dwarf2_read_addr_index_reader): New function.
6390 (dwarf2_read_addr_index): New function.
6391 (read_str_index): New function.
6392 (leb128_size): New function.
6393 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6394 If processing a type unit from a DWO file, get the line section
6395 from the DWO file.
6396 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6397 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6398 DW_FORM_GNU_str_index.
6399 (lookup_die_type): Check whether section offset of type's die is
6400 known before looking it up. Remove assert. Condition can
6401 legimately happen for inter-cu type references.
6402 (dwarf_attr_name): Handle Fission attributes.
6403 (dwarf_form_name): Handle Fission forms.
6404 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6405 DW_FORM_GNU_str_index.
6406 (follow_die_sig): Update to use type_offset_in_section.
6407 (decode_locdesc): New case DW_OP_GNU_addr_index.
6408 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6409 DW_FORM_GNU_str_index.
6410 (cu_debug_loc_section): New function.
6411 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6412 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6413 Free DWO files if present.
6414 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6415
dee91e82
DE
6416 Refactor DIE reading.
6417 * dwarf2read.c (dwarf2_per_objfile): Replace members
6418 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6419 (die_reader_specs): New member "die_section". Temporarily make
6420 member "buffer" non-const, pending constifying all info_ptr uses.
6421 (die_reader_func_ftype): New typedef.
6422 (dw2_get_file_names_reader): New function.
6423 (dw2_get_file_names): Rewrite.
6424 (read_and_check_type_unit_head): Rename arg type_offset to
6425 type_offset_in_tu.
6426 (create_all_type_units): Improve debugging message.
6427 Improve dummy type unit check.
6428 (init_cu_die_reader): New arg "section". All callers updated.
6429 (init_and_read_dies_worker): New function.
6430 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6431 (init_cutu_and_read_dies_no_follow): New function.
6432 (init_cutu_and_read_dies_simple): New function.
6433 (process_psymtab_comp_unit_reader): New function.
6434 (process_psymtab_comp_unit): Delete args section,
6435 is_debug_types_section. Rewrite. All callers updated.
6436 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6437 All callers updated. Rewrite.
6438 (load_partial_comp_unit_reader): New function.
6439 (load_partial_comp_unit): Rewrite.
6440 (skip_children): New arg reader. Delete args buffer, cu.
6441 All callers updated.
6442 (skip_one_die): New arg reader. Delete args buffer, cu.
6443 All callers updated.
6444 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6445 All callers updated.
6446 (load_full_comp_unit_reader): New function.
6447 (load_full_comp_unit): Rewrite.
6448 (read_comp_unit): Delete.
6449 (read_die_and_children_1): Delete, contents moved ...
6450 (read_die_and_children): ... here.
6451 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6452 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6453 All callers updated.
6454 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6455 All callers updated.
6456 (find_partial_die): Rewrite load_all_dies support.
6457 (read_attribute_value): New arg reader. Delete args abfd, cu.
6458 All callers updated.
6459 (read_attribute): New arg reader. Delete args abfd, cu.
6460 All callers updated.
6461 (load_full_type_unit): Add assert.
6462 (read_signatured_type_reader): New function.
6463 (read_signatured_type): Rewrite.
6464 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6465 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6466 All callers updated. Set per_cu->cu = NULL after freeing it.
6467 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6468 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6469 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6470 (set_die_type): Update.
6471 (get_die_type_at_offset): Update.
6472 (read_file_scope): Call prepare_one_comp_unit.
6473 (read_type_unit_scope): Ditto.
6474 (prepare_one_comp_unit): Set producer if present.
6475
72d59e0d
SDJ
64762012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6477
6478 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6479 gettext function on `error'.
6480
0fefef59
DE
64812012-04-27 Doug Evans <dje@google.com>
6482
6483 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6484 is empty.
6485
28106bc2
SDJ
64862012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6487 Tom Tromey <tromey@redhat.com>
6488
6489 * breakpoint.c (struct breakpoint_objfile_data)
6490 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6491 <exception_probes>: New fields.
6492 (free_breakpoint_probes): New function.
6493 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6494 `_Unwind_DebugHook'.
6495 (create_exception_master_breakpoint): Likewise.
6496 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6497 * infrun.c: Including necessary header files for handling SystemTap
6498 probes.
6499 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6500 via SystemTap probes.
6501 (check_exception_resume): Remove `func' argument. Handle exception
6502 unwinding breakpoint set via a SystemTap probe.
6503 (insert_exception_resume_from_probe): New function.
6504
55aa24fb
SDJ
65052012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6506 Tom Tromey <tromey@redhat.com>
6507 Jan Kratochvil <jan.kratochvil@redhat.com>
6508
6509 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6510 (COMMON_OBS): Likewise.
6511 (HFILES_NO_SRCDIR): Add `probe'.
6512 * NEWS: Mention support for static and SystemTap probes.
6513 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6514 SystemTap probes' arguments parser.
6515 * arm-linux-tdep.c: Including headers needed to perform the parsing
6516 of SystemTap probes' arguments.
6517 (arm_stap_is_single_operand): New function.
6518 (arm_stap_parse_special_token): Likewise.
6519 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6520 probes' arguments parser.
6521 * ax-gdb.c (require_rvalue): Removing static declaration.
6522 (gen_expr): Likewise.
6523 * ax-gdb.h (gen_expr): Declaring function.
6524 (require_rvalue): Likewise.
6525 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6526 (bkpt_probe_breakpoint_ops): New variable.
6527 (momentary_breakpoint_from_master): Set the `probe' value.
6528 (add_location_to_breakpoint): Likewise.
6529 (break_command_1): Using proper breakpoint_ops according to the
6530 argument passed by the user in the command line.
6531 (bkpt_probe_insert_location): New function.
6532 (bkpt_probe_remove_location): Likewise.
6533 (bkpt_probe_create_sals_from_address): Likewise.
6534 (bkpt_probe_decode_linespec): Likewise.
6535 (tracepoint_probe_create_sals_from_address): Likewise.
6536 (tracepoint_probe_decode_linespec): Likewise.
6537 (tracepoint_probe_breakpoint_ops): New variable.
6538 (trace_command): Using proper breakpoint_ops according to the
6539 argument passed by the user in the command line.
6540 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6541 static probes on breakpoints and tracepoints.
6542 * breakpoint.h (struct bp_location) <probe>: New field.
6543 * cli-utils.c (skip_spaces_const): New function.
6544 (extract_arg): Likewise.
6545 * cli-utils.h (skip_spaces_const): Likewise.
6546 (extract_arg): Likewise.
6547 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6548 * configure.ac: Append `stap-probe.o' to be generated when ELF
6549 support is present.
6550 * configure: Regenerate.
6551 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6552 * elfread.c: Include `probe.h' and `arch-utils.h'.
6553 (probe_key): New variable.
6554 (elf_get_probes): New function.
6555 (elf_get_probe_argument_count): Likewise.
6556 (elf_evaluate_probe_argument): Likewise.
6557 (elf_compile_to_ax): Likewise.
6558 (elf_symfile_relocate_probe): Likewise.
6559 (stap_probe_key_free): Likewise.
6560 (elf_probe_fns): New variable.
6561 (elf_sym_fns): Add `sym_probe_fns' value.
6562 (elf_sym_fns_lazy_psyms): Likewise.
6563 (elf_sym_fns_gdb_index): Likewise.
6564 (_initialize_elfread): Initialize objfile cache for static
6565 probes.
6566 * gdb_vecs.h (struct probe): New forward declaration.
6567 (probe_p): New VEC declaration.
6568 * gdbarch.c: Regenerate.
6569 * gdbarch.h: Regenerate.
6570 * gdbarch.sh (stap_integer_prefix): New variable.
6571 (stap_integer_suffix): Likewise.
6572 (stap_register_prefix): Likewise.
6573 (stap_register_suffix): Likewise.
6574 (stap_register_indirection_prefix): Likewise.
6575 (stap_register_indirection_suffix): Likewise.
6576 (stap_gdb_register_prefix): Likewise.
6577 (stap_gdb_register_suffix): Likewise.
6578 (stap_is_single_operand): New function.
6579 (stap_parse_special_token): Likewise.
6580 (struct stap_parse_info): Forward declaration.
6581 * i386-tdep.c: Including headers needed to perform the parsing
6582 of SystemTap probes' arguments.
6583 (i386_stap_is_single_operand): New function.
6584 (i386_stap_parse_special_token): Likewise.
6585 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6586 probes' arguments parser.
6587 * i386-tdep.h (i386_stap_is_single_operand): New function.
6588 (i386_stap_parse_special_token): Likewise.
6589 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6590 * mipsread.c (ecoff_sym_fns): Likewise.
6591 * objfiles.c (objfile_relocate1): Support relocation for static
6592 probes.
6593 * parse.c (prefixify_expression): Remove static declaration.
6594 (initialize_expout): Likewise.
6595 (reallocate_expout): Likewise.
6596 * parser-defs.h (initialize_expout): Declare function.
6597 (reallocate_expout): Likewise.
6598 (prefixify_expression): Likewise.
6599 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6600 of SystemTap probes' arguments.
6601 (ppc_stap_is_single_operand): New function.
6602 (ppc_stap_parse_special_token): Likewise.
6603 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6604 probes' arguments parser.
6605 * probe.c: New file, for generic statically defined probe support.
6606 * probe.h: Likewise.
6607 * s390-tdep.c: Including headers needed to perform the parsing of
6608 SystemTap probes' arguments.
6609 (s390_stap_is_single_operand): New function.
6610 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6611 probes' arguments parser.
6612 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6613 * stap-probe.c: New file, for SystemTap probe support.
6614 * stap-probe.h: Likewise.
6615 * symfile.h: Include `gdb_vecs.h'.
6616 (struct sym_probe_fns): New struct.
6617 (struct sym_fns) <sym_probe_fns>: New field.
6618 * symtab.c (init_sal): Initialize `probe' field.
6619 * symtab.h (struct probe): Forward declaration.
6620 (struct symtab_and_line) <probe>: New field.
6621 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6622 locations.
6623 (stop_tracing): Likewise.
6624 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6625
22d2b532
SDJ
66262012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6627 Tom Tromey <tromey@redhat.com>
6628
6629 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6630 and to compile agent expressions.
6631 * infrun.c (siginfo_make_value): New argument `ignore'.
6632 (siginfo_funcs): New struct.
6633 (_initialize_infrun): New argument when calling
6634 `create_internalvar_type_lazy'.
6635 * thread.c (thread_id_make_value): New argument `ignore'.
6636 (thread_funcs): New struct.
6637 (_initialize_thread): New argument when calling
6638 `create_internalvar_type_lazy'.
6639 * tracepoint.c (sdata_make_value): New argument `ignore'.
6640 (sdata_funcs): New struct.
6641 (_initialize_tracepoint): New argument when calling
6642 `create_internalvar_type_lazy'.
6643 * value.c (make_value): New struct.
6644 (create_internalvar_type_lazy): New argument `data'.
6645 (compile_internalvar_to_ax): New function.
6646 (value_of_internalvar): Properly handling `make_value' case.
6647 (clear_internalvar): Likewise.
6648 (show_convenience): Adding `TRY_CATCH' block.
6649 * value.h (internalvar_make_value): Delete, replace by...
6650 (struct internalvar_funcs): ... this.
6651 (create_internalvar_type_lazy) <fun>: Delete argument.
6652 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6653 (compile_internalvar_to_ax): New function.
6654 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6655 (tlb_funcs): New struct.
6656 (_initialize_windows_tdep): New argument when calling
6657 `create_internalvar_type_lazy'.
6658
91da1414
MW
66592012-04-27 Mark Wielaard <mjw@redhat.com>
6660
6661 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6662 see whether it is an address or a constant offset from DW_AT_low_pc.
6663 (dwarf2_record_block_ranges): Likewise.
6664 (read_partial_die): Likewise.
6665
4ab9d8ec
MW
66662012-04-26 Mark Wielaard <mjw@redhat.com>
6667
6668 * MAINTAINERS (Write After Approval): Add myself to the list.
6669
a0911fd0
MR
66702012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6671
6672 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6673 (proc_prettyprint_signal): Likewise.
6674 (proc_prettyprint_faultset): Likewise.
6675 (proc_prettyprint_fault): Likewise.
6676 (proc_prettyprint_actionset): Likewise.
6677 (proc_prettyprint_flags): Move to new proc-flags.c section.
6678 (proc_prettyfprint_flags): New prototype.
6679 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6680 (proc_syscall, proc_cursig): Likewise.
6681 (proc_set_kill_on_last_close): Likewise.
6682 (proc_unset_kill_on_last_close): Likewise.
6683 (proc_set_watchpoint): Make static.
6684 (proc_delete_dead_threads): Likewise.
6685 (procfs_set_watchpoint): Likewise.
6686 (_initialize_procfs): Add prototype.
6687 * proc-events.c: Include proc-utils.h.
6688 (init_syscall_table): Make static.
6689 * proc-api.c (_initialize_proc_api): Add prototype.
6690 * proc-flags.c: Include proc-utils.h.
6691
9009e1ae
MR
66922012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6693
6694 * configure.ac: Add AC_ARG_PROGRAM.
6695 * configure: Regenerate.
6696
4fae6e18
JK
66972012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6698
6699 Fix DW_AT_lower_bound defaults for DWARF-4+.
6700 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6701 high. New variable low_default_is_valid. Implement DWARF-4+
6702 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6703 no default by the DWARF standard.
6704
14132e89 67052012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6706 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6707
6708 * infrun.c (handle_inferior_event): Move the check for return
6709 trampolines ahead of the check for function trampolines.
6710 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6711 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6712 (mips_str_mips16_ret_stub): Likewise.
6713 (mips_str_call_fp_stub): Likewise.
6714 (mips_str_call_stub): Likewise.
6715 (mips_str_fn_stub): Likewise.
6716 (mips_str_pic): Likewise.
6717 (mips_in_frame_stub): New function.
6718 (mips_unwind_pc): Return the return address rather than the PC
6719 if the PC of an intermediate frame is inside a call thunk.
6720 (mips_is_stub_suffix): New function.
6721 (mips_is_stub_mode): Likewise.
6722 (mips_get_mips16_fn_stub_pc): Likewise.
6723 (mips_skip_mips16_trampoline_code): Update to handle all the
6724 currently generated stub types. Don't recurse into __fn_stub
6725 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6726 Use cooked register accesses.
6727 (mips_in_return_stub): Reintroduce function.
6728 (mips_skip_trampoline_code): Traverse trampolines recursively.
6729 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6730
518f0db5 67312012-04-26 Joel Brobecker <brobecker@adacore.com>
6732
6733 GDB 7.4.1 released.
6734
3184d3f9
JL
67352012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6736
6737 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6738 * features/arm-with-m-vfp-d16.xml: New file. Describes
6739 Cortex-M with VFPv4-sp-d16 FPU register layout.
6740 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6741 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6742 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6743 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6744 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6745
b6201d44
DE
67462012-04-25 Doug Evans <dje@google.com>
6747
6748 * cli/cli-decode.c (print_doc_line): Use stream instead of
6749 current_uiout.
6750
4e2f8df6
SDJ
67512012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6752
6753 * features/arm-with-iwmmxt.c: Regenerate.
6754 * features/arm-with-m-fpa-layout.c: Likewise.
6755 * features/arm-with-m.c: Likewise.
6756 * features/arm-with-neon.c: Likewise.
6757 * features/arm-with-vfpv2.c: Likewise.
6758 * features/arm-with-vfpv3.c: Likewise.
6759 * features/mips-dsp-linux.c: Likewise.
6760 * features/mips-linux.c: Likewise.
6761 * features/mips64-dsp-linux.c: Likewise.
6762 * features/mips64-linux.c: Likewise.
6763 * features/s390-linux32.c: Likewise.
6764 * features/s390-linux32v1.c: Likewise.
6765 * features/s390-linux32v2.c: Likewise.
6766 * features/s390-linux64.c: Likewise.
6767 * features/s390-linux64v1.c: Likewise.
6768 * features/s390-linux64v2.c: Likewise.
6769 * features/s390x-linux64.c: Likewise.
6770 * features/s390x-linux64v1.c: Likewise.
6771 * features/s390x-linux64v2.c: Likewise.
6772 * features/tic6x-c62x-linux.c: Likewise.
6773 * features/tic6x-c62x.c: Likewise.
6774 * features/tic6x-c64x-linux.c: Likewise.
6775 * features/tic6x-c64x.c: Likewise.
6776 * features/tic6x-c64xp-linux.c: Likewise.
6777 * features/tic6x-c64xp.c: Likewise.
6778 * target-descriptions.c: Only generate `field_type' and `type'
6779 variables when needed.
6780
2def3e66
JB
67812012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6782
6783 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6784
a766d390
DE
67852012-04-25 Doug Evans <dje@google.com>
6786
6787 Initial pass at Go language support.
6788 * NEWS: Mention Go.
6789 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6790 go-valprint.c.
6791 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6792 (YYFILES): Add go-exp.c.
6793 (YYOBJ): Add go-exp.o.
6794 (local-maintainer-clean): Delete go-exp.c.
6795 * defs.h (enum language): Add language_go.
6796 * dwarf2read.c: #include "go-lang.h".
6797 (fixup_go_packaging): New function.
6798 (process_full_comp_unit): Call it when processing Go CUs.
6799 (dwarf2_physname): Add Go support.
6800 (read_file_scope): Handle missing language spec for GNU Go.
6801 (set_cu_language): Handle DW_LANG_Go.
6802 * go-exp.y: New file.
6803 * go-lang.h: New file.
6804 * go-lang.c: New file.
6805 * go-typeprint.c: New file.
6806 * go-valprint.c: New file.
6807 * symtab.c: #include "go-lang.h".
6808 (symbol_set_language): Handle language_go.
6809 (symbol_find_demangled_name, symbol_set_names): Ditto.
6810 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6811
4e2af517
JM
68122012-04-24 Jim Meyering <meyering@redhat.com>
6813
6814 avoid a few strncpy-induced buffer overruns
6815 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6816 fname and psargs before trying to concatenate.
6817 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6818 "name" before applying strchr.
6819
b77b7f52
SCR
68202012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6821
6822 * CONTRIBUTE: Use unified diff instead of context diff when
6823 generating patches.
6824
6321c22a
MR
68252012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6826
6827 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6828 code. Handle JR.HB correctly.
6829
742c84f6
MR
68302012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6831
6832 * mips-tdep.c
6833 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6834 with the other MIPS16 helpers.
6835
7fc7e0c3
SDJ
68362012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6837
6838 * observer.sh: Conditionally declare `args', thus cleaning up
6839 unused instances of this variable.
6840
20388dd6
YQ
68412012-04-24 Yao Qi <yao@codesourcery.com>
6842
6843 Revert this patch to allow breakpoint always-inserted
6844 in record target.
6845 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6846 * breakpoint.c: Include record.h.
6847 (breakpoints_always_inserted_mode): Return false when the record
6848 target is in use.
20388dd6
YQ
6849
6850 * breakpoint.c (iterate_over_bp_locations): New.
6851 * breakpoint.h: Declare.
6852 New typedef walk_bp_location_callback.
6853 * record.c (record_open): Call record_init_record_breakpoints.
6854 (record_sync_record_breakpoints): New.
6855 (record_init_record_breakpoints): New.
6856 * NEWS: Mention supporting breakpoint always-inserted mode in
6857 record target.
6858
4734f50e
MK
68592012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6860
6861 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6862 any thread.
6863
c326b90e
YQ
68642012-04-24 Yao Qi <yao@codesourcery.com>
6865
6866 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6867 (is_catchpoint): ... it.
6868 (print_one_breakpoint_location): Caller update.
6869 * breakpoint.h: Update declaration.
6870
d8fb5a1e
DM
68712012-04-23 David S. Miller <davem@davemloft.net>
6872
6873 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6874
34431a2a
TT
68752012-04-23 Tom Tromey <tromey@redhat.com>
6876
6877 * buildsym.c (add_free_pendings): Remove.
6878 * buildsym.h (add_free_pendings): Remove.
6879
4568ecf9
DE
68802012-04-23 Doug Evans <dje@google.com>
6881
6882 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6883 attr.u.unsnd instead of attr.u.addr.
6884 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6885 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6886 DW_FORM_ref_udata.
6887 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6888 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6889 DW_FORM_ref_udata.
6890 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6891
dca9aa3a
MR
68922012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6893
6894 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6895 (mips_o32_return_value): Likewise.
6896 (mips_o64_return_value): Likewise.
6897
c8ea1972
PH
68982012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6899
6900 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6901 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6902 their treatment in eval.c.
c8ea1972 6903
8d1b3521
DM
69042012-04-21 David S. Miller <davem@davemloft.net>
6905
6906 * sparc-tdep.c (X_DISP10): Define.
6907 (sparc_analyze_control_transfer): Handle compare-and-branch.
6908
03145bf4
JL
69092012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6910
6911 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6912 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6913
004159a2 69142012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6915 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6916
6917 * mips-tdep.c (mips_float_register_p): New function.
6918 (mips_convert_register_float_case_p): Use mips_float_register_p.
6919 (mips_register_type): Likewise.
6920 (mips_print_register): Likewise.
6921 (print_gp_register_row): Likewise.
6922 (mips_print_registers_info): Likewise.
6923
7f0e6aae
MR
69242012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6925
6926 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6927 of mips16 symbols.
6928
bc17beea
AP
69292012-04-20 Andrew Pinski <apinski@cavium.com>
6930
6931 * MAINTAINERS (Write After Approval): Add myself to the list.
6932
1730a5a5
SDJ
69332012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6934
6935 * MAINTAINERS: Update my e-mail address.
6936
38ea300a
PA
69372012-04-20 Pedro Alves <palves@redhat.com>
6938
6939 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6940 $srcdir.
6941 * configure: Regenerate.
6942
111dfaae
SDJ
69432012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6944
6945 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6946 declaration.
6947 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6948
4fb2c64a
JK
69492012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6950
6951 Fix compilation compatibility with python-2.4
6952 * python/py-type.c (convert_field): Cast ADDRSTRING for
6953 PyObject_SetAttrString as non-const. New comment.
6954
6328eb38
TT
69552012-04-19 Tom Tromey <tromey@redhat.com>
6956
6957 * top.c (quit_target): Use all_cleanups.
6958 * main.c (captured_command_loop): Use all_cleanups.
6959 * exceptions.c (throw_exception): Use all_cleanups.
6960
c971b7fa
PA
69612012-04-19 Pedro Alves <palves@redhat.com>
6962
6963 * Makefile.in (GNULIB_BUILDDIR): New.
6964 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6965 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6966 (CLEANDIRS). Remove gnulib/import.
6967 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6968 (all-lib): Ditto.
6969 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6970 (gnulib/import/Makefile): Replace gnulib/import with
6971 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6972 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6973 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6974 acx_configure_dir.m4.
6975 * acinclude.m4: Include acx_configure_dir.m4.
6976 * acx_configure_dir.m4: New file.
6977 * aclocal.m4: Regenerate.
a09130f9
PA
6978 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6979 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6980 (GNULIB): New variable.
6981 (GNULIB_STDINT_H): Adjust.
6982 (AC_OUTPUT): Don't output gnulib/Makefile.
6983 * gdb/defs.h: Include build-gnulib/config.h.
6984 * aclocal.m4: Regenerate.
6985 * config.in: Regenerate.
6986 * configure: Regenerate.
6987
6988 * gnulib/Makefile.in: New file.
6989 * gnulib/configure.ac: New file.
6990 * gnulib/aclocal.m4: New file.
6991 * gnulib/config.in: New file.
6992 * gnulib/configure: New file.
c971b7fa
PA
6993 * gnulib/: Re-run gnulib-tool to adjust.
6994
b10faa68
DE
69952012-04-19 Doug Evans <dje@google.com>
6996
6997 * cleanups.h (struct cleanup): Move to cleanups.c.
6998 (make_cleanup_dtor_ftype): New typedef.
6999 (make_cleanup_dtor): Use it.
7000 (ALL_CLEANUPS): Replace with ...
7001 (all_cleanups): ... this. Declare. All uses updated.
7002 * cleanups.c: #include "gdb_assert.h".
7003 (sentinel_cleanup): New static global.
7004 (SENTINEL_CLEANUP): Define.
7005 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7006 (make_my_cleanup2): Assert result is non-NULL.
7007 (all_cleanups): New function.
7008 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7009 of NULL.
7010
d8c267cc
PA
70112012-04-19 Pedro Alves <palves@redhat.com>
7012
7013 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7014 Adjust paths to gnulib imported files.
7015
809277f8
PA
70162012-04-19 Pedro Alves <palves@redhat.com>
7017
7018 * gnulib/: Move whole directory ...
7019 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7020 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7021 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7022 (aclocal_m4_deps): Adjust.
7023 * aclocal.m4: Regenerate.
7024 * configure: Regenerate.
7025 * configure.ac: Adjust AC_OUTPUT output.
7026
aad9eab9
YQ
70272012-04-19 Yao Qi <yao@codesourcery.com>
7028
7029 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7030 (vec.o): New rule.
7031 * vec.c: Move it ...
7032 * common/vec.c: ... here.
7033 * vec.h: Move it ...
7034 * common/vec.h: ... here.
7035
48fe4669
YQ
70362012-04-19 Yao Qi <yao@codesourcery.com>
7037
7038 * gdb-code-style.el: New.
7039
770d76d7
PA
70402012-04-18 Pedro Alves <palves@redhat.com>
7041
7042 Update gnulib from latest git.
7043 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7044
7045 * gnulib/Makefile.am: Update.
7046 * gnulib/dummy.c: Update.
7047 * gnulib/extra/arg-nonnull.h: Update.
7048 * gnulib/extra/c++defs.h: Update.
7049 * gnulib/extra/update-copyright: Update.
7050 * gnulib/extra/warn-on-use.h: Update.
7051 * gnulib/inttypes.in.h: Update.
7052 * gnulib/m4/00gnulib.m4: Update.
7053 * gnulib/m4/extensions.m4: Update.
7054 * gnulib/m4/gnulib-cache.m4: Update.
7055 * gnulib/m4/gnulib-common.m4: Update.
7056 * gnulib/m4/gnulib-comp.m4: Update.
7057 * gnulib/m4/gnulib-tool.m4: Update.
7058 * gnulib/m4/include_next.m4: Update.
7059 * gnulib/m4/inttypes-pri.m4: Update.
7060 * gnulib/m4/inttypes.m4: Update.
7061 * gnulib/m4/longlong.m4: Update.
7062 * gnulib/m4/memchr.m4: Update.
7063 * gnulib/m4/memmem.m4: Update.
7064 * gnulib/m4/mmap-anon.m4: Update.
7065 * gnulib/m4/multiarch.m4: Update.
7066 * gnulib/m4/onceonly.m4: Update.
7067 * gnulib/m4/stddef_h.m4: Update.
7068 * gnulib/m4/stdint.m4: Update.
7069 * gnulib/m4/string_h.m4: Update.
7070 * gnulib/m4/warn-on-use.m4: Update.
7071 * gnulib/m4/wchar_h.m4: Update.
7072 * gnulib/m4/wchar_t.m4: Update.
7073 * gnulib/m4/wint_t.m4: Update.
7074 * gnulib/memchr.c: Update.
7075 * gnulib/memmem.c: Update.
7076 * gnulib/stddef.in.h: Update.
7077 * gnulib/stdint.in.h: Update.
7078 * gnulib/str-two-way.h: Update.
7079 * gnulib/string.in.h: Update.
7080 * gnulib/wchar.in.h: Update.
7081
7082 * gnulib/extra/arg-nonnull.h: Delete.
7083 * gnulib/extra/c++defs.h: Delete.
7084 * gnulib/extra/warn-on-use.h: Delete.
7085 * gnulib/m4/wchar_h.m4: Delete.
7086 * gnulib/m4/wint_t.m4: Delete.
7087 * gnulib/wchar.in.h: Delete.
7088
7089 * gnulib/extra/snippets/arg-nonnull.h: New.
7090 * gnulib/extra/snippets/c++defs.h: New.
7091 * gnulib/extra/snippets/warn-on-use.h: New.
7092
7093 * aclocal.m4: Regenerate.
7094 * config.in: Regenerate.
7095 * configure: Regenerate.
7096 * gnulib/Makefile.in: Regenerate.
7097
174e088e
PA
70982012-04-18 Pedro Alves <palves@redhat.com>
7099
7100 Reimport the update-copyright module from gnulib
7101 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7102
7103 * configure: Regenerate.
7104 * gnulib/Makefile.am: Update.
7105 * gnulib/Makefile.in: Regenerate.
7106 * gnulib/extra/update-copyright: Update.
7107 * gnulib/m4/gnulib-cache.m4: Update.
7108 * gnulib/m4/gnulib-comp.m4: Update.
7109
7f533142
JB
71102012-04-18 Tristan Gingold <gingold@adacore.com>
7111
7112 * configure.ac (aix): Put -lpthread into libs.
7113 * configure: Regenerate.
7114
001822aa
TT
71152012-04-18 Tom Tromey <tromey@redhat.com>
7116
7117 * linespec.c (convert_linespec_to_sals): Don't use
7118 SYMBOL_OBJ_SECTION.
7119 (compare_msymbols): Arguments are minsym_and_objfile, not
7120 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7121
db026a31
PA
71222012-04-18 Pedro Alves <palves@redhat.com>
7123
7124 Revert gnulib/ part of:
7125 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7126 Copyright year update in most files (performed by copyright.sh).
7127
12df843f
JK
71282012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7129
7130 Fix 64-bit constants on 32-bit hosts.
7131 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7132 from unsigned long to ULONGEST.
7133 (read_signed_leb128): Change declaration return type from long to
7134 LONGEST.
7135 (dwarf2_const_value_attr): Change declaration parameter value from long
7136 to LONGEST.
7137 (dwarf2_compute_name): Change variable value from long to LONGEST.
7138 (read_unsigned_leb128): Change return type, variable result and some
7139 casts from unsigned long to ULONGEST.
7140 (read_signed_leb128): Change return type, variable result and some
7141 casts from long to LONGEST.
7142 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7143 value from long to LONGEST.
7144 (dwarf2_const_value): Change variable value from long to LONGEST.
7145 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7146 plongest and hex_string.
7147 * symtab.h (struct general_symbol_info): Change ivalue from long to
7148 LONGEST, remove the comment.
7149 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7150 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7151
14e75d8e
JK
71522012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7153
7154 PR symtab/7259:
7155 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7156 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7157 (ada_discrete_type_low_bound): Fix function comment. Use
7158 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7159 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7160 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7161 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7162 Use TYPE_FIELD_ENUMVAL.
7163 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7164 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7165 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7166 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7167 TYPE_CODE_ENUM.
7168 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7169 * dwarf2read.c (process_enumeration_scope): Likewise.
7170 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7171 field.bitpos.
7172 (class StructMainTypePrettyPrinter): Support also
7173 FIELD_LOC_KIND_ENUMVAL.
7174 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7175 TYPE_CODE_ENUM.
7176 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7177 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7178 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7179 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7180 field enumval.
7181 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7182 accommodate enumval.
7183 (struct call_site): Adjust loc_kind to accommodate enumval.
7184 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7185 (TYPE_FIELD_ENUMVAL): New macros.
7186 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7187 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7188 TYPE_CODE_ENUM.
7189 * p-typeprint.c (pascal_type_print_base): Likewise.
7190 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7191 enumval.
7192 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7193 * python/py-type.c (convert_field): New variable addrstring. Use
7194 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7195 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7196 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7197 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7198 TYPE_CODE_ENUM.
7199 * valprint.c (generic_val_print): Likewise.
7200
380bca97
DE
72012012-04-17 Doug Evans <dje@google.com>
7202
dcc07052
DE
7203 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7204
380bca97
DE
7205 * dwarf2read.c: Whitespace fixes.
7206 (lookup_signatured_type): Tweak comment.
7207 (get_die_type_at_offset): Fix comment.
7208
ec92004f
JB
72092012-04-17 Joel Brobecker <brobecker@adacore.com>
7210
7211 * xcoffread.c (xcoff_secnum_to_sections): New function.
7212 (secnum_to_section, secnum_to_bfd_section): Reimplement
7213 using xcoff_secnum_to_sections. Rename "secnum" parameter
7214 into "n_scnum".
7215 (RECORD_MINIMAL_SYMBOL): Delete.
7216 (record_minimal_symbol): New function.
7217 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7218 by call to record_minimal_symbol and set misc_func_recorded
7219 to 1. Set last_csect_sec to the XCOFF section index instead
7220 of GDB's section_offset index. Update calls to
7221 prim_record_minimal_symbol_and_info to pass the BFD section
7222 as well.
7223
40301fb7
JB
72242012-04-17 Joel Brobecker <brobecker@adacore.com>
7225
7226 * xcoffread.c (read_xcoff_symtab): Delete variables
7227 last_csect_val and last_csect_sec and associated code.
7228
e0088cfd
DE
72292012-04-17 Doug Evans <dje@google.com>
7230
58d5e2c3
DE
7231 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7232 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7233 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7234 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7235
c27f5738
DE
7236 * cleanups.h: New file.
7237 * cleanups.c: New file.
7238 * Makefile.in (SFILES): Add cleanups.c.
7239 (HFILES_NO_SRCDIR): Add cleanups.h.
7240 (COMMON_OBS): Add cleanups.o.
7241 * defs.h (struct cleanup): Moved to cleanups.h.
7242 (do_cleanups,do_final_cleanups): Ditto.
7243 (discard_cleanups,discard_final_cleanups): Ditto
7244 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7245 (save_cleanups,save_final_cleanups): Ditto.
7246 (restore_cleanups,restore_final_cleanups): Ditto.
7247 (null_cleanup): Ditto.
7248 (make_my_cleanup,make_my_cleanup2): Ditto.
7249 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7250 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7251 (do_cleanups,do_final_cleanups): Ditto.
7252 (discard_cleanups,discard_final_cleanups): Ditto
7253 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7254 (save_cleanups,save_final_cleanups): Ditto.
7255 (restore_cleanups,restore_final_cleanups): Ditto.
7256 (null_cleanup): Ditto.
7257 (make_my_cleanup,make_my_cleanup2): Ditto.
7258 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7259
e0088cfd
DE
7260 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7261 make_my_cleanup.
7262 (make_cleanup_dyn_string_delete): Ditto.
7263 (make_cleanup_ui_file_delete): Ditto.
7264 (make_cleanup_ui_out_redirect_pop): Ditto.
7265 (make_cleanup_free_section_addr_info): Ditto.
7266 (make_cleanup_restore_integer): Ditto.
7267 (make_cleanup_unpush_target): Ditto.
7268 (make_cleanup_value_free_to_mark): Ditto.
7269 (make_cleanup_value_free): Ditto.
7270 (make_cleanup_free_so): Ditto.
7271
4dc84fd1
JK
72722012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7273
7274 New option "set debug auto-load".
7275 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7276 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7277 (auto_load_safe_path_vec_update)
7278 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7279 if DEBUG_AUTO_LOAD.
7280 (file_is_auto_load_safe): New parameters debug_fmt and ....
7281 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7282 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7283 caller by explanatory string.
7284 (_initialize_auto_load): Register "set debug auto-load".
7285 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7286 and ....
7287 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7288 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7289 by explanatory string.
7290 * main.c (captured_main): Likewise.
7291 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7292 (source_section_scripts): Likewise.
7293
bccbefd2
JK
72942012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7295
7296 New option "set auto-load safe-path".
7297 * NEWS: New commands "set auto-load safe-path"
7298 and "show auto-load safe-path".
7299 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7300 (auto_load_safe_path, auto_load_safe_path_vec)
7301 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7302 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7303 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7304 (source_gdb_script_for_objfile): New variable is_safe. Call
7305 file_is_auto_load_safe. Return if it is not.
7306 (struct loaded_script): New field loaded.
7307 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7308 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7309 output "Missing" to "No".
7310 (_initialize_auto_load): New variable cmd. Initialize
7311 auto_load_safe_path. Register "set auto-load safe-path",
7312 "show auto-load safe-path" and "add-auto-load-safe-path".
7313 * auto-load.h (maybe_add_script): Add parameter loaded.
7314 (file_is_auto_load_safe): New declaration.
7315 * config.in: Regenerate.
7316 * configure: Regenerate.
7317 * configure.ac: New parameters --with-auto-load-safe-path
7318 and --without-auto-load-safe-path.
7319 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7320 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7321 * main.c (captured_main): Check file_is_auto_load_safe for
7322 LOCAL_GDBINIT.
7323 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7324 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7325 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7326 not.
7327
bf88dd68
JK
73282012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7329
7330 auto-load: Implementation.
7331 * NEWS: New descriptions for "info auto-load",
7332 "info auto-load gdb-scripts", "info auto-load python-scripts",
7333 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7334 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7335 and "show auto-load-scripts". New description for "set auto-load",
7336 "show auto-load", "set auto-load gdb-scripts",
7337 "show auto-load gdb-scripts", "set auto-load python-scripts",
7338 "show auto-load python-scripts", "set auto-load local-gdbinit",
7339 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7340 "show auto-load libthread-db".
7341 * auto-load.c: Remove include python/python-internal.h. Add includes
7342 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7343 cli/cli-setshow.h.
7344 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7345 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7346 (gdbpy_global_auto_load): Rename to ...
7347 (global_auto_load): ... here.
7348 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7349 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7350 (script_language_gdb, source_gdb_script_for_objfile): New.
7351 (struct loaded_script): New field language.
7352 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7353 LANGUAGE.
7354 (maybe_add_script): Add parameter language. Drop redundant
7355 entry.full_path initialization. Initialize entry.language and
7356 (*slot)->language.
7357 (auto_load_objfile_script): Change parameter suffix to language.
7358 Remove the call of maybe_add_script.
7359 Call language->source_script_for_objfile.
7360 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7361 New.
7362 (collect_matching_scripts): Adjust it for
7363 struct collect_matching_scripts_data.
7364 (auto_load_info_scripts_pattern_nl): New variable.
7365 (info_auto_load_scripts): Rename to ...
7366 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7367 for struct collect_matching_scripts_data.
7368 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7369 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7370 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7371 (auto_load_info_cmdlist_get): New.
7372 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7373 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7374 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7375 "info auto-load local-gdbinit".
7376 * auto-load.h (struct script_language): New.
7377 (gdbpy_global_auto_load): Rename to ...
7378 (global_auto_load): ... here.
7379 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7380 (auto_load_local_gdbinit_loaded): New declarations.
7381 (maybe_add_script): New parameter language.
7382 (auto_load_objfile_script): Change parameter suffix to language.
7383 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7384 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7385 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7386 declarations.
7387 * linux-thread-db.c: Include auto-load.h and ctype.h.
7388 (auto_load_thread_db, show_auto_load_thread_db): New.
7389 (struct thread_db_info): New field filename.
7390 (delete_thread_db_info): Call xfree for FILENAME.
7391 (try_thread_db_load): Initialize FILENAME.
7392 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7393 if !AUTO_LOAD_THREAD_DB.
7394 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7395 (_initialize_thread_db): Install auto_load_thread_db
7396 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7397 as "info auto-load libthread-db".
7398 * main.c (captured_main): Rename gdbpy_global_auto_load to
7399 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7400 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7401 (print_gdb_help): Extend the help for 'local init file'.
7402 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7403 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7404 (auto_load_scripts): Rename to ...
7405 (auto_load_python_scripts): ... here, update the comment.
7406 (gdbpy_load_auto_script_for_objfile): New declaration.
7407 (show_auto_load_python_scripts, script_language_python)
7408 (gdbpy_load_auto_script_for_objfile): New.
7409 (source_section_scripts): Refactor the code.
7410 (load_auto_scripts_for_objfile): Rename to ...
7411 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7412 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7413 (info_auto_load_python_scripts): New.
7414 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7415 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7416 Register "set auto-load-scripts" as its deprecated alias. Register
7417 "info auto-load python-scripts". Register "info auto-load-scripts" as
7418 its deprecated alias.
7419 (load_auto_scripts_for_objfile): Rename to ...
7420 (gdbpy_load_auto_scripts_for_objfile): ... here.
7421 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7422 (gdbpy_load_auto_scripts_for_objfile): ... here.
7423
e2207b9a
JK
74242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7425
7426 auto-load: Move files.
7427 * Makefile.in (SFILES): Add auto-load.c.
7428 (HFILES_NO_SRCDIR): Add auto-load.h.
7429 (COMMON_OBS): Add auto-load.o.
7430 (distclean): Change .gdbinit for gdb-gdb.gdb.
7431 * auto-load.c: New file, with parts from python/py-auto-load.c.
7432 * auto-load.h: New file, with parts from python/python.h.
7433 * configure: Regenerate.
7434 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7435 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7436 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7437 * main.c: Include auto-load.h.
7438 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7439 command.h, observer.h and progspace.h to auto-load.c. Add include
7440 auto-load.h.
7441 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7442 (struct loaded_script, auto_load_pspace_data)
7443 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7444 (hash_loaded_script_entry, eq_loaded_script_entry)
7445 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7446 (maybe_add_script): Move to auto-load.c.
7447 (source_section_scripts): Change maybe_add_script parameters passing,
7448 use script_not_found_warning_print.
7449 (clear_section_scripts, auto_load_objfile_script)
7450 (auto_load_new_objfile, loaded_script_ptr)
7451 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7452 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7453 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7454 auto_load_new_objfile and info_auto_load_scripts initizations to
7455 auto-load.c.
7456 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7457
e4ab2fad
JK
74582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 Code cleanup.
7461 * charset.c (find_charset_names): Remove variables ix and elt.
7462 Use free_char_ptr_vec.
7463 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7464 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7465 debugdir_end. New variable debugdir_len.
7466 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7467 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7468 declarations.
7469 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7470 and elt. Use free_char_ptr_vec.
7471 * source.c (add_path): Remove variables argv, arg and argv_index.
7472 New variables dir_vec, back_to, ix and name.
7473 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7474 make_cleanup_freeargv. Remove variable separator. Simplify the code
7475 no longer expecting DIRNAME_SEPARATOR.
7476 (openp): Remove variable p, p1 and len. New variables dir_vec,
7477 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7478 no longer expecting DIRNAME_SEPARATOR.
7479 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7480 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7481 debugdir_end.
7482 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7483 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7484 (dirnames_to_char_ptr_vec): New functions.
7485
5ee4ed9f
JK
74862012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7487
7488 Code cleanup.
7489 * source.c (add_path): Remove always true conditional 'p == 0' and
7490 unindent its code block.
7491
f41f5e61
PA
74922012-04-17 Pedro Alves <palves@redhat.com>
7493
7494 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7495 (FIELD_BITPOS_LVAL): ... this.
7496 (FIELD_BITPOS): New.
7497 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7498 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7499 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7500 SET_FIELD_BITPOS.
7501 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7502 SET_FIELD_BITPOS.
7503 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7504 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7505 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7506 SET_FIELD_BITPOS.
7507
945b3a32
JK
75082012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7509
7510 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7511 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7512 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7513 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7514 * jv-lang.c (java_link_class_type): Likewise, once.
7515 * stabsread.c (read_enum_type): Likewise.
7516
42476b70
YQ
75172012-04-16 Yao Qi <yao@codesourcery.com>
7518
7519 * common/agent.c (agent_run_command): Add one more parameter `len'.
7520 Update callers.
7521 * common/agent.h: Update declaration.
7522 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7523 Update.
7524 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7525
8264ba82
AG
75262012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7527
7528 PR mi/13393
7529 * value.c (value_actual_type): New function.
7530 * value.h (value_actual_type): New declaration.
7531 * varobj.c (update_type_if_necessary): New function.
7532 (varobj_create): Call value_actual_type instead of
7533 value_type.
7534 (install_dynamic_child): distinct changed and type changed MI variable
7535 objects.
7536 (update_dynamic_varobj_children): Updated for install_dynamic_child
7537 change. All callers updated.
a09130f9 7538 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7539 the value changed and RTTI is used to determine the type.
7540 (create_child_with_value): Call value_actual_type instead of
7541 value_type.
a09130f9 7542 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7543 specify whether the given value should be casted to enclosing type.
7544 All callers updated.
7545
55a8c076
YQ
75462012-04-14 Yao Qi <yao@codesourcery.com>
7547
7548 Import gnulib module inttypes from git
7549 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7550 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7551 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7552 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7553 * aclocal.m4, config.in, configure: Regenerated.
7554 * gnulib/Makefile.am: Update.
7555 * gnulib/Makefile.in: Update.
7556 * gnulib/m4/gnulib-cache.m4: Update.
7557 * gnulib/m4/gnulib-comp.m4: Update.
7558 * gnulib/inttypes.in.h: New.
7559 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7560 * gnulib/m4/inttypes.m4: New.
55a8c076 7561
ca7781d2
LM
75622012-04-13 Luis Machado <lgustavo@codesourcery.com>
7563
7564 * infrun.c (resume): Update PC address to the real PC after
7565 preparing to do displaced stepping.
7566
e319fa28
DE
75672012-04-12 Doug Evans <dje@google.com>
7568
7569 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7570 All callers updated.
7571
15add3f5
MK
75722012-04-12 Mark Kettenis <kettenis@gnu.org>
7573
7574 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7575
52dc124a
DE
75762012-04-12 Doug Evans <dje@google.com>
7577
0e50663e
DE
7578 * dwarf2read.c (create_all_type_units): Renamed from
7579 create_debug_types_hash_table. All callers updated.
7580
52dc124a
DE
7581 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7582 local type_sig to sig_type, type_offset to type_offset_in_tu.
7583 (hash_signatured_type): Renamed from hash_type_signature,
7584 all callers updated.
7585 (eq_signatured_type): Renamed from eq_type_signature,
7586 all callers updated.
7587 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7588 (process_enumeration_scope): Ditto.
7589 (lookup_signatured_type_at_offset): Ditto.
7590 (load_full_type_unit, read_signatured_type): Ditto.
7591
248fd3bf
YQ
75922012-04-12 Yao Qi <yao@codesourcery.com>
7593
7594 * remote.c (async_remote_interrupt): Correct function name in
7595 debug message.
7596 (async_remote_interrupt_twice): Ditto.
7597
bc3aa6c3
DE
75982012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7599
7600 * source.c (find_and_open_source): Consistently pass resulting
7601 full path through xfullpath.
7602
9e529e1d
JK
76032012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7604
7605 Provide more specific displaced-stepping memory error message.
7606 * infrun.c (displaced_step_prepare): New variable status. Call
7607 target_read_memory instead of read_memory, provide more specific
7608 error message.
7609
82e0cec1
TG
76102012-04-11 Tristan Gingold <gingold@adacore.com>
7611
7612 PR gdb/13901
7613 * darwin-nat.c (darwin_execvp): Revert previous patch.
7614
d987a266
TG
76152012-04-11 Tristan Gingold <gingold@adacore.com>
7616
7617 PR gdb/13901
7618 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7619 in case of change.
7620
016b7430
TG
76212012-04-11 Tristan Gingold <gingold@adacore.com>
7622
7623 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7624 warning.
7625
06fc020f
SCR
76262012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7627
7628 New command 'explore' which helps explore values and types in
7629 scope.
7630 * NEWS: Add an entry about the new 'explore' command.
7631 * data-directory/Makefile.in: Add gdb/command/explore.py
7632 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7633 command using the GDB Python API.
06fc020f 7634
de0919f8 76352012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7636
7637 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7638 extension in jump target calculation.
7639
de0919f8 76402012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7641
7642 * mips-tdep.c (mips32_next_pc): Handle JALX.
7643
2f26ef89
YQ
76442012-04-10 Yao Qi <yao@codesourcery.com>
7645
7646 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7647
2e505b66
YQ
76482012-04-10 Yao Qi <yao@codesourcery.com>
7649
7650 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7651 and gnulib/m4/gnulib-tool.m4.
7652
0d99eb77
DE
76532012-04-10 Doug Evans <dje@google.com>
7654
7655 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7656 (load_partial_dies): Clarify comment.
7657 (find_partial_die): Support rereading type units.
7658 Clarify CU handling, if we know offset is in CU, don't search for the
7659 containing CU. Add comment regarding memory waste.
7660
9a82b8ff
L
76612012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7662
7663 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7664 i386/x32-avx and i386/x32-avx-linux.
7665 (i386/x32-expedite): New.
7666 (i386/x32-linux-expedite): Likewise.
7667 (i386/x32-avx-expedite): Likewise.
7668 (i386/x32-avx-linux-expedite): Likewise.
7669 ($(outdir)/i386/x32.dat): Likewise.
7670 ($(outdir)/i386/x32-linux.dat): Likewise.
7671 ($(outdir)/i386/x32-avx.dat): Likewise.
7672 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7673
7674 * features/i386/x32-avx-linux.xml: New file.
7675 * features/i386/x32-avx.xml: Likewise.
7676 * features/i386/x32-core.xml: Likewise.
7677 * features/i386/x32-linux.xml: Likewise.
7678 * features/i386/x32.xml: Likewise.
7679
7680 * features/i386/x32-avx-linux.c: New. Generated.
7681 * features/i386/x32-avx.c: Likewise.
7682 * features/i386/x32-linux.c: Likewise.
7683 * features/i386/x32.c: Likewise.
7684 * regformats/i386/x32-avx-linux.dat: Likewise.
7685 * regformats/i386/x32-avx.dat: Likewise.
7686 * regformats/i386/x32-linux.dat: Likewise.
7687 * regformats/i386/x32.dat: Likewise.
7688
ee41036f
TG
76892012-04-10 Tristan Gingold <gingold@adacore.com>
7690
7691 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7692 code to kill the inferior.
7693
a7aa5b8a
MK
76942012-04-09 Mark Kettenis <kettenis@gnu.org>
7695
7696 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7697 defines.
7698 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7699 defines.
a09130f9 7700 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7701 (yyvsp): New defines.
7702 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7703 defines.
7704 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7705 defines.
7706 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7707 defines.
7708 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7709 defines.
7710 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7711 defines.
7712
fb57d452
MK
77132012-04-09 Mark Kettenis <kettenis@gnu.org>
7714
a09130f9 7715 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7716 (sparc64_store_arguments): Fix coding style.
7717
cdc7b32f
MK
77182012-04-07 Mark Kettenis <kettenis@gnu.org>
7719
7720 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7721 complex floats, adjust some related comments and tighten a related
7722 assertion.
7723 (sparc64_extract_return_value): Handle complex floats.
7724
7adf1e79
DE
77252012-04-07 Doug Evans <dje@google.com>
7726
7727 * dwarf2read.c (load_partial_dies): Change condition to assert.
7728
50f1ae7b
DE
77292012-04-06 Doug Evans <dje@google.com>
7730
7731 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7732 "mov %rsp,%rbp".
7733
55fa75c3
KB
77342012-04-05 Kevin Buettner <kevinb@redhat.com>
7735
7736 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7737 fencepost error.
7738 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7739 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7740 architecture.
7741
40e084e1
KS
77422012-04-05 Keith Seitz <keiths@redhat.com>
7743
7744 * linespec.c (decode_compound): Remove.
7745 (enum offset_relative_sign): New enum.
7746 (struct line_offset): New struct.
7747 (struct linespec): New struct.
7748 (struct linespec_state): Move file_symtabs,
7749 user_filename, and user_function into struct linespec.
7750 Make result an anonymous struct holding vectors of
7751 symbolp and minsym_and_objfile_d.
7752 Add language member.
7753 (enum ls_token_type): New enum.
7754 (linespec_keywords): New array.
7755 (struct ls_token): New struct.
7756 (struct ls_parser): New struct.
7757 (linespec_lexer_lex_number): New function.
7758 (linespec_lexer_lex_keyword): New function.
7759 (is_ada_operator): New function.
7760 (skip_quote_char): New function.
7761 (copy_token_string): New function.
7762 (is_closing_quote_enclosed): New function.
7763 (find_parameter_list_end): New function.
7764 (linespec_lexer_lex_string): New function.
7765 (linespec_lexer_lex_one): New function.
7766 (linespec_lexer_consume_token): New function.
7767 (linespec_lexer_peek_token): New function.
7768 (cplusplus_error): Remove unused function.
7769 (find_methods): Update comment.
7770 (find_toplevel_char): Return const.
7771 (is_objc_method_format): Remove unused function.
7772 (find_toplevel_string): New function.
7773 (is_linespec_boundary): Remove.
7774 (symbol_not_found_error): New function.
7775 (find_method_overload_end): Remove function.
7776 (unexpected_linespec_error): New function.
7777 (keep_name_info): Remove.
7778 (linespec_parse_line_offset): New function.
7779 (linespec_parse_basic): New function.
7780 (canonicalize_linespec): New function.
7781 (decode_line_internal): Remove.
7782 (create_sals_line_offset): New function adapted from
7783 decode_all_digits.
7784 (convert_linespec_to_sals): New function.
7785 (parse_linespec): New function.
7786 (linespec_parser_new): New function.
7787 (linespec_state_destructor): Change parameter type to
7788 struct linespec_state *.
7789 Add language parameter.
7790 Remove freeing of moved members.
7791 (linespec_parser_delete): New function.
7792 (decode_line_full): Use parse_linespec and linespec_parser_new.
7793 (decode_line_1): Likewise.
7794 (decode_indirect): Rename to ...
7795 (linespec_expression_to_pc): ... this and rewrite
7796 to simply find CORE_ADDR, storing this result for later
7797 conversion to SALs.
7798 (locate_first_half): Remove.
7799 (deocde_objc): Add parameter LS.
7800 Initialize new struct collect_info members.
7801 Handle minimal symbols, too.
7802 (decode_compound): Delete.
7803 (lookup_prefix_sym): Rewrite.
7804 (compare_msymbols): New function.
7805 (find_method): Rewrite.
7806 Do not call cplusplus_error.
7807 (symtabs_from_filename): Rewrite.
7808 (collect_function_symbols): Delete.
7809 (find_function_symbols): Rewrite without ARGPTR-style
7810 processing.
7811 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7812 (decode_dollar): Adapted and renamed to ...
7813 (linespec_parse_variable): ... this.
7814 (find_linespec_symbols): New function.
7815 (decode_label): Adapted and renamed to ...
7816 (find_label_symbols): ... this.
7817 (decode_digits_list_mode): Add and use LS argument.
7818 (decode_digits_ordinary): Likewise.
7819 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7820 If in list mode, allow any symbol class. Otherwise, only
7821 permit LOC_BLOCK symbols.
7822 (minsym_found): Update comments.
7823 (search_minsyms_for_name): Do not convert the matching symbol
7824 into a SAL. Simply push the symbol and objfile into the
7825 result vector.
7826 (decode_variable): Delete. Contents adapted into
7827 find_linespec_symbols.
7828
7829 * cp-support.c (SKIP_SPACE): Remove.
7830 (operator_tokens): Remove unused global.
7831 (cp_validate_operator): Remove.
7832 * cp-support.h (cp_validate_operator): Remove declaration.
7833
a72c8f6a
JK
78342012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7835
7836 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7837 for TYPE_VPTR_FIELDNO.
7838 * valprint.c (valprint_check_validity): Make it global, move the
7839 function comment ...
7840 * value.h (valprint_check_validity): ... to this new declaration.
7841
cf9bb588
TG
78422012-04-02 Tristan Gingold <gingold@adacore.com>
7843
7844 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7845 the STATE32 api for i386 state.
7846 (i386_darwin_store_inferior_registers): Likewise.
7847
17092398
TG
78482012-04-02 Tristan Gingold <gingold@adacore.com>
7849
7850 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7851 SS offset.
7852 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7853 format_string.
7854
ece0061f
TG
78552012-04-02 Tristan Gingold <gingold@adacore.com>
7856
7857 PR gdb/13901
d987a266 7858 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7859
cf65ecd3
JK
78602012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7861
7862 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7863
9bc3523d
TT
78642012-03-30 Tom Tromey <tromey@redhat.com>
7865
7866 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7867 of TRY_CATCH. Fix error handling.
7868 * python/py-value.c (convert_value_from_python): Move 'old'
7869 declaration to innermost scope.
7870
b1ed564a
JB
78712012-03-29 Joel Brobecker <brobecker@adacore.com>
7872 Andrey Smirnov <andrew.smirnov@gmail.com>
7873
7874 -Wshadow warning fix.
7875 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7876 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7877 Adjust code accordingly.
7878
cb8e9b97
JB
78792012-03-29 Joel Brobecker <brobecker@adacore.com>
7880
7881 * ada-lang.c (symbol_completion_add): Rename parameter
7882 "encoded" into "encoded_p". Ajust code and documentation
7883 accordingly.
7884
c0af1706
JB
78852012-03-29 Joel Brobecker <brobecker@adacore.com>
7886 Andrey Smirnov <andrew.smirnov@gmail.com>
7887
7888 -Wshadow warning fix.
7889 * ada-lang.c (symbol_completion_add): Rename parameter
7890 "wild_match" into wild_match_p. Update code and documentation
7891 accordingly.
7892
6ea35997
JB
78932012-03-29 Joel Brobecker <brobecker@adacore.com>
7894
7895 * ada-lang.c (symbol_completion_match): Rename parameter
7896 "encoded" into "encoded_p". Ajust code and documentation
7897 accordingly.
7898
e701b3c0
JB
78992012-03-29 Joel Brobecker <brobecker@adacore.com>
7900 Andrey Smirnov <andrew.smirnov@gmail.com>
7901
7902 -Wshadow warning fix.
7903 * ada-lang.c (symbol_completion_match): Rename parameter
7904 "wild_match" into "wild_match_p". Adjust code and function
7905 documentation accordingly.
7906
5e2336be
JB
79072012-03-29 Joel Brobecker <brobecker@adacore.com>
7908 Andrey Smirnov <andrew.smirnov@gmail.com>
7909
7910 -Wshadow warning fix.
7911 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7912 "symbol_info" into "info". Adjust code accordingly.
7913 (ada_lookup_symbol): Likewise.
7914
9f88c959
JB
79152012-03-29 Joel Brobecker <brobecker@adacore.com>
7916
7917 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7918 of this function's documentation.
7919
82ccd55e
JB
79202012-03-29 Joel Brobecker <brobecker@adacore.com>
7921 Andrey Smirnov <andrew.smirnov@gmail.com>
7922
7923 -Wshadow warning fix.
7924 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7925 variable into "wild_match_p". Adjust code accordingly.
7926
d0a8ab18
JB
79272012-03-29 Joel Brobecker <brobecker@adacore.com>
7928 Andrey Smirnov <andrew.smirnov@gmail.com>
7929
7930 -Wshadow warning fix.
7931 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7932 parameter into "wild_match_p". Adjust code accordingly.
7933 Document this parameter in the function description.
7934
48b78332
JB
79352012-03-29 Joel Brobecker <brobecker@adacore.com>
7936 Andrey Smirnov <andrew.smirnov@gmail.com>
7937
7938 -Wshadow warning fix.
7939 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7940 "wild_match" parameter to "wild_match_p" (-Wshadow).
7941
2e6e0353
JB
79422012-03-29 Joel Brobecker <brobecker@adacore.com>
7943
7944 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7945 in function documentation.
7946
dc4024cd
JB
79472012-03-29 Joel Brobecker <brobecker@adacore.com>
7948 Andrey Smirnov <andrew.smirnov@gmail.com>
7949
7950 -Wshadow warning fix.
7951 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7952 variable into wild_match_p. Adjust code accordingly.
7953
6c88661c
JB
79542012-03-29 Joel Brobecker <brobecker@adacore.com>
7955 Andrey Smirnov <andrew.smirnov@gmail.com>
7956
7957 * ada-valprint.c (ada_val_print_1): Move the code handling
7958 TYPE_CODE_ENUM inside its own lexical block. Declare
7959 variables len and val there, instead of in the function's
7960 top level block. Avoid declaring deref_val again in a way
7961 that shadows another variable of the same name declared
7962 in one of the up-level blocks. Just re-use the up-level
7963 variable instead.
7964
4e5c77fe
JB
79652012-03-29 Joel Brobecker <brobecker@adacore.com>
7966
7967 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7968 Replace block_found argument by symbol_info. Adjust
7969 implementation accordingly. Add function documentation.
7970 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7971 Fix documentation.
7972 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7973 * ada-exp.y (write_object_renaming): Adjust to new
7974 ada_lookup_encoded_symbol API.
7975
1c0ac8c7
JB
79762012-03-29 Joel Brobecker <brobecker@adacore.com>
7977
7978 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7979 documentation.
7980
2aaed979
KB
79812012-03-28 Rathish C <rathish.c@kpitcummins.com>
7982
7983 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7984 (v850_register_name): Add the mpu and fpu register names.
7985 (v850e_register_name): Add the mpu and fpu register names.
7986 (v850e2_register_name): New function.
a09130f9 7987 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7988 bfd_mach_v850e2v3.
7989
927fbba6
JB
79902012-03-28 Joel Brobecker <brobecker@adacore.com>
7991
7992 * NEWS: Add entry for Ada varobj support.
7993
d32cafc7
JB
79942012-03-28 Joel Brobecker <brobecker@adacore.com>
7995
7996 * varobj.c (default_value_is_changeable_p): New function,
7997 extracted from varobj_value_is_changeable_p. Add declaration.
7998 (ada_value_is_changeable_p): New function, extracted from
7999 varobj_value_is_changeable_p. Add declaration.
8000 (struct language_specific): New field "value_is_changeable_p".
8001 (languages): Add entries for new field.
8002 (varobj_create): Set language before calling install_new_value.
8003 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8004 "value_is_changeable_p" language callback.
8005
181875a4
JB
80062012-03-28 Joel Brobecker <brobecker@adacore.com>
8007
8008 * ada-varobj.h, ada-varobj.c: New files.
8009 * Makefile.in (SFILES): Add ada-varobj.c.
8010 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8011 (COMMON_OBS): Add ada-varobj.o.
8012
7a290c40
JB
80132012-03-28 Joel Brobecker <brobecker@adacore.com>
8014
8015 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8016 (struct language_specific): New field "value_has_mutated".
8017 (languages): Set field "value_has_mutated" in each entry of array.
8018 (varobj_value_has_mutated): New function.
8019 (varobj_udpdate): Add handling of type mutation.
8020 (value_of_root): Add handling of type mutation.
8021 (ada_value_has_mutated): New function.
8022
ca9b8b9c
PA
80232012-03-28 Pedro Alves <palves@redhat.com>
8024
8025 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8026 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8027
cc0265cd
TT
80282012-03-28 Tom Tromey <tromey@redhat.com>
8029
8030 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8031 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8032 before returning.
8033
3ad2ec6f
TT
80342012-03-28 Tom Tromey <tromey@redhat.com>
8035
8036 * .dir-locals.el: New file.
8037
4a6510ba
PA
80382012-03-28 Pedro Alves <palves@redhat.com>
8039
8040 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8041
5a75128f
JB
80422012-03-28 Joel Brobecker <brobecker@adacore.com>
8043
8044 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8045 handling for r0.
8046
f99d8bf4
PA
80472012-03-27 Pedro Alves <palves@redhat.com>
8048
8049 Eliminate struct ui_stream.
8050
8051 * ui-out.h (struct ui_stream): Delete.
8052 (ui_out_field_stream): Adjust prototype.
8053 (ui_out_stream_new, ui_out_stream_delete)
8054 (make_cleanup_ui_out_stream_delete): Delete declarations.
8055 * ui-out.c (ui_out_field_stream): Change prototype to take a
8056 ui_file instead of a ui_stream. Adjust.
8057 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8058 (make_cleanup_ui_out_stream_delete): Delete.
8059 * breakpoint.c (print_breakpoint_location)
8060 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8061 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8062 * disasm.c (dump_insns): Ditto.
8063 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8064 prototype.
8065 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8066 ui_stream/ui_out_stream_new.
8067 * infcmd.c (print_return_value): Ditto.
8068 * osdata.c (info_osdata_command): Don't allocate a local
8069 ui_stream.
8070 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8071 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8072 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8073 allocate a local ui_stream.
8074 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8075 instead of ui_stream/ui_out_stream_new.
8076 (list_args_or_locals): Don't allocate a local ui_stream.
8077 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8078 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8079 ui_stream/ui_out_stream_new.
8080 * cli/cli-setshow.c (do_setshow_command): Ditto.
8081
6350a066 80822012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8083
6350a066
PA
8084 * arm-linux-tdep.c (arm_linux_init_abi): Call
8085 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8086 * arm-tdep.c (arm_process_record): New function.
8087 (deallocate_reg_mem): New function.
8088 (decode_insn): New function.
8089 (thumb_record_branch): New function.
8090 (thumb_record_ldm_stm_swi(): New function.
8091 (thumb_record_misc): New function.
8092 (thumb_record_ld_st_stack): New function.
8093 (thumb_record_ld_st_imm_offset): New function.
8094 (thumb_record_ld_st_reg_offset(): New function.
8095 (thumb_record_add_sub_cmp_mov): New function.
8096 (thumb_record_shift_add_sub): New function.
8097 (arm_record_coproc_data_proc): New function.
8098 (arm_record_coproc): New function.
8099 (arm_record_b_bl): New function.
8100 (arm_record_ld_st_multiple): New function.
8101 (arm_record_ld_st_reg_offset): New function.
8102 (arm_record_ld_st_imm_offset): New function.
8103 (arm_record_data_proc_imm): New function.
8104 (arm_record_data_proc_misc_ld_str): New function.
8105 (arm_record_extension_space): New function.
8106 (arm_record_strx): New function.
8107 (sbo_sbz): New function.
8108 (struct insn_decode_record): New structure for arm insn record.
8109 (REG_ALLOC): New macro for reg allocations.
8110 (MEM_ALLOC): New macro for memory allocations.
8111 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8112
89e028e2
AS
81132012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8114
8115 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8116 (store_register): Likewise.
8117
6350a066 81182012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8119
6350a066 8120 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8121
5b43fab2
JK
81222012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8123
8124 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8125 Describe also the option "auto".
8126
b5453b95
RH
81272012-03-22 Richard Henderson <rth@redhat.com>
8128
8129 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8130 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8131
227ee7fc
RH
81322012-03-22 Richard Henderson <rth@redhat.com>
8133
8134 * jit.c (jit_read_code_entry): Compute alignment and offset of
8135 int64_t member before computing entry_size.
8136
7b282c5a
SCR
81372012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8138
8139 Python scripting: Add new method Value.referenced_value to
8140 gdb.Value which can dereference pointer as well as reference
8141 values.
8142 * NEWS: Add entry under 'Python scripting' about the new method
8143 Value.referenced_value on gdb.Value objects.
8144 * python/py-value.c (valpy_referenced_value): New function
8145 defining a new method on gdb.Value objects which can dereference
8146 pointer and reference values.
8147
0c83539f
SCR
81482012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8149
8150 * MAINTAINERS (Write After Approval): Add myself to the list.
8151
7ccffd7c
KB
81522012-03-21 Kevin Buettner <kevinb@redhat.com>
8153
8154 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8155 in addition to "main".
8156
bd0b9f9e
JB
81572012-03-21 Joel Brobecker <brobecker@adacore.com>
8158
8159 * expression.h (op_name): Add declaration.
8160 * expprint.c (op_name): Remove declaration. Make non-static.
8161 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8162
a5362b9a
TS
81632012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8164
8165 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8166 of struct siginfo.
8167 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8168 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8169 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8170 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8171 (linux_nat_get_siginfo): Likewise.
8172 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8173 (linux_nat_get_siginfo): Likewise.
8174 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8175 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8176 * procfs.c (gdb_siginfo_t): Likewise.
8177
adcadaab
MF
81782012-03-21 Mike Frysinger <vapier@gentoo.org>
8179
8180 * .gitignore: Ignore more files.
8181
e278ad5b
PA
81822012-03-20 Pedro Alves <palves@redhat.com>
8183
8184 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8185 returns.
8186
741e63d7
YQ
81872012-03-20 Yao Qi <yao@codesourcery.com>
8188
8189 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8190 comment.
8191
b64f50a1
JK
81922012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8193
8194 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8195 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8196 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8197 sect_offset.
8198 * dwarf2expr.h (cu_offset, sect_offset): New types.
8199 (struct dwarf_expr_context_funcs) <dwarf_call>
8200 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8201 sect_offset.
8202 (struct dwarf_expr_context) <len>: Improve the comment.
8203 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8204 cu_offset and sect_offset.
8205 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8206 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8207 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8208 * dwarf2loc.h: Include dwarf2expr.h.
8209 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8210 and sect_offset.
8211 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8212 Improve the comment.
8213 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8214 (struct signatured_type, struct line_header, struct partial_die_info)
8215 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8216 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8217 (get_die_type_at_offset, create_cus_from_index)
8218 (create_signatured_type_table_from_index, dw2_get_file_names)
8219 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8220 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8221 (create_debug_types_hash_table, process_psymtab_comp_unit)
8222 (load_partial_comp_unit, create_all_comp_units)
8223 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8224 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8225 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8226 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8227 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8228 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8229 (find_partial_die, read_attribute_value, lookup_die_type)
8230 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8231 (is_ref_attr): New function comment.
8232 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8233 Use cu_offset and sect_offset.
8234 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8235 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8236 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8237 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8238 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8239 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8240 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8241 sect_offset.
8242
e97a38f7
JK
82432012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8244
8245 Code cleanup.
8246 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8247 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8248 with xfree.
8249 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8250
8320cc4f
JK
82512012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8252
8253 * NEWS: Describe new options --init-command=FILE, -ix and
8254 --init-eval-command=COMMAND, -iex.
8255 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8256 CMDARG_INIT_COMMAND.
8257 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8258 "init-command", "init-eval-command", "ix" and "iex" to the variable
8259 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8260 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8261 (print_gdb_help): Describe --init-command=FILE, -ix and
8262 --init-eval-command=COMMAND, -iex.
8263
26743505
JK
82642012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 Code cleanup.
8267 * main.c (struct cmdarg): Move it here from main. Add more comments.
8268 (cmdarg_s, VEC (cmdarg_s)): New.
8269 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8270 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8271 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8272 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8273 of CMDARG.
8274
5ff5c7b4
TT
82752012-03-19 Tom Tromey <tromey@redhat.com>
8276
8277 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8278
ab260dad
JK
82792012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8280
8281 PR symtab/13777
8282 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8283 GCC >=4.5.
8284
c366c1f0
TT
82852012-03-16 Chris January <chris.january@allinea.com>
8286
8287 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8288 of clear.
8289
e16edb45
TT
82902012-03-16 Chris January <chris.january@allinea.com>
8291
8292 * source.c (add_path): Use memmove instead of strcpy because the
8293 strings overlap.
8294
53ba8333
JB
82952012-03-16 Joel Brobecker <brobecker@adacore.com>
8296
8297 * value.h (set_value_parent): Add declaration.
8298 * value.c (set_value_parent): New function.
8299 (value_address): If VALUE->PARENT is not NULL, then use it as
8300 the base address instead of VALUE->LOCATION.address.
8301 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8302 the same as OBJ's address. Adjust V's offset accordingly.
8303 Set V's parent.
8304
481860b3
GB
83052012-03-16 Gary Benson <gbenson@redhat.com>
8306
8307 PR breakpoints/10738
8308 * dwarf2read.c (use_deprecated_index_sections): New global.
8309 (struct partial_die_info): New member may_be_inlined.
8310 (read_partial_die): Set may_be_inlined where appropriate.
8311 (add_partial_subprogram): Add partial symbols for partial
8312 DIEs that may be inlined.
8313 (new_symbol_full): Add inlined subroutines to the current
8314 scope.
8315 (write_psymtabs_to_index): Bump version number.
8316 (dwarf2_read_index): Read only version 6 indices unless
8317 use_deprecated_index_sections is set.
8318 * linespec.c (symbol_and_data_callback): New structure.
8319 (iterate_inline_only): New function.
8320 (iterate_over_all_matching_symtabs): New argument
8321 "include_inline". If nonzero, also call the callback for
8322 symbols representing inlined subroutines.
8323 (lookup_prefix_sym): Pass extra argument to the above.
8324 (find_function_symbols): Likewise.
8325 (add_matching_symbols_to_info): Likewise.
8326 * NEWS: Mention that GDB can now set breakpoints on inlined
8327 functions.
8328
d0e7e15a
PM
83292012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8330
8331 * p-typeprint.c (pascal_type_print_method_args):
8332 Fix display of parameter of methods.
8333
3d354654
PM
83342012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8335
8336 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8337 Add missing prototype.
8338
cafe75b0
JK
83392012-03-16 Yao Qi <yao@codesourcery.com>
8340 Jan Kratochvil <jan.kratochvil@redhat.com>
8341
8342 Fix false compilation warning.
8343 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8344
25f8c692
JL
83452012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8346 Pedro Alves <pedro@codesourcery.com>
8347
8348 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8349 (arm_register_g_packet_guesses): New function.
8350 (arm_gdbarch_init): Don't force a target description with
8351 registers when the executable is detected as M-profile. Instead
8352 set gdbarch->tdep->is_m. Register `g' packet guesses.
8353 (_initialize_arm_tdep): Initialize the new target description.
8354 * features/arm-with-m-fpa-layout.xml: New description.
8355 * features/arm-with-m-fpa-layout.c: New, generated.
8356
35c63cd8
JB
83572012-03-15 Joel Brobecker <brobecker@adacore.com>
8358
8359 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8360 Update function description.
8361 (insert_bp_location): Do not wipe bl->target_info out.
8362 * mem-break.c: #include "gdb_string.h".
8363 (default_memory_insert_breakpoint): Do not call target_read_memory
8364 with a pointer to the breakpoint's shadow_contents buffer. Use
8365 a local buffer instead.
8366 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8367
57651221
TT
83682012-03-15 Tom Tromey <tromey@redhat.com>
8369
8370 * NEWS: Mention "info vtbl", not "info vtable".
8371 * cp-support.c (info_vtbl_command): Fix comment.
8372 (_initialize_cp_support): Fix text.
8373
410528f0
TT
83742012-03-15 Tom Tromey <tromey@redhat.com>
8375
8376 * cp-valprint.c (cp_print_value_fields): Use
8377 print_function_pointer_address for vtable slot.
8378
c4aeac85
TT
83792012-03-15 Tom Tromey <tromey@redhat.com>
8380
8381 * gnu-v3-abi.c (struct value_and_voffset): New.
8382 (hash_value_and_voffset, eq_value_and_voffset)
8383 (compare_value_and_voffset, compute_vtable_size)
8384 (print_one_vtable, gnuv3_print_vtable): New functions.
8385 (init_gnuv3_ops): Initialize 'print_vtable' field.
8386 * cp-support.c (info_vtbl_command): New function.
8387 (_initialize_cp_support): Add "info vtbl".
8388 * cp-abi.h (cplus_print_vtable): Declare.
8389 (struct cp_abi_ops) <print_vtable>: New field.
8390 * cp-abi.c (cplus_print_vtable): New function.
8391 * NEWS: Update.
8392
95cbceff
TT
83932012-03-15 Tom Tromey <tromey@redhat.com>
8394
8395 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8396 iterate_over_symbols.
8397
589b4a32
DE
83982012-03-14 Doug Evans <dje@google.com>
8399
8400 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8401 DW_OP_GNU_parameter_ref.
8402
e837f12a
JK
84032012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8404
8405 Fix double prompt of 'interpreter-exec mi'.
8406 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8407 (mi_interpreter_resume): use it.
8408 (mi_execute_command_input_handler): New function.
8409 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8410 mi_execute_command_input_handler.
8411
ff1e4526 84122012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8413
8414 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8415 prototype.
8416 (darwin_debug_port_info): Make static.
8417 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8418 * machoread.c (_initialize_machoread): Add prototype.
8419 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8420 (i386_darwin_set_control, i386_darwin_get_control)
8421 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8422 i386_darwin_get_status, i386_darwin_get_control):
8423 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8424
d8a5d6ee
JB
84252012-03-13 Joel Brobecker <brobecker@adacore.com>
8426
8427 * ax-gdb.c (gen_usual_unary): Remove special handling of
8428 enum and bool types.
8429
af381b8c
JB
84302012-03-13 Joel Brobecker <brobecker@adacore.com>
8431
8432 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8433
786c562f
JB
84342012-03-13 Joel Brobecker <brobecker@adacore.com>
8435
8436 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8437
e3ebf1bb
JB
84382012-03-13 Chris January <chris.january@allinea.com>
8439
8440 * aix-thread.c (fill_sprs): Store the floating point registers
8441 at the correct offsets into vals.
8442
c5b7e1cb
DE
84432012-03-13 Doug Evans <dje@google.com>
8444
16899756
DE
8445 * NEWS: Mention symbol-reloading has been deleted.
8446 * symfile.c (symbol_reloading): Delete.
8447 (show_symbol_reloading): Delete.
8448 (_initialize_symfile): Delete set/show symbol-reloading.
8449
c5b7e1cb
DE
8450 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8451 read_in_chain until we have successfully read it in.
8452 (load_full_comp_unit): Ditto.
8453 (read_signatured_type): Add comment.
8454
46cb6474
JB
84552012-03-13 Chris January <chris.january@allinea.com>
8456
8457 * stabsread.c (fix_common_block): Change type of valu argument
8458 to CORE_ADDR.
8459
76219d77
JB
84602012-03-13 Chris January <chris.january@allinea.com>
8461
8462 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8463 instruction.
8464
87b0bb13
JK
84652012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467 * common/linux-procfs.c (linux_proc_get_int): New, from
8468 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8469 field.
8470 (linux_proc_get_tgid): Only call linux_proc_get_int.
8471 (linux_proc_get_tracerpid): New.
8472 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8473 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8474 linux_proc_pid_has_state.
8475 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8476 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8477 (linux_ptrace_attach_warnings): New.
8478 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8479 New declaration.
8480 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8481 (linux_nat_attach): New variables ex, buffer, message and message_s.
8482 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8483
5f572dec
JK
84842012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8485
8486 * Makefile.in (linux-ptrace.o): New.
8487 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8488 from linux-nat.c.
8489 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8490 * common/linux-ptrace.c: New file.
8491 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8492 * config/arm/linux.mh: Likewise.
8493 * config/i386/linux.mh: Likewise.
8494 * config/i386/linux64.mh: Likewise.
8495 * config/ia64/linux.mh: Likewise.
8496 * config/m32r/linux.mh: Likewise.
8497 * config/m68k/linux.mh: Likewise.
8498 * config/mips/linux.mh: Likewise.
8499 * config/pa/linux.mh: Likewise.
8500 * config/powerpc/linux.mh: Likewise.
8501 * config/powerpc/ppc64-linux.mh: Likewise.
8502 * config/powerpc/spu-linux.mh: Likewise.
8503 * config/s390/s390.mh: Likewise.
8504 * config/sparc/linux.mh: Likewise.
8505 * config/sparc/linux64.mh: Likewise.
8506 * config/xtensa/linux.mh: Likewise.
8507 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8508 common/linux-procfs.c.
8509 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8510
44f238bb
PA
85112012-03-13 Hui Zhu <teawater@gmail.com>
8512 Pedro Alves <palves@redhat.com>
8513
8514 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8515 CREATE_BREAKPOINT_FLAGS_INSERTED.
8516 (create_breakpoint_sal, create_breakpoints_sal)
8517 (base_breakpoint_create_breakpoints_sal)
8518 (tracepoint_create_breakpoints_sal)
8519 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8520 down.
8521 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8522 (ftrace_command, strace_command): Adjust.
8523 (create_tracepoint_from_upload): Pass
8524 CREATE_BREAKPOINT_FLAGS_INSERTED.
8525 * breakpoint.h (enum breakpoint_create_flags): New.
8526 (create_breakpoint): New flags parameter.
8527 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8528 * python/py-breakpoint.c (bppy_init): Adjust.
8529 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8530 * spu-tdep.c (spu_catch_start): Adjust.
8531
1e51243a
PA
85322012-03-13 Pedro Alves <palves@redhat.com>
8533 Hui Zhu <teawater@gmail.com>
8534 Yao Qi <yao@codesourcery.com>
8535
8536 * remote.c (struct remote_state): New field `starting_up'.
8537 (remote_start_remote): Set and clear it.
8538 (remote_can_download_tracepoint): If starting up, return false.
8539
fa3064dd
YQ
85402012-03-13 Yao Qi <yao@codesourcery.com>
8541
8542 * inferior.h (struct inferior): Remove fields any_syscall_count,
8543 syscalls_counts and total_syscalls_count. Move them to new
8544 struct catch_syscall_inferior_data in breakpoint.c.
8545 * breakpoint.c: Call DEF_VEC_I(int).
8546 (struct catch_syscall_inferior_data): New.
8547 (get_catch_syscall_inferior_data): New.
8548 (catch_syscall_inferior_data_cleanup): New.
8549 (insert_catch_syscall): Update to access data in
8550 struct catch_syscall_inferior_data.
8551 (insert_catch_syscall): Likewise.
8552 (remove_catch_syscall): Likewise.
8553 (remove_catch_syscall): Likewise.
8554 (is_syscall_catchpoint_enabled): Likewise.
8555 (add_catch_command): Likewise.
8556 (_initialize_breakpoint): Register cleanup.
8557 * breakpoint.h: Removed DEF_VEC_I(int).
8558 * dwarf2loc.c: Call DEF_VEC_I(int).
8559 * mi/mi-main.c: Likewise.
8560
460fac3c
MK
85612012-03-12 Mark Kettenis <kettenis@gnu.org>
8562
8563 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8564
e1aca11e
JB
85652012-03-12 Chris January <chris.january@allinea.com>
8566
8567 * aix-thread.c (_initialize_aix_thread): Add prototype.
8568 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8569 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8570
649c7061
JB
85712012-03-12 Joel Brobecker <brobecker@adacore.com>
8572
8573 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8574 include of "amd64-nat.h".
8575
0b49e518
TT
85762012-03-12 Tom Tromey <tromey@redhat.com>
8577
8578 * buildsym.c (record_pending_block): Now static.
8579 * buildsym.h: (record_pending_block): Remove.
8580
fd24fa94
AT
85812012-03-12 Andreas Tobler <andreast@fgznet.ch>
8582
8583 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8584
ba919b58
TT
85852012-03-09 Tom Tromey <tromey@redhat.com>
8586
8587 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8588 producer_is_gxx_lt_4_6>: New fields.
8589 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8590
a48e046c
TT
85912012-03-09 Tom Tromey <tromey@redhat.com>
8592
8593 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8594
6f5e9362
JB
85952012-03-08 Joel Brobecker <brobecker@adacore.com>
8596
8597 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8598 prototype.
8599
8d037db9
JB
86002012-03-08 Joel Brobecker <brobecker@adacore.com>
8601
8602 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8603
4e841acf
JK
86042012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8605
8606 Fix -Wmissing-prototypes build.
8607 * arm-linux-nat.c (get_thread_id): Make it static.
8608 * xtensa-linux-nat.c (get_thread_id): Likewise.
8609
c6030312
JB
86102012-03-08 Joel Brobecker <brobecker@adacore.com>
8611
8612 * server.c (process_point_options): If a conditional expression
8613 is found, only print a message if remote_debug is nonzero.
8614
52323be9
LM
86152012-03-08 Luis Machado <lgustavo@codesourcery.com>
8616
8617 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8618 of internal error for unknown/unsupported types.
8619
7fe25d9b
JK
86202012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8621
8622 Fix CU relative vs. absolute DIE offsets.
8623 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8624 offset to offset_in_cu.
8625 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8626 TYPE_OFFSET.
8627 (dwarf2_fetch_die_location_block): Rename parameter offset to
8628 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8629
05e7c244
JK
86302012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8631
8632 * libunwind-frame.c: Rename to ...
8633 * ia64-libunwind-tdep.c: ... here.
8634 * libunwind-frame.h: Rename to ...
8635 * ia64-libunwind-tdep.h: ... here.
8636 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8637 ia64-libunwind-tdep.h.
8638 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8639 * README (--with-libunwind): Rename to ...
8640 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8641 * config.in: Regenerate.
8642 * configure: Regenerate.
8643 * configure.ac: New option --with-libunwind-ia64, make the
8644 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8645 Remove AC_DEFINE for HAVE_LIBUNWIND.
8646 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8647 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8648 Rename libunwind-frame in the general comment.
8649 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8650 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8651 Move forward declarations inside #ifndef. Rename libunwind-frame in
8652 the general comment.
8653 * ia64-tdep.c: Rename libunwind-frame.h #include to
8654 ia64-libunwind-tdep.h.
8655 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8656 (ia64_libunwind_descr): Rename libunwind-frame to
8657 ia64-libunwind-tdep in these function comments.
8658 * ia64-tdep.h: Rename libunwind-frame.h #include to
8659 ia64-libunwind-tdep.h.
8660 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8661 ia64-libunwind-tdep in that data comment.
8662
3755cbfd
JK
86632012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8664
8665 * libunwind-frame.h (struct frame_unwind): New declaration.
8666
d1cda5d9
JB
86672012-03-08 Joel Brobecker <brobecker@adacore.com>
8668
8669 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8670 "set breakpoint condition-evaluation" command.
8671
a0ba0aa2
TG
86722012-03-08 Tristan Gingold <gingold@adacore.com>
8673
8674 * sparc-stub.c: Move to stubs/
8675 * sh-stub.c: Likewise.
8676 * m68k-stub.c: Likewise.
8677 * m32r-stub.c: Likewise.
8678 * i386-stub.c: Likewise.
8679
7b8b6d6d
AS
86802012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8681
007cafee
AS
8682 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8683 linux_get_siginfo_type.
8684
7b8b6d6d
AS
8685 * m68klinux-nat.c: Include "gdb_proc_service.h".
8686 (PTRACE_GET_THREAD_AREA): Define.
8687 (ps_get_thread_area): New function.
8688
bba74b36
YQ
86892012-03-08 Yao Qi <yao@codesourcery.com>
8690
8691 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8692 `xsnprintf'.
8693 (remote_query_attached): Likewise.
8694 (remote_static_tracepoint_marker_at): Likewise.
8695 (remote_set_permissions): Likewise.
8696 (remote_detach_1, extended_remote_attach_1): Likewise.
8697 (send_g_packet, remote_vkill): Likewise.
8698 (extended_remote_disable_randomization): Likewise.
8699 (remote_add_target_side_condition): Likewise.
8700 (remote_insert_breakpoint): Likewise.
8701 (remote_remove_breakpoint): Likewise.
8702 (remote_insert_watchpoint): Likewise.
8703 (remote_remove_watchpoint): Likewise.
8704 (remote_insert_hw_breakpoint): Likewise.
8705 (remote_insert_hw_breakpoint): Likewise.
8706 (remote_remove_hw_breakpoint): Likewise.
8707 (remote_download_command_source): Likewise.
8708 (remote_download_tracepoint): Likewise.
8709 (remote_download_trace_state_variable): Likewise.
8710 (remote_disable_tracepoint): Likewise.
8711 (remote_trace_set_readonly_regions): Likewise.
8712 (remote_get_tracepoint_status): Likewise.
8713 (remote_trace_find): Likewise.
8714 (remote_get_trace_state_variable_value): Likewise.
8715 (remote_set_disconnected_tracing): Likewise.
8716 (remote_set_circular_trace_buffer): Likewise.
8717 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8718 (remote_use_agent): Likewise.
8719 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8720 Update callers.
8721
9b224c5e
PA
87222012-03-07 Pedro Alves <palves@redhat.com>
8723
8724 * NEWS: Mention QProgramSignals.
8725 * inferior.h (update_signals_program_target): Declare.
8726 * infrun.c: (update_signals_program_target): New.
8727 (handle_command): Update the target of the new program signals
8728 array changes.
8729 * remote.c (PACKET_QProgramSignals): New enum.
8730 (last_program_signals_packet): New global.
8731 (remote_program_signals): New.
8732 (remote_start_remote): Update the target with the program signals
8733 list.
8734 (remote_protocol_features): Add entry for QPassSignals.
8735 (remote_open_1): Free anc clear last_program_signals_packet.
8736 (init_remote_ops): Install remote_program_signals.
8737 * target.c (update_current_target): Adjust.
8738 (target_program_signals): New.
8739 * target.h (struct target_ops) <to_program_signals>: New field.
8740 (target_program_signals): Declare.
8741
74c48cbb
PA
87422012-03-07 Pedro Alves <palves@redhat.com>
8743
8744 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8745 extensions.
8746
0c13fc49
AS
87472012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8748
8749 * m68klinux-nat.c (getregs_supplies): Make static.
8750 (getfpregs_supplies): Likewise.
8751 (have_ptrace_getregs): Likewise.
8752
1281d2a3
JB
87532012-03-06 Joel Brobecker <brobecker@adacore.com>
8754
8755 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8756 in call to get_die_type_at_offset.
8757
2b03b41d
SS
87582012-03-06 Stan Shebs <stan@codesourcery.com>
8759
8760 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8761 * mi/mi-cmd-disas.c: Ditto.
8762 * mi/mi-cmd-env.c: Ditto.
8763 * mi/mi-cmd-file.c: Ditto.
8764 * mi/mi-cmd-stack.c: Ditto.
8765 * mi/mi-cmd-target.c: Ditto.
8766 * mi/mi-cmd-var.c: Ditto.
8767 * mi/mi-cmds.c: Ditto.
8768 * mi/mi-cmds.h: Ditto.
8769 * mi/mi-console.c: Ditto.
8770 * mi/mi-getopt.c: Ditto.
8771 * mi/mi-getopt.h: Ditto.
8772 * mi/mi-interp.c: Ditto.
8773 * mi/mi-main.c: Ditto.
8774 * mi/mi-out.c: Ditto.
8775 * mi/mi-parse.c: Ditto.
8776 * mi/mi-parse.h: Ditto.
8777 * mi/mi-symbol-cmds.c: Ditto.
8778
8779 * mi/mi-getopt.h: Move mi_opt struct up.
8780 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8781 return.
8782 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8783
c988ad87
TT
87842012-03-06 Tom Tromey <tromey@redhat.com>
8785
8786 * proc-service.c (ps_pglobal_lookup): Set the current program
8787 space.
8788
1b7c1b10
PA
87892012-03-06 Pedro Alves <palves@redhat.com>
8790
8791 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8792
3c182069
JB
87932012-03-05 Joel Brobecker <brobecker@adacore.com>
8794
8795 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8796
2e794194
JK
87972012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8798
8799 Code cleanup.
8800 * common/linux-osdata.c (linux_common_core_of_thread): New function
8801 comment.
8802 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8803 call by linux_common_core_of_thread.
8804 (linux_nat_core_of_thread_1): Remove.
8805 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8806 * linux-thread-db.c: Include linux-osdata.h.
8807 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8808 linux_common_core_of_thread.
8809
9f9f1f31
TT
88102012-03-05 Tom Tromey <tromey@redhat.com>
8811
8812 * value.c (value_primitive_field): Don't fetch contents for
8813 non-virtual bases.
8814
b7b189f3
TT
88152012-03-05 Tom Tromey <tromey@redhat.com>
8816
8817 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8818
05b8a789 88192012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8820
5538f557
JB
8821 * s390-nat.c: Include "gregset.h".
8822
75528772
JK
88232012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8824
8825 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8826 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8827 (libunwind_load): New variable so_error, use it for dlerror. Try to
8828 load also LIBUNWIND_SO_7.
8829
275418ae
PA
88302012-03-05 Pedro Alves <palves@redhat.com>
8831
8832 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8833 is not NULL, and remove resulting dead code.
8834
5cbb9812
TS
88352012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8836
8837 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8838 prologue to sh_analyze_prologue.
8839 (sh_analyze_prologue): Make better use of such an upper limit, and
8840 generally be more cautious about accessing memory.
8841
541515ad
TT
88422012-03-05 Tom Tromey <tromey@redhat.com>
8843
8844 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8845 _initialize_ia64_hpux_tdep.
8846
b4d36fb8
PA
88472012-03-05 Pedro Alves <palves@redhat.com>
8848
24490249
PA
8849 PR gdb/13766
8850
b4d36fb8
PA
8851 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8852 the register state is clear, supply explicit zero, instead of
8853 marking the register unavailable.
8854
60c9a3c0
TG
88552012-03-05 Tristan Gingold <gingold@adacore.com>
8856
8857 * NEWS: Mention OpenVMS ia64 new target.
8858
696759ad
TG
88592012-03-05 Tristan Gingold <gingold@adacore.com>
8860
8861 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8862 (ia64_unw_accessors, ia64_unw_rse_accessors)
8863 (ia64_libunwind_descr): Declare.
8864 * ia64-vms-tdep.c: New file.
8865 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8866 (ia64_libunwind_descr): Make them public.
8867 * configure.tgt: Add ia64-*-*vms*.
8868 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8869 (ALLDEPFILES): Add ia64-vms-tdep.c
8870
34864976
TG
88712012-03-05 Tristan Gingold <gingold@adacore.com>
8872
169081d0
TG
8873 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8874 * remote.c (PACKET_qXfer_uib): New enum value.
8875 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8876 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8877 (_initialize_remote): Call add_packet_config_cmd for
8878 xfer:uib packet.
8879
88802012-03-05 Tristan Gingold <gingold@adacore.com>
8881
8882 * osabi.c (gdb_osabi_names): Add OpenVMS.
8883 (generic_elf_osabi_sniffer): Likewise.
8884 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8885
6597b100
JK
88862012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8887
8888 Removed unused code.
8889 * libunwind-frame.c (libunwind_frame_unwind)
8890 (libunwind_frame_base_address): Remove.
8891 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8892
87399aa1
YQ
88932012-03-04 Yao Qi <yao@codesourcery.com>
8894
8895 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8896 remove trailing new line.
8897 (agent_run_command, agent_run_command): Add _ markup.
8898 (agent_capability_check): Likewise.
8899
abf1152a
JK
89002012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8901
8902 * breakpoint.c (set_condition_evaluation_mode): Set
8903 CONDITION_EVALUATION_MODE unconditionally.
8904
5808517f
YQ
89052012-03-03 Yao Qi <yao@codesourcery.com>
8906
8907 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8908 * common/agent.h: Update declaration.
8909 * inf-child.c (inf_child_use_agent): New.
8910 (inf_child_can_use_agent): New.
8911 (inf_child_target): Initialize fields `to_use_agent'
8912 and `to_can_use_agent'.
8913 * agent.c (agent_new_objfile): New.
89b7509a 8914 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8915 observer.
8916
8917 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8918 New.
89b7509a 8919 (linux_target_install_ops): Initialize field
5808517f
YQ
8920 `to_static_tracepoint_markers_by_strid'.
8921 * remote.c (free_current_marker): Move it to ...
8922 * tracepoint.c (free_current_marker): ... here. New.
8923 (cleanup_target_stop): New.
8924 * tracepoint.h: Declare free_current_marker.
8925 * NEWS: Add one entry about `info static-tracepoint-marker'.
8926
58b4daa5
YQ
89272012-03-03 Yao Qi <yao@codesourcery.com>
8928
8929 * common/agent.c (agent_loaded_p): New.
89b7509a 8930 (agent_look_up_symbols): New global.
58b4daa5
YQ
8931 * common/agent.h: Declare agent_loaded_p.
8932
8ffcbaaf
YQ
89332012-03-03 Yao Qi <yao@codesourcery.com>
8934
8935 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8936 (agent_capability_check, agent_capability_invalidate): New.
8937 (symbol_list): New array element.
8938 * common/agent.h (enum agent_capa): New.
8939 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8940
d1feda86
YQ
89412012-03-03 Yao Qi <yao@codesourcery.com>
8942
8943 * target.h (struct target_ops) <to_use_agent>: New field.
8944 (struct target_ops) <to_can_use_agent>: New field.
8945 (target_use_agent, target_can_use_agent): New macro.
8946 * target.c (update_current_target): Update.
8947 * remote.c: New enum `PACKET_QAgent'.
8948 (remote_protocol_features): Add a new element.
8949 (remote_use_agent, remote_can_use_agent): New.
8950 (init_remote_ops): Initialize field `can_use_agent' with
8951 remote_can_use_agent. Intiailize field `use_agent' with
8952 remote_use_agent.
8953 * common/agent.c (use_agent): New global.
8954 * common/agent.h: Declare it.
8955 * tracepoint.c (info_static_tracepoint_markers_command): Add
8956 comment.
8957 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8958 (COMMON_OBS): Add common/agent.o and agent.o
8959 (common-agent.o): New rule.
8960 * agent.c: New.
8961
2fa291ac
YQ
89622012-03-03 Yao Qi <yao@codesourcery.com>
8963
8964 * common/agent.c: New.
8965 * common/agent.h: New.
8966 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8967 AC_CHECK_HEADERS.
8968 * configure, configh.in: Regenerated.
8969
9fc05685
KB
89702012-03-02 Kevin Buettner <kevinb@redhat.com>
8971
8972 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8973 unless it exists for this architecture.
8974
a5ee536b
JB
89752012-03-02 Joel Brobecker <brobecker@adacore.com>
8976
8977 * language.h (struct language_defn): New "method" la_read_var_value.
8978 * findvar.c: #include "language.h".
8979 (default_read_var_value): Renames read_var_value. Rewrite
8980 function description.
8981 (read_var_value): New function.
8982 * value.h (default_read_var_value): Add prototype.
8983 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8984 New functions.
8985 (ada_language_defn): Add entry for la_read_var_value.
8986 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8987 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8988 language_defn structures to add entry for new la_read_var_value
8989 field.
8990
f59f708a
PA
89912012-03-02 Tom Tromey <tromey@redhat.com>
8992 Pedro Alves <palves@redhat.com>
8993
8994 PR breakpoints/13776:
8995 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8996 breakpoints.
8997 (delete_longjmp_breakpoint_at_next_stop): New.
8998 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8999 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9000 before deleting the inferior. Add comments.
9001 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9002 breakpoints immediately, but only on next stop. Move that code
9003 next to where we mark other breakpoints for deletion.
9004
44099a67
JB
90052012-03-02 Joel Brobecker <brobecker@adacore.com>
9006
9007 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9008 marker.
9009 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9010 violation.
9011
2a2ef594
PA
90122012-03-02 Pedro Alves <palves@redhat.com>
9013
9014 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9015
b261e0c5
UW
90162012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9017
9018 Fix -Wmissing-prototypes build.
9019 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9020 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9021 (gdbsim_has_memory): Likewise.
9022
a95babbf
YQ
90232012-03-02 Yao Qi <yao@codesourcery.com>
9024
9025 Fix -Wmissing-prototypes build.
9026 * charset.c (phony_iconv_open): Make static.
9027 (phony_iconv_close, phony_iconv): Likewise.
9028 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9029 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9030 prototype.
9031 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9032 * ser-mingw.c (create_select_thread): Make static.
9033 * windows-termcap.c (tgetent): New prototype.
9034 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9035
d603d4b3
JK
90362012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9037
9038 Fix -Wmissing-prototypes build.
9039 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9040 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9041 (_initialize_loadable): New prototypes.
9042
7fb3ad1f
DE
90432012-03-02 Doug Evans <dje@google.com>
9044
9045 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9046 abbrev table, read_comp_unit will do it.
9047
693be288
JK
90482012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9049
9050 Fix -Wmissing-prototypes build.
9051 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9052 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9053 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9054 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9055 (_initialize_arm_symbian_tdep): New prototype.
9056 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9057 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9058 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9059 static.
9060 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9061 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9062 prototype.
9063 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9064 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9065 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9066 static.
9067 * moxie-tdep.c (moxie_process_record): Likewise.
9068 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9069 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9070 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9071 (_initialize_rl78_tdep): New prototype.
9072 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9073 (_initialize_rx_tdep): New prototype.
9074 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9075 (_initialize_darwin_solib): New prototype.
9076 * solib-spu.c: Include solib-spu.h.
9077 (_initialize_spu_solib): New prototype.
9078 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9079 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9080 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9081 (tic6x_software_single_step): Make it static.
9082 (_initialize_tic6x_tdep): New prototype.
9083
638234e5
JK
90842012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9085
9086 Fix -Wmissing-prototypes build.
9087 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9088 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9089
f4a6f16d
JK
90902012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9091
9092 Fix -Wmissing-prototypes build.
9093 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9094 (frv_have_stopped_data_address): Remove.
9095
04dcf5fa
JK
90962012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 Fix -Wmissing-prototypes build.
9099 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9100 * sh-tdep.c: Include sh64-tdep.h.
9101 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9102 * sh64-tdep.c: Include sh64-tdep.h.
9103 * sh64-tdep.h: New file.
9104
19080931
MR
91052012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9106
9107 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9108
9aac7884
MR
91092012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9110
9111 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9112 sp_regnum once the gdbarch_init_osabi hook has been called.
9113
a385295e
MR
91142012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9115
9116 * mips-tdep.c (mips32_bc1_pc): New function.
9117 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9118 BPOSGE32 and BPOSGE64 instructions.
9119 (deal_with_atomic_sequence): Likewise.
9120 (mips32_instruction_has_delay_slot): Likewise.
9121
1faeff08 91222012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9123 Chris Dearman <chris@mips.com>
9124 Maciej W. Rozycki <macro@codesourcery.com>
9125 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9126
9127 * features/mips-dsp.xml: New file.
9128 * features/mips64-dsp.xml: New file.
9129 * features/mips-dsp-linux.xml: New file.
9130 * features/mips64-dsp-linux.xml: New file.
9131 * features/Makefile (WHICH): Add mips-dsp-linux and
9132 mips64-dsp-linux.
9133 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9134 * features/mips-dsp-linux.c: New file.
9135 * features/mips64-dsp-linux.c: New file.
9136 * regformats/mips-dsp-linux.dat: New file.
9137 * regformats/mips64-dsp-linux.dat: New file.
9138 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9139 registers.
9140 (mips64_linux_register_addr): Likewise.
9141 (mips64_linux_regsets_fetch_registers): Likewise.
9142 (mips64_linux_regsets_store_registers): Likewise.
9143 (mips64_linux_fetch_registers): Update call to
9144 mips64_linux_regsets_fetch_registers.
9145 (mips64_linux_store_registers): Update call to
9146 mips64_linux_regsets_store_registers.
9147 (mips_linux_read_description): Probe for DSP registers.
9148 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9149 and initialize_tdesc_mips64_dsp_linux.
9150 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9151 Remove padding of no longer used embedded register slots.
9152 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9153 (MIPS_RESTART_REGNUM): Redefine enum value.
9154 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9155 strings.
9156 (mips_tx39_reg_names): Likewise.
9157 (mips_linux_reg_names): New array of register names for Linux
9158 targets.
9159 (mips_register_name): Check for a null pointer in
9160 mips_processor_reg_names and return an empty string.
9161 (mips_register_type): Exclude embedded registers for the IRIX
9162 and Linux ABIs.
9163 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9164 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9165 DSP registers.
9166 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9167 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9168 (mips_gdbarch_init): Likewise. Initialize internal register
9169 indices for the Linux ABI. Use dynamic numbers to refer to
9170 registers, as applicable, while parsing the target description.
9171 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9172
263689d8
JB
91732012-03-01 Joel Brobecker <brobecker@adacore.com>
9174
9175 * frame.h (read_frame_register_unsigned): Fix typo in function
9176 description.
9177
f3b4f45c
PA
91782012-03-01 Pedro Alves <palves@redhat.com>
9179
9180 * jit-reader.in [!__cplusplus]
9181 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9182
b03a2011
PA
91832012-03-01 Pedro Alves <palves@redhat.com>
9184
9185 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9186 * configure: Regenerate.
9187
70221824
PA
91882012-03-01 Pedro Alves <palves@redhat.com>
9189
9190 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9191 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9192 (ftrace_command, strace_command): Make static.
9193 * d-lang.c (_initialize_d_language): Declare.
9194 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9195 * dwarf2loc.c (_initialize_dwarf2loc):
9196 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9197 * exec.c (exec_get_section_table): Make static.
9198 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9199 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9200 * inferior.c (remove_inferior_command, add_inferior_command)
9201 (clone_inferior_command): Make static.
9202 * linux-nat.c (linux_nat_thread_address_space)
9203 (linux_nat_core_of_thread): Make static.
9204 * linux-tdep.c (_initialize_linux_tdep): Declare.
9205 * objc-lang.c (_initialize_objc_lang): Declare.
9206 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9207 Make static.
9208 (_initialize_opencl_language): Declare.
9209 * record.c (_initialize_record): Declare.
9210 * remote.c (demand_private_info, remote_get_tib_address)
9211 (remote_supports_cond_tracepoints)
9212 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9213 Make static.
9214 * skip.c (_initialize_step_skip): Declare.
9215 * symtab.c (skip_prologue_using_lineinfo): Make static.
9216 * tracepoint.c (delete_trace_state_variable)
9217 (trace_variable_command, delete_trace_variable_command)
9218 (get_uploaded_tsv, find_matching_tracepoint_location)
9219 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9220 Make static.
9221 * value.c (pack_unsigned_long): Make static.
9222 * varobj.c (varobj_ensure_python_env): Make static.
9223 * windows-tdep.c (_initialize_windows_tdep): Declare.
9224 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9225
33fbcbee
PA
92262012-03-01 Pedro Alves <palves@redhat.com>
9227
9228 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9229 gdbarch parameter.
9230 (linux_init_abi): Install it as has_shared_address_space gdbarch
9231 callback.
9232
44d0cd3b
PA
92332012-03-01 Pedro Alves <palves@redhat.com>
9234
9235 * observer.c (observer_test_first_notification_function)
9236 (observer_test_second_notification_function)
9237 (observer_test_third_notification_function): Add declarations.
9238
ed01b82c
PA
92392012-03-01 Pedro Alves <palves@redhat.com>
9240
9241 * common/signals.c (default_target_signal_to_host)
9242 (default_target_signal_from_host): Move ...
9243 * arch-utils.c: ... here.
9244 * arch-utils.h (default_target_signal_to_host)
9245 (default_target_signal_from_host): Declare.
9246
9247 * common/signals.c (target_signal_from_command): Move ...
9248 * infrun.c: ... here.
9249 * inferior.h (target_signal_from_command): Declare.
9250 * target.h (target_signal_from_command)
9251 (default_target_signal_from_host, default_target_signal_to_host):
9252 Delete declarations.
9253
9254 * common/signals.c (_initialize_signals): Delete.
9255
c9b87335
PA
92562012-03-01 Pedro Alves <palves@redhat.com>
9257
9258 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9259 both __cplusplus and !__cplusplus.
9260
9340a6c0
PA
92612012-03-01 Pedro Alves <palves@redhat.com>
9262
9263 * psymtab.c (find_and_open_source): Delete declaration.
9264 * source.c (find_and_open_source): Move comment ...
9265 * source.h (find_and_open_source): ... to this new declaration.
9266
e451c4a1
PA
92672012-03-01 Pedro Alves <palves@redhat.com>
9268
9269 * inline-frame.c: Include inline-frame.h.
9270
983fb104
PA
92712012-03-01 Pedro Alves <palves@redhat.com>
9272
9273 * tui/tui-data.c (set_gen_win_origin): Delete.
9274 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9275 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9276
5fbce5df
PA
92772012-03-01 Pedro Alves <palves@redhat.com>
9278
9279 * remote.c (encode_actions): Delete declaration.
9280 * tracepoint.c (encode_actions): Make extern.
9281 * tracepoint.h (encode_actions): Declare.
9282
49a8461d
PA
92832012-03-01 Pedro Alves <palves@redhat.com>
9284
9285 * python/py-breakpoint.c: Include python.h.
9286 * python/py-continueevent.c (create_continue_event_object): Make
9287 static.
9288 * python/py-lazy-string.c (stpy_get_type): Make static.
9289 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9290 Make static.
9291 * python/py-utils.c (unicode_to_target_python_string): Make
9292 static.
9293 * python/py-value.c: Include python.h.
9294
9079102f
PA
92952012-03-01 Pedro Alves <palves@redhat.com>
9296
9297 * inferior.c (delete_threads_of_inferior): Delete.
9298
a298c5e8
PA
92992012-03-01 Pedro Alves <palves@redhat.com>
9300
9301 Import fallback definitions from glibc.
9302
9303 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9304 ps_prochandle): Forward declare.
9305 (ps_err_e): Use glibc's comments.
9306 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9307 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9308 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9309 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9310 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9311 (struct ps_prochandle): Adjust comment.
9312
e3084549
PA
93132012-03-01 Pedro Alves <palves@redhat.com>
9314
9315 * ada-lang.c (ada_modulus_from_name): Delete.
9316 * ada-lex.l (lexer_init): Make static.
9317
ad5f7d6e
PA
93182012-03-01 Pedro Alves <palves@redhat.com>
9319
9320 PR gdb/13767
9321
9322 * frame.c (read_frame_register_unsigned): New.
9323 * frame.h (read_frame_register_unsigned): Declare.
9324 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9325 Handle it.
9326 (print_i387_control_word): New parameter `control_p'. Handle it.
9327 (i387_print_float_info): Handle unavailable float registers.
9328
e0a4d108
KS
93292012-03-01 Keith Seitz <keiths@redhat.com>
9330
9331 * linespec.c (decode_line_2): Sort the list of methods
9332 alphabetically before presenting the user with a selection
9333 menu.
9334
122d1940
DE
93352012-03-01 Doug Evans <dje@google.com>
9336
9337 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9338 has_namespace_info.
9339 (dwarf2_read_abbrevs): Remove corresponding initialization.
9340
7d74f244
DE
93412012-03-01 Scott J. Goldman <scottjg@vmware.com>
9342
9343 * NEWS: Mention new python command class gdb.COMMAND_USER.
9344 * cli/cli-cmds.c (show_user): Print error when used on a python
9345 command.
9346 (init_cli_cmds): Update documentation strings for "show user" and
9347 "set/show max-user-call-depth" to clarify that it does not apply to
9348 python commands.
9349 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9350 error check.
9351 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9352 gdb python api.
9353 * top.c (execute_command): Only execute a user-defined command as a
9354 legacy macro if c->user_commands is set.
9355
e88acd96
TT
93562012-03-01 Tom Tromey <tromey@redhat.com>
9357
9358 * valprint.h (struct generic_val_print_decorations): New.
9359 (generic_val_print): Declare.
9360 * valprint.c (generic_val_print): New function.
9361 * p-valprint.c (p_decorations): New global.
9362 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9363 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9364 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9365 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9366 * m2-valprint.c (m2_decorations): New global.
9367 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9368 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9369 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9370 TYPE_CODE_ERROR>: Call generic_val_print.
9371 * f-valprint.c (f_decorations): New global.
9372 (f_val_print): Use print_function_pointer_address.
9373 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9374 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9375 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9376 generic_val_print.
9377 * c-valprint.c (c_decorations): New global.
9378 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9379 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9380 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9381 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9382 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9383 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9384 case.
9385
d3eab38a
TT
93862012-03-01 Tom Tromey <tromey@redhat.com>
9387
9388 * valprint.c (val_print): Update.
9389 * p-valprint (pascal_val_print): Return void.
9390 * p-lang.h (pascal_val_print): Return void.
9391 * m2-valprint.c (m2_val_print): Return void.
9392 * m2-lang.h (m2_val_print): Return void.
9393 * language.h (struct language_defn) <la_val_print>: Return void.
9394 * language.c (unk_lang_val_print): Return void.
9395 * jv-valprint.c (java_val_print): Return void.
9396 * jv-lang.h (java_val_print): Return void.
9397 * f-valprint.c (f_val_print): Return void.
9398 * f-lang.h (f_val_print): Return void.
9399 * d-valprint.c (d_val_print): Return void.
9400 (dynamic_array_type): Update.
9401 * d-lang.h (d_val_print): Return void.
9402 * c-valprint.c (c_val_print): Return void.
9403 * c-lang.h (c_val_print): Return void.
9404 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9405 void.
9406 * ada-lang.h (ada_val_print): Return void.
9407
35c0084b
TT
94082012-03-01 Tom Tromey <tromey@redhat.com>
9409
9410 * value.h (val_print): Return void.
9411 * valprint.c (val_print): Return void.
9412
a1f5dd1b
TT
94132012-03-01 Tom Tromey <tromey@redhat.com>
9414
9415 * value.h (common_val_print): Return void.
9416 * valprint.c (common_val_print): Return void.
9417
8e069a98
TT
94182012-03-01 Tom Tromey <tromey@redhat.com>
9419
9420 * value.h (value_print): Return void.
9421 * valprint.c (value_print): Return void.
9422 * p-valprint.c (pascal_value_print): Return void.
9423 * p-lang.h (pascal_value_print): Return void.
9424 * language.h (struct language_defn) <la_value_print>: Return
9425 void.
9426 * language.c (unk_lang_value_print): Return void.
9427 * jv-valprint.c (java_value_print): Return void.
9428 * jv-lang.h (java_value_print): Return void.
9429 * f-valprint.c (c_value_print): Don't declare.
9430 Include c-lang.h.
9431 * c-valprint.c (c_value_print): Return void.
9432 * c-lang.h (c_value_print): Return void.
9433 * ada-valprint.c (ada_value_print): Return void.
9434 * ada-lang.h (ada_value_print): Return void.
9435
be335936
TT
94362012-03-01 Tom Tromey <tromey@redhat.com>
9437
9438 * value.c (value_primitive_field): Handle virtual base classes.
9439
b0db66a7
TT
94402012-03-01 Tom Tromey <tromey@redhat.com>
9441
9442 * gdbtypes.h (struct vbase): Remove.
9443
132c57b4
TT
94442012-03-01 Tom Tromey <tromey@redhat.com>
9445
9446 * c-valprint.c (print_function_pointer_address): Move...
9447 * valprint.c: ... here. Make non-static.
9448 * m2-valprint.c (print_function_pointer_address): Remove.
9449 * valprint.h (print_function_pointer_address): Declare.
9450
e41eec66
JB
94512012-03-01 Joel Brobecker <brobecker@adacore.com>
9452
9453 * NEWS: Document the fact that one can provide a condition when
9454 creating an Ada exception catchpoint.
9455
19c37f24
TT
94562012-03-01 Tom Tromey <tromey@redhat.com>
9457
9458 * valprint.c (val_print_type_code_flags): Fix placement of
9459 trailing brace.
9460
f0fed3a3
JB
94612012-03-01 Joel Brobecker <brobecker@adacore.com>
9462
9463 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9464 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9465 environment variable before calling update-copyright.
9466
8ba85d85
JB
94672012-03-01 Joel Brobecker <brobecker@adacore.com>
9468
9469 * gnulib/extra/update-copyright: Update to the latest from
9470 gnulib's git repository.
9471 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9472 variable to 2 instead of 1.
9473
8219b1e8
JB
94742012-02-29 Joel Brobecker <brobecker@adacore.com>
9475
9476 * varobj.c (c_value_of_variable): Remove dead code.
9477
718cb7da
JB
94782012-02-29 Joel Brobecker <brobecker@adacore.com>
9479
9480 * ada-lex.p (processId): Do not modify already encoded IDs.
9481 Update function documentation.
9482
739593e0
JB
94832012-02-29 Joel Brobecker <brobecker@adacore.com>
9484
9485 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9486 "name" with "struct symbol *name_sym".
9487 * ada-exp.y (write_var_or_type): Update call to
9488 ada_find_renaming_symbol.
9489 "name" with "struct symbol *name_sym". Adjust Implementation
9490 accordingly. Adjust the function documentation.
9491
852dff6c
JB
94922012-02-29 Joel Brobecker <brobecker@adacore.com>
9493
9494 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9495 * ada-lang.c (ada_find_any_type): Add advance declaration.
9496 Make static. Replace ada_find_any_symbol by
9497 ada_find_any_type_symbol.
9498 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9499 Improve function description. Make static.
9500 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9501 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9502
1b611343
JB
95032012-02-29 Joel Brobecker <brobecker@adacore.com>
9504
9505 * ada-lang.c (struct tag_args): Delete.
9506 (ada_get_tsd_type): Function body moved up in source file.
9507 (ada_tag_name_1, ada_tag_name_2): Delete.
9508 (ada_get_tsd_from_tag): New function.
9509 (ada_tag_name_from_tsd): New function.
9510 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9511 to determine the tag name.
9512
41246937
JB
95132012-02-29 Joel Brobecker <brobecker@adacore.com>
9514
9515 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9516 declaration.
9517 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9518 function.
9519
ffde82bf
JB
95202012-02-29 Joel Brobecker <brobecker@adacore.com>
9521
9522 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9523
2ad01556
JB
95242012-02-29 Joel Brobecker <brobecker@adacore.com>
9525
9526 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9527 full searches.
9528
99b1c762
JB
95292012-02-29 Joel Brobecker <brobecker@adacore.com>
9530
9531 * ada-lang.c (constrained_packed_array_type): If there is a
9532 parallel XA type, use it to determine the array index type.
9533
2d4a02ee
JB
95342012-02-29 Joel Brobecker <brobecker@adacore.com>
9535
9536 * ada-valprint.c (ada_val_print_1): If our value is a reference
9537 to an array descriptor, dereference it before converting it
9538 to a simple array.
9539
c48db5ca
JB
95402012-02-29 Joel Brobecker <brobecker@adacore.com>
9541
9542 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9543 creating fixed value.
9544 (ada_value_ind, ada_coerce_ref, assign_component)
9545 (ada_evaluate_subexp): Remove call to unwrap_value before
9546 call to ada_to_fixed_value.
9547
2e6fda7d
JB
95482012-02-29 Joel Brobecker <brobecker@adacore.com>
9549
9550 * ada-lang.c (to_fixed_array_type): Set result's type name.
9551
5845583d
JB
95522012-02-29 Joel Brobecker <brobecker@adacore.com>
9553
9554 * ada-lang.c (catch_ada_exception_command_split): Add new
9555 argument cond_string. Add support for condition at end of
9556 "catch exception" commands.
9557 (ada_decode_exception_location): Add new argument cond_string.
9558 Update call to catch_ada_exception_command_split.
9559 (create_ada_exception_catchpoint): Add new argument cond_string.
9560 Set the breakpoint condition if needed.
9561 (catch_ada_exception_command): Update call to
9562 ada_decode_exception_location.
9563 (ada_decode_assert_location): Add function documentation.
9564 Add support for condition at end of "catch assert" command.
9565 (catch_assert_command): Update calls to ada_decode_assert_location
9566 and create_ada_exception_catchpoint.
9567
9a7f938f
JK
95682012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9569
9570 Fix disp-step-syscall.exp: fork: single step over fork.
9571 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9572 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9573 comment, change parameters gdbarch and ptid to regcache. Remove
9574 parameter regcache, initialize gdbarch from regcache here.
9575 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9576 New functions.
9577 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9578 instead.
9579 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9580 'syscall'. Make the 'int' check more strict.
9581
ffdf6de5
JK
95822012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9585 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9586 (i386_linux_intx80_sysenter_syscall_record): ... here.
9587 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9588 Use the renamed function name.
9589
c70a6932
JK
95902012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9591
9592 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9593 * breakpoint.c (until_break_command): Likewise.
9594 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9595 * infcall.c (call_function_by_hand): Likewise.
9596 * infcmd.c (finish_forward): Likewise.
9597 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9598
05b8a789 95992012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9600
d4cd3da9
JB
9601 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9602 avoid variable assignments inside condition.
9603
6425366c
JK
96042012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9605
9606 Fix static analysis issue found by cppcheck.
9607 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9608 uninitialized BUF for size 2.
9609
c8cef75f 96102012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9611 Nathan Froyd <froydnj@codesourcery.com>
9612 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9613
9614 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9615 (mips16_instruction_has_delay_slot): Likewise.
9616 (mips_segment_boundary): Likewise.
9617 (mips_adjust_breakpoint_address): Likewise.
9618 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9619
473347ad 96202012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9621 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9622
9623 * infrun.c (handle_inferior_event): Don't proceed through
9624 shared library trampolines if stepping at the machine
9625 instruction level.
9626
cf233303
MR
96272012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9628
9629 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9630 too.
9631
cb2cf4ce
TS
96322012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9633
9634 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9635 (sh_stub_unwind_sniffer): New functions.
9636 (sh_stub_unwind): New variable.
9637 (sh_gdbarch_init): Wire everything.
9638
644cebc9
PA
96392012-02-27 Pedro Alves <palves@redhat.com>
9640
9641 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9642 (linux_nat_post_attach_wait): Adjust to use
9643 linux_proc_pid_is_stopped.
9644 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9645 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9646 based on pid_is_stopped from both linux-nat.c and
9647 gdbserver/linux-low.c, and renamed.
9648
283002cf
MR
96492012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9650
9651 * remote.c (remote_watchpoint_addr_within_range): New function.
9652 (init_remote_ops): Use it.
9653
9b3e86b1
MR
96542012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9655
9656 * target.h (target_watchpoint_addr_within_range): Document macro.
9657
e36930bb
PA
96582012-02-24 Pedro Alves <palves@redhat.com>
9659
9660 * stack.c (set_last_displayed_sal): Issue internal_error instead
9661 of warning, and issue it after clearing the last displayed sal.
9662
883bc8d1
PA
96632012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9664 Pedro Alves <palves@redhat.com>
9665
9666 * breakpoint.c (until_break_command): Install breakpoints after
9667 all frame manipulations.
9668
b775012e
LM
96692012-02-24 Luis Machado <lgustavo@codesourcery.com>
9670
9671 * remote.c (remote_supports_cond_breakpoints): New forward
9672 declaration.
9673 (remote_add_target_side_condition): New function.
9674 (remote_insert_breakpoint): Add target-side breakpoint
9675 conditional if supported.
9676 (remote_insert_hw_breakpoint): Likewise.
9677 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9678 hook.
9679
9680 * target.c (update_current_target): Inherit
9681 to_supports_evaluation_of_breakpoint_conditions.
9682 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9683
9684 * target.h (struct target_ops)
9685 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9686 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9687
9688 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9689 (condition_evaluation_both, condition_evaluation_auto,
9690 condition_evaluation_host, condition_evaluation_target,
9691 condition_evaluation_enums, condition_evaluation_mode_1,
9692 condition_evaluation_mode): New static globals.
9693 (translate_condition_evaluation_mode): New function.
9694 (breakpoint_condition_evaluation_mode): New function.
9695 (gdb_evaluates_breakpoint_condition_p): New function.
9696 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9697 (mark_breakpoint_modified): New function.
9698 (mark_breakpoint_location_modified): New function.
9699 (set_condition_evaluation_mode): New function.
9700 (show_condition_evaluation_mode): New function.
9701 (bp_location_compare_addrs): New function.
9702 (get_first_location_gte_addr): New helper function.
9703 (set_breakpoint_condition): Free condition bytecode if locations
9704 has become unconditional. Call mark_breakpoint_modified (...).
9705 (condition_command): Call update_global_location_list (1) for
9706 breakpoints.
9707 (breakpoint_xfer_memory): Use is_breakpoint (...).
9708 (is_breakpoint): New function.
9709 (parse_cond_to_aexpr): New function.
9710 (build_target_condition_list): New function.
9711 (insert_bp_location): Handle target-side conditional
9712 breakpoints and call build_target_condition_list (...).
9713 (update_inserted_breakpoint_locations): New function.
9714 (insert_breakpoint_locations): Handle target-side conditional
9715 breakpoints.
9716 (bpstat_check_breakpoint_conditions): Add comment.
9717 (bp_condition_evaluator): New function.
9718 (bp_location_condition_evaluator): New function.
9719 (print_breakpoint_location): Print information on where the condition
9720 will be evaluated.
9721 (print_one_breakpoint_location): Likewise.
9722 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9723 breakpoint location.
9724 (force_breakpoint_reinsertion): New functions.
9725 (update_global_location_list): Handle target-side breakpoint
9726 conditions.
9727 Reinsert locations that are already inserted if conditions have
9728 changed.
9729 (bp_location_dtor): Free agent expression bytecode.
9730 (disable_breakpoint): Call mark_breakpoint_modified (...).
9731 Call update_global_location_list (...) with parameter 1 for breakpoints.
9732 (disable_command): Call mark_breakpoint_location_modified (...).
9733 Call update_global_location_list (...) with parameter 1 for breakpoints.
9734 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9735 (enable_command): mark_breakpoint_location_modified (...).
9736 (_initialize_breakpoint): Update documentation and add
9737 condition-evaluation breakpoint subcommand.
9738
9739 * breakpoint.h: Include ax.h.
9740 (condition_list): New data structure.
9741 (condition_status): New enum.
9742 (bp_target_info) <cond_list>: New field.
9743 (bp_location) <condition_changed, cond_bytecode>: New fields.
9744 (is_breakpoint): New prototype.
9745
3788aec7
LM
97462012-02-24 Luis Machado <lgustavo@codesourcery.com>
9747
9748 * remote.c (remote_state) <cond_breakpoints>: New field.
9749 (PACKET_ConditionalBreakpoints): New enum.
9750 (remote_cond_breakpoint_feature): New function.
9751 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9752 (remote_supports_cond_breakpoints): New function.
9753 (_initialize_remote): Add new packet configuration for
9754 target-side conditional breakpoints.
9755
72895ff6
LM
97562012-02-24 Luis Machado <lgustavo@codesourcery.com>
9757
9758 * NEWS: Mention target-side conditional breakpoint support,
9759 new condition-evaluation breakpoint subcommand and remote
9760 packet extensions.
9761
dea2aa5f
LM
97622012-02-24 Luis Machado <lgustavo@codesourcery.com>
9763
9764 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9765 number.
9766
8a8bc27f
TS
97672012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9768
9769 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9770 (after_prologue): Remove.
9771
6b446fdf
TT
97722012-02-23 Tom Tromey <tromey@redhat.com>
9773
9774 * jv-valprint.c (java_val_print): Remove dead code.
9775
ef59abfb
TG
97762012-02-23 Tristan Gingold <gingold@adacore.com>
9777
a09130f9
PA
9778 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9779 known_tasks_element and known_tasks_length fields.
9780 (read_known_tasks_array): Change argument type. Use pointer type
9781 and number of elements from DATA. Adjust.
9782 (read_known_tasks_list): Likewise.
9783 (get_known_tasks_addr): Remove.
9784 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9785 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9786 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9787
def166f6
JK
97882012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9789
9790 PR backtrace/13716
9791 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9792 it after set_momentary_breakpoint.
9793
aeaa2474
SA
97942012-02-22 Sterling Augustine <saugustine@google.com>
9795
9796 PR 13689:
9797 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9798
feea76c2
GB
97992012-02-22 Gary Benson <gbenson@redhat.com>
9800
9801 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9802 (find_slot_in_mapped_hash): Likewise.
9803
f06e05e0
JK
98042012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9805
9806 PR build/13638
9807 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9808 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9809 * configure: Regenerate.
9810
b54a8fd7
PA
98112012-02-21 Tristan Gingold <gingold@adacore.com>
9812 Pedro Alves <palves@redhat.com>
9813
9814 * ia64-tdep.c: Do not include libunwind-ia64.h.
9815 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9816 Include libunwind-ia64.h instead of libunwind.h.
9817 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9818 for libunwind.h existence.
9819 * configure, config.in: Regenerate.
9820
dfcee124
AG
98212012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9822
9823 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9824 instead of value_rtti_target_type.
9825 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9826 instead of value_rtti_target_type.
9827 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9828 value_rtti_target_type.
9829 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9830 (value_rtti_target_type): Rename to ...
9831 (value_rtti_indirect_type): ... here and make it indirect. Update
9832 function comment.
9833 * value.c (readjust_indirect_value_type): New function.
9834 (coerce_ref): Support for enclosing type setting for references
9835 with readjust_indirect_value_type.
9836 * value.h (readjust_value_type): New declaration.
9837 (value_rtti_target_type): Rename to ...
9838 (value_rtti_indirect_type): ... here.
9839
02568277
AG
98402012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9841
9842 * MAINTAINERS (Write After Approval): Add myself to the list.
9843
10c07b7e 98442012-02-20 Doug Evans <dje@google.com>
28ee876a 9845
d82ea6a8
DE
9846 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9847 Rename objfile_p_char parameter to objfilep.
9848 (build_objfile_section_table): Result is now void. All callers
9849 updated.
9850 * objfiles.h (struct objfile): Tweak comments, whitespace.
9851 (build_objfile_section_table): Update.
9852
28ee876a
DE
9853 * elfread.c (elf_symfile_segments): Fix warning text.
9854
24c79950
TT
98552012-02-20 Tom Tromey <tromey@redhat.com>
9856
9857 PR gdb/13498:
9858 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9859 particular set of file names once.
9860 (dw2_map_symbol_filenames): Likewise.
9861
3a9b40b6
JK
98622012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9863
9864 Code cleanup.
9865 * main.c (write_files): Remove the declaration.
9866 (external_editor_command): Move the declaration ...
9867 [GDBTK] (external_editor_command): ... here. Fix the comment.
9868
4d0795ca
TT
98692012-02-20 Tom Tromey <tromey@redhat.com>
9870
9871 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9872 extraneous block.
9873
637fd620
TG
98742012-02-20 Tristan Gingold <gingold@adacore.com>
9875
9876 * darwin-nat.h (enum darwin_msg_state): Add comments.
9877
6f124894
TG
98782012-02-20 Tristan Gingold <gingold@adacore.com>
9879
9880 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9881 value.
9882
2e6e3d9c
JB
98832012-20-18 Joel Brobecker <brobecker@adacore.com>
9884
9885 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9886 between function description and implementation.
9887
2e8265fd
TT
98882012-02-17 Tom Tromey <tromey@redhat.com>
9889
9890 PR python/12070:
9891 * python/py-event.c (event_object_getset): New global.
9892 (event_object_type): Reference it.
9893 * python/py-type.c (field_object_getset): New global.
9894 (field_object_type): Reference it.
9895 * python/python-internal.h (gdb_py_generic_dict): Declare.
9896 * python/py-utils.c (gdb_py_generic_dict): New function.
9897
8544a150 98982012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9899
8544a150 9900 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9901
ca193e27
TS
99022012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9903
9904 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9905 TYPE_CALLING_CONVENTION annotation.
9906
e5586183
KB
99072012-02-16 Kevin Buettner <kevinb@redhat.com>
9908
9909 * MAINTAINERS: Add rx to target ISA section.
9910 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9911 (ALLDEPFILES): Add rx-tdep.c.
9912
7dcd53a0
TT
99132012-02-16 Tom Tromey <tromey@redhat.com>
9914
9915 * symfile.c (symbol_file_add_main_1): Use inferior's
9916 symfile_flags.
9917 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9918 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9919 inferior.
9920 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9921 inferior.
9922 (follow_exec): Use inferior's symfile_flags.
9923 * inferior.h (struct inferior) <symfile_flags>: New field.
9924
ddd60447
MF
99252012-02-16 Mike Frysinger <vapier@gentoo.org>
9926
9927 PR gdb/9734:
9928 * remote-sim.c (gdbsim_create_inferior): Call error() when
9929 sim_create_inferior() fails.
9930
b0d32fb6
TG
99312012-02-16 Josh Matthews <josh@joshmatthews.net>
9932
9933 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9934
9addecb9
TT
99352012-02-16 Tom Tromey <tromey@redhat.com>
9936
9937 PR c++/13653:
9938 * thread.c (struct current_thread_cleanup) <was_removable>: New
9939 field.
9940 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9941 (make_cleanup_restore_current_thread): Initialize new field.
9942
a58b110a
KB
99432012-02-15 Kevin Buettner <kevinb@redhat.com>
9944
9945 * MAINTAINERS: Add rl78 to target ISA section.
9946 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9947 (ALLDEPFILES): Add rl78-tdep.c.
9948 * NEWS: Mention rl78 as a new target.
9949
4cb6da1c
AR
99502012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9951
9952 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9953 data.
9954 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9955
3af2590d
TT
99562012-02-15 Tom Tromey <tromey@redhat.com>
9957
9958 PR gdb/12659:
9959 * infcmd.c (registers_info): Print just the current register's
9960 name.
9961
c6910659
TT
99622012-02-15 Tom Tromey <tromey@redhat.com>
9963
9964 * python/py-symbol.c (sympy_value): Use _().
9965
7cee1e54
PA
99662012-02-15 Pedro Alves <palves@redhat.com>
9967
9968 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9969 output to be like native targets'.
9970 (remote_pid_to_str): Special case the null ptid.
9971
816338b5
SS
99722012-02-14 Stan Shebs <stan@codesourcery.com>
9973
9974 * NEWS: Mention enable count command.
9975 * breakpoint.h (struct breakpoint): New field enable_count.
9976 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9977 (enable_breakpoint): Add arg to call.
9978 (struct disp_data): New struct.
9979 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9980 (do_map_enable_once_breakpoint): Create a struct and pass it.
9981 (do_map_enable_delete_breakpoint): Ditto.
9982 (do_map_enable_count_breakpoint): New function.
9983 (enable_count_command): New function.
9984 (bpstat_stop_status): Decrement enable_count.
9985 (print_one_breakpoint_location): Report enable count.
9986 (_initialize_breakpoint): Add enable count command.
9987
c47a44f4
KB
99882012-02-14 Kevin Buettner <kevinb@redhat.com>
9989
9990 * rl78-tdep.c (reggroups.h): Include.
9991 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9992 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9993 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9994 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9995 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9996 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9997 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9998 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9999 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10000 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10001 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10002 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10003 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10004 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10005 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10006 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10007 beginning of register list.
10008 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10009 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10010 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10011 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10012 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10013 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10014 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10015 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10016 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10017 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10018 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10019 the pseudo registers. Rearrange other pseudo registers too so
10020 that the bank registers appear at the end.
10021 (rl78_register_type): Account for the fact that the byte sized
10022 bank registers are now pseudo-registers.
10023 (rl78_register_name): Rearrange the register name array. Make
10024 initial set of raw banked registers inaccessible.
10025 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10026 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10027 case for copying bytes back and forth between raw and pseudo
10028 versions of the banked registers. Update other cases to reflect
10029 the changed names.
10030 (rl78_return_value): Update to account for changed names of
10031 raw registers.
10032 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10033 rl78_register_sim_regno().
10034
e4569f1e
KB
100352012-02-14 Kevin Buettner <kevinb@redhat.com>
10036
10037 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10038 the name parameter being passed to find_pc_partial_function().
10039
7a05aae7
JK
100402012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 * MAINTAINERS: Step down from being ia64 target maintainer.
10043
11fde611
JK
100442012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10045
10046 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10047 compilation warning.
10048
57008375
JK
100492012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10050
10051 Fix crash on loaded shlibs without loaded exec_bfd.
10052 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10053 (set_section_command): Replace exec_bfd by p->bfd.
10054
ff3c9849
TT
100552012-02-10 Tom Tromey <tromey@redhat.com>
10056
10057 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10058 when we have a C++ qualified name.
10059
db2b9fdd
PA
100602012-02-10 Pedro Alves <palves@redhat.com>
10061
10062 * inferior.c (inferior_pid_to_str): New.
10063 (print_inferior, inferior_command): Use it.
10064
12cd34f3
PA
100652012-02-10 Pedro Alves <palves@redhat.com>
10066
10067 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10068 the test CFLAGS.
10069 * configure: Regenerate.
10070
e871429d
JK
100712012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10072
10073 * linespec.c (decode_line_internal): Fix comment correctness.
10074
1916efaf
PA
100752012-02-09 Valery Khromov <valery.khromov@gmail.com>
10076
10077 PR gdb/12953
10078 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10079 * amd64bsd-nat.c: Add support for debug registers (adapted from
10080 i386bsd-nat.c).
10081 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10082 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10083 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10084 (amd64bsd_dr_get_control): New functions.
10085 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10086 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10087 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10088 watchpoints initialization.
10089 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10090
f4859d94
JK
100912012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10092
10093 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10094 flds_bnds.fields.
10095 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10096
c56a97f9
JK
100972012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10098
10099 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10100
1a119f36
JB
101012012-02-08 Joel Brobecker <brobecker@adacore.com>
10102
10103 * language.h (symbol_name_cmp_ftype): Renames
10104 symbol_name_match_p_ftype.
10105 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10106 la_get_symbol_name_match_p.
10107 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10108 ada_get_symbol_name_match_p. Update comment.
10109 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10110 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10111 Renames symbol_name_match_p. Update field type.
10112 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10113 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10114 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10115 "la_get_symbol_name_cmp" in comments.
10116 * language.c: Likewise.
10117
c71bb1cf
RO
101182012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10119
10120 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10121 %eflags offset.
10122 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10123 (amd64_sol2_gregset32_reg_offs): Likewise.
10124
4b2d20a5
TG
101252012-02-08 Joel Brobecker <brobecker@adacore.com>
10126
10127 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10128 of the returned BFD is allocated by GDB.
10129
f0823d2c
TT
101302012-02-07 Tom Tromey <tromey@redhat.com>
10131
10132 PR python/12027:
10133 * python/python-internal.h (frame_object_type): Declare.
10134 * python/py-symbol.c (sympy_needs_frame): New function.
10135 (sympy_value): New function.
10136 (symbol_object_getset): Add "needs_frame".
10137 (symbol_object_methods): Add "value".
10138 * python/py-frame.c (frame_object_type): No longer static.
10139
64e7d9dd
TT
101402012-02-07 Tom Tromey <tromey@redhat.com>
10141
10142 PR python/13599:
10143 * python/py-symbol.c (sympy_line): New function.
10144 (symbol_object_getset): Add "line".
10145
1d6b2d2b
TT
101462012-02-07 Tom Tromey <tromey@redhat.com>
10147
10148 * charset.c (find_charset_names): Check 'in' against NULL.
10149
0d5cff50
DE
101502012-02-06 Doug Evans <dje@google.com>
10151
10152 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10153 and fields.name members from char * to const char *. All uses updated.
10154 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10155 from char * to const char *. All uses updated.
10156 (type_name_no_tag): Update.
10157 (lookup_unsigned_typename, lookup_signed_typename): Update.
10158 * gdbtypes.c (type_name_no_tag): Change result type
10159 from char * to const char *. All callers updated.
10160 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10161 name parameter from char * to const char *.
10162 * symtab.h (struct cplus_specific): Change type of demangled_name
10163 member from char * to const char *. All uses updated.
10164 (struct general_symbol_info): Change type of name and
10165 mangled_lang.demangled_name members from char * to const char *.
10166 All uses updated.
10167 (symbol_get_demangled_name, symbol_natural_name): Update.
10168 (symbol_demangled_name, symbol_search_name): Update.
10169 * symtab.c (symbol_get_demangled_name): Change result type
10170 from char * to const char *. All callers updated.
10171 (symbol_natural_name, symbol_demangled_name): Ditto.
10172 (symbol_search_name): Ditto.
10173 (completion_list_add_name): Change type of symname,sym_text,
10174 text,word parameters from char * to const char *.
10175 (completion_list_objc_symbol): Change type of sym_text,
10176 text,word parameters from char * to const char *.
10177 * ada-lang.c (find_struct_field): Change type of name parameter
10178 from char * to const char *.
10179 (encoded_ordered_before): Similarly for N0,N1 parameters.
10180 (old_renaming_is_invisible): Similarly for function_name parameter.
10181 (ada_type_name): Change result type from char * to const char *.
10182 All callers updated.
10183 * ada-lang.h (ada_type_name): Update.
10184 * buildsym.c (hashname): Change type of name parameter
10185 from char * to const char *.
10186 * buildsym.h (hashname): Update.
10187 * dbxread.c (end_psymtab): Change type of include_list parameter
10188 from char ** to const char **.
10189 * dwarf2read.c (determine_prefix): Change result type
10190 from char * to const char *. All callers updated.
10191 * f-lang.c (find_common_for_function): Change type of name, funcname
10192 parameters from char * to const char *.
10193 * f-lang.c (find_common_for_function): Update.
10194 * f-valprint.c (list_all_visible_commons): Change type of funcname
10195 parameters from char * to const char *.
10196 * gdbarch.sh (static_transform_name): Change type of name parameter
10197 and result from char * to const char *.
10198 * gdbarch.c: Regenerate.
10199 * gdbarch.h: Regenerate.
10200 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10201 of name parameter from char * to const char *.
10202 * jv-lang.c (java_primitive_type_from_name): Ditto.
10203 (java_demangled_signature_length): Similarly for signature parameter.
10204 (java_demangled_signature_copy): Ditto.
10205 (java_demangle_type_signature): Ditto.
10206 * jv-lang.h (java_primitive_type_from_name): Update.
10207 (java_demangle_type_signature): Update.
10208 * objc-lang.c (specialcmp): Change type of a,b parameters
10209 from char * to const char *.
10210 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10211 from char * to const char *. All callers updated.
10212 * p-lang.h (is_pascal_string_type): Update.
10213 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10214 of name parameter from char * to const char *.
10215 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10216 * utils.c (fprintf_symbol_filtered): Ditto.
10217 * defs.h (fprintf_symbol_filtered): Update.
10218 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10219 * stabsread.h (end_psymtab): Update.
10220 * stack.c (find_frame_funname): Change type of funname parameter
10221 from char ** to const char **.
10222 * stack.h (find_frame_funname): Update.
10223 * typeprint.c (type_print): Change type of varstring parameter
10224 from char * to const char *.
10225 * value.h (type_print): Update.
10226 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10227 from char * to const char *. All callers updated.
10228 (xcoff_end_psymtab): Change type of include_list parameter
10229 from char ** to const char **. All callers updated.
10230 (swap_sym): Similarly for name parameter. All callers updated.
10231 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10232 Use xstrdup.
10233 (process_coff_symbol): Use xstrdup.
10234 * stabsread.c (stabs_method_name_from_physname): Renamed from
10235 update_method_name_from_physname. Change result type from void
10236 to char *. All callers updated.
10237 (read_member_functions): In has_destructor case, store name in objfile
10238 obstack instead of malloc space. In !has_stub case, fix mem leak.
10239
5579a92e
TT
102402012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10241
10242 * configure: Rebuild.
10243 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10244 LDFLAGS.
10245
9058f767
KB
102462012-02-03 Kevin Buettner <kevinb@redhat.com>
10247
10248 * configure.tgt (rl78-*-elf): New target.
10249 * rl78-tdep.c: New file.
10250
5b37825d
PW
102512012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10252
10253 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10254 and continue the loop. Add QUIT statement.
10255
e009ee71
TT
102562012-02-03 Tom Tromey <tromey@redhat.com>
10257
10258 PR gdb/13596:
10259 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10260 bfd_lookup_symbol_from_symtab.
10261 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10262 gdb_bfd_lookup_symbol_from_symtab.
10263
f7e44f65
JB
102642012-02-03 Joel Brobecker <brobecker@adacore.com>
10265
10266 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10267 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10268 symbol. Add assertion that sym2 is never NULL.
10269
2c02bd72
DE
102702012-02-02 Doug Evans <dje@google.com>
10271
10272 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10273 "name" parameter to const char ** from char **. All callers updated.
10274 (find_pc_partial_function): Ditto.
10275 (cache_pc_function_name): Change type to const char * from char *.
10276 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10277 (find_pc_partial_function): Update.
10278 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10279 type of "name" parameter to const char * from char *.
10280 All uses updated.
10281 * arch-utils.c (generic_in_solib_return_trampoline): Change
10282 type of "name" parameter to const char * from char *.
10283 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10284 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10285 type of "name" parameter to const char * from char *.
10286 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10287 * gdbarch.c: Regenerate.
10288 * gdbarch.h: Regenerate.
10289 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10290 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10291 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10292 type of "name" parameter to const char * from char *.
10293 * skip.c (skip_function_pc): Ditto.
10294 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10295 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10296 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10297 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10298 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10299 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10300 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10301 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10302 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10303
e886a173
PA
103042012-02-02 Pedro Alves <palves@redhat.com>
10305
10306 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10307 the current inferior has no execution. Make sure the current
10308 remote process matches gdb's current inferior.
10309
c709a7c2
TT
103102012-02-02 Tom Tromey <tromey@redhat.com>
10311
10312 PR gdb/13405:
10313 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10314 read-only memory.
10315
f149aabd
TT
103162012-02-02 Tom Tromey <tromey@redhat.com>
10317
10318 PR gdb/9307:
10319 * symtab.c (lookup_language_this): Set block_found.
10320
03bef283
TT
103212012-02-01 Tom Tromey <tromey@redhat.com>
10322
10323 PR gdb/13431:
10324 * jit.c (struct jit_inferior_data): Rewrite.
10325 (struct jit_objfile_data): New.
10326 (get_jit_objfile_data): New function.
10327 (add_objfile_entry): Update.
10328 (jit_read_descriptor): Return int. Replace descriptor_addr
10329 argument with inf_data. Update. Don't call error.
10330 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10331 descriptor here.
10332 (jit_inferior_init): Don't look up descriptor. Don't call error.
10333 (jit_reset_inferior_data_and_breakpoints)
10334 (jit_inferior_created_observer): Remove.
10335 (jit_inferior_exit_hook): Update.
10336 (jit_executable_changed_observer): Remove.
10337 (jit_event_handler): Update.
10338 (free_objfile_data): Reset inferior data if needed.
10339 (_initialize_jit): Update.
10340
f0bbc364
TT
103412012-02-01 Tom Tromey <tromey@redhat.com>
10342
10343 * jit.c (bfd_open_from_target_memory): Move higher in file.
10344
47c1316c
TG
103452012-02-01 Tristan Gingold <gingold@adacore.com>
10346
10347 * libunwind-frame.c (libunwind_load): Display message if dlopen
10348 failed.
10349
8e704927
GB
103502012-02-01 Gary Benson <gbenson@redhat.com>
10351
09c7a31f 10352 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10353 (iterate_over_symbols): Use the above.
10354 * symtab.c (iterate_over_symbols): Likewise.
10355 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10356 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10357 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10358 (iterate_name_matcher): Document return values.
10359 (collect_one_symbol): Likewise.
10360 (collect_function_symbols): Likewise.
10361 (collect_symbols): Likewise.
10362
d9680e73
TT
103632012-02-01 Tom Tromey <tromey@redhat.com>
10364
10365 * ada-lang.c (resolve_subexp): Update.
10366 (ada_lookup_symbol_list): Add 'full_search' argument.
10367 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10368 ada_lookup_symbol_list.
10369 (ada_lookup_encoded_symbol): Update.
10370 (get_var_value): Update.
10371 * ada-exp.y (block_lookup): Update.
10372 (write_var_or_type): Update.
10373 (write_name_assoc): Update.
10374 * ada-lang.h (ada_lookup_symbol_list): Update.
10375
72e1143f
TT
103762012-01-31 Tom Tromey <tromey@redhat.com>
10377
10378 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10379 comment.
10380
ab2d2ad3
DE
103812012-01-31 Doug Evans <dje@google.com>
10382
10383 * symtab.h: Remove outdated comment.
e9111bf7 10384 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10385
bc884eba
JB
103862012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10387
10388 Fix build error in Darwin port.
10389 * i386-darwin-nat.c: Include i386-nat.h.
10390
8fc3fc34
TT
103912012-01-30 Tom Tromey <tromey@redhat.com>
10392
10393 PR breakpoints/13568:
10394 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10395 argument. Check for recursive includes.
10396 (dwarf_decode_macros): Create an include hash.
10397
5d853008
ME
103982012-01-30 Michael Eager <eager@eagercon.com>
10399
10400 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10401 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10402 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10403 (powerpc_linux_in_plt_stub): New function.
10404 (powerpc_linux_in_dynsym_resolve_code): New function.
10405 (ppc_skip_trampoline_code): New function.
10406 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10407 Use glibc_skip_solib_resolver.
10408
40478521
JK
104092012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10410
10411 Code cleanup: Make 1440 bytes of data segment read-only.
10412 * arch-utils.c (endian_enum): Make it const char *const [].
10413 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10414 Likewise.
10415 * breakpoint.c (always_inserted_enums): Likewise.
10416 * cli/cli-cmds.c (script_ext_enums): Likewise.
10417 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10418 enumlist parameter const char *const *.
10419 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10420 const char *const *.
10421 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10422 parameter const char *const *.
10423 * cris-tdep.c (cris_modes): Make it const char *const [].
10424 * filesystem.c (target_file_system_kinds): Likewise.
10425 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10426 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10427 (can_use_displaced_stepping_enum, scheduler_enums)
10428 (exec_direction_names): Likewise.
10429 * language.c (_initialize_language): Make the type_or_range_names and
10430 case_sensitive_names variables const char *const [].
10431 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10432 * python/python.c (python_excp_enums): Likewise.
10433 * remote.c (interrupt_sequence_modes): Likewise.
10434 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10435 * serial.c (logbase_enums): Likewise.
10436 * sh-tdep.c (sh_cc_enum): Likewise.
10437 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10438 Likewise.
10439 * symtab.c (multiple_symbols_modes): Likewise.
10440 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10441 Likewise.
10442 * utils.c (internal_problem_modes): Likewise.
10443
b3b8b934
JK
104442012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10445
10446 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10447 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10448 result.
10449
8c85a4e2
DE
104502012-01-27 Doug Evans <dje@google.com>
10451
10452 * configure.ac (with_python): Fix absolute path handling for win32.
10453 * configure: Regenerate.
10454
78d8b4d7
DE
104552012-01-26 Doug Evans <dje@google.com>
10456
eca864fe
DE
10457 * symtab.c: Whitespace cleanup, no code changes.
10458
7e082072
DE
10459 * symtab.c (lookup_symbol_in_language): Improve comment.
10460 (lookup_symbol_aux): Fix comment.
10461
7dc25483
DE
10462 * psymtab.c (add_psymbol_to_list): Result is now "void".
10463 * psympriv.h (add_psymbol_to_list): Update.
10464
78d8b4d7
DE
10465 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10466
4c63965b
JK
104672012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10468
10469 Do not open script filenames twice.
10470 * cli/cli-cmds.c (source_script_from_stream): Pass to
10471 source_python_script also STREAM.
10472 * python/py-auto-load.c (source_section_scripts): Pass to
10473 source_python_script_for_objfile also STREAM.
10474 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10475 also INPUT.
10476 * python/python-internal.h (source_python_script_for_objfile): New
10477 parameter file, rename parameter file to filename.
10478 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10479 instead if !_WIN32. Update the function comment.
10480 (source_python_script, source_python_script_for_objfile)
10481 (source_python_script): New parameter file, rename parameter file to
10482 filename. Pass FILENAME to python_run_simple_file.
10483 * python/python.h (source_python_script): New parameter file, rename
10484 parameter file to filename.
10485
88f38a04
PA
104862012-01-26 Pedro Alves <palves@redhat.com>
10487
10488 * corelow.c (core_has_fake_pid): Delete.
10489 (core_close): Delete references to `core_has_fake_pid'.
10490 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10491 (core_open): Delete references to `core_has_fake_pid'.
10492 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10493 the removed global.
10494
e078317b
JB
104952012-01-26 Joel Brobecker <brobecker@adacore.com>
10496
10497 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10498 Remove language parameter from name_matcher. Adjust the comment.
10499 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10500 Remove language parameter.
10501 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10502 * linespec.c (iterate_name_matcher): Likewise.
10503 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10504 name_matcher. Adjust call accordingly.
10505 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10506 (maintenance_check_symtabs): Adjust type of parameter "fun".
10507 * psymtab.h (maintenance_check_symtabs): Likewise.
10508
74ccd7f5
JB
105092012-01-26 Joel Brobecker <brobecker@adacore.com>
10510
10511 * language.h (symbol_name_match_p_ftype): New typedef.
10512 (struct language_defn): Replace field la_symbol_name_compare
10513 by la_get_symbol_name_match_p.
10514 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10515 (ada_language_defn): Use it.
10516 * linespec.c (struct symbol_matcher_data): New type.
10517 (iterate_name_matcher): Rewrite.
10518 (iterate_over_all_matching_symtabs): Pass a pointer to
10519 a symbol_matcher_data struct to expand_symtabs_matching
10520 instead of just the lookup name.
10521 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10522 opencl-lang.c, p-lang.c, language.c: Delete field
10523 la_symbol_name_compare, and replace by NULL for new field
10524 la_get_symbol_name_match_p.
10525 * symfile.h (struct quick_symbol_functions): Update comment.
10526
5d268276
TT
105272012-01-25 Tom Tromey <tromey@redhat.com>
10528
10529 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10530 dereferencing.
10531
edcc5120
TT
105322012-01-24 Tom Tromey <tromey@redhat.com>
10533
10534 PR symtab/12406:
10535 * solib.c (update_solib_list): Update the program space's
10536 added_solibs and deleted_solibs fields.
10537 * progspace.h (struct program_space) <added_solibs,
10538 deleted_solibs>: New fields.
10539 (clear_program_space_solib_cache): Declare.
10540 * progspace.c (release_program_space): Call
10541 clear_program_space_solib_cache.
10542 (clear_program_space_solib_cache): New function.
10543 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10544 bpstat_stop_status. Use handle_solib_event.
10545 * breakpoint.c: Include gdb_regex.h.
10546 (print_solib_event): New function.
10547 (bpstat_print): Use print_solib_event.
10548 (bpstat_stop_status): Add special case for bp_shlib_event.
10549 (handle_solib_event): New function.
10550 (bpstat_what): Use handle_solib_event.
10551 (struct solib_catchpoint): New.
10552 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10553 (breakpoint_hit_catch_solib, check_status_catch_solib)
10554 (print_it_catch_solib, print_one_catch_solib)
10555 (print_mention_catch_solib, print_recreate_catch_solib): New
10556 functions.
10557 (catch_solib_breakpoint_ops): New global.
10558 (catch_load_or_unload, catch_load_command_1)
10559 (catch_unload_command_1): New functions.
10560 (internal_bkpt_check_status): Add special case for
10561 bp_shlib_event.
10562 (internal_bkpt_print_it): Use print_solib_event.
10563 (initialize_breakpoint_ops): Initialize
10564 catch_solib_breakpoint_ops.
10565 (_initialize_breakpoint): Register "catch load" and "catch
10566 unload".
10567 * breakpoint.h (handle_solib_event): Declare.
10568 * NEWS: Add entry for "catch load" and "catch unload".
10569
fa864999
TT
105702012-01-24 Tom Tromey <tromey@redhat.com>
10571
10572 * ada-lang.c: Include gdb_vecs.h.
10573 * charset.c: Include gdb_vecs.h.
10574 * tracepoint.h: Include gdb_vecs.h.
10575 * gdb_vecs.h: New file.
10576
f90263c1
TT
105772012-01-24 Pedro Alves <pedro@codesourcery.com>
10578
10579 * breakpoint.c (breakpoint_hit_catch_fork)
10580 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10581 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10582 * infrun.c (inferior_has_forked, inferior_has_vforked)
10583 (inferior_has_execd, inferior_has_called_syscall): Delete.
10584 (handle_syscall_event): Get syscall_number from the execution
10585 control state's wait status.
10586 (wait_for_inferior): Don't clear syscall_number.
10587
09ac7c10
TT
105882012-01-24 Pedro Alves <palves@redhat.com>
10589
10590 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10591 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10592 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10593 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10594 `ws' parameter.
10595 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10596 false for events other than TARGET_SIGNAL_TRAP.
10597 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10598 Add `ws' parameter.
10599 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10600 events other than TARGET_SIGNAL_TRAP.
10601 (tracepoint_breakpoint_hit): Add `ws' parameter.
10602 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10603 parameter.
10604 (bpstat_stop_status): Same.
10605 (pc_at_non_inline_function): Same.
10606 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10607 to pass the current event's waitstatus to bpstat_stop_status
10608 and pc_at_non_inline_function.
10609
86eb7e95
JK
106102012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10611
10612 Code cleanup.
10613 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10614 Update the function comment for it.
10615 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10616 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10617 for STREAM.
10618
a9b3a50f
PA
106192012-01-24 Pedro Alves <palves@redhat.com>
10620
10621 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10622 outside `bs->stop' block.
10623 (bpstat_what): Rework bp_shlib_event handling.
10624 (internal_bkpt_check_status): If the breakpoint is a
10625 bp_shlib_event, then set bs->stop and bs->print if
10626 stop_on_solib_events is set.
10627
53fe1783
GB
106282012-01-24 Gary Benson <gbenson@redhat.com>
10629
10630 Delete #if 0'd out code.
10631 * stack.c (print_frame_label_vars): Remove.
10632 (catch_info): Likewise.
10633 (_initialize_stack): Remove "info catch" command.
10634 * NEWS: Mention the above.
10635
49c62f2e
PA
106362012-01-24 Pedro Alves <palves@redhat.com>
10637
10638 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10639 it.
10640 (remote_notice_new_inferior): If the remote end doesn't support
10641 the multiprocess extensions, then the PID is fake.
10642 (add_current_inferior_and_thread): New.
10643 (remote_start_remote): Use it.
10644 (extended_remote_attach_1): Adjust.
10645 (extended_remote_create_inferior_1): Use
10646 add_current_inferior_and_thread.
10647
d0d8b0c6
JK
106482012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10649
10650 Fix watchpoints to be specific for each inferior.
10651 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10652 current_program_space.
10653 * i386-nat.c (i386_inferior_data_cleanup): New.
10654 (i386_inferior_data_get): Replace variable inf_data_local by an
10655 inferior_data call.
10656 (i386_use_watchpoints): Initialize i386_inferior_data.
10657 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10658 specific iterate_over_lwps.
10659
4403d8e9
JK
106602012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10661
10662 Fix watchpoints across inferior fork.
10663 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10664 comment for linux_nat_iterate_watchpoint_lwps.
10665 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10666 linux_nat_iterate_watchpoint_lwps.
10667 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10668 * i386-linux-nat.c (update_debug_registers_callback): Update the
10669 comment for linux_nat_iterate_watchpoint_lwps.
10670 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10671 linux_nat_iterate_watchpoint_lwps.
10672 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10673 * i386-nat.c: Include inferior.h.
10674 (dr_mirror): Remove.
10675 (i386_inferior_data, struct i386_inferior_data)
10676 (i386_inferior_data_get): New.
10677 (i386_debug_reg_state): Use i386_inferior_data_get.
10678 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10679 (i386_insert_watchpoint, i386_remove_watchpoint)
10680 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10681 (i386_remove_hw_breakpoint): New variable state, use
10682 i386_debug_reg_state instead of DR_MIRROR.
10683 * linux-nat.c (delete_lwp): New declaration.
10684 (num_lwps): Move here from downwards.
10685 (delete_lwp_cleanup): New.
10686 (linux_child_follow_fork): Create new child_lp, call
10687 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10688 PTRACE_DETACH.
10689 (num_lwps): Move upwards.
10690 (linux_nat_iterate_watchpoint_lwps): New.
10691 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10692 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10693
2992c9a7 106942012-01-24 Joel Brobecker <brobecker@adacore.com>
10695
10696 GDB 7.4 released.
10697
e360902b
PA
106982012-01-23 Pedro Alves <palves@redhat.com>
10699
10700 * top.c (caution): Rename to ...
10701 (confirm): ... this.
10702 (show_caution): Rename to ...
10703 (show_confirm): ... this.
10704 (quit_cover): Adjust.
10705 (init_main): Adjust.
10706 * top.h (caution): Rename to ...
10707 (confirm): ... this.
10708 * utils.c (internal_vproblem, defaulted_query): Adjust.
10709
050a2e1d
PA
107102012-01-23 Pedro Alves <palves@redhat.com>
10711
10712 * top.c (caution): Update comment.
10713 (execute_command): Don't consider the current value of `caution'.
10714
77a35dd8
JK
107152012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10716
10717 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10718
a71b5a38
UW
107192012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10720
10721 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10722 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10723 * target.c (target_fileio_pwrite): Remove buffer address from
10724 debug output.
10725 (target_fileio_pread): Likewise.
10726
d99bd577
UW
107272012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10728
10729 * NEWS: Document remote "info proc" and "generate-core-file".
10730
35c2fab7
UW
107312012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10732
10733 * gdbarch.sh (find_memory_regions): New callback.
10734 * gdbarch.c, gdbarch.h: Regenerate.
10735
10736 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10737 callback before falling back to target method.
10738
10739 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10740 (linux_target_install_ops): No longer install it.
10741
10742 * linux-tdep.c (linux_find_memory_regions): New function.
10743 (linux_init_abi): Install it.
10744
6432734d
UW
107452012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10746
10747 * gdbarch.sh (make_corefile_notes): New architecture callback.
10748 * gdbarch.c: Regenerate.
10749 * gdbarch.h: Likewise.
10750
10751 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10752 before target_make_corefile_notes. If NULL is returned, the
10753 target does not support core file generation.
10754
10755 * linux-nat.c: Include "linux-tdep.h".
10756 (find_signalled_thread, find_stop_signal): Remove.
10757 (linux_nat_do_thread_registers): Likewise.
10758 (struct linux_nat_corefile_thread_data): Likewise.
10759 (linux_nat_corefile_thread_callback): Likewise.
10760 (iterate_over_spus): Likewise.
10761 (struct linux_spu_corefile_data): Likewise.
10762 (linux_spu_corefile_callback): Likewise.
10763 (linux_spu_make_corefile_notes): Likewise.
10764 (linux_nat_collect_thread_registers): New function.
10765 (linux_nat_make_corefile_notes): Replace contents by call to
10766 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10767 as native-only callback.
10768
10769 * linux-tdep.h: Include "bfd.h".
10770 (struct regcache): Add forward declaration.
10771 (linux_collect_thread_registers_ftype): New typedef.
10772 (linux_make_corefile_notes): Add prototype.
10773 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10774 "regset.h", and "elf-bfd.h".
10775 (find_signalled_thread, find_stop_signal): New functions.
10776 (linux_spu_make_corefile_notes): Likewise.
10777 (linux_collect_thread_registers): Likewise.
10778 (struct linux_corefile_thread_data): New data structure.
10779 (linux_corefile_thread_callback): New funcion.
10780 (linux_make_corefile_notes): Likewise.
10781 (linux_make_corefile_notes_1): Likewise.
10782 (linux_init_abi): Install it.
10783
3030c96e
UW
107842012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10785
10786 * gdbarch.sh (info_proc): New callback.
10787 * gdbarch.c, gdbarch.h: Regenerate.
10788
10789 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10790 before falling back to the target info_proc callback.
10791
10792 * linux-nat.c: Do not include "cli/cli-utils.h".
10793 (linux_nat_info_proc): Remove.
10794 (linux_target_install_ops): No longer install it.
10795
10796 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10797 (read_mapping): New function.
10798 (linux_info_proc): Likewise.
10799 (linux_init_abi): Install it.
10800
145b16a9
UW
108012012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10802
10803 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10804 * infcmd.c: (info_proc_cmd_1): New function.
10805 (info_proc_cmd): New function, moved here from equivalent routine
10806 orignally in linux-nat.c.
10807 (info_proc_cmd_mappings): Likewise.
10808 (info_proc_cmd_stat): Likewise.
10809 (info_proc_cmd_status): Likewise.
10810 (info_proc_cmd_cwd): Likewise.
10811 (info_proc_cmd_cmdline): Likewise.
10812 (info_proc_cmd_exe): Likewise.
10813 (info_proc_cmd_all): Likewise.
10814 (_initialize_infcmd): Install "info proc" command and subcommands.
10815
10816 * target.h (struct target_ops): Add to_info_proc.
10817 (target_info_proc): Add prototype.
10818 * target.c (target_info_proc): New function.
10819
10820 * procfs.c (procfs_info_proc): Add prototype.
10821 (info_proc_cmd): Rename into ...
10822 (procfs_info_proc): ... this. Update argument types as appropriate
10823 for a to_info_proc implementation. Handle "what" argument.
10824 (procfs_target): Install procfs_info_proc.
10825 (_initialize_procfs): No longer install "info proc" command.
10826
10827 * linux-nat.c: (enum info_proc_what): Remove.
10828 (linux_nat_info_proc_cmd_1): Rename into ...
10829 (linux_nat_info_proc): ... this. Update argument types as appropriate
10830 for a to_info_proc implementation.
10831 (linux_nat_info_proc_cmd): Remove.
10832 (linux_nat_info_proc_cmd_mappings): Likewise.
10833 (linux_nat_info_proc_cmd_stat): Likewise.
10834 (linux_nat_info_proc_cmd_status): Likewise.
10835 (linux_nat_info_proc_cmd_cwd): Likewise.
10836 (linux_nat_info_proc_cmd_cmdline): Likewise.
10837 (linux_nat_info_proc_cmd_exe): Likewise.
10838 (linux_nat_info_proc_cmd_all): Likewise.
10839 (linux_target_install_ops): Install linux_nat_info_proc.
10840 (_initialize_linux_nat): No longer install "info proc" command
10841 and subcommands.
10842
b9e7b9c3
UW
108432012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10844
10845 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10846 * config.in, configure: Regenerate.
10847
10848 * target.h (struct target_ops): Add to_fileio_readlink.
10849 (target_fileio_readlink): Add prototype.
10850 * target.c (target_fileio_readlink): New function.
10851
10852 * inf-child.c: Conditionally include <sys/param.h>.
10853 (inf_child_fileio_readlink): New function.
10854 (inf_child_target): Install it.
10855
10856 * remote.c (PACKET_vFile_readlink): New enum value.
10857 (remote_hostio_readlink): New function.
10858 (init_remote_ops): Install it.
10859 (_initialize_remote): Handle vFile:readlink packet type.
10860
7313baad
UW
108612012-01-20 Pedro Alves <palves@redhat.com>
10862 Ulrich Weigand <ulrich.weigand@linaro.org>
10863
10864 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10865 * config.in, configure: Regenerate.
10866
10867 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10868 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10869 (target_fileio_open): Add prototype.
10870 (target_fileio_pwrite): Likewise.
10871 (target_fileio_pread): Likewise.
10872 (target_fileio_close): Likewise.
10873 (target_fileio_unlink): Likewise.
10874 (target_fileio_read_alloc): Likewise.
10875 (target_fileio_read_stralloc): Likewise.
10876
10877 * target.c: Include "gdb/fileio.h".
10878 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10879 (default_fileio_target): New function.
10880 (target_fileio_open): Likewise.
10881 (target_fileio_pwrite): Likewise.
10882 (target_fileio_pread): Likewise.
10883 (target_fileio_close): Likewise.
10884 (target_fileio_unlink): Likewise.
10885 (target_fileio_close_cleanup): Likewise.
10886 (target_fileio_read_alloc_1): Likewise.
10887 (target_fileio_read_alloc): Likewise.
10888 (target_fileio_read_stralloc): Likewise.
10889
10890 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10891 <fcntl.h>, and <unistd.h>.
10892 (inf_child_fileio_open_flags_to_host): New function.
10893 (inf_child_errno_to_fileio_error): Likewise.
10894 (inf_child_fileio_open): Likewise.
10895 (inf_child_fileio_pwrite): Likewise.
10896 (inf_child_fileio_pread): Likewise.
10897 (inf_child_fileio_close): Likewise.
10898 (inf_child_fileio_unlink): Likewise.
10899 (inf_child_target): Install to_fileio routines.
10900
10901 * remote.c (init_remote_ops): Install to_fileio routines.
10902
901f9912
UW
109032012-01-20 Pedro Alves <palves@redhat.com>
10904 Ulrich Weigand <ulrich.weigand@linaro.org>
10905
10906 * remote.c (remote_multi_process_p): Only check for multi-process
10907 protocol feature, do not check for extended protocol.
10908 (remote_supports_multi_process): Check for extended protocol here.
10909 (set_general_process): Likewise.
10910 (extended_remote_kill): Likewise.
10911 (remote_pid_to_str): Likewise.
10912 (remote_query_supported): Always query multiprocess mode.
10913
e714e1bf
UW
109142012-01-20 Pedro Alves <palves@redhat.com>
10915 Ulrich Weigand <ulrich.weigand@linaro.org>
10916
10917 * inferior.h (struct inferior): Add fake_pid_p.
10918 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10919 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10920 magic_null_ptid since the remote side doesn't provide a real PID.
10921
50897289
TT
109222012-01-19 Tom Tromey <tromey@redhat.com>
10923
10924 * NEWS: Combine the two Python sections.
10925
1afc2033
JK
109262012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10927
10928 * target.h (target_close): Update comment on the target's unpush state.
10929
305436e0
PA
109302012-01-19 Pedro Alves <palves@redhat.com>
10931
10932 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10933 linux_nat_async directly instead of going through the target
10934 vector.
10935 * target.c (unpush_target): Close target after unpushing it, not
10936 before.
10937
49323895
GB
109382012-01-19 Gary Benson <gbenson@redhat.com>
10939
10940 * mdebugread.c (sort_blocks): Replace integer constants with ones
10941 derived from FIRST_LOCAL_BLOCK.
10942
1db33378
PP
109432012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10944 Jan Kratochvil <jan.kratochvil@redhat.com>
10945
10946 PR gdb/9538
10947 * symfile.c (find_separate_debug_file): New function.
10948 (terminate_after_last_dir_separator): Likewise.
10949 (find_separate_debug_file_by_debuglink): Also try realpath.
10950 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10951 * configure: Regenerate.
10952 * config.in: Regenerate.
10953
f83d8a90
DE
109542012-01-18 Doug Evans <dje@google.com>
10955
10956 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10957 (main.o): Remove rule.
10958 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10959 (--with-sysroot): Rewrite.
10960 * configure: Regenerate.
10961 * config.in: Regenerate.
10962
2dbca4d6
SDJ
109632012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10964
10965 * parse.c (initialize_expout): New function.
10966 (reallocate_expout): Likewise.
10967 (parse_exp_in_context): Use `initialize_expout' and
10968 `reallocate_expout' when appropriate.
10969
0695b514
PA
109702012-01-18 Pedro Alves <palves@redhat.com>
10971
10972 * record.c (struct record_breakpoint, record_breakpoint_p)
10973 (record_breakpoints): New.
10974 (record_insert_breakpoint, record_remove_breakpoint): Manage
10975 record breakpoints list. Only remove breakpoints from the
10976 inferior if they had been inserted there in the first place.
10977
136e1c30
DE
109782012-01-17 Doug Evans <dje@google.com>
10979
10980 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10981 if we know we don't have a file name to look for.
10982
c0bf857d
PA
109832012-01-17 Pedro Alves <palves@redhat.com>
10984
10985 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10986 the frame's stop reason is UNWIND_UNAVAILABLE.
10987
b486de60
JK
109882012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10989
10990 Fix compilation error.
10991 * m2-exp.y (yyerror): Use ANSI C prototype.
10992
d04550a6
SDJ
109932012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10994
10995 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10996 (growbuf_by_size): Likewise.
10997 (yyerror): Likewise.
10998 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10999 (modblock): Remove variable (was #if 0'ed).
11000 (parse_number): Convert prototype from K&R to ANSI C.
11001 (yyerror): Likewise.
11002 * objc-exp.y (parse_number): Likewise.
11003 (yyerror): Likewise.
11004 (yylex): Remove #if 0'ed code.
11005 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11006 (yyerror): Likewise.
11007
4aac40c8
TT
110082012-01-16 Tom Tromey <tromey@redhat.com>
11009
11010 * NEWS: Add item.
11011 * symtab.h (compare_filenames_for_search): Declare.
11012 * symtab.c (compare_filenames_for_search): New function.
11013 (iterate_over_some_symtabs): Use it.
11014 * symfile.h (struct quick_symbol_functions)
11015 <map_symtabs_matching_filename>: Change spec.
11016 * psymtab.c (partial_map_symtabs_matching_filename): Use
11017 compare_filenames_for_search. Update for new spec.
11018 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11019 compare_filenames_for_search. Update for new spec.
11020 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11021
cafec441
TT
110222012-01-16 Tom Tromey <tromey@redhat.com>
11023
11024 PR python/13281:
11025 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11026 (struct main_type) <flag_flag_enum>: New field.
11027 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11028 * NEWS: Add entries.
11029 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11030 enums.
11031 * python/lib/gdb/printing.py (_EnumInstance): New class.
11032 (FlagEnumerationPrinter): Likewise.
11033
983af33b
SDJ
110342012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11035
11036 * breakpoint.c (create_sals_from_address_default): New function.
11037 (create_breakpoints_sal_default): Likewise.
11038 (decode_linespec_default): Likewise.
11039 (is_marker_spec): Removed.
11040 (strace_marker_p): New function.
11041 (init_breakpoint_sal): Using `strace_marker_p' instead of
11042 `is_marker_spec'.
11043 (create_breakpoint): Call method `create_sals_from_address' from
11044 breakpoint_ops, replacing code that created SALs conditionally
11045 on the type of the breakpoint. Call method `create_breakpoints_sal',
11046 replacing code that created breakpoints conditionally on the type
11047 wanted.
11048 (base_breakpoint_create_sals_from_address): New function.
11049 (base_breakpoint_create_breakpoints_sal): Likewise.
11050 (base_breakpoint_decode_linespec): Likewise.
11051 (base_breakpoint_ops): Add methods
11052 `base_breakpoint_create_sals_from_address',
11053 `base_breakpoint_create_breakpoints_sal' and
11054 `base_breakpoint_decode_linespec'.
11055 (bkpt_create_sals_from_address): New function.
11056 (bkpt_create_breakpoints_sal): Likewise.
11057 (bkpt_decode_linespec): Likewise.
11058 (tracepoint_create_sals_from_address): Likewise.
11059 (tracepoint_create_breakpoints_sal): Likewise.
11060 (tracepoint_decode_linespec): Likewise.
11061 (strace_marker_create_sals_from_address): Likewise.
11062 (strace_marker_create_breakpoints_sal): Likewise.
11063 (strace_marker_decode_linespec): Likewise.
11064 (strace_marker_breakpoint_ops): New variable.
11065 (addr_string_to_sals): Remove `marker_spec'. Call method
11066 `decode_linespec' from breakpoint_ops, replacing code that decoded
11067 an address string into a SAL. Use `strace_marker_p' instead of
11068 `marker_spec'.
11069 (strace_command): Decide whether we are dealing with a static
11070 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11071 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11072 * breakpoint.h (linespec_result, linespec_sals): New forward
11073 declarations.
11074 (breakpoint_ops) <create_sals_from_address>,
11075 <create_breakpoints_sal>, <decode_linespec>: New methods.
11076
4795f398
DE
110772012-01-14 Doug Evans <dje@google.com>
11078
11079 * NEWS: Update text for "maint set python print-stack".
11080 It is deprecated in gdb 7.4 and deleted in 7.5.
11081
ee5106fe
EZ
110822012-01-13 Eli Zaretskii <eliz@gnu.org>
11083
11084 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11085 including curses.h.
11086
b161e06f
JK
110872012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11088
11089 * configure: Regenerate.
11090 * config.in: Regenerate.
11091
85254831
KS
110922012-01-12 Keith Seitz <keiths@redhat.com>
11093
11094 PR mi/10586
11095 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11096 (ANONYMOUS_UNION_NAME): Define.
11097 (is_path_expr_parent): New function.
11098 (get_path_expr_parent): New function.
11099 (is_anonymous_child): New function.
11100 (create_child_with_value): If the child is anonymous and without
11101 a name, assign an object name to it.
11102 (c_describe_child): Use get_path_expr_parent to determine
11103 the parent expression.
11104 If there field represents an anonymous struct or union and
11105 has no name, set an appropriate display name and expression.
11106 (cplus_describe_child): Likewise.
11107
620fa63a
PA
111082012-01-12 Pedro Alves <palves@redhat.com>
11109
11110 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11111 available when %ebp is found to be zero (outermost).
11112
2efa2c79
AT
111132012-01-11 Andreas Tobler <andreast@fgznet.ch>
11114
11115 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11116 an internal gdb_static_assert.
11117 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11118
88e7d25d
TT
111192012-01-11 Tom Tromey <tromey@redhat.com>
11120
11121 PR gdb/9598:
11122 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11123 catch" and "catch throw".
11124
72384ba3
PH
111252012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11126
11127 * blockframe.c (block_innermost_frame): Start search from selected
11128 frame, if present, or otherwise the current frame.
11129
11130 * c-exp.y (variable): Update innermost_block for
11131 'block COLONCOLON NAME' clause.
11132 * m2-exp.y (variable): Ditto.
11133 * objc-exp.y (variable): Ditto.
11134
065a711f
TT
111352012-01-10 Tom Tromey <tromey@redhat.com>
11136
11137 PR python/13199:
11138 * python/python.c (finish_python_initialization): Set sys.argv.
11139
f3f5162e
DE
111402012-01-10 Doug Evans <dje@google.com>
11141
11142 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11143 "want_line_info". All callers updated.
11144 (dwarf_decode_lines_1): New function.
11145 (handle_DW_AT_stmt_list): Add function comment.
11146 New arg "want_line_info". All callers updated.
11147 (read_file_scope,read_type_unit_scope): Move comment from
11148 handle_DW_AT_stmt_list to here.
11149
9934703b
JK
111502012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11151
11152 Fix regression after libiberty/ update for GCC PR 6057 and others.
11153 * c-exp.y (operator) <OPERATOR DELETE>
11154 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11155 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11156 (make_builtin_type, make_name): New variable i, add gdb_assert.
11157 (operator) <OPERATOR NEW>: Update ARGS to 3.
11158 (operator) <OPERATOR DELETE>: Add trailing space.
11159 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11160 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11161 * cp-support.c (cp_canonicalize_string): Check NULL from
11162 cp_comp_to_string, call warning and return.
11163
06b9f45f
JK
111642012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11165
11166 Fix duplicate .o files after omitting libbfd.a.
11167 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11168 (SFILES): Add corelow.c.
11169 (COMMON_OBS): Add corelow.o.
11170 (ALLDEPFILES): Remove corelow.c.
11171 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11172 * config/alpha/alpha-osf3.mh: Likewise.
11173 * config/alpha/fbsd.mh: Likewise.
11174 * config/arm/nbsdaout.mh: Likewise.
11175 * config/arm/nbsdelf.mh: Likewise.
11176 * config/i386/i386gnu.mh: Likewise.
11177 * config/ia64/hpux.mh: Likewise.
11178 * config/ia64/linux.mh: Likewise.
11179 * config/m32r/linux.mh: Likewise.
11180 * config/m68k/linux.mh: Likewise.
11181 * config/mips/irix5.mh: Likewise.
11182 * config/mips/irix6.mh: Likewise.
11183 * config/pa/hpux.mh: Likewise.
11184 * config/pa/linux.mh: Likewise.
11185 * config/powerpc/aix.mh: Likewise.
11186 * config/sparc/linux.mh: Likewise.
11187 * config/sparc/linux64.mh: Likewise.
11188 * config/sparc/sol2.mh: Likewise.
11189 * config/vax/vax.mh: Likewise.
11190 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11191 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11192 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11193 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11194 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11195 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11196 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11197 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11198 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11199 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11200 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11201 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11202 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11203 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11204 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11205 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11206 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11207 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11208 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11209 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11210 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11211 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11212 corelow.o from gdb_target_obs.
11213 * corefile.c (core_target): Update the comment on NULL value.
11214 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11215 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11216 MATCHES. Drop YUMMY set on NULL.
11217 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11218 reclaim CORE_DATA if it is already NULL.
11219
34365054
DE
112202012-01-09 Doug Evans <dje@google.com>
11221
11222 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11223 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11224
696166a3
KS
112252012-01-09 Keith Seitz <keiths@redhat.com>
11226
11227 * breakpoint.c (wrapper.h): Don't include.
11228
8e7b59a5
KS
112292012-01-09 Keith Seitz <keiths@redhat.com>
11230
11231 * Makefile.in (SFILES): Remove wrapper.c.
11232 (HFILES_NO_SRCDIR): Remove wrapper.h.
11233 (COMMON_OBS): Remove wrapper.o.
11234 * cli/cli-interp.c: Don't inlude wrapper.h.
11235 * corelow.c: Likewise.
11236 (core_open): Replace gdb_target_find_new_threads with
11237 TRY_CATCH around target_find_new_threads.
11238 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11239 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11240 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11241 evaluate_expression.
11242 (varobj_set_value): Likewise for evaluate_expression and
11243 value_assign.
11244 (install_new_variable): Likewise for value_fetch_lazy.
11245 (adjust_value_for_child_access): Likewise for value_ind.
11246 (c_describe_child): Likewise for value_subscript and
11247 value_ind.
11248 (c_value_of_root): Likewise for evaluate_expression.
11249 * wrapper.c: Remove.
11250 * wrapper.h: Remove.
11251
1a4eeb98
DE
112522012-01-09 Doug Evans <dje@google.com>
11253
9ff913ba
DE
11254 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11255 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11256 "abfd" args with "section". All callers updated.
11257 Error checking code moved ...
11258 (error_check_comp_unit_head): ... here. New function.
11259 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11260 Delete arg "abfd". New arg "type_offset". All callers updated.
11261 (create_debug_types_hash_table): Simplify by using
11262 read_and_check_type_unit_head.
11263
1a4eeb98
DE
11264 * parser-defs.h (namecopy): Delete.
11265 * parse.c (namecopy, namecopy_size): Move into copy_name.
11266
2e6af8c0
JK
112672012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11268
11269 Partially fix duplicate .o files after omitting libbfd.a.
11270 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11271 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11272 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11273 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11274 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11275 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11276 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11277
9f2f828a
PA
112782012-01-09 Pedro Alves <palves@redhat.com>
11279
11280 * MAINTAINERS: Update my email address.
11281
4d72c0bc
DE
112822012-01-08 Doug Evans <dje@google.com>
11283
d467dd73
DE
11284 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11285 n_type_units. Rename type_comp_units to all_type_units.
11286 All uses updated.
11287 (add_signatured_type_cu_to_table): Renamed from
11288 add_signatured_type_cu_to_list. All callers updated.
11289
4d72c0bc
DE
11290 * gdbtypes.h (struct cplus_struct_type): Delete member
11291 nfn_fields_total. All uses removed.
11292
21b2bd31
DE
112932012-01-06 Doug Evans <dje@google.com>
11294
11295 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11296 to top of file.
11297 (dwarf2_find_comp_unit): Delete.
11298 (process_psymtab_comp_unit): Make result "void".
11299 Delete args buffer, info_ptr, buffer_size, and replace with
11300 "section". All callers updated.
11301 (dwarf2_build_psymtabs_hard): Simplify.
11302
bfd189b1
SDJ
113032012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11304 Thiago Jung Bauermann <bauerman@br.ibm.com>
11305
11306 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11307 before `struct gdb_exception'.
11308 * breakpoint.c (update_global_location_list_nothrow)
11309 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11310 * cp-abi.c (value_rtti_type): Likewise.
11311 * cp-support.c (cp_validate_operator): Likewise.
11312 * infrun.c (insert_exception_resume_breakpoint)
11313 (check_exception_resume, keep_going): Likewise.
11314 * mi-interp.c (mi_breakpoint_created)
11315 (mi_breakpoint_modified): Likewise.
11316 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11317 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11318 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11319
6b07635f
DE
113202012-01-05 Doug Evans <dje@google.com>
11321
0b30b85c
DE
11322 * dwarf2read.c (statement_prologue): Delete, unused.
11323
98714339
DE
11324 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11325 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11326
6b07635f
DE
11327 * dwarf2read.c (comp_unit_header): Delete, unused.
11328
761f4555
UW
113292012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11330
11331 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11332 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11333
2ca0b532
PA
113342012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11335
11336 * infrun.c (normal_stop): Don't skip calling the normal_stop
11337 observers if the thread was doing a multi-step, but stopped for
11338 some reason other than stepping.
11339
50aeff07
PA
113402012-01-05 Pedro Alves <alves.ped@gmail.com>
11341
11342 * cli/cli-decode.h: Add comments.
11343 (CMD_LIST_AMBIGUOUS): Moved to command.h
11344 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11345 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11346 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11347 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11348 (add_com, add_com_alias, add_info, add_info_alias)
11349 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11350 declarations.
11351 * command.h: Add and adjust comments.
11352 (CMD_LIST_AMBIGUOUS): Moved here.
11353 (help_cmd, help_cmd_list): Delete declarations.
11354
5953832c
DE
113552012-01-04 Doug Evans <dje@google.com>
11356
e5fe5e75
DE
11357 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11358 All callers updated.
11359 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11360 Replace all arguments with "per_cu". All callers updated.
11361
28dee7f5
DE
11362 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11363
23745b47
DE
11364 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11365 New arg "per_cu". All callers updated.
11366
5953832c
DE
11367 Delete #if 0'd out code.
11368 * language.c (binop_result_type): Delete.
11369 (simple_type, ordered_type, same_type, integral_type): Delete.
11370 (numeric_type, character_type, string_type, boolean_type): Delete.
11371 (float_type, structured_type): Delete.
11372 * language.h: Update.
11373
0f5b7562
TT
113742012-01-04 Tom Tromey <tromey@redhat.com>
11375
11376 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11377
78218f56
JB
113782012-01-04 Joel Brobecker <brobecker@adacore.com>
11379
11380 * corefile.c (close_exec_file): Delete.
11381 (reopen_exec_file): Remove commented out code that seems related
11382 to close_exec_file, which is being deleted here.
11383 * inferior.h (close_exec_file): Delete.
11384 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11385
0fcd72ba
JB
113862012-01-04 Joel Brobecker <brobecker@adacore.com>
11387
11388 * ada-lang.c: #include "cli/cli-utils.h".
11389 (get_selections): Use skip_spaces.
11390 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11391 (catch_ada_exception_command_split): Use skip_spaces.
11392 (ada_decode_assert_location): Likewise.
11393
1dabb4c4
JB
113942012-01-04 Joel Brobecker <brobecker@adacore.com>
11395
11396 * linespec.c (decode_line_internal): Check for C++ or Java
11397 compound constructs only if the current language is C, C++
11398 or Java.
11399
5931a2fa
JK
114002012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11401
11402 Revert:
11403 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11404 Joel Brobecker <brobecker@adacore.com>
11405 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11406 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11407 3 times.
11408 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11409 fall through into AT_ENTRY_POINT.
11410 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11411 DUMMY_ADDR with it.
11412 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11413 PPC_INSN_SIZE skip to 3 times.
11414
1a2da5ee
JB
114152012-01-04 Joel Brobecker <brobecker@adacore.com>
11416
11417 * linespec.c (add_minsym): Preserve function descriptors.
11418
8645ff69
UW
114192012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11420
11421 * breakpoint.c (all_locations_are_pending): Consider locations
11422 in program spaces executing during startup pending as well.
11423
0b302171
JB
114242012-01-04 Joel Brobecker <brobecker@adacore.com>
11425
11426 Copyright year update in most files of the GDB Project.
11427
8ba098ad
JB
114282012-01-04 Joel Brobecker <brobecker@adacore.com>
11429
11430 * copyright.sh: Delete.
11431 * copyright.py: Rewrite.
11432
09c01c30
JB
114332012-01-04 Joel Brobecker <brobecker@adacore.com>
11434
11435 * gnulib/extra/update-copyright: New file, imported from gnulib.
11436
3c36c0af
JB
114372012-01-04 Joel Brobecker <brobecker@adacore.com>
11438
11439 * README (Copyright and License Notices): New section.
11440
888fe1e1
TT
114412012-01-03 Tom Tromey <tromey@redhat.com>
11442
11443 PR python/12533:
11444 * python/py-value.c (valpy_dereference, valpy_get_address
11445 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11446 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11447 (valpy_absolute, valpy_richcompare): Free intermediate values.
11448
6e681866
JB
114492011-01-03 Joel Brobecker <brobecker@adacore.com>
11450
11451 * ada-lang.c: Reformat the copyright notice.
11452
0cd09acb
JK
114532012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11454
11455 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11456 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11457 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11458 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11459 Revert this part of:
11460 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11461 Build gdb directly from *.o files not using libgdb.a.
11462 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11463
12c3e59c
JB
114642012-01-02 Joel Brobecker <brobecker@adacore.com>
11465
11466 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11467 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11468 Reformat the copyright header.
11469
11bf1490
JK
114702012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11471
11472 Revert this part of:
11473 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11474 Remove the gdbtui binary.
11475 * gdb.c (main): Remove args.interpreter_p initialization.
11476 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11477 * main.h (struct captured_main_args): Remove interpreter_p.
11478
1fef196f
JB
114792012-01-02 Joel Brobecker <brobecker@adacore.com>
11480
11481 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11482
67827812
JB
114832012-01-02 Joel Brobecker <brobecker@adacore.com>
11484
11485 * top.c (print_gdb_version): Update copyright year.
11486
a4d0b831
YQ
114872012-01-02 Yao Qi <yao@codesourcery.com>
11488
11489 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11490
b5914469
JK
114912012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11492 Joel Brobecker <brobecker@adacore.com>
11493
11494 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11495 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11496 3 times.
11497 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11498 fall through into AT_ENTRY_POINT.
11499 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11500 DUMMY_ADDR with it.
11501 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11502 PPC_INSN_SIZE skip to 3 times.
11503
8da828f7
JK
115042012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11505
11506 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11507 the return value.
11508 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11509
8574e74b
JK
115102012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11511
11512 Build gdb directly from *.o files not using libgdb.a.
11513 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11514 (COMMON_OBS): Remove solib-target.o.
11515 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11516 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11517 (LIBGDB_OBS, libgdb.a): Move it above.
11518 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11519 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11520 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11521 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11522 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11523 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11524 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11525 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11526 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11527 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11528 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11529 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11530 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11531 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11532 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11533 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11534 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11535 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11536 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11537 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11538 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11539 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11540 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11541 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11542 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11543 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11544 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11545
217bff3e
JK
115462012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11547
11548 Remove the gdbtui binary.
11549 * .gitignore (/gdbtui): Remove.
11550 * Makefile.in (TUI): Remove.
11551 (SUBDIR_TUI_OBS): Remove tui-main.o.
11552 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11553 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11554 (tui-main.o): Remove.
11555 (all_object_files): Remove tui-main.o.
11556 * NEWS: New note for the gdbtui removal.
11557 * configure: Rebuilt.
11558 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11559 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11560 CONFIG_UNINSTALL respectively.
11561 * gdb.c (main): Remove args.interpreter_p initialization.
11562 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11563 * main.h (struct captured_main_args): Remove interpreter_p.
11564 * tui/tui-main.c: Remove.
11565
9cdd5dbd
DE
115662012-01-01 Doug Evans <dje@google.com>
11567
bb5ed363
DE
11568 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11569 (dwarf2_physname, read_import_statement): Ditto.
11570 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11571 (process_structure_scope read_subroutine_type): Ditto.
11572 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11573 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11574 (dwarf2_fetch_die_location_block): Ditto.
11575 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11576
a0f42c21
DE
11577 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11578 All callers updated.
11579 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11580 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11581 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11582
2dc860c0
DE
11583 * dwarf2read.c (load_cu): Move assert to more useful location.
11584
68dc6402
DE
11585 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11586 All callers updated.
11587
9cdd5dbd
DE
11588 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11589 (dwarf2_elf_names): Minor reformat.
11590 (dwarf2_per_cu_data): Tweak comment.
11591 (dwarf2_read_section): Fix comment.
11592 (create_all_comp_units): Fix comment.
11593 (load_full_comp_unit): Fix comment.
11594 (process_full_comp_unit): Fix comment.
11595 (read_signatured_type): Fix comment.
11596
0c10e53e 11597For older changes see ChangeLog-2011.
c906108c
SS
11598\f
11599Local Variables:
11600mode: change-log
11601left-margin: 8
11602fill-column: 74
11603version-control: never
57da7796 11604coding: utf-8
c906108c 11605End:
This page took 2.11757 seconds and 4 git commands to generate.