]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
79d43c61
TT
12012-11-12 Tom Tromey <tromey@redhat.com>
2
3 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
4 to type-printing functions.
5 * ada-lang.h (ada_print_type): Add argument.
6 * ada-typeprint.c (print_array_type, print_variant_clauses,
7 print_variant_part, print_selected_record_field_types,
8 print_record_field_types, print_unchecked_union_type,
9 print_func_type, ada_print_type): Add flags argument.
10 (ada_print_typedef): Update.
11 * c-exp.y (OPERATOR conversion_type_id): Update.
12 * c-lang.h (c_print_type, c_type_print_base): Update.
13 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
14 c_type_print_modifier, c_type_print_args,
15 c_type_print_varspec_suffix, c_type_print_base): Add flags
16 argument.
17 * cp-valprint.c (cp_print_class_member): Update.
18 * dwarf2read.c (dwarf2_compute_name): Update.
19 * f-lang.h (f_print_type): Add argument.
20 * f-typeprint.c (f_print_type): Add flags argument.
21 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
22 * go-lang.h (go_print_type): Add argument.
23 * go-typeprint.c (go_print_type): Add flags argument.
24 * jv-lang.h (java_print_type): Add argument.
25 * jv-typeprint.c (java_type_print_base, java_print_type): Add
26 flags argument.
27 * language.c (unk_lang_print_type): Add flags argument.
28 * language.h (struct language_defn) <la_print_type>: Add flags
29 argument.
30 (LA_PRINT_TYPE): Likewise.
31 * m2-lang.h (m2_print_type): Add argument.
32 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
33 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
34 m2_unbounded_array, m2_record_fields): Add flags argument.
35 * p-lang.h (pascal_print_type, pascal_type_print_base,
36 pascal_type_print_varspec_prefix): Add argument.
37 * p-typeprint.c (pascal_print_type,
38 pascal_type_print_varspec_prefix, pascal_print_func_args,
39 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
40 flags argument.
41 * symmisc.c (print_symbol): Update.
42 * typeprint.c (type_print_raw_options, default_ptype_flags):
43 New globals.
44 (type_print): Update.
45 * typeprint.h (struct type_print_options): New.
46 (type_print_raw_options): Declare.
47 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
48
cf4ded82
KS
492012-11-10 Keith Seitz <keiths@redhat.com>
50
51 * breakpoint.c (clear_command): Add cleanup for
52 sals.sals if an argument is given.
53
54 * linespec.c (parse_linespec): Do cleanups after
55 parsing a convenience variable.
56
0d63ecda
KS
572012-11-10 Keith Seitz <keiths@redhat.com>
58
59 PR gdb/14288
60 * c-valprint.c (c_val_print): For character arrays
61 with "print null" option on, print ellipses if
62 the output is truncated and the next character is not \000.
63 * valprint.c (MAX_WCHARS): Define.
64 (WCHAR_BUFLEN): Likewise.
65 (WCHAR_BUFLEN_MAX): Likewise.
66 (struct converted_character): New structure.
67 (count_next_character): New function.
68 (print_converted_chars_to_obstack): New function.
69 (generic_printstr): Rewrite using count_next_character
70 and print_converted_chars_to_obstack.
71
9b8d6827
SC
722012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
73
74 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
75 while executing the gdb command.
76 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
77 are called from prompt_for_continue.
78 * tui/tui-io.c (tui_redisplay_readline): Likewise.
79
e840f632
SC
802012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
81
82 PR tui/9584
83
84 * tui/tui.c (tui_rl_command_key): Do not call execute_command
85 but insert the command to execute in readline's buffer.
86
f5656ead
TT
872012-11-09 Tom Tromey <tromey@redhat.com>
88
89 * gdbarch.sh (target_gdbarch): Remove macro.
90 (get_target_gdbarch): Rename to target_gdbarch.
91 * gdbarch.c, gdbarch.h: Rebuild.
92 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
93 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
94 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
95 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
96 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
97 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
98 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
99 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
100 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
101 procfs.c, progspace.c, ravenscar-thread.c, record.c,
102 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
103 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
104 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
105 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
106 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
107 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
108 target-descriptions.c, target.c, target.h, tracepoint.c,
109 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
110 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
111 python/py-inferior.c, python/python.c: Update.
112
ed8a1c2d
AB
1132012-11-09 Andrew Burgess <aburgess@broadcom.com>
114
115 * source.c (print_source_lines_base): Add fullname field giving
116 full path to file in mi output.
117 * NEWS: Mention the new fullname field.
118
504b36fd
YQ
1192012-11-09 Yao Qi <yao@codesourcery.com>
120
121 * NEWS: Mention the fix to the ambiguity of 'fo' command.
122
9107fc8d
PA
1232012-11-09 Pedro Alves <palves@redhat.com>
124
125 PR gdb/14306
126
127 * infrun.c: Include target-descriptions.h.
128 (follow_exec): Fetch new target description.
129
30f8135b
YQ
1302012-11-09 Yao Qi <yao@codesourcery.com>
131
132 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
133 0x8d (lea).
134
558a9d82
YQ
1352012-11-09 Yao Qi <yao@codesourcery.com>
136
137 * breakpoint.c: Declare set_tracepoint_count.
138 (install_breakpoint): Call set_tracepoint_count if B is a
139 tracepoint.
140 (trace_command): Don't call set_tracepoint_count. Re-indent.
141 (strace_command, ftrace_command):
142 (create_tracepoint_from_upload): Likewise.
143
6ecd4729
PA
1442012-11-09 Pedro Alves <palves@redhat.com>
145
146 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
147 (get_target_gdbarch) <gdbarch.h>: New function.
148 (startup_gdbarch) <gdbarch.h>: Declare.
149 <gdbarch.c> (target_gdbarch): Delete.
150 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
151 current inferior's gdbarch.
152 <gdbarch.c> (get_target_gdbarch): New function.
153 * inferior.c: Include target-descriptions.h.
154 (free_inferior): Free target description info.
155 (add_inferior_with_spaces): Set the inferior's initial
156 architecture.
157 (clone_inferior_command): Copy the original inferior's target
158 description if it was user specified.
159 (initialize_inferiors): Add comment.
160 * inferior.h (struct target_desc_info): Forward declare.
161 (struct inferior) <gdbarch>: New field.
162 * linux-nat.c: Include target-descriptions.h.
163 (linux_child_follow_fork): Copy the parent's architecture and
164 target description to the child.
165 * target-descriptions.c: Include inferior.h.
166 (struct target_desc_info): New structure, holding the equivalents
167 of ...
168 (target_desc_fetched, current_target_desc)
169 (target_description_filename): ... these removed globals.
170 (get_tdesc_info, target_desc_info_from_user_p)
171 (copy_inferior_target_desc_info, target_desc_info_free): New.
172 (target_desc_fetched, current_target_desc)
173 (target_description_filename): Reimplemented as convenience
174 macros.
175 (tdesc_filename_cmd_string): New global.
176 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
177 tdescs filename ..." commands to the per-inferior equivalent.
178 (show_tdesc_filename_cmd): Get the value to show from the
179 per-inferior description filename.
180 (_initilize_target_descriptions): Change the "set/show tdesc
181 filename" commands' variable.
182 * target-descriptions.h (struct target_desc, struct target_desc_info)
183 (struct inferior): Forward declare.
184 (target_find_description, target_clear_description)
185 (target_current_description): Adjust comments.
186 (copy_inferior_target_desc_info, target_desc_info_free)
187 (target_desc_info_from_user_p). Declare.
188
4ca4d161
SC
1892012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
190
191 * tui/tui-hooks.c (tui_about_to_proceed): New function.
192 (tui_target_wait_hook): Remove.
193 (tui_install_hooks): Install the about_to_proceed observer.
194 (tui_remove_hooks): And remove it here.
195
9015683b
TT
1962012-11-08 Tom Tromey <tromey@redhat.com>
197
198 * linux-tdep.c (linux_make_siginfo_note): New function.
199 (linux_make_corefile_notes): Use it.
200 * corelow.c (get_core_siginfo): New function.
201 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
202
ea9f10bb
TT
2032012-11-08 Tom Tromey <tromey@redhat.com>
204
205 PR gdb/14704:
206 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
207 (zlib_decompress_section): Remove.
208 (gdb_bfd_map_section): Only check for compressed section
209 in mmap case. Use bfd_get_full_section_contents.
210 * osabi.c (check_note): Add 'sectsize' argument. Read
211 section data.
212 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
213 section data. Update for check_note change.
214 * xcoffread.c (xcoff_initial_scan): Use
215 bfd_get_full_section_contents.
216 * py-auto-load.c (auto_load_section_scripts): Use
217 bfd_get_full_section_contents.
218 * contrib/cc-with-tweaks.sh: Add -Z option.
219
d071a26b
TT
2202012-11-08 Tom Tromey <tromey@redhat.com>
221
222 * python/py-bpevent.c: Include defs.h.
223 * python/py-continueevent.c: Include defs.h.
224 * python/py-event.c: Include defs.h.
225 * python/py-event.h: Don't include defs.h.
226 * python/py-events.h: Don't include defs.h.
227 * python/py-evts.c: Include defs.h.
228 * python/py-exitedevent.c: Include defs.h.
229 * python/py-newobjfileevent.c: Include defs.h.
230 * python/py-signalevent.c: Include defs.h.
231 * python/py-stopevent.c: Include defs.h.
232 * python/py-threadevent.c: Include defs.h.
233
4574b35a
PM
2342012-11-08 Pierre Muller <muller@sourceware.org>
235
236 * update-web-ari.sh (print_heading): Add number of files
237 checked.
238 (nb_files): New variable counting the number of sources
239 files found by gdb_find.sh script.
240 (debug_awk): New variable to allow extra debug output.
241 (indexes): Add more information if DEBUG_AWK is set.
242
2834ab42
EBM
2432012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
244
245 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
246 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
247 following the change in PLT call stubs on linker.
248
84f13595
PM
2492012-11-08 Pierre Muller <muller@sourceware.org>
250
251 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
252 as default language.
253 (AWK): Use = instead of == for sh test to avoid warning.
254 (Linux rule): Correct [:digit] into [[:digit:]].
255 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
256 (vasprintf rule): Adapt to common subdirectory moves.
257 (xasprintf rule): Idem.
258 (xvasprintf rule): Idem.
259 (var_boolean rule): Accept occurence in == or != test.
260
261 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
262
d69e6a33
SC
2632012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
264
265 * tui/tui-hooks.c (tui_inferior_exit): New function.
266 (tui_detach_hook): Remove.
267 (tui_install_hooks): Install the inferior exit observer.
268 (tui_remove_hooks): Remove it.
269
1e96de83
YQ
2702012-11-08 Yao Qi <yao@codesourcery.com>
271
272 PR gdb/14777.
273 * source.c (_initialize_source): Call add_com_alias to abbreviate
274 'forward-search' as 'fo'.
275
0baeab03
PA
2762012-11-07 Pedro Alves <palves@redhat.com>
277
278 * arm-tdep.c: Make defs.h be the first include.
279 * coff-pe-read.c: Ditto.
280 * gnu-nat.c: Ditto.
281 * go32-nat.c: Ditto.
282 * i386-nat.c: Ditto.
283 * ppcnbsd-nat.c: Ditto.
284 * ada-varobj.h: Don't include defs.h.
285 * i386-darwin-tdep.h: Ditto.
286 * i386-nat.h: Ditto.
287
892a8570
PA
2882012-11-07 Pedro Alves <palves@redhat.com>
289
290 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
291 Committee.
292
719502e9
PM
2932012-11-07 Pierre Muller <muller@sourceware.org>
294
295 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
296 File already uses "gdb_dirent.h" header.
297
ed86b350
YQ
2982012-11-07 Yao Qi <yao@codesourcery.com>
299
300 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
301 tracepoint_count'.
302
9a4f1e4f
TT
3032012-11-06 Tom Tromey <tromey@redhat.com>
304
305 * target.h (inferior_has_forked, inferior_has_vforked)
306 (inferior_has_execd, inferior_has_called_syscall): Remove
307 declarations.
308
0316657e
PM
3092012-11-06 Pierre Muller <muller@sourceware.org>
310
311 * remote.c (remote_insert_hw_breakpoint): ARI fix,
312 add missing internalization markup.
313
f6592439
PA
3142012-11-06 Pedro Alves <palves@redhat.com>
315
316 PR gdb/14810
317
318 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
319
01f2564a
PM
3202012-11-06 Pierre Muller <muller@sourceware.org>
321
322 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
323 is not executable.
324
f37c4431
JB
3252012-11-05 Joel Brobecker <brobecker@adacore.com>
326
327 * gnulib/update-gnulib.sh: New script.
328
550889c3
JB
3292012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
330
331 * MAINTAINERS: Update my email address.
332
954b50b3
TT
3332012-11-05 Tom Tromey <tromey@redhat.com>
334
335 * frame.c (put_frame_register): Don't use temporary buffer.
336
68c9da30
PA
3372012-11-05 Pedro Alves <palves@redhat.com>
338
339 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
340 child. Clear 'pending_detach'.
341 * infrun.c (handle_vfork_child_exec_or_exit): Clear
342 'pending_detach' in the vfork parent.
343
80626a55
DE
3442012-11-05 Doug Evans <dje@google.com>
345
346 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
347 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
348 * dwarf2read.c: #include "elf-bfd.h".
349 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
350 (dwop_section_names): Renamed from dwo_section names. All uses
351 updated. Add entries for .debug_cu_index, .debug_tu_index.
352 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
353 All uses updated.
354 (struct dwp_sections): New type.
355 (struct virtual_dwo_sections): New type.
356 (struct dwp_hash_table): New type.
357 (struct dwp_file): New type.
358 (init_cutu_and_read_dies): Ensure DWO info/types section has been
359 read in. Handle DWOs coming from DWP files.
360 (lookup_dwo_file_slot): New function.
361 (dwarf2_locate_dwo_sections): Move definition closer to use.
362 (create_dwo_debug_info_hash_table_reader): Renamed from
363 create_debug_info_hash_table_reader. All callers updated.
364 (create_dwo_debug_info_hash_table): Renamed from
365 create_debug_info_hash_table. All callers updated.
366 (create_dwp_hash_table): New function.
367 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
368 (lookup_dwo_in_dwp): New function.
369 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
370 is_dwp. All callers updated.
371 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
372 (open_and_init_dwo_file): Renamed from init_dwo_file.
373 All callers updated.
374 (lookup_dwo_file): Delete.
375 (dwarf2_locate_dwp_sections): New function.
376 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
377 (allocate_dwp_loaded_cutus_table): New function.
378 (open_and_init_dwp_file): New function.
379 (lookup_dwo_cutu): New function.
380 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
381
6f6484cd
YQ
3822012-11-03 Yao Qi <yao@codesourcery.com>
383
384 Fix PR gdb/14617.
385 * breakpoint.c (trace_pass_set_count): Call
386 observer_notify_breakpoint_modified instead of
387 observer_notify_tracepoint_modified.
388 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
389
b45627a0
TT
3902012-11-02 Tom Tromey <tromey@redhat.com>
391
392 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
393 argument to complete_on_enum.
394
d4fb63e1
TT
3952012-11-02 Tom Tromey <tromey@redhat.com>
396
397 * configure: Rebuild.
398 * configure.ac (build_warnings): Add -Wempty-body.
399 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
400 * remote.c (handle_notification): Use braces for empty 'else' body.
401 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
402 'else' body.
403 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
404 'else' body.
405 * solib-som.c (som_relocate_section_addresses): Use braces
406 for empty 'else' body.
407 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
408 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
409
f50f4e56
PA
4102012-11-02 Pedro Alves <palves@redhat.com>
411
412 PR gdb/14766
413
414 * infrun.c (handle_inferior_event)
415 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
416 null_ptid before handling a vfork child exec or exit. Switch to
417 the event ptid afterwards.
418
f0559fff
YQ
4192012-11-02 Yao Qi <yao@codesourcery.com>
420
421 * std-operator.def: Remove OP_LABELED.
422 * eval.c: Remove the declaration of 'get_label'.
423 (get_label): Remove.
424 (evaluate_struct_tuple): Remove code handling OP_LABELED.
425 Update comment.
426 Remove local variable 'variantno' and related code.
427 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
428 with 'fieldno'.
429 * expprint.c (print_subexp_standard): Likewise.
430 (dump_subexp_body_standard): Likewise.
431 * parse.c (operator_length_standard): Likewise.
432
e5496e3e
PM
4332012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
434
435 Incorporate ARI web page generator into GDB sources.
436 * contrib/ari/create-web-ari-in-src.sh: New file.
437 * contrib/ari/gdb_ari.sh: New file.
438 * contrib/ari/gdb_find.sh: New file.
439 * contrib/ari/update-web-ari.sh: New file.
440
c66fb220
TT
4412012-10-31 Tom Tromey <tromey@redhat.com>
442
443 * gdbarch.c: Rebuild.
444 * gdbarch.sh: Remove references to gdbarch_swap.
445 * corelow.c (core_open): Remove obsolete comment.
446
2f27adfe
AB
4472012-10-31 Andrew Burgess <aburgess@broadcom.com>
448
449 PR cli/14772
450 * c-typeprint.c (c_print_type): Don't print a space for vector
451 types, this is handled within the suffix.
452 (c_type_print_varspec_suffix): Add a space to vector suffix.
453
144db827
PA
4542012-10-26 Pedro Alves <palves@redhat.com>
455
456 * amd64-tdep.c (amd64_relocate_instruction): Use
457 store_unsigned_integer instead of memcpy.
458 * i386-tdep.c (i386_relocate_instruction): Ditto.
459
940c3c06
PA
4602012-10-26 Pedro Alves <palves@redhat.com>
461
462 * infrun.c (handle_inferior_event): Merge handling of
463 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
464 switch case.
465
47b19065
PA
4662012-10-26 Pedro Alves <palves@redhat.com>
467
468 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
469 Remove comment.
470
87d2d2a4
PA
4712012-10-26 Pedro Alves <palves@redhat.com>
472
473 * target.c (target_waitstatus_to_string): Handle
474 TARGET_WAITKIND_VFORK_DONE.
475
fed708ed
PA
4762012-10-26 Pedro Alves <palves@redhat.com>
477
478 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
479 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
480
2590b645
JB
4812012-10-24 Tristan Gingold <gingold@adacore.com>
482
483 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
484 Add comments.
485
bed0c243
JB
4862012-10-24 Joel Brobecker <brobecker@adacore.com>
487
488 * ravenscar-thread.c (ravenscar_wait): Only update the list
489 of threads and inferior_ptid if the inferior is still alive.
490
f69c91ad
JB
4912012-10-24 Joel Brobecker <brobecker@adacore.com>
492
493 * ada-lang.c (is_known_support_routine): Use lbasename when
494 matching the symtab's filename against
495 known_runtime_file_name_patterns.
496
d99dcf51
JB
4972012-10-24 Joel Brobecker <brobecker@adacore.com>
498
499 * ada-lang.c (ada_same_array_size_p): New function.
500 (ada_promote_array_of_integrals): New function.
501 (coerce_for_assign): Add handling of arrays where the elements
502 are integrals of a smaller size than the size of the target
503 array element type.
504
32560274
JB
5052012-10-24 Joel Brobecker <brobecker@adacore.com>
506
507 * doublest.c (convert_doublest_to_floatformat): Fix comparison
508 against maximum exponent value.
509
5a04cc98
JB
5102012-10-24 Joel Brobecker <brobecker@adacore.com>
511
512 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
513 "unwind-seh.c".
514
5ded5331
JB
5152012-10-24 Joel Brobecker <brobecker@adacore.com>
516
517 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
518 strip typedef layer when computing the fixed type's field type,
519 only when computing its size.
520
2445fd7b
MK
5212012-10-24 Mark Kettenis <kettenis@gnu.org>
522
523 PR gdb/12783
524 * i386-tdep.c (i386_return_value): Handle complex double and long
525 double.
526
8f205f9c
JB
5272012-10-24 Joel Brobecker <brobecker@adacore.com>
528
529 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
530 New local variable args_len.
531 Quote the name of the executable when computing the command line.
532
7f7930dd
MK
5332012-10-23 Mark Kettenis <kettenis@gnu.org>
534
535 PR gdb/12796
536 PR gdb/12798
537 PR gdb/12800
538 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
539 AMD64_FTAG_REGNUM.
540 * amd64-tdep.c (amd64_classify): Classify complex types.
541 (amd64_return_value): Handle the COMPLEX_X87 class.
542
38a69d0a
JB
5432012-10-23 Joel Brobecker <brobecker@adacore.com>
544
545 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
546 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
547
83ab93c6
JB
5482012-10-23 Joel Brobecker <brobecker@adacore.com>
549
550 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
551 function.
552 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
553 to amd64_windows_auto_wide_charset.
554
f6fbab7d
YQ
5552012-10-23 Yao Qi <yao@codesourcery.com>
556
557 * event-top.c (mark_async_signal_handler_wrapper): Remove.
558 * event-top.h: Remove its declaration.
559 (async_request_quit): Call mark_async_signal_handler instead of
560 mark_async_signal_handler_wrapper.
561 (async_do_nothing, async_disconnect): Likewise.
562 (async_stop_sig): Likewise.
563 * remote.c (handle_remote_sigint): Likewise.
564 (handle_remote_sigint_twice): Likewise.
565
05fa9251
YQ
5662012-10-23 Yao Qi <yao@codesourcery.com>
567
568 * event-top.c (sigint_token, sighup_token): Replace 'void *'
569 with 'static struct async_signal_handler *'.
570 (sighup_token, sigquit_token, sigstp_token): Likewise.
571
08af7a40
AA
5722012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
573
574 * gdbarch.sh (function_list): Use 'pstring' when printing
575 a variable which could return NULL.
576 * gdbarch.c: Regenerate.
577
beb4b03c
JB
5782012-10-10 Joel Brobecker <brobecker@adacore.com>
579 Tom Tromey <tromey@redhat.com>
580
581 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
582 inneffective if condition by gdb assertion. Add function
583 description comment.
584
a5b12627
JB
5852012-10-19 Joel Brobecker <brobecker@adacore.com>
586
587 * parser-defs.h (struct exp_descriptor): Document constraint
588 on return value for "op_name" callbacks.
589
0b0865da
TT
5902012-10-18 Tom Tromey <tromey@redhat.com>
591
592 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
593 * symtab.c (iterate_over_some_symtabs): Constify.
594 * source.h (symtab_to_fullname): Return 'const char *'.
595 * source.c (symtab_to_fullname): Return 'const char *'.
596 * python/py-symtab.c (stpy_fullname): Constify.
597 * cli/cli-cmds.c (edit_command): Constify.
598 * breakpoint.c (print_breakpoint_location)
599 (update_static_tracepoint): Constify.
600
94b0e70d
TT
6012012-10-18 Tom Tromey <tromey@redhat.com>
602
603 * breakpoint.c (compare_breakpoints): Fix comparison.
604
fff10684
TT
6052012-10-18 Tom Tromey <tromey@redhat.com>
606
607 * valprint.c (generic_emit_char, generic_printstr): Pass size of
608 gdb_wchar_t to convert_between_encodings.
609
8de0566d
YQ
6102012-10-17 Yao Qi <yao@codesourcery.com>
611
612 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
613 more parameter 'inferior'.
614 * corefile.c (write_memory_with_notification): Caller update.
615
616 * mi/mi-cmd-var.c: Include "mi-main.h".
617 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
618 to 1 and restore it later.
619 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
620 and "data-write-memory-bytes.
621 * mi/mi-interp.c: Include objfiles.h.
622 (mi_interpreter_init): Call observer_attach_memory_changed.
623 (mi_memory_changed): New.
624 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
625 New field.
626
627 * NEWS: Mention new MI notification "memory-changed".
628
6235cdd1
JK
6292012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
630
631 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
632
07540c15
DE
6332012-10-15 Doug Evans <dje@google.com>
634
635 New option -nh: inhibit loading of ~/.gdbinit.
636 * NEWS: Mention -nh.
637 * main.c (captured_main): Recognize and process -nh.
638 (print_gdb_help): Mention -nh.
639 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
640
eab09350
L
6412012-10-15 H.J. Lu <hongjiu.lu@intel.com>
642
643 PR backtrace/14646
644 PR gdb/14647
645 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
646 pc_regnum_from_eax.
647 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
648 nor pc_regnum_from_eax.
649 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
650 nor pc_regnum_from_eax.
651
9e3a7d65
JK
6522012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
653
654 Fix entry values resolving in inlined frames.
655 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
656 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
657 entries of FRAME.
658
c83393b9
JB
6592012-10-15 Joel Brobecker <brobecker@adacore.com>
660
661 * configure.ac: Build with -DMS_WIN64 if building with Python
662 enabled using GCC on amd64-windows.
663 * configure: Regenerate.
664
801e4185
TT
6652012-10-15 Tom Tromey <tromey@redhat.com>
666
667 PR python/14635:
668 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
669 to Py_None.
670
74f910c8
TT
6712012-10-15 Tom Tromey <tromey@redhat.com>
672
673 PR python/14634:
674 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
675
2a7c8fd5
AB
6762012-10-11 Andrew Burgess <aburgess@broadcom.com>
677
678 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
679 reset thread numbering back to 1.
680
7c09e5a0
DE
6812012-10-11 Doug Evans <dje@google.com>
682
683 PR breakpoints/14643.
684 * linespec.c (struct ls_parser): New member keyword_ok.
685 (linespec_lexer_lex_string): Add comment.
686 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
687 for one.
688 (parse_linespec): Set keyword_ok.
689
a1855c1d
DE
6902012-10-10 Doug Evans <dje@google.com>
691
844226d6
DE
692 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
693 "0x" prefix on address in log message.
694
a1855c1d
DE
695 * dwarf2read.c (read_1_byte): Add const to buf parameter.
696 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
697 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
698 (lookup_dwo_file): Add const to dwo_name parameter.
699 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
700
2e24f4aa
JK
7012012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
702
703 Fix crash during stepping on ppc32.
704 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
705 SYM.
706
aa14df25
DE
7072012-10-03 Doug Evans <dje@google.com>
708
709 PR symtab/14601
710 * buildsym.c (buildsym_init): Reset using_directives to NULL.
711
3d468296
AB
7122012-10-02 Andrew Burgess <aburgess@broadcom.com>
713
714 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
715 output and use uint32_t not long to ensure 4 byte size.
716
8f0ee2eb
JB
7172012-10-02 Joel Brobecker <brobecker@adacore.com>
718
719 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
720 unref'ed it.
721
b3dc46ff
AB
7222012-10-01 Andrew Burgess <aburgess@broadcom.com>
723
724 * target.c (simple_search_memory): Include access length in
725 warning message.
726
f712f01f
EBM
7272012-09-28 Nathan Miller <nathanm2@us.ibm.com>
728 Edjunior Machado <emachado@linux.vnet.ibm.com>
729
730 PR gdb/13989
731 * solib.c (solib_find): Prevent GDB from loading native libraries when
732 debugging a cross-target corefile.
733
39181896
PA
7342012-09-28 selven <pcthegreat@gmail.com>
735
736 Make definition match declaration.
737
738 * regcache.c (regcache_register_status): Change return type to
739 enum register_status.
740
4c2786ba
YQ
7412012-09-28 Yao Qi <yao@codesourcery.com>
742
743 * mi/mi-main.c (mi_cmd_data_write_memory): Call
744 write_memory_with_notification instead of write_memory.
745 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
746 instead of target_write_memory.
747
1ae0c35e
YQ
7482012-09-28 Yao Qi <yao@codesourcery.com>
749
750 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
751 when the length of content is not an even number.
752
7977e5d2
TT
7532012-09-27 Tom Tromey <tromey@redhat.com>
754
755 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
756 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
757
807160da
JB
7582012-09-27 Joel Brobecker <brobecker@adacore.com>
759
760 * sol-thread.c (sol_thread_fetch_registers)
761 (sol_thread_store_registers): Delete commented out code.
762
43c75337
JB
7632012-09-27 Joel Brobecker <brobecker@adacore.com>
764
765 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
766 Move these functions to sparc-sol-thread.c.
767 * sparc-sol-thread.c: New file.
768 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
769 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
770 configurations.
771 * configure: Regenerate.
772
d292a972
JB
7732012-09-27 Joel Brobecker <brobecker@adacore.com>
774
775 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
776 Remove commented-out code.
777
8c3da003
JB
7782012-09-27 Joel Brobecker <brobecker@adacore.com>
779
780 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
781 Enable this code for sparc hosts only.
782
f00482b6
JB
7832012-09-27 Joel Brobecker <brobecker@adacore.com>
784
785 * procfs.h (procfs_find_LDT_entry): Add declaration.
786 * sol-thread.c (ps_lgetLDT): Delete local declaration of
787 function procfs_find_LDT_entry.
788
337c776f
JB
7892012-09-27 Joel Brobecker <brobecker@adacore.com>
790
791 * procfs.c (proc_get_LDT_entry): Make static.
792
1a04d88f
JB
7932012-09-27 Joel Brobecker <brobecker@adacore.com>
794
795 * procfs.c (proc_find_memory_regions): Fix declaration.
796
bad43aa5
SP
7972012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
798
799 * amd64-tdep.c (amd64_return_value): Revert previous change
800 that used TYPE_LENGTH directly.
801 * bfin-tdep.c (bfin_extract_return_value): Likewise.
802 (bfin_store_return_value): Likewise.
803 * cris-tdep.c (cris_store_return_value): Likewise.
804 (cris_extract_return_value): Likewise.
805 * h8300-tdep.c (h8300_extract_return_value): Likewise.
806 * hppa-tdep.c (hppa64_return_value): Likewise.
807 * lm32-tdep.c (lm32_store_return_value): Likewise.
808 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
809 * spu-tdep.c (spu_value_from_register): Likewise.
810 * vax-tdep.c (vax_return_value): Likewise.
811
63375b74
SP
8122012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
813
814 * gdbtypes.c (lookup_array_range_type): Expand parameters
815 LOW_BOUND and HIGH_BOUND to LONGEST.
816 (lookup_string_range_type): Likewise.
817 * gdbtypes.h (lookup_array_range_type): Likewise.
818 (lookup_string_range_type): Likewise.
819 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
820 Expand HIGHBOUND to ssize_t.
821 (value_string): Likewise.
822 * value.h (value_cstring): Expand parameter LEN to ssize_t.
823 (value_string): Likewise.
824
19ca11c5
YQ
8252012-09-27 Yao Qi <yao@codesourcery.com>
826
827 PR breakpoints/13898
828 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
829 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
830 per breakpoint type.
831
92107356
PM
8322012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
833
834 * procfs.c: Add gdb_bfd header.
835 * rs6000-nat.c: Likewise.
836 * solib-pa64.c: Likewise.
837 * spu-linux-nat.c: Likewise.
838 * windows-nat.c: Likewise.
839
9742094a
TT
8402012-09-26 Tom Tromey <tromey@redhat.com>
841
842 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
843
0971de02
TT
8442012-09-26 Tom Tromey <tromey@redhat.com>
845
846 * dwarf2read.c (mark_common_block_symbol_computed): New function.
847 (read_common_block): Handle child DIEs with
848 DW_AT_data_member_location.
849 (new_symbol_full): Add special case for common blocks.
850
4357ac6c
TT
8512012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
852 Tom Tromey <tromey@redhat.com>
853
854 * dwarf2read.c (read_common_block): Rewrite.
855 (new_symbol_full): Handle DW_TAG_common_block.
856 * f-lang.c (head_common_list, find_common_for_function):
857 Remove.
858 * f-lang.h (struct common_entry, struct saved_f77_common,
859 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
860 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
861 BLANK_COMMON_NAME_LOCAL): Remove.
862 (struct common_block): New.
863 * f-valprint.c (list_all_visible_commons): Remove.
864 (info_common_command_for_block): New function.
865 (info_common_command): Use it.
866 * stack.c (iterate_over_block_locals): Special case for
867 COMMON_BLOCK_DOMAIN.
868 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
869 constant.
870 (struct general_symbol_info) <value.common_block>: New field.
871 (SYMBOL_VALUE_COMMON_BLOCK): New define.
872
965f07a8
TT
8732012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
874 Tom Tromey <tromey@redhat.com>
875
876 * f-lang.c (allocate_saved_bf_node,
877 allocate_saved_function_node, allocate_saved_f77_common_node,
878 allocate_common_entry_node, tail_common_list, current_common,
879 saved_bf_list, saved_bf_list_end, current_head_bf_list,
880 tmp_bf_ptr, add_common_block, add_common_entry,
881 find_first_common_named, patch_common_entries,
882 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
883 global_remote_debug, get_bf_for_fcn, saved_function_list,
884 saved_function_list_end, clear_function_list, struct saved_fcn,
885 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
886 SAVED_BF, SAVED_BF_PTR): Remove.
887 * f-lang.h (tail_common_list, current_common,
888 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
889 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
890 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
891 real_main_c_value): Remove.
892 * f-valprint.c (there_is_a_visible_common_named): Remove.
893
6f380991
AB
8942012-09-26 Andrew Burgess <aburgess@broadcom.com>
895
896 * breakpoint.c (update_global_location_list): Ignore previous
897 duplicate status of a breakpoint when starting a new scan for
898 duplicate breakpoints.
899
9ead7ae4 9002012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 901 PR breakpoints/14419
2536b51c
YQ
902 * arm-tdep.c (arm_skip_prologue): Extending producer check to
903 support LLVM compiler.
9ead7ae4 904
8f8a23a2
SP
9052012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
906
907 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
908 * bfin-tdep.c (bfin_extract_return_value): Likewise.
909 (bfin_store_return_value): Likewise.
910 * cris-tdep.c (cris_store_return_value): Likewise.
911 (cris_extract_return_value): Likewise.
912 * h8300-tdep.c (h8300_extract_return_value): Likewise.
913 * hppa-tdep.c (hppa64_return_value): Likewise.
914 * lm32-tdep.c (lm32_store_return_value): Likewise.
915 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
916 * spu-tdep.c (spu_value_from_register): Likewise.
917 * vax-tdep.c (vax_return_value): Likewise.
918
d7019589
SP
9192012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
920
921 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
922 parameter LEN to ssize_t.
923
744a8059
SP
9242012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
925
926 * ada-valprint.c (ada_val_print_1): Eliminate single-use
927 variable LEN.
928 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
929 directly.
930 (alpha_store_return_value): Likewise.
931 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
932 (amd64_push_arguments): Likewise.
933 * ax-gdb.c (gen_trace_static_fields): Likewise.
934 (gen_traced_pop): Likewise.
935 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
936 * breakpoint.c (update_watchpoint): Likewise.
937 * findcmd.c (parse_find_args): Use local variable for type
938 instead of length.
939 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
940 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
941 (h8300_store_return_value): Likewise.
942 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
943 Use i386_darwin_arg_type_alignment directly.
944 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
945 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
946 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
947 (m68hc11_extract_return_value): Likewise.
948 * mep-tdep.c (mep_push_dummy_call): Likewise.
949 * printcmd.c (float_type_from_length): Likewise.
950 * s390-tdep.c (s390_value_from_register): Likewise.
951 * stack.c (read_frame_arg): Likewise.
952 * tracepoint.c (encode_actions_1): Likewise.
953 * valops.c (value_fetch_lazy): Use local variable for type
954 instead of length. Use TYPE_LENGTH directly.
955 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
956
a4b411d6
JB
9572012-09-25 Joel Brobecker <brobecker@adacore.com>
958
959 * symtab.c (skip_prologue_sal): Fix typo in comment.
960
11dba07a
JB
9612012-09-25 Joel Brobecker <brobecker@adacore.com>
962
963 * linespec.c (create_sals_line_offset): Fix typo in comment.
964
318102b9
SP
9652012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
966
967 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
968 use plongest to print the array size.
969
b4aa388a
SP
9702012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
971
972 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
973 * p-valprint.c (pascal_type_print_base): Likewise.
974
84cebc4a
YQ
9752012-09-22 Yao Qi <yao@codesourcery.com>
976
977 * remote.c (remote_get_trace_status): Remove setting default
978 values of fields of 'ts'.
979
04e7407c
JK
9802012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
981
982 Fix internal error on canonicalization of clang types.
983 * cp-name-parser.y (operator): New comment at make_operator call for
984 new, delete, new[] and delete[].
985 (exp): Use "sizeof ". Add new comment at make_operator call.
986
9bf4bce9
JK
9872012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
988
989 Fix disassemble without parameters in tailcall frame.
990 * cli/cli-cmds.c (disassemble_current_function): Use
991 get_frame_address_in_block.
992
1c5b7826
TT
9932012-09-21 Tom Tromey <tromey@redhat.com>
994
995 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
996 TYPE_CODE_UNION>: Unify, removing a goto.
997
62a49610
TT
9982012-09-21 Tom Tromey <tromey@redhat.com>
999
1000 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1001
2603f7ee
AB
10022012-09-21 Andrew Burgess <aburgess@broadcom.com>
1003
1004 * findvar.c (read_frame_register_value): Mark the result value as
1005 optimized out if any of the input registers have been optimized out.
1006
810849a3
AS
10072012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1008
1009 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1010
0953dec1
SP
10112012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1012
1013 * eval.c (evaluate_subexp_standard): Eliminate single-use
1014 variable LOWER.
1015
82a90ccf
YQ
10162012-09-21 Yao Qi <yao@codesourcery.com>
1017
1018 * mi/mi-interp.c: Declare mi_record_changed.
1019 (mi_interpreter_init): Call observer_attach_record_changed.
1020 (mi_record_changed): New.
1021 * record.c (record_open): Call observer_notify_record_changed.
1022 (cmd_record_stop): Call observer_notify_record_changed.
1023 * NEWS: Mention it.
1024
d7de8e3c
TT
10252012-09-20 Tom Tromey <tromey@redhat.com>
1026
1027 * NEWS: Update.
1028 * python/python.c (finalize_python): New function.
1029 (_initialize_python): Make a final cleanup.
1030
43c7c83d
DE
10312012-09-19 Doug Evans <dje@google.com>
1032
1033 * buildsym.h (param_symbols): Delete, unused.
1034 (context_stack): Delete member "params", unused.
1035 * buildsym.c (push_context): Update.
1036 * dwarf2read.c (read_func_scope): Update.
1037
aa9259cc
TS
10382012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1039
a6521d9a
TS
1040 * sh-tdep.c (sh_register_convert_to_virtual)
1041 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1042 all callers. Just do a memcpy if not the little-endian case.
1043
f92589cb
TS
1044 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1045 set_gdbarch_double_format and set_gdbarch_long_double_format.
1046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1047 set_gdbarch_double_format.
1048 * sh-tdep.c (sh_gdbarch_init): Likewise.
1049
aa9259cc
TS
1050 * NEWS: Document the removal of SH's 'regs' command.
1051 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1052 command.
1053
c1d780c2
SDJ
10542012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1055
1056 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1057 `jump'.
1058
4ae24af0
JB
10592012-09-18 Joel Brobecker <brobecker@adacore.com>
1060
1061 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1062 language when iterating over symbols.
1063
bb25a15c
YQ
10642012-09-18 Yao Qi <yao@codesourcery.com>
1065
1066 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1067 (mi_interpreter_init): Call observer_attach_tsv_created and
1068 observer_attach_tsv_deleted.
1069 (mi_tsv_created, mi_tsv_deleted): New.
1070 * tracepoint.c (delete_trace_state_variable): Call
1071 observer_notify_tsv_deleted.
1072 (trace_variable_command): Call observer_notify_tsv_created.
1073 (delete_trace_variable_command): Call
1074 observer_notify_tsv_deleted.
1075 (create_tsv_from_upload): Call observer_notify_tsv_created.
1076 * NEWS: Mention it.
1077
201b4506
YQ
10782012-09-18 Yao Qi <yao@codesourcery.com>
1079
1080 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1081 if traceframe changed.
1082 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1083 "trace-find".
1084 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1085 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1086 'traceframe_changed'.
1087 (mi_traceframe_changed): New.
1088 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1089 New field.
1090 * NEWS: Mention the new MI notification.
1091
eaeb12db
MW
10922012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1093
1094 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1095
6e3c039e
JK
10962012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1097
1098 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1099 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1100 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1101 Extend code also for PaX support. Convert all gdb_assert to warning
1102 calls.
1103
9a950c7c
JK
11042012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1105
1106 Implement auto-load user conveniences suggested by Doug Evans.
1107 * auto-load.c: Include top.h.
1108 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1109 (_initialize_auto_load): New variable scripts_directory_help. Mention
1110 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1111 scripts-directory. Document in online help one can use also files for
1112 set auto-load safe-path.
1113 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1114 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1115
deec9a9d
SP
11162012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1117
1118 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1119 of LEN.
1120
354ecfd5
SP
11212012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1122
1123 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1124 ELTLEN and use TYPE_LENGTH directly.
1125 (m2_val_print): Likewise.
1126 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1127 variable LEN and use TYPE_LENGTH directly.
1128 (m68k_svr4_store_return_value): Likewise.
1129 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1130 ARGLEN and use TYPE_LENGTH directly.
1131 (mips_o64_push_dummy_call): Likewise.
1132 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1133 variable LENGTH and use TYPE_LENGTH directly.
1134 (s390_function_arg_float): Likewise.
1135 (s390_function_arg_integer): Likewise.
1136 (s390_push_dummy_call): Likewise.
1137 (s390_return_value_convention): Likewise.
1138 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1139 TYPE_LENGTH directly.
1140
6fc1c773
YQ
11412012-09-17 Yao Qi <yao@codesourcery.com>
1142
1143 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1144 Update comment to add_setshow_integer_cmd.
1145 * cli/cli-setshow.c (do_set_command): Handle case
1146 'var_zuinteger_unlimited'.
1147 (do_show_command): Likewise.
1148 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1149 for command 'remotetimeout'.
1150 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1151 to var_integer.
1152 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1153 for command 'set listsize'.
1154
6acef6cd
SP
11552012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1156
1157 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1158 variable LEN.
1159
1ab3b62c
JK
11602012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1161
1162 PR 14119
1163 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1164 (frame_pop): Drop also TAILCALL_FRAME frames.
1165 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1166
acf9414f
JK
11672012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1168 Pedro Alves <palves@redhat.com>
1169
1170 PR 14548
1171 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1172 function start if we are already at function start. Both for
1173 reverse-next and for reverse-step into function without line number
1174 info.
1175
193facb3
JK
11762012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1177
1178 Code cleanup - rename 'inline' depth to 'artificial' depth.
1179 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1180 frame_id_artificial_p, extend the comment.
1181 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1182 * frame.c (fprint_frame_id): Rename at a user, change debug output
1183 text to "artificial=".
1184 (skip_inlined_frames): Rename to ...
1185 (skip_artificial_frames): ... here. Extend the comment.
1186 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1187 (frame_id_inlined_p): Rename to ...
1188 (frame_id_artificial_p): ... here. Rename at a user.
1189 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1190 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1191 at a user.
1192 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1193 Extend the comment.
1194 (frame_id_inlined_p): Rename to ...
1195 (frame_id_artificial_p): ... here.
1196 * inline-frame.c (inline_frame_this_id): Rename at a user.
1197
42056501
AB
11982012-09-14 Andrew Burgess <aburgess@broadcom.com>
1199
1200 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1201 vector variables using vector_size syntax rather than array
1202 syntax.
1203
84c47588
SP
12042012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1205
1206 * valarith.c (value_concat): Replace unsafe ALLOCA with
1207 XMALLOC/XFREE.
1208
f4045bcb
PA
12092012-09-14 Pedro Alves <palves@redhat.com>
1210
1211 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1212
63b46266
YPK
12132012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1214
1215 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1216 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1217 data-directory as appropriate.
1218
ddd7a8e7
SP
12192012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1220
1221 * printcmd.c (ui_printf): Eliminate single-use variable
1222 PARAM_LEN.
1223
d649a38e
YQ
12242012-09-14 Yao Qi <yao@codesourcery.com>
1225 Pedro Alves <palves@redhat.com>
1226
1227 * valops.c (value_assign): Move observer_notify_target_changed
1228 below to replace reinit_frame_cache.
1229
b9516fa1
YPK
12302012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1231
1232 Refactor Python "gdb" module into a proper Python package, by
1233 introducing a new "_gdb" module for code implemented in C, and
1234 using reload/__import__ instead of exec.
1235 * python/lib/gdb/__init__.py: Import * from _gdb.
1236 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1237 prompt_hook, sys.argv): Moved from finish_python_initialization.
1238 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1239 (packages, auto_load_packages): New list and function replacing
1240 module_dict and auto-loading code, using __file__ instead of
1241 gdb.PYTHONDIR and reload/__import__ instead of exec.
1242 (GdbSetPythonDirectory): Replacing function of the same name
1243 from finish_python_initialization, using reload/__import__ instead
1244 of exec, as well as call auto_load_packages.
1245 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1246 gdb_python_module and not gdb_module.
1247 * python/python-internal.h (gdb_python_module): Declare.
1248 * python/python.c (gdb_python_module): New global.
1249 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1250 (_initialize_python): Rename gdb module to _gdb.
1251 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1252 (finish_python_initialization): Move Python code to
1253 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1254 __main__.
1255
aa0fbdd8
PA
12562012-09-13 Pedro Alves <palves@redhat.com>
1257
1258 * Makefile.in (COMMON_OBS): Add registry.o.
1259 * registry.c: New file.
1260 * registry.h (struct registry_container): Declare.
1261 (registry_data_callback): New typedef.
1262 (struct registry_data, struct registry_data_registration, struct
1263 registry_data_registry): New type.
1264 (register_data_with_cleanup, registry_alloc_data)
1265 (registry_callback_adaptor, registry_clear_data)
1266 (registry_container_free_data, registry_set_data, registry_data):
1267 Declare.
1268 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1269 the new common structures and functions.
1270 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1271 callback typedefs.
1272
42b5c53d
MW
12732012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1274
1275 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1276 there is an error inserting hardware breakpoints and use the
1277 error message from the target.
1278
1279 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1280 Catch this exception and print the error message contained within. Do not
1281 print the default hardware error breakpoint message in this case.
1282
a1b64ce1
DE
12832012-09-12 Doug Evans <dje@google.com>
1284
1285 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1286 cu == NULL.
1287
83a788b8
DE
12882012-09-11 Doug Evans <dje@google.com>
1289
1290 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1291 .gdb_index symbol attributes if there are none.
1292
d9eaeb59
JB
12932012-09-11 Joel Brobecker <brobecker@adacore.com>
1294
1295 * symtab.h (struct minimal_symbol) [has_size]: New field.
1296 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1297 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1298 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1299 minimal symbols if the symbol's size is actually known.
1300 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1301 of msymbol's size field. Add comment.
1302 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1303 SET_MSYMBOL_SIZE to set the minimal symbol size.
1304
a83e9154
JB
13052012-09-11 Joel Brobecker <brobecker@adacore.com>
1306
1307 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1308 minimal_symbol struct object, rather than setting some of its
1309 fields one by one.
1310
350b1b26
AB
13112012-09-11 Andrew Burgess <aburgess@broadcom.com>
1312
1313 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1314 passed_a_ptr flag when displaying typedef types.
1315
2fa15f23
JB
13162012-09-10 Joel Brobecker <brobecker@adacore.com>
1317
1318 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1319 the optimized_out flag is preserved.
1320
5152ff90
AG
13212012-09-10 Anthony Green <green@moxielogic.com>
1322
1323 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1324 prologue changes in GCC.
1325
5b4f6e25
KS
13262012-09-10 Keith Seitz <keiths@redhat.com>
1327
1328 PR gdb/13483
1329 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1330 (BOOL_CONVERSION_BADNESS): ... this.
1331 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1332 (rank_one_type): Allow all boolean conversions
1333 permitted by the standard.
1334
f1070426
TT
13352012-09-06 Tom Tromey <tromey@redhat.com>
1336
1337 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1338 Don't decref py_objfile.
1339
a8db4212
YPK
13402012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1341
1342 Do not enable -lmcheck by default when Python is enabled with
1343 threading support.
1344 * configure.ac: (python_has_threads) New variable, by testing
1345 if WITH_THREAD is defined in Python.h.
1346 Move --enable-lmcheck after --with-python.
1347 Do not enable -lmcheck by default if python_has_threads=yes.
1348 Warn if --enable-lmcheck and python_has_threads=yes.
1349 * configure: Regenerate.
1350
648beb2b
YQ
13512012-08-31 Yao Qi <yao@codesourcery.com>
1352
1353 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1354 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1355 Update some commands.
1356 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1357 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1358 to 1.
1359
ef07a9f7
YQ
13602012-08-31 Yao Qi <yao@codesourcery.com>
1361
1362 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1363
fda395cf
YPK
13642012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1365
1366 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1367
8efd8e78
DE
13682012-08-29 Doug Evans <dje@google.com>
1369
1370 * main.c (print_gdb_help): Remove reference to
1371 --use-deprecated-index-sections.
1372
883b9c6c
YQ
13732012-08-28 Yao Qi <yao@codesourcery.com>
1374
1375 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1376 (init_cmds): Call add_setshow_uinteger_cmd for command
1377 'max-user-call-depth'.
1378 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1379 declaration of 'max_user_call_depth'.
1380 * frame.c (backtrace_limit): Add 'unsigned'.
1381 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1382 'limit'.
1383 * remote.c (remoteaddresssize): Add 'unsigned'.
1384 (remote_address_masked): Change local var 'address_size' to
1385 'unsigned'.
1386 (_initialize_remote): Call add_setshow_uinteger_cmd for
1387 'remoteaddresssize'.
1388 * top.c (history_size): Add 'unsigned'.
1389 (show_commands): Change local variables to 'unsigned'.
1390 (set_history_size_command): Don't check history_size is negative.
1391 Adjust the condition to call unstifle_history and set history_size
1392 to UNIT_MAX.
1393
1292279a
PA
13942012-08-28 Pedro Alves <palves@redhat.com>
1395
1396 PR gdb/14428
1397
1398 * infcmd.c (default_print_one_register_info): New, factored out
1399 from default_print_registers_info.
1400 (default_print_registers_info): Use it. Mark value unavailable if
1401 necessary.
1402 (registers_info): Print user registers with
1403 default_print_one_register_info.
1404
f629cd75
L
14052010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1406
1407 PR tui/14486
1408 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1409 is not NULL before referencing it.
1410
1c8cdcb1
JK
14112012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1412
1413 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1414 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1415 original PC for it.
1416
e9687799
JK
14172012-08-27 Eli Zaretskii <eliz@gnu.org>
1418 Jan Kratochvil <jan.kratochvil@redhat.com>
1419
1420 * auto-load.c (auto_load_objfile_script): Rename to ...
1421 (auto_load_objfile_script_1): ... here, change variable realname to
1422 parameter realname, document it, add return value, add variable retval.
1423 (auto_load_objfile_script): New function.
1424
7afa1642
JK
14252012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1426
1427 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1428 followed by a whitespace.
1429
dc7650b8
JK
14302012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1431
28e66c70 1432 PR gdb/14494.
dc7650b8
JK
1433 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1434 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1435 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1436 here.
1437
1591a1e8
PA
14382012-08-27 Wei-cheng Wang <cole945@gmail.com>
1439
1440 * memattr.c (create_mem_region): Fix memory region overlapping
1441 checking.
1442
ecfb0d68
SP
14432012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1444
1445 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1446 with xmalloc/cleanup.
1447 * mt-tdep.c (mt_push_dummy_call): Likewise.
1448 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1449 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1450
8c56c1b9
YQ
14512012-08-24 Yao Qi <yao@codesourcery.com>
1452
1453 * jv-exp.y (push_expression_name): Add "." at the end of error
1454 message.
1455
e3480f4a
YPK
14562012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1457
1458 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1459 * python/python.c (_initialize_python): Update documentation.
1460
dfbd5e7b
PA
14612012-08-23 Pedro Alves <palves@redhat.com>
1462
1463 * infrun.c (_initialize_infrun) <handle command help text>:
1464 Mention that multiple signals are supported.
1465
2edda2ff
PA
14662012-08-23 Pedro Alves <palves@redhat.com>
1467
1468 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1469 string.
1470
8d735b87
YQ
14712012-08-23 Yao Qi <yao@codesourcery.com>
1472
1473 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1474 (tfind_1): Don't call registers_changed, set_traceframe_num,
1475 and clear_traceframe_info.
1476 Call set_current_traceframe.
1477 (set_current_traceframe): call set_traceframe_num.
1478
c5d9b215
SDJ
14792012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1480
1481 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1482 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1483
037bbc8e
YPK
14842012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1485
1486 Enable readline in Python in a GDB-specific way and block the
1487 standard Python readline module to prevent conflicts with GDB.
1488 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1489 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1490 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1491 * python/py-gdb-readline.c: New file.
1492 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1493 prototype.
1494 * python/python.c (_initialize_python): Call
1495 gdbpy_initialize_gdb_readline.
1496
406b1477
KS
14972012-08-22 Keith Seitz <keiths@redhat.com>
1498
1499 * defs.h: Include build-gnulib/config.h
1500
6ca1b147
JM
15012012-08-22 Joseph Myers <joseph@codesourcery.com>
1502
1503 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1504 and blx pc.
1505
8315665e
YPK
15062012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1507
1508 Add a new "python-interactive" command that starts a standard
1509 Python interactive prompt with "pi" as alias, and add "py" as
1510 an alias to "python".
1511 * NEWS: Mention the new commands.
8315665e
YPK
1512 * python/python.c (eval_python_command): New function.
1513 (python_interactive_command): For "python-interactive" with
1514 arguments, call eval_python_command. For "python-interactive"
1515 without arguments, call PyRun_InteractiveLoop.
1516 (_initialize_python): Add "python-interactive" command with
1517 "pi" as alias, and add "py" as an alias to "python".
1518
522002f9
TT
15192012-08-22 Tom Tromey <tromey@redhat.com>
1520
1521 * defs.h (quit_flag): Don't declare.
1522 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1523 (QUIT): Use new functions.
1524 * event-top.c (command_handler): Use clear_quit_flag.
1525 (handle_sigint): Use set_quit_flag.
1526 (async_request_quit): Use check_quit_flag. Don't check
1527 immediate_quit.
1528 * exceptions.c (throw_exception): Use clear_quit_flag.
1529 * main.c (captured_main): Use clear_quit_flag.
1530 * python/python.c (clear_quit_flag, set_quit_flag)
1531 (check_quit_flag): New functions.
1532 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1533 clear_quit_flag.
1534 * remote.c (remote_wait_as): Use check_quit_flag,
1535 clear_quit_flag.
1536 (remote_start_remote): Call QUIT.
1537 * symfile.c (load_progress): Use check_quit_flag.
1538 * top.c (command_loop): Use clear_quit_flag.
1539 (command_line_input): Call QUIT.
1540 * utils.c (quit_flag): Conditionally define.
1541 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1542 functions.
1543 (prompt_for_continue): Call QUIT. Use quit, not
1544 async_request_quit.
1545 * remote-mips.c (mips_expect_timeout): Call QUIT.
1546 * monitor.c (monitor_expect): Call QUIT.
1547
b583003e
TT
15482012-08-22 Tom Tromey <tromey@redhat.com>
1549
1550 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1551 (async_init_signals): Update.
1552 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1553 (SIGWINCH_HANDLER_BODY): Remove.
1554
e1507e95
TT
15552012-08-22 Tom Tromey <tromey@redhat.com>
1556
1557 * jit.c (jit_object_close_impl): Don't malloc the objfile
1558 name.
1559 * objfiles.c (allocate_objfile): Don't malloc the objfile
1560 name.
1561 (free_objfile): Don't free the objfile name.
1562 * objfiles.h (struct objfile) <name>: Update comment.
1563 * symfile.c (reread_symbols): Fix reference counting. Don't
1564 malloc objfile name.
1565
1c00ec6b
TT
15662012-08-22 Tom Tromey <tromey@redhat.com>
1567
1568 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1569 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1570 (symfile_bfd_open): Likewise.
1571 (generic_load): Likewise.
1572 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1573 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1574 gdb_bfd_open.
1575 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1576 Use gdb_bfd_open.
1577 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1578 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1579 (pmon_load_fast): Likewise.
1580 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1581 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1582 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1583 (macho_check_dsym): Likewise.
1584 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1585 (m32r_upload_command): Likewise.
1586 * gdb_bfd.h (gdb_bfd_cache): Declare.
1587 * gdb_bfd.c (struct gdb_bfd_data): New.
1588 (gdb_bfd_cache): New global.
1589 (struct gdb_bfd_cache_search): New.
1590 (hash_bfd): New function.
1591 (eq_bfd): Likewise.
1592 (gdb_bfd_open): Likewise.
1593 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1594 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1595 gdb_bfd_data.
1596 * exec.c (exec_file_attach): Use gdb_bfd_open.
1597 * dsrec.c (load_srec): Use gdb_bfd_open.
1598
6532ff36
TT
15992012-08-22 Tom Tromey <tromey@redhat.com>
1600
1601 * dwarf2read.c (macro_start_file): Update.
1602 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1603 (free_objfile_per_bfd_storage): Destroy macro_cache.
1604 (allocate_objfile, free_objfile): Update.
1605 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1606 New field.
1607 (struct objfile) <macro_cache>: Remove.
1608 * symfile.c (reread_symbols): Update.
1609 * symmisc.c (print_symbol_bcache_statistics): Update.
1610 (print_objfile_statistics): Update.
1611
706e3705
TT
16122012-08-22 Tom Tromey <tromey@redhat.com>
1613
1614 * elfread.c (elf_symtab_read): Update.
1615 * objfiles.c (objfiles_bfd_data): New global.
1616 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1617 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1618 (allocate_objfile, free_objfile): Update.
1619 (_initialize_objfiles): Initialize objfiles_bfd_data.
1620 * objfiles.h (struct objfile_per_bfd_storage): New.
1621 (struct objfile) <per_bfd>: New field.
1622 <filename_cache>: Remove.
1623 (set_objfile_per_bfd): Declare.
1624 * symfile.c (reread_symbols): Update. Call
1625 set_objfile_per_bfd.
1626 (allocate_symtab): Update.
1627 * symmisc.c (print_symbol_bcache_statistics): Update.
1628 (print_objfile_statistics): Print the size of the BFD obstack.
1629
e992eda4
TT
16302012-08-22 Tom Tromey <tromey@redhat.com>
1631
1632 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1633 * gdb_bfd.c: Use DEFINE_REGISTRY.
1634 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1635 (gdb_bfd_ref): Call bfd_alloc_data.
1636 (gdb_bfd_unref): Call bfd_free_data.
1637
6b81941e
TT
16382012-08-22 Tom Tromey <tromey@redhat.com>
1639
1640 * registry.h (struct registry_fields): New.
1641 (REGISTRY_FIELDS): Redefine.
1642 (REGISTRY_ACCESS_FIELD): New macro.
1643 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1644 functions.
1645
8e260fc0
TT
16462012-08-22 Tom Tromey <tromey@redhat.com>
1647
1648 * auto-load.c (_initialize_auto_load): Update.
1649 * solib-svr4.c (_initialize_svr4_solib): Update
1650 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1651 * solib-darwin.c (_initialize_darwin_solib): Update.
1652 * registry.h: New file.
1653 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1654 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1655 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1656 (register_program_space_data_with_cleanup)
1657 (register_program_space_data, program_space_alloc_data)
1658 (clear_program_space_data, set_program_space_data)
1659 (program_space_data): Don't declare.
1660 * progspace.c: Use DEFINE_REGISTRY.
1661 (struct program_space_data, struct
1662 program_space_data_registration, struct
1663 program_space_data_registry, program_space_data_registry)
1664 (register_program_space_data_with_cleanup)
1665 (register_program_space_data, program_space_alloc_data)
1666 (program_space_free_data, clear_program_space_data)
1667 (set_program_space_data, program_space_data): Remove.
1668 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1669 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1670 (register_objfile_data_with_cleanup, register_objfile_data)
1671 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1672 declare.
1673 * objfiles.c: Use DEFINE_REGISTRY.
1674 (struct objfile_data, struct objfile_data_registration, struct
1675 objfile_data_registry, objfile_data_registry)
1676 (register_objfile_data_with_cleanup, register_objfile_data)
1677 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1678 (set_objfile_data, objfile_data): Remove.
1679 (_initialize_objfiles): Update.
1680 * jit.c (_initialize_jit): Update.
1681 * inflow.c (_initialize_inflow): Update.
1682 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1683 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1684 (register_inferior_data_with_cleanup, register_inferior_data)
1685 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1686 declare.
1687 * inferior.c: Use DEFINE_REGISTRY.
1688 (struct inferior_data, struct inferior_data_registration, struct
1689 inferior_data_registry, inferior_data_registry)
1690 (register_inferior_data_with_cleanup, register_inferior_data)
1691 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1692 (set_inferior_data, inferior_data): Remove.
1693 * auxv.c (_initialize_auxv): Update.
1694 * ada-lang.c (_initialize_ada_language): Update.
1695 * breakpoint.c (_initialize_breakpoint): Update.
1696 * i386-nat.c (i386_use_watchpoints): Update.
1697
ed9eebaf
TT
16982012-08-22 Tom Tromey <tromey@redhat.com>
1699
1700 * exec.c (exec_close, exec_file_attach): Update.
1701 (add_to_section_table): Initialize 'key' field.
1702 (add_target_sections, remove_target_sections): Add 'key' argument.
1703 * exec.h (add_target_sections, remove_target_sections): Add
1704 'key' argument.
1705 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1706 (reload_shared_libraries_1): Update.
1707 * target.h (struct target_section) <key>: New field.
1708
2f2e97fa
TT
17092012-08-22 Tom Tromey <tromey@redhat.com>
1710
1711 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1712
b3dbbd6f
PM
17132012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1714
1715 * symfile.c (allocate_symtab): Use host_address_to_string
1716 function instead of cast of pointer to long which is not
1717 compatible with x86_64-w64-mingw32 build.
1718
f94363d7
AP
17192012-08-19 Andrew Pinski <apinski@cavium.com>
1720
1721 * mips-tdep.c (is_octeon): New function.
1722 (is_octeon_bbit_op): New function.
1723 (mips32_next_pc): Handle Octeon's bbit instructions.
1724 (mips32_instruction_has_delay_slot): Likewise.
1725
78a59c2f
AP
17262012-08-19 Andrew Pinski <apinski@cavium.com>
1727
1728 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1729 before the function.
1730
4f5bcb50
AP
17312012-08-19 Andrew Pinski <apinski@cavium.com>
1732
1733 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1734
e5afdbd7
KS
17352012-08-19 Keith Seitz <keiths@redhat.com>
1736
1737 PR c++/14365
1738 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1739 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1740
13c9750e
EZ
17412012-08-18 Eli Zaretskii <eliz@gnu.org>
1742
1743 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1744 The typo broke "make TAGS".
1745
db761810 17462012-08-17 Joel Brobecker <brobecker@adacore.com>
1747
1748 GDB 7.5 released.
1749
a451cb65
KS
17502012-08-17 Keith Seitz <keiths@redhat.com>
1751
1752 PR c++/13356
1753 * gdbtypes.c (strict_type_checking): New variable.
1754 (show_strict_type_checking): New function.
1755 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1756 if strict type checking is disabled.
1757 (_initialize_gdbtypes): Add "check type" subcommand.
1758 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1759
17602012-08-17 Keith Seitz <keiths@redhat.com>
1761
1762 * language.h (type_mode): Remove.
1763 (type_check): Remove.
1764 (struct language_defn): Remove la_type_check.
1765 (STRICT_TYPE): Remove unused macro.
1766 (type_error): Remove.
1767 * language.c (set_type_range_case): Renamed to ...
1768 (set_range_case): ... this. Update all callers.
1769 Remove type_mode/type_check.
1770 (type_mode): Remove.
1771 (type_check): Remove.
1772 (show_type_command): Remove.
1773 (set_type_command): Remove.
1774 (language_info): Remove type checking output.
1775 (type_error): Remove unused function.
1776 (range_error): Update comment.
1777 (unknown_language_defn): Remove la_type_check.
1778 (auto_language_defn): Likewise.
1779 (local_language_defn): Likewise.
1780 (_initialize_language): Remove "check type" subcommand.
1781 * ada-lang.c (ada_language_defn): Remove la_type_check.
1782 * c-lang.c (c_language_defn): Likewise.
1783 (cplus_language_defn): Likewise.
1784 (asm_language_defn): Likewise.
1785 (minimal_language_defn): Likewise.
1786 * d-lang.c (d_language_defn): Likewise.
1787 * f-lang.c (f_language_defn): Likewise.
1788 * go-lang.c (go_language_defn): Likewise.
1789 * jv-lang.c (java_language_defn): Likewise.
1790 * m2-lang.c (m2_language_defn): Likewise.
1791 * objc-lang.c (objc_language_defn): Likewise.
1792 * opencl-lang.c (opencl_language_defn): Likewise.
1793 * p-lang.c (pascal_language_defn): Likewise.
1794
dbf6a605
MF
17952012-08-16 Mike Frysinger <vapier@gentoo.org>
1796
1797 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1798
973e3cf7
JB
17992012-08-16 Joel Brobecker <brobecker@adacore.com>
1800
1801 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1802 New function.
1803 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1804 using the regache. Use ia64_hpux_get_register_from_save_state_t
1805 to access the bsp and bspstore registers if not.
1806
d80ee84f
JB
18072012-08-16 Joel Brobecker <brobecker@adacore.com>
1808
1809 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1810 * breakpoint.c (detach_breakpoints): Change pid parameter into
1811 a ptid. Adjust code accordingly.
1812 * infrun.c (handle_inferior_event): Delete variable child_pid.
1813 Update call to detach_breakpoints to pass the child ptid for
1814 fork events.
1815 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1816 assert that inferior_ptid's lwp is zero.
1817 (linux_handle_extended_wait): Update call to detach_breakpoints.
1818 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1819 detach_breakpoints.
1820
2dcc6086
JB
18212012-08-16 Joel Brobecker <brobecker@adacore.com>
1822
1823 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1824 parent, only call detach_breakpoints if tts.tts_event ==
1825 TTEVT_VFORK.
1826
0c92d8c1
JB
18272012-08-16 Joel Brobecker <brobecker@adacore.com>
1828
1829 * dwarf2-frame.c (dwarf2_frame_cache): Use
1830 get_frame_address_in_block instead of get_frame_pc as
1831 the bound for executing the frame's FDE.
1832
6b1755ce
YQ
18332012-08-16 Yao Qi <yao@codesourcery.com>
1834
1835 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1836 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1837 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1838 (c_type_print_varspec_suffix): Likewise.
1839 * eval.c (evaluate_subexp_standard): Likewise.
1840 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1841 (f_type_print_varspec_suffix): Likewise.
1842 * gdbtypes.c (is_scalar_type): Likewise.
1843 (recursive_dump_type): Likewise.
1844 * infcall.c (value_arg_coerce): Likewise.
1845 * m2-valprint.c (m2_val_print): Likewise.
1846 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1847 (pascal_type_print_varspec_suffix): Likewise.
1848 (pascal_type_print_base): Likewise.
1849 * p-valprint.c (pascal_val_print): Likewise.
1850 (pascal_val_print): Likewise.
1851 * valops.c (value_slice): Likewise.
1852 * valprint.c (scalar_type_p): Likewise.
1853 * valarith.c (value_bitstring_subscript): Remove.
1854 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1855 Remove comment on TYPE_CODE_BITSTRING.
1856
1857 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1858 TYPE_CODE_BITSTRING.
1859
1860 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1861 slot 0.
1862
8acc4065
YQ
18632012-08-16 Yao Qi <yao@codesourcery.com>
1864
1865 * tracepoint.c (trace_find_none_command): Remove.
1866 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1867
8128fd8e
YQ
18682012-08-16 Yao Qi <yao@codesourcery.com>
1869
1870 * remote.c (handle_notification): Remove parameter 'length'.
1871 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1872
2873700e
KS
18732012-08-15 Keith Seitz <keiths@redhat.com>
1874
1875 * gdbtypes.c (opaque_type_resolution): Make static.
1876 Add missing comment.
1877 (overload_debug): Add missing comment.
1878 (show_opaque_type_resolution): Likewise.
1879 (show_overload_debug): Likewise.
1880 (print_bit_vector): Remove unnecessary forward declaration.
1881 (print_arg_types): Likewise.
1882 (dump_fn_fieldlists): Likewise.
1883 (print_cplus_stuff): Likewise.
1884
b82d08cd
TT
18852012-08-15 Tom Tromey <tromey@redhat.com>
1886
1887 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1888 (gdb_bfd_ref): Initialize new field.
1889 (gdb_bfd_unref): Unref the archive BFD.
1890 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1891 parent archive.
1892
db6573d6
TT
18932012-08-15 Tom Tromey <tromey@redhat.com>
1894
1895 PR python/14387:
1896 * python/py-bpevent.c (create_breakpoint_event_object): Update
1897 comment.
1898 * python/py-event.c (evpy_add_attribute): Update comment.
1899 * python/py-exitedevent.c (create_exited_event_object): Fix
1900 reference counting and error handling.
1901 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1902 Fix reference counting.
1903 * python/py-signalevent.c (create_signal_event_object): Fix
1904 reference counting and error handling.
1905 * python/py-stopevent.c (emit_stop_event): Fix reference
1906 counting.
1907 * python/py-threadevent.c (get_event_thread): Return a
1908 borrowed reference.
1909 * python/py-type.c (convert_field): Fix reference counting.
1910
a036ba48
TT
19112012-08-15 Tom Tromey <tromey@redhat.com>
1912
1913 * dwarf2read.c (dwarf_decode_macro_bytes)
1914 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1915 as hash key.
1916
486c7739
MF
19172012-08-14 Mike Frysinger <vapier@gentoo.org>
1918
1919 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1920 stepi, nexti, finish, next, step, jump, and continue commands.
1921 * infrun.c (_initialize_infrun): Update help text for the handle
1922 command.
1923
4cf93a03
DE
19242012-08-14 Doug Evans <dje@google.com>
1925
70b099cf
DE
1926 * gdbtypes.c (struct extra): Delete, unused.
1927
5212577a
DE
1928 * gdbtypes.c: Whitespace cleanup.
1929 (address_space_name_to_int): Remove "extern" from definition.
1930 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1931
4cf93a03
DE
1932 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1933 TYPE_POINTER_TYPE (type).
1934
3756ef7e
GB
19352012-08-14 Gary Benson <gbenson@redhat.com>
1936
1937 * solib-svr4.c (svr4_free_library_list): Use free_so.
1938
40d72643
MF
19392012-08-13 Mike Frysinger <vapier@gentoo.org>
1940
1941 * .gitignore: Add go-exp.c.
1942
f47f77df
DE
19432012-08-13 Doug Evans <dje@google.com>
1944
1945 * value.c (show_convenience): Tweak comment.
1946 (_initialize_values): Mention convenience functions in the help text
1947 for "show convenience".
1948
7507c54a
YQ
19492012-08-13 Yao Qi <yao@codesourcery.com>
1950
1951 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1952 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1953 TERNOP_SLICE_COUNT.
1954 * eval.c (evaluate_subexp_standard): Likewise.
1955 * expprint.c (print_subexp_standard): Likewise.
1956 (dump_subexp_body_standard): Likewise.
1957 * parse.c (operator_length_standard): Likewise.
1958
5cad9736
YQ
19592012-08-13 Yao Qi <yao@codesourcery.com>
1960
1961 * std-operator.def: Remove OP_BITSTRING.
1962 * breakpoint.c (watchpoint_exp_is_const): Update.
1963 * eval.c (evaluate_subexp_standard): Remove handling to
1964 OP_BITSTRING.
1965 * expprint.c (print_subexp_standard): Likewise.
1966 (dump_subexp_body_standard): Likewise.
1967 * parse.c (operator_length_standard): Likewise.
1968 * valops.c (value_bitstring): Remove.
1969 * value.h: Remove the declaration of 'value_bitstring'.
1970
bad7670a
SDJ
19712012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1972
1973 * linespec.c (find_methods): Remove unused variables `i1' and
1974 `name_len'.
1975 (decode_line_full): Likewise for `arg_start'.
1976
d9dce7fa
SDJ
19772012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1978
1979 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1980 (zlib_decompress_section): Likewise for `section_data'.
1981 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1982
a72c3253
DE
19832012-08-10 Doug Evans <dje@google.com>
1984
1985 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1986 * NEWS: Document them.
1987 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1988 function/strfns.py.
1989 * python/py-type.c (typy_array_1): New function.
1990 (typy_array): Call it.
1991 (typy_vector): New function.
1992 (type_object_methods): Add "vector".
1993 * python/lib/gdb/function/__init__.py: New file.
1994 * python/lib/gdb/function/strfns.py: New file.
1995
200bc880
SP
19962012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1997
1998 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1999 for TYPE_FIELD_BITPOS.
2000 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2001
de0bea00
MF
20022012-08-10 Mike Frysinger <vapier@gentoo.org>
2003
2004 PR cli/10436:
2005 * common/vec.h (VEC_merge): Define.
2006 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2007 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2008 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2009 * completer.c: Include gdb_signals.h.
2010 (signal_completer): Define.
2011 * completer.h (signal_completer): Add prototype.
2012 * infcmd.c (_initialize_infcmd): Assign the command
2013 completer for "signal" to handle_completer.
2014 * infrun.c: Include completer.h.
2015 (handle_completer): Define.
2016 (_initialize_infrun): Declare a new local variable c. Store the
2017 result of add_com("handle") to it. Assign the command
2018 completer for "handle" to handle_completer.
2019
5b9afe8a
YQ
20202012-08-09 Yao Qi <yao@codesourcery.com>
2021
2022 * cli/cli-decode.c (set_cmd_prefix): New.
2023 (lookup_cmd_for_prefixlist): New.
2024 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2025 of each cmd_list_element in *prefixlist.
2026 (add_setshow_cmd_full): set_cmd_prefix.
2027 (add_alias_cmd): Likewise.
2028 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2029 Declare 'auto_boolean_enums'.
2030 * cli/cli-setshow.c: Include "observer.h".
2031 (notify_command_param_changed_p): New.
2032 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2033 Remove 'static'.
2034 (do_setshow_command): Split it to ...
2035 (do_set_command, do_show_command): ... them. New.
2036 (do_set_command): Call observer_notify_command_param_changed if
2037 notify_command_param_changed_p returns true.
2038 (cmd_show_list): Caller update.
2039 * auto-load.c (set_auto_load_cmd): Likewise.
2040 * remote.c (show_remote_cmd): Likewise.
2041 * cli/cli-setshow.h: Update declarations.
2042 * top.c (execute_command): Call do_set_command and do_show_command.
2043
2044 * NEWS: Mention new MI notification.
2045 * mi/mi-interp.c: Declare mi_command_param_changed.
2046 (mi_interpreter_init): Attach mi_command_param_changed to
2047 observer command_param_changed.
2048 (mi_command_param_changed): New.
2049 Remove mi_suppress_breakpoint_notifications.
2050 Define global variable mi_suppress_notification.
2051 (mi_breakpoint_created): Update.
2052 (mi_breakpoint_deleted): Likewise.
2053 (mi_breakpoint_modified): Likewise.
2054 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2055 'gdb-set' and set mi_suppress_notification.
2056 * mi/mi-main.h: (mi_suppress_notification): New struct.
2057
1969df89
JK
20582012-08-09 Andreas Tobler <andreast@fgznet.ch>
2059 Jan Kratochvil <jan.kratochvil@redhat.com>
2060
2061 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2062
8bfd80db
YQ
20632012-08-09 Yao Qi <yao@codesourcery.com>
2064
2065 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2066 (skiplist): Move it to skip.c.
2067 (init_cmd_lists): Remove code setting enablebreaklist and
2068 skiplist to NULL.
2069 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2070 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2071 skiplist.
2072 * gdbcmd.h: Likewise.
2073 * skip.c (_initialize_step_skip): Move 'skiplist' from
2074 cli/cli-cmds.c.
2075
28578e6b
YQ
20762012-08-09 Yao Qi <yao@codesourcery.com>
2077
2078 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2079 * gnu-nat.c, symfile.c: Likewise.
2080
260c0b2a
DE
20812012-08-08 Aaron Gamble <agamble@google.com>
2082
2083 * utils.c (prompt_for_continue_wait_time): New static global.
2084 (make_command_stats_cleanup): Initialize it.
2085 (report_command_stats): Subtract time waiting for user.
2086 (prompt_for_continue): Track time waiting for user.
2087 (defaulted_query): Track time waiting for user.
2088
4f485ebc
DE
20892012-08-08 Doug Evans <dje@google.com>
2090
2091 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2092 UNOP_MEMVAL_TYPE.
2093 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2094 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2095 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2096 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2097 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2098 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2099 elt.
2100 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2101 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2102 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2103 (dump_prefix_expression): Handle OP_TYPE.
2104
2acf2b39
KS
21052012-08-08 Keith Seitz <keiths@redhat.com>
2106
2107 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2108 addr_start.
2109
e6712ff1
DE
21102012-08-08 Doug Evans <dje@google.com>
2111
2112 * linux-thread-db.c: #include "gdb_vecs.h".
2113 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2114 updated.
2115 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2116 (thread_db_load_search): Use a vector to iterate over path elements.
2117 Handle text appearing after "$pdir".
2118
2119 * gdb_string.h: Moved to ...
2120 * common/gdb_string.h: ... here.
2121 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2122 gdb_string.h and gdb_assert.h.
2123
ab854e54
YQ
21242012-08-08 Yao Qi <yao@codesourcery.com>
2125
2126 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2127 (tic6x_value_to_register): Likewise.
2128 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2129 and set_gdbarch_value_to_register.
2130
4f69f4c2
JK
21312012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2132 Jean-Marc Saffroy <saffroy@gmail.com>
2133
2134 PR 11804
2135 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2136 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2137 * gcore.c (gcore_create_callback): New function comment. Add modified
2138 parameter. Only write modified regions. Set SEC_READONLY exactly
2139 according to MODIFIED.
2140 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2141 the passed modified value to FUNC.
2142 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2143 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2144 first. New variables modified and has_anonymous. Parse the lines of
2145 smaps file. Add the passed MODIFIED value to FUNC.
2146 * procfs.c (find_memory_regions_callback): Add the passed modified
2147 value.
2148
78ac5f83
TT
21492012-08-06 Tom Tromey <tromey@redhat.com>
2150
2151 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2152 (dwarf2_frame_cache): Use it.
2153 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2154 cache initialization constraint.
2155
2c12abee
TT
21562012-08-06 Tom Tromey <tromey@redhat.com>
2157
2158 PR python/14386:
2159 * varobj.c (update_dynamic_varobj_children): Don't call
2160 PyIter_Check.
2161
4979d7f0
TT
21622012-08-06 Tom Tromey <tromey@redhat.com>
2163
2164 PR cli/14392:
2165 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2166
f3c8a52a
JK
21672012-08-06 Nathaniel Flath <flat0103@gmail.com>
2168
2169 * NEWS: New entry for 'cd' default parameters.
2170 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2171
5a1cf4d6
TT
21722012-08-03 Tom Tromey <tromey@redhat.com>
2173
2174 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2175 return.
2176
7c3270ae
UW
21772012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2178
2179 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2180 to attempting lseek/write.
2181 (inf_child_fileio_pread): Likewise for pread.
2182
ccce17b0
YQ
21832012-08-02 Yao Qi <yao@codesourcery.com>
2184
2185 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2186 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2187 add_setshow_zinteger_cmd.
2188 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2189 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2190 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2191 instead of add_setshow_zinteger_cmd.
2192 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2193 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2194 instead of add_setshow_zinteger_cmd.
2195 * frame.c (frame_debug): Add 'unsigned'.
2196 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2197 add_setshow_zinteger_cmd.
2198 * frame.h: Update the declaration of 'frame_debug'.
2199 * gdbtypes.c (overload_debug): Add 'unsigned'.
2200 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2201 add_setshow_zinteger_cmd.
2202 * inferior.h: Update declaration of 'debug_infrun'.
2203 * infrun.c (debug_infrun): Add 'unsigned'.
2204 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2205 add_setshow_zinteger_cmd.
2206 * jit.c (jit_debug): Add 'unsigned'.
2207 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2208 add_setshow_zinteger_cmd.
2209 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2210 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2211 instead of add_setshow_zinteger_cmd.
2212 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2213 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2214 add_setshow_zinteger_cmd.
2215 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2216 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2217 instead of add_setshow_zinteger_cmd.
2218 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2219 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2220 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2221 intead of add_setshow_zinteger_cmd.
2222 * mips-tdep.c (mips_debug): Add 'unsigned'.
2223 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2224 instead of add_setshow_zinteger_cmd.
2225 * monitor.c (monitor_debug): Add 'unsigned'.
2226 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2227 add_setshow_zinteger_cmd.
2228 * observer.c (observer_debug): Add 'unsigned'.
2229 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2230 add_setshow_zinteger_cmd.
2231 * parse.c (expressiondebug): Add 'unsigned'.
2232 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2233 add_setshow_zinteger_cmd.
2234 * record.c (record_debug): Add 'unsigned'.
2235 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2236 add_setshow_zinteger_cmd.
2237 * record.h: Update the declaration of 'record_debug'.
2238 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2239 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2240 add_setshow_zinteger_cmd.
2241 * serial.c (global_serial_debug_p): Add 'unsigned'.
2242 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2243 add_setshow_zinteger_cmd.
2244 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2245 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2246 add_setshow_zinteger_cmd.
2247 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2248 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2249 add_setshow_zinteger_cmd.
2250 * target.c (targetdebug): Add 'unsigned'.
2251 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2252 add_setshow_zinteger_cmd.
2253 * valops.c (overload_debug): Add 'unsigned'.
2254 * varobj.c (varobjdebug): Add 'unsigned'.
2255 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2256 add_setshow_zinteger_cmd.
2257 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2258 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2259 instead of add_setshow_zinteger_cmd.
2260
2261 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2262 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2263 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2264 instead of add_setshow_zinteger_cmd.
2265 * gdbarch.c, gdbarch.h: Re-generated.
2266
95b07c96
YQ
22672012-08-02 Yao Qi <yao@codesourcery.com>
2268
2269 * nto-tdep.c: Don't include cli/cli-decode.h and
2270 cli/cli-cmds.h.
2271 (_initialize_nto_tdep): Remove.
2272 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2273 Remove field.
2274 Remove macro nto_internal_debugging.
2275
57295b0b
RH
22762012-08-01 Richard Henderson <rth@redhat.com>
2277
2278 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2279 (mep-*-*) [gdb_target_obs]: Likewise.
2280
f782ad9b
AS
22812012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2282
2283 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2284 linux_get_siginfo_type.
2285
a14dd77e
JK
22862012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2287
2288 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2289 AT_ENTRY_POINT.
2290 (call_function_by_hand) <ON_STACK>: Call write_memory with
2291 gdbarch_breakpoint_from_pc, if possible.
2292 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2293 here.
2294
1467929f
YQ
22952012-07-31 Yao Qi <yao@codesourcery.com>
2296
2297 * tracepoint.c: Add 'static' for some variables.
2298
70976b65
YQ
22992012-07-31 Yao Qi <yao@codesourcery.com>
2300
2301 * go32-nat.c: Declare _initialize_go32_nat.
2302 * ser-go32.c: Declare _initialize_ser_dos.
2303 * top.c (do_chdir_cleanup): Add 'static'.
2304
eff9c3e6
KS
23052012-07-30 Keith Seitz <keiths@redhat.com>
2306
2307 * linespec.c (linespec_lex_number): A number followed
2308 by quotes is a valid number, too.
2309
728400d7
TT
23102012-07-30 Tom Tromey <tromey@redhat.com>
2311
2312 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2313
fcf303ab
UW
23142012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2315
2316 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2317 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2318
4e969b4f
AB
23192012-07-30 Andrew Burgess <aburgess@broadcom.com>
2320
2321 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2322 invalid or reevaluated to prevent prevent references to possibly
2323 delete'd type objects being left in the varobj.
2324
c4bfde41
JK
23252012-07-27 Tom Tromey <tromey@redhat.com>
2326 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 * copying.awk: Print buffer-read-only and vi ro markers.
2329 * copying.c: Rebuild.
2330 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2331 * gdbarch.c, gdbarch.h: Rebuild.
2332 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2333 buffer-read-only and vi ro markers.
2334 * features/arm-with-iwmmxt.c: Rebuild.
2335 * features/arm-with-m-fpa-layout.c: Rebuild.
2336 * features/arm-with-m-vfp-d16.c: Rebuild.
2337 * features/arm-with-m.c: Rebuild.
2338 * features/arm-with-neon.c: Rebuild.
2339 * features/arm-with-vfpv2.c: Rebuild.
2340 * features/arm-with-vfpv3.c: Rebuild.
2341 * features/i386/amd64-avx-linux.c: Rebuild.
2342 * features/i386/amd64-avx.c: Rebuild.
2343 * features/i386/amd64-linux.c: Rebuild.
2344 * features/i386/amd64.c: Rebuild.
2345 * features/i386/i386-avx-linux.c: Rebuild.
2346 * features/i386/i386-avx.c: Rebuild.
2347 * features/i386/i386-linux.c: Rebuild.
2348 * features/i386/i386-mmx-linux.c: Rebuild.
2349 * features/i386/i386-mmx.c: Rebuild.
2350 * features/i386/i386.c: Rebuild.
2351 * features/i386/x32-avx-linux.c: Rebuild.
2352 * features/i386/x32-avx.c: Rebuild.
2353 * features/i386/x32-linux.c: Rebuild.
2354 * features/i386/x32.c: Rebuild.
2355 * features/mips-dsp-linux.c: Rebuild.
2356 * features/mips-linux.c: Rebuild.
2357 * features/mips64-dsp-linux.c: Rebuild.
2358 * features/mips64-linux.c: Rebuild.
2359 * features/rs6000/powerpc-32.c: Rebuild.
2360 * features/rs6000/powerpc-32l.c: Rebuild.
2361 * features/rs6000/powerpc-403.c: Rebuild.
2362 * features/rs6000/powerpc-403gc.c: Rebuild.
2363 * features/rs6000/powerpc-405.c: Rebuild.
2364 * features/rs6000/powerpc-505.c: Rebuild.
2365 * features/rs6000/powerpc-601.c: Rebuild.
2366 * features/rs6000/powerpc-602.c: Rebuild.
2367 * features/rs6000/powerpc-603.c: Rebuild.
2368 * features/rs6000/powerpc-604.c: Rebuild.
2369 * features/rs6000/powerpc-64.c: Rebuild.
2370 * features/rs6000/powerpc-64l.c: Rebuild.
2371 * features/rs6000/powerpc-7400.c: Rebuild.
2372 * features/rs6000/powerpc-750.c: Rebuild.
2373 * features/rs6000/powerpc-860.c: Rebuild.
2374 * features/rs6000/powerpc-altivec32.c: Rebuild.
2375 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2376 * features/rs6000/powerpc-altivec64.c: Rebuild.
2377 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2378 * features/rs6000/powerpc-cell32l.c: Rebuild.
2379 * features/rs6000/powerpc-cell64l.c: Rebuild.
2380 * features/rs6000/powerpc-e500.c: Rebuild.
2381 * features/rs6000/powerpc-e500l.c: Rebuild.
2382 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2383 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2384 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2385 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2386 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2387 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2388 * features/rs6000/powerpc-vsx32.c: Rebuild.
2389 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2390 * features/rs6000/powerpc-vsx64.c: Rebuild.
2391 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2392 * features/rs6000/rs6000.c: Rebuild.
2393 * features/s390-linux32.c: Rebuild.
2394 * features/s390-linux32v1.c: Rebuild.
2395 * features/s390-linux32v2.c: Rebuild.
2396 * features/s390-linux64.c: Rebuild.
2397 * features/s390-linux64v1.c: Rebuild.
2398 * features/s390-linux64v2.c: Rebuild.
2399 * features/s390x-linux64.c: Rebuild.
2400 * features/s390x-linux64v1.c: Rebuild.
2401 * features/s390x-linux64v2.c: Rebuild.
2402 * features/tic6x-c62x-linux.c: Rebuild.
2403 * features/tic6x-c62x.c: Rebuild.
2404 * features/tic6x-c64x-linux.c: Rebuild.
2405 * features/tic6x-c64x.c: Rebuild.
2406 * features/tic6x-c64xp-linux.c: Rebuild.
2407 * features/tic6x-c64xp.c: Rebuild.
2408
826f0041
TT
24092012-07-27 Tom Tromey <tromey@redhat.com>
2410
2411 * c-exp.y (classify_name): Avoid assignment in condition.
2412
84552b16
PA
24132012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2414
2415 * amd64-windows-tdep.c: Include "frame.h".
2416 (amd64_windows_skip_trampoline_code): New function.
2417 (amd64_windows_init_abi): Add trampoline registration.
2418
a8a64aa8
YQ
24192012-07-27 Yao Qi <yao@codesourcery.com>
2420
2421 * tracepoint.c (cur_traceframe_number): Remove.
2422 (set_tfile_traceframe): Remove.
2423 (tfile_trace_find, tfile_fetch_registers): Update callers.
2424 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2425 (tfile_open, tfile_trace_find): Likewise.
2426
d99067cb
YQ
24272012-07-27 Yao Qi <yao@codesourcery.com>
2428
2429 * thread.c (switch_to_thread): Don't call registers_changed.
2430
f2e8016f
TT
24312012-07-26 Tom Tromey <tromey@redhat.com>
2432
f782ad9b
AS
2433 * Makefile.in (SFILES): Remove objc-exp.y.
2434 (YYFILES): Remove objc-exp.c.
2435 (YYOBJ): Remove objc-exp.o.
2436 (local-maintainer-clean): Don't mention objc-exp.c.
2437 * c-exp.y: Include objc-lang.h.
2438 (%union) <class>: New field.
2439 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2440 (exp): Clone subscript production for OBJC_LBRAC. Add various
2441 Objective C productions.
2442 (msglist, msgarglist, msgarg): New productions.
2443 (array_mod, func_mod, operator): Clone productions for
2444 OBJC_LBRAC.
2445 (parse_string_or_char): Handle '@' strings.
2446 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2447 (classify_name): Check la_name_of_this. Recognize ObjC class
2448 names.
2449 * objc-exp.y: Remove.
2450 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2451 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2452
f66713d2
JK
24532012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2454
2455 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2456
7cfe01b4
JK
24572012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2458
2459 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2460 and decrement.
2461
5ba19b4c
TT
24622012-07-26 Tom Tromey <tromey@redhat.com>
2463
2464 * copying.c: Rebuild.
2465 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2466 'no_class'.
2467
27618ce4
TT
24682012-07-26 Tom Tromey <tromey@redhat.com>
2469
2470 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2471 immediate_quit.
2472 (print_objfile_statistics): Likewise.
2473 (maintenance_print_symbols): Likewise.
2474 (maintenance_print_msymbols): Likewise.
2475 (maintenance_print_objfiles): Likewise.
2476 * psymtab.c (print_partial_symbols): Call QUIT.
2477 (maintenance_print_psymbols): Likewise. Don't modify
2478 immediate_quit.
2479 * copying.c (show_copying_command): Don't modify immediate_quit.
2480 (show_warranty_command): Likewise.
2481 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2482
dd3818c8
KS
24832012-07-26 Keith Seitz <keiths@redhat.com>
2484
2485 * linespec.c (linespec_lexer_lex_number): The input
2486 is also a valid number if the next character is a comma
2487 or colon.
2488
23a80689
JB
24892012-07-26 Joel Brobecker <brobecker@adacore.com>
2490
2491 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2492 configure options.
2493
29f77997
TG
24942012-07-26 Tristan Gingold <gingold@adacore.com>
2495
2496 * machoread.c: Include gdb_bfd.h.
2497
a55c1f32
TG
24982012-07-26 Tristan Gingold <gingold@adacore.com>
2499
2500 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2501 offset.
2502
56eb65bd
SP
25032012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2504
2505 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2506 SIZE to size_t.
2507 (dwarf2_evaluate_loc_desc): Likewise.
2508 (dwarf2_loc_desc_needs_frame): Likewise.
2509 (locexpr_describe_location_1): Likewise.
2510 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2511 size_t.
2512 (struct dwarf2_loclist_baton): Likewise.
2513 * dwarf2read.c (struct dwarf_block): Likewise.
2514 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2515 (decode_locdesc): Expand SIZE and I to size_t.
2516
aec8845c
JK
25172012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2520
33d7655b
JB
25212012-07-25 Joel Brobecker <brobecker@adacore.com>
2522
2523 * doublest.c (convert_doublest_to_floatformat): If the exponent
2524 is too small, treat the value as zero. If the exponent is too
2525 large, treat the value as infinity.
2526
a22d44ff
JB
25272012-07-25 Joel Brobecker <brobecker@adacore.com>
2528
2529 * configure.ac: Add --enable-lmcheck configure option.
2530 * configure: Regenerate.
2531
d6b28940
TT
25322012-07-25 Tom Tromey <tromey@redhat.com>
2533
f782ad9b
AS
2534 * NEWS: Mention maint info bfds.
2535 * gdb_bfd.c (all_bfds): New global.
2536 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2537 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2538 New functions.
d6b28940 2539
6e73ba20
RC
25402012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2541
2542 * configure.tgt: Add v850*-*-rtems*.
2543
d560eebd
TT
25442012-07-25 Tom Tromey <tromey@redhat.com>
2545
2546 * macrotab.c (macro_bcache_str): Remove cast.
2547
d7cbec71
HZ
25482012-07-25 Hui Zhu <hui_zhu@mentor.com>
2549
2550 * linespec.c (linespec_lexer_lex_number): Update comments,
2551 change the return and add check to make sure the input is
2552 the decimal numbers.
2553 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2554 false, call linespec_lexer_lex_string.
2555
882f447f
TT
25562012-07-24 Tom Tromey <tromey@redhat.com>
2557
2558 * symfile.c (symbol_file_add): Don't open BFD twice.
2559
53ab4066 25602012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2561
2562 * breakpoint.c (create_breakpoint): Store condition for pending
2563 breakpoints.
2564
108fb0f7
AS
25652012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2566
2567 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2568 (m68k_return_value): Handle complex types like structures.
2569 (m68k_svr4_return_value): Likewise.
2570
1634dcbe
JK
25712012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2572
2573 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2574 parameters to bfd_get_section_name.
2575
e2d12c21
YQ
25762012-07-24 Yao Qi <yao@codesourcery.com>
2577
2578 * cli/cli-setshow.c: Handle case 'var_uinteger'
2579 and 'var_zuninteger' together. Handle case 'var_integer' and
2580 'var_zinteger' together.
2581
64b92e45
KS
25822012-07-23 Keith Seitz <keiths@redhat.com>
2583
2584 * linespec.c (convert_linespec_to_sal): Don't add
2585 any symbols to the result vector if symbol_to_sal
2586 returns zero.
2587
0f5f4ffe
KS
25882012-07-23 Keith Seitz <keiths@redhat.com>
2589
2590 * linespec.c (decode_objc): Record the function name
2591 in the linespec.
2592
da1cc82f
TT
25932012-07-23 Tom Tromey <tromey@redhat.com>
2594
2595 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2596 counting.
2597 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2598 (map_vmap): Acquire a reference to the BFD.
2599
6c18f3e0
SP
26002012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2601
2602 * p-valprint.c (pascal_object_print_value): Replace potentially
2603 unsafe alloca with xmalloc/xfree.
2604 * valops.c (search_struct_method): Likewise.
2605
695c3173
TT
26062012-07-23 Tom Tromey <tromey@redhat.com>
2607
2608 * solib-svr4.c (enable_break): Update.
2609 * bfd-target.h (target_bfd_reopen): Update documentation.
2610
08d2cd74
TT
26112012-07-23 Tom Tromey <tromey@redhat.com>
2612
2613 * symfile.c (separate_debug_file_exists): Update.
2614 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2615 (reread_symbols): Update.
2616 * elfread.c (build_id_verify): Update.
2617 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2618 bfd_open_maybe_remote.
2619
596f7d67
TT
26202012-07-23 Tom Tromey <tromey@redhat.com>
2621
2622 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2623
8ac244b4
TT
26242012-07-23 Tom Tromey <tromey@redhat.com>
2625
2626 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2627 and 'abfd'.
2628 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2629 and 'abfd'.
2630 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2631 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2632 'abfd'.
2633 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2634 * objfiles.c (allocate_objfile): Acquire a new reference.
2635 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2636 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2637 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2638 a cleanup for 'nbfd'.
2639 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2640 for 'nbfd'.
2641 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2642 make a cleanup for 'abfd'.
2643 (symbol_file_add): Make a BFD cleanup.
2644
64c31149
TT
26452012-07-23 Tom Tromey <tromey@redhat.com>
2646
2647 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2648 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2649 * corelow.c (core_open): Use gdb_bfd_fopen.
2650 * dsrec.c (load_srec): Use gdb_bfd_openr.
2651 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2652 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2653 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2654 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2655 (gdb_bfd_fdopenr): New functions.
2656 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2657 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2658 (gdb_bfd_fdopenr): Declare.
2659 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2660 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2661 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2662 gdb_bfd_openr_next_archived_file.
2663 (macho_check_dsym): Use gdb_bfd_openr.
2664 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2665 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2666 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2667 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2668 gdb_bfd_openr.
2669 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2670 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2671 gdb_bfd_openr_next_archived_file.
2672 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2673 Use gdb_bfd_openr.
2674 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2675 gdb_bfd_openr.
2676 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2677 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2678 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2679 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2680 (symfile_bfd_open): Use gdb_bfd_fopen.
2681 (generic_load): Use gdb_bfd_openr.
2682 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2683
520b0001
TT
26842012-07-23 Tom Tromey <tromey@redhat.com>
2685
2686 * bfd-target.c (target_bfd_reopen): Update.
2687 * cli/cli-dump.c (bfd_openr_with_cleanup)
2688 (bfd_openw_with_cleanup): Update.
2689 * corelow.c (core_open): Update.
2690 * dsrec.c (load_srec): Update.
2691 * exec.c (exec_file_attach): Update.
2692 * gcore.c (create_gcore_bfd): Update.
2693 * gdb_bfd.c (gdb_bfd_ref): Return void.
2694 (gdb_bfd_open): Update.
2695 * gdb_bfd.h (gdb_bfd_ref): Return void.
2696 Update comments.
2697 * jit.c (jit_bfd_try_read_symtab): Update.
2698 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2699 * machoread.c (macho_symfile_read_all_oso): Update.
2700 (macho_check_dsym): Update.
2701 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2702 * remote-m32r-sdi.c (m32r_load): Update.
2703 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2704 * rs6000-nat.c (add_vmap): Update.
2705 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2706 Update.
2707 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2708 * solib-spu.c (spu_bfd_open): Update.
2709 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2710 * spu-linux-nat.c (spu_bfd_open): Update.
2711 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2712 (generic_load): Update.
2713 * windows-nat.c (windows_make_so): Update.
2714
2322ff16
SP
27152012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2716
2717 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2718
3def0b36
PA
27192012-07-20 Jeff Kenton <jkenton@tilera.com>
2720
2721 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2722 SIGTRAMP_FRAME unwinding.
2723
e615022a
DE
27242012-07-20 Doug Evans <dje@google.com>
2725
2726 * NEWS: Document new options "set/show use-deprecated-index-sections",
2727 and delete reference to --use-deprecated-index-sections.
2728 * symfile.h (use_deprecated_index_sections): Delete.
2729 * dwarf2read.c (use_deprecated_index_sections): Make static.
2730 (read_index_from_section): Update wording of how to load
2731 deprecated index sections.
2732 (_initialize_dwarf2_read): New options
2733 "set/show use-deprecated-index-sections".
2734 * main.c (captured_main): Delete --use-deprecated-index-sections.
2735
64776a0b
PA
27362012-07-20 Pedro Alves <palves@redhat.com>
2737
2738 PR threads/11692
2739 PR gdb/12203
2740
2741 * infrun.c (handle_inferior_event) <new thread>: Don't special
2742 case minus_one_ptid.
2743 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2744 * linux-thread-db.c (thread_get_info_callback): Don't return early
2745 if the thread is zombie.
2746 (thread_from_lwp): Change return type to void. Rewrite stale
2747 comment.
2748 (attach_thread): Don't return early if the thread is zombie,
2749 instead set its "dying" flag.
2750 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2751 (find_new_threads_callback): Don't return early if the thread is
2752 zombie.
2753
09826ec5
PA
27542012-07-20 Pedro Alves <palves@redhat.com>
2755
2756 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2757 * target.c (target_wait): Likewise.
2758 (str_comma_list_concat_elem, do_option, target_options_to_string):
2759 New functions.
2760 * target.h (target_options_to_string): Declare.
2761
f7a35f02
TT
27622012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2763 Tom Tromey <tromey@redhat.com>
2764
2765 * dwarf2read.c (dwarf_decode_macros)
2766 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2767 DW_MACRO_GNU_transparent_include_alt>: New cases.
2768 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2769 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2770
b81e1ee0
TT
27712012-07-20 Tom Tromey <tromey@redhat.com>
2772
2773 * dwarf2read.c (try_open_dwo_file): Don't call
2774 gdb_bfd_stash_filename.
2775
99c1624c
PA
27762012-07-20 Pedro Alves <palves@redhat.com>
2777
2778 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2779 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2780 (i386_process_record): Tweak description comments.
2781
4ffa4fc7
PA
27822012-07-20 Pedro Alves <palves@redhat.com>
2783
2784 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2785 (i386_process_record): Use record_read_memory.
2786 * record.c (record_read_memory): New function.
2787 (record_arch_list_add_mem, record_exec_insn): Use
2788 record_read_memory.
2789 * record.h (record_read_memory): Declare.
2790
c24343e2
YQ
27912012-07-20 Yao Qi <yao@codesourcery.com>
2792
2793 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2794 NULL for xfree.
2795
90f47860
PA
27962012-07-19 Pedro Alves <palves@redhat.com>
2797
2798 * record.c (record_resume): Ask the target beneath to report all
2799 signals.
2800
01093045
DE
28012012-07-19 Doug Evans <dje@google.com>
2802
2803 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2804 there's no section at address zero.
2805 (dwarf2_record_block_ranges): Ditto.
2806
a7c3d162
YQ
28072012-07-19 Yao Qi <yao@codesourcery.com>
2808
2809 * command.h, remote.c: Fix a typo in comment.
2810
608b4967
TT
28112012-07-19 Tom Tromey <tromey@redhat.com>
2812
2813 PR exp/13206:
2814 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2815 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2816 OP_DECLTYPE>: New cases.
2817 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2818 (type_exp): Add new productions.
2819 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2820 and decltype.
2821 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2822 New case.
2823 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2824 OP_DECLTYPE>: New case.
2825 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2826 New case.
2827 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2828 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2829
274b54d7
TT
28302012-07-19 Tom Tromey <tromey@redhat.com>
2831
2832 * c-exp.y (enum token_flags): New.
2833 (struct token) <cxx_only>: Remove.
2834 <flags>: New field.
2835 (tokentab3, tokentab2, ident_tokens): Update.
2836 (lex_one_token): Update. Handle FLAG_SHADOW.
2837
9eaf6705
TT
28382012-07-19 Tom Tromey <tromey@redhat.com>
2839
2840 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2841 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2842 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2843 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2844 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2845 type_exp production where appropriate.
2846 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2847 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2848 <UNOP_MEMVAL_TYPE>: New case.
2849 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2850 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2851 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2852 <UNOP_MEMVAL_TYPE>: New case.
2853 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2854 UNOP_REINTERPRET_CAST>: Update.
2855 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2856 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2857 UNOP_REINTERPRET_CAST>: Update.
2858 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2859 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2860 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2861 constants.
2862
6ace3df1
YQ
28632012-07-19 Yao Qi <yao@codesourcery.com>
2864 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2867 and case 'var_optional_filename' together.
2868 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2869 instead of add_setshow_optional_filename_cmd for setshow command
2870 'args'. Set completer for 'set args'.
2871
48faced0
DE
28722012-07-18 Doug Evans <dje@google.com>
2873
2874 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2875 * common/gdb_vecs.c: New file, contents from utils.c.
2876 * common/host-defs.h: New file, contents from defs.h.
2877 * utils.h: New file, contents from defs.h.
2878 * defs.h: Move all declarations of objects defined in utils.c
2879 to utils.h (except QUIT() and related).
2880 #include "utils.h", "host-defs.h".
2881 * probe.h (probe_p): Move here from gdb_vecs.h.
2882 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2883 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2884 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2885 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2886 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2887 (COMMON_OBS): Add gdb_vecs.o.
2888 (gdb_vecs.o): New rule.
2889
66f1999b
KS
28902012-07-18 Keith Seitz <keiths@redhat.com>
2891
2892 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2893 parameter. If non-zero, use SYMNAME as the canonical name
2894 for the SaL.
2895 Update all callers.
2896 (convert_linespec_to_sals): Use add_sal_to_sals for
2897 expressions, too.
2898 (decode_line_full): No need to "fill in missing canonical names"
2899 anymore. Simply make cleanups for the allocated names.
2900
5d94e27b
KS
29012012-07-18 Keith Seitz <keiths@redhat.com>
2902
2903 * linespec.c (struct linespec): Constify expression,
2904 source_filename, function_name, and label_name.
2905 (symbol_not_found_error): Make all parameters const.
2906 (linespec_parser_delete): No need to check for NULL
2907 when using xfree. Cast const char * to char * for xfree.
2908
af4908ba
KS
29092012-07-18 Keith Seitz <keiths@redhat.com>
2910
2911 * breakpoint.c (invalid_thread_id_error): New function.
2912 (find_condition_and_thread): Use invalid_thread_id_error.
2913 (watch_command_1): Likewise.
2914
853254db
TT
29152012-07-18 Tom Tromey <tromey@redhat.com>
2916
2917 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2918 * contrib/cc-with-tweaks.sh: New file.
2919
2ec9a5e0
TT
29202012-07-18 Tom Tromey <tromey@redhat.com>
2921
2922 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2923 (locate_dwz_sections): Recognize .gdb_index.
2924 (create_cus_from_index_list): New function.
2925 (create_cus_from_index): Use it. Handle .dwz data.
2926 (read_index_from_section): New function, extracted from
2927 dwarf2_read_index.
2928 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2929 if needed.
2930
36586728
TT
29312012-07-18 Tom Tromey <tromey@redhat.com>
2932
2933 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2934 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2935 <is_dwz>: New field.
2936 (struct dwz_file): New.
2937 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2938 (locate_dwz_sections, dwarf2_get_dwz_file)
2939 (get_abbrev_section_for_cu): New functions.
2940 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2941 (read_and_check_type_unit_head): Add abbrev_section argument.
2942 (create_debug_types_hash_table): Update.
2943 (init_cutu_and_read_dies): Use proper abbrev section.
2944 (init_cutu_and_read_dies_no_follow): Likewise.
2945 (set_partial_user): Do nothing if PST==NULL.
2946 (read_comp_units_from_section): New function.
2947 (create_all_comp_units): Use it.
2948 (scan_partial_symbols, partial_die_parent_scope): Update.
2949 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2950 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2951 (find_partial_die): Add offset_in_dwz argument. Update.
2952 (guess_partial_die_structure_name, fixup_partial_die): Update.
2953 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2954 DW_FORM_GNU_strp_alt.
2955 (read_indirect_string_from_dwz): New function.
2956 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2957 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2958 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2959 (follow_die_offset): Add offset_in_dwz argument.
2960 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2961 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2962 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2963 Handle new macro forms.
2964 (dwarf_decode_macros): Update.
2965 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2966 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2967 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2968 (create_debug_types_hash_table): Use correct abbrev section.
2969 (get_debug_line_section): New function.
2970 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2971 (process_full_comp_unit): Pass 'required' argument to
2972 end_symtab_get_static_block.
2973 * buildsym.h (end_symtab_get_static_block): Update.
2974 * buildsym.c (end_symtab_get_static_block): Add 'required'
2975 argument.
2976 (end_symtab, end_expandable_symtab): Update.
2977
4bf44c1c
TT
29782012-07-18 Tom Tromey <tromey@redhat.com>
2979
2980 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2981 (pagesize): Remove.
2982 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2983 (zlib_decompress_section): Remove.
2984 (dwarf2_read_section): Use gdb_bfd_map_section.
2985 (munmap_section_buffer): Remove.
2986 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2987 munmap_section_buffer.
2988 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2989 (struct gdb_bfd_section_data): New.
2990 (free_one_bfd_section): New function.
2991 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2992 (get_section_descriptor, zlib_decompress_section)
2993 (gdb_bfd_map_section): New functions.
2994 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2995
bb397797
TT
29962012-07-18 Tom Tromey <tromey@redhat.com>
2997
2998 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2999
6ec53d05
TT
30002012-07-18 Tom Tromey <tromey@redhat.com>
3001
3002 * gdb_bfd.c (struct gdb_bfd_data): New.
3003 (gdb_bfd_cache): New global.
3004 (struct gdb_bfd_cache_search): New.
3005 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3006 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3007 * gdb_bfd.h (gdb_bfd_open): Declare.
3008
f9a062ff
TT
30092012-07-18 Tom Tromey <tromey@redhat.com>
3010
3011 * utils.c (make_cleanup_bfd_unref): Rename from
3012 make_cleanup_bfd_close.
3013 * defs.h (make_cleanup_bfd_unref): Rename from
3014 make_cleanup_bfd_close.
3015 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3016 (bfd_openw_with_cleanup): Update.
3017 * corelow.c (core_open): Update.
3018 * dsrec.c (load_srec): Update.
3019 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3020 * remote-m32r-sdi.c (m32r_load): Update.
3021 * remote-mips.c (mips_load_srec): Update.
3022 (pmon_load_fast): Update.
3023 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3024 Update.
3025 (darwin_bfd_open): Update.
3026 * solib.c (solib_bfd_fopen): Update.
3027 * symfile-mem.c (symbol_file_add_from_memory): Update.
3028 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3029 (symfile_bfd_open): Update.
3030 (generic_load): Update.
3031
d6ad71ba
TT
30322012-07-18 Tom Tromey <tromey@redhat.com>
3033
3034 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3035 (pmon_load_fast): Likewise.
3036 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3037 (m32r_upload_command): Likewise.
3038 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3039 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3040 Use make_cleanup_bfd_close.
3041
a4453b7e
TT
30422012-07-18 Tom Tromey <tromey@redhat.com>
3043
3044 * symfile.c (symfile_bfd_open): Don't copy name. Call
3045 gdb_bfd_stash_filename.
3046 (load_command): Open the new BFD before freeing the old.
3047 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3048 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3049 Call gdb_bfd_stash_filename.
3050 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3051 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3052 gdb_bfd_stash_filename.
3053 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3054 Free found_pathname.
3055 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3056 gdb_bfd_stash_filename.
3057 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3058 * machoread.c (macho_add_oso_symfile): Call
3059 gdb_bfd_stash_filename.
3060 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3061 gdb_bfd_stash_filename.
3062 (macho_check_dsym): Don't copy filename. Call
3063 gdb_bfd_stash_filename.
3064 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3065 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3066 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3067 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3068 * exec.c (exec_close): Don't free the BFD's filename.
3069 (exec_file_attach): Don't copy the filename. Call
3070 gdb_bfd_stash_filename.
3071 * corelow.c (core_close): Don't free the BFD's filename.
3072 (core_open): Call gdb_bfd_stash_filename.
3073 * corefile.c (reopen_exec_file): Remove #if 0 code.
3074 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3075 pathname.
3076 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3077
cbb099e8
TT
30782012-07-18 Tom Tromey <tromey@redhat.com>
3079
3080 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3081 gdb_bfd_unref.
3082 (free_dwo_file): Use gdb_bfd_unref.
3083 * cli/cli-dump.c: Include gdb_bfd.h.
3084 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3085 (bfd_openr_with_cleanup): Likewise.
3086 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3087 gdb_bfd_unref.
3088 * utils.c: Include gdb_bfd.h.
3089 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3090 * symfile.c: Include gdb_bfd.h.
3091 (separate_debug_file_exists): Use gdb_bfd_unref.
3092 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3093 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3094 (generic_load): Use gdb_bfd_ref.
3095 (reread_symbols): Use gdb_bfd_unref.
3096 * symfile-mem.c: Include gdb_bfd.h.
3097 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3098 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3099 * solib.c: Include gdb_bfd.h.
3100 (solib_bfd_fopen): Use gdb_bfd_ref.
3101 (solib_bfd_open): Use gdb_bfd_unref.
3102 (free_so_symbols): Use gdb_bfd_unref.
3103 (reload_shared_libraries_1): Use gdb_bfd_unref.
3104 * solib-spu.c: Include gdb_bfd.h.
3105 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3106 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3107 gdb_bfd_unref.
3108 * solib-frv.c: Include gdb_bfd.h.
3109 (enable_break2): Use gdb_bfd_unref.
3110 * solib-dsbt.c: Include gdb_bfd.h.
3111 (enable_break2): Use gdb_bfd_unref.
3112 * solib-darwin.c: Include gdb_bfd.h.
3113 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3114 gdb_bfd_unref.
3115 (darwin_bfd_open): Use gdb_bfd_unref.
3116 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3117 * remote-mips.c: Include gdb_bfd.h.
3118 (mips_load_srec): Use gdb_bfd_ref.
3119 (pmon_load_fast): Use gdb_bfd_ref.
3120 * remote-m32r-sdi.c: Include gdb_bfd.h.
3121 (m32r_load): Use gdb_bfd_ref.
3122 * record.c: Include gdb_bfd.h.
3123 (record_save_cleanups): Use gdb_bfd_unref.
3124 (cmd_record_save): Use gdb_bfd_unref.
3125 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3126 gdb_bfd_unref.
3127 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3128 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3129 * objfiles.c: Include gdb_bfd.h.
3130 (free_objfile): Use gdb_bfd_unref.
3131 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3132 gdb_bfd.c.
3133 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3134 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3135 (macho_check_dsym): Likewise.
3136 * m32r-rom.c: Include gdb_bfd.h.
3137 (m32r_load): Use gdb_bfd_ref.
3138 (m32r_upload_command): Use gdb_bfd_ref.
3139 * jit.c: Include gdb_bfd.h.
3140 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3141 * gdb_bfd.h: New file.
3142 * gdb_bfd.c: New file.
3143 * gcore.c: Include gdb_bfd.h.
3144 (create_gcore_bfd): Use gdb_bfd_ref.
3145 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3146 (gcore_command): Use gdb_bfd_unref.
3147 * exec.c: Include gdb_bfd.h.
3148 (exec_close): Use gdb_bfd_unref.
3149 (exec_close_1): Use gdb_bfd_unref.
3150 (exec_file_attach): Use gdb_bfd_ref.
3151 * elfread.c: Include gdb_bfd.h.
3152 (build_id_verify): Use gdb_bfd_unref.
3153 * dsrec.c: Include gdb_bfd.h.
3154 (load_srec): Use gdb_bfd_ref.
3155 * corelow.c: Include gdb_bfd.h.
3156 (core_close): Use gdb_bfd_unref.
3157 (core_open): Use gdb_bfd_ref.
3158 * bfd-target.c: Include gdb_bfd.h.
3159 (target_bfd_xclose): Use gdb_bfd_unref.
3160 (target_bfd_reopen): Use gdb_bfd_ref.
3161 * Makefile.in (SFILES): Add gdb_bfd.c.
3162 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3163 (COMMON_OBS): Add gdb_bfd.o.
3164
ed1d1739
KS
31652012-07-18 Keith Seitz <keiths@redhat.com>
3166
3167 * breakpoint.c (find_condition_and_thread): Initialize
3168 TASK and REST.
3169 (create_breakpiont): find_condition_and_thread will now
3170 initialize COND_STRING, THREAD, and REST (and TASK).
3171 (addr_string_to_sals): Likewise.
3172
eab402df
PA
31732012-07-18 Pedro Alves <palves@redhat.com>
3174
3175 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3176 Pull the single step breakpoints out of the target.
3177
2b963b68
SDJ
31782012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3179
3180 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3181 * stap-probe.c (compile_probe_arg): Likewise.
3182
6bac7473
SDJ
31832012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3184
3185 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3186 (elf_compile_to_ax): Likewise.
3187 * infrun.c (insert_exception_resume_from_probe): Likewise.
3188 (check_exception_resume): Remove `objfile' variable.
3189 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3190 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3191 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3192 (compare_entries): Rename to...
3193 (compare_probes): ...this. Adjust function to work with
3194 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3195 respectively.
3196 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3197 `VEC (probe_p) *'.
3198 (print_ui_out_info): Adjust argument to be `struct probe *'.
3199 (info_probes_for_ops): Adjust internal computations to use
3200 `VEC (probe_p) *'.
3201 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3202 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3203 gen_info_probes_table_values>: Remove `objfile' argument.
3204 (struct probe) <objfile>: New field.
3205 (find_probe_by_pc): Remove `objfile' argument.
3206 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3207 (stap_get_probe_argument_count): Likewise.
3208 (stap_get_arg): Likewise.
3209 (stap_evaluate_probe_argument): Likewise.
3210 (stap_compile_to_ax): Likewise.
3211 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3212 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3213 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3214 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3215 sym_compile_to_ax>: Likewise.
3216
3347eb1a 32172012-07-18 Terry Guo <terry.guo@arm.com>
3218
3219 PR 14329
3220 * defs.h (GDB_MI_MSG_WIDTH): New.
3221 * ser_base (ser_base_read_error_fd): New function.
3222 (do_ser_base_readchar): Poll error file descriptor as well as
3223 standard output.
f782ad9b 3224 (generic_readchar): Refactor error handling.
3347eb1a 3225
80c8d323
JB
32262012-07-18 Joel Brobecker <brobecker@adacore.com>
3227
3228 * NEWS: Create a new section for the next release branch.
3229 Rename the section of the current branch, now that it has
3230 been cut.
3231
b45a0664 32322012-07-18 Joel Brobecker <brobecker@adacore.com>
3233
3234 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3235 * version.in: Bump version to 7.5.50.20120718-cvs.
3236
09cf2b22
KS
32372012-07-17 Keith Seitz <keiths@redhat.com>
3238
3239 * linespec.c (linespec_parse_line_offset): Make parameter
3240 const.
3241
8f043999
JK
32422012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3243
3244 PR 11914
3245 * f-valprint.c (info_common_command): New variable frame_id.
3246 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3247 * printcmd.c (print_variable_and_value): Extend function comment.
3248 Add comment for invalidated FRAME.
3249 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3250 FI form FRAME_ID after each print_frame_local_vars.
3251 (struct print_variable_and_value_data): Change frame to frame_id.
3252 (do_print_variable_and_value): New variable frame, initialize it from
3253 p->frame_id. Add comment for invalidated FRAME.
3254 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3255 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3256 for invalidated FRAME.
3257
ae5e0686
MK
32582012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3259 Pedro Alves <palves@redhat.com>
3260
3261 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3262 loop.
3263
5049c5be
TT
32642012-07-16 Tom Tromey <tromey@redhat.com>
3265
3266 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3267
2908cac6
DE
32682012-07-15 Doug Evans <dje@google.com>
3269
094b34ac
DE
3270 * dwarf2read.c (stmt_list_hash): New struct.
3271 (type_unit_group): Embed "per_cu" member, remove pointer.
3272 New union member "t", move member "tus" into it, all uses updated.
3273 New member "hash", replaces member "line_offset, all uses updated.
3274 (quick_file_names): Replace member "offset" with "hash", all uses
3275 updated.
3276 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3277 (hash_file_name_entry, eq_file_name_entry): Call them.
3278 (hash_type_unit_group, eq_type_unit_group): Ditto.
3279 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3280 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3281 (dw2_get_file_names): Update.
3282 (create_type_unit_group): Replace "per_cu" arg with "cu".
3283 All callers updated. Fix "quick" (.gdb_index) handling.
3284 (get_type_unit_group): Replace "per_cu" arg with "cu".
3285 All callers updated.
3286 (build_type_unit_groups): Don't reset tu_stats.
3287
2908cac6
DE
3288 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3289 "tab_cur_size". Change member "tab" to be a htab_t.
3290 (create_filename_seen_cache): Update.
3291 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3292 (filename_seen): Update.
3293
a2b6eff5
DE
32942012-07-13 Doug Evans <dje@google.com>
3295
3296 * symtab.c (filename_seen): Update comment.
3297
4359dff1
JK
32982012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3299 Doug Evans <dje@google.com>
3300
3301 * buildsym.c (end_symtab_1): Split it to ...
3302 (end_symtab_get_static_block): ... this ...
3303 (end_symtab_from_static_block): ... and this function.
3304 (end_symtab, end_expandable_symtab): Call them.
3305 * buildsym.h (end_symtab_get_static_block)
3306 (end_symtab_from_static_block): New declarations.
3307 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3308 Set its valid CU ranges.
3309
a24f71ab
JK
33102012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3313 DW_OP_GNU_parameter_ref.
3314
d76b7dbc
JK
33152012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3316
3317 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3318 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3319
9fdc877b
DE
33202012-07-13 Doug Evans <dje@google.com>
3321
3322 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3323 (filename_seen_cache): New struct.
3324 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3325 (create_filename_seen_cache): New function.
3326 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3327 (filename_seen): Delete arg "first". New arg "cache". All callers
3328 updated.
3329 (output_source_filename_data): New struct.
3330 (output_source_filename): Delete arg "first". New arg "data".
3331 All callers updated.
3332 (sources_info): Delete local "first". New locals "data", "cleanups".
3333 Rewrite to use filename_seen_cache.
3334 (add_partial_filename_data): Delete member "first". New member
3335 "filename_seen_cache". All uses updated.
3336 (make_source_files_completion_list): Rewrite to use
3337 filename_seen_cache.
3338
f80c6f3f
DE
33392012-07-12 Doug Evans <dje@google.com>
3340
3341 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3342
0bfa869d
DE
33432012-07-10 Doug Evans <dje@google.com>
3344
f4dc4d17
DE
3345 PR gdb/13498
3346 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3347 all_type_unit_groups, type_unit_groups, tu_stats.
3348 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3349 All uses updated. Add type_unit_group to union "s".
3350 (type_unit_group): New struct.
3351 (IS_TYPE_UNIT_GROUP): New macro.
3352 (abbrev_table): Delete unused member "section".
3353 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3354 (dw2_get_cu): Assert not used with type_unit_group.
3355 (dw2_get_primary_cu): New function.
3356 (dw2_build_type_unit_groups_reader): New function.
3357 (dw2_build_type_unit_groups): New function.
3358 (dw2_get_file_names): Assert not called on type units.
3359 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3360 Redo loop to iterate over type unit groups instead of type units.
3361 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3362 (read_abbrev_offset): New function.
3363 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3364 updated.
3365 (create_partial_symtab): New function.
3366 (process_psymtab_comp_unit_reader): Assert not used with type units.
3367 Call create_partial_symtab.
3368 (process_psymtab_type_unit): Delete.
3369 (hash_type_unit_group, eq_type_unit_group): New functions.
3370 (allocate_type_unit_groups_table): New function.
3371 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3372 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3373 (create_type_unit_group, get_type_unit_group): New functions.
3374 (tu_abbrev_offset): New struct.
3375 (sort_tu_by_abbrev_offset): New function.
3376 (add_type_unit_group_to_table): New function.
3377 (build_type_unit_groups): New function.
3378 (build_type_psymtabs_reader): New function.
3379 (build_type_psymtab_dependencies): New function.
3380 (build_type_psymtabs): Rewrite.
3381 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3382 is seen in a type unit.
3383 (process_queue): Move symtab expansion debugging printfs here.
3384 Call process_full_type_unit for type units.
3385 (compute_symtab_includes): Assert not called for type units.
3386 (process_cu_includes): Don't call compute_symtab_includes for
3387 type units.
3388 (process_full_type_unit): New function.
3389 (process_imported_unit_die): Flag an error if called for type units.
3390 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3391 updated. Assert not called for type units.
3392 (read_file_scope): Call dwarf2_start_symtab.
3393 (setup_type_unit_groups): New function.
3394 (read_type_unit_scope): Rewrite.
3395 (abbrev_table_read_table): Initialize abbrev_table->offset.
3396 (abbrev_table_free_cleanup): New function.
3397 (dwarf2_start_symtab): New function.
3398 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3399 * buildsym.c (finish_block_internal): New arg "expandable".
3400 All callers updated.
3401 (start_symtab): Move most contents to ...
3402 (restart_symtab): ... here. New function.
3403 (reset_symtab_globals): New function.
3404 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3405 Call reset_symtab_globals.
3406 (end_symtab, end_expandable_symtab): New functions.
3407 (set_missing_symtab, augment_type_symtab): New functions.
3408 * buildsym.h (end_expandable_symtab): Declare.
3409 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3410 * psympriv.h (struct partial_symtab): New member "anonymous".
3411 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3412 anonymous psymtabs.
3413 (read_psymtabs_with_filename): Ditto.
3414 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3415 (expand_symtabs_matching_via_partial): Ditto.
3416 (dump_psymtab): Update.
0bfa869d
DE
3417 * dictionary.c (dict_add_pending): New function.
3418 * dictionary.h (dict_add_pending): Declare.
3419
45e58e77
DE
34202012-07-09 Doug Evans <dje@google.com>
3421
b74db436
DE
3422 * buildsym.c (start_subfile): Remove unnecessary check for
3423 name == NULL.
3424
fd55216c
DE
3425 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3426
6721b2ec
DE
3427 * dwarf2read.c (load_full_type_unit): Simplify.
3428
b4dd5633
DE
3429 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3430 to struct signatured_type **. All uses updated.
3431
45e58e77
DE
3432 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3433 All callers updated.
3434
e314d629
TT
34352012-07-09 Tom Tromey <tromey@redhat.com>
3436
3437 * c-exp.y (check_parameter_typelist): New function.
3438 (parameter_typelist): Call it.
3439 * eval.c (make_params): Handle '(void)' case.
3440 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3441 '(void)' case.
3442
aa7c7447
JK
34432012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3444
3445 * common/linux-ptrace.c: Include gdb_assert.h.
3446 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3447 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3448 stdint.h.
3449 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3450 functions.
3451 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3452 * linux-nat.c (linux_child_post_attach)
3453 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3454
889003ed
JK
34552012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3458 nptl <2.7 bug workaround for core files.
3459
da559b09
JK
34602012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3463 clearing.
3464 (save_siginfo): Remove.
3465 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3466 call.
3467 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3468 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3469 * linux-nat.h (struct lwp_info): Remove field siginfo.
3470
f865ee35
JK
34712012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3472
3473 Code cleanup for the next patch.
3474 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3475 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3476 call for it.
3477 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3478 (ia64_linux_stopped_data_address):
3479 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3480 the return value.
3481 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3482 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3483 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3484 call for it.
3485
76b83c51
JK
34862012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3487
3488 PR 14321
3489 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3490 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3491
a6fb9c08
TT
34922012-07-06 Tom Tromey <tromey@redhat.com>
3493
3494 * c-exp.y (DOTDOTDOT): New token.
3495 (func_mod, exp): Use parameter_typelist.
3496 (parameter_typelist): New production.
3497 (tokentab3): Add "..." token.
3498 * eval.c (make_params): Handle varargs.
3499 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3500 varargs.
3501
71918a86
TT
35022012-07-06 Tom Tromey <tromey@redhat.com>
3503
3504 PR exp/9608:
3505 * c-exp.y (%union) <tvec>: Change type.
3506 (func_mod): Now uses <tvec> type.
3507 (exp): Update for tvec change.
3508 (direct_abs_decl): Push the typelist.
3509 (func_mod): Return a typelist.
3510 (nonempty_typelist): Update for tvec change.
3511 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3512 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3513 * parse.c (pop_type_list): New function.
3514 (push_typelist): New function.
3515 (follow_types): Handle tp_function_with_arguments.
3516 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3517 (enum type_pieces) <tp_function_with_arguments>: New constant.
3518 (union type_stack_elt) <typelist_val>: New field.
3519 (push_typelist): Declare.
3520
fcde5961
TT
35212012-07-06 Tom Tromey <tromey@redhat.com>
3522
3523 * c-exp.y (%union) <type_stack>: New field.
3524 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3525 (ptr_operator_ts): New production.
3526 (ptype): Update.
3527 * parse.c (type_stack_reserve): New function.
3528 (check_type_stack_depth): Use it.
3529 (pop_type_stack, append_type_stack, push_type_stack)
3530 (get_type_stack, type_stack_cleanup): New functions.
3531 (follow_types): Handle tp_type_stack.
3532 (_initialize_parse): Simplify initialization.
3533 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3534 constant.
3535 (union type_stack_elt) <stack_val>: New field.
3536 (get_type_stack, append_type_stack, push_type_stack)
3537 (type_stack_cleanup): Declare.
3538
1a7d0ce4
TT
35392012-07-06 Tom Tromey <tromey@redhat.com>
3540
3541 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3542 Remove.
3543 (struct type_stack): New.
3544 * parse.c (type_stack, type_stack_size, type_stack_depth):
3545 Remove.
3546 (type_stack): New global.
3547 (parse_exp_in_context, check_type_stack_depth)
3548 (insert_into_type_stack, insert_type, push_type, push_type_int)
3549 (insert_type_address_space, pop_type, pop_type_int)
3550 (_initialize_parse): Update.
3551
16d01384
TT
35522012-07-06 Tom Tromey <tromey@redhat.com>
3553
3554 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3555 Remove %type.
3556
9bfc60bf
SP
35572012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3558
3559 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3560
d5161074
SP
35612012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3562 Jan Kratochvil <jan.kratochvil@redhat.com>
3563
3564 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3565 alloca with xmalloc/xfree.
3566
a74bc576
SP
35672012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3568
3569 * MAINTAINERS (Write After Approval): Add myself to the list.
3570
667e0a4b
DE
35712012-07-05 Doug Evans <dje@google.com>
3572
3573 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3574
34b536a8
HZ
35752012-07-05 Hui Zhu <hui_zhu@mentor.com>
3576
3577 * ax-gdb.c (cli/cli-utils.h): New include.
3578 (linespec.h): Ditto.
3579 (agent_eval_command_one): New function.
3580 (agent_command_1): Ditto.
3581 (agent_command): Call function agent_command_1.
3582 (agent_eval_command): Ditto.
3583 (_initialize_ax_gdb): Change help for "maint agent"
3584 and "maint agent-eval".
3585
e6f0bce7
HZ
35862012-07-05 Hui Zhu <hui_zhu@mentor.com>
3587
3588 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3589 * cli/cli-utils.c (check_for_argument): New function.
3590 * cli/cli-utils.h (check_for_argument): Ditto.
3591
1b3371b1
L
35922012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3593
3594 * NEWS: Mention x32 ABI support.
3595
23e2d720
L
35962012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3597
3598 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3599 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3600
3601 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3602 and pc_regnum_from_eax to -1. Update SP regnum from
3603 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3604 needed.
3605
3606 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3607 pc_regnum_from_eax.
3608
836bf454
JK
36092012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3610
3611 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3612 * dwarf2expr.h: Include gdbtypes.h.
3613 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3614 these forward declarations.
3615 (cu_offset, sect_offset): Move these ...
3616 * gdbtypes.h: Remove include dwarf2expr.h.
3617 (cu_offset, sect_offset): ... here.
3618
1e55e04f
L
36192012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3620
3621 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3622 (amd64_linux_sigtramp_code): This.
3623 (amd64_x32_linux_sigtramp_code): New.
3624 (LINUX_SIGTRAMP_LEN): Updated.
3625 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3626
7d0e21ad
JK
36272012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3628
3629 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3630
8775fd2d
JK
36312012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 * config.in: Regenerate.
3634 * configure: Regenerate.
3635 * configure.ac: Remove check for gnu/libc-version.h.
3636 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3637 gnu/libc-version.h.
3638 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3639 variables libc_version, libc_major and libc_minor. Replace sscanf by
3640 inferior_has_bug. Extend the comment.
3641
fcb44371
JK
36422012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3643
3644 * linux-thread-db.c (inferior_has_bug): New function.
3645 (thread_db_find_new_threads_silently): Return boolean as checked by
3646 inferior_has_bug, describe it in the comments.
3647 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3648 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3649 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3650 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3651 if UNTIL_NO_NEW,
3652
09406207
DE
36532012-07-02 Doug Evans <dje@google.com>
3654
0907af0c
DE
3655 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3656 related to queue management.
3657
09406207
DE
3658 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3659 instead of "debug dwarf2-die" in debugging printfs.
3660 (create_debug_info_hash_table_reader): Ditto.
3661 (create_debug_info_hash_table): Ditto.
3662 (init_dwo_file): Ditto.
3663 (init_cutu_and_read_dies): Add debugging printf.
3664 (init_cutu_and_read_dies_no_follow): Ditto.
3665 (process_psymtab_comp_unit_reader): Ditto.
3666
d3ce09f5
SS
36672012-07-02 Stan Shebs <stan@codesourcery.com>
3668
3669 Add target-side support for dynamic printf.
3670 * NEWS: Mention the additional style.
3671 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3672 (struct bp_location): New field cmd_bytecode.
3673 * breakpoint.c: Include format.h.
3674 (disconnected_dprintf): New global.
3675 (parse_cmd_to_aexpr): New function.
3676 (build_target_command_list): New function.
3677 (insert_bp_location): Call it.
3678 (remove_breakpoints_pid): Skip dprintf breakpoints.
3679 (print_one_breakpoint_location): Ditto.
3680 (dprintf_style_agent): New global.
3681 (dprintf_style_enums): Add dprintf_style_agent.
3682 (update_dprintf_command_list): Add agent case.
3683 (agent_printf_command): New function.
3684 (_initialize_breakpoint): Add new commands.
3685 * common/ax.def (printf): New bytecode.
3686 * ax.h (ax_string): Declare.
3687 * ax-gdb.h (gen_printf): Declare.
3688 * ax-gdb.c: Include cli-utils.h, format.h.
3689 (gen_printf): New function.
3690 (maint_agent_print_command): New function.
3691 (_initialize_ax_gdb): Add maint agent-printf command.
3692 * ax-general.c (ax_string): New function.
3693 (ax_print): Add printf disassembly.
3694 * Makefile.in (SFILES): Add format.c
3695 (COMMON_OBS): Add format.o.
3696 * common/format.h: New file.
3697 * common/format.c: New file.
3698 * printcmd.c: Include format.h.
3699 (ui_printf): Call parse_format_string.
3700 * remote.c (remote_state): New field breakpoint_commands.
3701 (PACKET_BreakpointCommands): New enum.
3702 (remote_breakpoint_commands_feature): New function.
3703 (remote_protocol_features): Add new BreakpointCommands entry.
3704 (remote_can_run_breakpoint_commands): New function.
3705 (remote_add_target_side_commands): New function.
3706 (remote_insert_breakpoint): Call it.
3707 (remote_insert_hw_breakpoint): Ditto.
3708 (_initialize_remote): Add new packet configuration for
3709 target-side breakpoint commands.
3710 * target.h (struct target_ops): New field
3711 to_can_run_breakpoint_commands.
3712 (target_can_run_breakpoint_commands): New macro.
3713 * target.c (update_current_target): Handle
3714 to_can_run_breakpoint_commands.
3715
2d7b58e8
JK
37162012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3717
3718 Execute -ix and -iex only after system and user gdbinit files.
3719 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3720 processing down after gdbinit files.
3721
8690e634
JK
37222012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3723
3724 Add fnmatch-gnu module.
3725 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3726 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3727 * gnulib/aclocal.m4: Regenerate.
3728 * gnulib/config.in: Regenerate.
3729 * gnulib/configure: Regenerate.
3730 * gnulib/import/dummy.c: Remove.
3731 * gnulib/import/Makefile.am: Regenerate.
3732 * gnulib/import/Makefile.in: Likewise.
3733 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3734 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3735 * gnulib/import/alloca.c: New file.
3736 * gnulib/import/alloca.in.h: Likewise.
3737 * gnulib/import/config.charset: Likewise.
3738 * gnulib/import/fnmatch.c: Likewise.
3739 * gnulib/import/fnmatch.in.h: Likewise.
3740 * gnulib/import/fnmatch_loop.c: Likewise.
3741 * gnulib/import/localcharset.c: Likewise.
3742 * gnulib/import/localcharset.h: Likewise.
3743 * gnulib/import/m4/alloca.m4: Likewise.
3744 * gnulib/import/m4/codeset.m4: Likewise.
3745 * gnulib/import/m4/configmake.m4: Likewise.
3746 * gnulib/import/m4/fcntl-o.m4: Likewise.
3747 * gnulib/import/m4/fnmatch.m4: Likewise.
3748 * gnulib/import/m4/glibc21.m4: Likewise.
3749 * gnulib/import/m4/localcharset.m4: Likewise.
3750 * gnulib/import/m4/locale-fr.m4: Likewise.
3751 * gnulib/import/m4/locale-ja.m4: Likewise.
3752 * gnulib/import/m4/locale-zh.m4: Likewise.
3753 * gnulib/import/m4/mbrtowc.m4: Likewise.
3754 * gnulib/import/m4/mbsinit.m4: Likewise.
3755 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3756 * gnulib/import/m4/mbstate_t.m4: Likewise.
3757 * gnulib/import/m4/stdbool.m4: Likewise.
3758 * gnulib/import/m4/wchar_h.m4: Likewise.
3759 * gnulib/import/m4/wctype_h.m4: Likewise.
3760 * gnulib/import/m4/wint_t.m4: Likewise.
3761 * gnulib/import/mbrtowc.c: Likewise.
3762 * gnulib/import/mbsinit.c: Likewise.
3763 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3764 * gnulib/import/mbsrtowcs-state.c: Likewise.
3765 * gnulib/import/mbsrtowcs.c: Likewise.
3766 * gnulib/import/ref-add.sin: Likewise.
3767 * gnulib/import/ref-del.sin: Likewise.
3768 * gnulib/import/stdbool.in.h: Likewise.
3769 * gnulib/import/streq.h: Likewise.
3770 * gnulib/import/strnlen1.c: Likewise.
3771 * gnulib/import/strnlen1.h: Likewise.
3772 * gnulib/import/verify.h: Likewise.
3773 * gnulib/import/wchar.in.h: Likewise.
3774 * gnulib/import/wctype.in.h: Likewise.
3775
202cbf1c
JK
37762012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3777
3778 Support shell wildcards for 'set auto-load safe-path'.
3779 * auto-load.c: Include fnmatch.h.
3780 (filename_is_in_dir): Rename to ...
3781 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3782 it. Update function comment. Rename dir_len to pattern_len. New
3783 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3784 messages. Use gdb_filename_fnmatch.
3785 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3786 pattern.
3787 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3788 * defs.h (gdb_filename_fnmatch): New declaration.
3789 * utils.c: Include fnmatch.h.
3790 (gdb_filename_fnmatch): New function.
3791
fb7b5af4
SDJ
37922012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3793
3794 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3795 `-probe' and `-probe-stap' options.
3796
72d0e2c5
YQ
37972012-07-01 Yao Qi <yao@codesourcery.com>
3798
3799 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3800 always_inserted_off, and always_inserted_enums.
3801 Change always_inserted_mode's type to 'enum auto_boolean'.
3802 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3803 callers.
3804 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3805 of add_setshow_enum_cmd.
3806 * infrun.c: Remove can_use_displaced_stepping_auto,
3807 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3808 can_use_displaced_stepping_enum.
3809 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3810 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3811 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3812 add_setshow_enum_cmd.
3813
42e7ad6c
DE
38142012-06-30 Doug Evans <dje@google.com>
3815
3816 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3817 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3818 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3819
39cf75f7
DE
38202012-06-29 Doug Evans <dje@google.com>
3821
3822 * linespec.c: #include "stack.h".
3823 (decode_line_with_current_source): Moved here from symtab.c and
3824 renamed from decode_line_spec. All callers updated.
3825 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3826 renamed from decode_line_spec_1. All callers updated.
3827 * linespec.h (decode_line_with_current_source): Move declaration here
3828 from symtab.h and renamed from decode_line_spec.
3829 (decode_line_with_last_displayed): Move declaration here from symtab.h
3830 and renamed from decode_line_spec_1.
3831 * macrocmd.c: #include "linespec.h".
3832 * symtab.c: Remove #include "linespec.h".
3833
433df2d4
DE
38342012-06-28 Doug Evans <dje@google.com>
3835
1ce1cefd
DE
3836 * dwarf2read.c (get_cu_length): New function.
3837 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3838 (create_debug_types_hash_table): Ditto.
3839 (init_cutu_and_read_dies): Ditto.
3840 (init_cutu_and_read_dies_no_follow): Ditto.
3841
3b80fe9b
DE
3842 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3843
433df2d4
DE
3844 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3845 (struct abbrev_table): Define.
3846 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3847 abbrev_table.
3848 (init_cutu_and_read_dies): Update.
3849 (abbrev_table_alloc_abbrev): New function. Replaces
3850 dwarf_alloc_abbrev. All callers updated.
3851 (abbrev_table_add_abbrev): New function.
3852 (abbrev_table_lookup_abbrev): New function. Replaces
3853 dwarf2_lookup_abbrev. All callers updated.
3854 (abbrev_table_read_table): New function. Contents moved here from
3855 dwarf2_read_abbrevs.
3856 (dwarf2_read_abbrevs): Call it.
3857 (abbrev_table_free): New function.
3858 (dwarf2_free_abbrev_table): Call it.
3859
71caed83
SS
38602012-06-28 Stan Shebs <stan@codesourcery.com>
3861
3862 * osdata.c (info_osdata_command): Filter out "Title" columns
3863 from non-MI uses.
3864 * common/linux-osdata.c (struct osdata_type): Add title field.
3865 (osdata_table): Add titles to each entry.
3866 (linux_command_xfer_osdata): Add a column for title data.
3867
37ce89eb
SS
38682012-06-28 Stan Shebs <stan@codesourcery.com>
3869
3870 Make logging work for MI.
3871 * NEWS: Mention it.
3872 * interps.h (interp_set_logging_ftype): New typedef.
3873 (struct interp_procs): New field set_logging_proc.
3874 (current_interp_set_logging): Declare.
3875 * interps.c (current_interp_set_logging): New function.
3876 * cli/cli-logging.c: Include interps.h.
3877 (set_logging_redirect): Call current_interp_set_logging.
3878 (pop_output_files): Ditto.
3879 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3880 * mi/mi-console.h (mi_console_set_raw): Declare.
3881 * mi/mi-console.c (mi_console_set_raw): New function.
3882 * mi/mi-interp.c (saved_raw_stdout): New global.
3883 (mi_set_logging): New function.
3884 (_initialize_mi_interp): Add it to interp procs.
3885
659c9f3a
DE
38862012-06-28 Doug Evans <dje@google.com>
3887
a743abeb
DE
3888 * symtab.c (lookup_symbol_aux_objfile): Use
3889 ALL_OBJFILE_PRIMARY_SYMTABS.
3890
659c9f3a
DE
3891 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3892
da2d6d3d
JK
38932012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3894
3895 * common/buffer.c: Include inttypes.h and stdint.h.
3896 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3897
e5ef252a
PA
38982012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3899 Pedro Alves <palves@redhat.com>
3900
3901 * gdbthread.h (ALL_THREADS): New macro.
3902 (thread_list): Declare.
3903 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3904 going, but instead fall through to the stepping handling.
3905 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3906 the passed in signal. Adjust debug output.
3907 (resume_callback): Rename to ...
3908 (linux_nat_resume_callback): ... this. Pass the thread's last
3909 stop signal, if in "pass" state.
3910 (linux_nat_resume): Adjust to rename.
3911 (stop_wait_callback): New assertion. Don't respawn signals;
3912 instead let the LWP remain with SIGNALLED set.
3913 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3914 * remote.c (append_pending_thread_resumptions): New.
3915 (remote_vcont_resume): Call it.
3916 * target.h (target_resume): Extend comment.
3917
1d7975eb
IS
39182012-06-28 Iain Sandoe <iain@codesourcery.com>
3919
3920 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3921
2e3cf129
DE
39222012-06-27 Doug Evans <dje@google.com>
3923
3924 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3925 Delete have_addr_base, unused. All uses updated.
3926 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3927 (dwarf2_get_pc_bounds): Add ranges_base.
3928 (dwarf2_record_block_ranges): Ditto.
3929
1bb9788d
TT
39302012-06-27 Tom Tromey <tromey@redhat.com>
3931
3932 PR macros/7961:
3933 * varobj.c (varobj_create): Update.
3934 (varobj_set_value): Update.
3935 * tracepoint.c (validate_actionline): Update.
3936 (encode_actions_1): Update.
3937 * parse.c (parse_exp_1): Add 'pc' argument.
3938 (parse_exp_in_context): Add 'pc' argument. Change how
3939 expression_context_pc is set.
3940 (parse_expression): Update.
3941 (parse_field_expression): Update.
3942 * expression.h (parse_exp_1): Update.
3943 * eval.c (parse_to_comma_and_eval): Update.
3944 * breakpoint.c (set_breakpoint_condition): Update.
3945 (update_watchpoint): Update.
3946 (init_breakpoint_sal): Update
3947 (find_condition_and_thread): Update.
3948 (watch_command_1): Update.
3949 (update_breakpoint_locations): Update.
3950 * ada-lang.c (ada_read_renaming_var_value): Update.
3951 (create_excep_cond_exprs): Update.
3952
0bc3a05c
DE
39532012-06-27 Doug Evans <dje@google.com>
3954
3955 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3956 type units.
3957
4bdcc0c1
DE
39582012-06-26 Doug Evans <dje@google.com>
3959
3960 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3961 prototype.
3962 (error_check_comp_unit_head): New arg abbrev_section. All callers
3963 updated.
3964 (read_and_check_comp_unit_head): Ditto.
3965 (read_and_check_type_unit_head): Ditto.
3966
ee0bf529
SCR
39672012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3968
3969 New attribute 'last' for gdb.Symtab_and_line.
3970 * NEWS (Python Scripting): Add entry about the new attribute.
3971 * python/py-symtab.c (salpy_get_last): New function which
3972 implements the get method for the 'last' attribute of
3973 gdb.Symtab_and_line.
3974 (sal_object_getset): Add entry for the 'last' attribute.
3975
1c658ad5
DE
39762012-06-26 Doug Evans <dje@google.com>
3977
09262596
DE
3978 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3979 (dwo_sections): Add macinfo, macro.
3980 (dwarf2_locate_dwo_sections): Watch for macro sections.
3981 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3982 All callers updated. Handle DWO files.
3983
45cfd468
DE
3984 * NEWS: Mention new options "set debug dwarf2-read" and
3985 "set debug symtab-create".
3986 * dwarf2read.c (dwarf2_read_debug): New static global.
3987 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3988 (process_queue): Ditto.
3989 (process_full_comp_unit): Ditto.
3990 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3991 * elfread.c (elf_symfile_read): Add debugging printf.
3992 * minsyms.c (install_minimal_symbols): Ditto.
3993 * psymtab.c (allocate_psymtab): Ditto.
3994 * symfile.c (allocate_symtab): Ditto.
3995 * symtab.c (symtab_create_debug): New global.
3996 (_initialize_symtab): Add new option "set debug symtab-create".
3997 * symtab.h (symtab_create_debug): Declare.
3998
1c658ad5
DE
3999 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4000 (lookup_dwo_type_unit): Ditto.
4001
6fea9e18
L
40022012-06-26 Roland McGrath <roland@hack.frob.com>
4003 H.J. Lu <hongjiu.lu@intel.com>
4004
4005 * amd64-linux-nat.c: Include <sys/user.h>.
4006 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4007 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4008 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4009
4010 * configure.ac: Check if the fs_base and gs_base members of
4011 `struct user_regs_struct' exist.
4012 * config.in: Regenerated.
4013 * configure: Likewise.
4014
adb4fe3b
ME
40152012-06-25 Michael Eager <eager@eagercon.com>
4016
4017 PR python/14291
f782ad9b 4018 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4019
fc51cce1
MGD
40202012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4021
4022 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4023 register as a stack alignment in ARM mode.
4024
40a73391
JK
40252012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4026
4027 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4028 * gnulib/config.in: Regenerate.
4029 * gnulib/configure: Likewise.
4030 * gnulib/import/m4/extensions.m4: Update it.
4031 * gnulib/import/m4/gnulib-common.m4: Likewise.
4032 * gnulib/import/m4/memmem.m4: Likewise.
4033 * gnulib/import/m4/mmap-anon.m4: Likewise.
4034 * gnulib/import/m4/multiarch.m4: Likewise.
4035 * gnulib/import/stdint.in.h: Likewise.
4036
972daa01
YQ
40372012-06-24 Yao Qi <yao@codesourcery.com>
4038
4039 * corefile.c (write_memory_with_notification): New.
4040 * gdbcore.h: Declare write_memory_with_notification.
4041 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4042 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4043 * valops.c (value_assign): Likewise.
4044 * python/py-inferior.c (infpy_write_memory): Call
4045 'write_memory_with_notification'.
4046
8d6e0714
JK
40472012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4048
4049 * cc-with-index.sh: Use also -ex "set auto-load no".
4050
156942c7
DE
40512012-06-23 Doug Evans <dje@google.com>
4052
4053 PR 14125
4054 * NEWS: Document additions to .gdb_index.
4055 * dwarf2read.c: #include "gdb/gdb-index.h".
4056 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4057 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4058 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4059 (dwarf2_read_index): Recognize version 7.
4060 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4061 block_kind, domain): All callers updated.
4062 (dw2_find_symbol_file): Handle new index CU values.
4063 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4064 (add_index_entry): New args is_static, kind. All callers updated.
4065 (offset_type_compare, uniquify_cu_indices): New functions
4066 (symbol_kind): New function.
4067 (write_psymtabs_to_index): Remove duplicate CU values.
4068 (write_psymtabs_to_index): Write .gdb_index version 7.
4069
352b3eda
JB
40702012-06-22 Joel Brobecker <brobecker@adacore.com>
4071
4072 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4073 * configure: Regenerate.
4074
2678e2af
YQ
40752012-06-20 Yao Qi <yao@codesourcery.com>
4076
4077 * python/py-inferior.c: Update comments of infpy_read_memory
4078 and infpy_write_memory.
4079
95c391b6
TT
40802012-06-19 Tom Tromey <tromey@redhat.com>
4081
4082 PR exp/9514:
4083 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4084 (push_type_address_space): Remove.
4085 * parse.c (insert_into_type_stack): New function.
4086 (insert_type): Likewise.
4087 (insert_type_address_space): Rename from push_type_address_space.
4088 Insert tp_space_identifier.
4089 * c-exp.y (ptr_operator): New production.
4090 (abs_decl): Use ptr_operator.
4091 (space_identifier): Call insert_type_address_space.
4092 (ptype): Don't use const_or_volatile_or_space_identifier.
4093 (const_or_volatile_noopt): Call insert_type.
4094 (conversion_type_id, conversion_declarator): New productions.
4095 (operator): Use conversion_type_id.
4096
6ac9ef80
DE
40972012-06-18 Doug Evans <dje@google.com>
4098
422d65e7
DE
4099 * symtab.h (minimal_symbol): New member created_by_gdb.
4100 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4101 created by gdb.
4102 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4103 (search_symbols): Call it instead of lookup_symbol.
4104 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4105
49f6c839
DE
4106 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4107 Adjust address for DW_OP_GNU_addr_index.
4108 * dwarf2expr.h (dwarf_expr_context): Update comment.
4109 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4110 all callers updated. Handle TLS vars described with
4111 DW_OP_GNU_const_index.
4112 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4113 and DW_OP_GNU_const_index.
4114 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4115
6ac9ef80
DE
4116 * block.c (find_block_in_blockvector): Make explicit the fact that we
4117 ignore GLOBAL_BLOCK.
4118
4cd18215
TT
41192012-06-18 Tom Tromey <tromey@redhat.com>
4120
4121 * c-exp.y (operator): Remove trailing space after "delete" and
4122 "delete[]".
4123
a9b8d892
JK
41242012-06-18 Mark Kettenis <kettenis@gnu.org>
4125 Jan Kratochvil <jan.kratochvil@redhat.com>
4126
4127 Switch i386 and derived targets to ON_STACK.
4128 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4129 (amd64_dicos_init_abi): Remove its installment.
4130 * dicos-tdep.c (dicos_init_abi): Remove the
4131 set_gdbarch_call_dummy_location call. Update the comment here.
4132 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4133 (i386_dicos_init_abi): Remove its installment.
4134 * i386-tdep.c (i386_push_dummy_code): New function.
4135 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4136 i386_push_dummy_code.
4137
e2e4d78b
JK
41382012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 Remove stale dummy frames.
4141 * breakpoint.c: Include dummy-frame.h.
4142 (longjmp_breakpoint_ops): New variable.
4143 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4144 bp_longjmp_call_dummy.
4145 (bpstat_what, bptype_string, print_one_breakpoint_location)
4146 (init_bp_location): Support bp_longjmp_call_dummy.
4147 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4148 (set_longjmp_breakpoint_for_call_dummy)
4149 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4150 functions.
4151 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4152 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4153 FIXME comment and extend the other comment for bp_call_dummy.
4154 (set_longjmp_breakpoint_for_call_dummy)
4155 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4156 * dummy-frame.c: Include gdbthread.h.
4157 (pop_dummy_frame_bpt): New function.
4158 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4159 (dummy_frame_discard): New function.
4160 (cleanup_dummy_frames): Update the comment about longjmps.
4161 * dummy-frame.h (dummy_frame_discard): New declaration.
4162 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4163 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4164 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4165 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4166 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4167 keep_going if IS_LONGJMP and there is no other reason to stop.
4168
09d5912c
TT
41692012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4170
4171 * remote-sim.c (sim_command_completer): Initialize
4172 variable 'result'.
4173
1788b2d3
JK
41742012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4177 * dwarf2loc.c (call_site_parameter_matches): Support
4178 CALL_SITE_PARAMETER_PARAM_OFFSET.
4179 (needs_dwarf_reg_entry_value): Push stub value.
4180 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4181 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4182 * gdbtypes.h (enum call_site_parameter_kind): New item
4183 CALL_SITE_PARAMETER_PARAM_OFFSET.
4184 (struct call_site.parameter.u): New field param_offset.
4185
24c5c679
JK
41862012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 Code cleanup: Generalize call_site.parameter key.
4189 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4190 variable dwarf_reg. New variable kind_u. Update parameters to
4191 push_dwarf_reg_entry_value.
4192 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4193 * dwarf2expr.h (enum call_site_parameter_kind)
4194 (union call_site_parameter_u): Forward declarations.
4195 (struct dwarf_expr_context_funcs): Update parameters and their
4196 description for push_dwarf_reg_entry_value.
4197 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4198 * dwarf2loc.c (call_site_parameter_matches): New function.
4199 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4200 description. Use call_site_parameter_matches.
4201 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4202 Update parameters and their description.
4203 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4204 New variable kind_u. Adjust the caller for updated parameters.
4205 (needs_dwarf_reg_entry_value): Update parameters.
4206 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4207 instead of attr. Update for the changed fields of struct
4208 call_site_parameter.
4209 * gdbtypes.h: Include dwarf2expr.h.
4210 (enum call_site_parameter_kind): New.
4211 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4212 fb_offset into new union u.
4213
ac142d96
L
42142012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4215
4216 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4217 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4218 for x32.
4219
ba224c70
L
42202012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4221
4222 * amd64-linux-nat.c (compat_x32_clock_t): New.
4223 (compat_x32_siginfo_t): Likewise.
4224 (compat_x32_siginfo_from_siginfo): Likewise.
4225 (siginfo_from_compat_x32_siginfo): Likewise.
4226 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4227 and siginfo_from_compat_x32_siginfo for x32.
4228
7ecbc825
HZ
42292012-06-15 Hui Zhu <hui_zhu@mentor.com>
4230
4231 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4232
233dfcf0
L
42332012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4234
4235 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4236 instead of gdbarch_ptr_bit.
4237 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4238 (amd64_supply_native_gregset): Likewise.
4239 (amd64_collect_native_gregset): Likewise.
4240 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4241 (amd64_supply_xsave): Likewise.
4242 (amd64_collect_fxsave): Likewise.
4243 (amd64_collect_xsave): Likewise.
4244
6da38f42
L
42452012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4246
4247 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4248 (amd64_linux_read_description): Check DS segment register for
4249 x32 process.
4250
663b969e
TT
42512012-06-15 Tom Tromey <tromey@redhat.com>
4252
4253 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4254 init_cutu_and_read_dies.
4255
d6f05027
IS
42562012-06-15 Iain Sandoe <iain@codesourcery.com>
4257
4258 * MAINTAINERS (Write After Approval): Add myself to the list.
4259
6598ed07
TT
42602012-06-15 Tom Tromey <tromey@redhat.com>
4261
4262 * valops.c (value_find_oload_method_list): Now static.
4263 * value.h (value_find_oload_method_list): Don't declare.
4264
2b214ea6
TT
42652012-06-15 Tom Tromey <tromey@redhat.com>
4266
4267 * valops.c (find_overload_match): Use value_ind.
4268
a210c238
MR
42692012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4270
4271 * infrun.c (handle_inferior_event): Correct indentation.
4272
3771a44c
DE
42732012-06-14 Doug Evans <dje@google.com>
4274
4275 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4276 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4277 All uses updated.
4278 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4279 updated. Handle DEBUG_LOC_START_LENGTH.
4280 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4281 (loclist_describe_location): Ditto.
4282
1c5a993e
MR
42832012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4284
4285 PR backtrace/13866
4286 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4287 after hiding inline functions.
4288
0b155465
JB
42892012-06-13 Joel Brobecker <brobecker@adacore.com>
4290
4291 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4292 _initialize_inf_ttrace.
4293
45717bac
JB
42942012-06-13 Joel Brobecker <brobecker@adacore.com>
4295
4296 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4297 _initialize_hppa_hpux_nat.
4298
34370865
JB
42992012-06-13 Joel Brobecker <brobecker@adacore.com>
4300
4301 * remote-sim.c (sim_command_completer): Change type of return
4302 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4303
284c5a60
MK
43042012-06-13 Mark Kettenis <kettenis@gnu.org>
4305 Jan Kratochvil <jan.kratochvil@redhat.com>
4306
4307 PR tdep/14222
4308 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4309 stack on a 16-byte boundary.
4310
2535757a
TT
43112012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4312
4313 * jit.c (finalize_symtab): Set function's return type to 'void' by
4314 default.
4315
fff4548b
MK
43162012-06-13 Mark Kettenis <kettenis@gnu.org>
4317 H.J. Lu <hongjiu.lu@intel.com>
4318
5a83521a
MK
4319 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4320 Move bits common to both the classic LP64 and the new x32 ILP32
4321 ABI here.
4322 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4323 (amd64_x32_linux_init_abi): New function.
4324 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4325 subtype.
4326
fff4548b
MK
4327 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4328 * i386-tdep.c (i386_pseudo_register_name): Make public.
4329 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4330 * amd64-tdep.c (amd64_dword_names): Add "eip".
4331 (amd64_x32_pseudo_register_type): New function
4332 (amd64_x32_init_abi): New function.
4333
dd80ea3c
JK
43342012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4335
4336 PR build/14003
4337 * inferior.h (struct inferior_suspend_state): Comment out.
4338 (struct inferior): Comment out the field suspend.
4339 * infrun.c (struct infcall_suspend_state): Comment out the field
4340 inferior_suspend.
4341 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4342 out its assignment.
4343
50af5481
JK
43442012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4345
4346 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4347 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4348 function comment. Return ERROR for unresolved cases. Implement
4349 returning proper NAME.
4350 (yylex): Accept also NAME from classify_inner_name.
4351 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4352 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4353 LOC_TYPEDEF type.
4354 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4355
d55637df
TT
43562012-06-13 Tom Tromey <tromey@redhat.com>
4357
4358 * breakpoint.c (condition_completer): New function.
4359 (_initialize_breakpoint): Use it.
4360 * value.c (complete_internalvar): New function.
4361 * value.h (complete_internalvar): Declare.
4362
49c4e619
TT
43632012-06-13 Tom Tromey <tromey@redhat.com>
4364
4365 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4366 * breakpoint.c (catch_syscall_completer): Return a VEC.
4367 * cli/cli-cmds.c (complete_command): Update.
4368 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4369 (complete_on_enum): Likewise.
4370 * command.h: Include gdb_vecs.h.
4371 (completer_ftype): Change return type.
4372 (complete_on_cmdlist, complete_on_enum): Likewise.
4373 * completer.c (noop_completer, filename_completer)
4374 (location_completer): Return a VEC.
4375 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4376 to a VEC.
4377 (expression_completer, complete_line_internal, complete_line)
4378 (command_completer): Return a VEC.
4379 (gdb_completion_word_break_characters, line_completion_function):
4380 Update.
4381 * completer.h: Include gdb_vecs.h.
4382 (complete_line, noop_completer, filename_completer)
4383 (expression_completer, location_completer, command_completer):
4384 Update.
4385 * f-lang.c (f_word_break_characters): Return a VEC.
4386 * interps.c (interpreter_completer): Return a VEC.
4387 * language.h (struct language_defn)
4388 <la_make_symbol_completion_list>: Return a VEC.
4389 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4390 * symtab.c (free_completion_list): Take a VEC.
4391 (return_val_size, return_val_index): Remove.
4392 (return_val): Now a VEC.
4393 (completion_list_add_name): Update.
4394 (default_make_symbol_completion_list_break_on)
4395 (default_make_symbol_completion_list, make_symbol_completion_list)
4396 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4397 Return a VEC.
4398 (add_filename_to_list): Update.
4399 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4400 <list>: Now a VEC.
4401 (maybe_add_partial_symtab_filename): Update.
4402 (make_source_files_completion_list): Return a VEC.
4403 * symtab.h (default_make_symbol_completion_list_break_on)
4404 (default_make_symbol_completion_list, make_symbol_completion_list)
4405 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4406 (make_source_files_completion_list): Update.
4407
625e8578
TT
44082012-06-13 Tom Tromey <tromey@redhat.com>
4409
4410 * breakpoint.c (add_catch_command): Use completer_ftype.
4411 * breakpoint.h: Include command.h.
4412 (add_catch_command): Use completer_ftype.
4413 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4414 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4415 Use completer_ftype.
4416 * command.h (completer_ftype): New typedef.
4417 (set_cmd_completer): Use it.
4418 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4419 completer_ftype.
4420
5eb3b062
PA
44212012-06-13 Pedro Alves <palves@redhat.com>
4422
4423 Partial revert of previous change.
4424
4425 * serial.c (scb_base): New global.
4426 (serial_for_fd): New.
4427 (serial_open, serial_fdopen_ops): Link new serial in open serials
4428 chain.
4429 (do_serial_close): Unlink serial from the open serials chain.
4430
8b3ee56d
PA
44312012-06-12 Pedro Alves <palves@redhat.com>
4432
4433 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4434 threads here.
4435 (prepare_for_detach): No longer context switch here in non-stop
4436 mode.
4437 (fetch_inferior_event): Ditto.
4438 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4439 to the event thread before removing breakpoints. Switch to the
4440 event thread before inserting breakpoints and resuming.
4441 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4442 event thread before resuming.
4443 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4444 Switch to the event thread before removing breakpoints.
4445
5d60742e
EZ
44462012-06-12 Eli Zaretskii <eliz@gnu.org>
4447
4448 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4449 special characters correctly for the Windows shells. See
4450 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4451 report.
4452 [!__MINGW32__]: Remove extra double quote character from special
4453 characters.
4454
a6feecf7
SS
44552012-06-11 Stan Shebs <stan@codesourcery.com>
4456
4457 * ui-out.h: Remove #if 0 declarations.
4458 * ui-out.c: Remove #if 0 functions.
4459
ddefb60f
PA
44602012-06-11 Pedro Alves <palves@redhat.com>
4461
4462 * ser-base.c (run_async_handler_and_reschedule): New.
4463 (fd_event, push_event): Use it.
4464 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4465 reference count to 1.
4466 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4467 instead of xfree.
4468 (serial_is_open, serial_ref, serial_unref): New.
4469 * serial.h (serial_open): Adjust comment.
4470 (serial_is_open): Declare.
4471 (serial_close): Adjust comment.
4472 (serial_ref, serial_unref) Declare.
4473 (struct serial): New field 'refcnt'.
4474
d5ad6aa5
PA
44752012-06-11 Pedro Alves <palves@redhat.com>
4476
4477 Remove #if 0'd "connect" command, and unnecessary associated
4478 refcounting and serial reuse bits.
4479
4480 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4481 * serial.c (last_serial_opened): Delete.
4482 (scb_base): Delete.
4483 (serial_open): Adjust.
4484 (serial_for_fd): Delete.
4485 (serial_fdopen_ops, do_serial_close): Adjust.
4486 (serial_fdopen_ops): Adjust.
4487
318aa544
PA
44882012-06-11 Pedro Alves <palves@redhat.com>
4489
4490 * serial.c (do_serial_close): Remove early return when SCB is
4491 null.
4492
07261596
TT
44932012-06-11 Tom Tromey <tromey@redhat.com>
4494
4495 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4496
cc80f267
JK
44972012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4498
4499 Fix regression by the "ambiguous linespec" series.
4500 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4501 get_last_displayed_symtab and get_last_displayed_line and depending
4502 on CURSAL.
4503
356d9f9d
TT
45042012-06-11 Tom Tromey <tromey@redhat.com>
4505
4506 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4507 (dw2_find_symbol_file): Use it.
4508
232b8704
ME
45092012-06-11 Michael Eager <eager@eagercon.com>
4510
4511 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4512 * mips-linux-tdep.h (mips_signals): New
4513
e81a37f7
TT
45142012-06-11 Tom Tromey <tromey@redhat.com>
4515
4516 * infrun.c (handle_inferior_event)
4517 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4518 breakpoint.
4519 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4520 exception logic in all cases. Update comments.
4521 (insert_longjmp_resume_breakpoint): Set the exception resume
4522 breakpoint.
4523
2e81047f
MR
45242012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4525
4526 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4527
4e32eda7
SCR
45282012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4529
4530 * valarith.c (binop_types_user_defined_p): Fix a typo.
4531
18648a37 45322012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4533 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4534
4535 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4536 * arch-utils.h: Declare.
4537 * gdbarch.sh: Add return_in_first_hidden_param_p.
4538 * gdbarch.c, gdbarch.h: Regenerated.
4539 * infcall.c (call_function_by_hand): Call
4540 gdbarch_return_in_first_hidden_param_p instead of
4541 language_pass_by_reference.
4542
4543 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4544 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4545 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4546 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4547 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4548 `cplus_return_struct_by_reference'.
4549 (tic6x_return_value): Handle language cplusplus.
4550 (tic6x_return_in_first_hidden_param_p): New.
4551 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4552
034e5797
DE
45532012-06-07 Doug Evans <dje@google.com>
4554
4555 * dwarf2read.c (dwarf2_cu): Add comment.
4556
6a00aa1e
MR
45572012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4558
4559 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4560 variable.
4561 (mips_eabi_push_dummy_call): Likewise.
4562 (mips_n32n64_push_dummy_call): Likewise.
4563 (mips_o32_push_dummy_call): Likewise.
4564 (mips_o64_push_dummy_call): Likewise.
4565
eaa05d59
MR
45662012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4567
4568 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4569
de13fcf2
MR
45702012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4571
4572 * mips-tdep.c (mips_pseudo_register_type): Use
4573 mips_float_register_p.
4574
c3a01a22
PA
45752012-06-06 Pedro Alves <palves@redhat.com>
4576
4577 * infrun.c (handle_inferior_event): Remove calls to
4578 reinit_frame_cache that follow a context_switch call.
4579
d25f45d9
PA
45802012-06-06 Pedro Alves <palves@redhat.com>
4581
4582 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4583 context_switch and remove stale comment.
4584
359f5fe6
PA
45852012-06-06 Pedro Alves <palves@redhat.com>
4586
4587 * infrun.c (struct execution_control_state): Remove
4588 `new_thread_event' field.
4589 (handle_inferior_event): Simplify new threads handling; don't
4590 resume the inferior if we find a new thread.
4591
2d4c29c5
TS
45922012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4593
4594 * NEWS: Document the deprecation of SH's 'regs' command.
4595 * inferior.h (all_registers_info): Add function declaration.
4596 * sh-tdep.c (sh_show_regs): Remove variable.
4597 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4598 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4599 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4600 (sh_show_regs_command): Remove functions.
4601 (sh_gdbarch_init): Don't set sh_show_regs.
4602 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4603 'info all-registers'.
4604 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4605 (sh64_show_regs): Remove functions.
4606 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4607
f5f1cdb6
JK
46082012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4609
4610 * configure.ac: Move development=true below AC_INIT.
4611 * configure: Regenerate.
4612
bf6309af
SS
46132012-06-05 Stan Shebs <stan@codesourcery.com>
4614
4615 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4616 gdb_stdout.
4617
45aa4659
JK
46182012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4619
4620 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4621 argument as ssize_t.
4622 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4623 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4624 * target.c (target_read_stack, target_write_memory)
4625 (target_write_raw_memory): Likewise.
4626 * target.h (target_read_stack, target_write_memory)
4627 (target_write_raw_memory): Likewise.
4628
1b162304
JK
46292012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4632 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4633 * target.c (target_read_memory): Change LEN to ssize_t.
4634 * target.h (target_read_memory): Change LEN to ssize_t.
4635
8556afb4
PA
46362012-06-05 Pedro Alves <palves@redhat.com>
4637
4638 PR backtrace/13866
4639
4640 * breakpoint.c (until_break_command): Only fetch the selected
4641 frame after decode_line_1.
4642
fb139f32
PA
46432012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4644
4645 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4646 event breakpoint at _start, __start or main if a program
4647 interpreter is not found.
4648
a8e1bb34
JB
46492012-06-05 Joel Brobecker <brobecker@adacore.com>
4650
4651 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4652 Add declaration.
4653 * windows-tdep.c: #include "objfiles.h".
4654 (windows_iterate_over_objfiles_in_search_order): New function.
4655 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4656 iterate_over_objfiles_in_search_order gdbarch method to
4657 windows_iterate_over_objfiles_in_search_order.
4658 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4659
19630284
JB
46602012-06-05 Joel Brobecker <brobecker@adacore.com>
4661
4662 * gdbarch.sh: Add generation of
4663 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4664 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4665 (iterate_over_objfiles_in_search_order): New gdbarch method.
4666 * gdbarch.h, gdbarch.c: Regenerate.
4667 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4668 Add declaration.
4669 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4670 New function.
4671 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4672 out of lookup_symbol_aux_symtabs.
4673 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4674 call to lookup_symbol_aux_objfile.
4675 (struct global_sym_lookup_data): New type.
4676 (lookup_symbol_global_iterator_cb): New function.
4677 (lookup_symbol_global): Search for symbol using
4678 gdbarch_iterate_over_objfiles_in_search_order and
4679 lookup_symbol_global_iterator_cb.
4680 * findvar.c (struct minsym_lookup_data): New type.
4681 (minsym_lookup_iterator_cb): New function.
4682 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4683 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4684 and minsym_lookup_iterator_cb.
4685
67ff19f7
JB
46862012-06-05 Joel Brobecker <brobecker@adacore.com>
4687
4688 Revert the following patch:
4689 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4690 try locating the symbol in the symbol's own objfile first, before
4691 extending the search to all objfiles.
4692 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4693 out of lookup_symbol_aux_symtabs.
4694 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4695 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4696 Do not search EXCLUDE_OBJFILE.
4697 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4698 (lookup_symbol_global): Search for matches in the block's objfile
4699 first, before searching all other objfiles.
4700
ccab2054
JB
47012012-06-05 Joel Brobecker <brobecker@adacore.com>
4702
4703 * breakpoint.c (find_condition_and_thread): Stop parsing
4704 as soon as the first invalid keyword is found.
4705
e23d4a9c
JB
47062012-06-05 Joel Brobecker <brobecker@adacore.com>
4707
4708 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4709
70160166
JB
47102012-06-05 Joel Brobecker <brobecker@adacore.com>
4711
4712 * config/djgpp/djcheck.sh: Add copyright header.
4713
399501a5
JB
47142012-06-05 Joel Brobecker <brobecker@adacore.com>
4715
4716 * copyright.py (update_files, main): Fix path to update-copyright
4717 script.
4718
3770a159
JB
47192012-06-05 Joel Brobecker <brobecker@adacore.com>
4720
4721 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4722 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4723 for which a reminder to update by hand is printed.
4724
4aad0dfc
DE
47252012-06-04 Doug Evans <dje@google.com>
4726
4727 * buildsym.c (make_blockvector): Add comment.
4728
1f8cf220
PA
47292012-06-04 Pedro Alves <palves@redhat.com>
4730
4731 * arch-utils.c (default_gdb_signal_from_target): Delete.
4732 * arch-utils.h (default_gdb_signal_from_target): Delete.
4733 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4734 gdbarch_gdb_signal_from_target_p.
4735 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4736 predicate).
4737 * gdbarch.h: Regenerate.
4738 * gdbarch.c: Regenerate.
4739
86b49880
PA
47402012-06-04 Pedro Alves <palves@redhat.com>
4741
4742 * gdbarch.sh (gdb_signal_from_target): Mention that the
4743 implementation of the method must be host independent.
4744 * gdbarch.h: Regenerate.
4745
fe78531d
JK
47462012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4749 parameters.
4750 (target_read_memory_bfd): New function.
4751 (symbol_file_add_from_memory): Use it.
4752
d790cf0a
DE
47532012-06-03 Doug Evans <dje@google.com>
4754
78e5175a
DE
4755 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4756 of primary symtab.
4757 (basic_lookup_transparent_type): Ditto.
4758
d790cf0a
DE
4759 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4760 (ALL_PRIMARY_SYMTABS): Use it.
4761 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4762 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4763 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4764 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4765 (basic_lookup_transparent_type): Ditto.
4766
c6e5ee5e
SDJ
47672012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4768
4769 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4770 it to optimize resolution of demangled name.
4771
a68ffae9
JK
47722012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4773
4774 * configure.ac (development): Define new variable.
4775 Call AC_CHECK_LIB for mcheck if $development.
4776 (ERROR_ON_WARNING): Enable it by default only if $development.
4777 * config.in: Regenerate.
4778 * configure: Regenerate.
4779
5299c1c4
JK
47802012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4781
4782 * target.c (target_read_memory): Make LEN argument as size_t.
4783 * target.h (target_read_memory): Likewise.
4784
47852012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4786
4787 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4788
0c56f59b
EBM
47892012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4790
4791 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4792 BookE interface for PowerPC server processors if not available
4793 in the Linux Kernel.
4794
71bdabee
KS
47952012-05-31 Keith Seitz <keiths@redhat.com>
4796
4797 * linespec.c (decode_objc): Add cleanup to free
4798 INFO.FILE_SYMTABS.
4799 (find_linespec_symbols): Add cleanup to free CLASSES.
4800 * symfile.c (find_separate_debug_file_by_debuglink): Add
4801 cleanup to free DEBUGLINK.
4802 * ui-out.c (clear_header_list): No need to check if
4803 HEADER_NEXT.COLHDR is NULL.
4804 Free HEADER_NEXT.COL_NAME.
4805
acbd605d
MGD
48062012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4807
4808 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4809 warning.
4810
65662cde
PA
48112012-05-30 Jeff Kenton <jkenton@tilera.com>
4812
4813 * configure.host (gdb_host_cpu): Handle tilegx*.
4814 (gdb_host): Handle tilegx-*-linux*.
4815 * tilegx-linux-nat.c: New file.
4816 * config/tilegx/linux.mh: New file.
4817
ade64f0e
PA
48182012-05-30 Jeff Kenton <jkenton@tilera.com>
4819
4820 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4821 tilegx-linux-tdep.o.
4822 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4823 tilegx-linux-tdep.c.
4824 * configure.tgt: Handle tilegx-*-linux*.
4825 * tilegx-tdep.h: New file.
4826 * tilegx-tdep.c: New file.
4827 * tilegx-linux-tdep.c: New file.
4828 * regformats/reg-tilegx.dat: New file.
4829
bb08bdbd
EBM
48302012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4831
4832 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4833 accounting of hw watchpoints on ppc.
4834
ebd86fb5
TJB
48352012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4836
4837 * source.c (openp): Expand tilde in path entries.
4838
0a0edcd5
DE
48392012-05-29 Doug Evans <dje@google.com>
4840
98cc87bd
DE
4841 * buildsym.c (block_compar): Fix comment.
4842 (end_symtab): Fix and clarify some comments.
4843
0a0edcd5
DE
4844 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4845 cleanup_undefined_types.
4846 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4847 All callers updated.
4848
6f0c7050
TT
48492012-05-29 Tom Tromey <tromey@redhat.com>
4850
4851 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4852 fails.
4853 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4854 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4855 fails.
4856 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4857 fails.
4858
ec95993c
TG
48592012-05-29 Tristan Gingold <gingold@adacore.com>
4860
4861 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4862 (struct darwin_info): ... New struct.
4863 (solib_darwin_pspace_data): New variable.
4864 (darwin_pspace_data_cleanup): New function.
4865 (get_darwin_info): Likewise.
4866 (darwin_dyld_version_ok, darwin_load_image_infos)
4867 (darwin_solib_get_all_image_info_addr_at_init)
4868 (darwin_solib_read_all_image_info_addr): Add info argument.
4869 Adjust code.
4870 (darwin_current_sos): Use per pspace structure.
4871 (darwin_solib_create_inferior_hook): Likewise.
4872 (darwin_clear_solib): Likewise.
4873 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4874
ae25568b
PA
48752012-05-28 Pedro Alves <palves@redhat.com>
4876
4877 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4878 block that uses them. Clear ecss before handling each event.
4879
0c5bf5a9
JK
48802012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4881
4882 * solib-svr4.c (svr4_current_sos): New comment on
4883 svr4_current_sos_via_xfer_libraries fall back.
4884
bfb05775
JK
48852012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4886
4887 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4888 it as a fallback for TYPE_IS_OPAQUE.
4889 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4890 symbols for lookup_symbol.
4891
685b1105
JK
48922012-05-24 John Steele Scott <toojays@toojays.net>
4893
4894 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4895 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4896 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4897 (check_producer): ... this new function, which also checks for ICC
4898 and caches the result.
4899 (producer_is_icc): New function.
4900 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4901 producer was ICC.
4902
22203bbf
PA
49032012-05-24 Pedro Alves <palves@redhat.com>
4904
4905 PR gdb/7205
4906
4907 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4908 (default_gdb_signal_to_target): ... this. Add comment.
4909 (default_gdb_signal_from_host): Rename to ...
4910 (default_gdb_signal_from_target): ... this. Add comment.
4911 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4912 (default_gdb_signal_to_target): ... this.
4913 (default_gdb_signal_from_host): Rename to ...
4914 (default_gdb_signal_from_target): ... this.
4915 * corelow.c (core_open): Adjust to naming change. Replace comment.
4916 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4917 (gdb_signal_from_target): ... this. Adjust to
4918 default_gdb_signal_from_host naming change. Extend comment.
4919 (gdb_signal_to_host): Rename to ...
4920 (gdb_signal_to_target): ... this. Adjust to
4921 default_gdb_signal_to_host naming change.
4922 * gdbarch.h, gdbarch.c: Renegerate.
4923
a493e3e2
PA
49242012-05-24 Pedro Alves <palves@redhat.com>
4925
4926 PR gdb/7205
4927
f782ad9b 4928 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4929
2ea28649
PA
49302012-05-24 Pedro Alves <palves@redhat.com>
4931
4932 PR gdb/7205
4933
4934 Replace target_signal with gdb_signal throughout.
4935
b09846a9
PA
49362012-05-24 Pedro Alves <palves@redhat.com>
4937
4938 PR tui/14159
4939
4940 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4941 string, instead of reusing the va_list argument.
4942
e77c107e
TT
49432012-05-24 Tom Tromey <tromey@redhat.com>
4944
4945 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4946 Remove.
4947
9fccedf7
DE
49482012-05-23 Doug Evans <dje@google.com>
4949
d50bd42b
DE
4950 * symtab.c (search_symbols): Formatting fixes.
4951 (print_symbol_info): Formatting fixes.
4952
9fccedf7
DE
4953 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4954 int64_t change to leb128 API.
4955 (read_encoded_value, decode_frame_entry_1): Ditto.
4956 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4957 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4958 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4959 (execute_stack_op): Ditto.
4960 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4961 (safe_read_uleb128, safe_read_sleb128): Ditto.
4962 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4963 (dwarf2_compile_expr_to_ax): Ditto.
4964 (locexpr_describe_location_piece): Ditto.
4965 (disassemble_dwarf_expression): Ditto.
4966 (locexpr_describe_location_1): Ditto.
4967
f3e0e960
SS
49682012-05-23 Stan Shebs <stan@codesourcery.com>
4969 Kwok Cheung Yeung <kcy@codesourcery.com>
4970
4971 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4972 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4973 (mi-cmd-info.o): New rule.
4974 * osdata.h (info_osdata_command): New declaration.
4975 * osdata.c (info_osdata_command): Change to non-static.
4976 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4977 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4978 * mi/mi-cmd-info.c: New file.
4979
c51fe631
DE
49802012-05-23 Doug Evans <dje@google.com>
4981
71cddcc1
DE
4982 * symtab.c (search_symbols): Pass NULL for file_matcher to
4983 expand_symtabs_matching if there are no files to match.
4984
c51fe631
DE
4985 * gdbtypes.c (lookup_typename): Simplify.
4986
a79378d4
PA
49872012-05-23 Pedro Alves <palves@redhat.com>
4988
4989 * arch-utils.h (default_target_signal_to_host): Delete.
4990 * arch-utils.c (default_target_signal_to_host): Delete.
4991 * gdbarch.sh (target_signal_to_host): Remove.
4992 * gdbarch.h, gdbarch.c: Regenerate.
4993
f664829e
DE
49942012-05-22 Doug Evans <dje@google.com>
4995
4996 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4997 "const gdb_byte *".
4998 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4999 (execute_cfa_program): Update to match API of leb128 functions.
5000 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5001 "const gdb_byte *".
5002 (read_unsigned_leb128, read_signed_leb128): Delete.
5003 (read_initial_length): Change type of buf argument to
5004 "const gdb_byte *".
5005 (read_encoded_value): Update to match API of leb128 functions.
5006 (decode_frame_entry): Change result to "const gdb_byte *", and
5007 similarly for "start" parameter.
5008 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5009 (dwarf2_build_frame_info): Change local frame_ptr to
5010 "const gdb_byte *".
5011 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5012 read_uleb128, read_sleb128. All callers updated.
5013 (safe_skip_leb128): New function.
5014 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5015 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5016 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5017 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5018 read_uleb128, read_sleb128.
5019 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5020 (execute_stack_op): Update to match API of leb128 functions.
5021 * dwarf2expr.h: #include "leb128.h".
5022 (read_uleb128, read_sleb128): Delete.
5023 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5024 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5025 * dwarf2loc.c (debug_loc_kind): New enum.
5026 (decode_debug_loc_addresses): New function.
5027 (decode_debug_loc_dwo_addresses): New function.
5028 (dwarf2_find_location_expression): Rewrite.
5029 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5030 (locexpr_describe_location_piece): Ditto.
5031 (disassemble_dwarf_expression): Ditto.
5032 (locexpr_describe_location_1): Ditto.
5033 (loclist_describe_location): Rewrite.
5034 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5035 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5036 (dwarf2_section_buffer_overflow_complaint): Renamed from
5037 dwarf2_macros_too_long_complaint. All callers updated.
5038 (skip_leb128): Delete.
5039 (init_cu_die_reader): Initialize reader->buffer_end.
5040 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5041 (skip_form_bytes): New arg buffer_end. All callers updated.
5042 Replace call to skip_leb128 with gdb_skip_leb128.
5043 (skip_unknown_opcode): New arg mac_end. All callers updated.
5044 (fill_in_loclist_baton): Initialize baton->from_dwo.
5045
837a1b32
MR
50462012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5047
5048 * mips-linux-nat.c (mips_linux_read_description): Use a more
5049 verbose error message.
5050
d0e64392
MR
50512012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5052
5053 * NEWS: Add MIPS/Linux DSP support.
5054 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5055 (SIGCONTEXT_DSPCTL): New macro.
5056 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5057 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5058 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5059 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5060 (N64_SIGCONTEXT_HI3): Likewise.
5061 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5062 (N64_SIGCONTEXT_LO3): Likewise.
5063 (N64_SIGCONTEXT_DSPCTL): Likewise.
5064 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5065 (mips_linux_o32_sigframe_init): Handle DSP registers.
5066 (mips_linux_n32n64_sigframe_init): Likewise.
5067
8bea7ed1
PM
50682012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5069
5070 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5071 call to abort.
5072
dab06dbe
PA
50732012-05-22 Pedro Alves <palves@redhat.com>
5074
5075 * target.h (store_waitstatus): Move declaration ...
5076 * inf-child.h (store_waitstatus): ... here.
5077 * target.c: Move inclusion of gdb_wait.h, and ...
5078 (store_waitstatus): ... this ...
5079 * inf-child.c: ... here.
5080 * linux-nat.c: Include inf-child.h.
5081 * rs6000-nat.c: Include inf-child.h.
5082 * spu-linux-nat.c: Include inf-child.h.
5083
43011e52
PM
50842012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5085
5086 * tracepoint.c (start_tracing): Add missing i18n markup.
5087 (stop_tracing, set_trace_user): Ditto.
5088 (set_trace_notes, set_trace_stop_notes): Ditto.
5089
b1af9e97
TT
50902012-05-21 Tom Tromey <tromey@redhat.com>
5091
5092 PR c++/7173:
5093 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5094 types.
5095 * value.h (value_cast_pointers): Update.
5096 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5097 (value_cast): Update.
5098 (update_search_result): New function.
5099 (do_search_struct_field): New, from search_struct_field. Check
5100 for ambiguous results.
5101 (search_struct_field): Rewrite.
5102 * infcall.c (value_arg_coerce): Update.
5103 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5104 value_cast_pointers.
5105 * ada-lang.c (ada_convert_actual): Update.
5106
e9e5e6b3
TT
51072012-05-21 Tom Tromey <tromey@redhat.com>
5108
5109 * macroexp.c (macro_stringify): Terminate the string.
5110
1564a261
JK
51112012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5112
5113 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5114 Describe it.
5115 * auto-load.c (auto_load_expand_dir_vars): New function.
5116 (auto_load_safe_path_vec_update): Use it, remove the
5117 substitute_path_component call thanks to it.
5118 (auto_load_objfile_script): Remove the debug_file_directory processing.
5119 Use auto_load_expand_dir_vars, remove the substitute_path_component
5120 call thanks to it.
5121 * configure: Regenerate.
5122 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5123 path. Escape $ also for $debugdir.
5124 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5125 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5126
a3ec0bb1
DE
51272012-05-20 Doug Evans <dje@google.com>
5128
5129 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5130 before use. Check for symtab->includes == NULL before scanning it.
5131
d467df4e
MR
51322012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5133
5134 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5135
4cc0665f
MR
51362012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5137
5138 * NEWS: Add microMIPS support and "set mips compression",
5139 "show mips compression" commands.
5140 * mips-tdep.h (mips_isa): New enum.
5141 (gdbarch_tdep): Add mips_isa.
5142 (mips_pc_is_mips16): Update prototype.
5143 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5144 * mips-tdep.c (mips_compression_mips16): New variable.
5145 (mips_compression_micromips): Likewise.
5146 (mips_compression_strings): Likewise.
5147 (mips_compression_string): Likewise.
5148 (is_mips16_isa, is_micromips_isa): New functions.
5149 (is_mips16_addr): Rename to...
5150 (is_compact_addr): ... this.
5151 (unmake_mips16_addr): Likewise to...
5152 (unmake_compact_addr): ... this.
5153 (make_mips16_addr): Likewise to...
5154 (make_compact_addr): ... this.
5155 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5156 functions.
5157 (mips_elf_make_msymbol_special): Handle microMIPS code.
5158 (msymbol_is_special): Rename to...
5159 (msymbol_is_mips16): ... this.
5160 (mips_make_symbol_special, mips_pc_is_mips16): Update
5161 accordingly.
5162 (msymbol_is_mips, msymbol_is_micromips): New functions.
5163 (mips16_to_32_reg): Rename to...
5164 (mips_reg3_to_reg): ... this.
5165 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5166 (mips_pc_isa): Likewise.
5167 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5168 code.
5169 (mips_fetch_instruction): Pass return status instead of printing
5170 an error message if requested. Handle microMIPS code. Bail out
5171 on an invalid ISA.
5172 (micromips_op): New macro.
5173 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5174 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5175 (b6s4_op, b7s3_reg): Likewise.
5176 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5177 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5178 (mips_insn_size): New function.
5179 (mips32_next_pc): Update mips_fetch_instruction call.
5180 (micromips_relative_offset7): New function.
5181 (micromips_relative_offset10): Likewise.
5182 (micromips_relative_offset16): Likewise.
5183 (micromips_pc_insn_size): Likewise.
5184 (micromips_bc1_pc): Likewise.
5185 (micromips_next_pc): Likewise.
5186 (unpack_mips16): Update mips_fetch_instruction call.
5187 (extended_mips16_next_pc): Update according to change to
5188 mips16_to_32_reg.
5189 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5190 code.
5191 (mips16_scan_prologue): Update mips_fetch_instruction call.
5192 Update according to change to mips16_to_32_reg.
5193 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5194 (mips_insn16_frame_base_sniffer): Likewise.
5195 (micromips_decode_imm9): New function.
5196 (micromips_scan_prologue): Likewise.
5197 (mips_micro_frame_cache): Likewise.
5198 (mips_micro_frame_this_id): Likewise.
5199 (mips_micro_frame_prev_register): Likewise.
5200 (mips_micro_frame_sniffer): Likewise.
5201 (mips_micro_frame_unwind): New variable.
5202 (mips_micro_frame_base_address): New function.
5203 (mips_micro_frame_base): New variable.
5204 (mips_micro_frame_base_sniffer): New function.
5205 (mips32_scan_prologue): Update mips_fetch_instruction call.
5206 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5207 rather than for MIPS16.
5208 (mips_insn32_frame_base_sniffer): Likewise.
5209 (mips_addr_bits_remove): Handle microMIPS code.
5210 (deal_with_atomic_sequence): Rename to...
5211 (mips_deal_with_atomic_sequence): ... this. Update the type
5212 of the variable used to hold an instruction. Remove the ISA bit
5213 check. Update mips_fetch_instruction call.
5214 (micromips_deal_with_atomic_sequence): New function.
5215 (deal_with_atomic_sequence): Likewise.
5216 (mips_about_to_return): Handle microMIPS code. Update
5217 mips_fetch_instruction call.
5218 (heuristic_proc_start): Check for the standard MIPS ISA rather
5219 than for MIPS16. Update mips_pc_is_mips16 and
5220 mips_fetch_instruction calls. Handle microMIPS code.
5221 (mips_push_dummy_code): Handle microMIPS code.
5222 (mips_eabi_push_dummy_call): Likewise.
5223 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5224 (mips_o64_push_dummy_call): Handle microMIPS code.
5225 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5226 (is_delayed): Remove function.
5227 (mips_single_step_through_delay): Replace the call to is_delayed
5228 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5229 Handle microMIPS code.
5230 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5231 microMIPS code.
5232 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5233 call.
5234 (micromips_in_function_epilogue_p): New function.
5235 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5236 call.
5237 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5238 Handle microMIPS.
5239 (gdb_print_insn_mips): Likewise.
5240 (mips_breakpoint_from_pc): Likewise.
5241 (mips_remote_breakpoint_from_pc): New function.
5242 (mips32_instruction_has_delay_slot): Simplify making use of the
5243 updated mips_fetch_instruction interface.
5244 (micromips_instruction_has_delay_slot): New function.
5245 (mips16_instruction_has_delay_slot): Simplify making use of the
5246 updated mips_fetch_instruction interface.
5247 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5248 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5249 calls. Handle microMIPS code.
5250 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5251 (mips_skip_trampoline_code): Handle microMIPS code.
5252 (global_mips_compression): New function.
5253 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5254 file flags. Register the microMIPS remote breakpoint handler
5255 and heuristic frame unwinder.
5256 (show_mips_compression): New function.
5257 (_initialize_mips_tdep): Add the "set mips compression" and
5258 "show mips compression" commands.
5259
22e048c9
SDJ
52602012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 * ada-lang.c:
5263 * ada-tasks.c:
5264 * ada-varobj.c:
5265 * amd64-darwin-tdep.c:
5266 * arm-symbian-tdep.c:
5267 * arm-tdep.c:
5268 * avr-tdep.c:
5269 * ax-gdb.c:
5270 * bfin-linux-tdep.c:
5271 * breakpoint.c:
5272 * c-valprint.c:
5273 * cli/cli-cmds.c:
5274 * coffread.c:
5275 * cp-support.c:
5276 * cris-tdep.c:
5277 * dwarf2-frame-tailcall.c:
5278 * dwarf2-frame.c:
5279 * dwarf2expr.c:
5280 * dwarf2loc.c:
5281 * dwarf2read.c:
5282 * elfread.c:
5283 * eval.c:
5284 * expprint.c:
5285 * f-valprint.c:
5286 * frv-tdep.c:
5287 * h8300-tdep.c:
5288 * hppa-hpux-tdep.c:
5289 * hppa-tdep.c:
5290 * hppanbsd-tdep.c:
5291 * i386-nto-tdep.c:
5292 * i386-tdep.c:
5293 * i387-tdep.c:
5294 * ia64-tdep.c:
5295 * jit.c:
5296 * linespec.c:
5297 * linux-tdep.c:
5298 * lm32-tdep.c:
5299 * m2-valprint.c:
5300 * m32c-tdep.c:
5301 * m32r-rom.c:
5302 * m32r-tdep.c:
5303 * m68k-tdep.c:
5304 * m68klinux-tdep.c:
5305 * mi/mi-main.c:
5306 * microblaze-tdep.c:
5307 * mips-linux-tdep.c:
5308 * mips-tdep.c:
5309 * mn10300-tdep.c:
5310 * p-valprint.c:
5311 * parse.c:
5312 * ppc-linux-tdep.c:
5313 * ppc-sysv-tdep.c:
5314 * printcmd.c:
5315 * python/py-finishbreakpoint.c:
5316 * python/py-inferior.c:
5317 * python/py-infthread.c:
5318 * python/py-type.c:
5319 * python/python.c:
5320 * remote-fileio.c:
5321 * remote-m32r-sdi.c:
5322 * remote-mips.c:
5323 * reverse.c:
5324 * rl78-tdep.c:
5325 * rs6000-aix-tdep.c:
5326 * rs6000-tdep.c:
5327 * s390-tdep.c:
5328 * score-tdep.c:
5329 * sh64-tdep.c:
5330 * skip.c:
5331 * solib-darwin.c:
5332 * solib-dsbt.c:
5333 * solib-frv.c:
5334 * sparc-tdep.c:
5335 * spu-multiarch.c:
5336 * spu-tdep.c:
5337 * stack.c:
5338 * symfile.c:
5339 * symtab.c:
5340 * tic6x-tdep.c:
5341 * tracepoint.c:
5342 * v850-tdep.c:
5343 * valarith.c:
5344 * valprint.c:
5345 * value.c:
5346 * xcoffread.c:
5347 * xtensa-tdep.c:
5348 * ada-lang.c:
5349 * ada-tasks.c:
5350 * ada-varobj.c:
5351 * amd64-darwin-tdep.c:
5352 * arm-symbian-tdep.c:
5353 * arm-tdep.c: Delete unused variables.
5354
aff139ff
JK
53552012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5356
5357 Rename $ddir to $datadir.
5358 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5359 * auto-load.c (auto_load_safe_path_vec_update)
5360 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5361 * configure: Regenerate.
5362 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5363 Likewise. Remove the 'use $ddir' help string.
5364
f7bfa992
JK
53652012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5366
5367 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5368 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5369
9cb709b6
TT
53702012-05-18 Tom Tromey <tromey@redhat.com>
5371
5372 PR exp/13907:
5373 * valprint.h (struct value_print_options) <symbol_print>: New
5374 field.
5375 * valprint.c (user_print_options): Add default for symbol_print.
5376 (show_symbol_print): New function.
5377 (generic_val_print): Respect symbol_print.
5378 (_initialize_valprint): Add "print symbol" setting.
5379 * f-valprint.c (f_val_print): Respect symbol_print.
5380 * c-valprint.c (c_val_print): Respect symbol_print.
5381 * NEWS: Update.
5382 * printcmd.c (print_address_symbolic): Return int. Ignore some
5383 zero-size symbols.
5384 (print_address_demangle): Return int.
5385 * defs.h: (print_address_symbolic): Return int.
5386 * value.h (print_address_demangle): Return int.
5387
b012acdd
TT
53882012-05-18 Tom Tromey <tromey@redhat.com>
5389
5390 * valprint.c (val_print_string): Don't print leading space.
5391 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5392 print space before string or vtbl.
5393 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5394 before string.
5395 * jv-valprint.c (java_value_print): Print space before string.
5396 * go-valprint.c (print_go_string): Print space before string.
5397 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5398 space before string.
5399 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5400 space before string or vtbl.
5401 * auxv.c (fprint_target_auxv): Print space after address.
5402
1d51a733
TT
54032012-05-18 Tom Tromey <tromey@redhat.com>
5404
5405 * printcmd.c (print_address_demangle): Remove special case for 0.
5406
edf0c1b7
TT
54072012-05-18 Tom Tromey <tromey@redhat.com>
5408
5409 * printcmd.c (print_address_demangle): Add 'opts' argument.
5410 * p-valprint.c (pascal_val_print): Update.
5411 * jv-valprint.c (java_val_print): Update.
5412 * value.h: Update.
5413 * valprint.c (generic_val_print): Update.
5414 (print_function_pointer_address): Add 'options' argument. Remove
5415 'addressprint' argument. Update.
5416 * m2-valprint.c (print_unpacked_pointer): Update.
5417 * gnu-v3-abi.c (print_one_vtable): Update.
5418 (gnuv3_print_method_ptr): Update.
5419 * f-valprint.c (f_val_print): Update.
5420 * cp-valprint.c (cp_print_value_fields): Update.
5421 * valprint.h (print_function_pointer_address): Update.
5422 * c-valprint.c (c_val_print): Update.
5423
9703b513
TT
54242012-05-18 Tom Tromey <tromey@redhat.com>
5425
5426 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5427 directly corresponding to the found psymtab.
5428 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5429 (dw2_find_pc_sect_symtab): Use it.
5430 * block.h (blockvector_contains_pc): Declare.
5431 * block.c (find_block_in_blockvector): New function.
5432 (blockvector_for_pc_sect): Use it.
5433 (blockvector_contains_pc): New function.
5434
5a439849
MR
54352012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5436
5437 * mips-tdep.h (mips_write_pc): New prototype.
5438 * mips-tdep.c (mips_write_pc): Make external, add description.
5439 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5440 add description.
5441
8376de04
MR
54422012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5443
5444 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5445 mips_regnum->pc.
5446 (mips_unwind_pc, mips_write_pc): Likewise.
5447 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5448 gdbarch_read_pc.
5449
d3581e61
JB
54502012-05-17 Joel Brobecker <brobecker@adacore.com>
5451
5452 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5453 proc_warn, proc_error, proc_get_status, proc_flags,
5454 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5455 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5456 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5457 proc_stop_process, proc_wait_for_stop, proc_run_process,
5458 proc_set_traced_signals, proc_set_traced_faults,
5459 proc_set_traced_sysentry, proc_set_traced_sysexit,
5460 proc_set_held_signals, proc_get_held_signals,
5461 proc_get_traced_signals, proc_get_traced_faults,
5462 proc_get_traced_sysentry, proc_get_traced_sysexit,
5463 proc_clear_current_fault, proc_set_current_signal,
5464 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5465 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5466 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5467 proc_get_current_thread, proc_get_current_thread,
5468 proc_get_current_thread, proc_update_threads,
5469 proc_update_threads, proc_update_threads, proc_update_threads,
5470 proc_iterate_over_threads, procfs_find_new_threads,
5471 procfs_pid_to_str): Make static. Remove advance declaration.
5472 (proc_cursig): Make static. Conditionalized defintion on
5473 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5474 (proc_syscall, proc_set_kill_on_last_close,
5475 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5476 proc_get_pending_signals, proc_get_signal_actions,
5477 proc_trace_signal, proc_ignore_signal): Delete.
5478
81b9b86e
SDJ
54792012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5480
5481 * coffread.c (cs_section_address): Passing proper argument for
5482 `bfd_get_section_vma'.
5483 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5484 `bfd_get_section_flags'.
5485 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5486 `bfd_get_section_vma'.
5487
abc9d0dc
TT
54882012-05-16 Tom Tromey <tromey@redhat.com>
5489
5490 PR macros/13205:
5491 * macrotab.h: (macro_define_special): Declare.
5492 (enum macro_special_kind): New.
5493 (struct macro_definition) <argc, replacement>: Update comments.
5494 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5495 (macro_define_object_internal): New function.
5496 (macro_define_object): Use it.
5497 (macro_define_special): New function.
5498 (fixup_definition): New function.
5499 (macro_lookup_definition, foreach_macro_in_scope)
5500 (foreach_macro): Use fixup_definition.
5501 * macroexp.h (macro_stringify): Declare.
5502 * macroexp.c (free_buffer_return_text): New function.
5503 (stringify): Constify "arg".
5504 (macro_stringify): New function.
5505 * dwarf2read.c (macro_start_file): Call macro_define_special.
5506
6a3a010b 55072012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5508 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5509
5510 * breakpoint.h (bp_location): Add related_address member.
5511 * inferior.h (get_return_value): Take a pointer to struct value
5512 instead of struct type for the function requested.
5513 * value.h (using_struct_return): Likewise.
5514 * gdbarch.sh (return_value): Take a pointer to struct value
5515 instead of struct type for the function requested.
5516 * breakpoint.c (set_breakpoint_location_function): Initialize
5517 related_address for bp_gnu_ifunc_resolver breakpoints.
5518 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5519 requested function's address to gdbarch_return_value.
5520 * eval.c (evaluate_subexp_standard): Pass the requested
5521 function's address to using_struct_return.
5522 * infcall.c (call_function_by_hand): Pass the requested
5523 function's address to using_struct_return and
5524 gdbarch_return_value.
5525 * infcmd.c (get_return_value): Take a pointer to struct value
5526 instead of struct type for the function requested.
5527 (print_return_value): Update accordingly.
5528 (finish_command_continuation): Likewise.
5529 * stack.c (return_command): Pass the requested function's
5530 address to using_struct_return and gdbarch_return_value.
5531 * value.c (using_struct_return): Take a pointer to struct value
5532 instead of struct type for the function requested. Pass the
5533 requested function's address to gdbarch_return_value.
5534 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5535 New function_value member, replacing function_type.
5536 (bpfinishpy_dealloc): Update accordingly.
5537 (bpfinishpy_pre_stop_hook): Likewise.
5538 (bpfinishpy_init): Likewise. Record the requested function's
5539 address.
5540 * mips-tdep.c (mips_fval_reg): New enum.
5541 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5542 words put in GP registers.
5543 (mips_o64_push_dummy_call): Update a comment.
5544 (mips_o32_return_value): Take a pointer to struct value instead
5545 of struct type for the function requested and use it to check if
5546 using the MIPS16 calling convention. Return the designated
5547 general purpose registers for floating-point values returned in
5548 MIPS16 mode.
5549 (mips_o64_return_value): Likewise.
5550 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5551 (ppc_sysv_abi_broken_return_value): Likewise.
5552 (ppc64_sysv_abi_return_value): Likewise.
5553 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5554 value instead of struct type for the function requested.
5555 * amd64-tdep.c (amd64_return_value): Likewise.
5556 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5557 * arm-tdep.c (arm_return_value): Likewise.
5558 * avr-tdep.c (avr_return_value): Likewise.
5559 * bfin-tdep.c (bfin_return_value): Likewise.
5560 * cris-tdep.c (cris_return_value): Likewise.
5561 * frv-tdep.c (frv_return_value): Likewise.
5562 * h8300-tdep.c (h8300_return_value): Likewise.
5563 (h8300h_return_value): Likewise.
5564 * hppa-tdep.c (hppa32_return_value): Likewise.
5565 (hppa64_return_value): Likewise.
5566 * i386-tdep.c (i386_return_value): Likewise.
5567 * ia64-tdep.c (ia64_return_value): Likewise.
5568 * iq2000-tdep.c (iq2000_return_value): Likewise.
5569 * lm32-tdep.c (lm32_return_value): Likewise.
5570 * m32c-tdep.c (m32c_return_value): Likewise.
5571 * m32r-tdep.c (m32r_return_value): Likewise.
5572 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5573 * m68k-tdep.c (m68k_return_value): Likewise.
5574 (m68k_svr4_return_value): Likewise.
5575 * m88k-tdep.c (m88k_return_value): Likewise.
5576 * mep-tdep.c (mep_return_value): Likewise.
5577 * microblaze-tdep.c (microblaze_return_value): Likewise.
5578 * mn10300-tdep.c (mn10300_return_value): Likewise.
5579 * moxie-tdep.c (moxie_return_value): Likewise.
5580 * mt-tdep.c (mt_return_value): Likewise.
5581 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5582 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5583 (ppc_sysv_abi_broken_return_value): Likewise.
5584 (ppc64_sysv_abi_return_value): Likewise.
5585 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5586 * rl78-tdep.c (rl78_return_value): Likewise.
5587 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5588 * rx-tdep.c (rx_return_value): Likewise.
5589 * s390-tdep.c (s390_return_value): Likewise.
5590 * score-tdep.c (score_return_value): Likewise.
5591 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5592 (sh_return_value_fpu): Likewise.
5593 * sh64-tdep.c (sh64_return_value): Likewise.
5594 * sparc-tdep.c (sparc32_return_value): Likewise.
5595 * sparc64-tdep.c (sparc64_return_value): Likewise.
5596 * spu-tdep.c (spu_return_value): Likewise.
5597 * tic6x-tdep.c (tic6x_return_value): Likewise.
5598 * v850-tdep.c (v850_return_value): Likewise.
5599 * vax-tdep.c (vax_return_value): Likewise.
5600 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5601 * xtensa-tdep.c (xtensa_return_value): Likewise.
5602 * gdbarch.c: Regenerate.
5603 * gdbarch.h: Regenerate.
5604
29ca12b3
TT
56052012-05-15 Tom Tromey <tromey@redhat.com>
5606
5607 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5608
588ae58c
JB
56092012-05-15 Joel Brobecker <brobecker@adacore.com>
5610
5611 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5612 of command in two error message.
5613
855a6e68
JB
56142012-05-15 Joel Brobecker <brobecker@adacore.com>
5615
5616 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5617
d634f2de
JB
56182012-05-15 Joel Brobecker <brobecker@adacore.com>
5619
5620 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5621
9cc815f5
JK
56222012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5623
5624 * NEWS (show auto-load scripts-directory): Add forgotten command.
5625
6a609e58
JK
56262012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5627
5628 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5629 parameters.
5630
ac1438b5
L
56312012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5632
5633 * amd64-tdep.c: Include features/i386/x32.c and
5634 features/i386/x32-avx.c.
5635 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5636 initialize_tdesc_x32_avx.
5637
e7e0cddf
SS
56382012-05-14 Stan Shebs <stan@codesourcery.com>
5639
5640 Add dynamic printf.
5641 * breakpoint.h (enum bptype): New type bp_dprintf.
5642 (struct breakpoint): New field extra_string.
5643 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5644 (create_breakpoint): Add extra_string arg.
5645 * breakpoint.c (dprintf_breakpoint_ops): New.
5646 (is_breakpoint): Add bp_dprintf.
5647 (bpstat_what): Add dprintf case.
5648 (bptype_string): Ditto.
5649 (print_one_breakpoint_location): Ditto.
5650 (init_bp_location): Ditto.
5651 (bkpt_print_mention): Ditto.
5652 (dprintf_style_enums): New array.
5653 (dprintf_style): New global.
5654 (dprintf_function): New global.
5655 (dprintf_channel): New global.
5656 (update_dprintf_command_list): New function.
5657 (update_dprintf_commands): New function.
5658 (init_breakpoint_sal): Add extra_string argument, handle it.
5659 (create_breakpoint_sal): Add extra_string argument.
5660 (create_breakpoints_sal): Add extra_string argument, update callers.
5661 (find_condition_and_thread): Add extra argument.
5662 (create_breakpoint): Add extra_string argument, record it.
5663 (dprintf_command): New function.
5664 (break_command_1): Add arg to create_breakpoint call.
5665 (handle_gnu_v3_exceptions): Ditto.
5666 (trace_command): Ditto.
5667 (ftrace_command): Ditto.
5668 (strace_command): Ditto.
5669 (bkpt_print_mention): Add dprintf case.
5670 (create_breakpoint_sal_default): Add extra_string argument.
5671 (_initialize_breakpoint): Add new commands.
5672 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5673 * python/py-breakpoint.c (bppy_init): Ditto.
5674 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5675
8ae38c14
MR
56762012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5677
5678 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5679
9f676e66
SCR
56802012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5681
5682 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5683 unsigned long long.
5684
7efc75aa
SCR
56852012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5686
5687 Add a new function gdb.find_pc_line to the Python API.
5688 * NEWS (Python Scripting): Add entry about the new function.
5689 * python/python.c (gdbpy_find_pc_line): New function which
5690 implements gdb.find_pc_line.
5691 (GdbMethods): Add entry for the new function.
5692
70af3797
PA
56932012-05-12 Pedro Alves <palves@redhat.com>
5694
5695 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5696 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5697
06da564e
EZ
56982012-05-12 Eli Zaretskii <eliz@gnu.org>
5699
5700 * inferior.c: Include completer.h
5701 (initialize_inferiors): Set completer of add-inferior to
5702 filename_completer.
5703
0288cee2
L
57042012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5705
5706 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5707 gdbarch_ptr_bit for x32 core dump.
5708
f6537a2c
L
57092012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5710
5711 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5712 and features/i386/x32-avx-linux.c.
5713
85d4a676
SS
57142012-05-11 Stan Shebs <stan@codesourcery.com>
5715 Kwok Cheung Yeung <kcy@codesourcery.com>
5716
5717 * NEWS: Describe new info os commands.
5718 * common/linux-osdata.c (PID_T, TIME_T): Define.
5719 (MAX_PID_T_STRLEN): New.
5720 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5721 MAX_PID_T_STRLEN.
5722 (command_from_pid): Add comment. Change to use PID_T.
5723 (commandline_from_pid): Change to use PID_T.
5724 (user_from_pid): Add comment.
5725 (get_process_owner): Add comment. Change to use PID_T and
5726 MAX_PID_T_STRLEN.
5727 (get_number_of_cpu_cores): Add comment.
5728 (get_cores_used_by_process): Add comment. Change to use PID_T and
5729 MAX_PID_T_STRLEN.
5730 (linux_xfer_osdata_processes): Change to use PID_T and
5731 MAX_PID_T_STRLEN.
5732 (compare_processes): New function.
5733 (linux_xfer_osdata_processgroups): New function.
5734 (linux_xfer_osdata_threads): Change to use PID_T.
5735 (linux_xfer_osdata_fds): New function.
5736 (format_socket_state, print_sockets): New functions.
5737 (union socket_addr): New union.
5738 (linux_xfer_osdata_isockets): New function.
5739 (time_from_time_t, group_from_gid): New functions.
5740 (linux_xfer_osdata_shm): New function.
5741 (linux_xfer_osdata_sem): New function.
5742 (linux_xfer_osdata_msg): New function.
5743 (linux_xfer_osdata_modules): New function.
5744 (osdata_table): Add new entries.
5745 * common/buffer.c (buffer_xml_printf): Add support for long and
5746 long long format specifiers.
5747
f24afd6d
L
57482012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5749
5750 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5751 (tdesc_x32_avx_linux): Likewise.
5752
7349ff92
JK
57532012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5754
5755 Implement multi-component --with-auto-load-dir.
5756 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5757 entries.
5758 (--with-auto-load-safe-path): Update the default value description.
5759 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5760 New.
5761 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5762 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5763 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5764 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5765 "set auto-load scripts-directory".
5766 * config.in: Regenerate.
5767 * configure: Regenerate.
5768 * configure.ac (--with-auto-load-dir): New configure option.
5769 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5770
6dea1fbd
JK
57712012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5772
5773 Provide $ddir substitution for --with-auto-load-safe-path.
5774 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5775 entries.
5776 * auto-load.c: Include observer.h.
5777 (auto_load_safe_path_vec_update): Call substitute_path_component for
5778 each component. New variable ddir_subst.
5779 (auto_load_gdb_datadir_changed): New function.
5780 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5781 AUTO_LOAD_SAFE_PATH. New comment.
5782 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5783 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5784 * config.in: Regenerate.
5785 * configure: Regenerate.
5786 * configure.ac (--auto-load-safe-path): Rename
5787 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5788 GDB_DATADIR/auto-load.
5789 * defs.h (substitute_path_component): New declaration.
5790 * top.c: Include observer.h.
5791 (set_gdb_datadir): New function.
5792 (init_main): Install it for "set data-directory".
5793 * utils.c (substitute_path_component): New function.
5794
b09aca3a
JK
57952012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5798 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5799 DEBUG_FILE_DIRECTORY. Handle multiple components of
5800 DEBUG_FILE_DIRECTORY.
5801
95554aad
TT
58022012-05-10 Tom Tromey <tromey@redhat.com>
5803
5804 * dwarf2read.c (recursively_write_psymbols): New function.
5805 (write_psymtabs_to_index): Use it.
5806
5807 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5808 field.
5809 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5810 (load_partial_comp_unit): Update.
5811 (queue_comp_unit): Add argument 'pretend_language'.
5812 (process_queue): Update.
5813 (psymtab_to_symtab_1): Skip dependencies that have a user.
5814 (load_partial_comp_unit_reader): Give meaning to the 'data'
5815 argument.
5816 (load_full_comp_unit): Add 'pretend_language' argument.
5817 (process_full_comp_unit): Add 'pretend_language' argument. Set
5818 language on CU.
5819 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5820 Update.
5821 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5822 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5823 Update.
5824 (prepare_one_comp_unit): Add 'pretend_language' argument.
5825
5826 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5827 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5828 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5829 (dw2_do_instantiate_symtab): Check whether symtab was read in
5830 before queueing.
5831 (dw2_instantiate_symtab): Add assertion. Call
5832 process_cu_includes.
5833 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5834 (partial_symtab_p): New typedef.
5835 (set_partial_user): New function.
5836 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5837 (scan_partial_symbols): Add imported CU to imported_symtabs.
5838 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5839 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5840 (get_symtab, recursively_compute_inclusions)
5841 (compute_symtab_includes, process_cu_includes)
5842 (process_imported_unit_die): New functions.
5843 (process_die) <DW_TAG_imported_unit>: New case.
5844 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5845
5846 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5847 comment.
5848 (struct partial_die_info) <locdesc>: Remove.
5849 <d>: New field.
5850 (process_psymtab_comp_unit): Add 'read_partial' argument.
5851 Update.
5852 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5853 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5854 (add_partial_symbol): Update.
5855 (process_die): Handle DW_TAG_partial_unit.
5856 (read_file_scope): Update comment.
5857 (load_partial_dies): Handle DW_TAG_imported_unit.
5858 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5859 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5860
e871fbb9
TT
58612012-05-10 Tom Tromey <tromey@redhat.com>
5862
5863 * cc-with-dwz.sh: New file.
5864
b5b04b5b
TT
58652012-05-10 Tom Tromey <tromey@redhat.com>
5866
5867 * symtab.h (struct symtab) <includes, user>: New fields.
5868 * block.h (struct block_iterator) <d, idx, which>: New fields.
5869 * block.c (initialize_block_iterator, find_iterator_symtab)
5870 (block_iterator_step, block_iter_name_step)
5871 (block_iter_match_step): New functions.
5872 (block_iterator_first, block_iterator_next)
5873 (block_iter_name_first, block_iter_name_next)
5874 (block_iter_match_first, block_iter_match_next): Rewrite.
5875 (get_block_symtab): New function.
5876
84a146c9
TT
58772012-05-10 Tom Tromey <tromey@redhat.com>
5878
5879 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5880 set_block_symtab.
5881 * jit.c (finalize_symtab): Use allocate_global_block,
5882 set_block_symtab.
5883 * buildsym.c (finish_block_internal): New function, from old
5884 finish_block.
5885 (finish_block): Rewrite.
5886 (end_symtab): Use finish_block_internal, set_block_symtab.
5887 * block.h (struct global_block): New.
5888 (allocate_global_block, set_block_symtab): Declare.
5889 * block.c (allocate_global_block, set_block_symtab): New
5890 functions.
5891
9439a077
TT
58922012-05-10 Tom Tromey <tromey@redhat.com>
5893
5894 * psymtab.c (partial_map_expand_apply): Add assertion.
5895 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5896 (psymtab_to_symtab): Find unshared psymtab.
5897 (dump_psymtab): Print including psymtabs.
5898 (recursively_search_psymtabs): New function.
5899 (expand_symtabs_matching_via_partial): Use it.
5900 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5901 fields.
5902 (enum psymtab_search_status): New.
5903
8157b174
TT
59042012-05-10 Tom Tromey <tromey@redhat.com>
5905
5906 * tracepoint.c (scope_info): Update.
5907 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5908 (find_pc_sect_symtab, search_symbols)
5909 (default_make_symbol_completion_list_break_on)
5910 (make_file_symbol_completion_list): Update.
5911 * symmisc.c (dump_symtab_1): Update.
5912 * stack.c (print_frame_args, iterate_over_block_locals)
5913 (print_frame_labels, iterate_over_block_arg_vars): Update.
5914 * python/py-block.c (block_object) <dict>: Remove.
5915 <block>: New field.
5916 <iter>: Change type.
5917 (blpy_iter): Update.
5918 (blpy_block_syms_iternext): Update.
5919 * psymtab.c (map_block): Use block iterators.
5920 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5921 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5922 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5923 * infrun.c (check_exception_resume): Update.
5924 * cp-support.c (make_symbol_overload_list_block): Update.
5925 * coffread.c (patch_opaque_types): Update.
5926 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5927 * block.h (struct block_iterator): New.
5928 (block_iterator_first, block_iterator_next, block_iter_name_first)
5929 (block_iter_name_next, block_iter_match_first)
5930 (block_iter_match_next): Declare.
5931 (ALL_BLOCK_SYMBOLS): Redefine.
5932 * block.c (block_iterator_first, block_iterator_next)
5933 (block_iter_name_first, block_iter_name_next)
5934 (block_iter_match_first, block_iter_match_next): New functions.
5935 * ada-lang.c (ada_add_block_symbols)
5936 (ada_make_symbol_completion_list): Use block iterator.
5937
a2ca7a52
TT
59382012-05-10 Tom Tromey <tromey@redhat.com>
5939
5940 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5941 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5942 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5943 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5944 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5945 Update.
5946
64ea88dc
JB
59472012-05-10 Joel Brobecker <brobecker@adacore.com>
5948
5949 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5950 print-file-var-lib2.c, print-file-var-main.c and
5951 print-file-var.exp (located in gdb/testsuite/gdb.base).
5952
99a547d6
JB
59532012-05-10 Joel Brobecker <brobecker@adacore.com>
5954
5955 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5956 try locating the symbol in the symbol's own objfile first, before
5957 extending the search to all objfiles.
5958 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5959 out of lookup_symbol_aux_symtabs.
5960 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5961 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5962 Do not search EXCLUDE_OBJFILE.
5963 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5964 (lookup_symbol_global): Search for matches in the block's objfile
5965 first, before searching all other objfiles.
5966
0ece64fd
TG
59672012-05-10 Tristan Gingold <gingold@adacore.com>
5968
5969 * printcmd.c (set_command): Add pre/post inc/dec.
5970
3d16a105
FCE
59712012-05-09 Frank Ch. Eigler <fche@redhat.com>
5972
5973 * gdb.1: Document -ex option.
5974
2efbc0f7
JB
59752012-05-09 Joel Brobecker <brobecker@adacore.com>
5976
5977 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5978 * inferior.h (AT_SYMBOL): Delete.
5979
2c76a0c7
JB
59802012-05-09 Joel Brobecker <brobecker@adacore.com>
5981
5982 * mips-tdep.c (mips_push_dummy_code): New function.
5983 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5984 ON_STACK and install mips_push_dummy_code as our gdbarch
5985 push_dummy_code routine.
5986
9401a810
PA
59872012-05-09 Pedro Alves <palves@redhat.com>
5988
5989 * target.c (set_maintenance_target_async_permitted): Rename to ...
5990 (set_target_async_command): ... this.
5991 (show_maintenance_target_async_permitted): Rename to ...
5992 (show_target_async_command): ... this.
5993 (initialize_targets): Adjust.
5994
3929b321
DE
59952012-05-08 Doug Evans <dje@google.com>
5996
5997 * go-exp.y (classify_name): Add missing assignment of fields of
5998 yylval.ssym.
5999
c41535fd
EZ
60002012-05-08 Eli Zaretskii <eliz@gnu.org>
6001
6002 Display the ">" prompt in interactive mode while reading canned
6003 commands, even when the current interpreter is MI.
6004
6005 * interps.c (interp_set_temp): New function.
6006
6007 * interps.h (interp_set_temp): Add prototype.
6008
6009 * cli/cli-script.c (restore_interp): New cleanup function.
6010 (read_command_lines): Temporarily override the current interpreter
6011 with CLI and arrange for restoring the original one.
6012
c0749c4d
JS
60132012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6014
6015 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6016
d7333987
SDJ
60172012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6018
6019 * probe.c (parse_probes): Move conditional to check for
6020 debuginfo files from here...
6021 * stap-probe.c (stap_get_probes): ... to here.
6022
649e6d92
MK
60232012-05-07 Mark Kettenis <kettenis@gnu.org>
6024 H.J. Lu <hongjiu.lu@intel.com>
6025
6026 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6027 `movl %esp, %ebp' for the X32 ABI.
6028
f39c6ffd
TT
60292012-05-07 Tom Tromey <tromey@redhat.com>
6030
6031 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6032 get_DW_TAG_name.
6033 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6034 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6035 (dwarf_stack_op_name): Remove.
6036 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6037 (decode_locdesc): Use get_DW_OP_name.
6038 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6039 (dwarf2_compile_expr_to_ax): Likewise.
6040 (disassemble_dwarf_expression): Likewise.
6041 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6042
1e1f6591
CLT
60432012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6044
6045 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6046 (sh_linux_sigtramp_cache): New function.
6047 (sh_linux_sigreturn_init): New function.
6048 (sh_linux_rt_sigreturn_init): New function.
6049 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6050 patterns.
6051 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6052 syscall codes.
6053 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6054 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6055 (sh_linux_init_abi): Add init calls to register new tramp_frame
6056 definitions under 32-bit SH, update comments.
6057
545c08b4
PA
60582012-05-07 Pedro Alves <palves@redhat.com>
6059
daac165e
PA
6060 PR gdb/10952
6061
545c08b4
PA
6062 * amd64-linux-tdep.c: Include glibc-tdep.h.
6063 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6064 gdbarch_skip_solib_resolver callback.
6065
af2c1515
JK
60662012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6067
6068 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6069 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6070 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6071 (add_auto_load_safe_path): Change the error message.
6072 (_initialize_auto_load): Change the "safe-path" help text.
6073 * configure: Regenerate
6074 * configure.ac (--without-auto-load-safe-path): Set
6075 WITH_AUTO_LOAD_SAFE_PATH to /.
6076
1067f998
SDJ
60772012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6078
6079 * stap-probe.h: Do not include unecessary `probe.h'.
6080
45dfa85a
AM
60812012-05-05 Alan Modra <amodra@gmail.com>
6082
6083 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6084 bfd_und_section_ptr.
6085 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6086 and bfd_com_section_ptr.
6087
cf093994
JB
60882012-05-04 Joel Brobecker <brobecker@adacore.com>
6089
762ebb75 6090 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6091
d40dc7a8
JB
60922012-05-04 Joel Brobecker <brobecker@adacore.com>
6093
6094 * windows-nat.h (segment_register_p_ftype): New typedef.
6095 (windows_set_segment_register_p): Add declaration.
6096 * windows-nat.c (segment_register_p): New static global.
6097 (windows_set_segment_register_p): New function.
6098 (do_windows_fetch_inferior_registers): Add special handling
6099 for segment registers.
6100 * amd64-windows-nat.c: #include "amd64-tdep.h".
6101 (amd64_windows_segment_register_p): New function.
6102 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6103 * i386-windows-nat.c: #include "i386-tdep.h".
6104 (i386_windows_segment_register_p): New function.
6105 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6106
52b3699b
TG
61072012-05-04 Tristan Gingold <gingold@adacore.com>
6108
6109 * printcmd.c (set_command): Emit a warning if the expression is not
6110 an assignment.
6111
94c74239
JB
61122012-05-03 Joel Brobecker <brobecker@adacore.com>
6113
6114 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6115 Make static.
6116
fcf57f19
SDJ
61172012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6118
6119 * stap-probe.c (stap_is_operator): Change declaration.
6120 (stap_get_opcode): Change return value.
6121 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6122 `stap_parse_argument_1'.
6123
27d2932e
PA
61242012-05-03 Pedro Alves <pedro@codesourcery.com>
6125
6126 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6127 debug log.
6128
a20ee7a4
SCR
61292012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6130
6131 Add two new methods global_block and static_block to gdb.Symtab
6132 objects.
6133 * NEWS (Python scripting): Add entry about the new methods.
6134 * python/py-symtab.c (stpy_global_block): New function which
6135 implements the gdb.Symtab.global_block() method.
6136 (stpy_static_block): New function which implements the
6137 gdb.Symtab.static_block() method.
6138 (symtab_object_methods): Add entries for the two new methods.
6139
943cb756
DE
61402012-05-03 Doug Evans <dje@google.com>
6141
6142 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6143 files.
6144
f4644a3f
YQ
61452012-05-03 Yao Qi <yao@codesourcery.com>
6146
6147 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6148 space.
6149 (i386_process_record): Ditto.
6150
ef61f180
JB
61512012-05-02 Joel Brobecker <brobecker@adacore.com>
6152
6153 * infcall.c (unwind_on_signal_p): Make static.
6154
02f1df11
JB
61552012-05-02 Joel Brobecker <brobecker@adacore.com>
6156
6157 * sol-thread.c (solaris_pid_to_str): Make static.
6158 (_initialize_sol_thread): Add prototype.
6159
39023530
JB
61602012-05-02 Joel Brobecker <brobecker@adacore.com>
6161
6162 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6163
c6b0c501
CF
61642012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6165
6166 * MAINTAINERS: Remove myself.
6167
1ef71717
JK
61682012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6169
6170 Fix --without-auto-load-safe-path for MS-Windows host platform.
6171 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6172
b31b86a7
EZ
61732012-05-02 Eli Zaretskii <eliz@gnu.org>
6174
6175 * gdb_curses.h: Undefine KEY_EVENT before including curses
6176 headers. Move "#undef MOUSE_MOVED" before any curses header
6177 inclusion.
6178
777532fc
SDJ
61792012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6180
6181 * features/i386/i386-mmx-linux.c: Regenerate.
6182 * features/rs6000/powerpc-32.c: Likewise.
6183 * features/rs6000/powerpc-32l.c: Likewise.
6184 * features/rs6000/powerpc-403.c: Likewise.
6185 * features/rs6000/powerpc-403gc.c: Likewise.
6186 * features/rs6000/powerpc-405.c: Likewise.
6187 * features/rs6000/powerpc-505.c: Likewise.
6188 * features/rs6000/powerpc-601.c: Likewise.
6189 * features/rs6000/powerpc-602.c: Likewise.
6190 * features/rs6000/powerpc-603.c: Likewise.
6191 * features/rs6000/powerpc-604.c: Likewise.
6192 * features/rs6000/powerpc-64.c: Likewise.
6193 * features/rs6000/powerpc-64l.c: Likewise.
6194 * features/rs6000/powerpc-750.c: Likewise.
6195 * features/rs6000/powerpc-860.c: Likewise.
6196 * features/rs6000/powerpc-e500.c: Likewise.
6197 * features/rs6000/powerpc-e500l.c: Likewise.
6198 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6199 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6200 * features/rs6000/rs6000.c: Likewise.
6201
d71871bc
SDJ
62022012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6203
6204 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6205 variable.
6206 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6207 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6208 (stap_parse_argument) <e>: Likewise.
6209 (handle_stap_probe) <byte_order>: Likewise.
6210
fd820528
DE
62112012-04-30 Doug Evans <dje@google.com>
6212
6213 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6214 init_and_read_dies_worker. All callers updated.
6215 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6216 replaced with init_cutu_and_read_dies.
6217 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6218 (find_partial_die): Remove FIXME. Don't free current CU.
6219
ec3f619d 62202012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6221
6222 * contrib: New directory.
6223 * contrib/test_pubnames_and_indexes.py: New file.
6224
fceca515
DE
62252012-04-30 Doug Evans <dje@google.com>
6226
6227 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6228 All callers updated.
6229 (init_cu_die_reader): Verify the section is non-empty.
6230 (dwarf_decode_line_header): Don't dereference section->asection
6231 until we know the section is present.
6232
311fe7e1
SDJ
62332012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6234
6235 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6236 probes.
6237
5977971a
YQ
62382012-04-29 Yao Qi <yao@codesourcery.com>
6239
6240 * gdb-code-style.el: New hook gdb-markup-hook
6241 and gdb-comment-hook.
6242
dee91e82
DE
62432012-04-28 Doug Evans <dje@google.com>
6244
3019eac3
DE
6245 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6246 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6247 objfile->obfd.
6248 * symfile.h (dwarf2_debug_sections): New member addr.
6249 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6250 (ctx_no_get_addr_index): New function.
6251 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6252 (ctx_no_get_addr_index): Declare.
6253 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6254 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6255 (dwarf_expr_ctx_funcs): Update.
6256 (needs_get_addr_index): New function.
6257 (needs_frame_ctx_funcs): Update.
6258 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6259 * dwarf2read.c: #include "gdbcore.h".
6260 (dwarf2_per_objfile): New members addr, dwo_files.
6261 (dwarf2_elf_names): Add entry for addr.
6262 (struct dwo_section_names): New type.
6263 (dwo_section_names): New static global.
6264 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6265 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6266 old debug_types_section member updated to use this.
6267 Rename member debug_types_section to info_or_types_section,
6268 all uses updated.
6269 (signatured_type): Rename member type_offset to type_offset_in_tu,
6270 all uses updated. New member type_offset_in_section.
6271 (struct dwo_sections): New type.
6272 (struct dwo_unit): New type.
6273 (struct dwo_file): New type.
6274 (die_reader_specs): New member dwo_file.
6275 (dwarf2_locate_sections): Watch for .debug_addr.
6276 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6277 (dwarf2_read_section): Get bfd of section from bfd's asection,
6278 instead of objfile.
6279 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6280 (create_signatured_type_table_from_index): Initialize
6281 sig_type->info_or_types_section.
6282 (dw2_get_file_names): Statement lists for type units with DWO files
6283 live in the DWO file.
6284 (create_debug_types_hash_table): New function.
6285 (create_all_type_units): Rewrite.
6286 (init_cu_die_reader): New arg dwo_file, all callers updated.
6287 (init_and_read_dies_worker): Get section from
6288 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6289 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6290 continue reading the CU/TU from there.
6291 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6292 updated. Get section from this_cu->info_or_types_section.
6293 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6294 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6295 DW_FORM_GNU_str_index.
6296 (hash_dwo_file, eq_dwo_file): New functions.
6297 (allocate_dwo_file_hash_table): New function.
6298 (hash_dwo_unit, eq_dwo_unit): New functions.
6299 (allocate_dwo_unit_table): New function.
6300 (dwarf2_locate_dwo_sections): New function.
6301 (struct create_dwo_info_table_data): New type.
6302 (create_debug_info_hash_table_reader): New function.
6303 (create_debug_info_hash_table): New function.
6304 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6305 (lookup_dwo_file): New function.
6306 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6307 (free_dwo_file, free_dwo_file_cleanup): New functions.
6308 (free_dwo_file_from_slot, free_dwo_files): New functions.
6309 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6310 (dwarf2_record_block_ranges): Ditto.
6311 (read_partial_die): Ditto.
6312 (process_enumeration_scope): Update to use type_offset_in_section.
6313 (read_full_die_1): New function.
6314 (read_full_die): Rewrite.
6315 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6316 DW_FORM_GNU_str_index.
6317 (read_addr_index_1, read_addr_index): New functions.
6318 (read_addr_index_from_leb128): New function.
6319 (struct dwarf2_read_addr_index_data): New type.
6320 (dwarf2_read_addr_index_reader): New function.
6321 (dwarf2_read_addr_index): New function.
6322 (read_str_index): New function.
6323 (leb128_size): New function.
6324 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6325 If processing a type unit from a DWO file, get the line section
6326 from the DWO file.
6327 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6328 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6329 DW_FORM_GNU_str_index.
6330 (lookup_die_type): Check whether section offset of type's die is
6331 known before looking it up. Remove assert. Condition can
6332 legimately happen for inter-cu type references.
6333 (dwarf_attr_name): Handle Fission attributes.
6334 (dwarf_form_name): Handle Fission forms.
6335 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6336 DW_FORM_GNU_str_index.
6337 (follow_die_sig): Update to use type_offset_in_section.
6338 (decode_locdesc): New case DW_OP_GNU_addr_index.
6339 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6340 DW_FORM_GNU_str_index.
6341 (cu_debug_loc_section): New function.
6342 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6343 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6344 Free DWO files if present.
6345 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6346
dee91e82
DE
6347 Refactor DIE reading.
6348 * dwarf2read.c (dwarf2_per_objfile): Replace members
6349 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6350 (die_reader_specs): New member "die_section". Temporarily make
6351 member "buffer" non-const, pending constifying all info_ptr uses.
6352 (die_reader_func_ftype): New typedef.
6353 (dw2_get_file_names_reader): New function.
6354 (dw2_get_file_names): Rewrite.
6355 (read_and_check_type_unit_head): Rename arg type_offset to
6356 type_offset_in_tu.
6357 (create_all_type_units): Improve debugging message.
6358 Improve dummy type unit check.
6359 (init_cu_die_reader): New arg "section". All callers updated.
6360 (init_and_read_dies_worker): New function.
6361 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6362 (init_cutu_and_read_dies_no_follow): New function.
6363 (init_cutu_and_read_dies_simple): New function.
6364 (process_psymtab_comp_unit_reader): New function.
6365 (process_psymtab_comp_unit): Delete args section,
6366 is_debug_types_section. Rewrite. All callers updated.
6367 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6368 All callers updated. Rewrite.
6369 (load_partial_comp_unit_reader): New function.
6370 (load_partial_comp_unit): Rewrite.
6371 (skip_children): New arg reader. Delete args buffer, cu.
6372 All callers updated.
6373 (skip_one_die): New arg reader. Delete args buffer, cu.
6374 All callers updated.
6375 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6376 All callers updated.
6377 (load_full_comp_unit_reader): New function.
6378 (load_full_comp_unit): Rewrite.
6379 (read_comp_unit): Delete.
6380 (read_die_and_children_1): Delete, contents moved ...
6381 (read_die_and_children): ... here.
6382 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6383 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6384 All callers updated.
6385 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6386 All callers updated.
6387 (find_partial_die): Rewrite load_all_dies support.
6388 (read_attribute_value): New arg reader. Delete args abfd, cu.
6389 All callers updated.
6390 (read_attribute): New arg reader. Delete args abfd, cu.
6391 All callers updated.
6392 (load_full_type_unit): Add assert.
6393 (read_signatured_type_reader): New function.
6394 (read_signatured_type): Rewrite.
6395 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6396 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6397 All callers updated. Set per_cu->cu = NULL after freeing it.
6398 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6399 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6400 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6401 (set_die_type): Update.
6402 (get_die_type_at_offset): Update.
6403 (read_file_scope): Call prepare_one_comp_unit.
6404 (read_type_unit_scope): Ditto.
6405 (prepare_one_comp_unit): Set producer if present.
6406
72d59e0d
SDJ
64072012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6408
6409 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6410 gettext function on `error'.
6411
0fefef59
DE
64122012-04-27 Doug Evans <dje@google.com>
6413
6414 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6415 is empty.
6416
28106bc2
SDJ
64172012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6418 Tom Tromey <tromey@redhat.com>
6419
6420 * breakpoint.c (struct breakpoint_objfile_data)
6421 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6422 <exception_probes>: New fields.
6423 (free_breakpoint_probes): New function.
6424 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6425 `_Unwind_DebugHook'.
6426 (create_exception_master_breakpoint): Likewise.
6427 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6428 * infrun.c: Including necessary header files for handling SystemTap
6429 probes.
6430 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6431 via SystemTap probes.
6432 (check_exception_resume): Remove `func' argument. Handle exception
6433 unwinding breakpoint set via a SystemTap probe.
6434 (insert_exception_resume_from_probe): New function.
6435
55aa24fb
SDJ
64362012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6437 Tom Tromey <tromey@redhat.com>
6438 Jan Kratochvil <jan.kratochvil@redhat.com>
6439
6440 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6441 (COMMON_OBS): Likewise.
6442 (HFILES_NO_SRCDIR): Add `probe'.
6443 * NEWS: Mention support for static and SystemTap probes.
6444 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6445 SystemTap probes' arguments parser.
6446 * arm-linux-tdep.c: Including headers needed to perform the parsing
6447 of SystemTap probes' arguments.
6448 (arm_stap_is_single_operand): New function.
6449 (arm_stap_parse_special_token): Likewise.
6450 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6451 probes' arguments parser.
6452 * ax-gdb.c (require_rvalue): Removing static declaration.
6453 (gen_expr): Likewise.
6454 * ax-gdb.h (gen_expr): Declaring function.
6455 (require_rvalue): Likewise.
6456 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6457 (bkpt_probe_breakpoint_ops): New variable.
6458 (momentary_breakpoint_from_master): Set the `probe' value.
6459 (add_location_to_breakpoint): Likewise.
6460 (break_command_1): Using proper breakpoint_ops according to the
6461 argument passed by the user in the command line.
6462 (bkpt_probe_insert_location): New function.
6463 (bkpt_probe_remove_location): Likewise.
6464 (bkpt_probe_create_sals_from_address): Likewise.
6465 (bkpt_probe_decode_linespec): Likewise.
6466 (tracepoint_probe_create_sals_from_address): Likewise.
6467 (tracepoint_probe_decode_linespec): Likewise.
6468 (tracepoint_probe_breakpoint_ops): New variable.
6469 (trace_command): Using proper breakpoint_ops according to the
6470 argument passed by the user in the command line.
6471 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6472 static probes on breakpoints and tracepoints.
6473 * breakpoint.h (struct bp_location) <probe>: New field.
6474 * cli-utils.c (skip_spaces_const): New function.
6475 (extract_arg): Likewise.
6476 * cli-utils.h (skip_spaces_const): Likewise.
6477 (extract_arg): Likewise.
6478 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6479 * configure.ac: Append `stap-probe.o' to be generated when ELF
6480 support is present.
6481 * configure: Regenerate.
6482 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6483 * elfread.c: Include `probe.h' and `arch-utils.h'.
6484 (probe_key): New variable.
6485 (elf_get_probes): New function.
6486 (elf_get_probe_argument_count): Likewise.
6487 (elf_evaluate_probe_argument): Likewise.
6488 (elf_compile_to_ax): Likewise.
6489 (elf_symfile_relocate_probe): Likewise.
6490 (stap_probe_key_free): Likewise.
6491 (elf_probe_fns): New variable.
6492 (elf_sym_fns): Add `sym_probe_fns' value.
6493 (elf_sym_fns_lazy_psyms): Likewise.
6494 (elf_sym_fns_gdb_index): Likewise.
6495 (_initialize_elfread): Initialize objfile cache for static
6496 probes.
6497 * gdb_vecs.h (struct probe): New forward declaration.
6498 (probe_p): New VEC declaration.
6499 * gdbarch.c: Regenerate.
6500 * gdbarch.h: Regenerate.
6501 * gdbarch.sh (stap_integer_prefix): New variable.
6502 (stap_integer_suffix): Likewise.
6503 (stap_register_prefix): Likewise.
6504 (stap_register_suffix): Likewise.
6505 (stap_register_indirection_prefix): Likewise.
6506 (stap_register_indirection_suffix): Likewise.
6507 (stap_gdb_register_prefix): Likewise.
6508 (stap_gdb_register_suffix): Likewise.
6509 (stap_is_single_operand): New function.
6510 (stap_parse_special_token): Likewise.
6511 (struct stap_parse_info): Forward declaration.
6512 * i386-tdep.c: Including headers needed to perform the parsing
6513 of SystemTap probes' arguments.
6514 (i386_stap_is_single_operand): New function.
6515 (i386_stap_parse_special_token): Likewise.
6516 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6517 probes' arguments parser.
6518 * i386-tdep.h (i386_stap_is_single_operand): New function.
6519 (i386_stap_parse_special_token): Likewise.
6520 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6521 * mipsread.c (ecoff_sym_fns): Likewise.
6522 * objfiles.c (objfile_relocate1): Support relocation for static
6523 probes.
6524 * parse.c (prefixify_expression): Remove static declaration.
6525 (initialize_expout): Likewise.
6526 (reallocate_expout): Likewise.
6527 * parser-defs.h (initialize_expout): Declare function.
6528 (reallocate_expout): Likewise.
6529 (prefixify_expression): Likewise.
6530 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6531 of SystemTap probes' arguments.
6532 (ppc_stap_is_single_operand): New function.
6533 (ppc_stap_parse_special_token): Likewise.
6534 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6535 probes' arguments parser.
6536 * probe.c: New file, for generic statically defined probe support.
6537 * probe.h: Likewise.
6538 * s390-tdep.c: Including headers needed to perform the parsing of
6539 SystemTap probes' arguments.
6540 (s390_stap_is_single_operand): New function.
6541 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6542 probes' arguments parser.
6543 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6544 * stap-probe.c: New file, for SystemTap probe support.
6545 * stap-probe.h: Likewise.
6546 * symfile.h: Include `gdb_vecs.h'.
6547 (struct sym_probe_fns): New struct.
6548 (struct sym_fns) <sym_probe_fns>: New field.
6549 * symtab.c (init_sal): Initialize `probe' field.
6550 * symtab.h (struct probe): Forward declaration.
6551 (struct symtab_and_line) <probe>: New field.
6552 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6553 locations.
6554 (stop_tracing): Likewise.
6555 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6556
22d2b532
SDJ
65572012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6558 Tom Tromey <tromey@redhat.com>
6559
6560 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6561 and to compile agent expressions.
6562 * infrun.c (siginfo_make_value): New argument `ignore'.
6563 (siginfo_funcs): New struct.
6564 (_initialize_infrun): New argument when calling
6565 `create_internalvar_type_lazy'.
6566 * thread.c (thread_id_make_value): New argument `ignore'.
6567 (thread_funcs): New struct.
6568 (_initialize_thread): New argument when calling
6569 `create_internalvar_type_lazy'.
6570 * tracepoint.c (sdata_make_value): New argument `ignore'.
6571 (sdata_funcs): New struct.
6572 (_initialize_tracepoint): New argument when calling
6573 `create_internalvar_type_lazy'.
6574 * value.c (make_value): New struct.
6575 (create_internalvar_type_lazy): New argument `data'.
6576 (compile_internalvar_to_ax): New function.
6577 (value_of_internalvar): Properly handling `make_value' case.
6578 (clear_internalvar): Likewise.
6579 (show_convenience): Adding `TRY_CATCH' block.
6580 * value.h (internalvar_make_value): Delete, replace by...
6581 (struct internalvar_funcs): ... this.
6582 (create_internalvar_type_lazy) <fun>: Delete argument.
6583 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6584 (compile_internalvar_to_ax): New function.
6585 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6586 (tlb_funcs): New struct.
6587 (_initialize_windows_tdep): New argument when calling
6588 `create_internalvar_type_lazy'.
6589
91da1414
MW
65902012-04-27 Mark Wielaard <mjw@redhat.com>
6591
6592 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6593 see whether it is an address or a constant offset from DW_AT_low_pc.
6594 (dwarf2_record_block_ranges): Likewise.
6595 (read_partial_die): Likewise.
6596
4ab9d8ec
MW
65972012-04-26 Mark Wielaard <mjw@redhat.com>
6598
6599 * MAINTAINERS (Write After Approval): Add myself to the list.
6600
a0911fd0
MR
66012012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6602
6603 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6604 (proc_prettyprint_signal): Likewise.
6605 (proc_prettyprint_faultset): Likewise.
6606 (proc_prettyprint_fault): Likewise.
6607 (proc_prettyprint_actionset): Likewise.
6608 (proc_prettyprint_flags): Move to new proc-flags.c section.
6609 (proc_prettyfprint_flags): New prototype.
6610 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6611 (proc_syscall, proc_cursig): Likewise.
6612 (proc_set_kill_on_last_close): Likewise.
6613 (proc_unset_kill_on_last_close): Likewise.
6614 (proc_set_watchpoint): Make static.
6615 (proc_delete_dead_threads): Likewise.
6616 (procfs_set_watchpoint): Likewise.
6617 (_initialize_procfs): Add prototype.
6618 * proc-events.c: Include proc-utils.h.
6619 (init_syscall_table): Make static.
6620 * proc-api.c (_initialize_proc_api): Add prototype.
6621 * proc-flags.c: Include proc-utils.h.
6622
9009e1ae
MR
66232012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6624
6625 * configure.ac: Add AC_ARG_PROGRAM.
6626 * configure: Regenerate.
6627
4fae6e18
JK
66282012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6629
6630 Fix DW_AT_lower_bound defaults for DWARF-4+.
6631 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6632 high. New variable low_default_is_valid. Implement DWARF-4+
6633 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6634 no default by the DWARF standard.
6635
14132e89 66362012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6637 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6638
6639 * infrun.c (handle_inferior_event): Move the check for return
6640 trampolines ahead of the check for function trampolines.
6641 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6642 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6643 (mips_str_mips16_ret_stub): Likewise.
6644 (mips_str_call_fp_stub): Likewise.
6645 (mips_str_call_stub): Likewise.
6646 (mips_str_fn_stub): Likewise.
6647 (mips_str_pic): Likewise.
6648 (mips_in_frame_stub): New function.
6649 (mips_unwind_pc): Return the return address rather than the PC
6650 if the PC of an intermediate frame is inside a call thunk.
6651 (mips_is_stub_suffix): New function.
6652 (mips_is_stub_mode): Likewise.
6653 (mips_get_mips16_fn_stub_pc): Likewise.
6654 (mips_skip_mips16_trampoline_code): Update to handle all the
6655 currently generated stub types. Don't recurse into __fn_stub
6656 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6657 Use cooked register accesses.
6658 (mips_in_return_stub): Reintroduce function.
6659 (mips_skip_trampoline_code): Traverse trampolines recursively.
6660 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6661
518f0db5 66622012-04-26 Joel Brobecker <brobecker@adacore.com>
6663
6664 GDB 7.4.1 released.
6665
3184d3f9
JL
66662012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6667
6668 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6669 * features/arm-with-m-vfp-d16.xml: New file. Describes
6670 Cortex-M with VFPv4-sp-d16 FPU register layout.
6671 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6672 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6673 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6674 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6675 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6676
b6201d44
DE
66772012-04-25 Doug Evans <dje@google.com>
6678
6679 * cli/cli-decode.c (print_doc_line): Use stream instead of
6680 current_uiout.
6681
4e2f8df6
SDJ
66822012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6683
6684 * features/arm-with-iwmmxt.c: Regenerate.
6685 * features/arm-with-m-fpa-layout.c: Likewise.
6686 * features/arm-with-m.c: Likewise.
6687 * features/arm-with-neon.c: Likewise.
6688 * features/arm-with-vfpv2.c: Likewise.
6689 * features/arm-with-vfpv3.c: Likewise.
6690 * features/mips-dsp-linux.c: Likewise.
6691 * features/mips-linux.c: Likewise.
6692 * features/mips64-dsp-linux.c: Likewise.
6693 * features/mips64-linux.c: Likewise.
6694 * features/s390-linux32.c: Likewise.
6695 * features/s390-linux32v1.c: Likewise.
6696 * features/s390-linux32v2.c: Likewise.
6697 * features/s390-linux64.c: Likewise.
6698 * features/s390-linux64v1.c: Likewise.
6699 * features/s390-linux64v2.c: Likewise.
6700 * features/s390x-linux64.c: Likewise.
6701 * features/s390x-linux64v1.c: Likewise.
6702 * features/s390x-linux64v2.c: Likewise.
6703 * features/tic6x-c62x-linux.c: Likewise.
6704 * features/tic6x-c62x.c: Likewise.
6705 * features/tic6x-c64x-linux.c: Likewise.
6706 * features/tic6x-c64x.c: Likewise.
6707 * features/tic6x-c64xp-linux.c: Likewise.
6708 * features/tic6x-c64xp.c: Likewise.
6709 * target-descriptions.c: Only generate `field_type' and `type'
6710 variables when needed.
6711
2def3e66
JB
67122012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6713
6714 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6715
a766d390
DE
67162012-04-25 Doug Evans <dje@google.com>
6717
6718 Initial pass at Go language support.
6719 * NEWS: Mention Go.
6720 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6721 go-valprint.c.
6722 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6723 (YYFILES): Add go-exp.c.
6724 (YYOBJ): Add go-exp.o.
6725 (local-maintainer-clean): Delete go-exp.c.
6726 * defs.h (enum language): Add language_go.
6727 * dwarf2read.c: #include "go-lang.h".
6728 (fixup_go_packaging): New function.
6729 (process_full_comp_unit): Call it when processing Go CUs.
6730 (dwarf2_physname): Add Go support.
6731 (read_file_scope): Handle missing language spec for GNU Go.
6732 (set_cu_language): Handle DW_LANG_Go.
6733 * go-exp.y: New file.
6734 * go-lang.h: New file.
6735 * go-lang.c: New file.
6736 * go-typeprint.c: New file.
6737 * go-valprint.c: New file.
6738 * symtab.c: #include "go-lang.h".
6739 (symbol_set_language): Handle language_go.
6740 (symbol_find_demangled_name, symbol_set_names): Ditto.
6741 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6742
4e2af517
JM
67432012-04-24 Jim Meyering <meyering@redhat.com>
6744
6745 avoid a few strncpy-induced buffer overruns
6746 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6747 fname and psargs before trying to concatenate.
6748 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6749 "name" before applying strchr.
6750
b77b7f52
SCR
67512012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6752
6753 * CONTRIBUTE: Use unified diff instead of context diff when
6754 generating patches.
6755
6321c22a
MR
67562012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6757
6758 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6759 code. Handle JR.HB correctly.
6760
742c84f6
MR
67612012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6762
6763 * mips-tdep.c
6764 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6765 with the other MIPS16 helpers.
6766
7fc7e0c3
SDJ
67672012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6768
6769 * observer.sh: Conditionally declare `args', thus cleaning up
6770 unused instances of this variable.
6771
20388dd6
YQ
67722012-04-24 Yao Qi <yao@codesourcery.com>
6773
6774 Revert this patch to allow breakpoint always-inserted
6775 in record target.
6776 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6777 * breakpoint.c: Include record.h.
6778 (breakpoints_always_inserted_mode): Return false when the record
6779 target is in use.
20388dd6
YQ
6780
6781 * breakpoint.c (iterate_over_bp_locations): New.
6782 * breakpoint.h: Declare.
6783 New typedef walk_bp_location_callback.
6784 * record.c (record_open): Call record_init_record_breakpoints.
6785 (record_sync_record_breakpoints): New.
6786 (record_init_record_breakpoints): New.
6787 * NEWS: Mention supporting breakpoint always-inserted mode in
6788 record target.
6789
4734f50e
MK
67902012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6791
6792 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6793 any thread.
6794
c326b90e
YQ
67952012-04-24 Yao Qi <yao@codesourcery.com>
6796
6797 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6798 (is_catchpoint): ... it.
6799 (print_one_breakpoint_location): Caller update.
6800 * breakpoint.h: Update declaration.
6801
d8fb5a1e
DM
68022012-04-23 David S. Miller <davem@davemloft.net>
6803
6804 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6805
34431a2a
TT
68062012-04-23 Tom Tromey <tromey@redhat.com>
6807
6808 * buildsym.c (add_free_pendings): Remove.
6809 * buildsym.h (add_free_pendings): Remove.
6810
4568ecf9
DE
68112012-04-23 Doug Evans <dje@google.com>
6812
6813 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6814 attr.u.unsnd instead of attr.u.addr.
6815 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6816 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6817 DW_FORM_ref_udata.
6818 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6819 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6820 DW_FORM_ref_udata.
6821 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6822
dca9aa3a
MR
68232012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6824
6825 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6826 (mips_o32_return_value): Likewise.
6827 (mips_o64_return_value): Likewise.
6828
c8ea1972
PH
68292012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6830
6831 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6832 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6833 their treatment in eval.c.
c8ea1972 6834
8d1b3521
DM
68352012-04-21 David S. Miller <davem@davemloft.net>
6836
6837 * sparc-tdep.c (X_DISP10): Define.
6838 (sparc_analyze_control_transfer): Handle compare-and-branch.
6839
03145bf4
JL
68402012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6841
6842 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6843 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6844
004159a2 68452012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6846 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6847
6848 * mips-tdep.c (mips_float_register_p): New function.
6849 (mips_convert_register_float_case_p): Use mips_float_register_p.
6850 (mips_register_type): Likewise.
6851 (mips_print_register): Likewise.
6852 (print_gp_register_row): Likewise.
6853 (mips_print_registers_info): Likewise.
6854
7f0e6aae
MR
68552012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6856
6857 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6858 of mips16 symbols.
6859
bc17beea
AP
68602012-04-20 Andrew Pinski <apinski@cavium.com>
6861
6862 * MAINTAINERS (Write After Approval): Add myself to the list.
6863
1730a5a5
SDJ
68642012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6865
6866 * MAINTAINERS: Update my e-mail address.
6867
38ea300a
PA
68682012-04-20 Pedro Alves <palves@redhat.com>
6869
6870 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6871 $srcdir.
6872 * configure: Regenerate.
6873
111dfaae
SDJ
68742012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6875
6876 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6877 declaration.
6878 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6879
4fb2c64a
JK
68802012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6881
6882 Fix compilation compatibility with python-2.4
6883 * python/py-type.c (convert_field): Cast ADDRSTRING for
6884 PyObject_SetAttrString as non-const. New comment.
6885
6328eb38
TT
68862012-04-19 Tom Tromey <tromey@redhat.com>
6887
6888 * top.c (quit_target): Use all_cleanups.
6889 * main.c (captured_command_loop): Use all_cleanups.
6890 * exceptions.c (throw_exception): Use all_cleanups.
6891
c971b7fa
PA
68922012-04-19 Pedro Alves <palves@redhat.com>
6893
6894 * Makefile.in (GNULIB_BUILDDIR): New.
6895 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6896 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6897 (CLEANDIRS). Remove gnulib/import.
6898 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6899 (all-lib): Ditto.
6900 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6901 (gnulib/import/Makefile): Replace gnulib/import with
6902 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6903 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6904 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6905 acx_configure_dir.m4.
6906 * acinclude.m4: Include acx_configure_dir.m4.
6907 * acx_configure_dir.m4: New file.
6908 * aclocal.m4: Regenerate.
a09130f9
PA
6909 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6910 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6911 (GNULIB): New variable.
6912 (GNULIB_STDINT_H): Adjust.
6913 (AC_OUTPUT): Don't output gnulib/Makefile.
6914 * gdb/defs.h: Include build-gnulib/config.h.
6915 * aclocal.m4: Regenerate.
6916 * config.in: Regenerate.
6917 * configure: Regenerate.
6918
6919 * gnulib/Makefile.in: New file.
6920 * gnulib/configure.ac: New file.
6921 * gnulib/aclocal.m4: New file.
6922 * gnulib/config.in: New file.
6923 * gnulib/configure: New file.
c971b7fa
PA
6924 * gnulib/: Re-run gnulib-tool to adjust.
6925
b10faa68
DE
69262012-04-19 Doug Evans <dje@google.com>
6927
6928 * cleanups.h (struct cleanup): Move to cleanups.c.
6929 (make_cleanup_dtor_ftype): New typedef.
6930 (make_cleanup_dtor): Use it.
6931 (ALL_CLEANUPS): Replace with ...
6932 (all_cleanups): ... this. Declare. All uses updated.
6933 * cleanups.c: #include "gdb_assert.h".
6934 (sentinel_cleanup): New static global.
6935 (SENTINEL_CLEANUP): Define.
6936 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6937 (make_my_cleanup2): Assert result is non-NULL.
6938 (all_cleanups): New function.
6939 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6940 of NULL.
6941
d8c267cc
PA
69422012-04-19 Pedro Alves <palves@redhat.com>
6943
6944 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6945 Adjust paths to gnulib imported files.
6946
809277f8
PA
69472012-04-19 Pedro Alves <palves@redhat.com>
6948
6949 * gnulib/: Move whole directory ...
6950 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6951 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6952 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6953 (aclocal_m4_deps): Adjust.
6954 * aclocal.m4: Regenerate.
6955 * configure: Regenerate.
6956 * configure.ac: Adjust AC_OUTPUT output.
6957
aad9eab9
YQ
69582012-04-19 Yao Qi <yao@codesourcery.com>
6959
6960 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6961 (vec.o): New rule.
6962 * vec.c: Move it ...
6963 * common/vec.c: ... here.
6964 * vec.h: Move it ...
6965 * common/vec.h: ... here.
6966
48fe4669
YQ
69672012-04-19 Yao Qi <yao@codesourcery.com>
6968
6969 * gdb-code-style.el: New.
6970
770d76d7
PA
69712012-04-18 Pedro Alves <palves@redhat.com>
6972
6973 Update gnulib from latest git.
6974 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6975
6976 * gnulib/Makefile.am: Update.
6977 * gnulib/dummy.c: Update.
6978 * gnulib/extra/arg-nonnull.h: Update.
6979 * gnulib/extra/c++defs.h: Update.
6980 * gnulib/extra/update-copyright: Update.
6981 * gnulib/extra/warn-on-use.h: Update.
6982 * gnulib/inttypes.in.h: Update.
6983 * gnulib/m4/00gnulib.m4: Update.
6984 * gnulib/m4/extensions.m4: Update.
6985 * gnulib/m4/gnulib-cache.m4: Update.
6986 * gnulib/m4/gnulib-common.m4: Update.
6987 * gnulib/m4/gnulib-comp.m4: Update.
6988 * gnulib/m4/gnulib-tool.m4: Update.
6989 * gnulib/m4/include_next.m4: Update.
6990 * gnulib/m4/inttypes-pri.m4: Update.
6991 * gnulib/m4/inttypes.m4: Update.
6992 * gnulib/m4/longlong.m4: Update.
6993 * gnulib/m4/memchr.m4: Update.
6994 * gnulib/m4/memmem.m4: Update.
6995 * gnulib/m4/mmap-anon.m4: Update.
6996 * gnulib/m4/multiarch.m4: Update.
6997 * gnulib/m4/onceonly.m4: Update.
6998 * gnulib/m4/stddef_h.m4: Update.
6999 * gnulib/m4/stdint.m4: Update.
7000 * gnulib/m4/string_h.m4: Update.
7001 * gnulib/m4/warn-on-use.m4: Update.
7002 * gnulib/m4/wchar_h.m4: Update.
7003 * gnulib/m4/wchar_t.m4: Update.
7004 * gnulib/m4/wint_t.m4: Update.
7005 * gnulib/memchr.c: Update.
7006 * gnulib/memmem.c: Update.
7007 * gnulib/stddef.in.h: Update.
7008 * gnulib/stdint.in.h: Update.
7009 * gnulib/str-two-way.h: Update.
7010 * gnulib/string.in.h: Update.
7011 * gnulib/wchar.in.h: Update.
7012
7013 * gnulib/extra/arg-nonnull.h: Delete.
7014 * gnulib/extra/c++defs.h: Delete.
7015 * gnulib/extra/warn-on-use.h: Delete.
7016 * gnulib/m4/wchar_h.m4: Delete.
7017 * gnulib/m4/wint_t.m4: Delete.
7018 * gnulib/wchar.in.h: Delete.
7019
7020 * gnulib/extra/snippets/arg-nonnull.h: New.
7021 * gnulib/extra/snippets/c++defs.h: New.
7022 * gnulib/extra/snippets/warn-on-use.h: New.
7023
7024 * aclocal.m4: Regenerate.
7025 * config.in: Regenerate.
7026 * configure: Regenerate.
7027 * gnulib/Makefile.in: Regenerate.
7028
174e088e
PA
70292012-04-18 Pedro Alves <palves@redhat.com>
7030
7031 Reimport the update-copyright module from gnulib
7032 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7033
7034 * configure: Regenerate.
7035 * gnulib/Makefile.am: Update.
7036 * gnulib/Makefile.in: Regenerate.
7037 * gnulib/extra/update-copyright: Update.
7038 * gnulib/m4/gnulib-cache.m4: Update.
7039 * gnulib/m4/gnulib-comp.m4: Update.
7040
7f533142
JB
70412012-04-18 Tristan Gingold <gingold@adacore.com>
7042
7043 * configure.ac (aix): Put -lpthread into libs.
7044 * configure: Regenerate.
7045
001822aa
TT
70462012-04-18 Tom Tromey <tromey@redhat.com>
7047
7048 * linespec.c (convert_linespec_to_sals): Don't use
7049 SYMBOL_OBJ_SECTION.
7050 (compare_msymbols): Arguments are minsym_and_objfile, not
7051 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7052
db026a31
PA
70532012-04-18 Pedro Alves <palves@redhat.com>
7054
7055 Revert gnulib/ part of:
7056 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7057 Copyright year update in most files (performed by copyright.sh).
7058
12df843f
JK
70592012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7060
7061 Fix 64-bit constants on 32-bit hosts.
7062 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7063 from unsigned long to ULONGEST.
7064 (read_signed_leb128): Change declaration return type from long to
7065 LONGEST.
7066 (dwarf2_const_value_attr): Change declaration parameter value from long
7067 to LONGEST.
7068 (dwarf2_compute_name): Change variable value from long to LONGEST.
7069 (read_unsigned_leb128): Change return type, variable result and some
7070 casts from unsigned long to ULONGEST.
7071 (read_signed_leb128): Change return type, variable result and some
7072 casts from long to LONGEST.
7073 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7074 value from long to LONGEST.
7075 (dwarf2_const_value): Change variable value from long to LONGEST.
7076 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7077 plongest and hex_string.
7078 * symtab.h (struct general_symbol_info): Change ivalue from long to
7079 LONGEST, remove the comment.
7080 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7081 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7082
14e75d8e
JK
70832012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7084
7085 PR symtab/7259:
7086 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7087 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7088 (ada_discrete_type_low_bound): Fix function comment. Use
7089 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7090 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7091 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7092 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7093 Use TYPE_FIELD_ENUMVAL.
7094 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7095 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7096 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7097 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7098 TYPE_CODE_ENUM.
7099 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7100 * dwarf2read.c (process_enumeration_scope): Likewise.
7101 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7102 field.bitpos.
7103 (class StructMainTypePrettyPrinter): Support also
7104 FIELD_LOC_KIND_ENUMVAL.
7105 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7106 TYPE_CODE_ENUM.
7107 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7108 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7109 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7110 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7111 field enumval.
7112 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7113 accommodate enumval.
7114 (struct call_site): Adjust loc_kind to accommodate enumval.
7115 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7116 (TYPE_FIELD_ENUMVAL): New macros.
7117 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7118 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7119 TYPE_CODE_ENUM.
7120 * p-typeprint.c (pascal_type_print_base): Likewise.
7121 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7122 enumval.
7123 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7124 * python/py-type.c (convert_field): New variable addrstring. Use
7125 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7126 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7127 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7128 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7129 TYPE_CODE_ENUM.
7130 * valprint.c (generic_val_print): Likewise.
7131
380bca97
DE
71322012-04-17 Doug Evans <dje@google.com>
7133
dcc07052
DE
7134 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7135
380bca97
DE
7136 * dwarf2read.c: Whitespace fixes.
7137 (lookup_signatured_type): Tweak comment.
7138 (get_die_type_at_offset): Fix comment.
7139
ec92004f
JB
71402012-04-17 Joel Brobecker <brobecker@adacore.com>
7141
7142 * xcoffread.c (xcoff_secnum_to_sections): New function.
7143 (secnum_to_section, secnum_to_bfd_section): Reimplement
7144 using xcoff_secnum_to_sections. Rename "secnum" parameter
7145 into "n_scnum".
7146 (RECORD_MINIMAL_SYMBOL): Delete.
7147 (record_minimal_symbol): New function.
7148 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7149 by call to record_minimal_symbol and set misc_func_recorded
7150 to 1. Set last_csect_sec to the XCOFF section index instead
7151 of GDB's section_offset index. Update calls to
7152 prim_record_minimal_symbol_and_info to pass the BFD section
7153 as well.
7154
40301fb7
JB
71552012-04-17 Joel Brobecker <brobecker@adacore.com>
7156
7157 * xcoffread.c (read_xcoff_symtab): Delete variables
7158 last_csect_val and last_csect_sec and associated code.
7159
e0088cfd
DE
71602012-04-17 Doug Evans <dje@google.com>
7161
58d5e2c3
DE
7162 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7163 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7164 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7165 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7166
c27f5738
DE
7167 * cleanups.h: New file.
7168 * cleanups.c: New file.
7169 * Makefile.in (SFILES): Add cleanups.c.
7170 (HFILES_NO_SRCDIR): Add cleanups.h.
7171 (COMMON_OBS): Add cleanups.o.
7172 * defs.h (struct cleanup): Moved to cleanups.h.
7173 (do_cleanups,do_final_cleanups): Ditto.
7174 (discard_cleanups,discard_final_cleanups): Ditto
7175 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7176 (save_cleanups,save_final_cleanups): Ditto.
7177 (restore_cleanups,restore_final_cleanups): Ditto.
7178 (null_cleanup): Ditto.
7179 (make_my_cleanup,make_my_cleanup2): Ditto.
7180 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7181 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7182 (do_cleanups,do_final_cleanups): Ditto.
7183 (discard_cleanups,discard_final_cleanups): Ditto
7184 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7185 (save_cleanups,save_final_cleanups): Ditto.
7186 (restore_cleanups,restore_final_cleanups): Ditto.
7187 (null_cleanup): Ditto.
7188 (make_my_cleanup,make_my_cleanup2): Ditto.
7189 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7190
e0088cfd
DE
7191 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7192 make_my_cleanup.
7193 (make_cleanup_dyn_string_delete): Ditto.
7194 (make_cleanup_ui_file_delete): Ditto.
7195 (make_cleanup_ui_out_redirect_pop): Ditto.
7196 (make_cleanup_free_section_addr_info): Ditto.
7197 (make_cleanup_restore_integer): Ditto.
7198 (make_cleanup_unpush_target): Ditto.
7199 (make_cleanup_value_free_to_mark): Ditto.
7200 (make_cleanup_value_free): Ditto.
7201 (make_cleanup_free_so): Ditto.
7202
4dc84fd1
JK
72032012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7204
7205 New option "set debug auto-load".
7206 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7207 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7208 (auto_load_safe_path_vec_update)
7209 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7210 if DEBUG_AUTO_LOAD.
7211 (file_is_auto_load_safe): New parameters debug_fmt and ....
7212 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7213 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7214 caller by explanatory string.
7215 (_initialize_auto_load): Register "set debug auto-load".
7216 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7217 and ....
7218 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7219 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7220 by explanatory string.
7221 * main.c (captured_main): Likewise.
7222 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7223 (source_section_scripts): Likewise.
7224
bccbefd2
JK
72252012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7226
7227 New option "set auto-load safe-path".
7228 * NEWS: New commands "set auto-load safe-path"
7229 and "show auto-load safe-path".
7230 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7231 (auto_load_safe_path, auto_load_safe_path_vec)
7232 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7233 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7234 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7235 (source_gdb_script_for_objfile): New variable is_safe. Call
7236 file_is_auto_load_safe. Return if it is not.
7237 (struct loaded_script): New field loaded.
7238 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7239 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7240 output "Missing" to "No".
7241 (_initialize_auto_load): New variable cmd. Initialize
7242 auto_load_safe_path. Register "set auto-load safe-path",
7243 "show auto-load safe-path" and "add-auto-load-safe-path".
7244 * auto-load.h (maybe_add_script): Add parameter loaded.
7245 (file_is_auto_load_safe): New declaration.
7246 * config.in: Regenerate.
7247 * configure: Regenerate.
7248 * configure.ac: New parameters --with-auto-load-safe-path
7249 and --without-auto-load-safe-path.
7250 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7251 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7252 * main.c (captured_main): Check file_is_auto_load_safe for
7253 LOCAL_GDBINIT.
7254 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7255 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7256 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7257 not.
7258
bf88dd68
JK
72592012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7260
7261 auto-load: Implementation.
7262 * NEWS: New descriptions for "info auto-load",
7263 "info auto-load gdb-scripts", "info auto-load python-scripts",
7264 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7265 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7266 and "show auto-load-scripts". New description for "set auto-load",
7267 "show auto-load", "set auto-load gdb-scripts",
7268 "show auto-load gdb-scripts", "set auto-load python-scripts",
7269 "show auto-load python-scripts", "set auto-load local-gdbinit",
7270 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7271 "show auto-load libthread-db".
7272 * auto-load.c: Remove include python/python-internal.h. Add includes
7273 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7274 cli/cli-setshow.h.
7275 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7276 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7277 (gdbpy_global_auto_load): Rename to ...
7278 (global_auto_load): ... here.
7279 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7280 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7281 (script_language_gdb, source_gdb_script_for_objfile): New.
7282 (struct loaded_script): New field language.
7283 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7284 LANGUAGE.
7285 (maybe_add_script): Add parameter language. Drop redundant
7286 entry.full_path initialization. Initialize entry.language and
7287 (*slot)->language.
7288 (auto_load_objfile_script): Change parameter suffix to language.
7289 Remove the call of maybe_add_script.
7290 Call language->source_script_for_objfile.
7291 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7292 New.
7293 (collect_matching_scripts): Adjust it for
7294 struct collect_matching_scripts_data.
7295 (auto_load_info_scripts_pattern_nl): New variable.
7296 (info_auto_load_scripts): Rename to ...
7297 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7298 for struct collect_matching_scripts_data.
7299 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7300 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7301 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7302 (auto_load_info_cmdlist_get): New.
7303 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7304 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7305 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7306 "info auto-load local-gdbinit".
7307 * auto-load.h (struct script_language): New.
7308 (gdbpy_global_auto_load): Rename to ...
7309 (global_auto_load): ... here.
7310 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7311 (auto_load_local_gdbinit_loaded): New declarations.
7312 (maybe_add_script): New parameter language.
7313 (auto_load_objfile_script): Change parameter suffix to language.
7314 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7315 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7316 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7317 declarations.
7318 * linux-thread-db.c: Include auto-load.h and ctype.h.
7319 (auto_load_thread_db, show_auto_load_thread_db): New.
7320 (struct thread_db_info): New field filename.
7321 (delete_thread_db_info): Call xfree for FILENAME.
7322 (try_thread_db_load): Initialize FILENAME.
7323 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7324 if !AUTO_LOAD_THREAD_DB.
7325 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7326 (_initialize_thread_db): Install auto_load_thread_db
7327 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7328 as "info auto-load libthread-db".
7329 * main.c (captured_main): Rename gdbpy_global_auto_load to
7330 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7331 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7332 (print_gdb_help): Extend the help for 'local init file'.
7333 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7334 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7335 (auto_load_scripts): Rename to ...
7336 (auto_load_python_scripts): ... here, update the comment.
7337 (gdbpy_load_auto_script_for_objfile): New declaration.
7338 (show_auto_load_python_scripts, script_language_python)
7339 (gdbpy_load_auto_script_for_objfile): New.
7340 (source_section_scripts): Refactor the code.
7341 (load_auto_scripts_for_objfile): Rename to ...
7342 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7343 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7344 (info_auto_load_python_scripts): New.
7345 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7346 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7347 Register "set auto-load-scripts" as its deprecated alias. Register
7348 "info auto-load python-scripts". Register "info auto-load-scripts" as
7349 its deprecated alias.
7350 (load_auto_scripts_for_objfile): Rename to ...
7351 (gdbpy_load_auto_scripts_for_objfile): ... here.
7352 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7353 (gdbpy_load_auto_scripts_for_objfile): ... here.
7354
e2207b9a
JK
73552012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7356
7357 auto-load: Move files.
7358 * Makefile.in (SFILES): Add auto-load.c.
7359 (HFILES_NO_SRCDIR): Add auto-load.h.
7360 (COMMON_OBS): Add auto-load.o.
7361 (distclean): Change .gdbinit for gdb-gdb.gdb.
7362 * auto-load.c: New file, with parts from python/py-auto-load.c.
7363 * auto-load.h: New file, with parts from python/python.h.
7364 * configure: Regenerate.
7365 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7366 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7367 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7368 * main.c: Include auto-load.h.
7369 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7370 command.h, observer.h and progspace.h to auto-load.c. Add include
7371 auto-load.h.
7372 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7373 (struct loaded_script, auto_load_pspace_data)
7374 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7375 (hash_loaded_script_entry, eq_loaded_script_entry)
7376 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7377 (maybe_add_script): Move to auto-load.c.
7378 (source_section_scripts): Change maybe_add_script parameters passing,
7379 use script_not_found_warning_print.
7380 (clear_section_scripts, auto_load_objfile_script)
7381 (auto_load_new_objfile, loaded_script_ptr)
7382 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7383 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7384 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7385 auto_load_new_objfile and info_auto_load_scripts initizations to
7386 auto-load.c.
7387 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7388
e4ab2fad
JK
73892012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7390
7391 Code cleanup.
7392 * charset.c (find_charset_names): Remove variables ix and elt.
7393 Use free_char_ptr_vec.
7394 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7395 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7396 debugdir_end. New variable debugdir_len.
7397 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7398 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7399 declarations.
7400 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7401 and elt. Use free_char_ptr_vec.
7402 * source.c (add_path): Remove variables argv, arg and argv_index.
7403 New variables dir_vec, back_to, ix and name.
7404 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7405 make_cleanup_freeargv. Remove variable separator. Simplify the code
7406 no longer expecting DIRNAME_SEPARATOR.
7407 (openp): Remove variable p, p1 and len. New variables dir_vec,
7408 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7409 no longer expecting DIRNAME_SEPARATOR.
7410 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7411 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7412 debugdir_end.
7413 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7414 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7415 (dirnames_to_char_ptr_vec): New functions.
7416
5ee4ed9f
JK
74172012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7418
7419 Code cleanup.
7420 * source.c (add_path): Remove always true conditional 'p == 0' and
7421 unindent its code block.
7422
f41f5e61
PA
74232012-04-17 Pedro Alves <palves@redhat.com>
7424
7425 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7426 (FIELD_BITPOS_LVAL): ... this.
7427 (FIELD_BITPOS): New.
7428 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7429 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7430 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7431 SET_FIELD_BITPOS.
7432 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7433 SET_FIELD_BITPOS.
7434 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7435 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7436 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7437 SET_FIELD_BITPOS.
7438
945b3a32
JK
74392012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7440
7441 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7442 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7443 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7444 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7445 * jv-lang.c (java_link_class_type): Likewise, once.
7446 * stabsread.c (read_enum_type): Likewise.
7447
42476b70
YQ
74482012-04-16 Yao Qi <yao@codesourcery.com>
7449
7450 * common/agent.c (agent_run_command): Add one more parameter `len'.
7451 Update callers.
7452 * common/agent.h: Update declaration.
7453 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7454 Update.
7455 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7456
8264ba82
AG
74572012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7458
7459 PR mi/13393
7460 * value.c (value_actual_type): New function.
7461 * value.h (value_actual_type): New declaration.
7462 * varobj.c (update_type_if_necessary): New function.
7463 (varobj_create): Call value_actual_type instead of
7464 value_type.
7465 (install_dynamic_child): distinct changed and type changed MI variable
7466 objects.
7467 (update_dynamic_varobj_children): Updated for install_dynamic_child
7468 change. All callers updated.
a09130f9 7469 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7470 the value changed and RTTI is used to determine the type.
7471 (create_child_with_value): Call value_actual_type instead of
7472 value_type.
a09130f9 7473 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7474 specify whether the given value should be casted to enclosing type.
7475 All callers updated.
7476
55a8c076
YQ
74772012-04-14 Yao Qi <yao@codesourcery.com>
7478
7479 Import gnulib module inttypes from git
7480 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7481 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7482 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7483 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7484 * aclocal.m4, config.in, configure: Regenerated.
7485 * gnulib/Makefile.am: Update.
7486 * gnulib/Makefile.in: Update.
7487 * gnulib/m4/gnulib-cache.m4: Update.
7488 * gnulib/m4/gnulib-comp.m4: Update.
7489 * gnulib/inttypes.in.h: New.
7490 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7491 * gnulib/m4/inttypes.m4: New.
55a8c076 7492
ca7781d2
LM
74932012-04-13 Luis Machado <lgustavo@codesourcery.com>
7494
7495 * infrun.c (resume): Update PC address to the real PC after
7496 preparing to do displaced stepping.
7497
e319fa28
DE
74982012-04-12 Doug Evans <dje@google.com>
7499
7500 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7501 All callers updated.
7502
15add3f5
MK
75032012-04-12 Mark Kettenis <kettenis@gnu.org>
7504
7505 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7506
52dc124a
DE
75072012-04-12 Doug Evans <dje@google.com>
7508
0e50663e
DE
7509 * dwarf2read.c (create_all_type_units): Renamed from
7510 create_debug_types_hash_table. All callers updated.
7511
52dc124a
DE
7512 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7513 local type_sig to sig_type, type_offset to type_offset_in_tu.
7514 (hash_signatured_type): Renamed from hash_type_signature,
7515 all callers updated.
7516 (eq_signatured_type): Renamed from eq_type_signature,
7517 all callers updated.
7518 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7519 (process_enumeration_scope): Ditto.
7520 (lookup_signatured_type_at_offset): Ditto.
7521 (load_full_type_unit, read_signatured_type): Ditto.
7522
248fd3bf
YQ
75232012-04-12 Yao Qi <yao@codesourcery.com>
7524
7525 * remote.c (async_remote_interrupt): Correct function name in
7526 debug message.
7527 (async_remote_interrupt_twice): Ditto.
7528
bc3aa6c3
DE
75292012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7530
7531 * source.c (find_and_open_source): Consistently pass resulting
7532 full path through xfullpath.
7533
9e529e1d
JK
75342012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7535
7536 Provide more specific displaced-stepping memory error message.
7537 * infrun.c (displaced_step_prepare): New variable status. Call
7538 target_read_memory instead of read_memory, provide more specific
7539 error message.
7540
82e0cec1
TG
75412012-04-11 Tristan Gingold <gingold@adacore.com>
7542
7543 PR gdb/13901
7544 * darwin-nat.c (darwin_execvp): Revert previous patch.
7545
d987a266
TG
75462012-04-11 Tristan Gingold <gingold@adacore.com>
7547
7548 PR gdb/13901
7549 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7550 in case of change.
7551
016b7430
TG
75522012-04-11 Tristan Gingold <gingold@adacore.com>
7553
7554 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7555 warning.
7556
06fc020f
SCR
75572012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7558
7559 New command 'explore' which helps explore values and types in
7560 scope.
7561 * NEWS: Add an entry about the new 'explore' command.
7562 * data-directory/Makefile.in: Add gdb/command/explore.py
7563 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7564 command using the GDB Python API.
06fc020f 7565
de0919f8 75662012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7567
7568 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7569 extension in jump target calculation.
7570
de0919f8 75712012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7572
7573 * mips-tdep.c (mips32_next_pc): Handle JALX.
7574
2f26ef89
YQ
75752012-04-10 Yao Qi <yao@codesourcery.com>
7576
7577 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7578
2e505b66
YQ
75792012-04-10 Yao Qi <yao@codesourcery.com>
7580
7581 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7582 and gnulib/m4/gnulib-tool.m4.
7583
0d99eb77
DE
75842012-04-10 Doug Evans <dje@google.com>
7585
7586 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7587 (load_partial_dies): Clarify comment.
7588 (find_partial_die): Support rereading type units.
7589 Clarify CU handling, if we know offset is in CU, don't search for the
7590 containing CU. Add comment regarding memory waste.
7591
9a82b8ff
L
75922012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7593
7594 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7595 i386/x32-avx and i386/x32-avx-linux.
7596 (i386/x32-expedite): New.
7597 (i386/x32-linux-expedite): Likewise.
7598 (i386/x32-avx-expedite): Likewise.
7599 (i386/x32-avx-linux-expedite): Likewise.
7600 ($(outdir)/i386/x32.dat): Likewise.
7601 ($(outdir)/i386/x32-linux.dat): Likewise.
7602 ($(outdir)/i386/x32-avx.dat): Likewise.
7603 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7604
7605 * features/i386/x32-avx-linux.xml: New file.
7606 * features/i386/x32-avx.xml: Likewise.
7607 * features/i386/x32-core.xml: Likewise.
7608 * features/i386/x32-linux.xml: Likewise.
7609 * features/i386/x32.xml: Likewise.
7610
7611 * features/i386/x32-avx-linux.c: New. Generated.
7612 * features/i386/x32-avx.c: Likewise.
7613 * features/i386/x32-linux.c: Likewise.
7614 * features/i386/x32.c: Likewise.
7615 * regformats/i386/x32-avx-linux.dat: Likewise.
7616 * regformats/i386/x32-avx.dat: Likewise.
7617 * regformats/i386/x32-linux.dat: Likewise.
7618 * regformats/i386/x32.dat: Likewise.
7619
ee41036f
TG
76202012-04-10 Tristan Gingold <gingold@adacore.com>
7621
7622 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7623 code to kill the inferior.
7624
a7aa5b8a
MK
76252012-04-09 Mark Kettenis <kettenis@gnu.org>
7626
7627 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7628 defines.
7629 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7630 defines.
a09130f9 7631 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7632 (yyvsp): New defines.
7633 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7634 defines.
7635 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7636 defines.
7637 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7638 defines.
7639 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7640 defines.
7641 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7642 defines.
7643
fb57d452
MK
76442012-04-09 Mark Kettenis <kettenis@gnu.org>
7645
a09130f9 7646 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7647 (sparc64_store_arguments): Fix coding style.
7648
cdc7b32f
MK
76492012-04-07 Mark Kettenis <kettenis@gnu.org>
7650
7651 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7652 complex floats, adjust some related comments and tighten a related
7653 assertion.
7654 (sparc64_extract_return_value): Handle complex floats.
7655
7adf1e79
DE
76562012-04-07 Doug Evans <dje@google.com>
7657
7658 * dwarf2read.c (load_partial_dies): Change condition to assert.
7659
50f1ae7b
DE
76602012-04-06 Doug Evans <dje@google.com>
7661
7662 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7663 "mov %rsp,%rbp".
7664
55fa75c3
KB
76652012-04-05 Kevin Buettner <kevinb@redhat.com>
7666
7667 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7668 fencepost error.
7669 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7670 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7671 architecture.
7672
40e084e1
KS
76732012-04-05 Keith Seitz <keiths@redhat.com>
7674
7675 * linespec.c (decode_compound): Remove.
7676 (enum offset_relative_sign): New enum.
7677 (struct line_offset): New struct.
7678 (struct linespec): New struct.
7679 (struct linespec_state): Move file_symtabs,
7680 user_filename, and user_function into struct linespec.
7681 Make result an anonymous struct holding vectors of
7682 symbolp and minsym_and_objfile_d.
7683 Add language member.
7684 (enum ls_token_type): New enum.
7685 (linespec_keywords): New array.
7686 (struct ls_token): New struct.
7687 (struct ls_parser): New struct.
7688 (linespec_lexer_lex_number): New function.
7689 (linespec_lexer_lex_keyword): New function.
7690 (is_ada_operator): New function.
7691 (skip_quote_char): New function.
7692 (copy_token_string): New function.
7693 (is_closing_quote_enclosed): New function.
7694 (find_parameter_list_end): New function.
7695 (linespec_lexer_lex_string): New function.
7696 (linespec_lexer_lex_one): New function.
7697 (linespec_lexer_consume_token): New function.
7698 (linespec_lexer_peek_token): New function.
7699 (cplusplus_error): Remove unused function.
7700 (find_methods): Update comment.
7701 (find_toplevel_char): Return const.
7702 (is_objc_method_format): Remove unused function.
7703 (find_toplevel_string): New function.
7704 (is_linespec_boundary): Remove.
7705 (symbol_not_found_error): New function.
7706 (find_method_overload_end): Remove function.
7707 (unexpected_linespec_error): New function.
7708 (keep_name_info): Remove.
7709 (linespec_parse_line_offset): New function.
7710 (linespec_parse_basic): New function.
7711 (canonicalize_linespec): New function.
7712 (decode_line_internal): Remove.
7713 (create_sals_line_offset): New function adapted from
7714 decode_all_digits.
7715 (convert_linespec_to_sals): New function.
7716 (parse_linespec): New function.
7717 (linespec_parser_new): New function.
7718 (linespec_state_destructor): Change parameter type to
7719 struct linespec_state *.
7720 Add language parameter.
7721 Remove freeing of moved members.
7722 (linespec_parser_delete): New function.
7723 (decode_line_full): Use parse_linespec and linespec_parser_new.
7724 (decode_line_1): Likewise.
7725 (decode_indirect): Rename to ...
7726 (linespec_expression_to_pc): ... this and rewrite
7727 to simply find CORE_ADDR, storing this result for later
7728 conversion to SALs.
7729 (locate_first_half): Remove.
7730 (deocde_objc): Add parameter LS.
7731 Initialize new struct collect_info members.
7732 Handle minimal symbols, too.
7733 (decode_compound): Delete.
7734 (lookup_prefix_sym): Rewrite.
7735 (compare_msymbols): New function.
7736 (find_method): Rewrite.
7737 Do not call cplusplus_error.
7738 (symtabs_from_filename): Rewrite.
7739 (collect_function_symbols): Delete.
7740 (find_function_symbols): Rewrite without ARGPTR-style
7741 processing.
7742 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7743 (decode_dollar): Adapted and renamed to ...
7744 (linespec_parse_variable): ... this.
7745 (find_linespec_symbols): New function.
7746 (decode_label): Adapted and renamed to ...
7747 (find_label_symbols): ... this.
7748 (decode_digits_list_mode): Add and use LS argument.
7749 (decode_digits_ordinary): Likewise.
7750 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7751 If in list mode, allow any symbol class. Otherwise, only
7752 permit LOC_BLOCK symbols.
7753 (minsym_found): Update comments.
7754 (search_minsyms_for_name): Do not convert the matching symbol
7755 into a SAL. Simply push the symbol and objfile into the
7756 result vector.
7757 (decode_variable): Delete. Contents adapted into
7758 find_linespec_symbols.
7759
7760 * cp-support.c (SKIP_SPACE): Remove.
7761 (operator_tokens): Remove unused global.
7762 (cp_validate_operator): Remove.
7763 * cp-support.h (cp_validate_operator): Remove declaration.
7764
a72c8f6a
JK
77652012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7766
7767 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7768 for TYPE_VPTR_FIELDNO.
7769 * valprint.c (valprint_check_validity): Make it global, move the
7770 function comment ...
7771 * value.h (valprint_check_validity): ... to this new declaration.
7772
cf9bb588
TG
77732012-04-02 Tristan Gingold <gingold@adacore.com>
7774
7775 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7776 the STATE32 api for i386 state.
7777 (i386_darwin_store_inferior_registers): Likewise.
7778
17092398
TG
77792012-04-02 Tristan Gingold <gingold@adacore.com>
7780
7781 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7782 SS offset.
7783 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7784 format_string.
7785
ece0061f
TG
77862012-04-02 Tristan Gingold <gingold@adacore.com>
7787
7788 PR gdb/13901
d987a266 7789 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7790
cf65ecd3
JK
77912012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7792
7793 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7794
9bc3523d
TT
77952012-03-30 Tom Tromey <tromey@redhat.com>
7796
7797 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7798 of TRY_CATCH. Fix error handling.
7799 * python/py-value.c (convert_value_from_python): Move 'old'
7800 declaration to innermost scope.
7801
b1ed564a
JB
78022012-03-29 Joel Brobecker <brobecker@adacore.com>
7803 Andrey Smirnov <andrew.smirnov@gmail.com>
7804
7805 -Wshadow warning fix.
7806 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7807 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7808 Adjust code accordingly.
7809
cb8e9b97
JB
78102012-03-29 Joel Brobecker <brobecker@adacore.com>
7811
7812 * ada-lang.c (symbol_completion_add): Rename parameter
7813 "encoded" into "encoded_p". Ajust code and documentation
7814 accordingly.
7815
c0af1706
JB
78162012-03-29 Joel Brobecker <brobecker@adacore.com>
7817 Andrey Smirnov <andrew.smirnov@gmail.com>
7818
7819 -Wshadow warning fix.
7820 * ada-lang.c (symbol_completion_add): Rename parameter
7821 "wild_match" into wild_match_p. Update code and documentation
7822 accordingly.
7823
6ea35997
JB
78242012-03-29 Joel Brobecker <brobecker@adacore.com>
7825
7826 * ada-lang.c (symbol_completion_match): Rename parameter
7827 "encoded" into "encoded_p". Ajust code and documentation
7828 accordingly.
7829
e701b3c0
JB
78302012-03-29 Joel Brobecker <brobecker@adacore.com>
7831 Andrey Smirnov <andrew.smirnov@gmail.com>
7832
7833 -Wshadow warning fix.
7834 * ada-lang.c (symbol_completion_match): Rename parameter
7835 "wild_match" into "wild_match_p". Adjust code and function
7836 documentation accordingly.
7837
5e2336be
JB
78382012-03-29 Joel Brobecker <brobecker@adacore.com>
7839 Andrey Smirnov <andrew.smirnov@gmail.com>
7840
7841 -Wshadow warning fix.
7842 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7843 "symbol_info" into "info". Adjust code accordingly.
7844 (ada_lookup_symbol): Likewise.
7845
9f88c959
JB
78462012-03-29 Joel Brobecker <brobecker@adacore.com>
7847
7848 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7849 of this function's documentation.
7850
82ccd55e
JB
78512012-03-29 Joel Brobecker <brobecker@adacore.com>
7852 Andrey Smirnov <andrew.smirnov@gmail.com>
7853
7854 -Wshadow warning fix.
7855 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7856 variable into "wild_match_p". Adjust code accordingly.
7857
d0a8ab18
JB
78582012-03-29 Joel Brobecker <brobecker@adacore.com>
7859 Andrey Smirnov <andrew.smirnov@gmail.com>
7860
7861 -Wshadow warning fix.
7862 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7863 parameter into "wild_match_p". Adjust code accordingly.
7864 Document this parameter in the function description.
7865
48b78332
JB
78662012-03-29 Joel Brobecker <brobecker@adacore.com>
7867 Andrey Smirnov <andrew.smirnov@gmail.com>
7868
7869 -Wshadow warning fix.
7870 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7871 "wild_match" parameter to "wild_match_p" (-Wshadow).
7872
2e6e0353
JB
78732012-03-29 Joel Brobecker <brobecker@adacore.com>
7874
7875 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7876 in function documentation.
7877
dc4024cd
JB
78782012-03-29 Joel Brobecker <brobecker@adacore.com>
7879 Andrey Smirnov <andrew.smirnov@gmail.com>
7880
7881 -Wshadow warning fix.
7882 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7883 variable into wild_match_p. Adjust code accordingly.
7884
6c88661c
JB
78852012-03-29 Joel Brobecker <brobecker@adacore.com>
7886 Andrey Smirnov <andrew.smirnov@gmail.com>
7887
7888 * ada-valprint.c (ada_val_print_1): Move the code handling
7889 TYPE_CODE_ENUM inside its own lexical block. Declare
7890 variables len and val there, instead of in the function's
7891 top level block. Avoid declaring deref_val again in a way
7892 that shadows another variable of the same name declared
7893 in one of the up-level blocks. Just re-use the up-level
7894 variable instead.
7895
4e5c77fe
JB
78962012-03-29 Joel Brobecker <brobecker@adacore.com>
7897
7898 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7899 Replace block_found argument by symbol_info. Adjust
7900 implementation accordingly. Add function documentation.
7901 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7902 Fix documentation.
7903 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7904 * ada-exp.y (write_object_renaming): Adjust to new
7905 ada_lookup_encoded_symbol API.
7906
1c0ac8c7
JB
79072012-03-29 Joel Brobecker <brobecker@adacore.com>
7908
7909 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7910 documentation.
7911
2aaed979
KB
79122012-03-28 Rathish C <rathish.c@kpitcummins.com>
7913
7914 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7915 (v850_register_name): Add the mpu and fpu register names.
7916 (v850e_register_name): Add the mpu and fpu register names.
7917 (v850e2_register_name): New function.
a09130f9 7918 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7919 bfd_mach_v850e2v3.
7920
927fbba6
JB
79212012-03-28 Joel Brobecker <brobecker@adacore.com>
7922
7923 * NEWS: Add entry for Ada varobj support.
7924
d32cafc7
JB
79252012-03-28 Joel Brobecker <brobecker@adacore.com>
7926
7927 * varobj.c (default_value_is_changeable_p): New function,
7928 extracted from varobj_value_is_changeable_p. Add declaration.
7929 (ada_value_is_changeable_p): New function, extracted from
7930 varobj_value_is_changeable_p. Add declaration.
7931 (struct language_specific): New field "value_is_changeable_p".
7932 (languages): Add entries for new field.
7933 (varobj_create): Set language before calling install_new_value.
7934 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7935 "value_is_changeable_p" language callback.
7936
181875a4
JB
79372012-03-28 Joel Brobecker <brobecker@adacore.com>
7938
7939 * ada-varobj.h, ada-varobj.c: New files.
7940 * Makefile.in (SFILES): Add ada-varobj.c.
7941 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7942 (COMMON_OBS): Add ada-varobj.o.
7943
7a290c40
JB
79442012-03-28 Joel Brobecker <brobecker@adacore.com>
7945
7946 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7947 (struct language_specific): New field "value_has_mutated".
7948 (languages): Set field "value_has_mutated" in each entry of array.
7949 (varobj_value_has_mutated): New function.
7950 (varobj_udpdate): Add handling of type mutation.
7951 (value_of_root): Add handling of type mutation.
7952 (ada_value_has_mutated): New function.
7953
ca9b8b9c
PA
79542012-03-28 Pedro Alves <palves@redhat.com>
7955
7956 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7957 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7958
cc0265cd
TT
79592012-03-28 Tom Tromey <tromey@redhat.com>
7960
7961 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7962 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7963 before returning.
7964
3ad2ec6f
TT
79652012-03-28 Tom Tromey <tromey@redhat.com>
7966
7967 * .dir-locals.el: New file.
7968
4a6510ba
PA
79692012-03-28 Pedro Alves <palves@redhat.com>
7970
7971 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7972
5a75128f
JB
79732012-03-28 Joel Brobecker <brobecker@adacore.com>
7974
7975 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7976 handling for r0.
7977
f99d8bf4
PA
79782012-03-27 Pedro Alves <palves@redhat.com>
7979
7980 Eliminate struct ui_stream.
7981
7982 * ui-out.h (struct ui_stream): Delete.
7983 (ui_out_field_stream): Adjust prototype.
7984 (ui_out_stream_new, ui_out_stream_delete)
7985 (make_cleanup_ui_out_stream_delete): Delete declarations.
7986 * ui-out.c (ui_out_field_stream): Change prototype to take a
7987 ui_file instead of a ui_stream. Adjust.
7988 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7989 (make_cleanup_ui_out_stream_delete): Delete.
7990 * breakpoint.c (print_breakpoint_location)
7991 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7992 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7993 * disasm.c (dump_insns): Ditto.
7994 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7995 prototype.
7996 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7997 ui_stream/ui_out_stream_new.
7998 * infcmd.c (print_return_value): Ditto.
7999 * osdata.c (info_osdata_command): Don't allocate a local
8000 ui_stream.
8001 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8002 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8003 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8004 allocate a local ui_stream.
8005 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8006 instead of ui_stream/ui_out_stream_new.
8007 (list_args_or_locals): Don't allocate a local ui_stream.
8008 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8009 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8010 ui_stream/ui_out_stream_new.
8011 * cli/cli-setshow.c (do_setshow_command): Ditto.
8012
6350a066 80132012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8014
6350a066
PA
8015 * arm-linux-tdep.c (arm_linux_init_abi): Call
8016 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8017 * arm-tdep.c (arm_process_record): New function.
8018 (deallocate_reg_mem): New function.
8019 (decode_insn): New function.
8020 (thumb_record_branch): New function.
8021 (thumb_record_ldm_stm_swi(): New function.
8022 (thumb_record_misc): New function.
8023 (thumb_record_ld_st_stack): New function.
8024 (thumb_record_ld_st_imm_offset): New function.
8025 (thumb_record_ld_st_reg_offset(): New function.
8026 (thumb_record_add_sub_cmp_mov): New function.
8027 (thumb_record_shift_add_sub): New function.
8028 (arm_record_coproc_data_proc): New function.
8029 (arm_record_coproc): New function.
8030 (arm_record_b_bl): New function.
8031 (arm_record_ld_st_multiple): New function.
8032 (arm_record_ld_st_reg_offset): New function.
8033 (arm_record_ld_st_imm_offset): New function.
8034 (arm_record_data_proc_imm): New function.
8035 (arm_record_data_proc_misc_ld_str): New function.
8036 (arm_record_extension_space): New function.
8037 (arm_record_strx): New function.
8038 (sbo_sbz): New function.
8039 (struct insn_decode_record): New structure for arm insn record.
8040 (REG_ALLOC): New macro for reg allocations.
8041 (MEM_ALLOC): New macro for memory allocations.
8042 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8043
89e028e2
AS
80442012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8045
8046 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8047 (store_register): Likewise.
8048
6350a066 80492012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8050
6350a066 8051 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8052
5b43fab2
JK
80532012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8054
8055 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8056 Describe also the option "auto".
8057
b5453b95
RH
80582012-03-22 Richard Henderson <rth@redhat.com>
8059
8060 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8061 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8062
227ee7fc
RH
80632012-03-22 Richard Henderson <rth@redhat.com>
8064
8065 * jit.c (jit_read_code_entry): Compute alignment and offset of
8066 int64_t member before computing entry_size.
8067
7b282c5a
SCR
80682012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8069
8070 Python scripting: Add new method Value.referenced_value to
8071 gdb.Value which can dereference pointer as well as reference
8072 values.
8073 * NEWS: Add entry under 'Python scripting' about the new method
8074 Value.referenced_value on gdb.Value objects.
8075 * python/py-value.c (valpy_referenced_value): New function
8076 defining a new method on gdb.Value objects which can dereference
8077 pointer and reference values.
8078
0c83539f
SCR
80792012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8080
8081 * MAINTAINERS (Write After Approval): Add myself to the list.
8082
7ccffd7c
KB
80832012-03-21 Kevin Buettner <kevinb@redhat.com>
8084
8085 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8086 in addition to "main".
8087
bd0b9f9e
JB
80882012-03-21 Joel Brobecker <brobecker@adacore.com>
8089
8090 * expression.h (op_name): Add declaration.
8091 * expprint.c (op_name): Remove declaration. Make non-static.
8092 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8093
a5362b9a
TS
80942012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8095
8096 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8097 of struct siginfo.
8098 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8099 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8100 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8101 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8102 (linux_nat_get_siginfo): Likewise.
8103 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8104 (linux_nat_get_siginfo): Likewise.
8105 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8106 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8107 * procfs.c (gdb_siginfo_t): Likewise.
8108
adcadaab
MF
81092012-03-21 Mike Frysinger <vapier@gentoo.org>
8110
8111 * .gitignore: Ignore more files.
8112
e278ad5b
PA
81132012-03-20 Pedro Alves <palves@redhat.com>
8114
8115 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8116 returns.
8117
741e63d7
YQ
81182012-03-20 Yao Qi <yao@codesourcery.com>
8119
8120 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8121 comment.
8122
b64f50a1
JK
81232012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8124
8125 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8126 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8127 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8128 sect_offset.
8129 * dwarf2expr.h (cu_offset, sect_offset): New types.
8130 (struct dwarf_expr_context_funcs) <dwarf_call>
8131 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8132 sect_offset.
8133 (struct dwarf_expr_context) <len>: Improve the comment.
8134 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8135 cu_offset and sect_offset.
8136 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8137 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8138 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8139 * dwarf2loc.h: Include dwarf2expr.h.
8140 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8141 and sect_offset.
8142 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8143 Improve the comment.
8144 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8145 (struct signatured_type, struct line_header, struct partial_die_info)
8146 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8147 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8148 (get_die_type_at_offset, create_cus_from_index)
8149 (create_signatured_type_table_from_index, dw2_get_file_names)
8150 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8151 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8152 (create_debug_types_hash_table, process_psymtab_comp_unit)
8153 (load_partial_comp_unit, create_all_comp_units)
8154 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8155 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8156 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8157 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8158 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8159 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8160 (find_partial_die, read_attribute_value, lookup_die_type)
8161 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8162 (is_ref_attr): New function comment.
8163 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8164 Use cu_offset and sect_offset.
8165 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8166 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8167 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8168 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8169 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8170 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8171 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8172 sect_offset.
8173
e97a38f7
JK
81742012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8175
8176 Code cleanup.
8177 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8178 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8179 with xfree.
8180 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8181
8320cc4f
JK
81822012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8183
8184 * NEWS: Describe new options --init-command=FILE, -ix and
8185 --init-eval-command=COMMAND, -iex.
8186 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8187 CMDARG_INIT_COMMAND.
8188 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8189 "init-command", "init-eval-command", "ix" and "iex" to the variable
8190 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8191 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8192 (print_gdb_help): Describe --init-command=FILE, -ix and
8193 --init-eval-command=COMMAND, -iex.
8194
26743505
JK
81952012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8196
8197 Code cleanup.
8198 * main.c (struct cmdarg): Move it here from main. Add more comments.
8199 (cmdarg_s, VEC (cmdarg_s)): New.
8200 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8201 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8202 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8203 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8204 of CMDARG.
8205
5ff5c7b4
TT
82062012-03-19 Tom Tromey <tromey@redhat.com>
8207
8208 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8209
ab260dad
JK
82102012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8211
8212 PR symtab/13777
8213 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8214 GCC >=4.5.
8215
c366c1f0
TT
82162012-03-16 Chris January <chris.january@allinea.com>
8217
8218 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8219 of clear.
8220
e16edb45
TT
82212012-03-16 Chris January <chris.january@allinea.com>
8222
8223 * source.c (add_path): Use memmove instead of strcpy because the
8224 strings overlap.
8225
53ba8333
JB
82262012-03-16 Joel Brobecker <brobecker@adacore.com>
8227
8228 * value.h (set_value_parent): Add declaration.
8229 * value.c (set_value_parent): New function.
8230 (value_address): If VALUE->PARENT is not NULL, then use it as
8231 the base address instead of VALUE->LOCATION.address.
8232 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8233 the same as OBJ's address. Adjust V's offset accordingly.
8234 Set V's parent.
8235
481860b3
GB
82362012-03-16 Gary Benson <gbenson@redhat.com>
8237
8238 PR breakpoints/10738
8239 * dwarf2read.c (use_deprecated_index_sections): New global.
8240 (struct partial_die_info): New member may_be_inlined.
8241 (read_partial_die): Set may_be_inlined where appropriate.
8242 (add_partial_subprogram): Add partial symbols for partial
8243 DIEs that may be inlined.
8244 (new_symbol_full): Add inlined subroutines to the current
8245 scope.
8246 (write_psymtabs_to_index): Bump version number.
8247 (dwarf2_read_index): Read only version 6 indices unless
8248 use_deprecated_index_sections is set.
8249 * linespec.c (symbol_and_data_callback): New structure.
8250 (iterate_inline_only): New function.
8251 (iterate_over_all_matching_symtabs): New argument
8252 "include_inline". If nonzero, also call the callback for
8253 symbols representing inlined subroutines.
8254 (lookup_prefix_sym): Pass extra argument to the above.
8255 (find_function_symbols): Likewise.
8256 (add_matching_symbols_to_info): Likewise.
8257 * NEWS: Mention that GDB can now set breakpoints on inlined
8258 functions.
8259
d0e7e15a
PM
82602012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8261
8262 * p-typeprint.c (pascal_type_print_method_args):
8263 Fix display of parameter of methods.
8264
3d354654
PM
82652012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8266
8267 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8268 Add missing prototype.
8269
cafe75b0
JK
82702012-03-16 Yao Qi <yao@codesourcery.com>
8271 Jan Kratochvil <jan.kratochvil@redhat.com>
8272
8273 Fix false compilation warning.
8274 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8275
25f8c692
JL
82762012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8277 Pedro Alves <pedro@codesourcery.com>
8278
8279 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8280 (arm_register_g_packet_guesses): New function.
8281 (arm_gdbarch_init): Don't force a target description with
8282 registers when the executable is detected as M-profile. Instead
8283 set gdbarch->tdep->is_m. Register `g' packet guesses.
8284 (_initialize_arm_tdep): Initialize the new target description.
8285 * features/arm-with-m-fpa-layout.xml: New description.
8286 * features/arm-with-m-fpa-layout.c: New, generated.
8287
35c63cd8
JB
82882012-03-15 Joel Brobecker <brobecker@adacore.com>
8289
8290 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8291 Update function description.
8292 (insert_bp_location): Do not wipe bl->target_info out.
8293 * mem-break.c: #include "gdb_string.h".
8294 (default_memory_insert_breakpoint): Do not call target_read_memory
8295 with a pointer to the breakpoint's shadow_contents buffer. Use
8296 a local buffer instead.
8297 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8298
57651221
TT
82992012-03-15 Tom Tromey <tromey@redhat.com>
8300
8301 * NEWS: Mention "info vtbl", not "info vtable".
8302 * cp-support.c (info_vtbl_command): Fix comment.
8303 (_initialize_cp_support): Fix text.
8304
410528f0
TT
83052012-03-15 Tom Tromey <tromey@redhat.com>
8306
8307 * cp-valprint.c (cp_print_value_fields): Use
8308 print_function_pointer_address for vtable slot.
8309
c4aeac85
TT
83102012-03-15 Tom Tromey <tromey@redhat.com>
8311
8312 * gnu-v3-abi.c (struct value_and_voffset): New.
8313 (hash_value_and_voffset, eq_value_and_voffset)
8314 (compare_value_and_voffset, compute_vtable_size)
8315 (print_one_vtable, gnuv3_print_vtable): New functions.
8316 (init_gnuv3_ops): Initialize 'print_vtable' field.
8317 * cp-support.c (info_vtbl_command): New function.
8318 (_initialize_cp_support): Add "info vtbl".
8319 * cp-abi.h (cplus_print_vtable): Declare.
8320 (struct cp_abi_ops) <print_vtable>: New field.
8321 * cp-abi.c (cplus_print_vtable): New function.
8322 * NEWS: Update.
8323
95cbceff
TT
83242012-03-15 Tom Tromey <tromey@redhat.com>
8325
8326 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8327 iterate_over_symbols.
8328
589b4a32
DE
83292012-03-14 Doug Evans <dje@google.com>
8330
8331 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8332 DW_OP_GNU_parameter_ref.
8333
e837f12a
JK
83342012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8335
8336 Fix double prompt of 'interpreter-exec mi'.
8337 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8338 (mi_interpreter_resume): use it.
8339 (mi_execute_command_input_handler): New function.
8340 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8341 mi_execute_command_input_handler.
8342
ff1e4526 83432012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8344
8345 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8346 prototype.
8347 (darwin_debug_port_info): Make static.
8348 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8349 * machoread.c (_initialize_machoread): Add prototype.
8350 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8351 (i386_darwin_set_control, i386_darwin_get_control)
8352 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8353 i386_darwin_get_status, i386_darwin_get_control):
8354 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8355
d8a5d6ee
JB
83562012-03-13 Joel Brobecker <brobecker@adacore.com>
8357
8358 * ax-gdb.c (gen_usual_unary): Remove special handling of
8359 enum and bool types.
8360
af381b8c
JB
83612012-03-13 Joel Brobecker <brobecker@adacore.com>
8362
8363 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8364
786c562f
JB
83652012-03-13 Joel Brobecker <brobecker@adacore.com>
8366
8367 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8368
e3ebf1bb
JB
83692012-03-13 Chris January <chris.january@allinea.com>
8370
8371 * aix-thread.c (fill_sprs): Store the floating point registers
8372 at the correct offsets into vals.
8373
c5b7e1cb
DE
83742012-03-13 Doug Evans <dje@google.com>
8375
16899756
DE
8376 * NEWS: Mention symbol-reloading has been deleted.
8377 * symfile.c (symbol_reloading): Delete.
8378 (show_symbol_reloading): Delete.
8379 (_initialize_symfile): Delete set/show symbol-reloading.
8380
c5b7e1cb
DE
8381 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8382 read_in_chain until we have successfully read it in.
8383 (load_full_comp_unit): Ditto.
8384 (read_signatured_type): Add comment.
8385
46cb6474
JB
83862012-03-13 Chris January <chris.january@allinea.com>
8387
8388 * stabsread.c (fix_common_block): Change type of valu argument
8389 to CORE_ADDR.
8390
76219d77
JB
83912012-03-13 Chris January <chris.january@allinea.com>
8392
8393 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8394 instruction.
8395
87b0bb13
JK
83962012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8397
8398 * common/linux-procfs.c (linux_proc_get_int): New, from
8399 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8400 field.
8401 (linux_proc_get_tgid): Only call linux_proc_get_int.
8402 (linux_proc_get_tracerpid): New.
8403 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8404 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8405 linux_proc_pid_has_state.
8406 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8407 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8408 (linux_ptrace_attach_warnings): New.
8409 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8410 New declaration.
8411 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8412 (linux_nat_attach): New variables ex, buffer, message and message_s.
8413 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8414
5f572dec
JK
84152012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8416
8417 * Makefile.in (linux-ptrace.o): New.
8418 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8419 from linux-nat.c.
8420 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8421 * common/linux-ptrace.c: New file.
8422 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8423 * config/arm/linux.mh: Likewise.
8424 * config/i386/linux.mh: Likewise.
8425 * config/i386/linux64.mh: Likewise.
8426 * config/ia64/linux.mh: Likewise.
8427 * config/m32r/linux.mh: Likewise.
8428 * config/m68k/linux.mh: Likewise.
8429 * config/mips/linux.mh: Likewise.
8430 * config/pa/linux.mh: Likewise.
8431 * config/powerpc/linux.mh: Likewise.
8432 * config/powerpc/ppc64-linux.mh: Likewise.
8433 * config/powerpc/spu-linux.mh: Likewise.
8434 * config/s390/s390.mh: Likewise.
8435 * config/sparc/linux.mh: Likewise.
8436 * config/sparc/linux64.mh: Likewise.
8437 * config/xtensa/linux.mh: Likewise.
8438 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8439 common/linux-procfs.c.
8440 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8441
44f238bb
PA
84422012-03-13 Hui Zhu <teawater@gmail.com>
8443 Pedro Alves <palves@redhat.com>
8444
8445 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8446 CREATE_BREAKPOINT_FLAGS_INSERTED.
8447 (create_breakpoint_sal, create_breakpoints_sal)
8448 (base_breakpoint_create_breakpoints_sal)
8449 (tracepoint_create_breakpoints_sal)
8450 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8451 down.
8452 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8453 (ftrace_command, strace_command): Adjust.
8454 (create_tracepoint_from_upload): Pass
8455 CREATE_BREAKPOINT_FLAGS_INSERTED.
8456 * breakpoint.h (enum breakpoint_create_flags): New.
8457 (create_breakpoint): New flags parameter.
8458 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8459 * python/py-breakpoint.c (bppy_init): Adjust.
8460 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8461 * spu-tdep.c (spu_catch_start): Adjust.
8462
1e51243a
PA
84632012-03-13 Pedro Alves <palves@redhat.com>
8464 Hui Zhu <teawater@gmail.com>
8465 Yao Qi <yao@codesourcery.com>
8466
8467 * remote.c (struct remote_state): New field `starting_up'.
8468 (remote_start_remote): Set and clear it.
8469 (remote_can_download_tracepoint): If starting up, return false.
8470
fa3064dd
YQ
84712012-03-13 Yao Qi <yao@codesourcery.com>
8472
8473 * inferior.h (struct inferior): Remove fields any_syscall_count,
8474 syscalls_counts and total_syscalls_count. Move them to new
8475 struct catch_syscall_inferior_data in breakpoint.c.
8476 * breakpoint.c: Call DEF_VEC_I(int).
8477 (struct catch_syscall_inferior_data): New.
8478 (get_catch_syscall_inferior_data): New.
8479 (catch_syscall_inferior_data_cleanup): New.
8480 (insert_catch_syscall): Update to access data in
8481 struct catch_syscall_inferior_data.
8482 (insert_catch_syscall): Likewise.
8483 (remove_catch_syscall): Likewise.
8484 (remove_catch_syscall): Likewise.
8485 (is_syscall_catchpoint_enabled): Likewise.
8486 (add_catch_command): Likewise.
8487 (_initialize_breakpoint): Register cleanup.
8488 * breakpoint.h: Removed DEF_VEC_I(int).
8489 * dwarf2loc.c: Call DEF_VEC_I(int).
8490 * mi/mi-main.c: Likewise.
8491
460fac3c
MK
84922012-03-12 Mark Kettenis <kettenis@gnu.org>
8493
8494 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8495
e1aca11e
JB
84962012-03-12 Chris January <chris.january@allinea.com>
8497
8498 * aix-thread.c (_initialize_aix_thread): Add prototype.
8499 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8500 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8501
649c7061
JB
85022012-03-12 Joel Brobecker <brobecker@adacore.com>
8503
8504 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8505 include of "amd64-nat.h".
8506
0b49e518
TT
85072012-03-12 Tom Tromey <tromey@redhat.com>
8508
8509 * buildsym.c (record_pending_block): Now static.
8510 * buildsym.h: (record_pending_block): Remove.
8511
fd24fa94
AT
85122012-03-12 Andreas Tobler <andreast@fgznet.ch>
8513
8514 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8515
ba919b58
TT
85162012-03-09 Tom Tromey <tromey@redhat.com>
8517
8518 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8519 producer_is_gxx_lt_4_6>: New fields.
8520 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8521
a48e046c
TT
85222012-03-09 Tom Tromey <tromey@redhat.com>
8523
8524 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8525
6f5e9362
JB
85262012-03-08 Joel Brobecker <brobecker@adacore.com>
8527
8528 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8529 prototype.
8530
8d037db9
JB
85312012-03-08 Joel Brobecker <brobecker@adacore.com>
8532
8533 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8534
4e841acf
JK
85352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8536
8537 Fix -Wmissing-prototypes build.
8538 * arm-linux-nat.c (get_thread_id): Make it static.
8539 * xtensa-linux-nat.c (get_thread_id): Likewise.
8540
c6030312
JB
85412012-03-08 Joel Brobecker <brobecker@adacore.com>
8542
8543 * server.c (process_point_options): If a conditional expression
8544 is found, only print a message if remote_debug is nonzero.
8545
52323be9
LM
85462012-03-08 Luis Machado <lgustavo@codesourcery.com>
8547
8548 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8549 of internal error for unknown/unsupported types.
8550
7fe25d9b
JK
85512012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8552
8553 Fix CU relative vs. absolute DIE offsets.
8554 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8555 offset to offset_in_cu.
8556 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8557 TYPE_OFFSET.
8558 (dwarf2_fetch_die_location_block): Rename parameter offset to
8559 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8560
05e7c244
JK
85612012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8562
8563 * libunwind-frame.c: Rename to ...
8564 * ia64-libunwind-tdep.c: ... here.
8565 * libunwind-frame.h: Rename to ...
8566 * ia64-libunwind-tdep.h: ... here.
8567 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8568 ia64-libunwind-tdep.h.
8569 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8570 * README (--with-libunwind): Rename to ...
8571 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8572 * config.in: Regenerate.
8573 * configure: Regenerate.
8574 * configure.ac: New option --with-libunwind-ia64, make the
8575 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8576 Remove AC_DEFINE for HAVE_LIBUNWIND.
8577 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8578 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8579 Rename libunwind-frame in the general comment.
8580 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8581 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8582 Move forward declarations inside #ifndef. Rename libunwind-frame in
8583 the general comment.
8584 * ia64-tdep.c: Rename libunwind-frame.h #include to
8585 ia64-libunwind-tdep.h.
8586 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8587 (ia64_libunwind_descr): Rename libunwind-frame to
8588 ia64-libunwind-tdep in these function comments.
8589 * ia64-tdep.h: Rename libunwind-frame.h #include to
8590 ia64-libunwind-tdep.h.
8591 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8592 ia64-libunwind-tdep in that data comment.
8593
3755cbfd
JK
85942012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8595
8596 * libunwind-frame.h (struct frame_unwind): New declaration.
8597
d1cda5d9
JB
85982012-03-08 Joel Brobecker <brobecker@adacore.com>
8599
8600 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8601 "set breakpoint condition-evaluation" command.
8602
a0ba0aa2
TG
86032012-03-08 Tristan Gingold <gingold@adacore.com>
8604
8605 * sparc-stub.c: Move to stubs/
8606 * sh-stub.c: Likewise.
8607 * m68k-stub.c: Likewise.
8608 * m32r-stub.c: Likewise.
8609 * i386-stub.c: Likewise.
8610
7b8b6d6d
AS
86112012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8612
007cafee
AS
8613 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8614 linux_get_siginfo_type.
8615
7b8b6d6d
AS
8616 * m68klinux-nat.c: Include "gdb_proc_service.h".
8617 (PTRACE_GET_THREAD_AREA): Define.
8618 (ps_get_thread_area): New function.
8619
bba74b36
YQ
86202012-03-08 Yao Qi <yao@codesourcery.com>
8621
8622 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8623 `xsnprintf'.
8624 (remote_query_attached): Likewise.
8625 (remote_static_tracepoint_marker_at): Likewise.
8626 (remote_set_permissions): Likewise.
8627 (remote_detach_1, extended_remote_attach_1): Likewise.
8628 (send_g_packet, remote_vkill): Likewise.
8629 (extended_remote_disable_randomization): Likewise.
8630 (remote_add_target_side_condition): Likewise.
8631 (remote_insert_breakpoint): Likewise.
8632 (remote_remove_breakpoint): Likewise.
8633 (remote_insert_watchpoint): Likewise.
8634 (remote_remove_watchpoint): Likewise.
8635 (remote_insert_hw_breakpoint): Likewise.
8636 (remote_insert_hw_breakpoint): Likewise.
8637 (remote_remove_hw_breakpoint): Likewise.
8638 (remote_download_command_source): Likewise.
8639 (remote_download_tracepoint): Likewise.
8640 (remote_download_trace_state_variable): Likewise.
8641 (remote_disable_tracepoint): Likewise.
8642 (remote_trace_set_readonly_regions): Likewise.
8643 (remote_get_tracepoint_status): Likewise.
8644 (remote_trace_find): Likewise.
8645 (remote_get_trace_state_variable_value): Likewise.
8646 (remote_set_disconnected_tracing): Likewise.
8647 (remote_set_circular_trace_buffer): Likewise.
8648 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8649 (remote_use_agent): Likewise.
8650 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8651 Update callers.
8652
9b224c5e
PA
86532012-03-07 Pedro Alves <palves@redhat.com>
8654
8655 * NEWS: Mention QProgramSignals.
8656 * inferior.h (update_signals_program_target): Declare.
8657 * infrun.c: (update_signals_program_target): New.
8658 (handle_command): Update the target of the new program signals
8659 array changes.
8660 * remote.c (PACKET_QProgramSignals): New enum.
8661 (last_program_signals_packet): New global.
8662 (remote_program_signals): New.
8663 (remote_start_remote): Update the target with the program signals
8664 list.
8665 (remote_protocol_features): Add entry for QPassSignals.
8666 (remote_open_1): Free anc clear last_program_signals_packet.
8667 (init_remote_ops): Install remote_program_signals.
8668 * target.c (update_current_target): Adjust.
8669 (target_program_signals): New.
8670 * target.h (struct target_ops) <to_program_signals>: New field.
8671 (target_program_signals): Declare.
8672
74c48cbb
PA
86732012-03-07 Pedro Alves <palves@redhat.com>
8674
8675 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8676 extensions.
8677
0c13fc49
AS
86782012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8679
8680 * m68klinux-nat.c (getregs_supplies): Make static.
8681 (getfpregs_supplies): Likewise.
8682 (have_ptrace_getregs): Likewise.
8683
1281d2a3
JB
86842012-03-06 Joel Brobecker <brobecker@adacore.com>
8685
8686 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8687 in call to get_die_type_at_offset.
8688
2b03b41d
SS
86892012-03-06 Stan Shebs <stan@codesourcery.com>
8690
8691 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8692 * mi/mi-cmd-disas.c: Ditto.
8693 * mi/mi-cmd-env.c: Ditto.
8694 * mi/mi-cmd-file.c: Ditto.
8695 * mi/mi-cmd-stack.c: Ditto.
8696 * mi/mi-cmd-target.c: Ditto.
8697 * mi/mi-cmd-var.c: Ditto.
8698 * mi/mi-cmds.c: Ditto.
8699 * mi/mi-cmds.h: Ditto.
8700 * mi/mi-console.c: Ditto.
8701 * mi/mi-getopt.c: Ditto.
8702 * mi/mi-getopt.h: Ditto.
8703 * mi/mi-interp.c: Ditto.
8704 * mi/mi-main.c: Ditto.
8705 * mi/mi-out.c: Ditto.
8706 * mi/mi-parse.c: Ditto.
8707 * mi/mi-parse.h: Ditto.
8708 * mi/mi-symbol-cmds.c: Ditto.
8709
8710 * mi/mi-getopt.h: Move mi_opt struct up.
8711 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8712 return.
8713 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8714
c988ad87
TT
87152012-03-06 Tom Tromey <tromey@redhat.com>
8716
8717 * proc-service.c (ps_pglobal_lookup): Set the current program
8718 space.
8719
1b7c1b10
PA
87202012-03-06 Pedro Alves <palves@redhat.com>
8721
8722 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8723
3c182069
JB
87242012-03-05 Joel Brobecker <brobecker@adacore.com>
8725
8726 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8727
2e794194
JK
87282012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8729
8730 Code cleanup.
8731 * common/linux-osdata.c (linux_common_core_of_thread): New function
8732 comment.
8733 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8734 call by linux_common_core_of_thread.
8735 (linux_nat_core_of_thread_1): Remove.
8736 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8737 * linux-thread-db.c: Include linux-osdata.h.
8738 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8739 linux_common_core_of_thread.
8740
9f9f1f31
TT
87412012-03-05 Tom Tromey <tromey@redhat.com>
8742
8743 * value.c (value_primitive_field): Don't fetch contents for
8744 non-virtual bases.
8745
b7b189f3
TT
87462012-03-05 Tom Tromey <tromey@redhat.com>
8747
8748 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8749
05b8a789 87502012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8751
5538f557
JB
8752 * s390-nat.c: Include "gregset.h".
8753
75528772
JK
87542012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8757 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8758 (libunwind_load): New variable so_error, use it for dlerror. Try to
8759 load also LIBUNWIND_SO_7.
8760
275418ae
PA
87612012-03-05 Pedro Alves <palves@redhat.com>
8762
8763 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8764 is not NULL, and remove resulting dead code.
8765
5cbb9812
TS
87662012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8767
8768 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8769 prologue to sh_analyze_prologue.
8770 (sh_analyze_prologue): Make better use of such an upper limit, and
8771 generally be more cautious about accessing memory.
8772
541515ad
TT
87732012-03-05 Tom Tromey <tromey@redhat.com>
8774
8775 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8776 _initialize_ia64_hpux_tdep.
8777
b4d36fb8
PA
87782012-03-05 Pedro Alves <palves@redhat.com>
8779
24490249
PA
8780 PR gdb/13766
8781
b4d36fb8
PA
8782 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8783 the register state is clear, supply explicit zero, instead of
8784 marking the register unavailable.
8785
60c9a3c0
TG
87862012-03-05 Tristan Gingold <gingold@adacore.com>
8787
8788 * NEWS: Mention OpenVMS ia64 new target.
8789
696759ad
TG
87902012-03-05 Tristan Gingold <gingold@adacore.com>
8791
8792 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8793 (ia64_unw_accessors, ia64_unw_rse_accessors)
8794 (ia64_libunwind_descr): Declare.
8795 * ia64-vms-tdep.c: New file.
8796 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8797 (ia64_libunwind_descr): Make them public.
8798 * configure.tgt: Add ia64-*-*vms*.
8799 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8800 (ALLDEPFILES): Add ia64-vms-tdep.c
8801
34864976
TG
88022012-03-05 Tristan Gingold <gingold@adacore.com>
8803
169081d0
TG
8804 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8805 * remote.c (PACKET_qXfer_uib): New enum value.
8806 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8807 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8808 (_initialize_remote): Call add_packet_config_cmd for
8809 xfer:uib packet.
8810
88112012-03-05 Tristan Gingold <gingold@adacore.com>
8812
8813 * osabi.c (gdb_osabi_names): Add OpenVMS.
8814 (generic_elf_osabi_sniffer): Likewise.
8815 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8816
6597b100
JK
88172012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8818
8819 Removed unused code.
8820 * libunwind-frame.c (libunwind_frame_unwind)
8821 (libunwind_frame_base_address): Remove.
8822 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8823
87399aa1
YQ
88242012-03-04 Yao Qi <yao@codesourcery.com>
8825
8826 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8827 remove trailing new line.
8828 (agent_run_command, agent_run_command): Add _ markup.
8829 (agent_capability_check): Likewise.
8830
abf1152a
JK
88312012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8832
8833 * breakpoint.c (set_condition_evaluation_mode): Set
8834 CONDITION_EVALUATION_MODE unconditionally.
8835
5808517f
YQ
88362012-03-03 Yao Qi <yao@codesourcery.com>
8837
8838 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8839 * common/agent.h: Update declaration.
8840 * inf-child.c (inf_child_use_agent): New.
8841 (inf_child_can_use_agent): New.
8842 (inf_child_target): Initialize fields `to_use_agent'
8843 and `to_can_use_agent'.
8844 * agent.c (agent_new_objfile): New.
89b7509a 8845 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8846 observer.
8847
8848 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8849 New.
89b7509a 8850 (linux_target_install_ops): Initialize field
5808517f
YQ
8851 `to_static_tracepoint_markers_by_strid'.
8852 * remote.c (free_current_marker): Move it to ...
8853 * tracepoint.c (free_current_marker): ... here. New.
8854 (cleanup_target_stop): New.
8855 * tracepoint.h: Declare free_current_marker.
8856 * NEWS: Add one entry about `info static-tracepoint-marker'.
8857
58b4daa5
YQ
88582012-03-03 Yao Qi <yao@codesourcery.com>
8859
8860 * common/agent.c (agent_loaded_p): New.
89b7509a 8861 (agent_look_up_symbols): New global.
58b4daa5
YQ
8862 * common/agent.h: Declare agent_loaded_p.
8863
8ffcbaaf
YQ
88642012-03-03 Yao Qi <yao@codesourcery.com>
8865
8866 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8867 (agent_capability_check, agent_capability_invalidate): New.
8868 (symbol_list): New array element.
8869 * common/agent.h (enum agent_capa): New.
8870 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8871
d1feda86
YQ
88722012-03-03 Yao Qi <yao@codesourcery.com>
8873
8874 * target.h (struct target_ops) <to_use_agent>: New field.
8875 (struct target_ops) <to_can_use_agent>: New field.
8876 (target_use_agent, target_can_use_agent): New macro.
8877 * target.c (update_current_target): Update.
8878 * remote.c: New enum `PACKET_QAgent'.
8879 (remote_protocol_features): Add a new element.
8880 (remote_use_agent, remote_can_use_agent): New.
8881 (init_remote_ops): Initialize field `can_use_agent' with
8882 remote_can_use_agent. Intiailize field `use_agent' with
8883 remote_use_agent.
8884 * common/agent.c (use_agent): New global.
8885 * common/agent.h: Declare it.
8886 * tracepoint.c (info_static_tracepoint_markers_command): Add
8887 comment.
8888 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8889 (COMMON_OBS): Add common/agent.o and agent.o
8890 (common-agent.o): New rule.
8891 * agent.c: New.
8892
2fa291ac
YQ
88932012-03-03 Yao Qi <yao@codesourcery.com>
8894
8895 * common/agent.c: New.
8896 * common/agent.h: New.
8897 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8898 AC_CHECK_HEADERS.
8899 * configure, configh.in: Regenerated.
8900
9fc05685
KB
89012012-03-02 Kevin Buettner <kevinb@redhat.com>
8902
8903 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8904 unless it exists for this architecture.
8905
a5ee536b
JB
89062012-03-02 Joel Brobecker <brobecker@adacore.com>
8907
8908 * language.h (struct language_defn): New "method" la_read_var_value.
8909 * findvar.c: #include "language.h".
8910 (default_read_var_value): Renames read_var_value. Rewrite
8911 function description.
8912 (read_var_value): New function.
8913 * value.h (default_read_var_value): Add prototype.
8914 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8915 New functions.
8916 (ada_language_defn): Add entry for la_read_var_value.
8917 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8918 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8919 language_defn structures to add entry for new la_read_var_value
8920 field.
8921
f59f708a
PA
89222012-03-02 Tom Tromey <tromey@redhat.com>
8923 Pedro Alves <palves@redhat.com>
8924
8925 PR breakpoints/13776:
8926 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8927 breakpoints.
8928 (delete_longjmp_breakpoint_at_next_stop): New.
8929 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8930 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8931 before deleting the inferior. Add comments.
8932 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8933 breakpoints immediately, but only on next stop. Move that code
8934 next to where we mark other breakpoints for deletion.
8935
44099a67
JB
89362012-03-02 Joel Brobecker <brobecker@adacore.com>
8937
8938 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8939 marker.
8940 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8941 violation.
8942
2a2ef594
PA
89432012-03-02 Pedro Alves <palves@redhat.com>
8944
8945 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8946
b261e0c5
UW
89472012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8948
8949 Fix -Wmissing-prototypes build.
8950 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8951 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8952 (gdbsim_has_memory): Likewise.
8953
a95babbf
YQ
89542012-03-02 Yao Qi <yao@codesourcery.com>
8955
8956 Fix -Wmissing-prototypes build.
8957 * charset.c (phony_iconv_open): Make static.
8958 (phony_iconv_close, phony_iconv): Likewise.
8959 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8960 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8961 prototype.
8962 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8963 * ser-mingw.c (create_select_thread): Make static.
8964 * windows-termcap.c (tgetent): New prototype.
8965 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8966
d603d4b3
JK
89672012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8968
8969 Fix -Wmissing-prototypes build.
8970 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8971 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8972 (_initialize_loadable): New prototypes.
8973
7fb3ad1f
DE
89742012-03-02 Doug Evans <dje@google.com>
8975
8976 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8977 abbrev table, read_comp_unit will do it.
8978
693be288
JK
89792012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8980
8981 Fix -Wmissing-prototypes build.
8982 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8983 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8984 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8985 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8986 (_initialize_arm_symbian_tdep): New prototype.
8987 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8988 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8989 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8990 static.
8991 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8992 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8993 prototype.
8994 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8995 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8996 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8997 static.
8998 * moxie-tdep.c (moxie_process_record): Likewise.
8999 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9000 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9001 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9002 (_initialize_rl78_tdep): New prototype.
9003 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9004 (_initialize_rx_tdep): New prototype.
9005 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9006 (_initialize_darwin_solib): New prototype.
9007 * solib-spu.c: Include solib-spu.h.
9008 (_initialize_spu_solib): New prototype.
9009 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9010 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9011 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9012 (tic6x_software_single_step): Make it static.
9013 (_initialize_tic6x_tdep): New prototype.
9014
638234e5
JK
90152012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9016
9017 Fix -Wmissing-prototypes build.
9018 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9019 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9020
f4a6f16d
JK
90212012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9022
9023 Fix -Wmissing-prototypes build.
9024 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9025 (frv_have_stopped_data_address): Remove.
9026
04dcf5fa
JK
90272012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9028
9029 Fix -Wmissing-prototypes build.
9030 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9031 * sh-tdep.c: Include sh64-tdep.h.
9032 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9033 * sh64-tdep.c: Include sh64-tdep.h.
9034 * sh64-tdep.h: New file.
9035
19080931
MR
90362012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9037
9038 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9039
9aac7884
MR
90402012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9041
9042 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9043 sp_regnum once the gdbarch_init_osabi hook has been called.
9044
a385295e
MR
90452012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9046
9047 * mips-tdep.c (mips32_bc1_pc): New function.
9048 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9049 BPOSGE32 and BPOSGE64 instructions.
9050 (deal_with_atomic_sequence): Likewise.
9051 (mips32_instruction_has_delay_slot): Likewise.
9052
1faeff08 90532012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9054 Chris Dearman <chris@mips.com>
9055 Maciej W. Rozycki <macro@codesourcery.com>
9056 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9057
9058 * features/mips-dsp.xml: New file.
9059 * features/mips64-dsp.xml: New file.
9060 * features/mips-dsp-linux.xml: New file.
9061 * features/mips64-dsp-linux.xml: New file.
9062 * features/Makefile (WHICH): Add mips-dsp-linux and
9063 mips64-dsp-linux.
9064 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9065 * features/mips-dsp-linux.c: New file.
9066 * features/mips64-dsp-linux.c: New file.
9067 * regformats/mips-dsp-linux.dat: New file.
9068 * regformats/mips64-dsp-linux.dat: New file.
9069 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9070 registers.
9071 (mips64_linux_register_addr): Likewise.
9072 (mips64_linux_regsets_fetch_registers): Likewise.
9073 (mips64_linux_regsets_store_registers): Likewise.
9074 (mips64_linux_fetch_registers): Update call to
9075 mips64_linux_regsets_fetch_registers.
9076 (mips64_linux_store_registers): Update call to
9077 mips64_linux_regsets_store_registers.
9078 (mips_linux_read_description): Probe for DSP registers.
9079 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9080 and initialize_tdesc_mips64_dsp_linux.
9081 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9082 Remove padding of no longer used embedded register slots.
9083 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9084 (MIPS_RESTART_REGNUM): Redefine enum value.
9085 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9086 strings.
9087 (mips_tx39_reg_names): Likewise.
9088 (mips_linux_reg_names): New array of register names for Linux
9089 targets.
9090 (mips_register_name): Check for a null pointer in
9091 mips_processor_reg_names and return an empty string.
9092 (mips_register_type): Exclude embedded registers for the IRIX
9093 and Linux ABIs.
9094 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9095 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9096 DSP registers.
9097 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9098 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9099 (mips_gdbarch_init): Likewise. Initialize internal register
9100 indices for the Linux ABI. Use dynamic numbers to refer to
9101 registers, as applicable, while parsing the target description.
9102 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9103
263689d8
JB
91042012-03-01 Joel Brobecker <brobecker@adacore.com>
9105
9106 * frame.h (read_frame_register_unsigned): Fix typo in function
9107 description.
9108
f3b4f45c
PA
91092012-03-01 Pedro Alves <palves@redhat.com>
9110
9111 * jit-reader.in [!__cplusplus]
9112 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9113
b03a2011
PA
91142012-03-01 Pedro Alves <palves@redhat.com>
9115
9116 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9117 * configure: Regenerate.
9118
70221824
PA
91192012-03-01 Pedro Alves <palves@redhat.com>
9120
9121 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9122 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9123 (ftrace_command, strace_command): Make static.
9124 * d-lang.c (_initialize_d_language): Declare.
9125 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9126 * dwarf2loc.c (_initialize_dwarf2loc):
9127 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9128 * exec.c (exec_get_section_table): Make static.
9129 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9130 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9131 * inferior.c (remove_inferior_command, add_inferior_command)
9132 (clone_inferior_command): Make static.
9133 * linux-nat.c (linux_nat_thread_address_space)
9134 (linux_nat_core_of_thread): Make static.
9135 * linux-tdep.c (_initialize_linux_tdep): Declare.
9136 * objc-lang.c (_initialize_objc_lang): Declare.
9137 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9138 Make static.
9139 (_initialize_opencl_language): Declare.
9140 * record.c (_initialize_record): Declare.
9141 * remote.c (demand_private_info, remote_get_tib_address)
9142 (remote_supports_cond_tracepoints)
9143 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9144 Make static.
9145 * skip.c (_initialize_step_skip): Declare.
9146 * symtab.c (skip_prologue_using_lineinfo): Make static.
9147 * tracepoint.c (delete_trace_state_variable)
9148 (trace_variable_command, delete_trace_variable_command)
9149 (get_uploaded_tsv, find_matching_tracepoint_location)
9150 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9151 Make static.
9152 * value.c (pack_unsigned_long): Make static.
9153 * varobj.c (varobj_ensure_python_env): Make static.
9154 * windows-tdep.c (_initialize_windows_tdep): Declare.
9155 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9156
33fbcbee
PA
91572012-03-01 Pedro Alves <palves@redhat.com>
9158
9159 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9160 gdbarch parameter.
9161 (linux_init_abi): Install it as has_shared_address_space gdbarch
9162 callback.
9163
44d0cd3b
PA
91642012-03-01 Pedro Alves <palves@redhat.com>
9165
9166 * observer.c (observer_test_first_notification_function)
9167 (observer_test_second_notification_function)
9168 (observer_test_third_notification_function): Add declarations.
9169
ed01b82c
PA
91702012-03-01 Pedro Alves <palves@redhat.com>
9171
9172 * common/signals.c (default_target_signal_to_host)
9173 (default_target_signal_from_host): Move ...
9174 * arch-utils.c: ... here.
9175 * arch-utils.h (default_target_signal_to_host)
9176 (default_target_signal_from_host): Declare.
9177
9178 * common/signals.c (target_signal_from_command): Move ...
9179 * infrun.c: ... here.
9180 * inferior.h (target_signal_from_command): Declare.
9181 * target.h (target_signal_from_command)
9182 (default_target_signal_from_host, default_target_signal_to_host):
9183 Delete declarations.
9184
9185 * common/signals.c (_initialize_signals): Delete.
9186
c9b87335
PA
91872012-03-01 Pedro Alves <palves@redhat.com>
9188
9189 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9190 both __cplusplus and !__cplusplus.
9191
9340a6c0
PA
91922012-03-01 Pedro Alves <palves@redhat.com>
9193
9194 * psymtab.c (find_and_open_source): Delete declaration.
9195 * source.c (find_and_open_source): Move comment ...
9196 * source.h (find_and_open_source): ... to this new declaration.
9197
e451c4a1
PA
91982012-03-01 Pedro Alves <palves@redhat.com>
9199
9200 * inline-frame.c: Include inline-frame.h.
9201
983fb104
PA
92022012-03-01 Pedro Alves <palves@redhat.com>
9203
9204 * tui/tui-data.c (set_gen_win_origin): Delete.
9205 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9206 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9207
5fbce5df
PA
92082012-03-01 Pedro Alves <palves@redhat.com>
9209
9210 * remote.c (encode_actions): Delete declaration.
9211 * tracepoint.c (encode_actions): Make extern.
9212 * tracepoint.h (encode_actions): Declare.
9213
49a8461d
PA
92142012-03-01 Pedro Alves <palves@redhat.com>
9215
9216 * python/py-breakpoint.c: Include python.h.
9217 * python/py-continueevent.c (create_continue_event_object): Make
9218 static.
9219 * python/py-lazy-string.c (stpy_get_type): Make static.
9220 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9221 Make static.
9222 * python/py-utils.c (unicode_to_target_python_string): Make
9223 static.
9224 * python/py-value.c: Include python.h.
9225
9079102f
PA
92262012-03-01 Pedro Alves <palves@redhat.com>
9227
9228 * inferior.c (delete_threads_of_inferior): Delete.
9229
a298c5e8
PA
92302012-03-01 Pedro Alves <palves@redhat.com>
9231
9232 Import fallback definitions from glibc.
9233
9234 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9235 ps_prochandle): Forward declare.
9236 (ps_err_e): Use glibc's comments.
9237 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9238 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9239 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9240 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9241 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9242 (struct ps_prochandle): Adjust comment.
9243
e3084549
PA
92442012-03-01 Pedro Alves <palves@redhat.com>
9245
9246 * ada-lang.c (ada_modulus_from_name): Delete.
9247 * ada-lex.l (lexer_init): Make static.
9248
ad5f7d6e
PA
92492012-03-01 Pedro Alves <palves@redhat.com>
9250
9251 PR gdb/13767
9252
9253 * frame.c (read_frame_register_unsigned): New.
9254 * frame.h (read_frame_register_unsigned): Declare.
9255 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9256 Handle it.
9257 (print_i387_control_word): New parameter `control_p'. Handle it.
9258 (i387_print_float_info): Handle unavailable float registers.
9259
e0a4d108
KS
92602012-03-01 Keith Seitz <keiths@redhat.com>
9261
9262 * linespec.c (decode_line_2): Sort the list of methods
9263 alphabetically before presenting the user with a selection
9264 menu.
9265
122d1940
DE
92662012-03-01 Doug Evans <dje@google.com>
9267
9268 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9269 has_namespace_info.
9270 (dwarf2_read_abbrevs): Remove corresponding initialization.
9271
7d74f244
DE
92722012-03-01 Scott J. Goldman <scottjg@vmware.com>
9273
9274 * NEWS: Mention new python command class gdb.COMMAND_USER.
9275 * cli/cli-cmds.c (show_user): Print error when used on a python
9276 command.
9277 (init_cli_cmds): Update documentation strings for "show user" and
9278 "set/show max-user-call-depth" to clarify that it does not apply to
9279 python commands.
9280 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9281 error check.
9282 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9283 gdb python api.
9284 * top.c (execute_command): Only execute a user-defined command as a
9285 legacy macro if c->user_commands is set.
9286
e88acd96
TT
92872012-03-01 Tom Tromey <tromey@redhat.com>
9288
9289 * valprint.h (struct generic_val_print_decorations): New.
9290 (generic_val_print): Declare.
9291 * valprint.c (generic_val_print): New function.
9292 * p-valprint.c (p_decorations): New global.
9293 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9294 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9295 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9296 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9297 * m2-valprint.c (m2_decorations): New global.
9298 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9299 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9300 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9301 TYPE_CODE_ERROR>: Call generic_val_print.
9302 * f-valprint.c (f_decorations): New global.
9303 (f_val_print): Use print_function_pointer_address.
9304 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9305 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9306 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9307 generic_val_print.
9308 * c-valprint.c (c_decorations): New global.
9309 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9310 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9311 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9312 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9313 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9314 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9315 case.
9316
d3eab38a
TT
93172012-03-01 Tom Tromey <tromey@redhat.com>
9318
9319 * valprint.c (val_print): Update.
9320 * p-valprint (pascal_val_print): Return void.
9321 * p-lang.h (pascal_val_print): Return void.
9322 * m2-valprint.c (m2_val_print): Return void.
9323 * m2-lang.h (m2_val_print): Return void.
9324 * language.h (struct language_defn) <la_val_print>: Return void.
9325 * language.c (unk_lang_val_print): Return void.
9326 * jv-valprint.c (java_val_print): Return void.
9327 * jv-lang.h (java_val_print): Return void.
9328 * f-valprint.c (f_val_print): Return void.
9329 * f-lang.h (f_val_print): Return void.
9330 * d-valprint.c (d_val_print): Return void.
9331 (dynamic_array_type): Update.
9332 * d-lang.h (d_val_print): Return void.
9333 * c-valprint.c (c_val_print): Return void.
9334 * c-lang.h (c_val_print): Return void.
9335 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9336 void.
9337 * ada-lang.h (ada_val_print): Return void.
9338
35c0084b
TT
93392012-03-01 Tom Tromey <tromey@redhat.com>
9340
9341 * value.h (val_print): Return void.
9342 * valprint.c (val_print): Return void.
9343
a1f5dd1b
TT
93442012-03-01 Tom Tromey <tromey@redhat.com>
9345
9346 * value.h (common_val_print): Return void.
9347 * valprint.c (common_val_print): Return void.
9348
8e069a98
TT
93492012-03-01 Tom Tromey <tromey@redhat.com>
9350
9351 * value.h (value_print): Return void.
9352 * valprint.c (value_print): Return void.
9353 * p-valprint.c (pascal_value_print): Return void.
9354 * p-lang.h (pascal_value_print): Return void.
9355 * language.h (struct language_defn) <la_value_print>: Return
9356 void.
9357 * language.c (unk_lang_value_print): Return void.
9358 * jv-valprint.c (java_value_print): Return void.
9359 * jv-lang.h (java_value_print): Return void.
9360 * f-valprint.c (c_value_print): Don't declare.
9361 Include c-lang.h.
9362 * c-valprint.c (c_value_print): Return void.
9363 * c-lang.h (c_value_print): Return void.
9364 * ada-valprint.c (ada_value_print): Return void.
9365 * ada-lang.h (ada_value_print): Return void.
9366
be335936
TT
93672012-03-01 Tom Tromey <tromey@redhat.com>
9368
9369 * value.c (value_primitive_field): Handle virtual base classes.
9370
b0db66a7
TT
93712012-03-01 Tom Tromey <tromey@redhat.com>
9372
9373 * gdbtypes.h (struct vbase): Remove.
9374
132c57b4
TT
93752012-03-01 Tom Tromey <tromey@redhat.com>
9376
9377 * c-valprint.c (print_function_pointer_address): Move...
9378 * valprint.c: ... here. Make non-static.
9379 * m2-valprint.c (print_function_pointer_address): Remove.
9380 * valprint.h (print_function_pointer_address): Declare.
9381
e41eec66
JB
93822012-03-01 Joel Brobecker <brobecker@adacore.com>
9383
9384 * NEWS: Document the fact that one can provide a condition when
9385 creating an Ada exception catchpoint.
9386
19c37f24
TT
93872012-03-01 Tom Tromey <tromey@redhat.com>
9388
9389 * valprint.c (val_print_type_code_flags): Fix placement of
9390 trailing brace.
9391
f0fed3a3
JB
93922012-03-01 Joel Brobecker <brobecker@adacore.com>
9393
9394 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9395 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9396 environment variable before calling update-copyright.
9397
8ba85d85
JB
93982012-03-01 Joel Brobecker <brobecker@adacore.com>
9399
9400 * gnulib/extra/update-copyright: Update to the latest from
9401 gnulib's git repository.
9402 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9403 variable to 2 instead of 1.
9404
8219b1e8
JB
94052012-02-29 Joel Brobecker <brobecker@adacore.com>
9406
9407 * varobj.c (c_value_of_variable): Remove dead code.
9408
718cb7da
JB
94092012-02-29 Joel Brobecker <brobecker@adacore.com>
9410
9411 * ada-lex.p (processId): Do not modify already encoded IDs.
9412 Update function documentation.
9413
739593e0
JB
94142012-02-29 Joel Brobecker <brobecker@adacore.com>
9415
9416 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9417 "name" with "struct symbol *name_sym".
9418 * ada-exp.y (write_var_or_type): Update call to
9419 ada_find_renaming_symbol.
9420 "name" with "struct symbol *name_sym". Adjust Implementation
9421 accordingly. Adjust the function documentation.
9422
852dff6c
JB
94232012-02-29 Joel Brobecker <brobecker@adacore.com>
9424
9425 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9426 * ada-lang.c (ada_find_any_type): Add advance declaration.
9427 Make static. Replace ada_find_any_symbol by
9428 ada_find_any_type_symbol.
9429 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9430 Improve function description. Make static.
9431 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9432 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9433
1b611343
JB
94342012-02-29 Joel Brobecker <brobecker@adacore.com>
9435
9436 * ada-lang.c (struct tag_args): Delete.
9437 (ada_get_tsd_type): Function body moved up in source file.
9438 (ada_tag_name_1, ada_tag_name_2): Delete.
9439 (ada_get_tsd_from_tag): New function.
9440 (ada_tag_name_from_tsd): New function.
9441 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9442 to determine the tag name.
9443
41246937
JB
94442012-02-29 Joel Brobecker <brobecker@adacore.com>
9445
9446 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9447 declaration.
9448 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9449 function.
9450
ffde82bf
JB
94512012-02-29 Joel Brobecker <brobecker@adacore.com>
9452
9453 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9454
2ad01556
JB
94552012-02-29 Joel Brobecker <brobecker@adacore.com>
9456
9457 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9458 full searches.
9459
99b1c762
JB
94602012-02-29 Joel Brobecker <brobecker@adacore.com>
9461
9462 * ada-lang.c (constrained_packed_array_type): If there is a
9463 parallel XA type, use it to determine the array index type.
9464
2d4a02ee
JB
94652012-02-29 Joel Brobecker <brobecker@adacore.com>
9466
9467 * ada-valprint.c (ada_val_print_1): If our value is a reference
9468 to an array descriptor, dereference it before converting it
9469 to a simple array.
9470
c48db5ca
JB
94712012-02-29 Joel Brobecker <brobecker@adacore.com>
9472
9473 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9474 creating fixed value.
9475 (ada_value_ind, ada_coerce_ref, assign_component)
9476 (ada_evaluate_subexp): Remove call to unwrap_value before
9477 call to ada_to_fixed_value.
9478
2e6fda7d
JB
94792012-02-29 Joel Brobecker <brobecker@adacore.com>
9480
9481 * ada-lang.c (to_fixed_array_type): Set result's type name.
9482
5845583d
JB
94832012-02-29 Joel Brobecker <brobecker@adacore.com>
9484
9485 * ada-lang.c (catch_ada_exception_command_split): Add new
9486 argument cond_string. Add support for condition at end of
9487 "catch exception" commands.
9488 (ada_decode_exception_location): Add new argument cond_string.
9489 Update call to catch_ada_exception_command_split.
9490 (create_ada_exception_catchpoint): Add new argument cond_string.
9491 Set the breakpoint condition if needed.
9492 (catch_ada_exception_command): Update call to
9493 ada_decode_exception_location.
9494 (ada_decode_assert_location): Add function documentation.
9495 Add support for condition at end of "catch assert" command.
9496 (catch_assert_command): Update calls to ada_decode_assert_location
9497 and create_ada_exception_catchpoint.
9498
9a7f938f
JK
94992012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9500
9501 Fix disp-step-syscall.exp: fork: single step over fork.
9502 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9503 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9504 comment, change parameters gdbarch and ptid to regcache. Remove
9505 parameter regcache, initialize gdbarch from regcache here.
9506 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9507 New functions.
9508 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9509 instead.
9510 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9511 'syscall'. Make the 'int' check more strict.
9512
ffdf6de5
JK
95132012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9514
9515 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9516 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9517 (i386_linux_intx80_sysenter_syscall_record): ... here.
9518 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9519 Use the renamed function name.
9520
c70a6932
JK
95212012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9522
9523 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9524 * breakpoint.c (until_break_command): Likewise.
9525 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9526 * infcall.c (call_function_by_hand): Likewise.
9527 * infcmd.c (finish_forward): Likewise.
9528 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9529
05b8a789 95302012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9531
d4cd3da9
JB
9532 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9533 avoid variable assignments inside condition.
9534
6425366c
JK
95352012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9536
9537 Fix static analysis issue found by cppcheck.
9538 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9539 uninitialized BUF for size 2.
9540
c8cef75f 95412012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9542 Nathan Froyd <froydnj@codesourcery.com>
9543 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9544
9545 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9546 (mips16_instruction_has_delay_slot): Likewise.
9547 (mips_segment_boundary): Likewise.
9548 (mips_adjust_breakpoint_address): Likewise.
9549 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9550
473347ad 95512012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9552 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9553
9554 * infrun.c (handle_inferior_event): Don't proceed through
9555 shared library trampolines if stepping at the machine
9556 instruction level.
9557
cf233303
MR
95582012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9559
9560 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9561 too.
9562
cb2cf4ce
TS
95632012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9564
9565 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9566 (sh_stub_unwind_sniffer): New functions.
9567 (sh_stub_unwind): New variable.
9568 (sh_gdbarch_init): Wire everything.
9569
644cebc9
PA
95702012-02-27 Pedro Alves <palves@redhat.com>
9571
9572 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9573 (linux_nat_post_attach_wait): Adjust to use
9574 linux_proc_pid_is_stopped.
9575 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9576 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9577 based on pid_is_stopped from both linux-nat.c and
9578 gdbserver/linux-low.c, and renamed.
9579
283002cf
MR
95802012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9581
9582 * remote.c (remote_watchpoint_addr_within_range): New function.
9583 (init_remote_ops): Use it.
9584
9b3e86b1
MR
95852012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9586
9587 * target.h (target_watchpoint_addr_within_range): Document macro.
9588
e36930bb
PA
95892012-02-24 Pedro Alves <palves@redhat.com>
9590
9591 * stack.c (set_last_displayed_sal): Issue internal_error instead
9592 of warning, and issue it after clearing the last displayed sal.
9593
883bc8d1
PA
95942012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9595 Pedro Alves <palves@redhat.com>
9596
9597 * breakpoint.c (until_break_command): Install breakpoints after
9598 all frame manipulations.
9599
b775012e
LM
96002012-02-24 Luis Machado <lgustavo@codesourcery.com>
9601
9602 * remote.c (remote_supports_cond_breakpoints): New forward
9603 declaration.
9604 (remote_add_target_side_condition): New function.
9605 (remote_insert_breakpoint): Add target-side breakpoint
9606 conditional if supported.
9607 (remote_insert_hw_breakpoint): Likewise.
9608 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9609 hook.
9610
9611 * target.c (update_current_target): Inherit
9612 to_supports_evaluation_of_breakpoint_conditions.
9613 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9614
9615 * target.h (struct target_ops)
9616 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9617 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9618
9619 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9620 (condition_evaluation_both, condition_evaluation_auto,
9621 condition_evaluation_host, condition_evaluation_target,
9622 condition_evaluation_enums, condition_evaluation_mode_1,
9623 condition_evaluation_mode): New static globals.
9624 (translate_condition_evaluation_mode): New function.
9625 (breakpoint_condition_evaluation_mode): New function.
9626 (gdb_evaluates_breakpoint_condition_p): New function.
9627 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9628 (mark_breakpoint_modified): New function.
9629 (mark_breakpoint_location_modified): New function.
9630 (set_condition_evaluation_mode): New function.
9631 (show_condition_evaluation_mode): New function.
9632 (bp_location_compare_addrs): New function.
9633 (get_first_location_gte_addr): New helper function.
9634 (set_breakpoint_condition): Free condition bytecode if locations
9635 has become unconditional. Call mark_breakpoint_modified (...).
9636 (condition_command): Call update_global_location_list (1) for
9637 breakpoints.
9638 (breakpoint_xfer_memory): Use is_breakpoint (...).
9639 (is_breakpoint): New function.
9640 (parse_cond_to_aexpr): New function.
9641 (build_target_condition_list): New function.
9642 (insert_bp_location): Handle target-side conditional
9643 breakpoints and call build_target_condition_list (...).
9644 (update_inserted_breakpoint_locations): New function.
9645 (insert_breakpoint_locations): Handle target-side conditional
9646 breakpoints.
9647 (bpstat_check_breakpoint_conditions): Add comment.
9648 (bp_condition_evaluator): New function.
9649 (bp_location_condition_evaluator): New function.
9650 (print_breakpoint_location): Print information on where the condition
9651 will be evaluated.
9652 (print_one_breakpoint_location): Likewise.
9653 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9654 breakpoint location.
9655 (force_breakpoint_reinsertion): New functions.
9656 (update_global_location_list): Handle target-side breakpoint
9657 conditions.
9658 Reinsert locations that are already inserted if conditions have
9659 changed.
9660 (bp_location_dtor): Free agent expression bytecode.
9661 (disable_breakpoint): Call mark_breakpoint_modified (...).
9662 Call update_global_location_list (...) with parameter 1 for breakpoints.
9663 (disable_command): Call mark_breakpoint_location_modified (...).
9664 Call update_global_location_list (...) with parameter 1 for breakpoints.
9665 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9666 (enable_command): mark_breakpoint_location_modified (...).
9667 (_initialize_breakpoint): Update documentation and add
9668 condition-evaluation breakpoint subcommand.
9669
9670 * breakpoint.h: Include ax.h.
9671 (condition_list): New data structure.
9672 (condition_status): New enum.
9673 (bp_target_info) <cond_list>: New field.
9674 (bp_location) <condition_changed, cond_bytecode>: New fields.
9675 (is_breakpoint): New prototype.
9676
3788aec7
LM
96772012-02-24 Luis Machado <lgustavo@codesourcery.com>
9678
9679 * remote.c (remote_state) <cond_breakpoints>: New field.
9680 (PACKET_ConditionalBreakpoints): New enum.
9681 (remote_cond_breakpoint_feature): New function.
9682 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9683 (remote_supports_cond_breakpoints): New function.
9684 (_initialize_remote): Add new packet configuration for
9685 target-side conditional breakpoints.
9686
72895ff6
LM
96872012-02-24 Luis Machado <lgustavo@codesourcery.com>
9688
9689 * NEWS: Mention target-side conditional breakpoint support,
9690 new condition-evaluation breakpoint subcommand and remote
9691 packet extensions.
9692
dea2aa5f
LM
96932012-02-24 Luis Machado <lgustavo@codesourcery.com>
9694
9695 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9696 number.
9697
8a8bc27f
TS
96982012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9699
9700 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9701 (after_prologue): Remove.
9702
6b446fdf
TT
97032012-02-23 Tom Tromey <tromey@redhat.com>
9704
9705 * jv-valprint.c (java_val_print): Remove dead code.
9706
ef59abfb
TG
97072012-02-23 Tristan Gingold <gingold@adacore.com>
9708
a09130f9
PA
9709 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9710 known_tasks_element and known_tasks_length fields.
9711 (read_known_tasks_array): Change argument type. Use pointer type
9712 and number of elements from DATA. Adjust.
9713 (read_known_tasks_list): Likewise.
9714 (get_known_tasks_addr): Remove.
9715 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9716 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9717 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9718
def166f6
JK
97192012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9720
9721 PR backtrace/13716
9722 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9723 it after set_momentary_breakpoint.
9724
aeaa2474
SA
97252012-02-22 Sterling Augustine <saugustine@google.com>
9726
9727 PR 13689:
9728 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9729
feea76c2
GB
97302012-02-22 Gary Benson <gbenson@redhat.com>
9731
9732 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9733 (find_slot_in_mapped_hash): Likewise.
9734
f06e05e0
JK
97352012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9736
9737 PR build/13638
9738 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9739 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9740 * configure: Regenerate.
9741
b54a8fd7
PA
97422012-02-21 Tristan Gingold <gingold@adacore.com>
9743 Pedro Alves <palves@redhat.com>
9744
9745 * ia64-tdep.c: Do not include libunwind-ia64.h.
9746 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9747 Include libunwind-ia64.h instead of libunwind.h.
9748 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9749 for libunwind.h existence.
9750 * configure, config.in: Regenerate.
9751
dfcee124
AG
97522012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9753
9754 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9755 instead of value_rtti_target_type.
9756 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9757 instead of value_rtti_target_type.
9758 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9759 value_rtti_target_type.
9760 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9761 (value_rtti_target_type): Rename to ...
9762 (value_rtti_indirect_type): ... here and make it indirect. Update
9763 function comment.
9764 * value.c (readjust_indirect_value_type): New function.
9765 (coerce_ref): Support for enclosing type setting for references
9766 with readjust_indirect_value_type.
9767 * value.h (readjust_value_type): New declaration.
9768 (value_rtti_target_type): Rename to ...
9769 (value_rtti_indirect_type): ... here.
9770
02568277
AG
97712012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9772
9773 * MAINTAINERS (Write After Approval): Add myself to the list.
9774
10c07b7e 97752012-02-20 Doug Evans <dje@google.com>
28ee876a 9776
d82ea6a8
DE
9777 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9778 Rename objfile_p_char parameter to objfilep.
9779 (build_objfile_section_table): Result is now void. All callers
9780 updated.
9781 * objfiles.h (struct objfile): Tweak comments, whitespace.
9782 (build_objfile_section_table): Update.
9783
28ee876a
DE
9784 * elfread.c (elf_symfile_segments): Fix warning text.
9785
24c79950
TT
97862012-02-20 Tom Tromey <tromey@redhat.com>
9787
9788 PR gdb/13498:
9789 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9790 particular set of file names once.
9791 (dw2_map_symbol_filenames): Likewise.
9792
3a9b40b6
JK
97932012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9794
9795 Code cleanup.
9796 * main.c (write_files): Remove the declaration.
9797 (external_editor_command): Move the declaration ...
9798 [GDBTK] (external_editor_command): ... here. Fix the comment.
9799
4d0795ca
TT
98002012-02-20 Tom Tromey <tromey@redhat.com>
9801
9802 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9803 extraneous block.
9804
637fd620
TG
98052012-02-20 Tristan Gingold <gingold@adacore.com>
9806
9807 * darwin-nat.h (enum darwin_msg_state): Add comments.
9808
6f124894
TG
98092012-02-20 Tristan Gingold <gingold@adacore.com>
9810
9811 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9812 value.
9813
2e6e3d9c
JB
98142012-20-18 Joel Brobecker <brobecker@adacore.com>
9815
9816 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9817 between function description and implementation.
9818
2e8265fd
TT
98192012-02-17 Tom Tromey <tromey@redhat.com>
9820
9821 PR python/12070:
9822 * python/py-event.c (event_object_getset): New global.
9823 (event_object_type): Reference it.
9824 * python/py-type.c (field_object_getset): New global.
9825 (field_object_type): Reference it.
9826 * python/python-internal.h (gdb_py_generic_dict): Declare.
9827 * python/py-utils.c (gdb_py_generic_dict): New function.
9828
8544a150 98292012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9830
8544a150 9831 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9832
ca193e27
TS
98332012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9834
9835 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9836 TYPE_CALLING_CONVENTION annotation.
9837
e5586183
KB
98382012-02-16 Kevin Buettner <kevinb@redhat.com>
9839
9840 * MAINTAINERS: Add rx to target ISA section.
9841 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9842 (ALLDEPFILES): Add rx-tdep.c.
9843
7dcd53a0
TT
98442012-02-16 Tom Tromey <tromey@redhat.com>
9845
9846 * symfile.c (symbol_file_add_main_1): Use inferior's
9847 symfile_flags.
9848 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9849 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9850 inferior.
9851 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9852 inferior.
9853 (follow_exec): Use inferior's symfile_flags.
9854 * inferior.h (struct inferior) <symfile_flags>: New field.
9855
ddd60447
MF
98562012-02-16 Mike Frysinger <vapier@gentoo.org>
9857
9858 PR gdb/9734:
9859 * remote-sim.c (gdbsim_create_inferior): Call error() when
9860 sim_create_inferior() fails.
9861
b0d32fb6
TG
98622012-02-16 Josh Matthews <josh@joshmatthews.net>
9863
9864 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9865
9addecb9
TT
98662012-02-16 Tom Tromey <tromey@redhat.com>
9867
9868 PR c++/13653:
9869 * thread.c (struct current_thread_cleanup) <was_removable>: New
9870 field.
9871 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9872 (make_cleanup_restore_current_thread): Initialize new field.
9873
a58b110a
KB
98742012-02-15 Kevin Buettner <kevinb@redhat.com>
9875
9876 * MAINTAINERS: Add rl78 to target ISA section.
9877 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9878 (ALLDEPFILES): Add rl78-tdep.c.
9879 * NEWS: Mention rl78 as a new target.
9880
4cb6da1c
AR
98812012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9882
9883 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9884 data.
9885 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9886
3af2590d
TT
98872012-02-15 Tom Tromey <tromey@redhat.com>
9888
9889 PR gdb/12659:
9890 * infcmd.c (registers_info): Print just the current register's
9891 name.
9892
c6910659
TT
98932012-02-15 Tom Tromey <tromey@redhat.com>
9894
9895 * python/py-symbol.c (sympy_value): Use _().
9896
7cee1e54
PA
98972012-02-15 Pedro Alves <palves@redhat.com>
9898
9899 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9900 output to be like native targets'.
9901 (remote_pid_to_str): Special case the null ptid.
9902
816338b5
SS
99032012-02-14 Stan Shebs <stan@codesourcery.com>
9904
9905 * NEWS: Mention enable count command.
9906 * breakpoint.h (struct breakpoint): New field enable_count.
9907 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9908 (enable_breakpoint): Add arg to call.
9909 (struct disp_data): New struct.
9910 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9911 (do_map_enable_once_breakpoint): Create a struct and pass it.
9912 (do_map_enable_delete_breakpoint): Ditto.
9913 (do_map_enable_count_breakpoint): New function.
9914 (enable_count_command): New function.
9915 (bpstat_stop_status): Decrement enable_count.
9916 (print_one_breakpoint_location): Report enable count.
9917 (_initialize_breakpoint): Add enable count command.
9918
c47a44f4
KB
99192012-02-14 Kevin Buettner <kevinb@redhat.com>
9920
9921 * rl78-tdep.c (reggroups.h): Include.
9922 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9923 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9924 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9925 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9926 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9927 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9928 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9929 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9930 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9931 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9932 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9933 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9934 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9935 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9936 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9937 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9938 beginning of register list.
9939 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9940 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9941 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9942 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9943 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9944 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9945 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9946 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9947 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9948 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9949 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9950 the pseudo registers. Rearrange other pseudo registers too so
9951 that the bank registers appear at the end.
9952 (rl78_register_type): Account for the fact that the byte sized
9953 bank registers are now pseudo-registers.
9954 (rl78_register_name): Rearrange the register name array. Make
9955 initial set of raw banked registers inaccessible.
9956 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9957 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9958 case for copying bytes back and forth between raw and pseudo
9959 versions of the banked registers. Update other cases to reflect
9960 the changed names.
9961 (rl78_return_value): Update to account for changed names of
9962 raw registers.
9963 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9964 rl78_register_sim_regno().
9965
e4569f1e
KB
99662012-02-14 Kevin Buettner <kevinb@redhat.com>
9967
9968 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9969 the name parameter being passed to find_pc_partial_function().
9970
7a05aae7
JK
99712012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9972
9973 * MAINTAINERS: Step down from being ia64 target maintainer.
9974
11fde611
JK
99752012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9978 compilation warning.
9979
57008375
JK
99802012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9981
9982 Fix crash on loaded shlibs without loaded exec_bfd.
9983 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9984 (set_section_command): Replace exec_bfd by p->bfd.
9985
ff3c9849
TT
99862012-02-10 Tom Tromey <tromey@redhat.com>
9987
9988 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9989 when we have a C++ qualified name.
9990
db2b9fdd
PA
99912012-02-10 Pedro Alves <palves@redhat.com>
9992
9993 * inferior.c (inferior_pid_to_str): New.
9994 (print_inferior, inferior_command): Use it.
9995
12cd34f3
PA
99962012-02-10 Pedro Alves <palves@redhat.com>
9997
9998 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9999 the test CFLAGS.
10000 * configure: Regenerate.
10001
e871429d
JK
100022012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10003
10004 * linespec.c (decode_line_internal): Fix comment correctness.
10005
1916efaf
PA
100062012-02-09 Valery Khromov <valery.khromov@gmail.com>
10007
10008 PR gdb/12953
10009 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10010 * amd64bsd-nat.c: Add support for debug registers (adapted from
10011 i386bsd-nat.c).
10012 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10013 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10014 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10015 (amd64bsd_dr_get_control): New functions.
10016 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10017 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10018 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10019 watchpoints initialization.
10020 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10021
f4859d94
JK
100222012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10023
10024 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10025 flds_bnds.fields.
10026 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10027
c56a97f9
JK
100282012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10029
10030 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10031
1a119f36
JB
100322012-02-08 Joel Brobecker <brobecker@adacore.com>
10033
10034 * language.h (symbol_name_cmp_ftype): Renames
10035 symbol_name_match_p_ftype.
10036 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10037 la_get_symbol_name_match_p.
10038 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10039 ada_get_symbol_name_match_p. Update comment.
10040 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10041 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10042 Renames symbol_name_match_p. Update field type.
10043 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10044 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10045 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10046 "la_get_symbol_name_cmp" in comments.
10047 * language.c: Likewise.
10048
c71bb1cf
RO
100492012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10050
10051 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10052 %eflags offset.
10053 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10054 (amd64_sol2_gregset32_reg_offs): Likewise.
10055
4b2d20a5
TG
100562012-02-08 Joel Brobecker <brobecker@adacore.com>
10057
10058 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10059 of the returned BFD is allocated by GDB.
10060
f0823d2c
TT
100612012-02-07 Tom Tromey <tromey@redhat.com>
10062
10063 PR python/12027:
10064 * python/python-internal.h (frame_object_type): Declare.
10065 * python/py-symbol.c (sympy_needs_frame): New function.
10066 (sympy_value): New function.
10067 (symbol_object_getset): Add "needs_frame".
10068 (symbol_object_methods): Add "value".
10069 * python/py-frame.c (frame_object_type): No longer static.
10070
64e7d9dd
TT
100712012-02-07 Tom Tromey <tromey@redhat.com>
10072
10073 PR python/13599:
10074 * python/py-symbol.c (sympy_line): New function.
10075 (symbol_object_getset): Add "line".
10076
1d6b2d2b
TT
100772012-02-07 Tom Tromey <tromey@redhat.com>
10078
10079 * charset.c (find_charset_names): Check 'in' against NULL.
10080
0d5cff50
DE
100812012-02-06 Doug Evans <dje@google.com>
10082
10083 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10084 and fields.name members from char * to const char *. All uses updated.
10085 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10086 from char * to const char *. All uses updated.
10087 (type_name_no_tag): Update.
10088 (lookup_unsigned_typename, lookup_signed_typename): Update.
10089 * gdbtypes.c (type_name_no_tag): Change result type
10090 from char * to const char *. All callers updated.
10091 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10092 name parameter from char * to const char *.
10093 * symtab.h (struct cplus_specific): Change type of demangled_name
10094 member from char * to const char *. All uses updated.
10095 (struct general_symbol_info): Change type of name and
10096 mangled_lang.demangled_name members from char * to const char *.
10097 All uses updated.
10098 (symbol_get_demangled_name, symbol_natural_name): Update.
10099 (symbol_demangled_name, symbol_search_name): Update.
10100 * symtab.c (symbol_get_demangled_name): Change result type
10101 from char * to const char *. All callers updated.
10102 (symbol_natural_name, symbol_demangled_name): Ditto.
10103 (symbol_search_name): Ditto.
10104 (completion_list_add_name): Change type of symname,sym_text,
10105 text,word parameters from char * to const char *.
10106 (completion_list_objc_symbol): Change type of sym_text,
10107 text,word parameters from char * to const char *.
10108 * ada-lang.c (find_struct_field): Change type of name parameter
10109 from char * to const char *.
10110 (encoded_ordered_before): Similarly for N0,N1 parameters.
10111 (old_renaming_is_invisible): Similarly for function_name parameter.
10112 (ada_type_name): Change result type from char * to const char *.
10113 All callers updated.
10114 * ada-lang.h (ada_type_name): Update.
10115 * buildsym.c (hashname): Change type of name parameter
10116 from char * to const char *.
10117 * buildsym.h (hashname): Update.
10118 * dbxread.c (end_psymtab): Change type of include_list parameter
10119 from char ** to const char **.
10120 * dwarf2read.c (determine_prefix): Change result type
10121 from char * to const char *. All callers updated.
10122 * f-lang.c (find_common_for_function): Change type of name, funcname
10123 parameters from char * to const char *.
10124 * f-lang.c (find_common_for_function): Update.
10125 * f-valprint.c (list_all_visible_commons): Change type of funcname
10126 parameters from char * to const char *.
10127 * gdbarch.sh (static_transform_name): Change type of name parameter
10128 and result from char * to const char *.
10129 * gdbarch.c: Regenerate.
10130 * gdbarch.h: Regenerate.
10131 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10132 of name parameter from char * to const char *.
10133 * jv-lang.c (java_primitive_type_from_name): Ditto.
10134 (java_demangled_signature_length): Similarly for signature parameter.
10135 (java_demangled_signature_copy): Ditto.
10136 (java_demangle_type_signature): Ditto.
10137 * jv-lang.h (java_primitive_type_from_name): Update.
10138 (java_demangle_type_signature): Update.
10139 * objc-lang.c (specialcmp): Change type of a,b parameters
10140 from char * to const char *.
10141 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10142 from char * to const char *. All callers updated.
10143 * p-lang.h (is_pascal_string_type): Update.
10144 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10145 of name parameter from char * to const char *.
10146 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10147 * utils.c (fprintf_symbol_filtered): Ditto.
10148 * defs.h (fprintf_symbol_filtered): Update.
10149 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10150 * stabsread.h (end_psymtab): Update.
10151 * stack.c (find_frame_funname): Change type of funname parameter
10152 from char ** to const char **.
10153 * stack.h (find_frame_funname): Update.
10154 * typeprint.c (type_print): Change type of varstring parameter
10155 from char * to const char *.
10156 * value.h (type_print): Update.
10157 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10158 from char * to const char *. All callers updated.
10159 (xcoff_end_psymtab): Change type of include_list parameter
10160 from char ** to const char **. All callers updated.
10161 (swap_sym): Similarly for name parameter. All callers updated.
10162 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10163 Use xstrdup.
10164 (process_coff_symbol): Use xstrdup.
10165 * stabsread.c (stabs_method_name_from_physname): Renamed from
10166 update_method_name_from_physname. Change result type from void
10167 to char *. All callers updated.
10168 (read_member_functions): In has_destructor case, store name in objfile
10169 obstack instead of malloc space. In !has_stub case, fix mem leak.
10170
5579a92e
TT
101712012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10172
10173 * configure: Rebuild.
10174 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10175 LDFLAGS.
10176
9058f767
KB
101772012-02-03 Kevin Buettner <kevinb@redhat.com>
10178
10179 * configure.tgt (rl78-*-elf): New target.
10180 * rl78-tdep.c: New file.
10181
5b37825d
PW
101822012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10183
10184 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10185 and continue the loop. Add QUIT statement.
10186
e009ee71
TT
101872012-02-03 Tom Tromey <tromey@redhat.com>
10188
10189 PR gdb/13596:
10190 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10191 bfd_lookup_symbol_from_symtab.
10192 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10193 gdb_bfd_lookup_symbol_from_symtab.
10194
f7e44f65
JB
101952012-02-03 Joel Brobecker <brobecker@adacore.com>
10196
10197 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10198 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10199 symbol. Add assertion that sym2 is never NULL.
10200
2c02bd72
DE
102012012-02-02 Doug Evans <dje@google.com>
10202
10203 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10204 "name" parameter to const char ** from char **. All callers updated.
10205 (find_pc_partial_function): Ditto.
10206 (cache_pc_function_name): Change type to const char * from char *.
10207 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10208 (find_pc_partial_function): Update.
10209 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10210 type of "name" parameter to const char * from char *.
10211 All uses updated.
10212 * arch-utils.c (generic_in_solib_return_trampoline): Change
10213 type of "name" parameter to const char * from char *.
10214 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10215 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10216 type of "name" parameter to const char * from char *.
10217 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10218 * gdbarch.c: Regenerate.
10219 * gdbarch.h: Regenerate.
10220 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10221 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10222 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10223 type of "name" parameter to const char * from char *.
10224 * skip.c (skip_function_pc): Ditto.
10225 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10226 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10227 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10228 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10229 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10230 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10231 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10232 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10233 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10234
e886a173
PA
102352012-02-02 Pedro Alves <palves@redhat.com>
10236
10237 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10238 the current inferior has no execution. Make sure the current
10239 remote process matches gdb's current inferior.
10240
c709a7c2
TT
102412012-02-02 Tom Tromey <tromey@redhat.com>
10242
10243 PR gdb/13405:
10244 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10245 read-only memory.
10246
f149aabd
TT
102472012-02-02 Tom Tromey <tromey@redhat.com>
10248
10249 PR gdb/9307:
10250 * symtab.c (lookup_language_this): Set block_found.
10251
03bef283
TT
102522012-02-01 Tom Tromey <tromey@redhat.com>
10253
10254 PR gdb/13431:
10255 * jit.c (struct jit_inferior_data): Rewrite.
10256 (struct jit_objfile_data): New.
10257 (get_jit_objfile_data): New function.
10258 (add_objfile_entry): Update.
10259 (jit_read_descriptor): Return int. Replace descriptor_addr
10260 argument with inf_data. Update. Don't call error.
10261 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10262 descriptor here.
10263 (jit_inferior_init): Don't look up descriptor. Don't call error.
10264 (jit_reset_inferior_data_and_breakpoints)
10265 (jit_inferior_created_observer): Remove.
10266 (jit_inferior_exit_hook): Update.
10267 (jit_executable_changed_observer): Remove.
10268 (jit_event_handler): Update.
10269 (free_objfile_data): Reset inferior data if needed.
10270 (_initialize_jit): Update.
10271
f0bbc364
TT
102722012-02-01 Tom Tromey <tromey@redhat.com>
10273
10274 * jit.c (bfd_open_from_target_memory): Move higher in file.
10275
47c1316c
TG
102762012-02-01 Tristan Gingold <gingold@adacore.com>
10277
10278 * libunwind-frame.c (libunwind_load): Display message if dlopen
10279 failed.
10280
8e704927
GB
102812012-02-01 Gary Benson <gbenson@redhat.com>
10282
09c7a31f 10283 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10284 (iterate_over_symbols): Use the above.
10285 * symtab.c (iterate_over_symbols): Likewise.
10286 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10287 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10288 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10289 (iterate_name_matcher): Document return values.
10290 (collect_one_symbol): Likewise.
10291 (collect_function_symbols): Likewise.
10292 (collect_symbols): Likewise.
10293
d9680e73
TT
102942012-02-01 Tom Tromey <tromey@redhat.com>
10295
10296 * ada-lang.c (resolve_subexp): Update.
10297 (ada_lookup_symbol_list): Add 'full_search' argument.
10298 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10299 ada_lookup_symbol_list.
10300 (ada_lookup_encoded_symbol): Update.
10301 (get_var_value): Update.
10302 * ada-exp.y (block_lookup): Update.
10303 (write_var_or_type): Update.
10304 (write_name_assoc): Update.
10305 * ada-lang.h (ada_lookup_symbol_list): Update.
10306
72e1143f
TT
103072012-01-31 Tom Tromey <tromey@redhat.com>
10308
10309 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10310 comment.
10311
ab2d2ad3
DE
103122012-01-31 Doug Evans <dje@google.com>
10313
10314 * symtab.h: Remove outdated comment.
e9111bf7 10315 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10316
bc884eba
JB
103172012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10318
10319 Fix build error in Darwin port.
10320 * i386-darwin-nat.c: Include i386-nat.h.
10321
8fc3fc34
TT
103222012-01-30 Tom Tromey <tromey@redhat.com>
10323
10324 PR breakpoints/13568:
10325 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10326 argument. Check for recursive includes.
10327 (dwarf_decode_macros): Create an include hash.
10328
5d853008
ME
103292012-01-30 Michael Eager <eager@eagercon.com>
10330
10331 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10332 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10333 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10334 (powerpc_linux_in_plt_stub): New function.
10335 (powerpc_linux_in_dynsym_resolve_code): New function.
10336 (ppc_skip_trampoline_code): New function.
10337 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10338 Use glibc_skip_solib_resolver.
10339
40478521
JK
103402012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10341
10342 Code cleanup: Make 1440 bytes of data segment read-only.
10343 * arch-utils.c (endian_enum): Make it const char *const [].
10344 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10345 Likewise.
10346 * breakpoint.c (always_inserted_enums): Likewise.
10347 * cli/cli-cmds.c (script_ext_enums): Likewise.
10348 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10349 enumlist parameter const char *const *.
10350 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10351 const char *const *.
10352 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10353 parameter const char *const *.
10354 * cris-tdep.c (cris_modes): Make it const char *const [].
10355 * filesystem.c (target_file_system_kinds): Likewise.
10356 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10357 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10358 (can_use_displaced_stepping_enum, scheduler_enums)
10359 (exec_direction_names): Likewise.
10360 * language.c (_initialize_language): Make the type_or_range_names and
10361 case_sensitive_names variables const char *const [].
10362 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10363 * python/python.c (python_excp_enums): Likewise.
10364 * remote.c (interrupt_sequence_modes): Likewise.
10365 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10366 * serial.c (logbase_enums): Likewise.
10367 * sh-tdep.c (sh_cc_enum): Likewise.
10368 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10369 Likewise.
10370 * symtab.c (multiple_symbols_modes): Likewise.
10371 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10372 Likewise.
10373 * utils.c (internal_problem_modes): Likewise.
10374
b3b8b934
JK
103752012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10376
10377 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10378 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10379 result.
10380
8c85a4e2
DE
103812012-01-27 Doug Evans <dje@google.com>
10382
10383 * configure.ac (with_python): Fix absolute path handling for win32.
10384 * configure: Regenerate.
10385
78d8b4d7
DE
103862012-01-26 Doug Evans <dje@google.com>
10387
eca864fe
DE
10388 * symtab.c: Whitespace cleanup, no code changes.
10389
7e082072
DE
10390 * symtab.c (lookup_symbol_in_language): Improve comment.
10391 (lookup_symbol_aux): Fix comment.
10392
7dc25483
DE
10393 * psymtab.c (add_psymbol_to_list): Result is now "void".
10394 * psympriv.h (add_psymbol_to_list): Update.
10395
78d8b4d7
DE
10396 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10397
4c63965b
JK
103982012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10399
10400 Do not open script filenames twice.
10401 * cli/cli-cmds.c (source_script_from_stream): Pass to
10402 source_python_script also STREAM.
10403 * python/py-auto-load.c (source_section_scripts): Pass to
10404 source_python_script_for_objfile also STREAM.
10405 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10406 also INPUT.
10407 * python/python-internal.h (source_python_script_for_objfile): New
10408 parameter file, rename parameter file to filename.
10409 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10410 instead if !_WIN32. Update the function comment.
10411 (source_python_script, source_python_script_for_objfile)
10412 (source_python_script): New parameter file, rename parameter file to
10413 filename. Pass FILENAME to python_run_simple_file.
10414 * python/python.h (source_python_script): New parameter file, rename
10415 parameter file to filename.
10416
88f38a04
PA
104172012-01-26 Pedro Alves <palves@redhat.com>
10418
10419 * corelow.c (core_has_fake_pid): Delete.
10420 (core_close): Delete references to `core_has_fake_pid'.
10421 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10422 (core_open): Delete references to `core_has_fake_pid'.
10423 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10424 the removed global.
10425
e078317b
JB
104262012-01-26 Joel Brobecker <brobecker@adacore.com>
10427
10428 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10429 Remove language parameter from name_matcher. Adjust the comment.
10430 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10431 Remove language parameter.
10432 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10433 * linespec.c (iterate_name_matcher): Likewise.
10434 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10435 name_matcher. Adjust call accordingly.
10436 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10437 (maintenance_check_symtabs): Adjust type of parameter "fun".
10438 * psymtab.h (maintenance_check_symtabs): Likewise.
10439
74ccd7f5
JB
104402012-01-26 Joel Brobecker <brobecker@adacore.com>
10441
10442 * language.h (symbol_name_match_p_ftype): New typedef.
10443 (struct language_defn): Replace field la_symbol_name_compare
10444 by la_get_symbol_name_match_p.
10445 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10446 (ada_language_defn): Use it.
10447 * linespec.c (struct symbol_matcher_data): New type.
10448 (iterate_name_matcher): Rewrite.
10449 (iterate_over_all_matching_symtabs): Pass a pointer to
10450 a symbol_matcher_data struct to expand_symtabs_matching
10451 instead of just the lookup name.
10452 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10453 opencl-lang.c, p-lang.c, language.c: Delete field
10454 la_symbol_name_compare, and replace by NULL for new field
10455 la_get_symbol_name_match_p.
10456 * symfile.h (struct quick_symbol_functions): Update comment.
10457
5d268276
TT
104582012-01-25 Tom Tromey <tromey@redhat.com>
10459
10460 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10461 dereferencing.
10462
edcc5120
TT
104632012-01-24 Tom Tromey <tromey@redhat.com>
10464
10465 PR symtab/12406:
10466 * solib.c (update_solib_list): Update the program space's
10467 added_solibs and deleted_solibs fields.
10468 * progspace.h (struct program_space) <added_solibs,
10469 deleted_solibs>: New fields.
10470 (clear_program_space_solib_cache): Declare.
10471 * progspace.c (release_program_space): Call
10472 clear_program_space_solib_cache.
10473 (clear_program_space_solib_cache): New function.
10474 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10475 bpstat_stop_status. Use handle_solib_event.
10476 * breakpoint.c: Include gdb_regex.h.
10477 (print_solib_event): New function.
10478 (bpstat_print): Use print_solib_event.
10479 (bpstat_stop_status): Add special case for bp_shlib_event.
10480 (handle_solib_event): New function.
10481 (bpstat_what): Use handle_solib_event.
10482 (struct solib_catchpoint): New.
10483 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10484 (breakpoint_hit_catch_solib, check_status_catch_solib)
10485 (print_it_catch_solib, print_one_catch_solib)
10486 (print_mention_catch_solib, print_recreate_catch_solib): New
10487 functions.
10488 (catch_solib_breakpoint_ops): New global.
10489 (catch_load_or_unload, catch_load_command_1)
10490 (catch_unload_command_1): New functions.
10491 (internal_bkpt_check_status): Add special case for
10492 bp_shlib_event.
10493 (internal_bkpt_print_it): Use print_solib_event.
10494 (initialize_breakpoint_ops): Initialize
10495 catch_solib_breakpoint_ops.
10496 (_initialize_breakpoint): Register "catch load" and "catch
10497 unload".
10498 * breakpoint.h (handle_solib_event): Declare.
10499 * NEWS: Add entry for "catch load" and "catch unload".
10500
fa864999
TT
105012012-01-24 Tom Tromey <tromey@redhat.com>
10502
10503 * ada-lang.c: Include gdb_vecs.h.
10504 * charset.c: Include gdb_vecs.h.
10505 * tracepoint.h: Include gdb_vecs.h.
10506 * gdb_vecs.h: New file.
10507
f90263c1
TT
105082012-01-24 Pedro Alves <pedro@codesourcery.com>
10509
10510 * breakpoint.c (breakpoint_hit_catch_fork)
10511 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10512 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10513 * infrun.c (inferior_has_forked, inferior_has_vforked)
10514 (inferior_has_execd, inferior_has_called_syscall): Delete.
10515 (handle_syscall_event): Get syscall_number from the execution
10516 control state's wait status.
10517 (wait_for_inferior): Don't clear syscall_number.
10518
09ac7c10
TT
105192012-01-24 Pedro Alves <palves@redhat.com>
10520
10521 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10522 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10523 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10524 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10525 `ws' parameter.
10526 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10527 false for events other than TARGET_SIGNAL_TRAP.
10528 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10529 Add `ws' parameter.
10530 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10531 events other than TARGET_SIGNAL_TRAP.
10532 (tracepoint_breakpoint_hit): Add `ws' parameter.
10533 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10534 parameter.
10535 (bpstat_stop_status): Same.
10536 (pc_at_non_inline_function): Same.
10537 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10538 to pass the current event's waitstatus to bpstat_stop_status
10539 and pc_at_non_inline_function.
10540
86eb7e95
JK
105412012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10542
10543 Code cleanup.
10544 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10545 Update the function comment for it.
10546 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10547 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10548 for STREAM.
10549
a9b3a50f
PA
105502012-01-24 Pedro Alves <palves@redhat.com>
10551
10552 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10553 outside `bs->stop' block.
10554 (bpstat_what): Rework bp_shlib_event handling.
10555 (internal_bkpt_check_status): If the breakpoint is a
10556 bp_shlib_event, then set bs->stop and bs->print if
10557 stop_on_solib_events is set.
10558
53fe1783
GB
105592012-01-24 Gary Benson <gbenson@redhat.com>
10560
10561 Delete #if 0'd out code.
10562 * stack.c (print_frame_label_vars): Remove.
10563 (catch_info): Likewise.
10564 (_initialize_stack): Remove "info catch" command.
10565 * NEWS: Mention the above.
10566
49c62f2e
PA
105672012-01-24 Pedro Alves <palves@redhat.com>
10568
10569 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10570 it.
10571 (remote_notice_new_inferior): If the remote end doesn't support
10572 the multiprocess extensions, then the PID is fake.
10573 (add_current_inferior_and_thread): New.
10574 (remote_start_remote): Use it.
10575 (extended_remote_attach_1): Adjust.
10576 (extended_remote_create_inferior_1): Use
10577 add_current_inferior_and_thread.
10578
d0d8b0c6
JK
105792012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10580
10581 Fix watchpoints to be specific for each inferior.
10582 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10583 current_program_space.
10584 * i386-nat.c (i386_inferior_data_cleanup): New.
10585 (i386_inferior_data_get): Replace variable inf_data_local by an
10586 inferior_data call.
10587 (i386_use_watchpoints): Initialize i386_inferior_data.
10588 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10589 specific iterate_over_lwps.
10590
4403d8e9
JK
105912012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 Fix watchpoints across inferior fork.
10594 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10595 comment for linux_nat_iterate_watchpoint_lwps.
10596 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10597 linux_nat_iterate_watchpoint_lwps.
10598 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10599 * i386-linux-nat.c (update_debug_registers_callback): Update the
10600 comment for linux_nat_iterate_watchpoint_lwps.
10601 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10602 linux_nat_iterate_watchpoint_lwps.
10603 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10604 * i386-nat.c: Include inferior.h.
10605 (dr_mirror): Remove.
10606 (i386_inferior_data, struct i386_inferior_data)
10607 (i386_inferior_data_get): New.
10608 (i386_debug_reg_state): Use i386_inferior_data_get.
10609 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10610 (i386_insert_watchpoint, i386_remove_watchpoint)
10611 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10612 (i386_remove_hw_breakpoint): New variable state, use
10613 i386_debug_reg_state instead of DR_MIRROR.
10614 * linux-nat.c (delete_lwp): New declaration.
10615 (num_lwps): Move here from downwards.
10616 (delete_lwp_cleanup): New.
10617 (linux_child_follow_fork): Create new child_lp, call
10618 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10619 PTRACE_DETACH.
10620 (num_lwps): Move upwards.
10621 (linux_nat_iterate_watchpoint_lwps): New.
10622 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10623 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10624
2992c9a7 106252012-01-24 Joel Brobecker <brobecker@adacore.com>
10626
10627 GDB 7.4 released.
10628
e360902b
PA
106292012-01-23 Pedro Alves <palves@redhat.com>
10630
10631 * top.c (caution): Rename to ...
10632 (confirm): ... this.
10633 (show_caution): Rename to ...
10634 (show_confirm): ... this.
10635 (quit_cover): Adjust.
10636 (init_main): Adjust.
10637 * top.h (caution): Rename to ...
10638 (confirm): ... this.
10639 * utils.c (internal_vproblem, defaulted_query): Adjust.
10640
050a2e1d
PA
106412012-01-23 Pedro Alves <palves@redhat.com>
10642
10643 * top.c (caution): Update comment.
10644 (execute_command): Don't consider the current value of `caution'.
10645
77a35dd8
JK
106462012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10647
10648 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10649
a71b5a38
UW
106502012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10651
10652 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10653 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10654 * target.c (target_fileio_pwrite): Remove buffer address from
10655 debug output.
10656 (target_fileio_pread): Likewise.
10657
d99bd577
UW
106582012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10659
10660 * NEWS: Document remote "info proc" and "generate-core-file".
10661
35c2fab7
UW
106622012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10663
10664 * gdbarch.sh (find_memory_regions): New callback.
10665 * gdbarch.c, gdbarch.h: Regenerate.
10666
10667 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10668 callback before falling back to target method.
10669
10670 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10671 (linux_target_install_ops): No longer install it.
10672
10673 * linux-tdep.c (linux_find_memory_regions): New function.
10674 (linux_init_abi): Install it.
10675
6432734d
UW
106762012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10677
10678 * gdbarch.sh (make_corefile_notes): New architecture callback.
10679 * gdbarch.c: Regenerate.
10680 * gdbarch.h: Likewise.
10681
10682 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10683 before target_make_corefile_notes. If NULL is returned, the
10684 target does not support core file generation.
10685
10686 * linux-nat.c: Include "linux-tdep.h".
10687 (find_signalled_thread, find_stop_signal): Remove.
10688 (linux_nat_do_thread_registers): Likewise.
10689 (struct linux_nat_corefile_thread_data): Likewise.
10690 (linux_nat_corefile_thread_callback): Likewise.
10691 (iterate_over_spus): Likewise.
10692 (struct linux_spu_corefile_data): Likewise.
10693 (linux_spu_corefile_callback): Likewise.
10694 (linux_spu_make_corefile_notes): Likewise.
10695 (linux_nat_collect_thread_registers): New function.
10696 (linux_nat_make_corefile_notes): Replace contents by call to
10697 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10698 as native-only callback.
10699
10700 * linux-tdep.h: Include "bfd.h".
10701 (struct regcache): Add forward declaration.
10702 (linux_collect_thread_registers_ftype): New typedef.
10703 (linux_make_corefile_notes): Add prototype.
10704 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10705 "regset.h", and "elf-bfd.h".
10706 (find_signalled_thread, find_stop_signal): New functions.
10707 (linux_spu_make_corefile_notes): Likewise.
10708 (linux_collect_thread_registers): Likewise.
10709 (struct linux_corefile_thread_data): New data structure.
10710 (linux_corefile_thread_callback): New funcion.
10711 (linux_make_corefile_notes): Likewise.
10712 (linux_make_corefile_notes_1): Likewise.
10713 (linux_init_abi): Install it.
10714
3030c96e
UW
107152012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10716
10717 * gdbarch.sh (info_proc): New callback.
10718 * gdbarch.c, gdbarch.h: Regenerate.
10719
10720 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10721 before falling back to the target info_proc callback.
10722
10723 * linux-nat.c: Do not include "cli/cli-utils.h".
10724 (linux_nat_info_proc): Remove.
10725 (linux_target_install_ops): No longer install it.
10726
10727 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10728 (read_mapping): New function.
10729 (linux_info_proc): Likewise.
10730 (linux_init_abi): Install it.
10731
145b16a9
UW
107322012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10733
10734 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10735 * infcmd.c: (info_proc_cmd_1): New function.
10736 (info_proc_cmd): New function, moved here from equivalent routine
10737 orignally in linux-nat.c.
10738 (info_proc_cmd_mappings): Likewise.
10739 (info_proc_cmd_stat): Likewise.
10740 (info_proc_cmd_status): Likewise.
10741 (info_proc_cmd_cwd): Likewise.
10742 (info_proc_cmd_cmdline): Likewise.
10743 (info_proc_cmd_exe): Likewise.
10744 (info_proc_cmd_all): Likewise.
10745 (_initialize_infcmd): Install "info proc" command and subcommands.
10746
10747 * target.h (struct target_ops): Add to_info_proc.
10748 (target_info_proc): Add prototype.
10749 * target.c (target_info_proc): New function.
10750
10751 * procfs.c (procfs_info_proc): Add prototype.
10752 (info_proc_cmd): Rename into ...
10753 (procfs_info_proc): ... this. Update argument types as appropriate
10754 for a to_info_proc implementation. Handle "what" argument.
10755 (procfs_target): Install procfs_info_proc.
10756 (_initialize_procfs): No longer install "info proc" command.
10757
10758 * linux-nat.c: (enum info_proc_what): Remove.
10759 (linux_nat_info_proc_cmd_1): Rename into ...
10760 (linux_nat_info_proc): ... this. Update argument types as appropriate
10761 for a to_info_proc implementation.
10762 (linux_nat_info_proc_cmd): Remove.
10763 (linux_nat_info_proc_cmd_mappings): Likewise.
10764 (linux_nat_info_proc_cmd_stat): Likewise.
10765 (linux_nat_info_proc_cmd_status): Likewise.
10766 (linux_nat_info_proc_cmd_cwd): Likewise.
10767 (linux_nat_info_proc_cmd_cmdline): Likewise.
10768 (linux_nat_info_proc_cmd_exe): Likewise.
10769 (linux_nat_info_proc_cmd_all): Likewise.
10770 (linux_target_install_ops): Install linux_nat_info_proc.
10771 (_initialize_linux_nat): No longer install "info proc" command
10772 and subcommands.
10773
b9e7b9c3
UW
107742012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10775
10776 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10777 * config.in, configure: Regenerate.
10778
10779 * target.h (struct target_ops): Add to_fileio_readlink.
10780 (target_fileio_readlink): Add prototype.
10781 * target.c (target_fileio_readlink): New function.
10782
10783 * inf-child.c: Conditionally include <sys/param.h>.
10784 (inf_child_fileio_readlink): New function.
10785 (inf_child_target): Install it.
10786
10787 * remote.c (PACKET_vFile_readlink): New enum value.
10788 (remote_hostio_readlink): New function.
10789 (init_remote_ops): Install it.
10790 (_initialize_remote): Handle vFile:readlink packet type.
10791
7313baad
UW
107922012-01-20 Pedro Alves <palves@redhat.com>
10793 Ulrich Weigand <ulrich.weigand@linaro.org>
10794
10795 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10796 * config.in, configure: Regenerate.
10797
10798 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10799 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10800 (target_fileio_open): Add prototype.
10801 (target_fileio_pwrite): Likewise.
10802 (target_fileio_pread): Likewise.
10803 (target_fileio_close): Likewise.
10804 (target_fileio_unlink): Likewise.
10805 (target_fileio_read_alloc): Likewise.
10806 (target_fileio_read_stralloc): Likewise.
10807
10808 * target.c: Include "gdb/fileio.h".
10809 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10810 (default_fileio_target): New function.
10811 (target_fileio_open): Likewise.
10812 (target_fileio_pwrite): Likewise.
10813 (target_fileio_pread): Likewise.
10814 (target_fileio_close): Likewise.
10815 (target_fileio_unlink): Likewise.
10816 (target_fileio_close_cleanup): Likewise.
10817 (target_fileio_read_alloc_1): Likewise.
10818 (target_fileio_read_alloc): Likewise.
10819 (target_fileio_read_stralloc): Likewise.
10820
10821 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10822 <fcntl.h>, and <unistd.h>.
10823 (inf_child_fileio_open_flags_to_host): New function.
10824 (inf_child_errno_to_fileio_error): Likewise.
10825 (inf_child_fileio_open): Likewise.
10826 (inf_child_fileio_pwrite): Likewise.
10827 (inf_child_fileio_pread): Likewise.
10828 (inf_child_fileio_close): Likewise.
10829 (inf_child_fileio_unlink): Likewise.
10830 (inf_child_target): Install to_fileio routines.
10831
10832 * remote.c (init_remote_ops): Install to_fileio routines.
10833
901f9912
UW
108342012-01-20 Pedro Alves <palves@redhat.com>
10835 Ulrich Weigand <ulrich.weigand@linaro.org>
10836
10837 * remote.c (remote_multi_process_p): Only check for multi-process
10838 protocol feature, do not check for extended protocol.
10839 (remote_supports_multi_process): Check for extended protocol here.
10840 (set_general_process): Likewise.
10841 (extended_remote_kill): Likewise.
10842 (remote_pid_to_str): Likewise.
10843 (remote_query_supported): Always query multiprocess mode.
10844
e714e1bf
UW
108452012-01-20 Pedro Alves <palves@redhat.com>
10846 Ulrich Weigand <ulrich.weigand@linaro.org>
10847
10848 * inferior.h (struct inferior): Add fake_pid_p.
10849 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10850 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10851 magic_null_ptid since the remote side doesn't provide a real PID.
10852
50897289
TT
108532012-01-19 Tom Tromey <tromey@redhat.com>
10854
10855 * NEWS: Combine the two Python sections.
10856
1afc2033
JK
108572012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10858
10859 * target.h (target_close): Update comment on the target's unpush state.
10860
305436e0
PA
108612012-01-19 Pedro Alves <palves@redhat.com>
10862
10863 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10864 linux_nat_async directly instead of going through the target
10865 vector.
10866 * target.c (unpush_target): Close target after unpushing it, not
10867 before.
10868
49323895
GB
108692012-01-19 Gary Benson <gbenson@redhat.com>
10870
10871 * mdebugread.c (sort_blocks): Replace integer constants with ones
10872 derived from FIRST_LOCAL_BLOCK.
10873
1db33378
PP
108742012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10875 Jan Kratochvil <jan.kratochvil@redhat.com>
10876
10877 PR gdb/9538
10878 * symfile.c (find_separate_debug_file): New function.
10879 (terminate_after_last_dir_separator): Likewise.
10880 (find_separate_debug_file_by_debuglink): Also try realpath.
10881 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10882 * configure: Regenerate.
10883 * config.in: Regenerate.
10884
f83d8a90
DE
108852012-01-18 Doug Evans <dje@google.com>
10886
10887 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10888 (main.o): Remove rule.
10889 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10890 (--with-sysroot): Rewrite.
10891 * configure: Regenerate.
10892 * config.in: Regenerate.
10893
2dbca4d6
SDJ
108942012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10895
10896 * parse.c (initialize_expout): New function.
10897 (reallocate_expout): Likewise.
10898 (parse_exp_in_context): Use `initialize_expout' and
10899 `reallocate_expout' when appropriate.
10900
0695b514
PA
109012012-01-18 Pedro Alves <palves@redhat.com>
10902
10903 * record.c (struct record_breakpoint, record_breakpoint_p)
10904 (record_breakpoints): New.
10905 (record_insert_breakpoint, record_remove_breakpoint): Manage
10906 record breakpoints list. Only remove breakpoints from the
10907 inferior if they had been inserted there in the first place.
10908
136e1c30
DE
109092012-01-17 Doug Evans <dje@google.com>
10910
10911 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10912 if we know we don't have a file name to look for.
10913
c0bf857d
PA
109142012-01-17 Pedro Alves <palves@redhat.com>
10915
10916 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10917 the frame's stop reason is UNWIND_UNAVAILABLE.
10918
b486de60
JK
109192012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10920
10921 Fix compilation error.
10922 * m2-exp.y (yyerror): Use ANSI C prototype.
10923
d04550a6
SDJ
109242012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10925
10926 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10927 (growbuf_by_size): Likewise.
10928 (yyerror): Likewise.
10929 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10930 (modblock): Remove variable (was #if 0'ed).
10931 (parse_number): Convert prototype from K&R to ANSI C.
10932 (yyerror): Likewise.
10933 * objc-exp.y (parse_number): Likewise.
10934 (yyerror): Likewise.
10935 (yylex): Remove #if 0'ed code.
10936 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10937 (yyerror): Likewise.
10938
4aac40c8
TT
109392012-01-16 Tom Tromey <tromey@redhat.com>
10940
10941 * NEWS: Add item.
10942 * symtab.h (compare_filenames_for_search): Declare.
10943 * symtab.c (compare_filenames_for_search): New function.
10944 (iterate_over_some_symtabs): Use it.
10945 * symfile.h (struct quick_symbol_functions)
10946 <map_symtabs_matching_filename>: Change spec.
10947 * psymtab.c (partial_map_symtabs_matching_filename): Use
10948 compare_filenames_for_search. Update for new spec.
10949 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10950 compare_filenames_for_search. Update for new spec.
10951 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10952
cafec441
TT
109532012-01-16 Tom Tromey <tromey@redhat.com>
10954
10955 PR python/13281:
10956 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10957 (struct main_type) <flag_flag_enum>: New field.
10958 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10959 * NEWS: Add entries.
10960 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10961 enums.
10962 * python/lib/gdb/printing.py (_EnumInstance): New class.
10963 (FlagEnumerationPrinter): Likewise.
10964
983af33b
SDJ
109652012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10966
10967 * breakpoint.c (create_sals_from_address_default): New function.
10968 (create_breakpoints_sal_default): Likewise.
10969 (decode_linespec_default): Likewise.
10970 (is_marker_spec): Removed.
10971 (strace_marker_p): New function.
10972 (init_breakpoint_sal): Using `strace_marker_p' instead of
10973 `is_marker_spec'.
10974 (create_breakpoint): Call method `create_sals_from_address' from
10975 breakpoint_ops, replacing code that created SALs conditionally
10976 on the type of the breakpoint. Call method `create_breakpoints_sal',
10977 replacing code that created breakpoints conditionally on the type
10978 wanted.
10979 (base_breakpoint_create_sals_from_address): New function.
10980 (base_breakpoint_create_breakpoints_sal): Likewise.
10981 (base_breakpoint_decode_linespec): Likewise.
10982 (base_breakpoint_ops): Add methods
10983 `base_breakpoint_create_sals_from_address',
10984 `base_breakpoint_create_breakpoints_sal' and
10985 `base_breakpoint_decode_linespec'.
10986 (bkpt_create_sals_from_address): New function.
10987 (bkpt_create_breakpoints_sal): Likewise.
10988 (bkpt_decode_linespec): Likewise.
10989 (tracepoint_create_sals_from_address): Likewise.
10990 (tracepoint_create_breakpoints_sal): Likewise.
10991 (tracepoint_decode_linespec): Likewise.
10992 (strace_marker_create_sals_from_address): Likewise.
10993 (strace_marker_create_breakpoints_sal): Likewise.
10994 (strace_marker_decode_linespec): Likewise.
10995 (strace_marker_breakpoint_ops): New variable.
10996 (addr_string_to_sals): Remove `marker_spec'. Call method
10997 `decode_linespec' from breakpoint_ops, replacing code that decoded
10998 an address string into a SAL. Use `strace_marker_p' instead of
10999 `marker_spec'.
11000 (strace_command): Decide whether we are dealing with a static
11001 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11002 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11003 * breakpoint.h (linespec_result, linespec_sals): New forward
11004 declarations.
11005 (breakpoint_ops) <create_sals_from_address>,
11006 <create_breakpoints_sal>, <decode_linespec>: New methods.
11007
4795f398
DE
110082012-01-14 Doug Evans <dje@google.com>
11009
11010 * NEWS: Update text for "maint set python print-stack".
11011 It is deprecated in gdb 7.4 and deleted in 7.5.
11012
ee5106fe
EZ
110132012-01-13 Eli Zaretskii <eliz@gnu.org>
11014
11015 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11016 including curses.h.
11017
b161e06f
JK
110182012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11019
11020 * configure: Regenerate.
11021 * config.in: Regenerate.
11022
85254831
KS
110232012-01-12 Keith Seitz <keiths@redhat.com>
11024
11025 PR mi/10586
11026 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11027 (ANONYMOUS_UNION_NAME): Define.
11028 (is_path_expr_parent): New function.
11029 (get_path_expr_parent): New function.
11030 (is_anonymous_child): New function.
11031 (create_child_with_value): If the child is anonymous and without
11032 a name, assign an object name to it.
11033 (c_describe_child): Use get_path_expr_parent to determine
11034 the parent expression.
11035 If there field represents an anonymous struct or union and
11036 has no name, set an appropriate display name and expression.
11037 (cplus_describe_child): Likewise.
11038
620fa63a
PA
110392012-01-12 Pedro Alves <palves@redhat.com>
11040
11041 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11042 available when %ebp is found to be zero (outermost).
11043
2efa2c79
AT
110442012-01-11 Andreas Tobler <andreast@fgznet.ch>
11045
11046 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11047 an internal gdb_static_assert.
11048 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11049
88e7d25d
TT
110502012-01-11 Tom Tromey <tromey@redhat.com>
11051
11052 PR gdb/9598:
11053 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11054 catch" and "catch throw".
11055
72384ba3
PH
110562012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11057
11058 * blockframe.c (block_innermost_frame): Start search from selected
11059 frame, if present, or otherwise the current frame.
11060
11061 * c-exp.y (variable): Update innermost_block for
11062 'block COLONCOLON NAME' clause.
11063 * m2-exp.y (variable): Ditto.
11064 * objc-exp.y (variable): Ditto.
11065
065a711f
TT
110662012-01-10 Tom Tromey <tromey@redhat.com>
11067
11068 PR python/13199:
11069 * python/python.c (finish_python_initialization): Set sys.argv.
11070
f3f5162e
DE
110712012-01-10 Doug Evans <dje@google.com>
11072
11073 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11074 "want_line_info". All callers updated.
11075 (dwarf_decode_lines_1): New function.
11076 (handle_DW_AT_stmt_list): Add function comment.
11077 New arg "want_line_info". All callers updated.
11078 (read_file_scope,read_type_unit_scope): Move comment from
11079 handle_DW_AT_stmt_list to here.
11080
9934703b
JK
110812012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11082
11083 Fix regression after libiberty/ update for GCC PR 6057 and others.
11084 * c-exp.y (operator) <OPERATOR DELETE>
11085 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11086 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11087 (make_builtin_type, make_name): New variable i, add gdb_assert.
11088 (operator) <OPERATOR NEW>: Update ARGS to 3.
11089 (operator) <OPERATOR DELETE>: Add trailing space.
11090 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11091 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11092 * cp-support.c (cp_canonicalize_string): Check NULL from
11093 cp_comp_to_string, call warning and return.
11094
06b9f45f
JK
110952012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11096
11097 Fix duplicate .o files after omitting libbfd.a.
11098 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11099 (SFILES): Add corelow.c.
11100 (COMMON_OBS): Add corelow.o.
11101 (ALLDEPFILES): Remove corelow.c.
11102 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11103 * config/alpha/alpha-osf3.mh: Likewise.
11104 * config/alpha/fbsd.mh: Likewise.
11105 * config/arm/nbsdaout.mh: Likewise.
11106 * config/arm/nbsdelf.mh: Likewise.
11107 * config/i386/i386gnu.mh: Likewise.
11108 * config/ia64/hpux.mh: Likewise.
11109 * config/ia64/linux.mh: Likewise.
11110 * config/m32r/linux.mh: Likewise.
11111 * config/m68k/linux.mh: Likewise.
11112 * config/mips/irix5.mh: Likewise.
11113 * config/mips/irix6.mh: Likewise.
11114 * config/pa/hpux.mh: Likewise.
11115 * config/pa/linux.mh: Likewise.
11116 * config/powerpc/aix.mh: Likewise.
11117 * config/sparc/linux.mh: Likewise.
11118 * config/sparc/linux64.mh: Likewise.
11119 * config/sparc/sol2.mh: Likewise.
11120 * config/vax/vax.mh: Likewise.
11121 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11122 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11123 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11124 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11125 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11126 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11127 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11128 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11129 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11130 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11131 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11132 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11133 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11134 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11135 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11136 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11137 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11138 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11139 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11140 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11141 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11142 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11143 corelow.o from gdb_target_obs.
11144 * corefile.c (core_target): Update the comment on NULL value.
11145 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11146 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11147 MATCHES. Drop YUMMY set on NULL.
11148 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11149 reclaim CORE_DATA if it is already NULL.
11150
34365054
DE
111512012-01-09 Doug Evans <dje@google.com>
11152
11153 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11154 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11155
696166a3
KS
111562012-01-09 Keith Seitz <keiths@redhat.com>
11157
11158 * breakpoint.c (wrapper.h): Don't include.
11159
8e7b59a5
KS
111602012-01-09 Keith Seitz <keiths@redhat.com>
11161
11162 * Makefile.in (SFILES): Remove wrapper.c.
11163 (HFILES_NO_SRCDIR): Remove wrapper.h.
11164 (COMMON_OBS): Remove wrapper.o.
11165 * cli/cli-interp.c: Don't inlude wrapper.h.
11166 * corelow.c: Likewise.
11167 (core_open): Replace gdb_target_find_new_threads with
11168 TRY_CATCH around target_find_new_threads.
11169 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11170 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11171 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11172 evaluate_expression.
11173 (varobj_set_value): Likewise for evaluate_expression and
11174 value_assign.
11175 (install_new_variable): Likewise for value_fetch_lazy.
11176 (adjust_value_for_child_access): Likewise for value_ind.
11177 (c_describe_child): Likewise for value_subscript and
11178 value_ind.
11179 (c_value_of_root): Likewise for evaluate_expression.
11180 * wrapper.c: Remove.
11181 * wrapper.h: Remove.
11182
1a4eeb98
DE
111832012-01-09 Doug Evans <dje@google.com>
11184
9ff913ba
DE
11185 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11186 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11187 "abfd" args with "section". All callers updated.
11188 Error checking code moved ...
11189 (error_check_comp_unit_head): ... here. New function.
11190 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11191 Delete arg "abfd". New arg "type_offset". All callers updated.
11192 (create_debug_types_hash_table): Simplify by using
11193 read_and_check_type_unit_head.
11194
1a4eeb98
DE
11195 * parser-defs.h (namecopy): Delete.
11196 * parse.c (namecopy, namecopy_size): Move into copy_name.
11197
2e6af8c0
JK
111982012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11199
11200 Partially fix duplicate .o files after omitting libbfd.a.
11201 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11202 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11203 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11204 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11205 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11206 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11207 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11208
9f2f828a
PA
112092012-01-09 Pedro Alves <palves@redhat.com>
11210
11211 * MAINTAINERS: Update my email address.
11212
4d72c0bc
DE
112132012-01-08 Doug Evans <dje@google.com>
11214
d467dd73
DE
11215 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11216 n_type_units. Rename type_comp_units to all_type_units.
11217 All uses updated.
11218 (add_signatured_type_cu_to_table): Renamed from
11219 add_signatured_type_cu_to_list. All callers updated.
11220
4d72c0bc
DE
11221 * gdbtypes.h (struct cplus_struct_type): Delete member
11222 nfn_fields_total. All uses removed.
11223
21b2bd31
DE
112242012-01-06 Doug Evans <dje@google.com>
11225
11226 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11227 to top of file.
11228 (dwarf2_find_comp_unit): Delete.
11229 (process_psymtab_comp_unit): Make result "void".
11230 Delete args buffer, info_ptr, buffer_size, and replace with
11231 "section". All callers updated.
11232 (dwarf2_build_psymtabs_hard): Simplify.
11233
bfd189b1
SDJ
112342012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11235 Thiago Jung Bauermann <bauerman@br.ibm.com>
11236
11237 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11238 before `struct gdb_exception'.
11239 * breakpoint.c (update_global_location_list_nothrow)
11240 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11241 * cp-abi.c (value_rtti_type): Likewise.
11242 * cp-support.c (cp_validate_operator): Likewise.
11243 * infrun.c (insert_exception_resume_breakpoint)
11244 (check_exception_resume, keep_going): Likewise.
11245 * mi-interp.c (mi_breakpoint_created)
11246 (mi_breakpoint_modified): Likewise.
11247 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11248 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11249 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11250
6b07635f
DE
112512012-01-05 Doug Evans <dje@google.com>
11252
0b30b85c
DE
11253 * dwarf2read.c (statement_prologue): Delete, unused.
11254
98714339
DE
11255 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11256 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11257
6b07635f
DE
11258 * dwarf2read.c (comp_unit_header): Delete, unused.
11259
761f4555
UW
112602012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11261
11262 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11263 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11264
2ca0b532
PA
112652012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11266
11267 * infrun.c (normal_stop): Don't skip calling the normal_stop
11268 observers if the thread was doing a multi-step, but stopped for
11269 some reason other than stepping.
11270
50aeff07
PA
112712012-01-05 Pedro Alves <alves.ped@gmail.com>
11272
11273 * cli/cli-decode.h: Add comments.
11274 (CMD_LIST_AMBIGUOUS): Moved to command.h
11275 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11276 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11277 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11278 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11279 (add_com, add_com_alias, add_info, add_info_alias)
11280 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11281 declarations.
11282 * command.h: Add and adjust comments.
11283 (CMD_LIST_AMBIGUOUS): Moved here.
11284 (help_cmd, help_cmd_list): Delete declarations.
11285
5953832c
DE
112862012-01-04 Doug Evans <dje@google.com>
11287
e5fe5e75
DE
11288 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11289 All callers updated.
11290 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11291 Replace all arguments with "per_cu". All callers updated.
11292
28dee7f5
DE
11293 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11294
23745b47
DE
11295 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11296 New arg "per_cu". All callers updated.
11297
5953832c
DE
11298 Delete #if 0'd out code.
11299 * language.c (binop_result_type): Delete.
11300 (simple_type, ordered_type, same_type, integral_type): Delete.
11301 (numeric_type, character_type, string_type, boolean_type): Delete.
11302 (float_type, structured_type): Delete.
11303 * language.h: Update.
11304
0f5b7562
TT
113052012-01-04 Tom Tromey <tromey@redhat.com>
11306
11307 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11308
78218f56
JB
113092012-01-04 Joel Brobecker <brobecker@adacore.com>
11310
11311 * corefile.c (close_exec_file): Delete.
11312 (reopen_exec_file): Remove commented out code that seems related
11313 to close_exec_file, which is being deleted here.
11314 * inferior.h (close_exec_file): Delete.
11315 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11316
0fcd72ba
JB
113172012-01-04 Joel Brobecker <brobecker@adacore.com>
11318
11319 * ada-lang.c: #include "cli/cli-utils.h".
11320 (get_selections): Use skip_spaces.
11321 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11322 (catch_ada_exception_command_split): Use skip_spaces.
11323 (ada_decode_assert_location): Likewise.
11324
1dabb4c4
JB
113252012-01-04 Joel Brobecker <brobecker@adacore.com>
11326
11327 * linespec.c (decode_line_internal): Check for C++ or Java
11328 compound constructs only if the current language is C, C++
11329 or Java.
11330
5931a2fa
JK
113312012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11332
11333 Revert:
11334 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11335 Joel Brobecker <brobecker@adacore.com>
11336 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11337 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11338 3 times.
11339 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11340 fall through into AT_ENTRY_POINT.
11341 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11342 DUMMY_ADDR with it.
11343 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11344 PPC_INSN_SIZE skip to 3 times.
11345
1a2da5ee
JB
113462012-01-04 Joel Brobecker <brobecker@adacore.com>
11347
11348 * linespec.c (add_minsym): Preserve function descriptors.
11349
8645ff69
UW
113502012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11351
11352 * breakpoint.c (all_locations_are_pending): Consider locations
11353 in program spaces executing during startup pending as well.
11354
0b302171
JB
113552012-01-04 Joel Brobecker <brobecker@adacore.com>
11356
11357 Copyright year update in most files of the GDB Project.
11358
8ba098ad
JB
113592012-01-04 Joel Brobecker <brobecker@adacore.com>
11360
11361 * copyright.sh: Delete.
11362 * copyright.py: Rewrite.
11363
09c01c30
JB
113642012-01-04 Joel Brobecker <brobecker@adacore.com>
11365
11366 * gnulib/extra/update-copyright: New file, imported from gnulib.
11367
3c36c0af
JB
113682012-01-04 Joel Brobecker <brobecker@adacore.com>
11369
11370 * README (Copyright and License Notices): New section.
11371
888fe1e1
TT
113722012-01-03 Tom Tromey <tromey@redhat.com>
11373
11374 PR python/12533:
11375 * python/py-value.c (valpy_dereference, valpy_get_address
11376 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11377 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11378 (valpy_absolute, valpy_richcompare): Free intermediate values.
11379
6e681866
JB
113802011-01-03 Joel Brobecker <brobecker@adacore.com>
11381
11382 * ada-lang.c: Reformat the copyright notice.
11383
0cd09acb
JK
113842012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11385
11386 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11387 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11388 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11389 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11390 Revert this part of:
11391 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11392 Build gdb directly from *.o files not using libgdb.a.
11393 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11394
12c3e59c
JB
113952012-01-02 Joel Brobecker <brobecker@adacore.com>
11396
11397 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11398 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11399 Reformat the copyright header.
11400
11bf1490
JK
114012012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11402
11403 Revert this part of:
11404 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11405 Remove the gdbtui binary.
11406 * gdb.c (main): Remove args.interpreter_p initialization.
11407 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11408 * main.h (struct captured_main_args): Remove interpreter_p.
11409
1fef196f
JB
114102012-01-02 Joel Brobecker <brobecker@adacore.com>
11411
11412 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11413
67827812
JB
114142012-01-02 Joel Brobecker <brobecker@adacore.com>
11415
11416 * top.c (print_gdb_version): Update copyright year.
11417
a4d0b831
YQ
114182012-01-02 Yao Qi <yao@codesourcery.com>
11419
11420 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11421
b5914469
JK
114222012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11423 Joel Brobecker <brobecker@adacore.com>
11424
11425 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11426 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11427 3 times.
11428 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11429 fall through into AT_ENTRY_POINT.
11430 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11431 DUMMY_ADDR with it.
11432 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11433 PPC_INSN_SIZE skip to 3 times.
11434
8da828f7
JK
114352012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11436
11437 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11438 the return value.
11439 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11440
8574e74b
JK
114412012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11442
11443 Build gdb directly from *.o files not using libgdb.a.
11444 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11445 (COMMON_OBS): Remove solib-target.o.
11446 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11447 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11448 (LIBGDB_OBS, libgdb.a): Move it above.
11449 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11450 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11451 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11452 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11453 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11454 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11455 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11456 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11457 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11458 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11459 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11460 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11461 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11462 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11463 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11464 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11465 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11466 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11467 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11468 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11469 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11470 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11471 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11472 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11473 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11474 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11475 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11476
217bff3e
JK
114772012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11478
11479 Remove the gdbtui binary.
11480 * .gitignore (/gdbtui): Remove.
11481 * Makefile.in (TUI): Remove.
11482 (SUBDIR_TUI_OBS): Remove tui-main.o.
11483 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11484 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11485 (tui-main.o): Remove.
11486 (all_object_files): Remove tui-main.o.
11487 * NEWS: New note for the gdbtui removal.
11488 * configure: Rebuilt.
11489 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11490 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11491 CONFIG_UNINSTALL respectively.
11492 * gdb.c (main): Remove args.interpreter_p initialization.
11493 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11494 * main.h (struct captured_main_args): Remove interpreter_p.
11495 * tui/tui-main.c: Remove.
11496
9cdd5dbd
DE
114972012-01-01 Doug Evans <dje@google.com>
11498
bb5ed363
DE
11499 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11500 (dwarf2_physname, read_import_statement): Ditto.
11501 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11502 (process_structure_scope read_subroutine_type): Ditto.
11503 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11504 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11505 (dwarf2_fetch_die_location_block): Ditto.
11506 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11507
a0f42c21
DE
11508 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11509 All callers updated.
11510 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11511 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11512 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11513
2dc860c0
DE
11514 * dwarf2read.c (load_cu): Move assert to more useful location.
11515
68dc6402
DE
11516 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11517 All callers updated.
11518
9cdd5dbd
DE
11519 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11520 (dwarf2_elf_names): Minor reformat.
11521 (dwarf2_per_cu_data): Tweak comment.
11522 (dwarf2_read_section): Fix comment.
11523 (create_all_comp_units): Fix comment.
11524 (load_full_comp_unit): Fix comment.
11525 (process_full_comp_unit): Fix comment.
11526 (read_signatured_type): Fix comment.
11527
0c10e53e 11528For older changes see ChangeLog-2011.
c906108c
SS
11529\f
11530Local Variables:
11531mode: change-log
11532left-margin: 8
11533fill-column: 74
11534version-control: never
57da7796 11535coding: utf-8
c906108c 11536End: