* NEWS: Update.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
53342f27
TT
12012-11-12 Tom Tromey <tromey@redhat.com>
2
3 * NEWS: Update.
4 * c-typeprint.c (c_type_print_base): Handle print_method and
5 print_typedefs flags.
6 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
7 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
8 options.
9 * typeprint.c (type_print_raw_options, default_ptype_flags):
10 Update for new field.s
11 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
12 (setprinttypelist, showprinttypelist, print_methods,
13 print_typedefs): New globals.
14 (set_print_type, show_print_type, set_print_type_methods,
15 show_print_type_methods, set_print_type_typedefs,
16 show_print_type_typedefs): New functions.
17 (_initialize_typeprint): Update documentation. Add "print
18 type methods" and "print type typedefs" parameters.
19 * typeprint.h (struct type_print_options) <print_methods,
20 print_typedefs>: New fields.
21
6c8702eb
TT
222012-11-12 Tom Tromey <tromey@redhat.com>
23
24 * c-typeprint.c (cp_type_print_method_args): Add flags
25 argument. Call c_print_type, not type_print.
26 (c_type_print_base): Call c_print_type, not type_print.
27 Update.
28
79d43c61
TT
292012-11-12 Tom Tromey <tromey@redhat.com>
30
31 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
32 to type-printing functions.
33 * ada-lang.h (ada_print_type): Add argument.
34 * ada-typeprint.c (print_array_type, print_variant_clauses,
35 print_variant_part, print_selected_record_field_types,
36 print_record_field_types, print_unchecked_union_type,
37 print_func_type, ada_print_type): Add flags argument.
38 (ada_print_typedef): Update.
39 * c-exp.y (OPERATOR conversion_type_id): Update.
40 * c-lang.h (c_print_type, c_type_print_base): Update.
41 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
42 c_type_print_modifier, c_type_print_args,
43 c_type_print_varspec_suffix, c_type_print_base): Add flags
44 argument.
45 * cp-valprint.c (cp_print_class_member): Update.
46 * dwarf2read.c (dwarf2_compute_name): Update.
47 * f-lang.h (f_print_type): Add argument.
48 * f-typeprint.c (f_print_type): Add flags argument.
49 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
50 * go-lang.h (go_print_type): Add argument.
51 * go-typeprint.c (go_print_type): Add flags argument.
52 * jv-lang.h (java_print_type): Add argument.
53 * jv-typeprint.c (java_type_print_base, java_print_type): Add
54 flags argument.
55 * language.c (unk_lang_print_type): Add flags argument.
56 * language.h (struct language_defn) <la_print_type>: Add flags
57 argument.
58 (LA_PRINT_TYPE): Likewise.
59 * m2-lang.h (m2_print_type): Add argument.
60 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
61 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
62 m2_unbounded_array, m2_record_fields): Add flags argument.
63 * p-lang.h (pascal_print_type, pascal_type_print_base,
64 pascal_type_print_varspec_prefix): Add argument.
65 * p-typeprint.c (pascal_print_type,
66 pascal_type_print_varspec_prefix, pascal_print_func_args,
67 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
68 flags argument.
69 * symmisc.c (print_symbol): Update.
70 * typeprint.c (type_print_raw_options, default_ptype_flags):
71 New globals.
72 (type_print): Update.
73 * typeprint.h (struct type_print_options): New.
74 (type_print_raw_options): Declare.
75 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
76
cf4ded82
KS
772012-11-10 Keith Seitz <keiths@redhat.com>
78
79 * breakpoint.c (clear_command): Add cleanup for
80 sals.sals if an argument is given.
81
82 * linespec.c (parse_linespec): Do cleanups after
83 parsing a convenience variable.
84
0d63ecda
KS
852012-11-10 Keith Seitz <keiths@redhat.com>
86
87 PR gdb/14288
88 * c-valprint.c (c_val_print): For character arrays
89 with "print null" option on, print ellipses if
90 the output is truncated and the next character is not \000.
91 * valprint.c (MAX_WCHARS): Define.
92 (WCHAR_BUFLEN): Likewise.
93 (WCHAR_BUFLEN_MAX): Likewise.
94 (struct converted_character): New structure.
95 (count_next_character): New function.
96 (print_converted_chars_to_obstack): New function.
97 (generic_printstr): Rewrite using count_next_character
98 and print_converted_chars_to_obstack.
99
9b8d6827
SC
1002012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
101
102 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
103 while executing the gdb command.
104 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
105 are called from prompt_for_continue.
106 * tui/tui-io.c (tui_redisplay_readline): Likewise.
107
e840f632
SC
1082012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
109
110 PR tui/9584
111
112 * tui/tui.c (tui_rl_command_key): Do not call execute_command
113 but insert the command to execute in readline's buffer.
114
f5656ead
TT
1152012-11-09 Tom Tromey <tromey@redhat.com>
116
117 * gdbarch.sh (target_gdbarch): Remove macro.
118 (get_target_gdbarch): Rename to target_gdbarch.
119 * gdbarch.c, gdbarch.h: Rebuild.
120 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
121 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
122 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
123 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
124 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
125 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
126 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
127 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
128 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
129 procfs.c, progspace.c, ravenscar-thread.c, record.c,
130 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
131 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
132 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
133 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
134 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
135 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
136 target-descriptions.c, target.c, target.h, tracepoint.c,
137 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
138 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
139 python/py-inferior.c, python/python.c: Update.
140
ed8a1c2d
AB
1412012-11-09 Andrew Burgess <aburgess@broadcom.com>
142
143 * source.c (print_source_lines_base): Add fullname field giving
144 full path to file in mi output.
145 * NEWS: Mention the new fullname field.
146
504b36fd
YQ
1472012-11-09 Yao Qi <yao@codesourcery.com>
148
149 * NEWS: Mention the fix to the ambiguity of 'fo' command.
150
9107fc8d
PA
1512012-11-09 Pedro Alves <palves@redhat.com>
152
153 PR gdb/14306
154
155 * infrun.c: Include target-descriptions.h.
156 (follow_exec): Fetch new target description.
157
30f8135b
YQ
1582012-11-09 Yao Qi <yao@codesourcery.com>
159
160 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
161 0x8d (lea).
162
558a9d82
YQ
1632012-11-09 Yao Qi <yao@codesourcery.com>
164
165 * breakpoint.c: Declare set_tracepoint_count.
166 (install_breakpoint): Call set_tracepoint_count if B is a
167 tracepoint.
168 (trace_command): Don't call set_tracepoint_count. Re-indent.
169 (strace_command, ftrace_command):
170 (create_tracepoint_from_upload): Likewise.
171
6ecd4729
PA
1722012-11-09 Pedro Alves <palves@redhat.com>
173
174 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
175 (get_target_gdbarch) <gdbarch.h>: New function.
176 (startup_gdbarch) <gdbarch.h>: Declare.
177 <gdbarch.c> (target_gdbarch): Delete.
178 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
179 current inferior's gdbarch.
180 <gdbarch.c> (get_target_gdbarch): New function.
181 * inferior.c: Include target-descriptions.h.
182 (free_inferior): Free target description info.
183 (add_inferior_with_spaces): Set the inferior's initial
184 architecture.
185 (clone_inferior_command): Copy the original inferior's target
186 description if it was user specified.
187 (initialize_inferiors): Add comment.
188 * inferior.h (struct target_desc_info): Forward declare.
189 (struct inferior) <gdbarch>: New field.
190 * linux-nat.c: Include target-descriptions.h.
191 (linux_child_follow_fork): Copy the parent's architecture and
192 target description to the child.
193 * target-descriptions.c: Include inferior.h.
194 (struct target_desc_info): New structure, holding the equivalents
195 of ...
196 (target_desc_fetched, current_target_desc)
197 (target_description_filename): ... these removed globals.
198 (get_tdesc_info, target_desc_info_from_user_p)
199 (copy_inferior_target_desc_info, target_desc_info_free): New.
200 (target_desc_fetched, current_target_desc)
201 (target_description_filename): Reimplemented as convenience
202 macros.
203 (tdesc_filename_cmd_string): New global.
204 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
205 tdescs filename ..." commands to the per-inferior equivalent.
206 (show_tdesc_filename_cmd): Get the value to show from the
207 per-inferior description filename.
208 (_initilize_target_descriptions): Change the "set/show tdesc
209 filename" commands' variable.
210 * target-descriptions.h (struct target_desc, struct target_desc_info)
211 (struct inferior): Forward declare.
212 (target_find_description, target_clear_description)
213 (target_current_description): Adjust comments.
214 (copy_inferior_target_desc_info, target_desc_info_free)
215 (target_desc_info_from_user_p). Declare.
216
4ca4d161
SC
2172012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
218
219 * tui/tui-hooks.c (tui_about_to_proceed): New function.
220 (tui_target_wait_hook): Remove.
221 (tui_install_hooks): Install the about_to_proceed observer.
222 (tui_remove_hooks): And remove it here.
223
9015683b
TT
2242012-11-08 Tom Tromey <tromey@redhat.com>
225
226 * linux-tdep.c (linux_make_siginfo_note): New function.
227 (linux_make_corefile_notes): Use it.
228 * corelow.c (get_core_siginfo): New function.
229 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
230
ea9f10bb
TT
2312012-11-08 Tom Tromey <tromey@redhat.com>
232
233 PR gdb/14704:
234 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
235 (zlib_decompress_section): Remove.
236 (gdb_bfd_map_section): Only check for compressed section
237 in mmap case. Use bfd_get_full_section_contents.
238 * osabi.c (check_note): Add 'sectsize' argument. Read
239 section data.
240 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
241 section data. Update for check_note change.
242 * xcoffread.c (xcoff_initial_scan): Use
243 bfd_get_full_section_contents.
244 * py-auto-load.c (auto_load_section_scripts): Use
245 bfd_get_full_section_contents.
246 * contrib/cc-with-tweaks.sh: Add -Z option.
247
d071a26b
TT
2482012-11-08 Tom Tromey <tromey@redhat.com>
249
250 * python/py-bpevent.c: Include defs.h.
251 * python/py-continueevent.c: Include defs.h.
252 * python/py-event.c: Include defs.h.
253 * python/py-event.h: Don't include defs.h.
254 * python/py-events.h: Don't include defs.h.
255 * python/py-evts.c: Include defs.h.
256 * python/py-exitedevent.c: Include defs.h.
257 * python/py-newobjfileevent.c: Include defs.h.
258 * python/py-signalevent.c: Include defs.h.
259 * python/py-stopevent.c: Include defs.h.
260 * python/py-threadevent.c: Include defs.h.
261
4574b35a
PM
2622012-11-08 Pierre Muller <muller@sourceware.org>
263
264 * update-web-ari.sh (print_heading): Add number of files
265 checked.
266 (nb_files): New variable counting the number of sources
267 files found by gdb_find.sh script.
268 (debug_awk): New variable to allow extra debug output.
269 (indexes): Add more information if DEBUG_AWK is set.
270
2834ab42
EBM
2712012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
272
273 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
274 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
275 following the change in PLT call stubs on linker.
276
84f13595
PM
2772012-11-08 Pierre Muller <muller@sourceware.org>
278
279 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
280 as default language.
281 (AWK): Use = instead of == for sh test to avoid warning.
282 (Linux rule): Correct [:digit] into [[:digit:]].
283 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
284 (vasprintf rule): Adapt to common subdirectory moves.
285 (xasprintf rule): Idem.
286 (xvasprintf rule): Idem.
287 (var_boolean rule): Accept occurence in == or != test.
288
289 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
290
d69e6a33
SC
2912012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
292
293 * tui/tui-hooks.c (tui_inferior_exit): New function.
294 (tui_detach_hook): Remove.
295 (tui_install_hooks): Install the inferior exit observer.
296 (tui_remove_hooks): Remove it.
297
1e96de83
YQ
2982012-11-08 Yao Qi <yao@codesourcery.com>
299
300 PR gdb/14777.
301 * source.c (_initialize_source): Call add_com_alias to abbreviate
302 'forward-search' as 'fo'.
303
0baeab03
PA
3042012-11-07 Pedro Alves <palves@redhat.com>
305
306 * arm-tdep.c: Make defs.h be the first include.
307 * coff-pe-read.c: Ditto.
308 * gnu-nat.c: Ditto.
309 * go32-nat.c: Ditto.
310 * i386-nat.c: Ditto.
311 * ppcnbsd-nat.c: Ditto.
312 * ada-varobj.h: Don't include defs.h.
313 * i386-darwin-tdep.h: Ditto.
314 * i386-nat.h: Ditto.
315
892a8570
PA
3162012-11-07 Pedro Alves <palves@redhat.com>
317
318 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
319 Committee.
320
719502e9
PM
3212012-11-07 Pierre Muller <muller@sourceware.org>
322
323 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
324 File already uses "gdb_dirent.h" header.
325
ed86b350
YQ
3262012-11-07 Yao Qi <yao@codesourcery.com>
327
328 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
329 tracepoint_count'.
330
9a4f1e4f
TT
3312012-11-06 Tom Tromey <tromey@redhat.com>
332
333 * target.h (inferior_has_forked, inferior_has_vforked)
334 (inferior_has_execd, inferior_has_called_syscall): Remove
335 declarations.
336
0316657e
PM
3372012-11-06 Pierre Muller <muller@sourceware.org>
338
339 * remote.c (remote_insert_hw_breakpoint): ARI fix,
340 add missing internalization markup.
341
f6592439
PA
3422012-11-06 Pedro Alves <palves@redhat.com>
343
344 PR gdb/14810
345
346 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
347
01f2564a
PM
3482012-11-06 Pierre Muller <muller@sourceware.org>
349
350 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
351 is not executable.
352
f37c4431
JB
3532012-11-05 Joel Brobecker <brobecker@adacore.com>
354
355 * gnulib/update-gnulib.sh: New script.
356
550889c3
JB
3572012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
358
359 * MAINTAINERS: Update my email address.
360
954b50b3
TT
3612012-11-05 Tom Tromey <tromey@redhat.com>
362
363 * frame.c (put_frame_register): Don't use temporary buffer.
364
68c9da30
PA
3652012-11-05 Pedro Alves <palves@redhat.com>
366
367 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
368 child. Clear 'pending_detach'.
369 * infrun.c (handle_vfork_child_exec_or_exit): Clear
370 'pending_detach' in the vfork parent.
371
80626a55
DE
3722012-11-05 Doug Evans <dje@google.com>
373
374 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
375 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
376 * dwarf2read.c: #include "elf-bfd.h".
377 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
378 (dwop_section_names): Renamed from dwo_section names. All uses
379 updated. Add entries for .debug_cu_index, .debug_tu_index.
380 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
381 All uses updated.
382 (struct dwp_sections): New type.
383 (struct virtual_dwo_sections): New type.
384 (struct dwp_hash_table): New type.
385 (struct dwp_file): New type.
386 (init_cutu_and_read_dies): Ensure DWO info/types section has been
387 read in. Handle DWOs coming from DWP files.
388 (lookup_dwo_file_slot): New function.
389 (dwarf2_locate_dwo_sections): Move definition closer to use.
390 (create_dwo_debug_info_hash_table_reader): Renamed from
391 create_debug_info_hash_table_reader. All callers updated.
392 (create_dwo_debug_info_hash_table): Renamed from
393 create_debug_info_hash_table. All callers updated.
394 (create_dwp_hash_table): New function.
395 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
396 (lookup_dwo_in_dwp): New function.
397 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
398 is_dwp. All callers updated.
399 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
400 (open_and_init_dwo_file): Renamed from init_dwo_file.
401 All callers updated.
402 (lookup_dwo_file): Delete.
403 (dwarf2_locate_dwp_sections): New function.
404 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
405 (allocate_dwp_loaded_cutus_table): New function.
406 (open_and_init_dwp_file): New function.
407 (lookup_dwo_cutu): New function.
408 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
409
6f6484cd
YQ
4102012-11-03 Yao Qi <yao@codesourcery.com>
411
412 Fix PR gdb/14617.
413 * breakpoint.c (trace_pass_set_count): Call
414 observer_notify_breakpoint_modified instead of
415 observer_notify_tracepoint_modified.
416 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
417
b45627a0
TT
4182012-11-02 Tom Tromey <tromey@redhat.com>
419
420 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
421 argument to complete_on_enum.
422
d4fb63e1
TT
4232012-11-02 Tom Tromey <tromey@redhat.com>
424
425 * configure: Rebuild.
426 * configure.ac (build_warnings): Add -Wempty-body.
427 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
428 * remote.c (handle_notification): Use braces for empty 'else' body.
429 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
430 'else' body.
431 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
432 'else' body.
433 * solib-som.c (som_relocate_section_addresses): Use braces
434 for empty 'else' body.
435 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
436 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
437
f50f4e56
PA
4382012-11-02 Pedro Alves <palves@redhat.com>
439
440 PR gdb/14766
441
442 * infrun.c (handle_inferior_event)
443 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
444 null_ptid before handling a vfork child exec or exit. Switch to
445 the event ptid afterwards.
446
f0559fff
YQ
4472012-11-02 Yao Qi <yao@codesourcery.com>
448
449 * std-operator.def: Remove OP_LABELED.
450 * eval.c: Remove the declaration of 'get_label'.
451 (get_label): Remove.
452 (evaluate_struct_tuple): Remove code handling OP_LABELED.
453 Update comment.
454 Remove local variable 'variantno' and related code.
455 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
456 with 'fieldno'.
457 * expprint.c (print_subexp_standard): Likewise.
458 (dump_subexp_body_standard): Likewise.
459 * parse.c (operator_length_standard): Likewise.
460
e5496e3e
PM
4612012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
462
463 Incorporate ARI web page generator into GDB sources.
464 * contrib/ari/create-web-ari-in-src.sh: New file.
465 * contrib/ari/gdb_ari.sh: New file.
466 * contrib/ari/gdb_find.sh: New file.
467 * contrib/ari/update-web-ari.sh: New file.
468
c66fb220
TT
4692012-10-31 Tom Tromey <tromey@redhat.com>
470
471 * gdbarch.c: Rebuild.
472 * gdbarch.sh: Remove references to gdbarch_swap.
473 * corelow.c (core_open): Remove obsolete comment.
474
2f27adfe
AB
4752012-10-31 Andrew Burgess <aburgess@broadcom.com>
476
477 PR cli/14772
478 * c-typeprint.c (c_print_type): Don't print a space for vector
479 types, this is handled within the suffix.
480 (c_type_print_varspec_suffix): Add a space to vector suffix.
481
144db827
PA
4822012-10-26 Pedro Alves <palves@redhat.com>
483
484 * amd64-tdep.c (amd64_relocate_instruction): Use
485 store_unsigned_integer instead of memcpy.
486 * i386-tdep.c (i386_relocate_instruction): Ditto.
487
940c3c06
PA
4882012-10-26 Pedro Alves <palves@redhat.com>
489
490 * infrun.c (handle_inferior_event): Merge handling of
491 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
492 switch case.
493
47b19065
PA
4942012-10-26 Pedro Alves <palves@redhat.com>
495
496 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
497 Remove comment.
498
87d2d2a4
PA
4992012-10-26 Pedro Alves <palves@redhat.com>
500
501 * target.c (target_waitstatus_to_string): Handle
502 TARGET_WAITKIND_VFORK_DONE.
503
fed708ed
PA
5042012-10-26 Pedro Alves <palves@redhat.com>
505
506 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
507 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
508
2590b645
JB
5092012-10-24 Tristan Gingold <gingold@adacore.com>
510
511 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
512 Add comments.
513
bed0c243
JB
5142012-10-24 Joel Brobecker <brobecker@adacore.com>
515
516 * ravenscar-thread.c (ravenscar_wait): Only update the list
517 of threads and inferior_ptid if the inferior is still alive.
518
f69c91ad
JB
5192012-10-24 Joel Brobecker <brobecker@adacore.com>
520
521 * ada-lang.c (is_known_support_routine): Use lbasename when
522 matching the symtab's filename against
523 known_runtime_file_name_patterns.
524
d99dcf51
JB
5252012-10-24 Joel Brobecker <brobecker@adacore.com>
526
527 * ada-lang.c (ada_same_array_size_p): New function.
528 (ada_promote_array_of_integrals): New function.
529 (coerce_for_assign): Add handling of arrays where the elements
530 are integrals of a smaller size than the size of the target
531 array element type.
532
32560274
JB
5332012-10-24 Joel Brobecker <brobecker@adacore.com>
534
535 * doublest.c (convert_doublest_to_floatformat): Fix comparison
536 against maximum exponent value.
537
5a04cc98
JB
5382012-10-24 Joel Brobecker <brobecker@adacore.com>
539
540 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
541 "unwind-seh.c".
542
5ded5331
JB
5432012-10-24 Joel Brobecker <brobecker@adacore.com>
544
545 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
546 strip typedef layer when computing the fixed type's field type,
547 only when computing its size.
548
2445fd7b
MK
5492012-10-24 Mark Kettenis <kettenis@gnu.org>
550
551 PR gdb/12783
552 * i386-tdep.c (i386_return_value): Handle complex double and long
553 double.
554
8f205f9c
JB
5552012-10-24 Joel Brobecker <brobecker@adacore.com>
556
557 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
558 New local variable args_len.
559 Quote the name of the executable when computing the command line.
560
7f7930dd
MK
5612012-10-23 Mark Kettenis <kettenis@gnu.org>
562
563 PR gdb/12796
564 PR gdb/12798
565 PR gdb/12800
566 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
567 AMD64_FTAG_REGNUM.
568 * amd64-tdep.c (amd64_classify): Classify complex types.
569 (amd64_return_value): Handle the COMPLEX_X87 class.
570
38a69d0a
JB
5712012-10-23 Joel Brobecker <brobecker@adacore.com>
572
573 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
574 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
575
83ab93c6
JB
5762012-10-23 Joel Brobecker <brobecker@adacore.com>
577
578 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
579 function.
580 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
581 to amd64_windows_auto_wide_charset.
582
f6fbab7d
YQ
5832012-10-23 Yao Qi <yao@codesourcery.com>
584
585 * event-top.c (mark_async_signal_handler_wrapper): Remove.
586 * event-top.h: Remove its declaration.
587 (async_request_quit): Call mark_async_signal_handler instead of
588 mark_async_signal_handler_wrapper.
589 (async_do_nothing, async_disconnect): Likewise.
590 (async_stop_sig): Likewise.
591 * remote.c (handle_remote_sigint): Likewise.
592 (handle_remote_sigint_twice): Likewise.
593
05fa9251
YQ
5942012-10-23 Yao Qi <yao@codesourcery.com>
595
596 * event-top.c (sigint_token, sighup_token): Replace 'void *'
597 with 'static struct async_signal_handler *'.
598 (sighup_token, sigquit_token, sigstp_token): Likewise.
599
08af7a40
AA
6002012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
601
602 * gdbarch.sh (function_list): Use 'pstring' when printing
603 a variable which could return NULL.
604 * gdbarch.c: Regenerate.
605
beb4b03c
JB
6062012-10-10 Joel Brobecker <brobecker@adacore.com>
607 Tom Tromey <tromey@redhat.com>
608
609 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
610 inneffective if condition by gdb assertion. Add function
611 description comment.
612
a5b12627
JB
6132012-10-19 Joel Brobecker <brobecker@adacore.com>
614
615 * parser-defs.h (struct exp_descriptor): Document constraint
616 on return value for "op_name" callbacks.
617
0b0865da
TT
6182012-10-18 Tom Tromey <tromey@redhat.com>
619
620 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
621 * symtab.c (iterate_over_some_symtabs): Constify.
622 * source.h (symtab_to_fullname): Return 'const char *'.
623 * source.c (symtab_to_fullname): Return 'const char *'.
624 * python/py-symtab.c (stpy_fullname): Constify.
625 * cli/cli-cmds.c (edit_command): Constify.
626 * breakpoint.c (print_breakpoint_location)
627 (update_static_tracepoint): Constify.
628
94b0e70d
TT
6292012-10-18 Tom Tromey <tromey@redhat.com>
630
631 * breakpoint.c (compare_breakpoints): Fix comparison.
632
fff10684
TT
6332012-10-18 Tom Tromey <tromey@redhat.com>
634
635 * valprint.c (generic_emit_char, generic_printstr): Pass size of
636 gdb_wchar_t to convert_between_encodings.
637
8de0566d
YQ
6382012-10-17 Yao Qi <yao@codesourcery.com>
639
640 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
641 more parameter 'inferior'.
642 * corefile.c (write_memory_with_notification): Caller update.
643
644 * mi/mi-cmd-var.c: Include "mi-main.h".
645 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
646 to 1 and restore it later.
647 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
648 and "data-write-memory-bytes.
649 * mi/mi-interp.c: Include objfiles.h.
650 (mi_interpreter_init): Call observer_attach_memory_changed.
651 (mi_memory_changed): New.
652 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
653 New field.
654
655 * NEWS: Mention new MI notification "memory-changed".
656
6235cdd1
JK
6572012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
658
659 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
660
07540c15
DE
6612012-10-15 Doug Evans <dje@google.com>
662
663 New option -nh: inhibit loading of ~/.gdbinit.
664 * NEWS: Mention -nh.
665 * main.c (captured_main): Recognize and process -nh.
666 (print_gdb_help): Mention -nh.
667 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
668
eab09350
L
6692012-10-15 H.J. Lu <hongjiu.lu@intel.com>
670
671 PR backtrace/14646
672 PR gdb/14647
673 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
674 pc_regnum_from_eax.
675 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
676 nor pc_regnum_from_eax.
677 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
678 nor pc_regnum_from_eax.
679
9e3a7d65
JK
6802012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
681
682 Fix entry values resolving in inlined frames.
683 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
684 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
685 entries of FRAME.
686
c83393b9
JB
6872012-10-15 Joel Brobecker <brobecker@adacore.com>
688
689 * configure.ac: Build with -DMS_WIN64 if building with Python
690 enabled using GCC on amd64-windows.
691 * configure: Regenerate.
692
801e4185
TT
6932012-10-15 Tom Tromey <tromey@redhat.com>
694
695 PR python/14635:
696 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
697 to Py_None.
698
74f910c8
TT
6992012-10-15 Tom Tromey <tromey@redhat.com>
700
701 PR python/14634:
702 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
703
2a7c8fd5
AB
7042012-10-11 Andrew Burgess <aburgess@broadcom.com>
705
706 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
707 reset thread numbering back to 1.
708
7c09e5a0
DE
7092012-10-11 Doug Evans <dje@google.com>
710
711 PR breakpoints/14643.
712 * linespec.c (struct ls_parser): New member keyword_ok.
713 (linespec_lexer_lex_string): Add comment.
714 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
715 for one.
716 (parse_linespec): Set keyword_ok.
717
a1855c1d
DE
7182012-10-10 Doug Evans <dje@google.com>
719
844226d6
DE
720 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
721 "0x" prefix on address in log message.
722
a1855c1d
DE
723 * dwarf2read.c (read_1_byte): Add const to buf parameter.
724 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
725 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
726 (lookup_dwo_file): Add const to dwo_name parameter.
727 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
728
2e24f4aa
JK
7292012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
730
731 Fix crash during stepping on ppc32.
732 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
733 SYM.
734
aa14df25
DE
7352012-10-03 Doug Evans <dje@google.com>
736
737 PR symtab/14601
738 * buildsym.c (buildsym_init): Reset using_directives to NULL.
739
3d468296
AB
7402012-10-02 Andrew Burgess <aburgess@broadcom.com>
741
742 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
743 output and use uint32_t not long to ensure 4 byte size.
744
8f0ee2eb
JB
7452012-10-02 Joel Brobecker <brobecker@adacore.com>
746
747 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
748 unref'ed it.
749
b3dc46ff
AB
7502012-10-01 Andrew Burgess <aburgess@broadcom.com>
751
752 * target.c (simple_search_memory): Include access length in
753 warning message.
754
f712f01f
EBM
7552012-09-28 Nathan Miller <nathanm2@us.ibm.com>
756 Edjunior Machado <emachado@linux.vnet.ibm.com>
757
758 PR gdb/13989
759 * solib.c (solib_find): Prevent GDB from loading native libraries when
760 debugging a cross-target corefile.
761
39181896
PA
7622012-09-28 selven <pcthegreat@gmail.com>
763
764 Make definition match declaration.
765
766 * regcache.c (regcache_register_status): Change return type to
767 enum register_status.
768
4c2786ba
YQ
7692012-09-28 Yao Qi <yao@codesourcery.com>
770
771 * mi/mi-main.c (mi_cmd_data_write_memory): Call
772 write_memory_with_notification instead of write_memory.
773 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
774 instead of target_write_memory.
775
1ae0c35e
YQ
7762012-09-28 Yao Qi <yao@codesourcery.com>
777
778 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
779 when the length of content is not an even number.
780
7977e5d2
TT
7812012-09-27 Tom Tromey <tromey@redhat.com>
782
783 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
784 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
785
807160da
JB
7862012-09-27 Joel Brobecker <brobecker@adacore.com>
787
788 * sol-thread.c (sol_thread_fetch_registers)
789 (sol_thread_store_registers): Delete commented out code.
790
43c75337
JB
7912012-09-27 Joel Brobecker <brobecker@adacore.com>
792
793 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
794 Move these functions to sparc-sol-thread.c.
795 * sparc-sol-thread.c: New file.
796 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
797 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
798 configurations.
799 * configure: Regenerate.
800
d292a972
JB
8012012-09-27 Joel Brobecker <brobecker@adacore.com>
802
803 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
804 Remove commented-out code.
805
8c3da003
JB
8062012-09-27 Joel Brobecker <brobecker@adacore.com>
807
808 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
809 Enable this code for sparc hosts only.
810
f00482b6
JB
8112012-09-27 Joel Brobecker <brobecker@adacore.com>
812
813 * procfs.h (procfs_find_LDT_entry): Add declaration.
814 * sol-thread.c (ps_lgetLDT): Delete local declaration of
815 function procfs_find_LDT_entry.
816
337c776f
JB
8172012-09-27 Joel Brobecker <brobecker@adacore.com>
818
819 * procfs.c (proc_get_LDT_entry): Make static.
820
1a04d88f
JB
8212012-09-27 Joel Brobecker <brobecker@adacore.com>
822
823 * procfs.c (proc_find_memory_regions): Fix declaration.
824
bad43aa5
SP
8252012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
826
827 * amd64-tdep.c (amd64_return_value): Revert previous change
828 that used TYPE_LENGTH directly.
829 * bfin-tdep.c (bfin_extract_return_value): Likewise.
830 (bfin_store_return_value): Likewise.
831 * cris-tdep.c (cris_store_return_value): Likewise.
832 (cris_extract_return_value): Likewise.
833 * h8300-tdep.c (h8300_extract_return_value): Likewise.
834 * hppa-tdep.c (hppa64_return_value): Likewise.
835 * lm32-tdep.c (lm32_store_return_value): Likewise.
836 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
837 * spu-tdep.c (spu_value_from_register): Likewise.
838 * vax-tdep.c (vax_return_value): Likewise.
839
63375b74
SP
8402012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
841
842 * gdbtypes.c (lookup_array_range_type): Expand parameters
843 LOW_BOUND and HIGH_BOUND to LONGEST.
844 (lookup_string_range_type): Likewise.
845 * gdbtypes.h (lookup_array_range_type): Likewise.
846 (lookup_string_range_type): Likewise.
847 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
848 Expand HIGHBOUND to ssize_t.
849 (value_string): Likewise.
850 * value.h (value_cstring): Expand parameter LEN to ssize_t.
851 (value_string): Likewise.
852
19ca11c5
YQ
8532012-09-27 Yao Qi <yao@codesourcery.com>
854
855 PR breakpoints/13898
856 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
857 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
858 per breakpoint type.
859
92107356
PM
8602012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
861
862 * procfs.c: Add gdb_bfd header.
863 * rs6000-nat.c: Likewise.
864 * solib-pa64.c: Likewise.
865 * spu-linux-nat.c: Likewise.
866 * windows-nat.c: Likewise.
867
9742094a
TT
8682012-09-26 Tom Tromey <tromey@redhat.com>
869
870 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
871
0971de02
TT
8722012-09-26 Tom Tromey <tromey@redhat.com>
873
874 * dwarf2read.c (mark_common_block_symbol_computed): New function.
875 (read_common_block): Handle child DIEs with
876 DW_AT_data_member_location.
877 (new_symbol_full): Add special case for common blocks.
878
4357ac6c
TT
8792012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
880 Tom Tromey <tromey@redhat.com>
881
882 * dwarf2read.c (read_common_block): Rewrite.
883 (new_symbol_full): Handle DW_TAG_common_block.
884 * f-lang.c (head_common_list, find_common_for_function):
885 Remove.
886 * f-lang.h (struct common_entry, struct saved_f77_common,
887 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
888 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
889 BLANK_COMMON_NAME_LOCAL): Remove.
890 (struct common_block): New.
891 * f-valprint.c (list_all_visible_commons): Remove.
892 (info_common_command_for_block): New function.
893 (info_common_command): Use it.
894 * stack.c (iterate_over_block_locals): Special case for
895 COMMON_BLOCK_DOMAIN.
896 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
897 constant.
898 (struct general_symbol_info) <value.common_block>: New field.
899 (SYMBOL_VALUE_COMMON_BLOCK): New define.
900
965f07a8
TT
9012012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
902 Tom Tromey <tromey@redhat.com>
903
904 * f-lang.c (allocate_saved_bf_node,
905 allocate_saved_function_node, allocate_saved_f77_common_node,
906 allocate_common_entry_node, tail_common_list, current_common,
907 saved_bf_list, saved_bf_list_end, current_head_bf_list,
908 tmp_bf_ptr, add_common_block, add_common_entry,
909 find_first_common_named, patch_common_entries,
910 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
911 global_remote_debug, get_bf_for_fcn, saved_function_list,
912 saved_function_list_end, clear_function_list, struct saved_fcn,
913 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
914 SAVED_BF, SAVED_BF_PTR): Remove.
915 * f-lang.h (tail_common_list, current_common,
916 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
917 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
918 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
919 real_main_c_value): Remove.
920 * f-valprint.c (there_is_a_visible_common_named): Remove.
921
6f380991
AB
9222012-09-26 Andrew Burgess <aburgess@broadcom.com>
923
924 * breakpoint.c (update_global_location_list): Ignore previous
925 duplicate status of a breakpoint when starting a new scan for
926 duplicate breakpoints.
927
9ead7ae4 9282012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 929 PR breakpoints/14419
2536b51c
YQ
930 * arm-tdep.c (arm_skip_prologue): Extending producer check to
931 support LLVM compiler.
9ead7ae4 932
8f8a23a2
SP
9332012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
934
935 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
936 * bfin-tdep.c (bfin_extract_return_value): Likewise.
937 (bfin_store_return_value): Likewise.
938 * cris-tdep.c (cris_store_return_value): Likewise.
939 (cris_extract_return_value): Likewise.
940 * h8300-tdep.c (h8300_extract_return_value): Likewise.
941 * hppa-tdep.c (hppa64_return_value): Likewise.
942 * lm32-tdep.c (lm32_store_return_value): Likewise.
943 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
944 * spu-tdep.c (spu_value_from_register): Likewise.
945 * vax-tdep.c (vax_return_value): Likewise.
946
d7019589
SP
9472012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
948
949 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
950 parameter LEN to ssize_t.
951
744a8059
SP
9522012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
953
954 * ada-valprint.c (ada_val_print_1): Eliminate single-use
955 variable LEN.
956 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
957 directly.
958 (alpha_store_return_value): Likewise.
959 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
960 (amd64_push_arguments): Likewise.
961 * ax-gdb.c (gen_trace_static_fields): Likewise.
962 (gen_traced_pop): Likewise.
963 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
964 * breakpoint.c (update_watchpoint): Likewise.
965 * findcmd.c (parse_find_args): Use local variable for type
966 instead of length.
967 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
968 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
969 (h8300_store_return_value): Likewise.
970 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
971 Use i386_darwin_arg_type_alignment directly.
972 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
973 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
974 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
975 (m68hc11_extract_return_value): Likewise.
976 * mep-tdep.c (mep_push_dummy_call): Likewise.
977 * printcmd.c (float_type_from_length): Likewise.
978 * s390-tdep.c (s390_value_from_register): Likewise.
979 * stack.c (read_frame_arg): Likewise.
980 * tracepoint.c (encode_actions_1): Likewise.
981 * valops.c (value_fetch_lazy): Use local variable for type
982 instead of length. Use TYPE_LENGTH directly.
983 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
984
a4b411d6
JB
9852012-09-25 Joel Brobecker <brobecker@adacore.com>
986
987 * symtab.c (skip_prologue_sal): Fix typo in comment.
988
11dba07a
JB
9892012-09-25 Joel Brobecker <brobecker@adacore.com>
990
991 * linespec.c (create_sals_line_offset): Fix typo in comment.
992
318102b9
SP
9932012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
994
995 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
996 use plongest to print the array size.
997
b4aa388a
SP
9982012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
999
1000 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1001 * p-valprint.c (pascal_type_print_base): Likewise.
1002
84cebc4a
YQ
10032012-09-22 Yao Qi <yao@codesourcery.com>
1004
1005 * remote.c (remote_get_trace_status): Remove setting default
1006 values of fields of 'ts'.
1007
04e7407c
JK
10082012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1009
1010 Fix internal error on canonicalization of clang types.
1011 * cp-name-parser.y (operator): New comment at make_operator call for
1012 new, delete, new[] and delete[].
1013 (exp): Use "sizeof ". Add new comment at make_operator call.
1014
9bf4bce9
JK
10152012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1016
1017 Fix disassemble without parameters in tailcall frame.
1018 * cli/cli-cmds.c (disassemble_current_function): Use
1019 get_frame_address_in_block.
1020
1c5b7826
TT
10212012-09-21 Tom Tromey <tromey@redhat.com>
1022
1023 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1024 TYPE_CODE_UNION>: Unify, removing a goto.
1025
62a49610
TT
10262012-09-21 Tom Tromey <tromey@redhat.com>
1027
1028 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1029
2603f7ee
AB
10302012-09-21 Andrew Burgess <aburgess@broadcom.com>
1031
1032 * findvar.c (read_frame_register_value): Mark the result value as
1033 optimized out if any of the input registers have been optimized out.
1034
810849a3
AS
10352012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1036
1037 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1038
0953dec1
SP
10392012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1040
1041 * eval.c (evaluate_subexp_standard): Eliminate single-use
1042 variable LOWER.
1043
82a90ccf
YQ
10442012-09-21 Yao Qi <yao@codesourcery.com>
1045
1046 * mi/mi-interp.c: Declare mi_record_changed.
1047 (mi_interpreter_init): Call observer_attach_record_changed.
1048 (mi_record_changed): New.
1049 * record.c (record_open): Call observer_notify_record_changed.
1050 (cmd_record_stop): Call observer_notify_record_changed.
1051 * NEWS: Mention it.
1052
d7de8e3c
TT
10532012-09-20 Tom Tromey <tromey@redhat.com>
1054
1055 * NEWS: Update.
1056 * python/python.c (finalize_python): New function.
1057 (_initialize_python): Make a final cleanup.
1058
43c7c83d
DE
10592012-09-19 Doug Evans <dje@google.com>
1060
1061 * buildsym.h (param_symbols): Delete, unused.
1062 (context_stack): Delete member "params", unused.
1063 * buildsym.c (push_context): Update.
1064 * dwarf2read.c (read_func_scope): Update.
1065
aa9259cc
TS
10662012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1067
a6521d9a
TS
1068 * sh-tdep.c (sh_register_convert_to_virtual)
1069 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1070 all callers. Just do a memcpy if not the little-endian case.
1071
f92589cb
TS
1072 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1073 set_gdbarch_double_format and set_gdbarch_long_double_format.
1074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1075 set_gdbarch_double_format.
1076 * sh-tdep.c (sh_gdbarch_init): Likewise.
1077
aa9259cc
TS
1078 * NEWS: Document the removal of SH's 'regs' command.
1079 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1080 command.
1081
c1d780c2
SDJ
10822012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1083
1084 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1085 `jump'.
1086
4ae24af0
JB
10872012-09-18 Joel Brobecker <brobecker@adacore.com>
1088
1089 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1090 language when iterating over symbols.
1091
bb25a15c
YQ
10922012-09-18 Yao Qi <yao@codesourcery.com>
1093
1094 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1095 (mi_interpreter_init): Call observer_attach_tsv_created and
1096 observer_attach_tsv_deleted.
1097 (mi_tsv_created, mi_tsv_deleted): New.
1098 * tracepoint.c (delete_trace_state_variable): Call
1099 observer_notify_tsv_deleted.
1100 (trace_variable_command): Call observer_notify_tsv_created.
1101 (delete_trace_variable_command): Call
1102 observer_notify_tsv_deleted.
1103 (create_tsv_from_upload): Call observer_notify_tsv_created.
1104 * NEWS: Mention it.
1105
201b4506
YQ
11062012-09-18 Yao Qi <yao@codesourcery.com>
1107
1108 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1109 if traceframe changed.
1110 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1111 "trace-find".
1112 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1113 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1114 'traceframe_changed'.
1115 (mi_traceframe_changed): New.
1116 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1117 New field.
1118 * NEWS: Mention the new MI notification.
1119
eaeb12db
MW
11202012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1121
1122 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1123
6e3c039e
JK
11242012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1127 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1128 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1129 Extend code also for PaX support. Convert all gdb_assert to warning
1130 calls.
1131
9a950c7c
JK
11322012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1133
1134 Implement auto-load user conveniences suggested by Doug Evans.
1135 * auto-load.c: Include top.h.
1136 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1137 (_initialize_auto_load): New variable scripts_directory_help. Mention
1138 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1139 scripts-directory. Document in online help one can use also files for
1140 set auto-load safe-path.
1141 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1142 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1143
deec9a9d
SP
11442012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1145
1146 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1147 of LEN.
1148
354ecfd5
SP
11492012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1150
1151 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1152 ELTLEN and use TYPE_LENGTH directly.
1153 (m2_val_print): Likewise.
1154 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1155 variable LEN and use TYPE_LENGTH directly.
1156 (m68k_svr4_store_return_value): Likewise.
1157 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1158 ARGLEN and use TYPE_LENGTH directly.
1159 (mips_o64_push_dummy_call): Likewise.
1160 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1161 variable LENGTH and use TYPE_LENGTH directly.
1162 (s390_function_arg_float): Likewise.
1163 (s390_function_arg_integer): Likewise.
1164 (s390_push_dummy_call): Likewise.
1165 (s390_return_value_convention): Likewise.
1166 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1167 TYPE_LENGTH directly.
1168
6fc1c773
YQ
11692012-09-17 Yao Qi <yao@codesourcery.com>
1170
1171 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1172 Update comment to add_setshow_integer_cmd.
1173 * cli/cli-setshow.c (do_set_command): Handle case
1174 'var_zuinteger_unlimited'.
1175 (do_show_command): Likewise.
1176 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1177 for command 'remotetimeout'.
1178 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1179 to var_integer.
1180 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1181 for command 'set listsize'.
1182
6acef6cd
SP
11832012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1184
1185 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1186 variable LEN.
1187
1ab3b62c
JK
11882012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1189
1190 PR 14119
1191 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1192 (frame_pop): Drop also TAILCALL_FRAME frames.
1193 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1194
acf9414f
JK
11952012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1196 Pedro Alves <palves@redhat.com>
1197
1198 PR 14548
1199 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1200 function start if we are already at function start. Both for
1201 reverse-next and for reverse-step into function without line number
1202 info.
1203
193facb3
JK
12042012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1205
1206 Code cleanup - rename 'inline' depth to 'artificial' depth.
1207 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1208 frame_id_artificial_p, extend the comment.
1209 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1210 * frame.c (fprint_frame_id): Rename at a user, change debug output
1211 text to "artificial=".
1212 (skip_inlined_frames): Rename to ...
1213 (skip_artificial_frames): ... here. Extend the comment.
1214 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1215 (frame_id_inlined_p): Rename to ...
1216 (frame_id_artificial_p): ... here. Rename at a user.
1217 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1218 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1219 at a user.
1220 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1221 Extend the comment.
1222 (frame_id_inlined_p): Rename to ...
1223 (frame_id_artificial_p): ... here.
1224 * inline-frame.c (inline_frame_this_id): Rename at a user.
1225
42056501
AB
12262012-09-14 Andrew Burgess <aburgess@broadcom.com>
1227
1228 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1229 vector variables using vector_size syntax rather than array
1230 syntax.
1231
84c47588
SP
12322012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1233
1234 * valarith.c (value_concat): Replace unsafe ALLOCA with
1235 XMALLOC/XFREE.
1236
f4045bcb
PA
12372012-09-14 Pedro Alves <palves@redhat.com>
1238
1239 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1240
63b46266
YPK
12412012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1242
1243 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1244 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1245 data-directory as appropriate.
1246
ddd7a8e7
SP
12472012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1248
1249 * printcmd.c (ui_printf): Eliminate single-use variable
1250 PARAM_LEN.
1251
d649a38e
YQ
12522012-09-14 Yao Qi <yao@codesourcery.com>
1253 Pedro Alves <palves@redhat.com>
1254
1255 * valops.c (value_assign): Move observer_notify_target_changed
1256 below to replace reinit_frame_cache.
1257
b9516fa1
YPK
12582012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1259
1260 Refactor Python "gdb" module into a proper Python package, by
1261 introducing a new "_gdb" module for code implemented in C, and
1262 using reload/__import__ instead of exec.
1263 * python/lib/gdb/__init__.py: Import * from _gdb.
1264 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1265 prompt_hook, sys.argv): Moved from finish_python_initialization.
1266 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1267 (packages, auto_load_packages): New list and function replacing
1268 module_dict and auto-loading code, using __file__ instead of
1269 gdb.PYTHONDIR and reload/__import__ instead of exec.
1270 (GdbSetPythonDirectory): Replacing function of the same name
1271 from finish_python_initialization, using reload/__import__ instead
1272 of exec, as well as call auto_load_packages.
1273 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1274 gdb_python_module and not gdb_module.
1275 * python/python-internal.h (gdb_python_module): Declare.
1276 * python/python.c (gdb_python_module): New global.
1277 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1278 (_initialize_python): Rename gdb module to _gdb.
1279 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1280 (finish_python_initialization): Move Python code to
1281 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1282 __main__.
1283
aa0fbdd8
PA
12842012-09-13 Pedro Alves <palves@redhat.com>
1285
1286 * Makefile.in (COMMON_OBS): Add registry.o.
1287 * registry.c: New file.
1288 * registry.h (struct registry_container): Declare.
1289 (registry_data_callback): New typedef.
1290 (struct registry_data, struct registry_data_registration, struct
1291 registry_data_registry): New type.
1292 (register_data_with_cleanup, registry_alloc_data)
1293 (registry_callback_adaptor, registry_clear_data)
1294 (registry_container_free_data, registry_set_data, registry_data):
1295 Declare.
1296 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1297 the new common structures and functions.
1298 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1299 callback typedefs.
1300
42b5c53d
MW
13012012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1302
1303 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1304 there is an error inserting hardware breakpoints and use the
1305 error message from the target.
1306
1307 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1308 Catch this exception and print the error message contained within. Do not
1309 print the default hardware error breakpoint message in this case.
1310
a1b64ce1
DE
13112012-09-12 Doug Evans <dje@google.com>
1312
1313 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1314 cu == NULL.
1315
83a788b8
DE
13162012-09-11 Doug Evans <dje@google.com>
1317
1318 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1319 .gdb_index symbol attributes if there are none.
1320
d9eaeb59
JB
13212012-09-11 Joel Brobecker <brobecker@adacore.com>
1322
1323 * symtab.h (struct minimal_symbol) [has_size]: New field.
1324 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1325 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1326 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1327 minimal symbols if the symbol's size is actually known.
1328 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1329 of msymbol's size field. Add comment.
1330 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1331 SET_MSYMBOL_SIZE to set the minimal symbol size.
1332
a83e9154
JB
13332012-09-11 Joel Brobecker <brobecker@adacore.com>
1334
1335 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1336 minimal_symbol struct object, rather than setting some of its
1337 fields one by one.
1338
350b1b26
AB
13392012-09-11 Andrew Burgess <aburgess@broadcom.com>
1340
1341 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1342 passed_a_ptr flag when displaying typedef types.
1343
2fa15f23
JB
13442012-09-10 Joel Brobecker <brobecker@adacore.com>
1345
1346 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1347 the optimized_out flag is preserved.
1348
5152ff90
AG
13492012-09-10 Anthony Green <green@moxielogic.com>
1350
1351 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1352 prologue changes in GCC.
1353
5b4f6e25
KS
13542012-09-10 Keith Seitz <keiths@redhat.com>
1355
1356 PR gdb/13483
1357 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1358 (BOOL_CONVERSION_BADNESS): ... this.
1359 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1360 (rank_one_type): Allow all boolean conversions
1361 permitted by the standard.
1362
f1070426
TT
13632012-09-06 Tom Tromey <tromey@redhat.com>
1364
1365 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1366 Don't decref py_objfile.
1367
a8db4212
YPK
13682012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1369
1370 Do not enable -lmcheck by default when Python is enabled with
1371 threading support.
1372 * configure.ac: (python_has_threads) New variable, by testing
1373 if WITH_THREAD is defined in Python.h.
1374 Move --enable-lmcheck after --with-python.
1375 Do not enable -lmcheck by default if python_has_threads=yes.
1376 Warn if --enable-lmcheck and python_has_threads=yes.
1377 * configure: Regenerate.
1378
648beb2b
YQ
13792012-08-31 Yao Qi <yao@codesourcery.com>
1380
1381 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1382 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1383 Update some commands.
1384 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1385 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1386 to 1.
1387
ef07a9f7
YQ
13882012-08-31 Yao Qi <yao@codesourcery.com>
1389
1390 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1391
fda395cf
YPK
13922012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1393
1394 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1395
8efd8e78
DE
13962012-08-29 Doug Evans <dje@google.com>
1397
1398 * main.c (print_gdb_help): Remove reference to
1399 --use-deprecated-index-sections.
1400
883b9c6c
YQ
14012012-08-28 Yao Qi <yao@codesourcery.com>
1402
1403 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1404 (init_cmds): Call add_setshow_uinteger_cmd for command
1405 'max-user-call-depth'.
1406 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1407 declaration of 'max_user_call_depth'.
1408 * frame.c (backtrace_limit): Add 'unsigned'.
1409 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1410 'limit'.
1411 * remote.c (remoteaddresssize): Add 'unsigned'.
1412 (remote_address_masked): Change local var 'address_size' to
1413 'unsigned'.
1414 (_initialize_remote): Call add_setshow_uinteger_cmd for
1415 'remoteaddresssize'.
1416 * top.c (history_size): Add 'unsigned'.
1417 (show_commands): Change local variables to 'unsigned'.
1418 (set_history_size_command): Don't check history_size is negative.
1419 Adjust the condition to call unstifle_history and set history_size
1420 to UNIT_MAX.
1421
1292279a
PA
14222012-08-28 Pedro Alves <palves@redhat.com>
1423
1424 PR gdb/14428
1425
1426 * infcmd.c (default_print_one_register_info): New, factored out
1427 from default_print_registers_info.
1428 (default_print_registers_info): Use it. Mark value unavailable if
1429 necessary.
1430 (registers_info): Print user registers with
1431 default_print_one_register_info.
1432
f629cd75
L
14332010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1434
1435 PR tui/14486
1436 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1437 is not NULL before referencing it.
1438
1c8cdcb1
JK
14392012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1440
1441 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1442 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1443 original PC for it.
1444
e9687799
JK
14452012-08-27 Eli Zaretskii <eliz@gnu.org>
1446 Jan Kratochvil <jan.kratochvil@redhat.com>
1447
1448 * auto-load.c (auto_load_objfile_script): Rename to ...
1449 (auto_load_objfile_script_1): ... here, change variable realname to
1450 parameter realname, document it, add return value, add variable retval.
1451 (auto_load_objfile_script): New function.
1452
7afa1642
JK
14532012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1454
1455 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1456 followed by a whitespace.
1457
dc7650b8
JK
14582012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1459
28e66c70 1460 PR gdb/14494.
dc7650b8
JK
1461 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1462 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1463 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1464 here.
1465
1591a1e8
PA
14662012-08-27 Wei-cheng Wang <cole945@gmail.com>
1467
1468 * memattr.c (create_mem_region): Fix memory region overlapping
1469 checking.
1470
ecfb0d68
SP
14712012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1472
1473 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1474 with xmalloc/cleanup.
1475 * mt-tdep.c (mt_push_dummy_call): Likewise.
1476 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1477 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1478
8c56c1b9
YQ
14792012-08-24 Yao Qi <yao@codesourcery.com>
1480
1481 * jv-exp.y (push_expression_name): Add "." at the end of error
1482 message.
1483
e3480f4a
YPK
14842012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1485
1486 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1487 * python/python.c (_initialize_python): Update documentation.
1488
dfbd5e7b
PA
14892012-08-23 Pedro Alves <palves@redhat.com>
1490
1491 * infrun.c (_initialize_infrun) <handle command help text>:
1492 Mention that multiple signals are supported.
1493
2edda2ff
PA
14942012-08-23 Pedro Alves <palves@redhat.com>
1495
1496 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1497 string.
1498
8d735b87
YQ
14992012-08-23 Yao Qi <yao@codesourcery.com>
1500
1501 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1502 (tfind_1): Don't call registers_changed, set_traceframe_num,
1503 and clear_traceframe_info.
1504 Call set_current_traceframe.
1505 (set_current_traceframe): call set_traceframe_num.
1506
c5d9b215
SDJ
15072012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1508
1509 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1510 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1511
037bbc8e
YPK
15122012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1513
1514 Enable readline in Python in a GDB-specific way and block the
1515 standard Python readline module to prevent conflicts with GDB.
1516 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1517 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1518 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1519 * python/py-gdb-readline.c: New file.
1520 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1521 prototype.
1522 * python/python.c (_initialize_python): Call
1523 gdbpy_initialize_gdb_readline.
1524
406b1477
KS
15252012-08-22 Keith Seitz <keiths@redhat.com>
1526
1527 * defs.h: Include build-gnulib/config.h
1528
6ca1b147
JM
15292012-08-22 Joseph Myers <joseph@codesourcery.com>
1530
1531 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1532 and blx pc.
1533
8315665e
YPK
15342012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1535
1536 Add a new "python-interactive" command that starts a standard
1537 Python interactive prompt with "pi" as alias, and add "py" as
1538 an alias to "python".
1539 * NEWS: Mention the new commands.
8315665e
YPK
1540 * python/python.c (eval_python_command): New function.
1541 (python_interactive_command): For "python-interactive" with
1542 arguments, call eval_python_command. For "python-interactive"
1543 without arguments, call PyRun_InteractiveLoop.
1544 (_initialize_python): Add "python-interactive" command with
1545 "pi" as alias, and add "py" as an alias to "python".
1546
522002f9
TT
15472012-08-22 Tom Tromey <tromey@redhat.com>
1548
1549 * defs.h (quit_flag): Don't declare.
1550 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1551 (QUIT): Use new functions.
1552 * event-top.c (command_handler): Use clear_quit_flag.
1553 (handle_sigint): Use set_quit_flag.
1554 (async_request_quit): Use check_quit_flag. Don't check
1555 immediate_quit.
1556 * exceptions.c (throw_exception): Use clear_quit_flag.
1557 * main.c (captured_main): Use clear_quit_flag.
1558 * python/python.c (clear_quit_flag, set_quit_flag)
1559 (check_quit_flag): New functions.
1560 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1561 clear_quit_flag.
1562 * remote.c (remote_wait_as): Use check_quit_flag,
1563 clear_quit_flag.
1564 (remote_start_remote): Call QUIT.
1565 * symfile.c (load_progress): Use check_quit_flag.
1566 * top.c (command_loop): Use clear_quit_flag.
1567 (command_line_input): Call QUIT.
1568 * utils.c (quit_flag): Conditionally define.
1569 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1570 functions.
1571 (prompt_for_continue): Call QUIT. Use quit, not
1572 async_request_quit.
1573 * remote-mips.c (mips_expect_timeout): Call QUIT.
1574 * monitor.c (monitor_expect): Call QUIT.
1575
b583003e
TT
15762012-08-22 Tom Tromey <tromey@redhat.com>
1577
1578 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1579 (async_init_signals): Update.
1580 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1581 (SIGWINCH_HANDLER_BODY): Remove.
1582
e1507e95
TT
15832012-08-22 Tom Tromey <tromey@redhat.com>
1584
1585 * jit.c (jit_object_close_impl): Don't malloc the objfile
1586 name.
1587 * objfiles.c (allocate_objfile): Don't malloc the objfile
1588 name.
1589 (free_objfile): Don't free the objfile name.
1590 * objfiles.h (struct objfile) <name>: Update comment.
1591 * symfile.c (reread_symbols): Fix reference counting. Don't
1592 malloc objfile name.
1593
1c00ec6b
TT
15942012-08-22 Tom Tromey <tromey@redhat.com>
1595
1596 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1597 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1598 (symfile_bfd_open): Likewise.
1599 (generic_load): Likewise.
1600 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1601 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1602 gdb_bfd_open.
1603 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1604 Use gdb_bfd_open.
1605 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1606 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1607 (pmon_load_fast): Likewise.
1608 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1609 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1610 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1611 (macho_check_dsym): Likewise.
1612 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1613 (m32r_upload_command): Likewise.
1614 * gdb_bfd.h (gdb_bfd_cache): Declare.
1615 * gdb_bfd.c (struct gdb_bfd_data): New.
1616 (gdb_bfd_cache): New global.
1617 (struct gdb_bfd_cache_search): New.
1618 (hash_bfd): New function.
1619 (eq_bfd): Likewise.
1620 (gdb_bfd_open): Likewise.
1621 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1622 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1623 gdb_bfd_data.
1624 * exec.c (exec_file_attach): Use gdb_bfd_open.
1625 * dsrec.c (load_srec): Use gdb_bfd_open.
1626
6532ff36
TT
16272012-08-22 Tom Tromey <tromey@redhat.com>
1628
1629 * dwarf2read.c (macro_start_file): Update.
1630 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1631 (free_objfile_per_bfd_storage): Destroy macro_cache.
1632 (allocate_objfile, free_objfile): Update.
1633 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1634 New field.
1635 (struct objfile) <macro_cache>: Remove.
1636 * symfile.c (reread_symbols): Update.
1637 * symmisc.c (print_symbol_bcache_statistics): Update.
1638 (print_objfile_statistics): Update.
1639
706e3705
TT
16402012-08-22 Tom Tromey <tromey@redhat.com>
1641
1642 * elfread.c (elf_symtab_read): Update.
1643 * objfiles.c (objfiles_bfd_data): New global.
1644 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1645 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1646 (allocate_objfile, free_objfile): Update.
1647 (_initialize_objfiles): Initialize objfiles_bfd_data.
1648 * objfiles.h (struct objfile_per_bfd_storage): New.
1649 (struct objfile) <per_bfd>: New field.
1650 <filename_cache>: Remove.
1651 (set_objfile_per_bfd): Declare.
1652 * symfile.c (reread_symbols): Update. Call
1653 set_objfile_per_bfd.
1654 (allocate_symtab): Update.
1655 * symmisc.c (print_symbol_bcache_statistics): Update.
1656 (print_objfile_statistics): Print the size of the BFD obstack.
1657
e992eda4
TT
16582012-08-22 Tom Tromey <tromey@redhat.com>
1659
1660 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1661 * gdb_bfd.c: Use DEFINE_REGISTRY.
1662 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1663 (gdb_bfd_ref): Call bfd_alloc_data.
1664 (gdb_bfd_unref): Call bfd_free_data.
1665
6b81941e
TT
16662012-08-22 Tom Tromey <tromey@redhat.com>
1667
1668 * registry.h (struct registry_fields): New.
1669 (REGISTRY_FIELDS): Redefine.
1670 (REGISTRY_ACCESS_FIELD): New macro.
1671 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1672 functions.
1673
8e260fc0
TT
16742012-08-22 Tom Tromey <tromey@redhat.com>
1675
1676 * auto-load.c (_initialize_auto_load): Update.
1677 * solib-svr4.c (_initialize_svr4_solib): Update
1678 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1679 * solib-darwin.c (_initialize_darwin_solib): Update.
1680 * registry.h: New file.
1681 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1682 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1683 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1684 (register_program_space_data_with_cleanup)
1685 (register_program_space_data, program_space_alloc_data)
1686 (clear_program_space_data, set_program_space_data)
1687 (program_space_data): Don't declare.
1688 * progspace.c: Use DEFINE_REGISTRY.
1689 (struct program_space_data, struct
1690 program_space_data_registration, struct
1691 program_space_data_registry, program_space_data_registry)
1692 (register_program_space_data_with_cleanup)
1693 (register_program_space_data, program_space_alloc_data)
1694 (program_space_free_data, clear_program_space_data)
1695 (set_program_space_data, program_space_data): Remove.
1696 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1697 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1698 (register_objfile_data_with_cleanup, register_objfile_data)
1699 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1700 declare.
1701 * objfiles.c: Use DEFINE_REGISTRY.
1702 (struct objfile_data, struct objfile_data_registration, struct
1703 objfile_data_registry, objfile_data_registry)
1704 (register_objfile_data_with_cleanup, register_objfile_data)
1705 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1706 (set_objfile_data, objfile_data): Remove.
1707 (_initialize_objfiles): Update.
1708 * jit.c (_initialize_jit): Update.
1709 * inflow.c (_initialize_inflow): Update.
1710 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1711 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1712 (register_inferior_data_with_cleanup, register_inferior_data)
1713 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1714 declare.
1715 * inferior.c: Use DEFINE_REGISTRY.
1716 (struct inferior_data, struct inferior_data_registration, struct
1717 inferior_data_registry, inferior_data_registry)
1718 (register_inferior_data_with_cleanup, register_inferior_data)
1719 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1720 (set_inferior_data, inferior_data): Remove.
1721 * auxv.c (_initialize_auxv): Update.
1722 * ada-lang.c (_initialize_ada_language): Update.
1723 * breakpoint.c (_initialize_breakpoint): Update.
1724 * i386-nat.c (i386_use_watchpoints): Update.
1725
ed9eebaf
TT
17262012-08-22 Tom Tromey <tromey@redhat.com>
1727
1728 * exec.c (exec_close, exec_file_attach): Update.
1729 (add_to_section_table): Initialize 'key' field.
1730 (add_target_sections, remove_target_sections): Add 'key' argument.
1731 * exec.h (add_target_sections, remove_target_sections): Add
1732 'key' argument.
1733 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1734 (reload_shared_libraries_1): Update.
1735 * target.h (struct target_section) <key>: New field.
1736
2f2e97fa
TT
17372012-08-22 Tom Tromey <tromey@redhat.com>
1738
1739 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1740
b3dbbd6f
PM
17412012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1742
1743 * symfile.c (allocate_symtab): Use host_address_to_string
1744 function instead of cast of pointer to long which is not
1745 compatible with x86_64-w64-mingw32 build.
1746
f94363d7
AP
17472012-08-19 Andrew Pinski <apinski@cavium.com>
1748
1749 * mips-tdep.c (is_octeon): New function.
1750 (is_octeon_bbit_op): New function.
1751 (mips32_next_pc): Handle Octeon's bbit instructions.
1752 (mips32_instruction_has_delay_slot): Likewise.
1753
78a59c2f
AP
17542012-08-19 Andrew Pinski <apinski@cavium.com>
1755
1756 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1757 before the function.
1758
4f5bcb50
AP
17592012-08-19 Andrew Pinski <apinski@cavium.com>
1760
1761 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1762
e5afdbd7
KS
17632012-08-19 Keith Seitz <keiths@redhat.com>
1764
1765 PR c++/14365
1766 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1767 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1768
13c9750e
EZ
17692012-08-18 Eli Zaretskii <eliz@gnu.org>
1770
1771 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1772 The typo broke "make TAGS".
1773
db761810 17742012-08-17 Joel Brobecker <brobecker@adacore.com>
1775
1776 GDB 7.5 released.
1777
a451cb65
KS
17782012-08-17 Keith Seitz <keiths@redhat.com>
1779
1780 PR c++/13356
1781 * gdbtypes.c (strict_type_checking): New variable.
1782 (show_strict_type_checking): New function.
1783 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1784 if strict type checking is disabled.
1785 (_initialize_gdbtypes): Add "check type" subcommand.
1786 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1787
17882012-08-17 Keith Seitz <keiths@redhat.com>
1789
1790 * language.h (type_mode): Remove.
1791 (type_check): Remove.
1792 (struct language_defn): Remove la_type_check.
1793 (STRICT_TYPE): Remove unused macro.
1794 (type_error): Remove.
1795 * language.c (set_type_range_case): Renamed to ...
1796 (set_range_case): ... this. Update all callers.
1797 Remove type_mode/type_check.
1798 (type_mode): Remove.
1799 (type_check): Remove.
1800 (show_type_command): Remove.
1801 (set_type_command): Remove.
1802 (language_info): Remove type checking output.
1803 (type_error): Remove unused function.
1804 (range_error): Update comment.
1805 (unknown_language_defn): Remove la_type_check.
1806 (auto_language_defn): Likewise.
1807 (local_language_defn): Likewise.
1808 (_initialize_language): Remove "check type" subcommand.
1809 * ada-lang.c (ada_language_defn): Remove la_type_check.
1810 * c-lang.c (c_language_defn): Likewise.
1811 (cplus_language_defn): Likewise.
1812 (asm_language_defn): Likewise.
1813 (minimal_language_defn): Likewise.
1814 * d-lang.c (d_language_defn): Likewise.
1815 * f-lang.c (f_language_defn): Likewise.
1816 * go-lang.c (go_language_defn): Likewise.
1817 * jv-lang.c (java_language_defn): Likewise.
1818 * m2-lang.c (m2_language_defn): Likewise.
1819 * objc-lang.c (objc_language_defn): Likewise.
1820 * opencl-lang.c (opencl_language_defn): Likewise.
1821 * p-lang.c (pascal_language_defn): Likewise.
1822
dbf6a605
MF
18232012-08-16 Mike Frysinger <vapier@gentoo.org>
1824
1825 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1826
973e3cf7
JB
18272012-08-16 Joel Brobecker <brobecker@adacore.com>
1828
1829 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1830 New function.
1831 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1832 using the regache. Use ia64_hpux_get_register_from_save_state_t
1833 to access the bsp and bspstore registers if not.
1834
d80ee84f
JB
18352012-08-16 Joel Brobecker <brobecker@adacore.com>
1836
1837 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1838 * breakpoint.c (detach_breakpoints): Change pid parameter into
1839 a ptid. Adjust code accordingly.
1840 * infrun.c (handle_inferior_event): Delete variable child_pid.
1841 Update call to detach_breakpoints to pass the child ptid for
1842 fork events.
1843 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1844 assert that inferior_ptid's lwp is zero.
1845 (linux_handle_extended_wait): Update call to detach_breakpoints.
1846 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1847 detach_breakpoints.
1848
2dcc6086
JB
18492012-08-16 Joel Brobecker <brobecker@adacore.com>
1850
1851 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1852 parent, only call detach_breakpoints if tts.tts_event ==
1853 TTEVT_VFORK.
1854
0c92d8c1
JB
18552012-08-16 Joel Brobecker <brobecker@adacore.com>
1856
1857 * dwarf2-frame.c (dwarf2_frame_cache): Use
1858 get_frame_address_in_block instead of get_frame_pc as
1859 the bound for executing the frame's FDE.
1860
6b1755ce
YQ
18612012-08-16 Yao Qi <yao@codesourcery.com>
1862
1863 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1864 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1865 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1866 (c_type_print_varspec_suffix): Likewise.
1867 * eval.c (evaluate_subexp_standard): Likewise.
1868 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1869 (f_type_print_varspec_suffix): Likewise.
1870 * gdbtypes.c (is_scalar_type): Likewise.
1871 (recursive_dump_type): Likewise.
1872 * infcall.c (value_arg_coerce): Likewise.
1873 * m2-valprint.c (m2_val_print): Likewise.
1874 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1875 (pascal_type_print_varspec_suffix): Likewise.
1876 (pascal_type_print_base): Likewise.
1877 * p-valprint.c (pascal_val_print): Likewise.
1878 (pascal_val_print): Likewise.
1879 * valops.c (value_slice): Likewise.
1880 * valprint.c (scalar_type_p): Likewise.
1881 * valarith.c (value_bitstring_subscript): Remove.
1882 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1883 Remove comment on TYPE_CODE_BITSTRING.
1884
1885 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1886 TYPE_CODE_BITSTRING.
1887
1888 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1889 slot 0.
1890
8acc4065
YQ
18912012-08-16 Yao Qi <yao@codesourcery.com>
1892
1893 * tracepoint.c (trace_find_none_command): Remove.
1894 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1895
8128fd8e
YQ
18962012-08-16 Yao Qi <yao@codesourcery.com>
1897
1898 * remote.c (handle_notification): Remove parameter 'length'.
1899 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1900
2873700e
KS
19012012-08-15 Keith Seitz <keiths@redhat.com>
1902
1903 * gdbtypes.c (opaque_type_resolution): Make static.
1904 Add missing comment.
1905 (overload_debug): Add missing comment.
1906 (show_opaque_type_resolution): Likewise.
1907 (show_overload_debug): Likewise.
1908 (print_bit_vector): Remove unnecessary forward declaration.
1909 (print_arg_types): Likewise.
1910 (dump_fn_fieldlists): Likewise.
1911 (print_cplus_stuff): Likewise.
1912
b82d08cd
TT
19132012-08-15 Tom Tromey <tromey@redhat.com>
1914
1915 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1916 (gdb_bfd_ref): Initialize new field.
1917 (gdb_bfd_unref): Unref the archive BFD.
1918 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1919 parent archive.
1920
db6573d6
TT
19212012-08-15 Tom Tromey <tromey@redhat.com>
1922
1923 PR python/14387:
1924 * python/py-bpevent.c (create_breakpoint_event_object): Update
1925 comment.
1926 * python/py-event.c (evpy_add_attribute): Update comment.
1927 * python/py-exitedevent.c (create_exited_event_object): Fix
1928 reference counting and error handling.
1929 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1930 Fix reference counting.
1931 * python/py-signalevent.c (create_signal_event_object): Fix
1932 reference counting and error handling.
1933 * python/py-stopevent.c (emit_stop_event): Fix reference
1934 counting.
1935 * python/py-threadevent.c (get_event_thread): Return a
1936 borrowed reference.
1937 * python/py-type.c (convert_field): Fix reference counting.
1938
a036ba48
TT
19392012-08-15 Tom Tromey <tromey@redhat.com>
1940
1941 * dwarf2read.c (dwarf_decode_macro_bytes)
1942 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1943 as hash key.
1944
486c7739
MF
19452012-08-14 Mike Frysinger <vapier@gentoo.org>
1946
1947 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1948 stepi, nexti, finish, next, step, jump, and continue commands.
1949 * infrun.c (_initialize_infrun): Update help text for the handle
1950 command.
1951
4cf93a03
DE
19522012-08-14 Doug Evans <dje@google.com>
1953
70b099cf
DE
1954 * gdbtypes.c (struct extra): Delete, unused.
1955
5212577a
DE
1956 * gdbtypes.c: Whitespace cleanup.
1957 (address_space_name_to_int): Remove "extern" from definition.
1958 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1959
4cf93a03
DE
1960 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1961 TYPE_POINTER_TYPE (type).
1962
3756ef7e
GB
19632012-08-14 Gary Benson <gbenson@redhat.com>
1964
1965 * solib-svr4.c (svr4_free_library_list): Use free_so.
1966
40d72643
MF
19672012-08-13 Mike Frysinger <vapier@gentoo.org>
1968
1969 * .gitignore: Add go-exp.c.
1970
f47f77df
DE
19712012-08-13 Doug Evans <dje@google.com>
1972
1973 * value.c (show_convenience): Tweak comment.
1974 (_initialize_values): Mention convenience functions in the help text
1975 for "show convenience".
1976
7507c54a
YQ
19772012-08-13 Yao Qi <yao@codesourcery.com>
1978
1979 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1980 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1981 TERNOP_SLICE_COUNT.
1982 * eval.c (evaluate_subexp_standard): Likewise.
1983 * expprint.c (print_subexp_standard): Likewise.
1984 (dump_subexp_body_standard): Likewise.
1985 * parse.c (operator_length_standard): Likewise.
1986
5cad9736
YQ
19872012-08-13 Yao Qi <yao@codesourcery.com>
1988
1989 * std-operator.def: Remove OP_BITSTRING.
1990 * breakpoint.c (watchpoint_exp_is_const): Update.
1991 * eval.c (evaluate_subexp_standard): Remove handling to
1992 OP_BITSTRING.
1993 * expprint.c (print_subexp_standard): Likewise.
1994 (dump_subexp_body_standard): Likewise.
1995 * parse.c (operator_length_standard): Likewise.
1996 * valops.c (value_bitstring): Remove.
1997 * value.h: Remove the declaration of 'value_bitstring'.
1998
bad7670a
SDJ
19992012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2000
2001 * linespec.c (find_methods): Remove unused variables `i1' and
2002 `name_len'.
2003 (decode_line_full): Likewise for `arg_start'.
2004
d9dce7fa
SDJ
20052012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2006
2007 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2008 (zlib_decompress_section): Likewise for `section_data'.
2009 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2010
a72c3253
DE
20112012-08-10 Doug Evans <dje@google.com>
2012
2013 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2014 * NEWS: Document them.
2015 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2016 function/strfns.py.
2017 * python/py-type.c (typy_array_1): New function.
2018 (typy_array): Call it.
2019 (typy_vector): New function.
2020 (type_object_methods): Add "vector".
2021 * python/lib/gdb/function/__init__.py: New file.
2022 * python/lib/gdb/function/strfns.py: New file.
2023
200bc880
SP
20242012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2025
2026 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2027 for TYPE_FIELD_BITPOS.
2028 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2029
de0bea00
MF
20302012-08-10 Mike Frysinger <vapier@gentoo.org>
2031
2032 PR cli/10436:
2033 * common/vec.h (VEC_merge): Define.
2034 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2035 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2036 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2037 * completer.c: Include gdb_signals.h.
2038 (signal_completer): Define.
2039 * completer.h (signal_completer): Add prototype.
2040 * infcmd.c (_initialize_infcmd): Assign the command
2041 completer for "signal" to handle_completer.
2042 * infrun.c: Include completer.h.
2043 (handle_completer): Define.
2044 (_initialize_infrun): Declare a new local variable c. Store the
2045 result of add_com("handle") to it. Assign the command
2046 completer for "handle" to handle_completer.
2047
5b9afe8a
YQ
20482012-08-09 Yao Qi <yao@codesourcery.com>
2049
2050 * cli/cli-decode.c (set_cmd_prefix): New.
2051 (lookup_cmd_for_prefixlist): New.
2052 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2053 of each cmd_list_element in *prefixlist.
2054 (add_setshow_cmd_full): set_cmd_prefix.
2055 (add_alias_cmd): Likewise.
2056 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2057 Declare 'auto_boolean_enums'.
2058 * cli/cli-setshow.c: Include "observer.h".
2059 (notify_command_param_changed_p): New.
2060 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2061 Remove 'static'.
2062 (do_setshow_command): Split it to ...
2063 (do_set_command, do_show_command): ... them. New.
2064 (do_set_command): Call observer_notify_command_param_changed if
2065 notify_command_param_changed_p returns true.
2066 (cmd_show_list): Caller update.
2067 * auto-load.c (set_auto_load_cmd): Likewise.
2068 * remote.c (show_remote_cmd): Likewise.
2069 * cli/cli-setshow.h: Update declarations.
2070 * top.c (execute_command): Call do_set_command and do_show_command.
2071
2072 * NEWS: Mention new MI notification.
2073 * mi/mi-interp.c: Declare mi_command_param_changed.
2074 (mi_interpreter_init): Attach mi_command_param_changed to
2075 observer command_param_changed.
2076 (mi_command_param_changed): New.
2077 Remove mi_suppress_breakpoint_notifications.
2078 Define global variable mi_suppress_notification.
2079 (mi_breakpoint_created): Update.
2080 (mi_breakpoint_deleted): Likewise.
2081 (mi_breakpoint_modified): Likewise.
2082 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2083 'gdb-set' and set mi_suppress_notification.
2084 * mi/mi-main.h: (mi_suppress_notification): New struct.
2085
1969df89
JK
20862012-08-09 Andreas Tobler <andreast@fgznet.ch>
2087 Jan Kratochvil <jan.kratochvil@redhat.com>
2088
2089 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2090
8bfd80db
YQ
20912012-08-09 Yao Qi <yao@codesourcery.com>
2092
2093 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2094 (skiplist): Move it to skip.c.
2095 (init_cmd_lists): Remove code setting enablebreaklist and
2096 skiplist to NULL.
2097 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2098 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2099 skiplist.
2100 * gdbcmd.h: Likewise.
2101 * skip.c (_initialize_step_skip): Move 'skiplist' from
2102 cli/cli-cmds.c.
2103
28578e6b
YQ
21042012-08-09 Yao Qi <yao@codesourcery.com>
2105
2106 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2107 * gnu-nat.c, symfile.c: Likewise.
2108
260c0b2a
DE
21092012-08-08 Aaron Gamble <agamble@google.com>
2110
2111 * utils.c (prompt_for_continue_wait_time): New static global.
2112 (make_command_stats_cleanup): Initialize it.
2113 (report_command_stats): Subtract time waiting for user.
2114 (prompt_for_continue): Track time waiting for user.
2115 (defaulted_query): Track time waiting for user.
2116
4f485ebc
DE
21172012-08-08 Doug Evans <dje@google.com>
2118
2119 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2120 UNOP_MEMVAL_TYPE.
2121 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2122 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2123 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2124 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2125 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2126 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2127 elt.
2128 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2129 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2130 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2131 (dump_prefix_expression): Handle OP_TYPE.
2132
2acf2b39
KS
21332012-08-08 Keith Seitz <keiths@redhat.com>
2134
2135 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2136 addr_start.
2137
e6712ff1
DE
21382012-08-08 Doug Evans <dje@google.com>
2139
2140 * linux-thread-db.c: #include "gdb_vecs.h".
2141 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2142 updated.
2143 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2144 (thread_db_load_search): Use a vector to iterate over path elements.
2145 Handle text appearing after "$pdir".
2146
2147 * gdb_string.h: Moved to ...
2148 * common/gdb_string.h: ... here.
2149 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2150 gdb_string.h and gdb_assert.h.
2151
ab854e54
YQ
21522012-08-08 Yao Qi <yao@codesourcery.com>
2153
2154 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2155 (tic6x_value_to_register): Likewise.
2156 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2157 and set_gdbarch_value_to_register.
2158
4f69f4c2
JK
21592012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2160 Jean-Marc Saffroy <saffroy@gmail.com>
2161
2162 PR 11804
2163 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2164 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2165 * gcore.c (gcore_create_callback): New function comment. Add modified
2166 parameter. Only write modified regions. Set SEC_READONLY exactly
2167 according to MODIFIED.
2168 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2169 the passed modified value to FUNC.
2170 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2171 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2172 first. New variables modified and has_anonymous. Parse the lines of
2173 smaps file. Add the passed MODIFIED value to FUNC.
2174 * procfs.c (find_memory_regions_callback): Add the passed modified
2175 value.
2176
78ac5f83
TT
21772012-08-06 Tom Tromey <tromey@redhat.com>
2178
2179 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2180 (dwarf2_frame_cache): Use it.
2181 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2182 cache initialization constraint.
2183
2c12abee
TT
21842012-08-06 Tom Tromey <tromey@redhat.com>
2185
2186 PR python/14386:
2187 * varobj.c (update_dynamic_varobj_children): Don't call
2188 PyIter_Check.
2189
4979d7f0
TT
21902012-08-06 Tom Tromey <tromey@redhat.com>
2191
2192 PR cli/14392:
2193 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2194
f3c8a52a
JK
21952012-08-06 Nathaniel Flath <flat0103@gmail.com>
2196
2197 * NEWS: New entry for 'cd' default parameters.
2198 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2199
5a1cf4d6
TT
22002012-08-03 Tom Tromey <tromey@redhat.com>
2201
2202 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2203 return.
2204
7c3270ae
UW
22052012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2206
2207 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2208 to attempting lseek/write.
2209 (inf_child_fileio_pread): Likewise for pread.
2210
ccce17b0
YQ
22112012-08-02 Yao Qi <yao@codesourcery.com>
2212
2213 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2214 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2215 add_setshow_zinteger_cmd.
2216 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2217 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2218 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2219 instead of add_setshow_zinteger_cmd.
2220 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2221 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2222 instead of add_setshow_zinteger_cmd.
2223 * frame.c (frame_debug): Add 'unsigned'.
2224 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2225 add_setshow_zinteger_cmd.
2226 * frame.h: Update the declaration of 'frame_debug'.
2227 * gdbtypes.c (overload_debug): Add 'unsigned'.
2228 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2229 add_setshow_zinteger_cmd.
2230 * inferior.h: Update declaration of 'debug_infrun'.
2231 * infrun.c (debug_infrun): Add 'unsigned'.
2232 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2233 add_setshow_zinteger_cmd.
2234 * jit.c (jit_debug): Add 'unsigned'.
2235 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2236 add_setshow_zinteger_cmd.
2237 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2238 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2239 instead of add_setshow_zinteger_cmd.
2240 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2241 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2242 add_setshow_zinteger_cmd.
2243 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2244 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2245 instead of add_setshow_zinteger_cmd.
2246 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2247 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2248 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2249 intead of add_setshow_zinteger_cmd.
2250 * mips-tdep.c (mips_debug): Add 'unsigned'.
2251 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2252 instead of add_setshow_zinteger_cmd.
2253 * monitor.c (monitor_debug): Add 'unsigned'.
2254 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2255 add_setshow_zinteger_cmd.
2256 * observer.c (observer_debug): Add 'unsigned'.
2257 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2258 add_setshow_zinteger_cmd.
2259 * parse.c (expressiondebug): Add 'unsigned'.
2260 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2261 add_setshow_zinteger_cmd.
2262 * record.c (record_debug): Add 'unsigned'.
2263 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2264 add_setshow_zinteger_cmd.
2265 * record.h: Update the declaration of 'record_debug'.
2266 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2267 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2268 add_setshow_zinteger_cmd.
2269 * serial.c (global_serial_debug_p): Add 'unsigned'.
2270 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2271 add_setshow_zinteger_cmd.
2272 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2273 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2274 add_setshow_zinteger_cmd.
2275 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2276 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2277 add_setshow_zinteger_cmd.
2278 * target.c (targetdebug): Add 'unsigned'.
2279 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2280 add_setshow_zinteger_cmd.
2281 * valops.c (overload_debug): Add 'unsigned'.
2282 * varobj.c (varobjdebug): Add 'unsigned'.
2283 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2284 add_setshow_zinteger_cmd.
2285 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2286 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2287 instead of add_setshow_zinteger_cmd.
2288
2289 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2290 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2291 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2292 instead of add_setshow_zinteger_cmd.
2293 * gdbarch.c, gdbarch.h: Re-generated.
2294
95b07c96
YQ
22952012-08-02 Yao Qi <yao@codesourcery.com>
2296
2297 * nto-tdep.c: Don't include cli/cli-decode.h and
2298 cli/cli-cmds.h.
2299 (_initialize_nto_tdep): Remove.
2300 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2301 Remove field.
2302 Remove macro nto_internal_debugging.
2303
57295b0b
RH
23042012-08-01 Richard Henderson <rth@redhat.com>
2305
2306 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2307 (mep-*-*) [gdb_target_obs]: Likewise.
2308
f782ad9b
AS
23092012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2310
2311 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2312 linux_get_siginfo_type.
2313
a14dd77e
JK
23142012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2315
2316 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2317 AT_ENTRY_POINT.
2318 (call_function_by_hand) <ON_STACK>: Call write_memory with
2319 gdbarch_breakpoint_from_pc, if possible.
2320 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2321 here.
2322
1467929f
YQ
23232012-07-31 Yao Qi <yao@codesourcery.com>
2324
2325 * tracepoint.c: Add 'static' for some variables.
2326
70976b65
YQ
23272012-07-31 Yao Qi <yao@codesourcery.com>
2328
2329 * go32-nat.c: Declare _initialize_go32_nat.
2330 * ser-go32.c: Declare _initialize_ser_dos.
2331 * top.c (do_chdir_cleanup): Add 'static'.
2332
eff9c3e6
KS
23332012-07-30 Keith Seitz <keiths@redhat.com>
2334
2335 * linespec.c (linespec_lex_number): A number followed
2336 by quotes is a valid number, too.
2337
728400d7
TT
23382012-07-30 Tom Tromey <tromey@redhat.com>
2339
2340 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2341
fcf303ab
UW
23422012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2343
2344 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2345 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2346
4e969b4f
AB
23472012-07-30 Andrew Burgess <aburgess@broadcom.com>
2348
2349 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2350 invalid or reevaluated to prevent prevent references to possibly
2351 delete'd type objects being left in the varobj.
2352
c4bfde41
JK
23532012-07-27 Tom Tromey <tromey@redhat.com>
2354 Jan Kratochvil <jan.kratochvil@redhat.com>
2355
2356 * copying.awk: Print buffer-read-only and vi ro markers.
2357 * copying.c: Rebuild.
2358 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2359 * gdbarch.c, gdbarch.h: Rebuild.
2360 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2361 buffer-read-only and vi ro markers.
2362 * features/arm-with-iwmmxt.c: Rebuild.
2363 * features/arm-with-m-fpa-layout.c: Rebuild.
2364 * features/arm-with-m-vfp-d16.c: Rebuild.
2365 * features/arm-with-m.c: Rebuild.
2366 * features/arm-with-neon.c: Rebuild.
2367 * features/arm-with-vfpv2.c: Rebuild.
2368 * features/arm-with-vfpv3.c: Rebuild.
2369 * features/i386/amd64-avx-linux.c: Rebuild.
2370 * features/i386/amd64-avx.c: Rebuild.
2371 * features/i386/amd64-linux.c: Rebuild.
2372 * features/i386/amd64.c: Rebuild.
2373 * features/i386/i386-avx-linux.c: Rebuild.
2374 * features/i386/i386-avx.c: Rebuild.
2375 * features/i386/i386-linux.c: Rebuild.
2376 * features/i386/i386-mmx-linux.c: Rebuild.
2377 * features/i386/i386-mmx.c: Rebuild.
2378 * features/i386/i386.c: Rebuild.
2379 * features/i386/x32-avx-linux.c: Rebuild.
2380 * features/i386/x32-avx.c: Rebuild.
2381 * features/i386/x32-linux.c: Rebuild.
2382 * features/i386/x32.c: Rebuild.
2383 * features/mips-dsp-linux.c: Rebuild.
2384 * features/mips-linux.c: Rebuild.
2385 * features/mips64-dsp-linux.c: Rebuild.
2386 * features/mips64-linux.c: Rebuild.
2387 * features/rs6000/powerpc-32.c: Rebuild.
2388 * features/rs6000/powerpc-32l.c: Rebuild.
2389 * features/rs6000/powerpc-403.c: Rebuild.
2390 * features/rs6000/powerpc-403gc.c: Rebuild.
2391 * features/rs6000/powerpc-405.c: Rebuild.
2392 * features/rs6000/powerpc-505.c: Rebuild.
2393 * features/rs6000/powerpc-601.c: Rebuild.
2394 * features/rs6000/powerpc-602.c: Rebuild.
2395 * features/rs6000/powerpc-603.c: Rebuild.
2396 * features/rs6000/powerpc-604.c: Rebuild.
2397 * features/rs6000/powerpc-64.c: Rebuild.
2398 * features/rs6000/powerpc-64l.c: Rebuild.
2399 * features/rs6000/powerpc-7400.c: Rebuild.
2400 * features/rs6000/powerpc-750.c: Rebuild.
2401 * features/rs6000/powerpc-860.c: Rebuild.
2402 * features/rs6000/powerpc-altivec32.c: Rebuild.
2403 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2404 * features/rs6000/powerpc-altivec64.c: Rebuild.
2405 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2406 * features/rs6000/powerpc-cell32l.c: Rebuild.
2407 * features/rs6000/powerpc-cell64l.c: Rebuild.
2408 * features/rs6000/powerpc-e500.c: Rebuild.
2409 * features/rs6000/powerpc-e500l.c: Rebuild.
2410 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2411 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2412 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2413 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2414 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2415 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2416 * features/rs6000/powerpc-vsx32.c: Rebuild.
2417 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2418 * features/rs6000/powerpc-vsx64.c: Rebuild.
2419 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2420 * features/rs6000/rs6000.c: Rebuild.
2421 * features/s390-linux32.c: Rebuild.
2422 * features/s390-linux32v1.c: Rebuild.
2423 * features/s390-linux32v2.c: Rebuild.
2424 * features/s390-linux64.c: Rebuild.
2425 * features/s390-linux64v1.c: Rebuild.
2426 * features/s390-linux64v2.c: Rebuild.
2427 * features/s390x-linux64.c: Rebuild.
2428 * features/s390x-linux64v1.c: Rebuild.
2429 * features/s390x-linux64v2.c: Rebuild.
2430 * features/tic6x-c62x-linux.c: Rebuild.
2431 * features/tic6x-c62x.c: Rebuild.
2432 * features/tic6x-c64x-linux.c: Rebuild.
2433 * features/tic6x-c64x.c: Rebuild.
2434 * features/tic6x-c64xp-linux.c: Rebuild.
2435 * features/tic6x-c64xp.c: Rebuild.
2436
826f0041
TT
24372012-07-27 Tom Tromey <tromey@redhat.com>
2438
2439 * c-exp.y (classify_name): Avoid assignment in condition.
2440
84552b16
PA
24412012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2442
2443 * amd64-windows-tdep.c: Include "frame.h".
2444 (amd64_windows_skip_trampoline_code): New function.
2445 (amd64_windows_init_abi): Add trampoline registration.
2446
a8a64aa8
YQ
24472012-07-27 Yao Qi <yao@codesourcery.com>
2448
2449 * tracepoint.c (cur_traceframe_number): Remove.
2450 (set_tfile_traceframe): Remove.
2451 (tfile_trace_find, tfile_fetch_registers): Update callers.
2452 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2453 (tfile_open, tfile_trace_find): Likewise.
2454
d99067cb
YQ
24552012-07-27 Yao Qi <yao@codesourcery.com>
2456
2457 * thread.c (switch_to_thread): Don't call registers_changed.
2458
f2e8016f
TT
24592012-07-26 Tom Tromey <tromey@redhat.com>
2460
f782ad9b
AS
2461 * Makefile.in (SFILES): Remove objc-exp.y.
2462 (YYFILES): Remove objc-exp.c.
2463 (YYOBJ): Remove objc-exp.o.
2464 (local-maintainer-clean): Don't mention objc-exp.c.
2465 * c-exp.y: Include objc-lang.h.
2466 (%union) <class>: New field.
2467 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2468 (exp): Clone subscript production for OBJC_LBRAC. Add various
2469 Objective C productions.
2470 (msglist, msgarglist, msgarg): New productions.
2471 (array_mod, func_mod, operator): Clone productions for
2472 OBJC_LBRAC.
2473 (parse_string_or_char): Handle '@' strings.
2474 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2475 (classify_name): Check la_name_of_this. Recognize ObjC class
2476 names.
2477 * objc-exp.y: Remove.
2478 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2479 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2480
f66713d2
JK
24812012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2482
2483 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2484
7cfe01b4
JK
24852012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2486
2487 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2488 and decrement.
2489
5ba19b4c
TT
24902012-07-26 Tom Tromey <tromey@redhat.com>
2491
2492 * copying.c: Rebuild.
2493 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2494 'no_class'.
2495
27618ce4
TT
24962012-07-26 Tom Tromey <tromey@redhat.com>
2497
2498 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2499 immediate_quit.
2500 (print_objfile_statistics): Likewise.
2501 (maintenance_print_symbols): Likewise.
2502 (maintenance_print_msymbols): Likewise.
2503 (maintenance_print_objfiles): Likewise.
2504 * psymtab.c (print_partial_symbols): Call QUIT.
2505 (maintenance_print_psymbols): Likewise. Don't modify
2506 immediate_quit.
2507 * copying.c (show_copying_command): Don't modify immediate_quit.
2508 (show_warranty_command): Likewise.
2509 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2510
dd3818c8
KS
25112012-07-26 Keith Seitz <keiths@redhat.com>
2512
2513 * linespec.c (linespec_lexer_lex_number): The input
2514 is also a valid number if the next character is a comma
2515 or colon.
2516
23a80689
JB
25172012-07-26 Joel Brobecker <brobecker@adacore.com>
2518
2519 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2520 configure options.
2521
29f77997
TG
25222012-07-26 Tristan Gingold <gingold@adacore.com>
2523
2524 * machoread.c: Include gdb_bfd.h.
2525
a55c1f32
TG
25262012-07-26 Tristan Gingold <gingold@adacore.com>
2527
2528 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2529 offset.
2530
56eb65bd
SP
25312012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2532
2533 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2534 SIZE to size_t.
2535 (dwarf2_evaluate_loc_desc): Likewise.
2536 (dwarf2_loc_desc_needs_frame): Likewise.
2537 (locexpr_describe_location_1): Likewise.
2538 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2539 size_t.
2540 (struct dwarf2_loclist_baton): Likewise.
2541 * dwarf2read.c (struct dwarf_block): Likewise.
2542 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2543 (decode_locdesc): Expand SIZE and I to size_t.
2544
aec8845c
JK
25452012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2546
2547 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2548
33d7655b
JB
25492012-07-25 Joel Brobecker <brobecker@adacore.com>
2550
2551 * doublest.c (convert_doublest_to_floatformat): If the exponent
2552 is too small, treat the value as zero. If the exponent is too
2553 large, treat the value as infinity.
2554
a22d44ff
JB
25552012-07-25 Joel Brobecker <brobecker@adacore.com>
2556
2557 * configure.ac: Add --enable-lmcheck configure option.
2558 * configure: Regenerate.
2559
d6b28940
TT
25602012-07-25 Tom Tromey <tromey@redhat.com>
2561
f782ad9b
AS
2562 * NEWS: Mention maint info bfds.
2563 * gdb_bfd.c (all_bfds): New global.
2564 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2565 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2566 New functions.
d6b28940 2567
6e73ba20
RC
25682012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2569
2570 * configure.tgt: Add v850*-*-rtems*.
2571
d560eebd
TT
25722012-07-25 Tom Tromey <tromey@redhat.com>
2573
2574 * macrotab.c (macro_bcache_str): Remove cast.
2575
d7cbec71
HZ
25762012-07-25 Hui Zhu <hui_zhu@mentor.com>
2577
2578 * linespec.c (linespec_lexer_lex_number): Update comments,
2579 change the return and add check to make sure the input is
2580 the decimal numbers.
2581 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2582 false, call linespec_lexer_lex_string.
2583
882f447f
TT
25842012-07-24 Tom Tromey <tromey@redhat.com>
2585
2586 * symfile.c (symbol_file_add): Don't open BFD twice.
2587
53ab4066 25882012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2589
2590 * breakpoint.c (create_breakpoint): Store condition for pending
2591 breakpoints.
2592
108fb0f7
AS
25932012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2594
2595 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2596 (m68k_return_value): Handle complex types like structures.
2597 (m68k_svr4_return_value): Likewise.
2598
1634dcbe
JK
25992012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2600
2601 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2602 parameters to bfd_get_section_name.
2603
e2d12c21
YQ
26042012-07-24 Yao Qi <yao@codesourcery.com>
2605
2606 * cli/cli-setshow.c: Handle case 'var_uinteger'
2607 and 'var_zuninteger' together. Handle case 'var_integer' and
2608 'var_zinteger' together.
2609
64b92e45
KS
26102012-07-23 Keith Seitz <keiths@redhat.com>
2611
2612 * linespec.c (convert_linespec_to_sal): Don't add
2613 any symbols to the result vector if symbol_to_sal
2614 returns zero.
2615
0f5f4ffe
KS
26162012-07-23 Keith Seitz <keiths@redhat.com>
2617
2618 * linespec.c (decode_objc): Record the function name
2619 in the linespec.
2620
da1cc82f
TT
26212012-07-23 Tom Tromey <tromey@redhat.com>
2622
2623 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2624 counting.
2625 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2626 (map_vmap): Acquire a reference to the BFD.
2627
6c18f3e0
SP
26282012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2629
2630 * p-valprint.c (pascal_object_print_value): Replace potentially
2631 unsafe alloca with xmalloc/xfree.
2632 * valops.c (search_struct_method): Likewise.
2633
695c3173
TT
26342012-07-23 Tom Tromey <tromey@redhat.com>
2635
2636 * solib-svr4.c (enable_break): Update.
2637 * bfd-target.h (target_bfd_reopen): Update documentation.
2638
08d2cd74
TT
26392012-07-23 Tom Tromey <tromey@redhat.com>
2640
2641 * symfile.c (separate_debug_file_exists): Update.
2642 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2643 (reread_symbols): Update.
2644 * elfread.c (build_id_verify): Update.
2645 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2646 bfd_open_maybe_remote.
2647
596f7d67
TT
26482012-07-23 Tom Tromey <tromey@redhat.com>
2649
2650 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2651
8ac244b4
TT
26522012-07-23 Tom Tromey <tromey@redhat.com>
2653
2654 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2655 and 'abfd'.
2656 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2657 and 'abfd'.
2658 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2659 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2660 'abfd'.
2661 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2662 * objfiles.c (allocate_objfile): Acquire a new reference.
2663 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2664 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2665 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2666 a cleanup for 'nbfd'.
2667 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2668 for 'nbfd'.
2669 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2670 make a cleanup for 'abfd'.
2671 (symbol_file_add): Make a BFD cleanup.
2672
64c31149
TT
26732012-07-23 Tom Tromey <tromey@redhat.com>
2674
2675 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2676 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2677 * corelow.c (core_open): Use gdb_bfd_fopen.
2678 * dsrec.c (load_srec): Use gdb_bfd_openr.
2679 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2680 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2681 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2682 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2683 (gdb_bfd_fdopenr): New functions.
2684 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2685 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2686 (gdb_bfd_fdopenr): Declare.
2687 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2688 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2689 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2690 gdb_bfd_openr_next_archived_file.
2691 (macho_check_dsym): Use gdb_bfd_openr.
2692 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2693 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2694 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2695 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2696 gdb_bfd_openr.
2697 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2698 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2699 gdb_bfd_openr_next_archived_file.
2700 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2701 Use gdb_bfd_openr.
2702 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2703 gdb_bfd_openr.
2704 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2705 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2706 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2707 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2708 (symfile_bfd_open): Use gdb_bfd_fopen.
2709 (generic_load): Use gdb_bfd_openr.
2710 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2711
520b0001
TT
27122012-07-23 Tom Tromey <tromey@redhat.com>
2713
2714 * bfd-target.c (target_bfd_reopen): Update.
2715 * cli/cli-dump.c (bfd_openr_with_cleanup)
2716 (bfd_openw_with_cleanup): Update.
2717 * corelow.c (core_open): Update.
2718 * dsrec.c (load_srec): Update.
2719 * exec.c (exec_file_attach): Update.
2720 * gcore.c (create_gcore_bfd): Update.
2721 * gdb_bfd.c (gdb_bfd_ref): Return void.
2722 (gdb_bfd_open): Update.
2723 * gdb_bfd.h (gdb_bfd_ref): Return void.
2724 Update comments.
2725 * jit.c (jit_bfd_try_read_symtab): Update.
2726 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2727 * machoread.c (macho_symfile_read_all_oso): Update.
2728 (macho_check_dsym): Update.
2729 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2730 * remote-m32r-sdi.c (m32r_load): Update.
2731 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2732 * rs6000-nat.c (add_vmap): Update.
2733 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2734 Update.
2735 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2736 * solib-spu.c (spu_bfd_open): Update.
2737 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2738 * spu-linux-nat.c (spu_bfd_open): Update.
2739 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2740 (generic_load): Update.
2741 * windows-nat.c (windows_make_so): Update.
2742
2322ff16
SP
27432012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2744
2745 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2746
3def0b36
PA
27472012-07-20 Jeff Kenton <jkenton@tilera.com>
2748
2749 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2750 SIGTRAMP_FRAME unwinding.
2751
e615022a
DE
27522012-07-20 Doug Evans <dje@google.com>
2753
2754 * NEWS: Document new options "set/show use-deprecated-index-sections",
2755 and delete reference to --use-deprecated-index-sections.
2756 * symfile.h (use_deprecated_index_sections): Delete.
2757 * dwarf2read.c (use_deprecated_index_sections): Make static.
2758 (read_index_from_section): Update wording of how to load
2759 deprecated index sections.
2760 (_initialize_dwarf2_read): New options
2761 "set/show use-deprecated-index-sections".
2762 * main.c (captured_main): Delete --use-deprecated-index-sections.
2763
64776a0b
PA
27642012-07-20 Pedro Alves <palves@redhat.com>
2765
2766 PR threads/11692
2767 PR gdb/12203
2768
2769 * infrun.c (handle_inferior_event) <new thread>: Don't special
2770 case minus_one_ptid.
2771 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2772 * linux-thread-db.c (thread_get_info_callback): Don't return early
2773 if the thread is zombie.
2774 (thread_from_lwp): Change return type to void. Rewrite stale
2775 comment.
2776 (attach_thread): Don't return early if the thread is zombie,
2777 instead set its "dying" flag.
2778 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2779 (find_new_threads_callback): Don't return early if the thread is
2780 zombie.
2781
09826ec5
PA
27822012-07-20 Pedro Alves <palves@redhat.com>
2783
2784 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2785 * target.c (target_wait): Likewise.
2786 (str_comma_list_concat_elem, do_option, target_options_to_string):
2787 New functions.
2788 * target.h (target_options_to_string): Declare.
2789
f7a35f02
TT
27902012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2791 Tom Tromey <tromey@redhat.com>
2792
2793 * dwarf2read.c (dwarf_decode_macros)
2794 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2795 DW_MACRO_GNU_transparent_include_alt>: New cases.
2796 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2797 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2798
b81e1ee0
TT
27992012-07-20 Tom Tromey <tromey@redhat.com>
2800
2801 * dwarf2read.c (try_open_dwo_file): Don't call
2802 gdb_bfd_stash_filename.
2803
99c1624c
PA
28042012-07-20 Pedro Alves <palves@redhat.com>
2805
2806 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2807 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2808 (i386_process_record): Tweak description comments.
2809
4ffa4fc7
PA
28102012-07-20 Pedro Alves <palves@redhat.com>
2811
2812 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2813 (i386_process_record): Use record_read_memory.
2814 * record.c (record_read_memory): New function.
2815 (record_arch_list_add_mem, record_exec_insn): Use
2816 record_read_memory.
2817 * record.h (record_read_memory): Declare.
2818
c24343e2
YQ
28192012-07-20 Yao Qi <yao@codesourcery.com>
2820
2821 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2822 NULL for xfree.
2823
90f47860
PA
28242012-07-19 Pedro Alves <palves@redhat.com>
2825
2826 * record.c (record_resume): Ask the target beneath to report all
2827 signals.
2828
01093045
DE
28292012-07-19 Doug Evans <dje@google.com>
2830
2831 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2832 there's no section at address zero.
2833 (dwarf2_record_block_ranges): Ditto.
2834
a7c3d162
YQ
28352012-07-19 Yao Qi <yao@codesourcery.com>
2836
2837 * command.h, remote.c: Fix a typo in comment.
2838
608b4967
TT
28392012-07-19 Tom Tromey <tromey@redhat.com>
2840
2841 PR exp/13206:
2842 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2843 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2844 OP_DECLTYPE>: New cases.
2845 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2846 (type_exp): Add new productions.
2847 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2848 and decltype.
2849 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2850 New case.
2851 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2852 OP_DECLTYPE>: New case.
2853 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2854 New case.
2855 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2856 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2857
274b54d7
TT
28582012-07-19 Tom Tromey <tromey@redhat.com>
2859
2860 * c-exp.y (enum token_flags): New.
2861 (struct token) <cxx_only>: Remove.
2862 <flags>: New field.
2863 (tokentab3, tokentab2, ident_tokens): Update.
2864 (lex_one_token): Update. Handle FLAG_SHADOW.
2865
9eaf6705
TT
28662012-07-19 Tom Tromey <tromey@redhat.com>
2867
2868 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2869 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2870 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2871 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2872 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2873 type_exp production where appropriate.
2874 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2875 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2876 <UNOP_MEMVAL_TYPE>: New case.
2877 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2878 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2879 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2880 <UNOP_MEMVAL_TYPE>: New case.
2881 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2882 UNOP_REINTERPRET_CAST>: Update.
2883 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2884 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2885 UNOP_REINTERPRET_CAST>: Update.
2886 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2887 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2888 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2889 constants.
2890
6ace3df1
YQ
28912012-07-19 Yao Qi <yao@codesourcery.com>
2892 Jan Kratochvil <jan.kratochvil@redhat.com>
2893
2894 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2895 and case 'var_optional_filename' together.
2896 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2897 instead of add_setshow_optional_filename_cmd for setshow command
2898 'args'. Set completer for 'set args'.
2899
48faced0
DE
29002012-07-18 Doug Evans <dje@google.com>
2901
2902 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2903 * common/gdb_vecs.c: New file, contents from utils.c.
2904 * common/host-defs.h: New file, contents from defs.h.
2905 * utils.h: New file, contents from defs.h.
2906 * defs.h: Move all declarations of objects defined in utils.c
2907 to utils.h (except QUIT() and related).
2908 #include "utils.h", "host-defs.h".
2909 * probe.h (probe_p): Move here from gdb_vecs.h.
2910 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2911 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2912 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2913 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2914 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2915 (COMMON_OBS): Add gdb_vecs.o.
2916 (gdb_vecs.o): New rule.
2917
66f1999b
KS
29182012-07-18 Keith Seitz <keiths@redhat.com>
2919
2920 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2921 parameter. If non-zero, use SYMNAME as the canonical name
2922 for the SaL.
2923 Update all callers.
2924 (convert_linespec_to_sals): Use add_sal_to_sals for
2925 expressions, too.
2926 (decode_line_full): No need to "fill in missing canonical names"
2927 anymore. Simply make cleanups for the allocated names.
2928
5d94e27b
KS
29292012-07-18 Keith Seitz <keiths@redhat.com>
2930
2931 * linespec.c (struct linespec): Constify expression,
2932 source_filename, function_name, and label_name.
2933 (symbol_not_found_error): Make all parameters const.
2934 (linespec_parser_delete): No need to check for NULL
2935 when using xfree. Cast const char * to char * for xfree.
2936
af4908ba
KS
29372012-07-18 Keith Seitz <keiths@redhat.com>
2938
2939 * breakpoint.c (invalid_thread_id_error): New function.
2940 (find_condition_and_thread): Use invalid_thread_id_error.
2941 (watch_command_1): Likewise.
2942
853254db
TT
29432012-07-18 Tom Tromey <tromey@redhat.com>
2944
2945 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2946 * contrib/cc-with-tweaks.sh: New file.
2947
2ec9a5e0
TT
29482012-07-18 Tom Tromey <tromey@redhat.com>
2949
2950 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2951 (locate_dwz_sections): Recognize .gdb_index.
2952 (create_cus_from_index_list): New function.
2953 (create_cus_from_index): Use it. Handle .dwz data.
2954 (read_index_from_section): New function, extracted from
2955 dwarf2_read_index.
2956 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2957 if needed.
2958
36586728
TT
29592012-07-18 Tom Tromey <tromey@redhat.com>
2960
2961 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2962 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2963 <is_dwz>: New field.
2964 (struct dwz_file): New.
2965 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2966 (locate_dwz_sections, dwarf2_get_dwz_file)
2967 (get_abbrev_section_for_cu): New functions.
2968 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2969 (read_and_check_type_unit_head): Add abbrev_section argument.
2970 (create_debug_types_hash_table): Update.
2971 (init_cutu_and_read_dies): Use proper abbrev section.
2972 (init_cutu_and_read_dies_no_follow): Likewise.
2973 (set_partial_user): Do nothing if PST==NULL.
2974 (read_comp_units_from_section): New function.
2975 (create_all_comp_units): Use it.
2976 (scan_partial_symbols, partial_die_parent_scope): Update.
2977 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2978 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2979 (find_partial_die): Add offset_in_dwz argument. Update.
2980 (guess_partial_die_structure_name, fixup_partial_die): Update.
2981 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2982 DW_FORM_GNU_strp_alt.
2983 (read_indirect_string_from_dwz): New function.
2984 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2985 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2986 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2987 (follow_die_offset): Add offset_in_dwz argument.
2988 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2989 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2990 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2991 Handle new macro forms.
2992 (dwarf_decode_macros): Update.
2993 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2994 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2995 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2996 (create_debug_types_hash_table): Use correct abbrev section.
2997 (get_debug_line_section): New function.
2998 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2999 (process_full_comp_unit): Pass 'required' argument to
3000 end_symtab_get_static_block.
3001 * buildsym.h (end_symtab_get_static_block): Update.
3002 * buildsym.c (end_symtab_get_static_block): Add 'required'
3003 argument.
3004 (end_symtab, end_expandable_symtab): Update.
3005
4bf44c1c
TT
30062012-07-18 Tom Tromey <tromey@redhat.com>
3007
3008 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3009 (pagesize): Remove.
3010 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3011 (zlib_decompress_section): Remove.
3012 (dwarf2_read_section): Use gdb_bfd_map_section.
3013 (munmap_section_buffer): Remove.
3014 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3015 munmap_section_buffer.
3016 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3017 (struct gdb_bfd_section_data): New.
3018 (free_one_bfd_section): New function.
3019 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3020 (get_section_descriptor, zlib_decompress_section)
3021 (gdb_bfd_map_section): New functions.
3022 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3023
bb397797
TT
30242012-07-18 Tom Tromey <tromey@redhat.com>
3025
3026 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3027
6ec53d05
TT
30282012-07-18 Tom Tromey <tromey@redhat.com>
3029
3030 * gdb_bfd.c (struct gdb_bfd_data): New.
3031 (gdb_bfd_cache): New global.
3032 (struct gdb_bfd_cache_search): New.
3033 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3034 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3035 * gdb_bfd.h (gdb_bfd_open): Declare.
3036
f9a062ff
TT
30372012-07-18 Tom Tromey <tromey@redhat.com>
3038
3039 * utils.c (make_cleanup_bfd_unref): Rename from
3040 make_cleanup_bfd_close.
3041 * defs.h (make_cleanup_bfd_unref): Rename from
3042 make_cleanup_bfd_close.
3043 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3044 (bfd_openw_with_cleanup): Update.
3045 * corelow.c (core_open): Update.
3046 * dsrec.c (load_srec): Update.
3047 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3048 * remote-m32r-sdi.c (m32r_load): Update.
3049 * remote-mips.c (mips_load_srec): Update.
3050 (pmon_load_fast): Update.
3051 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3052 Update.
3053 (darwin_bfd_open): Update.
3054 * solib.c (solib_bfd_fopen): Update.
3055 * symfile-mem.c (symbol_file_add_from_memory): Update.
3056 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3057 (symfile_bfd_open): Update.
3058 (generic_load): Update.
3059
d6ad71ba
TT
30602012-07-18 Tom Tromey <tromey@redhat.com>
3061
3062 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3063 (pmon_load_fast): Likewise.
3064 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3065 (m32r_upload_command): Likewise.
3066 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3067 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3068 Use make_cleanup_bfd_close.
3069
a4453b7e
TT
30702012-07-18 Tom Tromey <tromey@redhat.com>
3071
3072 * symfile.c (symfile_bfd_open): Don't copy name. Call
3073 gdb_bfd_stash_filename.
3074 (load_command): Open the new BFD before freeing the old.
3075 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3076 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3077 Call gdb_bfd_stash_filename.
3078 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3079 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3080 gdb_bfd_stash_filename.
3081 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3082 Free found_pathname.
3083 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3084 gdb_bfd_stash_filename.
3085 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3086 * machoread.c (macho_add_oso_symfile): Call
3087 gdb_bfd_stash_filename.
3088 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3089 gdb_bfd_stash_filename.
3090 (macho_check_dsym): Don't copy filename. Call
3091 gdb_bfd_stash_filename.
3092 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3093 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3094 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3095 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3096 * exec.c (exec_close): Don't free the BFD's filename.
3097 (exec_file_attach): Don't copy the filename. Call
3098 gdb_bfd_stash_filename.
3099 * corelow.c (core_close): Don't free the BFD's filename.
3100 (core_open): Call gdb_bfd_stash_filename.
3101 * corefile.c (reopen_exec_file): Remove #if 0 code.
3102 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3103 pathname.
3104 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3105
cbb099e8
TT
31062012-07-18 Tom Tromey <tromey@redhat.com>
3107
3108 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3109 gdb_bfd_unref.
3110 (free_dwo_file): Use gdb_bfd_unref.
3111 * cli/cli-dump.c: Include gdb_bfd.h.
3112 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3113 (bfd_openr_with_cleanup): Likewise.
3114 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3115 gdb_bfd_unref.
3116 * utils.c: Include gdb_bfd.h.
3117 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3118 * symfile.c: Include gdb_bfd.h.
3119 (separate_debug_file_exists): Use gdb_bfd_unref.
3120 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3121 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3122 (generic_load): Use gdb_bfd_ref.
3123 (reread_symbols): Use gdb_bfd_unref.
3124 * symfile-mem.c: Include gdb_bfd.h.
3125 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3126 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3127 * solib.c: Include gdb_bfd.h.
3128 (solib_bfd_fopen): Use gdb_bfd_ref.
3129 (solib_bfd_open): Use gdb_bfd_unref.
3130 (free_so_symbols): Use gdb_bfd_unref.
3131 (reload_shared_libraries_1): Use gdb_bfd_unref.
3132 * solib-spu.c: Include gdb_bfd.h.
3133 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3134 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3135 gdb_bfd_unref.
3136 * solib-frv.c: Include gdb_bfd.h.
3137 (enable_break2): Use gdb_bfd_unref.
3138 * solib-dsbt.c: Include gdb_bfd.h.
3139 (enable_break2): Use gdb_bfd_unref.
3140 * solib-darwin.c: Include gdb_bfd.h.
3141 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3142 gdb_bfd_unref.
3143 (darwin_bfd_open): Use gdb_bfd_unref.
3144 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3145 * remote-mips.c: Include gdb_bfd.h.
3146 (mips_load_srec): Use gdb_bfd_ref.
3147 (pmon_load_fast): Use gdb_bfd_ref.
3148 * remote-m32r-sdi.c: Include gdb_bfd.h.
3149 (m32r_load): Use gdb_bfd_ref.
3150 * record.c: Include gdb_bfd.h.
3151 (record_save_cleanups): Use gdb_bfd_unref.
3152 (cmd_record_save): Use gdb_bfd_unref.
3153 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3154 gdb_bfd_unref.
3155 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3156 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3157 * objfiles.c: Include gdb_bfd.h.
3158 (free_objfile): Use gdb_bfd_unref.
3159 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3160 gdb_bfd.c.
3161 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3162 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3163 (macho_check_dsym): Likewise.
3164 * m32r-rom.c: Include gdb_bfd.h.
3165 (m32r_load): Use gdb_bfd_ref.
3166 (m32r_upload_command): Use gdb_bfd_ref.
3167 * jit.c: Include gdb_bfd.h.
3168 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3169 * gdb_bfd.h: New file.
3170 * gdb_bfd.c: New file.
3171 * gcore.c: Include gdb_bfd.h.
3172 (create_gcore_bfd): Use gdb_bfd_ref.
3173 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3174 (gcore_command): Use gdb_bfd_unref.
3175 * exec.c: Include gdb_bfd.h.
3176 (exec_close): Use gdb_bfd_unref.
3177 (exec_close_1): Use gdb_bfd_unref.
3178 (exec_file_attach): Use gdb_bfd_ref.
3179 * elfread.c: Include gdb_bfd.h.
3180 (build_id_verify): Use gdb_bfd_unref.
3181 * dsrec.c: Include gdb_bfd.h.
3182 (load_srec): Use gdb_bfd_ref.
3183 * corelow.c: Include gdb_bfd.h.
3184 (core_close): Use gdb_bfd_unref.
3185 (core_open): Use gdb_bfd_ref.
3186 * bfd-target.c: Include gdb_bfd.h.
3187 (target_bfd_xclose): Use gdb_bfd_unref.
3188 (target_bfd_reopen): Use gdb_bfd_ref.
3189 * Makefile.in (SFILES): Add gdb_bfd.c.
3190 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3191 (COMMON_OBS): Add gdb_bfd.o.
3192
ed1d1739
KS
31932012-07-18 Keith Seitz <keiths@redhat.com>
3194
3195 * breakpoint.c (find_condition_and_thread): Initialize
3196 TASK and REST.
3197 (create_breakpiont): find_condition_and_thread will now
3198 initialize COND_STRING, THREAD, and REST (and TASK).
3199 (addr_string_to_sals): Likewise.
3200
eab402df
PA
32012012-07-18 Pedro Alves <palves@redhat.com>
3202
3203 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3204 Pull the single step breakpoints out of the target.
3205
2b963b68
SDJ
32062012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3207
3208 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3209 * stap-probe.c (compile_probe_arg): Likewise.
3210
6bac7473
SDJ
32112012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3212
3213 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3214 (elf_compile_to_ax): Likewise.
3215 * infrun.c (insert_exception_resume_from_probe): Likewise.
3216 (check_exception_resume): Remove `objfile' variable.
3217 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3218 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3219 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3220 (compare_entries): Rename to...
3221 (compare_probes): ...this. Adjust function to work with
3222 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3223 respectively.
3224 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3225 `VEC (probe_p) *'.
3226 (print_ui_out_info): Adjust argument to be `struct probe *'.
3227 (info_probes_for_ops): Adjust internal computations to use
3228 `VEC (probe_p) *'.
3229 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3230 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3231 gen_info_probes_table_values>: Remove `objfile' argument.
3232 (struct probe) <objfile>: New field.
3233 (find_probe_by_pc): Remove `objfile' argument.
3234 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3235 (stap_get_probe_argument_count): Likewise.
3236 (stap_get_arg): Likewise.
3237 (stap_evaluate_probe_argument): Likewise.
3238 (stap_compile_to_ax): Likewise.
3239 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3240 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3241 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3242 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3243 sym_compile_to_ax>: Likewise.
3244
3347eb1a 32452012-07-18 Terry Guo <terry.guo@arm.com>
3246
3247 PR 14329
3248 * defs.h (GDB_MI_MSG_WIDTH): New.
3249 * ser_base (ser_base_read_error_fd): New function.
3250 (do_ser_base_readchar): Poll error file descriptor as well as
3251 standard output.
f782ad9b 3252 (generic_readchar): Refactor error handling.
3347eb1a 3253
80c8d323
JB
32542012-07-18 Joel Brobecker <brobecker@adacore.com>
3255
3256 * NEWS: Create a new section for the next release branch.
3257 Rename the section of the current branch, now that it has
3258 been cut.
3259
b45a0664 32602012-07-18 Joel Brobecker <brobecker@adacore.com>
3261
3262 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3263 * version.in: Bump version to 7.5.50.20120718-cvs.
3264
09cf2b22
KS
32652012-07-17 Keith Seitz <keiths@redhat.com>
3266
3267 * linespec.c (linespec_parse_line_offset): Make parameter
3268 const.
3269
8f043999
JK
32702012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3271
3272 PR 11914
3273 * f-valprint.c (info_common_command): New variable frame_id.
3274 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3275 * printcmd.c (print_variable_and_value): Extend function comment.
3276 Add comment for invalidated FRAME.
3277 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3278 FI form FRAME_ID after each print_frame_local_vars.
3279 (struct print_variable_and_value_data): Change frame to frame_id.
3280 (do_print_variable_and_value): New variable frame, initialize it from
3281 p->frame_id. Add comment for invalidated FRAME.
3282 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3283 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3284 for invalidated FRAME.
3285
ae5e0686
MK
32862012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3287 Pedro Alves <palves@redhat.com>
3288
3289 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3290 loop.
3291
5049c5be
TT
32922012-07-16 Tom Tromey <tromey@redhat.com>
3293
3294 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3295
2908cac6
DE
32962012-07-15 Doug Evans <dje@google.com>
3297
094b34ac
DE
3298 * dwarf2read.c (stmt_list_hash): New struct.
3299 (type_unit_group): Embed "per_cu" member, remove pointer.
3300 New union member "t", move member "tus" into it, all uses updated.
3301 New member "hash", replaces member "line_offset, all uses updated.
3302 (quick_file_names): Replace member "offset" with "hash", all uses
3303 updated.
3304 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3305 (hash_file_name_entry, eq_file_name_entry): Call them.
3306 (hash_type_unit_group, eq_type_unit_group): Ditto.
3307 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3308 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3309 (dw2_get_file_names): Update.
3310 (create_type_unit_group): Replace "per_cu" arg with "cu".
3311 All callers updated. Fix "quick" (.gdb_index) handling.
3312 (get_type_unit_group): Replace "per_cu" arg with "cu".
3313 All callers updated.
3314 (build_type_unit_groups): Don't reset tu_stats.
3315
2908cac6
DE
3316 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3317 "tab_cur_size". Change member "tab" to be a htab_t.
3318 (create_filename_seen_cache): Update.
3319 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3320 (filename_seen): Update.
3321
a2b6eff5
DE
33222012-07-13 Doug Evans <dje@google.com>
3323
3324 * symtab.c (filename_seen): Update comment.
3325
4359dff1
JK
33262012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3327 Doug Evans <dje@google.com>
3328
3329 * buildsym.c (end_symtab_1): Split it to ...
3330 (end_symtab_get_static_block): ... this ...
3331 (end_symtab_from_static_block): ... and this function.
3332 (end_symtab, end_expandable_symtab): Call them.
3333 * buildsym.h (end_symtab_get_static_block)
3334 (end_symtab_from_static_block): New declarations.
3335 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3336 Set its valid CU ranges.
3337
a24f71ab
JK
33382012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3339
3340 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3341 DW_OP_GNU_parameter_ref.
3342
d76b7dbc
JK
33432012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3346 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3347
9fdc877b
DE
33482012-07-13 Doug Evans <dje@google.com>
3349
3350 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3351 (filename_seen_cache): New struct.
3352 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3353 (create_filename_seen_cache): New function.
3354 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3355 (filename_seen): Delete arg "first". New arg "cache". All callers
3356 updated.
3357 (output_source_filename_data): New struct.
3358 (output_source_filename): Delete arg "first". New arg "data".
3359 All callers updated.
3360 (sources_info): Delete local "first". New locals "data", "cleanups".
3361 Rewrite to use filename_seen_cache.
3362 (add_partial_filename_data): Delete member "first". New member
3363 "filename_seen_cache". All uses updated.
3364 (make_source_files_completion_list): Rewrite to use
3365 filename_seen_cache.
3366
f80c6f3f
DE
33672012-07-12 Doug Evans <dje@google.com>
3368
3369 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3370
0bfa869d
DE
33712012-07-10 Doug Evans <dje@google.com>
3372
f4dc4d17
DE
3373 PR gdb/13498
3374 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3375 all_type_unit_groups, type_unit_groups, tu_stats.
3376 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3377 All uses updated. Add type_unit_group to union "s".
3378 (type_unit_group): New struct.
3379 (IS_TYPE_UNIT_GROUP): New macro.
3380 (abbrev_table): Delete unused member "section".
3381 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3382 (dw2_get_cu): Assert not used with type_unit_group.
3383 (dw2_get_primary_cu): New function.
3384 (dw2_build_type_unit_groups_reader): New function.
3385 (dw2_build_type_unit_groups): New function.
3386 (dw2_get_file_names): Assert not called on type units.
3387 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3388 Redo loop to iterate over type unit groups instead of type units.
3389 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3390 (read_abbrev_offset): New function.
3391 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3392 updated.
3393 (create_partial_symtab): New function.
3394 (process_psymtab_comp_unit_reader): Assert not used with type units.
3395 Call create_partial_symtab.
3396 (process_psymtab_type_unit): Delete.
3397 (hash_type_unit_group, eq_type_unit_group): New functions.
3398 (allocate_type_unit_groups_table): New function.
3399 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3400 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3401 (create_type_unit_group, get_type_unit_group): New functions.
3402 (tu_abbrev_offset): New struct.
3403 (sort_tu_by_abbrev_offset): New function.
3404 (add_type_unit_group_to_table): New function.
3405 (build_type_unit_groups): New function.
3406 (build_type_psymtabs_reader): New function.
3407 (build_type_psymtab_dependencies): New function.
3408 (build_type_psymtabs): Rewrite.
3409 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3410 is seen in a type unit.
3411 (process_queue): Move symtab expansion debugging printfs here.
3412 Call process_full_type_unit for type units.
3413 (compute_symtab_includes): Assert not called for type units.
3414 (process_cu_includes): Don't call compute_symtab_includes for
3415 type units.
3416 (process_full_type_unit): New function.
3417 (process_imported_unit_die): Flag an error if called for type units.
3418 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3419 updated. Assert not called for type units.
3420 (read_file_scope): Call dwarf2_start_symtab.
3421 (setup_type_unit_groups): New function.
3422 (read_type_unit_scope): Rewrite.
3423 (abbrev_table_read_table): Initialize abbrev_table->offset.
3424 (abbrev_table_free_cleanup): New function.
3425 (dwarf2_start_symtab): New function.
3426 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3427 * buildsym.c (finish_block_internal): New arg "expandable".
3428 All callers updated.
3429 (start_symtab): Move most contents to ...
3430 (restart_symtab): ... here. New function.
3431 (reset_symtab_globals): New function.
3432 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3433 Call reset_symtab_globals.
3434 (end_symtab, end_expandable_symtab): New functions.
3435 (set_missing_symtab, augment_type_symtab): New functions.
3436 * buildsym.h (end_expandable_symtab): Declare.
3437 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3438 * psympriv.h (struct partial_symtab): New member "anonymous".
3439 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3440 anonymous psymtabs.
3441 (read_psymtabs_with_filename): Ditto.
3442 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3443 (expand_symtabs_matching_via_partial): Ditto.
3444 (dump_psymtab): Update.
0bfa869d
DE
3445 * dictionary.c (dict_add_pending): New function.
3446 * dictionary.h (dict_add_pending): Declare.
3447
45e58e77
DE
34482012-07-09 Doug Evans <dje@google.com>
3449
b74db436
DE
3450 * buildsym.c (start_subfile): Remove unnecessary check for
3451 name == NULL.
3452
fd55216c
DE
3453 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3454
6721b2ec
DE
3455 * dwarf2read.c (load_full_type_unit): Simplify.
3456
b4dd5633
DE
3457 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3458 to struct signatured_type **. All uses updated.
3459
45e58e77
DE
3460 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3461 All callers updated.
3462
e314d629
TT
34632012-07-09 Tom Tromey <tromey@redhat.com>
3464
3465 * c-exp.y (check_parameter_typelist): New function.
3466 (parameter_typelist): Call it.
3467 * eval.c (make_params): Handle '(void)' case.
3468 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3469 '(void)' case.
3470
aa7c7447
JK
34712012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3472
3473 * common/linux-ptrace.c: Include gdb_assert.h.
3474 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3475 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3476 stdint.h.
3477 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3478 functions.
3479 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3480 * linux-nat.c (linux_child_post_attach)
3481 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3482
889003ed
JK
34832012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3484
3485 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3486 nptl <2.7 bug workaround for core files.
3487
da559b09
JK
34882012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3491 clearing.
3492 (save_siginfo): Remove.
3493 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3494 call.
3495 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3496 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3497 * linux-nat.h (struct lwp_info): Remove field siginfo.
3498
f865ee35
JK
34992012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3500
3501 Code cleanup for the next patch.
3502 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3503 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3504 call for it.
3505 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3506 (ia64_linux_stopped_data_address):
3507 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3508 the return value.
3509 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3510 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3511 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3512 call for it.
3513
76b83c51
JK
35142012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3515
3516 PR 14321
3517 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3518 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3519
a6fb9c08
TT
35202012-07-06 Tom Tromey <tromey@redhat.com>
3521
3522 * c-exp.y (DOTDOTDOT): New token.
3523 (func_mod, exp): Use parameter_typelist.
3524 (parameter_typelist): New production.
3525 (tokentab3): Add "..." token.
3526 * eval.c (make_params): Handle varargs.
3527 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3528 varargs.
3529
71918a86
TT
35302012-07-06 Tom Tromey <tromey@redhat.com>
3531
3532 PR exp/9608:
3533 * c-exp.y (%union) <tvec>: Change type.
3534 (func_mod): Now uses <tvec> type.
3535 (exp): Update for tvec change.
3536 (direct_abs_decl): Push the typelist.
3537 (func_mod): Return a typelist.
3538 (nonempty_typelist): Update for tvec change.
3539 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3540 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3541 * parse.c (pop_type_list): New function.
3542 (push_typelist): New function.
3543 (follow_types): Handle tp_function_with_arguments.
3544 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3545 (enum type_pieces) <tp_function_with_arguments>: New constant.
3546 (union type_stack_elt) <typelist_val>: New field.
3547 (push_typelist): Declare.
3548
fcde5961
TT
35492012-07-06 Tom Tromey <tromey@redhat.com>
3550
3551 * c-exp.y (%union) <type_stack>: New field.
3552 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3553 (ptr_operator_ts): New production.
3554 (ptype): Update.
3555 * parse.c (type_stack_reserve): New function.
3556 (check_type_stack_depth): Use it.
3557 (pop_type_stack, append_type_stack, push_type_stack)
3558 (get_type_stack, type_stack_cleanup): New functions.
3559 (follow_types): Handle tp_type_stack.
3560 (_initialize_parse): Simplify initialization.
3561 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3562 constant.
3563 (union type_stack_elt) <stack_val>: New field.
3564 (get_type_stack, append_type_stack, push_type_stack)
3565 (type_stack_cleanup): Declare.
3566
1a7d0ce4
TT
35672012-07-06 Tom Tromey <tromey@redhat.com>
3568
3569 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3570 Remove.
3571 (struct type_stack): New.
3572 * parse.c (type_stack, type_stack_size, type_stack_depth):
3573 Remove.
3574 (type_stack): New global.
3575 (parse_exp_in_context, check_type_stack_depth)
3576 (insert_into_type_stack, insert_type, push_type, push_type_int)
3577 (insert_type_address_space, pop_type, pop_type_int)
3578 (_initialize_parse): Update.
3579
16d01384
TT
35802012-07-06 Tom Tromey <tromey@redhat.com>
3581
3582 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3583 Remove %type.
3584
9bfc60bf
SP
35852012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3586
3587 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3588
d5161074
SP
35892012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3590 Jan Kratochvil <jan.kratochvil@redhat.com>
3591
3592 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3593 alloca with xmalloc/xfree.
3594
a74bc576
SP
35952012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3596
3597 * MAINTAINERS (Write After Approval): Add myself to the list.
3598
667e0a4b
DE
35992012-07-05 Doug Evans <dje@google.com>
3600
3601 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3602
34b536a8
HZ
36032012-07-05 Hui Zhu <hui_zhu@mentor.com>
3604
3605 * ax-gdb.c (cli/cli-utils.h): New include.
3606 (linespec.h): Ditto.
3607 (agent_eval_command_one): New function.
3608 (agent_command_1): Ditto.
3609 (agent_command): Call function agent_command_1.
3610 (agent_eval_command): Ditto.
3611 (_initialize_ax_gdb): Change help for "maint agent"
3612 and "maint agent-eval".
3613
e6f0bce7
HZ
36142012-07-05 Hui Zhu <hui_zhu@mentor.com>
3615
3616 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3617 * cli/cli-utils.c (check_for_argument): New function.
3618 * cli/cli-utils.h (check_for_argument): Ditto.
3619
1b3371b1
L
36202012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3621
3622 * NEWS: Mention x32 ABI support.
3623
23e2d720
L
36242012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3625
3626 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3627 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3628
3629 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3630 and pc_regnum_from_eax to -1. Update SP regnum from
3631 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3632 needed.
3633
3634 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3635 pc_regnum_from_eax.
3636
836bf454
JK
36372012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3640 * dwarf2expr.h: Include gdbtypes.h.
3641 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3642 these forward declarations.
3643 (cu_offset, sect_offset): Move these ...
3644 * gdbtypes.h: Remove include dwarf2expr.h.
3645 (cu_offset, sect_offset): ... here.
3646
1e55e04f
L
36472012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3648
3649 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3650 (amd64_linux_sigtramp_code): This.
3651 (amd64_x32_linux_sigtramp_code): New.
3652 (LINUX_SIGTRAMP_LEN): Updated.
3653 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3654
7d0e21ad
JK
36552012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3656
3657 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3658
8775fd2d
JK
36592012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 * config.in: Regenerate.
3662 * configure: Regenerate.
3663 * configure.ac: Remove check for gnu/libc-version.h.
3664 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3665 gnu/libc-version.h.
3666 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3667 variables libc_version, libc_major and libc_minor. Replace sscanf by
3668 inferior_has_bug. Extend the comment.
3669
fcb44371
JK
36702012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 * linux-thread-db.c (inferior_has_bug): New function.
3673 (thread_db_find_new_threads_silently): Return boolean as checked by
3674 inferior_has_bug, describe it in the comments.
3675 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3676 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3677 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3678 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3679 if UNTIL_NO_NEW,
3680
09406207
DE
36812012-07-02 Doug Evans <dje@google.com>
3682
0907af0c
DE
3683 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3684 related to queue management.
3685
09406207
DE
3686 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3687 instead of "debug dwarf2-die" in debugging printfs.
3688 (create_debug_info_hash_table_reader): Ditto.
3689 (create_debug_info_hash_table): Ditto.
3690 (init_dwo_file): Ditto.
3691 (init_cutu_and_read_dies): Add debugging printf.
3692 (init_cutu_and_read_dies_no_follow): Ditto.
3693 (process_psymtab_comp_unit_reader): Ditto.
3694
d3ce09f5
SS
36952012-07-02 Stan Shebs <stan@codesourcery.com>
3696
3697 Add target-side support for dynamic printf.
3698 * NEWS: Mention the additional style.
3699 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3700 (struct bp_location): New field cmd_bytecode.
3701 * breakpoint.c: Include format.h.
3702 (disconnected_dprintf): New global.
3703 (parse_cmd_to_aexpr): New function.
3704 (build_target_command_list): New function.
3705 (insert_bp_location): Call it.
3706 (remove_breakpoints_pid): Skip dprintf breakpoints.
3707 (print_one_breakpoint_location): Ditto.
3708 (dprintf_style_agent): New global.
3709 (dprintf_style_enums): Add dprintf_style_agent.
3710 (update_dprintf_command_list): Add agent case.
3711 (agent_printf_command): New function.
3712 (_initialize_breakpoint): Add new commands.
3713 * common/ax.def (printf): New bytecode.
3714 * ax.h (ax_string): Declare.
3715 * ax-gdb.h (gen_printf): Declare.
3716 * ax-gdb.c: Include cli-utils.h, format.h.
3717 (gen_printf): New function.
3718 (maint_agent_print_command): New function.
3719 (_initialize_ax_gdb): Add maint agent-printf command.
3720 * ax-general.c (ax_string): New function.
3721 (ax_print): Add printf disassembly.
3722 * Makefile.in (SFILES): Add format.c
3723 (COMMON_OBS): Add format.o.
3724 * common/format.h: New file.
3725 * common/format.c: New file.
3726 * printcmd.c: Include format.h.
3727 (ui_printf): Call parse_format_string.
3728 * remote.c (remote_state): New field breakpoint_commands.
3729 (PACKET_BreakpointCommands): New enum.
3730 (remote_breakpoint_commands_feature): New function.
3731 (remote_protocol_features): Add new BreakpointCommands entry.
3732 (remote_can_run_breakpoint_commands): New function.
3733 (remote_add_target_side_commands): New function.
3734 (remote_insert_breakpoint): Call it.
3735 (remote_insert_hw_breakpoint): Ditto.
3736 (_initialize_remote): Add new packet configuration for
3737 target-side breakpoint commands.
3738 * target.h (struct target_ops): New field
3739 to_can_run_breakpoint_commands.
3740 (target_can_run_breakpoint_commands): New macro.
3741 * target.c (update_current_target): Handle
3742 to_can_run_breakpoint_commands.
3743
2d7b58e8
JK
37442012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3745
3746 Execute -ix and -iex only after system and user gdbinit files.
3747 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3748 processing down after gdbinit files.
3749
8690e634
JK
37502012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 Add fnmatch-gnu module.
3753 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3754 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3755 * gnulib/aclocal.m4: Regenerate.
3756 * gnulib/config.in: Regenerate.
3757 * gnulib/configure: Regenerate.
3758 * gnulib/import/dummy.c: Remove.
3759 * gnulib/import/Makefile.am: Regenerate.
3760 * gnulib/import/Makefile.in: Likewise.
3761 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3762 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3763 * gnulib/import/alloca.c: New file.
3764 * gnulib/import/alloca.in.h: Likewise.
3765 * gnulib/import/config.charset: Likewise.
3766 * gnulib/import/fnmatch.c: Likewise.
3767 * gnulib/import/fnmatch.in.h: Likewise.
3768 * gnulib/import/fnmatch_loop.c: Likewise.
3769 * gnulib/import/localcharset.c: Likewise.
3770 * gnulib/import/localcharset.h: Likewise.
3771 * gnulib/import/m4/alloca.m4: Likewise.
3772 * gnulib/import/m4/codeset.m4: Likewise.
3773 * gnulib/import/m4/configmake.m4: Likewise.
3774 * gnulib/import/m4/fcntl-o.m4: Likewise.
3775 * gnulib/import/m4/fnmatch.m4: Likewise.
3776 * gnulib/import/m4/glibc21.m4: Likewise.
3777 * gnulib/import/m4/localcharset.m4: Likewise.
3778 * gnulib/import/m4/locale-fr.m4: Likewise.
3779 * gnulib/import/m4/locale-ja.m4: Likewise.
3780 * gnulib/import/m4/locale-zh.m4: Likewise.
3781 * gnulib/import/m4/mbrtowc.m4: Likewise.
3782 * gnulib/import/m4/mbsinit.m4: Likewise.
3783 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3784 * gnulib/import/m4/mbstate_t.m4: Likewise.
3785 * gnulib/import/m4/stdbool.m4: Likewise.
3786 * gnulib/import/m4/wchar_h.m4: Likewise.
3787 * gnulib/import/m4/wctype_h.m4: Likewise.
3788 * gnulib/import/m4/wint_t.m4: Likewise.
3789 * gnulib/import/mbrtowc.c: Likewise.
3790 * gnulib/import/mbsinit.c: Likewise.
3791 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3792 * gnulib/import/mbsrtowcs-state.c: Likewise.
3793 * gnulib/import/mbsrtowcs.c: Likewise.
3794 * gnulib/import/ref-add.sin: Likewise.
3795 * gnulib/import/ref-del.sin: Likewise.
3796 * gnulib/import/stdbool.in.h: Likewise.
3797 * gnulib/import/streq.h: Likewise.
3798 * gnulib/import/strnlen1.c: Likewise.
3799 * gnulib/import/strnlen1.h: Likewise.
3800 * gnulib/import/verify.h: Likewise.
3801 * gnulib/import/wchar.in.h: Likewise.
3802 * gnulib/import/wctype.in.h: Likewise.
3803
202cbf1c
JK
38042012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3805
3806 Support shell wildcards for 'set auto-load safe-path'.
3807 * auto-load.c: Include fnmatch.h.
3808 (filename_is_in_dir): Rename to ...
3809 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3810 it. Update function comment. Rename dir_len to pattern_len. New
3811 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3812 messages. Use gdb_filename_fnmatch.
3813 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3814 pattern.
3815 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3816 * defs.h (gdb_filename_fnmatch): New declaration.
3817 * utils.c: Include fnmatch.h.
3818 (gdb_filename_fnmatch): New function.
3819
fb7b5af4
SDJ
38202012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3821
3822 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3823 `-probe' and `-probe-stap' options.
3824
72d0e2c5
YQ
38252012-07-01 Yao Qi <yao@codesourcery.com>
3826
3827 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3828 always_inserted_off, and always_inserted_enums.
3829 Change always_inserted_mode's type to 'enum auto_boolean'.
3830 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3831 callers.
3832 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3833 of add_setshow_enum_cmd.
3834 * infrun.c: Remove can_use_displaced_stepping_auto,
3835 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3836 can_use_displaced_stepping_enum.
3837 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3838 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3839 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3840 add_setshow_enum_cmd.
3841
42e7ad6c
DE
38422012-06-30 Doug Evans <dje@google.com>
3843
3844 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3845 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3846 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3847
39cf75f7
DE
38482012-06-29 Doug Evans <dje@google.com>
3849
3850 * linespec.c: #include "stack.h".
3851 (decode_line_with_current_source): Moved here from symtab.c and
3852 renamed from decode_line_spec. All callers updated.
3853 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3854 renamed from decode_line_spec_1. All callers updated.
3855 * linespec.h (decode_line_with_current_source): Move declaration here
3856 from symtab.h and renamed from decode_line_spec.
3857 (decode_line_with_last_displayed): Move declaration here from symtab.h
3858 and renamed from decode_line_spec_1.
3859 * macrocmd.c: #include "linespec.h".
3860 * symtab.c: Remove #include "linespec.h".
3861
433df2d4
DE
38622012-06-28 Doug Evans <dje@google.com>
3863
1ce1cefd
DE
3864 * dwarf2read.c (get_cu_length): New function.
3865 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3866 (create_debug_types_hash_table): Ditto.
3867 (init_cutu_and_read_dies): Ditto.
3868 (init_cutu_and_read_dies_no_follow): Ditto.
3869
3b80fe9b
DE
3870 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3871
433df2d4
DE
3872 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3873 (struct abbrev_table): Define.
3874 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3875 abbrev_table.
3876 (init_cutu_and_read_dies): Update.
3877 (abbrev_table_alloc_abbrev): New function. Replaces
3878 dwarf_alloc_abbrev. All callers updated.
3879 (abbrev_table_add_abbrev): New function.
3880 (abbrev_table_lookup_abbrev): New function. Replaces
3881 dwarf2_lookup_abbrev. All callers updated.
3882 (abbrev_table_read_table): New function. Contents moved here from
3883 dwarf2_read_abbrevs.
3884 (dwarf2_read_abbrevs): Call it.
3885 (abbrev_table_free): New function.
3886 (dwarf2_free_abbrev_table): Call it.
3887
71caed83
SS
38882012-06-28 Stan Shebs <stan@codesourcery.com>
3889
3890 * osdata.c (info_osdata_command): Filter out "Title" columns
3891 from non-MI uses.
3892 * common/linux-osdata.c (struct osdata_type): Add title field.
3893 (osdata_table): Add titles to each entry.
3894 (linux_command_xfer_osdata): Add a column for title data.
3895
37ce89eb
SS
38962012-06-28 Stan Shebs <stan@codesourcery.com>
3897
3898 Make logging work for MI.
3899 * NEWS: Mention it.
3900 * interps.h (interp_set_logging_ftype): New typedef.
3901 (struct interp_procs): New field set_logging_proc.
3902 (current_interp_set_logging): Declare.
3903 * interps.c (current_interp_set_logging): New function.
3904 * cli/cli-logging.c: Include interps.h.
3905 (set_logging_redirect): Call current_interp_set_logging.
3906 (pop_output_files): Ditto.
3907 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3908 * mi/mi-console.h (mi_console_set_raw): Declare.
3909 * mi/mi-console.c (mi_console_set_raw): New function.
3910 * mi/mi-interp.c (saved_raw_stdout): New global.
3911 (mi_set_logging): New function.
3912 (_initialize_mi_interp): Add it to interp procs.
3913
659c9f3a
DE
39142012-06-28 Doug Evans <dje@google.com>
3915
a743abeb
DE
3916 * symtab.c (lookup_symbol_aux_objfile): Use
3917 ALL_OBJFILE_PRIMARY_SYMTABS.
3918
659c9f3a
DE
3919 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3920
da2d6d3d
JK
39212012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3922
3923 * common/buffer.c: Include inttypes.h and stdint.h.
3924 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3925
e5ef252a
PA
39262012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3927 Pedro Alves <palves@redhat.com>
3928
3929 * gdbthread.h (ALL_THREADS): New macro.
3930 (thread_list): Declare.
3931 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3932 going, but instead fall through to the stepping handling.
3933 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3934 the passed in signal. Adjust debug output.
3935 (resume_callback): Rename to ...
3936 (linux_nat_resume_callback): ... this. Pass the thread's last
3937 stop signal, if in "pass" state.
3938 (linux_nat_resume): Adjust to rename.
3939 (stop_wait_callback): New assertion. Don't respawn signals;
3940 instead let the LWP remain with SIGNALLED set.
3941 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3942 * remote.c (append_pending_thread_resumptions): New.
3943 (remote_vcont_resume): Call it.
3944 * target.h (target_resume): Extend comment.
3945
1d7975eb
IS
39462012-06-28 Iain Sandoe <iain@codesourcery.com>
3947
3948 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3949
2e3cf129
DE
39502012-06-27 Doug Evans <dje@google.com>
3951
3952 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3953 Delete have_addr_base, unused. All uses updated.
3954 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3955 (dwarf2_get_pc_bounds): Add ranges_base.
3956 (dwarf2_record_block_ranges): Ditto.
3957
1bb9788d
TT
39582012-06-27 Tom Tromey <tromey@redhat.com>
3959
3960 PR macros/7961:
3961 * varobj.c (varobj_create): Update.
3962 (varobj_set_value): Update.
3963 * tracepoint.c (validate_actionline): Update.
3964 (encode_actions_1): Update.
3965 * parse.c (parse_exp_1): Add 'pc' argument.
3966 (parse_exp_in_context): Add 'pc' argument. Change how
3967 expression_context_pc is set.
3968 (parse_expression): Update.
3969 (parse_field_expression): Update.
3970 * expression.h (parse_exp_1): Update.
3971 * eval.c (parse_to_comma_and_eval): Update.
3972 * breakpoint.c (set_breakpoint_condition): Update.
3973 (update_watchpoint): Update.
3974 (init_breakpoint_sal): Update
3975 (find_condition_and_thread): Update.
3976 (watch_command_1): Update.
3977 (update_breakpoint_locations): Update.
3978 * ada-lang.c (ada_read_renaming_var_value): Update.
3979 (create_excep_cond_exprs): Update.
3980
0bc3a05c
DE
39812012-06-27 Doug Evans <dje@google.com>
3982
3983 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3984 type units.
3985
4bdcc0c1
DE
39862012-06-26 Doug Evans <dje@google.com>
3987
3988 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3989 prototype.
3990 (error_check_comp_unit_head): New arg abbrev_section. All callers
3991 updated.
3992 (read_and_check_comp_unit_head): Ditto.
3993 (read_and_check_type_unit_head): Ditto.
3994
ee0bf529
SCR
39952012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3996
3997 New attribute 'last' for gdb.Symtab_and_line.
3998 * NEWS (Python Scripting): Add entry about the new attribute.
3999 * python/py-symtab.c (salpy_get_last): New function which
4000 implements the get method for the 'last' attribute of
4001 gdb.Symtab_and_line.
4002 (sal_object_getset): Add entry for the 'last' attribute.
4003
1c658ad5
DE
40042012-06-26 Doug Evans <dje@google.com>
4005
09262596
DE
4006 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4007 (dwo_sections): Add macinfo, macro.
4008 (dwarf2_locate_dwo_sections): Watch for macro sections.
4009 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4010 All callers updated. Handle DWO files.
4011
45cfd468
DE
4012 * NEWS: Mention new options "set debug dwarf2-read" and
4013 "set debug symtab-create".
4014 * dwarf2read.c (dwarf2_read_debug): New static global.
4015 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4016 (process_queue): Ditto.
4017 (process_full_comp_unit): Ditto.
4018 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4019 * elfread.c (elf_symfile_read): Add debugging printf.
4020 * minsyms.c (install_minimal_symbols): Ditto.
4021 * psymtab.c (allocate_psymtab): Ditto.
4022 * symfile.c (allocate_symtab): Ditto.
4023 * symtab.c (symtab_create_debug): New global.
4024 (_initialize_symtab): Add new option "set debug symtab-create".
4025 * symtab.h (symtab_create_debug): Declare.
4026
1c658ad5
DE
4027 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4028 (lookup_dwo_type_unit): Ditto.
4029
6fea9e18
L
40302012-06-26 Roland McGrath <roland@hack.frob.com>
4031 H.J. Lu <hongjiu.lu@intel.com>
4032
4033 * amd64-linux-nat.c: Include <sys/user.h>.
4034 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4035 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4036 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4037
4038 * configure.ac: Check if the fs_base and gs_base members of
4039 `struct user_regs_struct' exist.
4040 * config.in: Regenerated.
4041 * configure: Likewise.
4042
adb4fe3b
ME
40432012-06-25 Michael Eager <eager@eagercon.com>
4044
4045 PR python/14291
f782ad9b 4046 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4047
fc51cce1
MGD
40482012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4049
4050 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4051 register as a stack alignment in ARM mode.
4052
40a73391
JK
40532012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4056 * gnulib/config.in: Regenerate.
4057 * gnulib/configure: Likewise.
4058 * gnulib/import/m4/extensions.m4: Update it.
4059 * gnulib/import/m4/gnulib-common.m4: Likewise.
4060 * gnulib/import/m4/memmem.m4: Likewise.
4061 * gnulib/import/m4/mmap-anon.m4: Likewise.
4062 * gnulib/import/m4/multiarch.m4: Likewise.
4063 * gnulib/import/stdint.in.h: Likewise.
4064
972daa01
YQ
40652012-06-24 Yao Qi <yao@codesourcery.com>
4066
4067 * corefile.c (write_memory_with_notification): New.
4068 * gdbcore.h: Declare write_memory_with_notification.
4069 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4070 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4071 * valops.c (value_assign): Likewise.
4072 * python/py-inferior.c (infpy_write_memory): Call
4073 'write_memory_with_notification'.
4074
8d6e0714
JK
40752012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4076
4077 * cc-with-index.sh: Use also -ex "set auto-load no".
4078
156942c7
DE
40792012-06-23 Doug Evans <dje@google.com>
4080
4081 PR 14125
4082 * NEWS: Document additions to .gdb_index.
4083 * dwarf2read.c: #include "gdb/gdb-index.h".
4084 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4085 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4086 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4087 (dwarf2_read_index): Recognize version 7.
4088 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4089 block_kind, domain): All callers updated.
4090 (dw2_find_symbol_file): Handle new index CU values.
4091 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4092 (add_index_entry): New args is_static, kind. All callers updated.
4093 (offset_type_compare, uniquify_cu_indices): New functions
4094 (symbol_kind): New function.
4095 (write_psymtabs_to_index): Remove duplicate CU values.
4096 (write_psymtabs_to_index): Write .gdb_index version 7.
4097
352b3eda
JB
40982012-06-22 Joel Brobecker <brobecker@adacore.com>
4099
4100 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4101 * configure: Regenerate.
4102
2678e2af
YQ
41032012-06-20 Yao Qi <yao@codesourcery.com>
4104
4105 * python/py-inferior.c: Update comments of infpy_read_memory
4106 and infpy_write_memory.
4107
95c391b6
TT
41082012-06-19 Tom Tromey <tromey@redhat.com>
4109
4110 PR exp/9514:
4111 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4112 (push_type_address_space): Remove.
4113 * parse.c (insert_into_type_stack): New function.
4114 (insert_type): Likewise.
4115 (insert_type_address_space): Rename from push_type_address_space.
4116 Insert tp_space_identifier.
4117 * c-exp.y (ptr_operator): New production.
4118 (abs_decl): Use ptr_operator.
4119 (space_identifier): Call insert_type_address_space.
4120 (ptype): Don't use const_or_volatile_or_space_identifier.
4121 (const_or_volatile_noopt): Call insert_type.
4122 (conversion_type_id, conversion_declarator): New productions.
4123 (operator): Use conversion_type_id.
4124
6ac9ef80
DE
41252012-06-18 Doug Evans <dje@google.com>
4126
422d65e7
DE
4127 * symtab.h (minimal_symbol): New member created_by_gdb.
4128 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4129 created by gdb.
4130 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4131 (search_symbols): Call it instead of lookup_symbol.
4132 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4133
49f6c839
DE
4134 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4135 Adjust address for DW_OP_GNU_addr_index.
4136 * dwarf2expr.h (dwarf_expr_context): Update comment.
4137 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4138 all callers updated. Handle TLS vars described with
4139 DW_OP_GNU_const_index.
4140 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4141 and DW_OP_GNU_const_index.
4142 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4143
6ac9ef80
DE
4144 * block.c (find_block_in_blockvector): Make explicit the fact that we
4145 ignore GLOBAL_BLOCK.
4146
4cd18215
TT
41472012-06-18 Tom Tromey <tromey@redhat.com>
4148
4149 * c-exp.y (operator): Remove trailing space after "delete" and
4150 "delete[]".
4151
a9b8d892
JK
41522012-06-18 Mark Kettenis <kettenis@gnu.org>
4153 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 Switch i386 and derived targets to ON_STACK.
4156 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4157 (amd64_dicos_init_abi): Remove its installment.
4158 * dicos-tdep.c (dicos_init_abi): Remove the
4159 set_gdbarch_call_dummy_location call. Update the comment here.
4160 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4161 (i386_dicos_init_abi): Remove its installment.
4162 * i386-tdep.c (i386_push_dummy_code): New function.
4163 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4164 i386_push_dummy_code.
4165
e2e4d78b
JK
41662012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4167
4168 Remove stale dummy frames.
4169 * breakpoint.c: Include dummy-frame.h.
4170 (longjmp_breakpoint_ops): New variable.
4171 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4172 bp_longjmp_call_dummy.
4173 (bpstat_what, bptype_string, print_one_breakpoint_location)
4174 (init_bp_location): Support bp_longjmp_call_dummy.
4175 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4176 (set_longjmp_breakpoint_for_call_dummy)
4177 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4178 functions.
4179 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4180 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4181 FIXME comment and extend the other comment for bp_call_dummy.
4182 (set_longjmp_breakpoint_for_call_dummy)
4183 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4184 * dummy-frame.c: Include gdbthread.h.
4185 (pop_dummy_frame_bpt): New function.
4186 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4187 (dummy_frame_discard): New function.
4188 (cleanup_dummy_frames): Update the comment about longjmps.
4189 * dummy-frame.h (dummy_frame_discard): New declaration.
4190 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4191 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4192 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4193 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4194 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4195 keep_going if IS_LONGJMP and there is no other reason to stop.
4196
09d5912c
TT
41972012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4198
4199 * remote-sim.c (sim_command_completer): Initialize
4200 variable 'result'.
4201
1788b2d3
JK
42022012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4203
4204 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4205 * dwarf2loc.c (call_site_parameter_matches): Support
4206 CALL_SITE_PARAMETER_PARAM_OFFSET.
4207 (needs_dwarf_reg_entry_value): Push stub value.
4208 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4209 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4210 * gdbtypes.h (enum call_site_parameter_kind): New item
4211 CALL_SITE_PARAMETER_PARAM_OFFSET.
4212 (struct call_site.parameter.u): New field param_offset.
4213
24c5c679
JK
42142012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4215
4216 Code cleanup: Generalize call_site.parameter key.
4217 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4218 variable dwarf_reg. New variable kind_u. Update parameters to
4219 push_dwarf_reg_entry_value.
4220 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4221 * dwarf2expr.h (enum call_site_parameter_kind)
4222 (union call_site_parameter_u): Forward declarations.
4223 (struct dwarf_expr_context_funcs): Update parameters and their
4224 description for push_dwarf_reg_entry_value.
4225 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4226 * dwarf2loc.c (call_site_parameter_matches): New function.
4227 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4228 description. Use call_site_parameter_matches.
4229 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4230 Update parameters and their description.
4231 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4232 New variable kind_u. Adjust the caller for updated parameters.
4233 (needs_dwarf_reg_entry_value): Update parameters.
4234 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4235 instead of attr. Update for the changed fields of struct
4236 call_site_parameter.
4237 * gdbtypes.h: Include dwarf2expr.h.
4238 (enum call_site_parameter_kind): New.
4239 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4240 fb_offset into new union u.
4241
ac142d96
L
42422012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4243
4244 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4245 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4246 for x32.
4247
ba224c70
L
42482012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4249
4250 * amd64-linux-nat.c (compat_x32_clock_t): New.
4251 (compat_x32_siginfo_t): Likewise.
4252 (compat_x32_siginfo_from_siginfo): Likewise.
4253 (siginfo_from_compat_x32_siginfo): Likewise.
4254 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4255 and siginfo_from_compat_x32_siginfo for x32.
4256
7ecbc825
HZ
42572012-06-15 Hui Zhu <hui_zhu@mentor.com>
4258
4259 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4260
233dfcf0
L
42612012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4262
4263 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4264 instead of gdbarch_ptr_bit.
4265 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4266 (amd64_supply_native_gregset): Likewise.
4267 (amd64_collect_native_gregset): Likewise.
4268 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4269 (amd64_supply_xsave): Likewise.
4270 (amd64_collect_fxsave): Likewise.
4271 (amd64_collect_xsave): Likewise.
4272
6da38f42
L
42732012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4274
4275 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4276 (amd64_linux_read_description): Check DS segment register for
4277 x32 process.
4278
663b969e
TT
42792012-06-15 Tom Tromey <tromey@redhat.com>
4280
4281 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4282 init_cutu_and_read_dies.
4283
d6f05027
IS
42842012-06-15 Iain Sandoe <iain@codesourcery.com>
4285
4286 * MAINTAINERS (Write After Approval): Add myself to the list.
4287
6598ed07
TT
42882012-06-15 Tom Tromey <tromey@redhat.com>
4289
4290 * valops.c (value_find_oload_method_list): Now static.
4291 * value.h (value_find_oload_method_list): Don't declare.
4292
2b214ea6
TT
42932012-06-15 Tom Tromey <tromey@redhat.com>
4294
4295 * valops.c (find_overload_match): Use value_ind.
4296
a210c238
MR
42972012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4298
4299 * infrun.c (handle_inferior_event): Correct indentation.
4300
3771a44c
DE
43012012-06-14 Doug Evans <dje@google.com>
4302
4303 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4304 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4305 All uses updated.
4306 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4307 updated. Handle DEBUG_LOC_START_LENGTH.
4308 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4309 (loclist_describe_location): Ditto.
4310
1c5a993e
MR
43112012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4312
4313 PR backtrace/13866
4314 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4315 after hiding inline functions.
4316
0b155465
JB
43172012-06-13 Joel Brobecker <brobecker@adacore.com>
4318
4319 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4320 _initialize_inf_ttrace.
4321
45717bac
JB
43222012-06-13 Joel Brobecker <brobecker@adacore.com>
4323
4324 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4325 _initialize_hppa_hpux_nat.
4326
34370865
JB
43272012-06-13 Joel Brobecker <brobecker@adacore.com>
4328
4329 * remote-sim.c (sim_command_completer): Change type of return
4330 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4331
284c5a60
MK
43322012-06-13 Mark Kettenis <kettenis@gnu.org>
4333 Jan Kratochvil <jan.kratochvil@redhat.com>
4334
4335 PR tdep/14222
4336 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4337 stack on a 16-byte boundary.
4338
2535757a
TT
43392012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4340
4341 * jit.c (finalize_symtab): Set function's return type to 'void' by
4342 default.
4343
fff4548b
MK
43442012-06-13 Mark Kettenis <kettenis@gnu.org>
4345 H.J. Lu <hongjiu.lu@intel.com>
4346
5a83521a
MK
4347 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4348 Move bits common to both the classic LP64 and the new x32 ILP32
4349 ABI here.
4350 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4351 (amd64_x32_linux_init_abi): New function.
4352 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4353 subtype.
4354
fff4548b
MK
4355 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4356 * i386-tdep.c (i386_pseudo_register_name): Make public.
4357 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4358 * amd64-tdep.c (amd64_dword_names): Add "eip".
4359 (amd64_x32_pseudo_register_type): New function
4360 (amd64_x32_init_abi): New function.
4361
dd80ea3c
JK
43622012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4363
4364 PR build/14003
4365 * inferior.h (struct inferior_suspend_state): Comment out.
4366 (struct inferior): Comment out the field suspend.
4367 * infrun.c (struct infcall_suspend_state): Comment out the field
4368 inferior_suspend.
4369 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4370 out its assignment.
4371
50af5481
JK
43722012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4373
4374 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4375 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4376 function comment. Return ERROR for unresolved cases. Implement
4377 returning proper NAME.
4378 (yylex): Accept also NAME from classify_inner_name.
4379 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4380 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4381 LOC_TYPEDEF type.
4382 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4383
d55637df
TT
43842012-06-13 Tom Tromey <tromey@redhat.com>
4385
4386 * breakpoint.c (condition_completer): New function.
4387 (_initialize_breakpoint): Use it.
4388 * value.c (complete_internalvar): New function.
4389 * value.h (complete_internalvar): Declare.
4390
49c4e619
TT
43912012-06-13 Tom Tromey <tromey@redhat.com>
4392
4393 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4394 * breakpoint.c (catch_syscall_completer): Return a VEC.
4395 * cli/cli-cmds.c (complete_command): Update.
4396 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4397 (complete_on_enum): Likewise.
4398 * command.h: Include gdb_vecs.h.
4399 (completer_ftype): Change return type.
4400 (complete_on_cmdlist, complete_on_enum): Likewise.
4401 * completer.c (noop_completer, filename_completer)
4402 (location_completer): Return a VEC.
4403 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4404 to a VEC.
4405 (expression_completer, complete_line_internal, complete_line)
4406 (command_completer): Return a VEC.
4407 (gdb_completion_word_break_characters, line_completion_function):
4408 Update.
4409 * completer.h: Include gdb_vecs.h.
4410 (complete_line, noop_completer, filename_completer)
4411 (expression_completer, location_completer, command_completer):
4412 Update.
4413 * f-lang.c (f_word_break_characters): Return a VEC.
4414 * interps.c (interpreter_completer): Return a VEC.
4415 * language.h (struct language_defn)
4416 <la_make_symbol_completion_list>: Return a VEC.
4417 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4418 * symtab.c (free_completion_list): Take a VEC.
4419 (return_val_size, return_val_index): Remove.
4420 (return_val): Now a VEC.
4421 (completion_list_add_name): Update.
4422 (default_make_symbol_completion_list_break_on)
4423 (default_make_symbol_completion_list, make_symbol_completion_list)
4424 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4425 Return a VEC.
4426 (add_filename_to_list): Update.
4427 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4428 <list>: Now a VEC.
4429 (maybe_add_partial_symtab_filename): Update.
4430 (make_source_files_completion_list): Return a VEC.
4431 * symtab.h (default_make_symbol_completion_list_break_on)
4432 (default_make_symbol_completion_list, make_symbol_completion_list)
4433 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4434 (make_source_files_completion_list): Update.
4435
625e8578
TT
44362012-06-13 Tom Tromey <tromey@redhat.com>
4437
4438 * breakpoint.c (add_catch_command): Use completer_ftype.
4439 * breakpoint.h: Include command.h.
4440 (add_catch_command): Use completer_ftype.
4441 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4442 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4443 Use completer_ftype.
4444 * command.h (completer_ftype): New typedef.
4445 (set_cmd_completer): Use it.
4446 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4447 completer_ftype.
4448
5eb3b062
PA
44492012-06-13 Pedro Alves <palves@redhat.com>
4450
4451 Partial revert of previous change.
4452
4453 * serial.c (scb_base): New global.
4454 (serial_for_fd): New.
4455 (serial_open, serial_fdopen_ops): Link new serial in open serials
4456 chain.
4457 (do_serial_close): Unlink serial from the open serials chain.
4458
8b3ee56d
PA
44592012-06-12 Pedro Alves <palves@redhat.com>
4460
4461 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4462 threads here.
4463 (prepare_for_detach): No longer context switch here in non-stop
4464 mode.
4465 (fetch_inferior_event): Ditto.
4466 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4467 to the event thread before removing breakpoints. Switch to the
4468 event thread before inserting breakpoints and resuming.
4469 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4470 event thread before resuming.
4471 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4472 Switch to the event thread before removing breakpoints.
4473
5d60742e
EZ
44742012-06-12 Eli Zaretskii <eliz@gnu.org>
4475
4476 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4477 special characters correctly for the Windows shells. See
4478 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4479 report.
4480 [!__MINGW32__]: Remove extra double quote character from special
4481 characters.
4482
a6feecf7
SS
44832012-06-11 Stan Shebs <stan@codesourcery.com>
4484
4485 * ui-out.h: Remove #if 0 declarations.
4486 * ui-out.c: Remove #if 0 functions.
4487
ddefb60f
PA
44882012-06-11 Pedro Alves <palves@redhat.com>
4489
4490 * ser-base.c (run_async_handler_and_reschedule): New.
4491 (fd_event, push_event): Use it.
4492 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4493 reference count to 1.
4494 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4495 instead of xfree.
4496 (serial_is_open, serial_ref, serial_unref): New.
4497 * serial.h (serial_open): Adjust comment.
4498 (serial_is_open): Declare.
4499 (serial_close): Adjust comment.
4500 (serial_ref, serial_unref) Declare.
4501 (struct serial): New field 'refcnt'.
4502
d5ad6aa5
PA
45032012-06-11 Pedro Alves <palves@redhat.com>
4504
4505 Remove #if 0'd "connect" command, and unnecessary associated
4506 refcounting and serial reuse bits.
4507
4508 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4509 * serial.c (last_serial_opened): Delete.
4510 (scb_base): Delete.
4511 (serial_open): Adjust.
4512 (serial_for_fd): Delete.
4513 (serial_fdopen_ops, do_serial_close): Adjust.
4514 (serial_fdopen_ops): Adjust.
4515
318aa544
PA
45162012-06-11 Pedro Alves <palves@redhat.com>
4517
4518 * serial.c (do_serial_close): Remove early return when SCB is
4519 null.
4520
07261596
TT
45212012-06-11 Tom Tromey <tromey@redhat.com>
4522
4523 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4524
cc80f267
JK
45252012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4526
4527 Fix regression by the "ambiguous linespec" series.
4528 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4529 get_last_displayed_symtab and get_last_displayed_line and depending
4530 on CURSAL.
4531
356d9f9d
TT
45322012-06-11 Tom Tromey <tromey@redhat.com>
4533
4534 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4535 (dw2_find_symbol_file): Use it.
4536
232b8704
ME
45372012-06-11 Michael Eager <eager@eagercon.com>
4538
4539 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4540 * mips-linux-tdep.h (mips_signals): New
4541
e81a37f7
TT
45422012-06-11 Tom Tromey <tromey@redhat.com>
4543
4544 * infrun.c (handle_inferior_event)
4545 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4546 breakpoint.
4547 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4548 exception logic in all cases. Update comments.
4549 (insert_longjmp_resume_breakpoint): Set the exception resume
4550 breakpoint.
4551
2e81047f
MR
45522012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4553
4554 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4555
4e32eda7
SCR
45562012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4557
4558 * valarith.c (binop_types_user_defined_p): Fix a typo.
4559
18648a37 45602012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4561 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4562
4563 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4564 * arch-utils.h: Declare.
4565 * gdbarch.sh: Add return_in_first_hidden_param_p.
4566 * gdbarch.c, gdbarch.h: Regenerated.
4567 * infcall.c (call_function_by_hand): Call
4568 gdbarch_return_in_first_hidden_param_p instead of
4569 language_pass_by_reference.
4570
4571 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4572 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4573 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4574 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4575 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4576 `cplus_return_struct_by_reference'.
4577 (tic6x_return_value): Handle language cplusplus.
4578 (tic6x_return_in_first_hidden_param_p): New.
4579 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4580
034e5797
DE
45812012-06-07 Doug Evans <dje@google.com>
4582
4583 * dwarf2read.c (dwarf2_cu): Add comment.
4584
6a00aa1e
MR
45852012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4586
4587 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4588 variable.
4589 (mips_eabi_push_dummy_call): Likewise.
4590 (mips_n32n64_push_dummy_call): Likewise.
4591 (mips_o32_push_dummy_call): Likewise.
4592 (mips_o64_push_dummy_call): Likewise.
4593
eaa05d59
MR
45942012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4595
4596 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4597
de13fcf2
MR
45982012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4599
4600 * mips-tdep.c (mips_pseudo_register_type): Use
4601 mips_float_register_p.
4602
c3a01a22
PA
46032012-06-06 Pedro Alves <palves@redhat.com>
4604
4605 * infrun.c (handle_inferior_event): Remove calls to
4606 reinit_frame_cache that follow a context_switch call.
4607
d25f45d9
PA
46082012-06-06 Pedro Alves <palves@redhat.com>
4609
4610 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4611 context_switch and remove stale comment.
4612
359f5fe6
PA
46132012-06-06 Pedro Alves <palves@redhat.com>
4614
4615 * infrun.c (struct execution_control_state): Remove
4616 `new_thread_event' field.
4617 (handle_inferior_event): Simplify new threads handling; don't
4618 resume the inferior if we find a new thread.
4619
2d4c29c5
TS
46202012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4621
4622 * NEWS: Document the deprecation of SH's 'regs' command.
4623 * inferior.h (all_registers_info): Add function declaration.
4624 * sh-tdep.c (sh_show_regs): Remove variable.
4625 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4626 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4627 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4628 (sh_show_regs_command): Remove functions.
4629 (sh_gdbarch_init): Don't set sh_show_regs.
4630 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4631 'info all-registers'.
4632 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4633 (sh64_show_regs): Remove functions.
4634 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4635
f5f1cdb6
JK
46362012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4637
4638 * configure.ac: Move development=true below AC_INIT.
4639 * configure: Regenerate.
4640
bf6309af
SS
46412012-06-05 Stan Shebs <stan@codesourcery.com>
4642
4643 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4644 gdb_stdout.
4645
45aa4659
JK
46462012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4647
4648 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4649 argument as ssize_t.
4650 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4651 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4652 * target.c (target_read_stack, target_write_memory)
4653 (target_write_raw_memory): Likewise.
4654 * target.h (target_read_stack, target_write_memory)
4655 (target_write_raw_memory): Likewise.
4656
1b162304
JK
46572012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4658
4659 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4660 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4661 * target.c (target_read_memory): Change LEN to ssize_t.
4662 * target.h (target_read_memory): Change LEN to ssize_t.
4663
8556afb4
PA
46642012-06-05 Pedro Alves <palves@redhat.com>
4665
4666 PR backtrace/13866
4667
4668 * breakpoint.c (until_break_command): Only fetch the selected
4669 frame after decode_line_1.
4670
fb139f32
PA
46712012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4672
4673 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4674 event breakpoint at _start, __start or main if a program
4675 interpreter is not found.
4676
a8e1bb34
JB
46772012-06-05 Joel Brobecker <brobecker@adacore.com>
4678
4679 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4680 Add declaration.
4681 * windows-tdep.c: #include "objfiles.h".
4682 (windows_iterate_over_objfiles_in_search_order): New function.
4683 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4684 iterate_over_objfiles_in_search_order gdbarch method to
4685 windows_iterate_over_objfiles_in_search_order.
4686 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4687
19630284
JB
46882012-06-05 Joel Brobecker <brobecker@adacore.com>
4689
4690 * gdbarch.sh: Add generation of
4691 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4692 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4693 (iterate_over_objfiles_in_search_order): New gdbarch method.
4694 * gdbarch.h, gdbarch.c: Regenerate.
4695 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4696 Add declaration.
4697 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4698 New function.
4699 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4700 out of lookup_symbol_aux_symtabs.
4701 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4702 call to lookup_symbol_aux_objfile.
4703 (struct global_sym_lookup_data): New type.
4704 (lookup_symbol_global_iterator_cb): New function.
4705 (lookup_symbol_global): Search for symbol using
4706 gdbarch_iterate_over_objfiles_in_search_order and
4707 lookup_symbol_global_iterator_cb.
4708 * findvar.c (struct minsym_lookup_data): New type.
4709 (minsym_lookup_iterator_cb): New function.
4710 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4711 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4712 and minsym_lookup_iterator_cb.
4713
67ff19f7
JB
47142012-06-05 Joel Brobecker <brobecker@adacore.com>
4715
4716 Revert the following patch:
4717 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4718 try locating the symbol in the symbol's own objfile first, before
4719 extending the search to all objfiles.
4720 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4721 out of lookup_symbol_aux_symtabs.
4722 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4723 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4724 Do not search EXCLUDE_OBJFILE.
4725 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4726 (lookup_symbol_global): Search for matches in the block's objfile
4727 first, before searching all other objfiles.
4728
ccab2054
JB
47292012-06-05 Joel Brobecker <brobecker@adacore.com>
4730
4731 * breakpoint.c (find_condition_and_thread): Stop parsing
4732 as soon as the first invalid keyword is found.
4733
e23d4a9c
JB
47342012-06-05 Joel Brobecker <brobecker@adacore.com>
4735
4736 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4737
70160166
JB
47382012-06-05 Joel Brobecker <brobecker@adacore.com>
4739
4740 * config/djgpp/djcheck.sh: Add copyright header.
4741
399501a5
JB
47422012-06-05 Joel Brobecker <brobecker@adacore.com>
4743
4744 * copyright.py (update_files, main): Fix path to update-copyright
4745 script.
4746
3770a159
JB
47472012-06-05 Joel Brobecker <brobecker@adacore.com>
4748
4749 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4750 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4751 for which a reminder to update by hand is printed.
4752
4aad0dfc
DE
47532012-06-04 Doug Evans <dje@google.com>
4754
4755 * buildsym.c (make_blockvector): Add comment.
4756
1f8cf220
PA
47572012-06-04 Pedro Alves <palves@redhat.com>
4758
4759 * arch-utils.c (default_gdb_signal_from_target): Delete.
4760 * arch-utils.h (default_gdb_signal_from_target): Delete.
4761 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4762 gdbarch_gdb_signal_from_target_p.
4763 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4764 predicate).
4765 * gdbarch.h: Regenerate.
4766 * gdbarch.c: Regenerate.
4767
86b49880
PA
47682012-06-04 Pedro Alves <palves@redhat.com>
4769
4770 * gdbarch.sh (gdb_signal_from_target): Mention that the
4771 implementation of the method must be host independent.
4772 * gdbarch.h: Regenerate.
4773
fe78531d
JK
47742012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4775
4776 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4777 parameters.
4778 (target_read_memory_bfd): New function.
4779 (symbol_file_add_from_memory): Use it.
4780
d790cf0a
DE
47812012-06-03 Doug Evans <dje@google.com>
4782
78e5175a
DE
4783 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4784 of primary symtab.
4785 (basic_lookup_transparent_type): Ditto.
4786
d790cf0a
DE
4787 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4788 (ALL_PRIMARY_SYMTABS): Use it.
4789 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4790 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4791 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4792 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4793 (basic_lookup_transparent_type): Ditto.
4794
c6e5ee5e
SDJ
47952012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4796
4797 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4798 it to optimize resolution of demangled name.
4799
a68ffae9
JK
48002012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4801
4802 * configure.ac (development): Define new variable.
4803 Call AC_CHECK_LIB for mcheck if $development.
4804 (ERROR_ON_WARNING): Enable it by default only if $development.
4805 * config.in: Regenerate.
4806 * configure: Regenerate.
4807
5299c1c4
JK
48082012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4809
4810 * target.c (target_read_memory): Make LEN argument as size_t.
4811 * target.h (target_read_memory): Likewise.
4812
48132012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4814
4815 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4816
0c56f59b
EBM
48172012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4818
4819 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4820 BookE interface for PowerPC server processors if not available
4821 in the Linux Kernel.
4822
71bdabee
KS
48232012-05-31 Keith Seitz <keiths@redhat.com>
4824
4825 * linespec.c (decode_objc): Add cleanup to free
4826 INFO.FILE_SYMTABS.
4827 (find_linespec_symbols): Add cleanup to free CLASSES.
4828 * symfile.c (find_separate_debug_file_by_debuglink): Add
4829 cleanup to free DEBUGLINK.
4830 * ui-out.c (clear_header_list): No need to check if
4831 HEADER_NEXT.COLHDR is NULL.
4832 Free HEADER_NEXT.COL_NAME.
4833
acbd605d
MGD
48342012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4835
4836 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4837 warning.
4838
65662cde
PA
48392012-05-30 Jeff Kenton <jkenton@tilera.com>
4840
4841 * configure.host (gdb_host_cpu): Handle tilegx*.
4842 (gdb_host): Handle tilegx-*-linux*.
4843 * tilegx-linux-nat.c: New file.
4844 * config/tilegx/linux.mh: New file.
4845
ade64f0e
PA
48462012-05-30 Jeff Kenton <jkenton@tilera.com>
4847
4848 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4849 tilegx-linux-tdep.o.
4850 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4851 tilegx-linux-tdep.c.
4852 * configure.tgt: Handle tilegx-*-linux*.
4853 * tilegx-tdep.h: New file.
4854 * tilegx-tdep.c: New file.
4855 * tilegx-linux-tdep.c: New file.
4856 * regformats/reg-tilegx.dat: New file.
4857
bb08bdbd
EBM
48582012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4859
4860 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4861 accounting of hw watchpoints on ppc.
4862
ebd86fb5
TJB
48632012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4864
4865 * source.c (openp): Expand tilde in path entries.
4866
0a0edcd5
DE
48672012-05-29 Doug Evans <dje@google.com>
4868
98cc87bd
DE
4869 * buildsym.c (block_compar): Fix comment.
4870 (end_symtab): Fix and clarify some comments.
4871
0a0edcd5
DE
4872 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4873 cleanup_undefined_types.
4874 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4875 All callers updated.
4876
6f0c7050
TT
48772012-05-29 Tom Tromey <tromey@redhat.com>
4878
4879 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4880 fails.
4881 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4882 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4883 fails.
4884 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4885 fails.
4886
ec95993c
TG
48872012-05-29 Tristan Gingold <gingold@adacore.com>
4888
4889 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4890 (struct darwin_info): ... New struct.
4891 (solib_darwin_pspace_data): New variable.
4892 (darwin_pspace_data_cleanup): New function.
4893 (get_darwin_info): Likewise.
4894 (darwin_dyld_version_ok, darwin_load_image_infos)
4895 (darwin_solib_get_all_image_info_addr_at_init)
4896 (darwin_solib_read_all_image_info_addr): Add info argument.
4897 Adjust code.
4898 (darwin_current_sos): Use per pspace structure.
4899 (darwin_solib_create_inferior_hook): Likewise.
4900 (darwin_clear_solib): Likewise.
4901 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4902
ae25568b
PA
49032012-05-28 Pedro Alves <palves@redhat.com>
4904
4905 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4906 block that uses them. Clear ecss before handling each event.
4907
0c5bf5a9
JK
49082012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4909
4910 * solib-svr4.c (svr4_current_sos): New comment on
4911 svr4_current_sos_via_xfer_libraries fall back.
4912
bfb05775
JK
49132012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4914
4915 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4916 it as a fallback for TYPE_IS_OPAQUE.
4917 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4918 symbols for lookup_symbol.
4919
685b1105
JK
49202012-05-24 John Steele Scott <toojays@toojays.net>
4921
4922 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4923 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4924 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4925 (check_producer): ... this new function, which also checks for ICC
4926 and caches the result.
4927 (producer_is_icc): New function.
4928 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4929 producer was ICC.
4930
22203bbf
PA
49312012-05-24 Pedro Alves <palves@redhat.com>
4932
4933 PR gdb/7205
4934
4935 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4936 (default_gdb_signal_to_target): ... this. Add comment.
4937 (default_gdb_signal_from_host): Rename to ...
4938 (default_gdb_signal_from_target): ... this. Add comment.
4939 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4940 (default_gdb_signal_to_target): ... this.
4941 (default_gdb_signal_from_host): Rename to ...
4942 (default_gdb_signal_from_target): ... this.
4943 * corelow.c (core_open): Adjust to naming change. Replace comment.
4944 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4945 (gdb_signal_from_target): ... this. Adjust to
4946 default_gdb_signal_from_host naming change. Extend comment.
4947 (gdb_signal_to_host): Rename to ...
4948 (gdb_signal_to_target): ... this. Adjust to
4949 default_gdb_signal_to_host naming change.
4950 * gdbarch.h, gdbarch.c: Renegerate.
4951
a493e3e2
PA
49522012-05-24 Pedro Alves <palves@redhat.com>
4953
4954 PR gdb/7205
4955
f782ad9b 4956 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4957
2ea28649
PA
49582012-05-24 Pedro Alves <palves@redhat.com>
4959
4960 PR gdb/7205
4961
4962 Replace target_signal with gdb_signal throughout.
4963
b09846a9
PA
49642012-05-24 Pedro Alves <palves@redhat.com>
4965
4966 PR tui/14159
4967
4968 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4969 string, instead of reusing the va_list argument.
4970
e77c107e
TT
49712012-05-24 Tom Tromey <tromey@redhat.com>
4972
4973 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4974 Remove.
4975
9fccedf7
DE
49762012-05-23 Doug Evans <dje@google.com>
4977
d50bd42b
DE
4978 * symtab.c (search_symbols): Formatting fixes.
4979 (print_symbol_info): Formatting fixes.
4980
9fccedf7
DE
4981 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4982 int64_t change to leb128 API.
4983 (read_encoded_value, decode_frame_entry_1): Ditto.
4984 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4985 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4986 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4987 (execute_stack_op): Ditto.
4988 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4989 (safe_read_uleb128, safe_read_sleb128): Ditto.
4990 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4991 (dwarf2_compile_expr_to_ax): Ditto.
4992 (locexpr_describe_location_piece): Ditto.
4993 (disassemble_dwarf_expression): Ditto.
4994 (locexpr_describe_location_1): Ditto.
4995
f3e0e960
SS
49962012-05-23 Stan Shebs <stan@codesourcery.com>
4997 Kwok Cheung Yeung <kcy@codesourcery.com>
4998
4999 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5000 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5001 (mi-cmd-info.o): New rule.
5002 * osdata.h (info_osdata_command): New declaration.
5003 * osdata.c (info_osdata_command): Change to non-static.
5004 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5005 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5006 * mi/mi-cmd-info.c: New file.
5007
c51fe631
DE
50082012-05-23 Doug Evans <dje@google.com>
5009
71cddcc1
DE
5010 * symtab.c (search_symbols): Pass NULL for file_matcher to
5011 expand_symtabs_matching if there are no files to match.
5012
c51fe631
DE
5013 * gdbtypes.c (lookup_typename): Simplify.
5014
a79378d4
PA
50152012-05-23 Pedro Alves <palves@redhat.com>
5016
5017 * arch-utils.h (default_target_signal_to_host): Delete.
5018 * arch-utils.c (default_target_signal_to_host): Delete.
5019 * gdbarch.sh (target_signal_to_host): Remove.
5020 * gdbarch.h, gdbarch.c: Regenerate.
5021
f664829e
DE
50222012-05-22 Doug Evans <dje@google.com>
5023
5024 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5025 "const gdb_byte *".
5026 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5027 (execute_cfa_program): Update to match API of leb128 functions.
5028 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5029 "const gdb_byte *".
5030 (read_unsigned_leb128, read_signed_leb128): Delete.
5031 (read_initial_length): Change type of buf argument to
5032 "const gdb_byte *".
5033 (read_encoded_value): Update to match API of leb128 functions.
5034 (decode_frame_entry): Change result to "const gdb_byte *", and
5035 similarly for "start" parameter.
5036 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5037 (dwarf2_build_frame_info): Change local frame_ptr to
5038 "const gdb_byte *".
5039 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5040 read_uleb128, read_sleb128. All callers updated.
5041 (safe_skip_leb128): New function.
5042 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5043 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5044 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5045 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5046 read_uleb128, read_sleb128.
5047 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5048 (execute_stack_op): Update to match API of leb128 functions.
5049 * dwarf2expr.h: #include "leb128.h".
5050 (read_uleb128, read_sleb128): Delete.
5051 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5052 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5053 * dwarf2loc.c (debug_loc_kind): New enum.
5054 (decode_debug_loc_addresses): New function.
5055 (decode_debug_loc_dwo_addresses): New function.
5056 (dwarf2_find_location_expression): Rewrite.
5057 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5058 (locexpr_describe_location_piece): Ditto.
5059 (disassemble_dwarf_expression): Ditto.
5060 (locexpr_describe_location_1): Ditto.
5061 (loclist_describe_location): Rewrite.
5062 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5063 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5064 (dwarf2_section_buffer_overflow_complaint): Renamed from
5065 dwarf2_macros_too_long_complaint. All callers updated.
5066 (skip_leb128): Delete.
5067 (init_cu_die_reader): Initialize reader->buffer_end.
5068 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5069 (skip_form_bytes): New arg buffer_end. All callers updated.
5070 Replace call to skip_leb128 with gdb_skip_leb128.
5071 (skip_unknown_opcode): New arg mac_end. All callers updated.
5072 (fill_in_loclist_baton): Initialize baton->from_dwo.
5073
837a1b32
MR
50742012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5075
5076 * mips-linux-nat.c (mips_linux_read_description): Use a more
5077 verbose error message.
5078
d0e64392
MR
50792012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5080
5081 * NEWS: Add MIPS/Linux DSP support.
5082 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5083 (SIGCONTEXT_DSPCTL): New macro.
5084 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5085 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5086 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5087 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5088 (N64_SIGCONTEXT_HI3): Likewise.
5089 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5090 (N64_SIGCONTEXT_LO3): Likewise.
5091 (N64_SIGCONTEXT_DSPCTL): Likewise.
5092 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5093 (mips_linux_o32_sigframe_init): Handle DSP registers.
5094 (mips_linux_n32n64_sigframe_init): Likewise.
5095
8bea7ed1
PM
50962012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5097
5098 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5099 call to abort.
5100
dab06dbe
PA
51012012-05-22 Pedro Alves <palves@redhat.com>
5102
5103 * target.h (store_waitstatus): Move declaration ...
5104 * inf-child.h (store_waitstatus): ... here.
5105 * target.c: Move inclusion of gdb_wait.h, and ...
5106 (store_waitstatus): ... this ...
5107 * inf-child.c: ... here.
5108 * linux-nat.c: Include inf-child.h.
5109 * rs6000-nat.c: Include inf-child.h.
5110 * spu-linux-nat.c: Include inf-child.h.
5111
43011e52
PM
51122012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5113
5114 * tracepoint.c (start_tracing): Add missing i18n markup.
5115 (stop_tracing, set_trace_user): Ditto.
5116 (set_trace_notes, set_trace_stop_notes): Ditto.
5117
b1af9e97
TT
51182012-05-21 Tom Tromey <tromey@redhat.com>
5119
5120 PR c++/7173:
5121 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5122 types.
5123 * value.h (value_cast_pointers): Update.
5124 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5125 (value_cast): Update.
5126 (update_search_result): New function.
5127 (do_search_struct_field): New, from search_struct_field. Check
5128 for ambiguous results.
5129 (search_struct_field): Rewrite.
5130 * infcall.c (value_arg_coerce): Update.
5131 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5132 value_cast_pointers.
5133 * ada-lang.c (ada_convert_actual): Update.
5134
e9e5e6b3
TT
51352012-05-21 Tom Tromey <tromey@redhat.com>
5136
5137 * macroexp.c (macro_stringify): Terminate the string.
5138
1564a261
JK
51392012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5142 Describe it.
5143 * auto-load.c (auto_load_expand_dir_vars): New function.
5144 (auto_load_safe_path_vec_update): Use it, remove the
5145 substitute_path_component call thanks to it.
5146 (auto_load_objfile_script): Remove the debug_file_directory processing.
5147 Use auto_load_expand_dir_vars, remove the substitute_path_component
5148 call thanks to it.
5149 * configure: Regenerate.
5150 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5151 path. Escape $ also for $debugdir.
5152 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5153 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5154
a3ec0bb1
DE
51552012-05-20 Doug Evans <dje@google.com>
5156
5157 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5158 before use. Check for symtab->includes == NULL before scanning it.
5159
d467df4e
MR
51602012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5161
5162 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5163
4cc0665f
MR
51642012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5165
5166 * NEWS: Add microMIPS support and "set mips compression",
5167 "show mips compression" commands.
5168 * mips-tdep.h (mips_isa): New enum.
5169 (gdbarch_tdep): Add mips_isa.
5170 (mips_pc_is_mips16): Update prototype.
5171 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5172 * mips-tdep.c (mips_compression_mips16): New variable.
5173 (mips_compression_micromips): Likewise.
5174 (mips_compression_strings): Likewise.
5175 (mips_compression_string): Likewise.
5176 (is_mips16_isa, is_micromips_isa): New functions.
5177 (is_mips16_addr): Rename to...
5178 (is_compact_addr): ... this.
5179 (unmake_mips16_addr): Likewise to...
5180 (unmake_compact_addr): ... this.
5181 (make_mips16_addr): Likewise to...
5182 (make_compact_addr): ... this.
5183 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5184 functions.
5185 (mips_elf_make_msymbol_special): Handle microMIPS code.
5186 (msymbol_is_special): Rename to...
5187 (msymbol_is_mips16): ... this.
5188 (mips_make_symbol_special, mips_pc_is_mips16): Update
5189 accordingly.
5190 (msymbol_is_mips, msymbol_is_micromips): New functions.
5191 (mips16_to_32_reg): Rename to...
5192 (mips_reg3_to_reg): ... this.
5193 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5194 (mips_pc_isa): Likewise.
5195 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5196 code.
5197 (mips_fetch_instruction): Pass return status instead of printing
5198 an error message if requested. Handle microMIPS code. Bail out
5199 on an invalid ISA.
5200 (micromips_op): New macro.
5201 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5202 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5203 (b6s4_op, b7s3_reg): Likewise.
5204 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5205 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5206 (mips_insn_size): New function.
5207 (mips32_next_pc): Update mips_fetch_instruction call.
5208 (micromips_relative_offset7): New function.
5209 (micromips_relative_offset10): Likewise.
5210 (micromips_relative_offset16): Likewise.
5211 (micromips_pc_insn_size): Likewise.
5212 (micromips_bc1_pc): Likewise.
5213 (micromips_next_pc): Likewise.
5214 (unpack_mips16): Update mips_fetch_instruction call.
5215 (extended_mips16_next_pc): Update according to change to
5216 mips16_to_32_reg.
5217 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5218 code.
5219 (mips16_scan_prologue): Update mips_fetch_instruction call.
5220 Update according to change to mips16_to_32_reg.
5221 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5222 (mips_insn16_frame_base_sniffer): Likewise.
5223 (micromips_decode_imm9): New function.
5224 (micromips_scan_prologue): Likewise.
5225 (mips_micro_frame_cache): Likewise.
5226 (mips_micro_frame_this_id): Likewise.
5227 (mips_micro_frame_prev_register): Likewise.
5228 (mips_micro_frame_sniffer): Likewise.
5229 (mips_micro_frame_unwind): New variable.
5230 (mips_micro_frame_base_address): New function.
5231 (mips_micro_frame_base): New variable.
5232 (mips_micro_frame_base_sniffer): New function.
5233 (mips32_scan_prologue): Update mips_fetch_instruction call.
5234 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5235 rather than for MIPS16.
5236 (mips_insn32_frame_base_sniffer): Likewise.
5237 (mips_addr_bits_remove): Handle microMIPS code.
5238 (deal_with_atomic_sequence): Rename to...
5239 (mips_deal_with_atomic_sequence): ... this. Update the type
5240 of the variable used to hold an instruction. Remove the ISA bit
5241 check. Update mips_fetch_instruction call.
5242 (micromips_deal_with_atomic_sequence): New function.
5243 (deal_with_atomic_sequence): Likewise.
5244 (mips_about_to_return): Handle microMIPS code. Update
5245 mips_fetch_instruction call.
5246 (heuristic_proc_start): Check for the standard MIPS ISA rather
5247 than for MIPS16. Update mips_pc_is_mips16 and
5248 mips_fetch_instruction calls. Handle microMIPS code.
5249 (mips_push_dummy_code): Handle microMIPS code.
5250 (mips_eabi_push_dummy_call): Likewise.
5251 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5252 (mips_o64_push_dummy_call): Handle microMIPS code.
5253 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5254 (is_delayed): Remove function.
5255 (mips_single_step_through_delay): Replace the call to is_delayed
5256 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5257 Handle microMIPS code.
5258 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5259 microMIPS code.
5260 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5261 call.
5262 (micromips_in_function_epilogue_p): New function.
5263 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5264 call.
5265 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5266 Handle microMIPS.
5267 (gdb_print_insn_mips): Likewise.
5268 (mips_breakpoint_from_pc): Likewise.
5269 (mips_remote_breakpoint_from_pc): New function.
5270 (mips32_instruction_has_delay_slot): Simplify making use of the
5271 updated mips_fetch_instruction interface.
5272 (micromips_instruction_has_delay_slot): New function.
5273 (mips16_instruction_has_delay_slot): Simplify making use of the
5274 updated mips_fetch_instruction interface.
5275 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5276 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5277 calls. Handle microMIPS code.
5278 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5279 (mips_skip_trampoline_code): Handle microMIPS code.
5280 (global_mips_compression): New function.
5281 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5282 file flags. Register the microMIPS remote breakpoint handler
5283 and heuristic frame unwinder.
5284 (show_mips_compression): New function.
5285 (_initialize_mips_tdep): Add the "set mips compression" and
5286 "show mips compression" commands.
5287
22e048c9
SDJ
52882012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5289
5290 * ada-lang.c:
5291 * ada-tasks.c:
5292 * ada-varobj.c:
5293 * amd64-darwin-tdep.c:
5294 * arm-symbian-tdep.c:
5295 * arm-tdep.c:
5296 * avr-tdep.c:
5297 * ax-gdb.c:
5298 * bfin-linux-tdep.c:
5299 * breakpoint.c:
5300 * c-valprint.c:
5301 * cli/cli-cmds.c:
5302 * coffread.c:
5303 * cp-support.c:
5304 * cris-tdep.c:
5305 * dwarf2-frame-tailcall.c:
5306 * dwarf2-frame.c:
5307 * dwarf2expr.c:
5308 * dwarf2loc.c:
5309 * dwarf2read.c:
5310 * elfread.c:
5311 * eval.c:
5312 * expprint.c:
5313 * f-valprint.c:
5314 * frv-tdep.c:
5315 * h8300-tdep.c:
5316 * hppa-hpux-tdep.c:
5317 * hppa-tdep.c:
5318 * hppanbsd-tdep.c:
5319 * i386-nto-tdep.c:
5320 * i386-tdep.c:
5321 * i387-tdep.c:
5322 * ia64-tdep.c:
5323 * jit.c:
5324 * linespec.c:
5325 * linux-tdep.c:
5326 * lm32-tdep.c:
5327 * m2-valprint.c:
5328 * m32c-tdep.c:
5329 * m32r-rom.c:
5330 * m32r-tdep.c:
5331 * m68k-tdep.c:
5332 * m68klinux-tdep.c:
5333 * mi/mi-main.c:
5334 * microblaze-tdep.c:
5335 * mips-linux-tdep.c:
5336 * mips-tdep.c:
5337 * mn10300-tdep.c:
5338 * p-valprint.c:
5339 * parse.c:
5340 * ppc-linux-tdep.c:
5341 * ppc-sysv-tdep.c:
5342 * printcmd.c:
5343 * python/py-finishbreakpoint.c:
5344 * python/py-inferior.c:
5345 * python/py-infthread.c:
5346 * python/py-type.c:
5347 * python/python.c:
5348 * remote-fileio.c:
5349 * remote-m32r-sdi.c:
5350 * remote-mips.c:
5351 * reverse.c:
5352 * rl78-tdep.c:
5353 * rs6000-aix-tdep.c:
5354 * rs6000-tdep.c:
5355 * s390-tdep.c:
5356 * score-tdep.c:
5357 * sh64-tdep.c:
5358 * skip.c:
5359 * solib-darwin.c:
5360 * solib-dsbt.c:
5361 * solib-frv.c:
5362 * sparc-tdep.c:
5363 * spu-multiarch.c:
5364 * spu-tdep.c:
5365 * stack.c:
5366 * symfile.c:
5367 * symtab.c:
5368 * tic6x-tdep.c:
5369 * tracepoint.c:
5370 * v850-tdep.c:
5371 * valarith.c:
5372 * valprint.c:
5373 * value.c:
5374 * xcoffread.c:
5375 * xtensa-tdep.c:
5376 * ada-lang.c:
5377 * ada-tasks.c:
5378 * ada-varobj.c:
5379 * amd64-darwin-tdep.c:
5380 * arm-symbian-tdep.c:
5381 * arm-tdep.c: Delete unused variables.
5382
aff139ff
JK
53832012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5384
5385 Rename $ddir to $datadir.
5386 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5387 * auto-load.c (auto_load_safe_path_vec_update)
5388 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5389 * configure: Regenerate.
5390 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5391 Likewise. Remove the 'use $ddir' help string.
5392
f7bfa992
JK
53932012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5396 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5397
9cb709b6
TT
53982012-05-18 Tom Tromey <tromey@redhat.com>
5399
5400 PR exp/13907:
5401 * valprint.h (struct value_print_options) <symbol_print>: New
5402 field.
5403 * valprint.c (user_print_options): Add default for symbol_print.
5404 (show_symbol_print): New function.
5405 (generic_val_print): Respect symbol_print.
5406 (_initialize_valprint): Add "print symbol" setting.
5407 * f-valprint.c (f_val_print): Respect symbol_print.
5408 * c-valprint.c (c_val_print): Respect symbol_print.
5409 * NEWS: Update.
5410 * printcmd.c (print_address_symbolic): Return int. Ignore some
5411 zero-size symbols.
5412 (print_address_demangle): Return int.
5413 * defs.h: (print_address_symbolic): Return int.
5414 * value.h (print_address_demangle): Return int.
5415
b012acdd
TT
54162012-05-18 Tom Tromey <tromey@redhat.com>
5417
5418 * valprint.c (val_print_string): Don't print leading space.
5419 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5420 print space before string or vtbl.
5421 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5422 before string.
5423 * jv-valprint.c (java_value_print): Print space before string.
5424 * go-valprint.c (print_go_string): Print space before string.
5425 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5426 space before string.
5427 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5428 space before string or vtbl.
5429 * auxv.c (fprint_target_auxv): Print space after address.
5430
1d51a733
TT
54312012-05-18 Tom Tromey <tromey@redhat.com>
5432
5433 * printcmd.c (print_address_demangle): Remove special case for 0.
5434
edf0c1b7
TT
54352012-05-18 Tom Tromey <tromey@redhat.com>
5436
5437 * printcmd.c (print_address_demangle): Add 'opts' argument.
5438 * p-valprint.c (pascal_val_print): Update.
5439 * jv-valprint.c (java_val_print): Update.
5440 * value.h: Update.
5441 * valprint.c (generic_val_print): Update.
5442 (print_function_pointer_address): Add 'options' argument. Remove
5443 'addressprint' argument. Update.
5444 * m2-valprint.c (print_unpacked_pointer): Update.
5445 * gnu-v3-abi.c (print_one_vtable): Update.
5446 (gnuv3_print_method_ptr): Update.
5447 * f-valprint.c (f_val_print): Update.
5448 * cp-valprint.c (cp_print_value_fields): Update.
5449 * valprint.h (print_function_pointer_address): Update.
5450 * c-valprint.c (c_val_print): Update.
5451
9703b513
TT
54522012-05-18 Tom Tromey <tromey@redhat.com>
5453
5454 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5455 directly corresponding to the found psymtab.
5456 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5457 (dw2_find_pc_sect_symtab): Use it.
5458 * block.h (blockvector_contains_pc): Declare.
5459 * block.c (find_block_in_blockvector): New function.
5460 (blockvector_for_pc_sect): Use it.
5461 (blockvector_contains_pc): New function.
5462
5a439849
MR
54632012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5464
5465 * mips-tdep.h (mips_write_pc): New prototype.
5466 * mips-tdep.c (mips_write_pc): Make external, add description.
5467 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5468 add description.
5469
8376de04
MR
54702012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5471
5472 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5473 mips_regnum->pc.
5474 (mips_unwind_pc, mips_write_pc): Likewise.
5475 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5476 gdbarch_read_pc.
5477
d3581e61
JB
54782012-05-17 Joel Brobecker <brobecker@adacore.com>
5479
5480 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5481 proc_warn, proc_error, proc_get_status, proc_flags,
5482 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5483 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5484 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5485 proc_stop_process, proc_wait_for_stop, proc_run_process,
5486 proc_set_traced_signals, proc_set_traced_faults,
5487 proc_set_traced_sysentry, proc_set_traced_sysexit,
5488 proc_set_held_signals, proc_get_held_signals,
5489 proc_get_traced_signals, proc_get_traced_faults,
5490 proc_get_traced_sysentry, proc_get_traced_sysexit,
5491 proc_clear_current_fault, proc_set_current_signal,
5492 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5493 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5494 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5495 proc_get_current_thread, proc_get_current_thread,
5496 proc_get_current_thread, proc_update_threads,
5497 proc_update_threads, proc_update_threads, proc_update_threads,
5498 proc_iterate_over_threads, procfs_find_new_threads,
5499 procfs_pid_to_str): Make static. Remove advance declaration.
5500 (proc_cursig): Make static. Conditionalized defintion on
5501 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5502 (proc_syscall, proc_set_kill_on_last_close,
5503 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5504 proc_get_pending_signals, proc_get_signal_actions,
5505 proc_trace_signal, proc_ignore_signal): Delete.
5506
81b9b86e
SDJ
55072012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5508
5509 * coffread.c (cs_section_address): Passing proper argument for
5510 `bfd_get_section_vma'.
5511 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5512 `bfd_get_section_flags'.
5513 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5514 `bfd_get_section_vma'.
5515
abc9d0dc
TT
55162012-05-16 Tom Tromey <tromey@redhat.com>
5517
5518 PR macros/13205:
5519 * macrotab.h: (macro_define_special): Declare.
5520 (enum macro_special_kind): New.
5521 (struct macro_definition) <argc, replacement>: Update comments.
5522 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5523 (macro_define_object_internal): New function.
5524 (macro_define_object): Use it.
5525 (macro_define_special): New function.
5526 (fixup_definition): New function.
5527 (macro_lookup_definition, foreach_macro_in_scope)
5528 (foreach_macro): Use fixup_definition.
5529 * macroexp.h (macro_stringify): Declare.
5530 * macroexp.c (free_buffer_return_text): New function.
5531 (stringify): Constify "arg".
5532 (macro_stringify): New function.
5533 * dwarf2read.c (macro_start_file): Call macro_define_special.
5534
6a3a010b 55352012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5536 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5537
5538 * breakpoint.h (bp_location): Add related_address member.
5539 * inferior.h (get_return_value): Take a pointer to struct value
5540 instead of struct type for the function requested.
5541 * value.h (using_struct_return): Likewise.
5542 * gdbarch.sh (return_value): Take a pointer to struct value
5543 instead of struct type for the function requested.
5544 * breakpoint.c (set_breakpoint_location_function): Initialize
5545 related_address for bp_gnu_ifunc_resolver breakpoints.
5546 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5547 requested function's address to gdbarch_return_value.
5548 * eval.c (evaluate_subexp_standard): Pass the requested
5549 function's address to using_struct_return.
5550 * infcall.c (call_function_by_hand): Pass the requested
5551 function's address to using_struct_return and
5552 gdbarch_return_value.
5553 * infcmd.c (get_return_value): Take a pointer to struct value
5554 instead of struct type for the function requested.
5555 (print_return_value): Update accordingly.
5556 (finish_command_continuation): Likewise.
5557 * stack.c (return_command): Pass the requested function's
5558 address to using_struct_return and gdbarch_return_value.
5559 * value.c (using_struct_return): Take a pointer to struct value
5560 instead of struct type for the function requested. Pass the
5561 requested function's address to gdbarch_return_value.
5562 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5563 New function_value member, replacing function_type.
5564 (bpfinishpy_dealloc): Update accordingly.
5565 (bpfinishpy_pre_stop_hook): Likewise.
5566 (bpfinishpy_init): Likewise. Record the requested function's
5567 address.
5568 * mips-tdep.c (mips_fval_reg): New enum.
5569 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5570 words put in GP registers.
5571 (mips_o64_push_dummy_call): Update a comment.
5572 (mips_o32_return_value): Take a pointer to struct value instead
5573 of struct type for the function requested and use it to check if
5574 using the MIPS16 calling convention. Return the designated
5575 general purpose registers for floating-point values returned in
5576 MIPS16 mode.
5577 (mips_o64_return_value): Likewise.
5578 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5579 (ppc_sysv_abi_broken_return_value): Likewise.
5580 (ppc64_sysv_abi_return_value): Likewise.
5581 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5582 value instead of struct type for the function requested.
5583 * amd64-tdep.c (amd64_return_value): Likewise.
5584 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5585 * arm-tdep.c (arm_return_value): Likewise.
5586 * avr-tdep.c (avr_return_value): Likewise.
5587 * bfin-tdep.c (bfin_return_value): Likewise.
5588 * cris-tdep.c (cris_return_value): Likewise.
5589 * frv-tdep.c (frv_return_value): Likewise.
5590 * h8300-tdep.c (h8300_return_value): Likewise.
5591 (h8300h_return_value): Likewise.
5592 * hppa-tdep.c (hppa32_return_value): Likewise.
5593 (hppa64_return_value): Likewise.
5594 * i386-tdep.c (i386_return_value): Likewise.
5595 * ia64-tdep.c (ia64_return_value): Likewise.
5596 * iq2000-tdep.c (iq2000_return_value): Likewise.
5597 * lm32-tdep.c (lm32_return_value): Likewise.
5598 * m32c-tdep.c (m32c_return_value): Likewise.
5599 * m32r-tdep.c (m32r_return_value): Likewise.
5600 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5601 * m68k-tdep.c (m68k_return_value): Likewise.
5602 (m68k_svr4_return_value): Likewise.
5603 * m88k-tdep.c (m88k_return_value): Likewise.
5604 * mep-tdep.c (mep_return_value): Likewise.
5605 * microblaze-tdep.c (microblaze_return_value): Likewise.
5606 * mn10300-tdep.c (mn10300_return_value): Likewise.
5607 * moxie-tdep.c (moxie_return_value): Likewise.
5608 * mt-tdep.c (mt_return_value): Likewise.
5609 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5610 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5611 (ppc_sysv_abi_broken_return_value): Likewise.
5612 (ppc64_sysv_abi_return_value): Likewise.
5613 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5614 * rl78-tdep.c (rl78_return_value): Likewise.
5615 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5616 * rx-tdep.c (rx_return_value): Likewise.
5617 * s390-tdep.c (s390_return_value): Likewise.
5618 * score-tdep.c (score_return_value): Likewise.
5619 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5620 (sh_return_value_fpu): Likewise.
5621 * sh64-tdep.c (sh64_return_value): Likewise.
5622 * sparc-tdep.c (sparc32_return_value): Likewise.
5623 * sparc64-tdep.c (sparc64_return_value): Likewise.
5624 * spu-tdep.c (spu_return_value): Likewise.
5625 * tic6x-tdep.c (tic6x_return_value): Likewise.
5626 * v850-tdep.c (v850_return_value): Likewise.
5627 * vax-tdep.c (vax_return_value): Likewise.
5628 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5629 * xtensa-tdep.c (xtensa_return_value): Likewise.
5630 * gdbarch.c: Regenerate.
5631 * gdbarch.h: Regenerate.
5632
29ca12b3
TT
56332012-05-15 Tom Tromey <tromey@redhat.com>
5634
5635 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5636
588ae58c
JB
56372012-05-15 Joel Brobecker <brobecker@adacore.com>
5638
5639 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5640 of command in two error message.
5641
855a6e68
JB
56422012-05-15 Joel Brobecker <brobecker@adacore.com>
5643
5644 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5645
d634f2de
JB
56462012-05-15 Joel Brobecker <brobecker@adacore.com>
5647
5648 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5649
9cc815f5
JK
56502012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5651
5652 * NEWS (show auto-load scripts-directory): Add forgotten command.
5653
6a609e58
JK
56542012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5657 parameters.
5658
ac1438b5
L
56592012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5660
5661 * amd64-tdep.c: Include features/i386/x32.c and
5662 features/i386/x32-avx.c.
5663 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5664 initialize_tdesc_x32_avx.
5665
e7e0cddf
SS
56662012-05-14 Stan Shebs <stan@codesourcery.com>
5667
5668 Add dynamic printf.
5669 * breakpoint.h (enum bptype): New type bp_dprintf.
5670 (struct breakpoint): New field extra_string.
5671 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5672 (create_breakpoint): Add extra_string arg.
5673 * breakpoint.c (dprintf_breakpoint_ops): New.
5674 (is_breakpoint): Add bp_dprintf.
5675 (bpstat_what): Add dprintf case.
5676 (bptype_string): Ditto.
5677 (print_one_breakpoint_location): Ditto.
5678 (init_bp_location): Ditto.
5679 (bkpt_print_mention): Ditto.
5680 (dprintf_style_enums): New array.
5681 (dprintf_style): New global.
5682 (dprintf_function): New global.
5683 (dprintf_channel): New global.
5684 (update_dprintf_command_list): New function.
5685 (update_dprintf_commands): New function.
5686 (init_breakpoint_sal): Add extra_string argument, handle it.
5687 (create_breakpoint_sal): Add extra_string argument.
5688 (create_breakpoints_sal): Add extra_string argument, update callers.
5689 (find_condition_and_thread): Add extra argument.
5690 (create_breakpoint): Add extra_string argument, record it.
5691 (dprintf_command): New function.
5692 (break_command_1): Add arg to create_breakpoint call.
5693 (handle_gnu_v3_exceptions): Ditto.
5694 (trace_command): Ditto.
5695 (ftrace_command): Ditto.
5696 (strace_command): Ditto.
5697 (bkpt_print_mention): Add dprintf case.
5698 (create_breakpoint_sal_default): Add extra_string argument.
5699 (_initialize_breakpoint): Add new commands.
5700 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5701 * python/py-breakpoint.c (bppy_init): Ditto.
5702 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5703
8ae38c14
MR
57042012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5705
5706 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5707
9f676e66
SCR
57082012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5709
5710 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5711 unsigned long long.
5712
7efc75aa
SCR
57132012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5714
5715 Add a new function gdb.find_pc_line to the Python API.
5716 * NEWS (Python Scripting): Add entry about the new function.
5717 * python/python.c (gdbpy_find_pc_line): New function which
5718 implements gdb.find_pc_line.
5719 (GdbMethods): Add entry for the new function.
5720
70af3797
PA
57212012-05-12 Pedro Alves <palves@redhat.com>
5722
5723 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5724 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5725
06da564e
EZ
57262012-05-12 Eli Zaretskii <eliz@gnu.org>
5727
5728 * inferior.c: Include completer.h
5729 (initialize_inferiors): Set completer of add-inferior to
5730 filename_completer.
5731
0288cee2
L
57322012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5733
5734 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5735 gdbarch_ptr_bit for x32 core dump.
5736
f6537a2c
L
57372012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5738
5739 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5740 and features/i386/x32-avx-linux.c.
5741
85d4a676
SS
57422012-05-11 Stan Shebs <stan@codesourcery.com>
5743 Kwok Cheung Yeung <kcy@codesourcery.com>
5744
5745 * NEWS: Describe new info os commands.
5746 * common/linux-osdata.c (PID_T, TIME_T): Define.
5747 (MAX_PID_T_STRLEN): New.
5748 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5749 MAX_PID_T_STRLEN.
5750 (command_from_pid): Add comment. Change to use PID_T.
5751 (commandline_from_pid): Change to use PID_T.
5752 (user_from_pid): Add comment.
5753 (get_process_owner): Add comment. Change to use PID_T and
5754 MAX_PID_T_STRLEN.
5755 (get_number_of_cpu_cores): Add comment.
5756 (get_cores_used_by_process): Add comment. Change to use PID_T and
5757 MAX_PID_T_STRLEN.
5758 (linux_xfer_osdata_processes): Change to use PID_T and
5759 MAX_PID_T_STRLEN.
5760 (compare_processes): New function.
5761 (linux_xfer_osdata_processgroups): New function.
5762 (linux_xfer_osdata_threads): Change to use PID_T.
5763 (linux_xfer_osdata_fds): New function.
5764 (format_socket_state, print_sockets): New functions.
5765 (union socket_addr): New union.
5766 (linux_xfer_osdata_isockets): New function.
5767 (time_from_time_t, group_from_gid): New functions.
5768 (linux_xfer_osdata_shm): New function.
5769 (linux_xfer_osdata_sem): New function.
5770 (linux_xfer_osdata_msg): New function.
5771 (linux_xfer_osdata_modules): New function.
5772 (osdata_table): Add new entries.
5773 * common/buffer.c (buffer_xml_printf): Add support for long and
5774 long long format specifiers.
5775
f24afd6d
L
57762012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5777
5778 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5779 (tdesc_x32_avx_linux): Likewise.
5780
7349ff92
JK
57812012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5782
5783 Implement multi-component --with-auto-load-dir.
5784 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5785 entries.
5786 (--with-auto-load-safe-path): Update the default value description.
5787 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5788 New.
5789 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5790 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5791 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5792 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5793 "set auto-load scripts-directory".
5794 * config.in: Regenerate.
5795 * configure: Regenerate.
5796 * configure.ac (--with-auto-load-dir): New configure option.
5797 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5798
6dea1fbd
JK
57992012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5800
5801 Provide $ddir substitution for --with-auto-load-safe-path.
5802 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5803 entries.
5804 * auto-load.c: Include observer.h.
5805 (auto_load_safe_path_vec_update): Call substitute_path_component for
5806 each component. New variable ddir_subst.
5807 (auto_load_gdb_datadir_changed): New function.
5808 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5809 AUTO_LOAD_SAFE_PATH. New comment.
5810 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5811 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5812 * config.in: Regenerate.
5813 * configure: Regenerate.
5814 * configure.ac (--auto-load-safe-path): Rename
5815 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5816 GDB_DATADIR/auto-load.
5817 * defs.h (substitute_path_component): New declaration.
5818 * top.c: Include observer.h.
5819 (set_gdb_datadir): New function.
5820 (init_main): Install it for "set data-directory".
5821 * utils.c (substitute_path_component): New function.
5822
b09aca3a
JK
58232012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5824
5825 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5826 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5827 DEBUG_FILE_DIRECTORY. Handle multiple components of
5828 DEBUG_FILE_DIRECTORY.
5829
95554aad
TT
58302012-05-10 Tom Tromey <tromey@redhat.com>
5831
5832 * dwarf2read.c (recursively_write_psymbols): New function.
5833 (write_psymtabs_to_index): Use it.
5834
5835 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5836 field.
5837 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5838 (load_partial_comp_unit): Update.
5839 (queue_comp_unit): Add argument 'pretend_language'.
5840 (process_queue): Update.
5841 (psymtab_to_symtab_1): Skip dependencies that have a user.
5842 (load_partial_comp_unit_reader): Give meaning to the 'data'
5843 argument.
5844 (load_full_comp_unit): Add 'pretend_language' argument.
5845 (process_full_comp_unit): Add 'pretend_language' argument. Set
5846 language on CU.
5847 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5848 Update.
5849 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5850 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5851 Update.
5852 (prepare_one_comp_unit): Add 'pretend_language' argument.
5853
5854 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5855 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5856 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5857 (dw2_do_instantiate_symtab): Check whether symtab was read in
5858 before queueing.
5859 (dw2_instantiate_symtab): Add assertion. Call
5860 process_cu_includes.
5861 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5862 (partial_symtab_p): New typedef.
5863 (set_partial_user): New function.
5864 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5865 (scan_partial_symbols): Add imported CU to imported_symtabs.
5866 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5867 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5868 (get_symtab, recursively_compute_inclusions)
5869 (compute_symtab_includes, process_cu_includes)
5870 (process_imported_unit_die): New functions.
5871 (process_die) <DW_TAG_imported_unit>: New case.
5872 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5873
5874 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5875 comment.
5876 (struct partial_die_info) <locdesc>: Remove.
5877 <d>: New field.
5878 (process_psymtab_comp_unit): Add 'read_partial' argument.
5879 Update.
5880 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5881 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5882 (add_partial_symbol): Update.
5883 (process_die): Handle DW_TAG_partial_unit.
5884 (read_file_scope): Update comment.
5885 (load_partial_dies): Handle DW_TAG_imported_unit.
5886 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5887 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5888
e871fbb9
TT
58892012-05-10 Tom Tromey <tromey@redhat.com>
5890
5891 * cc-with-dwz.sh: New file.
5892
b5b04b5b
TT
58932012-05-10 Tom Tromey <tromey@redhat.com>
5894
5895 * symtab.h (struct symtab) <includes, user>: New fields.
5896 * block.h (struct block_iterator) <d, idx, which>: New fields.
5897 * block.c (initialize_block_iterator, find_iterator_symtab)
5898 (block_iterator_step, block_iter_name_step)
5899 (block_iter_match_step): New functions.
5900 (block_iterator_first, block_iterator_next)
5901 (block_iter_name_first, block_iter_name_next)
5902 (block_iter_match_first, block_iter_match_next): Rewrite.
5903 (get_block_symtab): New function.
5904
84a146c9
TT
59052012-05-10 Tom Tromey <tromey@redhat.com>
5906
5907 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5908 set_block_symtab.
5909 * jit.c (finalize_symtab): Use allocate_global_block,
5910 set_block_symtab.
5911 * buildsym.c (finish_block_internal): New function, from old
5912 finish_block.
5913 (finish_block): Rewrite.
5914 (end_symtab): Use finish_block_internal, set_block_symtab.
5915 * block.h (struct global_block): New.
5916 (allocate_global_block, set_block_symtab): Declare.
5917 * block.c (allocate_global_block, set_block_symtab): New
5918 functions.
5919
9439a077
TT
59202012-05-10 Tom Tromey <tromey@redhat.com>
5921
5922 * psymtab.c (partial_map_expand_apply): Add assertion.
5923 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5924 (psymtab_to_symtab): Find unshared psymtab.
5925 (dump_psymtab): Print including psymtabs.
5926 (recursively_search_psymtabs): New function.
5927 (expand_symtabs_matching_via_partial): Use it.
5928 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5929 fields.
5930 (enum psymtab_search_status): New.
5931
8157b174
TT
59322012-05-10 Tom Tromey <tromey@redhat.com>
5933
5934 * tracepoint.c (scope_info): Update.
5935 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5936 (find_pc_sect_symtab, search_symbols)
5937 (default_make_symbol_completion_list_break_on)
5938 (make_file_symbol_completion_list): Update.
5939 * symmisc.c (dump_symtab_1): Update.
5940 * stack.c (print_frame_args, iterate_over_block_locals)
5941 (print_frame_labels, iterate_over_block_arg_vars): Update.
5942 * python/py-block.c (block_object) <dict>: Remove.
5943 <block>: New field.
5944 <iter>: Change type.
5945 (blpy_iter): Update.
5946 (blpy_block_syms_iternext): Update.
5947 * psymtab.c (map_block): Use block iterators.
5948 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5949 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5950 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5951 * infrun.c (check_exception_resume): Update.
5952 * cp-support.c (make_symbol_overload_list_block): Update.
5953 * coffread.c (patch_opaque_types): Update.
5954 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5955 * block.h (struct block_iterator): New.
5956 (block_iterator_first, block_iterator_next, block_iter_name_first)
5957 (block_iter_name_next, block_iter_match_first)
5958 (block_iter_match_next): Declare.
5959 (ALL_BLOCK_SYMBOLS): Redefine.
5960 * block.c (block_iterator_first, block_iterator_next)
5961 (block_iter_name_first, block_iter_name_next)
5962 (block_iter_match_first, block_iter_match_next): New functions.
5963 * ada-lang.c (ada_add_block_symbols)
5964 (ada_make_symbol_completion_list): Use block iterator.
5965
a2ca7a52
TT
59662012-05-10 Tom Tromey <tromey@redhat.com>
5967
5968 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5969 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5970 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5971 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5972 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5973 Update.
5974
64ea88dc
JB
59752012-05-10 Joel Brobecker <brobecker@adacore.com>
5976
5977 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5978 print-file-var-lib2.c, print-file-var-main.c and
5979 print-file-var.exp (located in gdb/testsuite/gdb.base).
5980
99a547d6
JB
59812012-05-10 Joel Brobecker <brobecker@adacore.com>
5982
5983 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5984 try locating the symbol in the symbol's own objfile first, before
5985 extending the search to all objfiles.
5986 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5987 out of lookup_symbol_aux_symtabs.
5988 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5989 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5990 Do not search EXCLUDE_OBJFILE.
5991 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5992 (lookup_symbol_global): Search for matches in the block's objfile
5993 first, before searching all other objfiles.
5994
0ece64fd
TG
59952012-05-10 Tristan Gingold <gingold@adacore.com>
5996
5997 * printcmd.c (set_command): Add pre/post inc/dec.
5998
3d16a105
FCE
59992012-05-09 Frank Ch. Eigler <fche@redhat.com>
6000
6001 * gdb.1: Document -ex option.
6002
2efbc0f7
JB
60032012-05-09 Joel Brobecker <brobecker@adacore.com>
6004
6005 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6006 * inferior.h (AT_SYMBOL): Delete.
6007
2c76a0c7
JB
60082012-05-09 Joel Brobecker <brobecker@adacore.com>
6009
6010 * mips-tdep.c (mips_push_dummy_code): New function.
6011 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6012 ON_STACK and install mips_push_dummy_code as our gdbarch
6013 push_dummy_code routine.
6014
9401a810
PA
60152012-05-09 Pedro Alves <palves@redhat.com>
6016
6017 * target.c (set_maintenance_target_async_permitted): Rename to ...
6018 (set_target_async_command): ... this.
6019 (show_maintenance_target_async_permitted): Rename to ...
6020 (show_target_async_command): ... this.
6021 (initialize_targets): Adjust.
6022
3929b321
DE
60232012-05-08 Doug Evans <dje@google.com>
6024
6025 * go-exp.y (classify_name): Add missing assignment of fields of
6026 yylval.ssym.
6027
c41535fd
EZ
60282012-05-08 Eli Zaretskii <eliz@gnu.org>
6029
6030 Display the ">" prompt in interactive mode while reading canned
6031 commands, even when the current interpreter is MI.
6032
6033 * interps.c (interp_set_temp): New function.
6034
6035 * interps.h (interp_set_temp): Add prototype.
6036
6037 * cli/cli-script.c (restore_interp): New cleanup function.
6038 (read_command_lines): Temporarily override the current interpreter
6039 with CLI and arrange for restoring the original one.
6040
c0749c4d
JS
60412012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6042
6043 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6044
d7333987
SDJ
60452012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6046
6047 * probe.c (parse_probes): Move conditional to check for
6048 debuginfo files from here...
6049 * stap-probe.c (stap_get_probes): ... to here.
6050
649e6d92
MK
60512012-05-07 Mark Kettenis <kettenis@gnu.org>
6052 H.J. Lu <hongjiu.lu@intel.com>
6053
6054 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6055 `movl %esp, %ebp' for the X32 ABI.
6056
f39c6ffd
TT
60572012-05-07 Tom Tromey <tromey@redhat.com>
6058
6059 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6060 get_DW_TAG_name.
6061 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6062 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6063 (dwarf_stack_op_name): Remove.
6064 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6065 (decode_locdesc): Use get_DW_OP_name.
6066 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6067 (dwarf2_compile_expr_to_ax): Likewise.
6068 (disassemble_dwarf_expression): Likewise.
6069 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6070
1e1f6591
CLT
60712012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6072
6073 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6074 (sh_linux_sigtramp_cache): New function.
6075 (sh_linux_sigreturn_init): New function.
6076 (sh_linux_rt_sigreturn_init): New function.
6077 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6078 patterns.
6079 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6080 syscall codes.
6081 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6082 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6083 (sh_linux_init_abi): Add init calls to register new tramp_frame
6084 definitions under 32-bit SH, update comments.
6085
545c08b4
PA
60862012-05-07 Pedro Alves <palves@redhat.com>
6087
daac165e
PA
6088 PR gdb/10952
6089
545c08b4
PA
6090 * amd64-linux-tdep.c: Include glibc-tdep.h.
6091 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6092 gdbarch_skip_solib_resolver callback.
6093
af2c1515
JK
60942012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6095
6096 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6097 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6098 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6099 (add_auto_load_safe_path): Change the error message.
6100 (_initialize_auto_load): Change the "safe-path" help text.
6101 * configure: Regenerate
6102 * configure.ac (--without-auto-load-safe-path): Set
6103 WITH_AUTO_LOAD_SAFE_PATH to /.
6104
1067f998
SDJ
61052012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6106
6107 * stap-probe.h: Do not include unecessary `probe.h'.
6108
45dfa85a
AM
61092012-05-05 Alan Modra <amodra@gmail.com>
6110
6111 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6112 bfd_und_section_ptr.
6113 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6114 and bfd_com_section_ptr.
6115
cf093994
JB
61162012-05-04 Joel Brobecker <brobecker@adacore.com>
6117
762ebb75 6118 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6119
d40dc7a8
JB
61202012-05-04 Joel Brobecker <brobecker@adacore.com>
6121
6122 * windows-nat.h (segment_register_p_ftype): New typedef.
6123 (windows_set_segment_register_p): Add declaration.
6124 * windows-nat.c (segment_register_p): New static global.
6125 (windows_set_segment_register_p): New function.
6126 (do_windows_fetch_inferior_registers): Add special handling
6127 for segment registers.
6128 * amd64-windows-nat.c: #include "amd64-tdep.h".
6129 (amd64_windows_segment_register_p): New function.
6130 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6131 * i386-windows-nat.c: #include "i386-tdep.h".
6132 (i386_windows_segment_register_p): New function.
6133 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6134
52b3699b
TG
61352012-05-04 Tristan Gingold <gingold@adacore.com>
6136
6137 * printcmd.c (set_command): Emit a warning if the expression is not
6138 an assignment.
6139
94c74239
JB
61402012-05-03 Joel Brobecker <brobecker@adacore.com>
6141
6142 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6143 Make static.
6144
fcf57f19
SDJ
61452012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6146
6147 * stap-probe.c (stap_is_operator): Change declaration.
6148 (stap_get_opcode): Change return value.
6149 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6150 `stap_parse_argument_1'.
6151
27d2932e
PA
61522012-05-03 Pedro Alves <pedro@codesourcery.com>
6153
6154 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6155 debug log.
6156
a20ee7a4
SCR
61572012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6158
6159 Add two new methods global_block and static_block to gdb.Symtab
6160 objects.
6161 * NEWS (Python scripting): Add entry about the new methods.
6162 * python/py-symtab.c (stpy_global_block): New function which
6163 implements the gdb.Symtab.global_block() method.
6164 (stpy_static_block): New function which implements the
6165 gdb.Symtab.static_block() method.
6166 (symtab_object_methods): Add entries for the two new methods.
6167
943cb756
DE
61682012-05-03 Doug Evans <dje@google.com>
6169
6170 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6171 files.
6172
f4644a3f
YQ
61732012-05-03 Yao Qi <yao@codesourcery.com>
6174
6175 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6176 space.
6177 (i386_process_record): Ditto.
6178
ef61f180
JB
61792012-05-02 Joel Brobecker <brobecker@adacore.com>
6180
6181 * infcall.c (unwind_on_signal_p): Make static.
6182
02f1df11
JB
61832012-05-02 Joel Brobecker <brobecker@adacore.com>
6184
6185 * sol-thread.c (solaris_pid_to_str): Make static.
6186 (_initialize_sol_thread): Add prototype.
6187
39023530
JB
61882012-05-02 Joel Brobecker <brobecker@adacore.com>
6189
6190 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6191
c6b0c501
CF
61922012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6193
6194 * MAINTAINERS: Remove myself.
6195
1ef71717
JK
61962012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6197
6198 Fix --without-auto-load-safe-path for MS-Windows host platform.
6199 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6200
b31b86a7
EZ
62012012-05-02 Eli Zaretskii <eliz@gnu.org>
6202
6203 * gdb_curses.h: Undefine KEY_EVENT before including curses
6204 headers. Move "#undef MOUSE_MOVED" before any curses header
6205 inclusion.
6206
777532fc
SDJ
62072012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6208
6209 * features/i386/i386-mmx-linux.c: Regenerate.
6210 * features/rs6000/powerpc-32.c: Likewise.
6211 * features/rs6000/powerpc-32l.c: Likewise.
6212 * features/rs6000/powerpc-403.c: Likewise.
6213 * features/rs6000/powerpc-403gc.c: Likewise.
6214 * features/rs6000/powerpc-405.c: Likewise.
6215 * features/rs6000/powerpc-505.c: Likewise.
6216 * features/rs6000/powerpc-601.c: Likewise.
6217 * features/rs6000/powerpc-602.c: Likewise.
6218 * features/rs6000/powerpc-603.c: Likewise.
6219 * features/rs6000/powerpc-604.c: Likewise.
6220 * features/rs6000/powerpc-64.c: Likewise.
6221 * features/rs6000/powerpc-64l.c: Likewise.
6222 * features/rs6000/powerpc-750.c: Likewise.
6223 * features/rs6000/powerpc-860.c: Likewise.
6224 * features/rs6000/powerpc-e500.c: Likewise.
6225 * features/rs6000/powerpc-e500l.c: Likewise.
6226 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6227 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6228 * features/rs6000/rs6000.c: Likewise.
6229
d71871bc
SDJ
62302012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6231
6232 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6233 variable.
6234 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6235 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6236 (stap_parse_argument) <e>: Likewise.
6237 (handle_stap_probe) <byte_order>: Likewise.
6238
fd820528
DE
62392012-04-30 Doug Evans <dje@google.com>
6240
6241 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6242 init_and_read_dies_worker. All callers updated.
6243 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6244 replaced with init_cutu_and_read_dies.
6245 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6246 (find_partial_die): Remove FIXME. Don't free current CU.
6247
ec3f619d 62482012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6249
6250 * contrib: New directory.
6251 * contrib/test_pubnames_and_indexes.py: New file.
6252
fceca515
DE
62532012-04-30 Doug Evans <dje@google.com>
6254
6255 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6256 All callers updated.
6257 (init_cu_die_reader): Verify the section is non-empty.
6258 (dwarf_decode_line_header): Don't dereference section->asection
6259 until we know the section is present.
6260
311fe7e1
SDJ
62612012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6262
6263 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6264 probes.
6265
5977971a
YQ
62662012-04-29 Yao Qi <yao@codesourcery.com>
6267
6268 * gdb-code-style.el: New hook gdb-markup-hook
6269 and gdb-comment-hook.
6270
dee91e82
DE
62712012-04-28 Doug Evans <dje@google.com>
6272
3019eac3
DE
6273 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6274 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6275 objfile->obfd.
6276 * symfile.h (dwarf2_debug_sections): New member addr.
6277 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6278 (ctx_no_get_addr_index): New function.
6279 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6280 (ctx_no_get_addr_index): Declare.
6281 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6282 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6283 (dwarf_expr_ctx_funcs): Update.
6284 (needs_get_addr_index): New function.
6285 (needs_frame_ctx_funcs): Update.
6286 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6287 * dwarf2read.c: #include "gdbcore.h".
6288 (dwarf2_per_objfile): New members addr, dwo_files.
6289 (dwarf2_elf_names): Add entry for addr.
6290 (struct dwo_section_names): New type.
6291 (dwo_section_names): New static global.
6292 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6293 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6294 old debug_types_section member updated to use this.
6295 Rename member debug_types_section to info_or_types_section,
6296 all uses updated.
6297 (signatured_type): Rename member type_offset to type_offset_in_tu,
6298 all uses updated. New member type_offset_in_section.
6299 (struct dwo_sections): New type.
6300 (struct dwo_unit): New type.
6301 (struct dwo_file): New type.
6302 (die_reader_specs): New member dwo_file.
6303 (dwarf2_locate_sections): Watch for .debug_addr.
6304 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6305 (dwarf2_read_section): Get bfd of section from bfd's asection,
6306 instead of objfile.
6307 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6308 (create_signatured_type_table_from_index): Initialize
6309 sig_type->info_or_types_section.
6310 (dw2_get_file_names): Statement lists for type units with DWO files
6311 live in the DWO file.
6312 (create_debug_types_hash_table): New function.
6313 (create_all_type_units): Rewrite.
6314 (init_cu_die_reader): New arg dwo_file, all callers updated.
6315 (init_and_read_dies_worker): Get section from
6316 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6317 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6318 continue reading the CU/TU from there.
6319 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6320 updated. Get section from this_cu->info_or_types_section.
6321 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6322 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6323 DW_FORM_GNU_str_index.
6324 (hash_dwo_file, eq_dwo_file): New functions.
6325 (allocate_dwo_file_hash_table): New function.
6326 (hash_dwo_unit, eq_dwo_unit): New functions.
6327 (allocate_dwo_unit_table): New function.
6328 (dwarf2_locate_dwo_sections): New function.
6329 (struct create_dwo_info_table_data): New type.
6330 (create_debug_info_hash_table_reader): New function.
6331 (create_debug_info_hash_table): New function.
6332 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6333 (lookup_dwo_file): New function.
6334 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6335 (free_dwo_file, free_dwo_file_cleanup): New functions.
6336 (free_dwo_file_from_slot, free_dwo_files): New functions.
6337 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6338 (dwarf2_record_block_ranges): Ditto.
6339 (read_partial_die): Ditto.
6340 (process_enumeration_scope): Update to use type_offset_in_section.
6341 (read_full_die_1): New function.
6342 (read_full_die): Rewrite.
6343 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6344 DW_FORM_GNU_str_index.
6345 (read_addr_index_1, read_addr_index): New functions.
6346 (read_addr_index_from_leb128): New function.
6347 (struct dwarf2_read_addr_index_data): New type.
6348 (dwarf2_read_addr_index_reader): New function.
6349 (dwarf2_read_addr_index): New function.
6350 (read_str_index): New function.
6351 (leb128_size): New function.
6352 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6353 If processing a type unit from a DWO file, get the line section
6354 from the DWO file.
6355 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6356 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6357 DW_FORM_GNU_str_index.
6358 (lookup_die_type): Check whether section offset of type's die is
6359 known before looking it up. Remove assert. Condition can
6360 legimately happen for inter-cu type references.
6361 (dwarf_attr_name): Handle Fission attributes.
6362 (dwarf_form_name): Handle Fission forms.
6363 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6364 DW_FORM_GNU_str_index.
6365 (follow_die_sig): Update to use type_offset_in_section.
6366 (decode_locdesc): New case DW_OP_GNU_addr_index.
6367 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6368 DW_FORM_GNU_str_index.
6369 (cu_debug_loc_section): New function.
6370 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6371 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6372 Free DWO files if present.
6373 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6374
dee91e82
DE
6375 Refactor DIE reading.
6376 * dwarf2read.c (dwarf2_per_objfile): Replace members
6377 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6378 (die_reader_specs): New member "die_section". Temporarily make
6379 member "buffer" non-const, pending constifying all info_ptr uses.
6380 (die_reader_func_ftype): New typedef.
6381 (dw2_get_file_names_reader): New function.
6382 (dw2_get_file_names): Rewrite.
6383 (read_and_check_type_unit_head): Rename arg type_offset to
6384 type_offset_in_tu.
6385 (create_all_type_units): Improve debugging message.
6386 Improve dummy type unit check.
6387 (init_cu_die_reader): New arg "section". All callers updated.
6388 (init_and_read_dies_worker): New function.
6389 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6390 (init_cutu_and_read_dies_no_follow): New function.
6391 (init_cutu_and_read_dies_simple): New function.
6392 (process_psymtab_comp_unit_reader): New function.
6393 (process_psymtab_comp_unit): Delete args section,
6394 is_debug_types_section. Rewrite. All callers updated.
6395 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6396 All callers updated. Rewrite.
6397 (load_partial_comp_unit_reader): New function.
6398 (load_partial_comp_unit): Rewrite.
6399 (skip_children): New arg reader. Delete args buffer, cu.
6400 All callers updated.
6401 (skip_one_die): New arg reader. Delete args buffer, cu.
6402 All callers updated.
6403 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6404 All callers updated.
6405 (load_full_comp_unit_reader): New function.
6406 (load_full_comp_unit): Rewrite.
6407 (read_comp_unit): Delete.
6408 (read_die_and_children_1): Delete, contents moved ...
6409 (read_die_and_children): ... here.
6410 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6411 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6412 All callers updated.
6413 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6414 All callers updated.
6415 (find_partial_die): Rewrite load_all_dies support.
6416 (read_attribute_value): New arg reader. Delete args abfd, cu.
6417 All callers updated.
6418 (read_attribute): New arg reader. Delete args abfd, cu.
6419 All callers updated.
6420 (load_full_type_unit): Add assert.
6421 (read_signatured_type_reader): New function.
6422 (read_signatured_type): Rewrite.
6423 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6424 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6425 All callers updated. Set per_cu->cu = NULL after freeing it.
6426 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6427 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6428 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6429 (set_die_type): Update.
6430 (get_die_type_at_offset): Update.
6431 (read_file_scope): Call prepare_one_comp_unit.
6432 (read_type_unit_scope): Ditto.
6433 (prepare_one_comp_unit): Set producer if present.
6434
72d59e0d
SDJ
64352012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6436
6437 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6438 gettext function on `error'.
6439
0fefef59
DE
64402012-04-27 Doug Evans <dje@google.com>
6441
6442 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6443 is empty.
6444
28106bc2
SDJ
64452012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6446 Tom Tromey <tromey@redhat.com>
6447
6448 * breakpoint.c (struct breakpoint_objfile_data)
6449 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6450 <exception_probes>: New fields.
6451 (free_breakpoint_probes): New function.
6452 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6453 `_Unwind_DebugHook'.
6454 (create_exception_master_breakpoint): Likewise.
6455 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6456 * infrun.c: Including necessary header files for handling SystemTap
6457 probes.
6458 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6459 via SystemTap probes.
6460 (check_exception_resume): Remove `func' argument. Handle exception
6461 unwinding breakpoint set via a SystemTap probe.
6462 (insert_exception_resume_from_probe): New function.
6463
55aa24fb
SDJ
64642012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6465 Tom Tromey <tromey@redhat.com>
6466 Jan Kratochvil <jan.kratochvil@redhat.com>
6467
6468 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6469 (COMMON_OBS): Likewise.
6470 (HFILES_NO_SRCDIR): Add `probe'.
6471 * NEWS: Mention support for static and SystemTap probes.
6472 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6473 SystemTap probes' arguments parser.
6474 * arm-linux-tdep.c: Including headers needed to perform the parsing
6475 of SystemTap probes' arguments.
6476 (arm_stap_is_single_operand): New function.
6477 (arm_stap_parse_special_token): Likewise.
6478 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6479 probes' arguments parser.
6480 * ax-gdb.c (require_rvalue): Removing static declaration.
6481 (gen_expr): Likewise.
6482 * ax-gdb.h (gen_expr): Declaring function.
6483 (require_rvalue): Likewise.
6484 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6485 (bkpt_probe_breakpoint_ops): New variable.
6486 (momentary_breakpoint_from_master): Set the `probe' value.
6487 (add_location_to_breakpoint): Likewise.
6488 (break_command_1): Using proper breakpoint_ops according to the
6489 argument passed by the user in the command line.
6490 (bkpt_probe_insert_location): New function.
6491 (bkpt_probe_remove_location): Likewise.
6492 (bkpt_probe_create_sals_from_address): Likewise.
6493 (bkpt_probe_decode_linespec): Likewise.
6494 (tracepoint_probe_create_sals_from_address): Likewise.
6495 (tracepoint_probe_decode_linespec): Likewise.
6496 (tracepoint_probe_breakpoint_ops): New variable.
6497 (trace_command): Using proper breakpoint_ops according to the
6498 argument passed by the user in the command line.
6499 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6500 static probes on breakpoints and tracepoints.
6501 * breakpoint.h (struct bp_location) <probe>: New field.
6502 * cli-utils.c (skip_spaces_const): New function.
6503 (extract_arg): Likewise.
6504 * cli-utils.h (skip_spaces_const): Likewise.
6505 (extract_arg): Likewise.
6506 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6507 * configure.ac: Append `stap-probe.o' to be generated when ELF
6508 support is present.
6509 * configure: Regenerate.
6510 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6511 * elfread.c: Include `probe.h' and `arch-utils.h'.
6512 (probe_key): New variable.
6513 (elf_get_probes): New function.
6514 (elf_get_probe_argument_count): Likewise.
6515 (elf_evaluate_probe_argument): Likewise.
6516 (elf_compile_to_ax): Likewise.
6517 (elf_symfile_relocate_probe): Likewise.
6518 (stap_probe_key_free): Likewise.
6519 (elf_probe_fns): New variable.
6520 (elf_sym_fns): Add `sym_probe_fns' value.
6521 (elf_sym_fns_lazy_psyms): Likewise.
6522 (elf_sym_fns_gdb_index): Likewise.
6523 (_initialize_elfread): Initialize objfile cache for static
6524 probes.
6525 * gdb_vecs.h (struct probe): New forward declaration.
6526 (probe_p): New VEC declaration.
6527 * gdbarch.c: Regenerate.
6528 * gdbarch.h: Regenerate.
6529 * gdbarch.sh (stap_integer_prefix): New variable.
6530 (stap_integer_suffix): Likewise.
6531 (stap_register_prefix): Likewise.
6532 (stap_register_suffix): Likewise.
6533 (stap_register_indirection_prefix): Likewise.
6534 (stap_register_indirection_suffix): Likewise.
6535 (stap_gdb_register_prefix): Likewise.
6536 (stap_gdb_register_suffix): Likewise.
6537 (stap_is_single_operand): New function.
6538 (stap_parse_special_token): Likewise.
6539 (struct stap_parse_info): Forward declaration.
6540 * i386-tdep.c: Including headers needed to perform the parsing
6541 of SystemTap probes' arguments.
6542 (i386_stap_is_single_operand): New function.
6543 (i386_stap_parse_special_token): Likewise.
6544 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6545 probes' arguments parser.
6546 * i386-tdep.h (i386_stap_is_single_operand): New function.
6547 (i386_stap_parse_special_token): Likewise.
6548 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6549 * mipsread.c (ecoff_sym_fns): Likewise.
6550 * objfiles.c (objfile_relocate1): Support relocation for static
6551 probes.
6552 * parse.c (prefixify_expression): Remove static declaration.
6553 (initialize_expout): Likewise.
6554 (reallocate_expout): Likewise.
6555 * parser-defs.h (initialize_expout): Declare function.
6556 (reallocate_expout): Likewise.
6557 (prefixify_expression): Likewise.
6558 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6559 of SystemTap probes' arguments.
6560 (ppc_stap_is_single_operand): New function.
6561 (ppc_stap_parse_special_token): Likewise.
6562 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6563 probes' arguments parser.
6564 * probe.c: New file, for generic statically defined probe support.
6565 * probe.h: Likewise.
6566 * s390-tdep.c: Including headers needed to perform the parsing of
6567 SystemTap probes' arguments.
6568 (s390_stap_is_single_operand): New function.
6569 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6570 probes' arguments parser.
6571 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6572 * stap-probe.c: New file, for SystemTap probe support.
6573 * stap-probe.h: Likewise.
6574 * symfile.h: Include `gdb_vecs.h'.
6575 (struct sym_probe_fns): New struct.
6576 (struct sym_fns) <sym_probe_fns>: New field.
6577 * symtab.c (init_sal): Initialize `probe' field.
6578 * symtab.h (struct probe): Forward declaration.
6579 (struct symtab_and_line) <probe>: New field.
6580 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6581 locations.
6582 (stop_tracing): Likewise.
6583 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6584
22d2b532
SDJ
65852012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6586 Tom Tromey <tromey@redhat.com>
6587
6588 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6589 and to compile agent expressions.
6590 * infrun.c (siginfo_make_value): New argument `ignore'.
6591 (siginfo_funcs): New struct.
6592 (_initialize_infrun): New argument when calling
6593 `create_internalvar_type_lazy'.
6594 * thread.c (thread_id_make_value): New argument `ignore'.
6595 (thread_funcs): New struct.
6596 (_initialize_thread): New argument when calling
6597 `create_internalvar_type_lazy'.
6598 * tracepoint.c (sdata_make_value): New argument `ignore'.
6599 (sdata_funcs): New struct.
6600 (_initialize_tracepoint): New argument when calling
6601 `create_internalvar_type_lazy'.
6602 * value.c (make_value): New struct.
6603 (create_internalvar_type_lazy): New argument `data'.
6604 (compile_internalvar_to_ax): New function.
6605 (value_of_internalvar): Properly handling `make_value' case.
6606 (clear_internalvar): Likewise.
6607 (show_convenience): Adding `TRY_CATCH' block.
6608 * value.h (internalvar_make_value): Delete, replace by...
6609 (struct internalvar_funcs): ... this.
6610 (create_internalvar_type_lazy) <fun>: Delete argument.
6611 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6612 (compile_internalvar_to_ax): New function.
6613 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6614 (tlb_funcs): New struct.
6615 (_initialize_windows_tdep): New argument when calling
6616 `create_internalvar_type_lazy'.
6617
91da1414
MW
66182012-04-27 Mark Wielaard <mjw@redhat.com>
6619
6620 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6621 see whether it is an address or a constant offset from DW_AT_low_pc.
6622 (dwarf2_record_block_ranges): Likewise.
6623 (read_partial_die): Likewise.
6624
4ab9d8ec
MW
66252012-04-26 Mark Wielaard <mjw@redhat.com>
6626
6627 * MAINTAINERS (Write After Approval): Add myself to the list.
6628
a0911fd0
MR
66292012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6630
6631 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6632 (proc_prettyprint_signal): Likewise.
6633 (proc_prettyprint_faultset): Likewise.
6634 (proc_prettyprint_fault): Likewise.
6635 (proc_prettyprint_actionset): Likewise.
6636 (proc_prettyprint_flags): Move to new proc-flags.c section.
6637 (proc_prettyfprint_flags): New prototype.
6638 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6639 (proc_syscall, proc_cursig): Likewise.
6640 (proc_set_kill_on_last_close): Likewise.
6641 (proc_unset_kill_on_last_close): Likewise.
6642 (proc_set_watchpoint): Make static.
6643 (proc_delete_dead_threads): Likewise.
6644 (procfs_set_watchpoint): Likewise.
6645 (_initialize_procfs): Add prototype.
6646 * proc-events.c: Include proc-utils.h.
6647 (init_syscall_table): Make static.
6648 * proc-api.c (_initialize_proc_api): Add prototype.
6649 * proc-flags.c: Include proc-utils.h.
6650
9009e1ae
MR
66512012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6652
6653 * configure.ac: Add AC_ARG_PROGRAM.
6654 * configure: Regenerate.
6655
4fae6e18
JK
66562012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6657
6658 Fix DW_AT_lower_bound defaults for DWARF-4+.
6659 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6660 high. New variable low_default_is_valid. Implement DWARF-4+
6661 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6662 no default by the DWARF standard.
6663
14132e89 66642012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6665 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6666
6667 * infrun.c (handle_inferior_event): Move the check for return
6668 trampolines ahead of the check for function trampolines.
6669 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6670 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6671 (mips_str_mips16_ret_stub): Likewise.
6672 (mips_str_call_fp_stub): Likewise.
6673 (mips_str_call_stub): Likewise.
6674 (mips_str_fn_stub): Likewise.
6675 (mips_str_pic): Likewise.
6676 (mips_in_frame_stub): New function.
6677 (mips_unwind_pc): Return the return address rather than the PC
6678 if the PC of an intermediate frame is inside a call thunk.
6679 (mips_is_stub_suffix): New function.
6680 (mips_is_stub_mode): Likewise.
6681 (mips_get_mips16_fn_stub_pc): Likewise.
6682 (mips_skip_mips16_trampoline_code): Update to handle all the
6683 currently generated stub types. Don't recurse into __fn_stub
6684 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6685 Use cooked register accesses.
6686 (mips_in_return_stub): Reintroduce function.
6687 (mips_skip_trampoline_code): Traverse trampolines recursively.
6688 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6689
518f0db5 66902012-04-26 Joel Brobecker <brobecker@adacore.com>
6691
6692 GDB 7.4.1 released.
6693
3184d3f9
JL
66942012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6695
6696 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6697 * features/arm-with-m-vfp-d16.xml: New file. Describes
6698 Cortex-M with VFPv4-sp-d16 FPU register layout.
6699 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6700 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6701 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6702 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6703 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6704
b6201d44
DE
67052012-04-25 Doug Evans <dje@google.com>
6706
6707 * cli/cli-decode.c (print_doc_line): Use stream instead of
6708 current_uiout.
6709
4e2f8df6
SDJ
67102012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6711
6712 * features/arm-with-iwmmxt.c: Regenerate.
6713 * features/arm-with-m-fpa-layout.c: Likewise.
6714 * features/arm-with-m.c: Likewise.
6715 * features/arm-with-neon.c: Likewise.
6716 * features/arm-with-vfpv2.c: Likewise.
6717 * features/arm-with-vfpv3.c: Likewise.
6718 * features/mips-dsp-linux.c: Likewise.
6719 * features/mips-linux.c: Likewise.
6720 * features/mips64-dsp-linux.c: Likewise.
6721 * features/mips64-linux.c: Likewise.
6722 * features/s390-linux32.c: Likewise.
6723 * features/s390-linux32v1.c: Likewise.
6724 * features/s390-linux32v2.c: Likewise.
6725 * features/s390-linux64.c: Likewise.
6726 * features/s390-linux64v1.c: Likewise.
6727 * features/s390-linux64v2.c: Likewise.
6728 * features/s390x-linux64.c: Likewise.
6729 * features/s390x-linux64v1.c: Likewise.
6730 * features/s390x-linux64v2.c: Likewise.
6731 * features/tic6x-c62x-linux.c: Likewise.
6732 * features/tic6x-c62x.c: Likewise.
6733 * features/tic6x-c64x-linux.c: Likewise.
6734 * features/tic6x-c64x.c: Likewise.
6735 * features/tic6x-c64xp-linux.c: Likewise.
6736 * features/tic6x-c64xp.c: Likewise.
6737 * target-descriptions.c: Only generate `field_type' and `type'
6738 variables when needed.
6739
2def3e66
JB
67402012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6741
6742 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6743
a766d390
DE
67442012-04-25 Doug Evans <dje@google.com>
6745
6746 Initial pass at Go language support.
6747 * NEWS: Mention Go.
6748 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6749 go-valprint.c.
6750 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6751 (YYFILES): Add go-exp.c.
6752 (YYOBJ): Add go-exp.o.
6753 (local-maintainer-clean): Delete go-exp.c.
6754 * defs.h (enum language): Add language_go.
6755 * dwarf2read.c: #include "go-lang.h".
6756 (fixup_go_packaging): New function.
6757 (process_full_comp_unit): Call it when processing Go CUs.
6758 (dwarf2_physname): Add Go support.
6759 (read_file_scope): Handle missing language spec for GNU Go.
6760 (set_cu_language): Handle DW_LANG_Go.
6761 * go-exp.y: New file.
6762 * go-lang.h: New file.
6763 * go-lang.c: New file.
6764 * go-typeprint.c: New file.
6765 * go-valprint.c: New file.
6766 * symtab.c: #include "go-lang.h".
6767 (symbol_set_language): Handle language_go.
6768 (symbol_find_demangled_name, symbol_set_names): Ditto.
6769 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6770
4e2af517
JM
67712012-04-24 Jim Meyering <meyering@redhat.com>
6772
6773 avoid a few strncpy-induced buffer overruns
6774 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6775 fname and psargs before trying to concatenate.
6776 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6777 "name" before applying strchr.
6778
b77b7f52
SCR
67792012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6780
6781 * CONTRIBUTE: Use unified diff instead of context diff when
6782 generating patches.
6783
6321c22a
MR
67842012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6785
6786 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6787 code. Handle JR.HB correctly.
6788
742c84f6
MR
67892012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6790
6791 * mips-tdep.c
6792 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6793 with the other MIPS16 helpers.
6794
7fc7e0c3
SDJ
67952012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6796
6797 * observer.sh: Conditionally declare `args', thus cleaning up
6798 unused instances of this variable.
6799
20388dd6
YQ
68002012-04-24 Yao Qi <yao@codesourcery.com>
6801
6802 Revert this patch to allow breakpoint always-inserted
6803 in record target.
6804 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6805 * breakpoint.c: Include record.h.
6806 (breakpoints_always_inserted_mode): Return false when the record
6807 target is in use.
20388dd6
YQ
6808
6809 * breakpoint.c (iterate_over_bp_locations): New.
6810 * breakpoint.h: Declare.
6811 New typedef walk_bp_location_callback.
6812 * record.c (record_open): Call record_init_record_breakpoints.
6813 (record_sync_record_breakpoints): New.
6814 (record_init_record_breakpoints): New.
6815 * NEWS: Mention supporting breakpoint always-inserted mode in
6816 record target.
6817
4734f50e
MK
68182012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6819
6820 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6821 any thread.
6822
c326b90e
YQ
68232012-04-24 Yao Qi <yao@codesourcery.com>
6824
6825 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6826 (is_catchpoint): ... it.
6827 (print_one_breakpoint_location): Caller update.
6828 * breakpoint.h: Update declaration.
6829
d8fb5a1e
DM
68302012-04-23 David S. Miller <davem@davemloft.net>
6831
6832 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6833
34431a2a
TT
68342012-04-23 Tom Tromey <tromey@redhat.com>
6835
6836 * buildsym.c (add_free_pendings): Remove.
6837 * buildsym.h (add_free_pendings): Remove.
6838
4568ecf9
DE
68392012-04-23 Doug Evans <dje@google.com>
6840
6841 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6842 attr.u.unsnd instead of attr.u.addr.
6843 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6844 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6845 DW_FORM_ref_udata.
6846 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6847 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6848 DW_FORM_ref_udata.
6849 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6850
dca9aa3a
MR
68512012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6852
6853 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6854 (mips_o32_return_value): Likewise.
6855 (mips_o64_return_value): Likewise.
6856
c8ea1972
PH
68572012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6858
6859 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6860 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6861 their treatment in eval.c.
c8ea1972 6862
8d1b3521
DM
68632012-04-21 David S. Miller <davem@davemloft.net>
6864
6865 * sparc-tdep.c (X_DISP10): Define.
6866 (sparc_analyze_control_transfer): Handle compare-and-branch.
6867
03145bf4
JL
68682012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6869
6870 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6871 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6872
004159a2 68732012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6874 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6875
6876 * mips-tdep.c (mips_float_register_p): New function.
6877 (mips_convert_register_float_case_p): Use mips_float_register_p.
6878 (mips_register_type): Likewise.
6879 (mips_print_register): Likewise.
6880 (print_gp_register_row): Likewise.
6881 (mips_print_registers_info): Likewise.
6882
7f0e6aae
MR
68832012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6884
6885 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6886 of mips16 symbols.
6887
bc17beea
AP
68882012-04-20 Andrew Pinski <apinski@cavium.com>
6889
6890 * MAINTAINERS (Write After Approval): Add myself to the list.
6891
1730a5a5
SDJ
68922012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6893
6894 * MAINTAINERS: Update my e-mail address.
6895
38ea300a
PA
68962012-04-20 Pedro Alves <palves@redhat.com>
6897
6898 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6899 $srcdir.
6900 * configure: Regenerate.
6901
111dfaae
SDJ
69022012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6903
6904 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6905 declaration.
6906 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6907
4fb2c64a
JK
69082012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6909
6910 Fix compilation compatibility with python-2.4
6911 * python/py-type.c (convert_field): Cast ADDRSTRING for
6912 PyObject_SetAttrString as non-const. New comment.
6913
6328eb38
TT
69142012-04-19 Tom Tromey <tromey@redhat.com>
6915
6916 * top.c (quit_target): Use all_cleanups.
6917 * main.c (captured_command_loop): Use all_cleanups.
6918 * exceptions.c (throw_exception): Use all_cleanups.
6919
c971b7fa
PA
69202012-04-19 Pedro Alves <palves@redhat.com>
6921
6922 * Makefile.in (GNULIB_BUILDDIR): New.
6923 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6924 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6925 (CLEANDIRS). Remove gnulib/import.
6926 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6927 (all-lib): Ditto.
6928 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6929 (gnulib/import/Makefile): Replace gnulib/import with
6930 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6931 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6932 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6933 acx_configure_dir.m4.
6934 * acinclude.m4: Include acx_configure_dir.m4.
6935 * acx_configure_dir.m4: New file.
6936 * aclocal.m4: Regenerate.
a09130f9
PA
6937 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6938 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6939 (GNULIB): New variable.
6940 (GNULIB_STDINT_H): Adjust.
6941 (AC_OUTPUT): Don't output gnulib/Makefile.
6942 * gdb/defs.h: Include build-gnulib/config.h.
6943 * aclocal.m4: Regenerate.
6944 * config.in: Regenerate.
6945 * configure: Regenerate.
6946
6947 * gnulib/Makefile.in: New file.
6948 * gnulib/configure.ac: New file.
6949 * gnulib/aclocal.m4: New file.
6950 * gnulib/config.in: New file.
6951 * gnulib/configure: New file.
c971b7fa
PA
6952 * gnulib/: Re-run gnulib-tool to adjust.
6953
b10faa68
DE
69542012-04-19 Doug Evans <dje@google.com>
6955
6956 * cleanups.h (struct cleanup): Move to cleanups.c.
6957 (make_cleanup_dtor_ftype): New typedef.
6958 (make_cleanup_dtor): Use it.
6959 (ALL_CLEANUPS): Replace with ...
6960 (all_cleanups): ... this. Declare. All uses updated.
6961 * cleanups.c: #include "gdb_assert.h".
6962 (sentinel_cleanup): New static global.
6963 (SENTINEL_CLEANUP): Define.
6964 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6965 (make_my_cleanup2): Assert result is non-NULL.
6966 (all_cleanups): New function.
6967 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6968 of NULL.
6969
d8c267cc
PA
69702012-04-19 Pedro Alves <palves@redhat.com>
6971
6972 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6973 Adjust paths to gnulib imported files.
6974
809277f8
PA
69752012-04-19 Pedro Alves <palves@redhat.com>
6976
6977 * gnulib/: Move whole directory ...
6978 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6979 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6980 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6981 (aclocal_m4_deps): Adjust.
6982 * aclocal.m4: Regenerate.
6983 * configure: Regenerate.
6984 * configure.ac: Adjust AC_OUTPUT output.
6985
aad9eab9
YQ
69862012-04-19 Yao Qi <yao@codesourcery.com>
6987
6988 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6989 (vec.o): New rule.
6990 * vec.c: Move it ...
6991 * common/vec.c: ... here.
6992 * vec.h: Move it ...
6993 * common/vec.h: ... here.
6994
48fe4669
YQ
69952012-04-19 Yao Qi <yao@codesourcery.com>
6996
6997 * gdb-code-style.el: New.
6998
770d76d7
PA
69992012-04-18 Pedro Alves <palves@redhat.com>
7000
7001 Update gnulib from latest git.
7002 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7003
7004 * gnulib/Makefile.am: Update.
7005 * gnulib/dummy.c: Update.
7006 * gnulib/extra/arg-nonnull.h: Update.
7007 * gnulib/extra/c++defs.h: Update.
7008 * gnulib/extra/update-copyright: Update.
7009 * gnulib/extra/warn-on-use.h: Update.
7010 * gnulib/inttypes.in.h: Update.
7011 * gnulib/m4/00gnulib.m4: Update.
7012 * gnulib/m4/extensions.m4: Update.
7013 * gnulib/m4/gnulib-cache.m4: Update.
7014 * gnulib/m4/gnulib-common.m4: Update.
7015 * gnulib/m4/gnulib-comp.m4: Update.
7016 * gnulib/m4/gnulib-tool.m4: Update.
7017 * gnulib/m4/include_next.m4: Update.
7018 * gnulib/m4/inttypes-pri.m4: Update.
7019 * gnulib/m4/inttypes.m4: Update.
7020 * gnulib/m4/longlong.m4: Update.
7021 * gnulib/m4/memchr.m4: Update.
7022 * gnulib/m4/memmem.m4: Update.
7023 * gnulib/m4/mmap-anon.m4: Update.
7024 * gnulib/m4/multiarch.m4: Update.
7025 * gnulib/m4/onceonly.m4: Update.
7026 * gnulib/m4/stddef_h.m4: Update.
7027 * gnulib/m4/stdint.m4: Update.
7028 * gnulib/m4/string_h.m4: Update.
7029 * gnulib/m4/warn-on-use.m4: Update.
7030 * gnulib/m4/wchar_h.m4: Update.
7031 * gnulib/m4/wchar_t.m4: Update.
7032 * gnulib/m4/wint_t.m4: Update.
7033 * gnulib/memchr.c: Update.
7034 * gnulib/memmem.c: Update.
7035 * gnulib/stddef.in.h: Update.
7036 * gnulib/stdint.in.h: Update.
7037 * gnulib/str-two-way.h: Update.
7038 * gnulib/string.in.h: Update.
7039 * gnulib/wchar.in.h: Update.
7040
7041 * gnulib/extra/arg-nonnull.h: Delete.
7042 * gnulib/extra/c++defs.h: Delete.
7043 * gnulib/extra/warn-on-use.h: Delete.
7044 * gnulib/m4/wchar_h.m4: Delete.
7045 * gnulib/m4/wint_t.m4: Delete.
7046 * gnulib/wchar.in.h: Delete.
7047
7048 * gnulib/extra/snippets/arg-nonnull.h: New.
7049 * gnulib/extra/snippets/c++defs.h: New.
7050 * gnulib/extra/snippets/warn-on-use.h: New.
7051
7052 * aclocal.m4: Regenerate.
7053 * config.in: Regenerate.
7054 * configure: Regenerate.
7055 * gnulib/Makefile.in: Regenerate.
7056
174e088e
PA
70572012-04-18 Pedro Alves <palves@redhat.com>
7058
7059 Reimport the update-copyright module from gnulib
7060 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7061
7062 * configure: Regenerate.
7063 * gnulib/Makefile.am: Update.
7064 * gnulib/Makefile.in: Regenerate.
7065 * gnulib/extra/update-copyright: Update.
7066 * gnulib/m4/gnulib-cache.m4: Update.
7067 * gnulib/m4/gnulib-comp.m4: Update.
7068
7f533142
JB
70692012-04-18 Tristan Gingold <gingold@adacore.com>
7070
7071 * configure.ac (aix): Put -lpthread into libs.
7072 * configure: Regenerate.
7073
001822aa
TT
70742012-04-18 Tom Tromey <tromey@redhat.com>
7075
7076 * linespec.c (convert_linespec_to_sals): Don't use
7077 SYMBOL_OBJ_SECTION.
7078 (compare_msymbols): Arguments are minsym_and_objfile, not
7079 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7080
db026a31
PA
70812012-04-18 Pedro Alves <palves@redhat.com>
7082
7083 Revert gnulib/ part of:
7084 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7085 Copyright year update in most files (performed by copyright.sh).
7086
12df843f
JK
70872012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7088
7089 Fix 64-bit constants on 32-bit hosts.
7090 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7091 from unsigned long to ULONGEST.
7092 (read_signed_leb128): Change declaration return type from long to
7093 LONGEST.
7094 (dwarf2_const_value_attr): Change declaration parameter value from long
7095 to LONGEST.
7096 (dwarf2_compute_name): Change variable value from long to LONGEST.
7097 (read_unsigned_leb128): Change return type, variable result and some
7098 casts from unsigned long to ULONGEST.
7099 (read_signed_leb128): Change return type, variable result and some
7100 casts from long to LONGEST.
7101 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7102 value from long to LONGEST.
7103 (dwarf2_const_value): Change variable value from long to LONGEST.
7104 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7105 plongest and hex_string.
7106 * symtab.h (struct general_symbol_info): Change ivalue from long to
7107 LONGEST, remove the comment.
7108 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7109 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7110
14e75d8e
JK
71112012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7112
7113 PR symtab/7259:
7114 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7115 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7116 (ada_discrete_type_low_bound): Fix function comment. Use
7117 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7118 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7119 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7120 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7121 Use TYPE_FIELD_ENUMVAL.
7122 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7123 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7124 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7125 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7126 TYPE_CODE_ENUM.
7127 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7128 * dwarf2read.c (process_enumeration_scope): Likewise.
7129 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7130 field.bitpos.
7131 (class StructMainTypePrettyPrinter): Support also
7132 FIELD_LOC_KIND_ENUMVAL.
7133 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7134 TYPE_CODE_ENUM.
7135 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7136 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7137 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7138 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7139 field enumval.
7140 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7141 accommodate enumval.
7142 (struct call_site): Adjust loc_kind to accommodate enumval.
7143 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7144 (TYPE_FIELD_ENUMVAL): New macros.
7145 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7146 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7147 TYPE_CODE_ENUM.
7148 * p-typeprint.c (pascal_type_print_base): Likewise.
7149 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7150 enumval.
7151 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7152 * python/py-type.c (convert_field): New variable addrstring. Use
7153 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7154 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7155 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7156 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7157 TYPE_CODE_ENUM.
7158 * valprint.c (generic_val_print): Likewise.
7159
380bca97
DE
71602012-04-17 Doug Evans <dje@google.com>
7161
dcc07052
DE
7162 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7163
380bca97
DE
7164 * dwarf2read.c: Whitespace fixes.
7165 (lookup_signatured_type): Tweak comment.
7166 (get_die_type_at_offset): Fix comment.
7167
ec92004f
JB
71682012-04-17 Joel Brobecker <brobecker@adacore.com>
7169
7170 * xcoffread.c (xcoff_secnum_to_sections): New function.
7171 (secnum_to_section, secnum_to_bfd_section): Reimplement
7172 using xcoff_secnum_to_sections. Rename "secnum" parameter
7173 into "n_scnum".
7174 (RECORD_MINIMAL_SYMBOL): Delete.
7175 (record_minimal_symbol): New function.
7176 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7177 by call to record_minimal_symbol and set misc_func_recorded
7178 to 1. Set last_csect_sec to the XCOFF section index instead
7179 of GDB's section_offset index. Update calls to
7180 prim_record_minimal_symbol_and_info to pass the BFD section
7181 as well.
7182
40301fb7
JB
71832012-04-17 Joel Brobecker <brobecker@adacore.com>
7184
7185 * xcoffread.c (read_xcoff_symtab): Delete variables
7186 last_csect_val and last_csect_sec and associated code.
7187
e0088cfd
DE
71882012-04-17 Doug Evans <dje@google.com>
7189
58d5e2c3
DE
7190 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7191 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7192 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7193 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7194
c27f5738
DE
7195 * cleanups.h: New file.
7196 * cleanups.c: New file.
7197 * Makefile.in (SFILES): Add cleanups.c.
7198 (HFILES_NO_SRCDIR): Add cleanups.h.
7199 (COMMON_OBS): Add cleanups.o.
7200 * defs.h (struct cleanup): Moved to cleanups.h.
7201 (do_cleanups,do_final_cleanups): Ditto.
7202 (discard_cleanups,discard_final_cleanups): Ditto
7203 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7204 (save_cleanups,save_final_cleanups): Ditto.
7205 (restore_cleanups,restore_final_cleanups): Ditto.
7206 (null_cleanup): Ditto.
7207 (make_my_cleanup,make_my_cleanup2): Ditto.
7208 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7209 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7210 (do_cleanups,do_final_cleanups): Ditto.
7211 (discard_cleanups,discard_final_cleanups): Ditto
7212 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7213 (save_cleanups,save_final_cleanups): Ditto.
7214 (restore_cleanups,restore_final_cleanups): Ditto.
7215 (null_cleanup): Ditto.
7216 (make_my_cleanup,make_my_cleanup2): Ditto.
7217 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7218
e0088cfd
DE
7219 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7220 make_my_cleanup.
7221 (make_cleanup_dyn_string_delete): Ditto.
7222 (make_cleanup_ui_file_delete): Ditto.
7223 (make_cleanup_ui_out_redirect_pop): Ditto.
7224 (make_cleanup_free_section_addr_info): Ditto.
7225 (make_cleanup_restore_integer): Ditto.
7226 (make_cleanup_unpush_target): Ditto.
7227 (make_cleanup_value_free_to_mark): Ditto.
7228 (make_cleanup_value_free): Ditto.
7229 (make_cleanup_free_so): Ditto.
7230
4dc84fd1
JK
72312012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7232
7233 New option "set debug auto-load".
7234 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7235 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7236 (auto_load_safe_path_vec_update)
7237 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7238 if DEBUG_AUTO_LOAD.
7239 (file_is_auto_load_safe): New parameters debug_fmt and ....
7240 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7241 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7242 caller by explanatory string.
7243 (_initialize_auto_load): Register "set debug auto-load".
7244 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7245 and ....
7246 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7247 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7248 by explanatory string.
7249 * main.c (captured_main): Likewise.
7250 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7251 (source_section_scripts): Likewise.
7252
bccbefd2
JK
72532012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7254
7255 New option "set auto-load safe-path".
7256 * NEWS: New commands "set auto-load safe-path"
7257 and "show auto-load safe-path".
7258 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7259 (auto_load_safe_path, auto_load_safe_path_vec)
7260 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7261 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7262 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7263 (source_gdb_script_for_objfile): New variable is_safe. Call
7264 file_is_auto_load_safe. Return if it is not.
7265 (struct loaded_script): New field loaded.
7266 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7267 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7268 output "Missing" to "No".
7269 (_initialize_auto_load): New variable cmd. Initialize
7270 auto_load_safe_path. Register "set auto-load safe-path",
7271 "show auto-load safe-path" and "add-auto-load-safe-path".
7272 * auto-load.h (maybe_add_script): Add parameter loaded.
7273 (file_is_auto_load_safe): New declaration.
7274 * config.in: Regenerate.
7275 * configure: Regenerate.
7276 * configure.ac: New parameters --with-auto-load-safe-path
7277 and --without-auto-load-safe-path.
7278 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7279 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7280 * main.c (captured_main): Check file_is_auto_load_safe for
7281 LOCAL_GDBINIT.
7282 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7283 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7284 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7285 not.
7286
bf88dd68
JK
72872012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7288
7289 auto-load: Implementation.
7290 * NEWS: New descriptions for "info auto-load",
7291 "info auto-load gdb-scripts", "info auto-load python-scripts",
7292 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7293 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7294 and "show auto-load-scripts". New description for "set auto-load",
7295 "show auto-load", "set auto-load gdb-scripts",
7296 "show auto-load gdb-scripts", "set auto-load python-scripts",
7297 "show auto-load python-scripts", "set auto-load local-gdbinit",
7298 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7299 "show auto-load libthread-db".
7300 * auto-load.c: Remove include python/python-internal.h. Add includes
7301 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7302 cli/cli-setshow.h.
7303 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7304 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7305 (gdbpy_global_auto_load): Rename to ...
7306 (global_auto_load): ... here.
7307 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7308 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7309 (script_language_gdb, source_gdb_script_for_objfile): New.
7310 (struct loaded_script): New field language.
7311 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7312 LANGUAGE.
7313 (maybe_add_script): Add parameter language. Drop redundant
7314 entry.full_path initialization. Initialize entry.language and
7315 (*slot)->language.
7316 (auto_load_objfile_script): Change parameter suffix to language.
7317 Remove the call of maybe_add_script.
7318 Call language->source_script_for_objfile.
7319 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7320 New.
7321 (collect_matching_scripts): Adjust it for
7322 struct collect_matching_scripts_data.
7323 (auto_load_info_scripts_pattern_nl): New variable.
7324 (info_auto_load_scripts): Rename to ...
7325 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7326 for struct collect_matching_scripts_data.
7327 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7328 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7329 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7330 (auto_load_info_cmdlist_get): New.
7331 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7332 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7333 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7334 "info auto-load local-gdbinit".
7335 * auto-load.h (struct script_language): New.
7336 (gdbpy_global_auto_load): Rename to ...
7337 (global_auto_load): ... here.
7338 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7339 (auto_load_local_gdbinit_loaded): New declarations.
7340 (maybe_add_script): New parameter language.
7341 (auto_load_objfile_script): Change parameter suffix to language.
7342 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7343 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7344 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7345 declarations.
7346 * linux-thread-db.c: Include auto-load.h and ctype.h.
7347 (auto_load_thread_db, show_auto_load_thread_db): New.
7348 (struct thread_db_info): New field filename.
7349 (delete_thread_db_info): Call xfree for FILENAME.
7350 (try_thread_db_load): Initialize FILENAME.
7351 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7352 if !AUTO_LOAD_THREAD_DB.
7353 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7354 (_initialize_thread_db): Install auto_load_thread_db
7355 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7356 as "info auto-load libthread-db".
7357 * main.c (captured_main): Rename gdbpy_global_auto_load to
7358 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7359 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7360 (print_gdb_help): Extend the help for 'local init file'.
7361 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7362 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7363 (auto_load_scripts): Rename to ...
7364 (auto_load_python_scripts): ... here, update the comment.
7365 (gdbpy_load_auto_script_for_objfile): New declaration.
7366 (show_auto_load_python_scripts, script_language_python)
7367 (gdbpy_load_auto_script_for_objfile): New.
7368 (source_section_scripts): Refactor the code.
7369 (load_auto_scripts_for_objfile): Rename to ...
7370 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7371 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7372 (info_auto_load_python_scripts): New.
7373 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7374 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7375 Register "set auto-load-scripts" as its deprecated alias. Register
7376 "info auto-load python-scripts". Register "info auto-load-scripts" as
7377 its deprecated alias.
7378 (load_auto_scripts_for_objfile): Rename to ...
7379 (gdbpy_load_auto_scripts_for_objfile): ... here.
7380 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7381 (gdbpy_load_auto_scripts_for_objfile): ... here.
7382
e2207b9a
JK
73832012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7384
7385 auto-load: Move files.
7386 * Makefile.in (SFILES): Add auto-load.c.
7387 (HFILES_NO_SRCDIR): Add auto-load.h.
7388 (COMMON_OBS): Add auto-load.o.
7389 (distclean): Change .gdbinit for gdb-gdb.gdb.
7390 * auto-load.c: New file, with parts from python/py-auto-load.c.
7391 * auto-load.h: New file, with parts from python/python.h.
7392 * configure: Regenerate.
7393 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7394 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7395 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7396 * main.c: Include auto-load.h.
7397 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7398 command.h, observer.h and progspace.h to auto-load.c. Add include
7399 auto-load.h.
7400 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7401 (struct loaded_script, auto_load_pspace_data)
7402 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7403 (hash_loaded_script_entry, eq_loaded_script_entry)
7404 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7405 (maybe_add_script): Move to auto-load.c.
7406 (source_section_scripts): Change maybe_add_script parameters passing,
7407 use script_not_found_warning_print.
7408 (clear_section_scripts, auto_load_objfile_script)
7409 (auto_load_new_objfile, loaded_script_ptr)
7410 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7411 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7412 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7413 auto_load_new_objfile and info_auto_load_scripts initizations to
7414 auto-load.c.
7415 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7416
e4ab2fad
JK
74172012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7418
7419 Code cleanup.
7420 * charset.c (find_charset_names): Remove variables ix and elt.
7421 Use free_char_ptr_vec.
7422 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7423 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7424 debugdir_end. New variable debugdir_len.
7425 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7426 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7427 declarations.
7428 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7429 and elt. Use free_char_ptr_vec.
7430 * source.c (add_path): Remove variables argv, arg and argv_index.
7431 New variables dir_vec, back_to, ix and name.
7432 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7433 make_cleanup_freeargv. Remove variable separator. Simplify the code
7434 no longer expecting DIRNAME_SEPARATOR.
7435 (openp): Remove variable p, p1 and len. New variables dir_vec,
7436 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7437 no longer expecting DIRNAME_SEPARATOR.
7438 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7439 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7440 debugdir_end.
7441 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7442 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7443 (dirnames_to_char_ptr_vec): New functions.
7444
5ee4ed9f
JK
74452012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7446
7447 Code cleanup.
7448 * source.c (add_path): Remove always true conditional 'p == 0' and
7449 unindent its code block.
7450
f41f5e61
PA
74512012-04-17 Pedro Alves <palves@redhat.com>
7452
7453 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7454 (FIELD_BITPOS_LVAL): ... this.
7455 (FIELD_BITPOS): New.
7456 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7457 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7458 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7459 SET_FIELD_BITPOS.
7460 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7461 SET_FIELD_BITPOS.
7462 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7463 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7464 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7465 SET_FIELD_BITPOS.
7466
945b3a32
JK
74672012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7468
7469 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7470 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7471 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7472 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7473 * jv-lang.c (java_link_class_type): Likewise, once.
7474 * stabsread.c (read_enum_type): Likewise.
7475
42476b70
YQ
74762012-04-16 Yao Qi <yao@codesourcery.com>
7477
7478 * common/agent.c (agent_run_command): Add one more parameter `len'.
7479 Update callers.
7480 * common/agent.h: Update declaration.
7481 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7482 Update.
7483 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7484
8264ba82
AG
74852012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7486
7487 PR mi/13393
7488 * value.c (value_actual_type): New function.
7489 * value.h (value_actual_type): New declaration.
7490 * varobj.c (update_type_if_necessary): New function.
7491 (varobj_create): Call value_actual_type instead of
7492 value_type.
7493 (install_dynamic_child): distinct changed and type changed MI variable
7494 objects.
7495 (update_dynamic_varobj_children): Updated for install_dynamic_child
7496 change. All callers updated.
a09130f9 7497 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7498 the value changed and RTTI is used to determine the type.
7499 (create_child_with_value): Call value_actual_type instead of
7500 value_type.
a09130f9 7501 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7502 specify whether the given value should be casted to enclosing type.
7503 All callers updated.
7504
55a8c076
YQ
75052012-04-14 Yao Qi <yao@codesourcery.com>
7506
7507 Import gnulib module inttypes from git
7508 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7509 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7510 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7511 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7512 * aclocal.m4, config.in, configure: Regenerated.
7513 * gnulib/Makefile.am: Update.
7514 * gnulib/Makefile.in: Update.
7515 * gnulib/m4/gnulib-cache.m4: Update.
7516 * gnulib/m4/gnulib-comp.m4: Update.
7517 * gnulib/inttypes.in.h: New.
7518 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7519 * gnulib/m4/inttypes.m4: New.
55a8c076 7520
ca7781d2
LM
75212012-04-13 Luis Machado <lgustavo@codesourcery.com>
7522
7523 * infrun.c (resume): Update PC address to the real PC after
7524 preparing to do displaced stepping.
7525
e319fa28
DE
75262012-04-12 Doug Evans <dje@google.com>
7527
7528 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7529 All callers updated.
7530
15add3f5
MK
75312012-04-12 Mark Kettenis <kettenis@gnu.org>
7532
7533 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7534
52dc124a
DE
75352012-04-12 Doug Evans <dje@google.com>
7536
0e50663e
DE
7537 * dwarf2read.c (create_all_type_units): Renamed from
7538 create_debug_types_hash_table. All callers updated.
7539
52dc124a
DE
7540 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7541 local type_sig to sig_type, type_offset to type_offset_in_tu.
7542 (hash_signatured_type): Renamed from hash_type_signature,
7543 all callers updated.
7544 (eq_signatured_type): Renamed from eq_type_signature,
7545 all callers updated.
7546 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7547 (process_enumeration_scope): Ditto.
7548 (lookup_signatured_type_at_offset): Ditto.
7549 (load_full_type_unit, read_signatured_type): Ditto.
7550
248fd3bf
YQ
75512012-04-12 Yao Qi <yao@codesourcery.com>
7552
7553 * remote.c (async_remote_interrupt): Correct function name in
7554 debug message.
7555 (async_remote_interrupt_twice): Ditto.
7556
bc3aa6c3
DE
75572012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7558
7559 * source.c (find_and_open_source): Consistently pass resulting
7560 full path through xfullpath.
7561
9e529e1d
JK
75622012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7563
7564 Provide more specific displaced-stepping memory error message.
7565 * infrun.c (displaced_step_prepare): New variable status. Call
7566 target_read_memory instead of read_memory, provide more specific
7567 error message.
7568
82e0cec1
TG
75692012-04-11 Tristan Gingold <gingold@adacore.com>
7570
7571 PR gdb/13901
7572 * darwin-nat.c (darwin_execvp): Revert previous patch.
7573
d987a266
TG
75742012-04-11 Tristan Gingold <gingold@adacore.com>
7575
7576 PR gdb/13901
7577 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7578 in case of change.
7579
016b7430
TG
75802012-04-11 Tristan Gingold <gingold@adacore.com>
7581
7582 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7583 warning.
7584
06fc020f
SCR
75852012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7586
7587 New command 'explore' which helps explore values and types in
7588 scope.
7589 * NEWS: Add an entry about the new 'explore' command.
7590 * data-directory/Makefile.in: Add gdb/command/explore.py
7591 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7592 command using the GDB Python API.
06fc020f 7593
de0919f8 75942012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7595
7596 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7597 extension in jump target calculation.
7598
de0919f8 75992012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7600
7601 * mips-tdep.c (mips32_next_pc): Handle JALX.
7602
2f26ef89
YQ
76032012-04-10 Yao Qi <yao@codesourcery.com>
7604
7605 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7606
2e505b66
YQ
76072012-04-10 Yao Qi <yao@codesourcery.com>
7608
7609 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7610 and gnulib/m4/gnulib-tool.m4.
7611
0d99eb77
DE
76122012-04-10 Doug Evans <dje@google.com>
7613
7614 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7615 (load_partial_dies): Clarify comment.
7616 (find_partial_die): Support rereading type units.
7617 Clarify CU handling, if we know offset is in CU, don't search for the
7618 containing CU. Add comment regarding memory waste.
7619
9a82b8ff
L
76202012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7621
7622 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7623 i386/x32-avx and i386/x32-avx-linux.
7624 (i386/x32-expedite): New.
7625 (i386/x32-linux-expedite): Likewise.
7626 (i386/x32-avx-expedite): Likewise.
7627 (i386/x32-avx-linux-expedite): Likewise.
7628 ($(outdir)/i386/x32.dat): Likewise.
7629 ($(outdir)/i386/x32-linux.dat): Likewise.
7630 ($(outdir)/i386/x32-avx.dat): Likewise.
7631 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7632
7633 * features/i386/x32-avx-linux.xml: New file.
7634 * features/i386/x32-avx.xml: Likewise.
7635 * features/i386/x32-core.xml: Likewise.
7636 * features/i386/x32-linux.xml: Likewise.
7637 * features/i386/x32.xml: Likewise.
7638
7639 * features/i386/x32-avx-linux.c: New. Generated.
7640 * features/i386/x32-avx.c: Likewise.
7641 * features/i386/x32-linux.c: Likewise.
7642 * features/i386/x32.c: Likewise.
7643 * regformats/i386/x32-avx-linux.dat: Likewise.
7644 * regformats/i386/x32-avx.dat: Likewise.
7645 * regformats/i386/x32-linux.dat: Likewise.
7646 * regformats/i386/x32.dat: Likewise.
7647
ee41036f
TG
76482012-04-10 Tristan Gingold <gingold@adacore.com>
7649
7650 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7651 code to kill the inferior.
7652
a7aa5b8a
MK
76532012-04-09 Mark Kettenis <kettenis@gnu.org>
7654
7655 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7656 defines.
7657 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7658 defines.
a09130f9 7659 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7660 (yyvsp): New defines.
7661 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7662 defines.
7663 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7664 defines.
7665 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7666 defines.
7667 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7668 defines.
7669 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7670 defines.
7671
fb57d452
MK
76722012-04-09 Mark Kettenis <kettenis@gnu.org>
7673
a09130f9 7674 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7675 (sparc64_store_arguments): Fix coding style.
7676
cdc7b32f
MK
76772012-04-07 Mark Kettenis <kettenis@gnu.org>
7678
7679 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7680 complex floats, adjust some related comments and tighten a related
7681 assertion.
7682 (sparc64_extract_return_value): Handle complex floats.
7683
7adf1e79
DE
76842012-04-07 Doug Evans <dje@google.com>
7685
7686 * dwarf2read.c (load_partial_dies): Change condition to assert.
7687
50f1ae7b
DE
76882012-04-06 Doug Evans <dje@google.com>
7689
7690 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7691 "mov %rsp,%rbp".
7692
55fa75c3
KB
76932012-04-05 Kevin Buettner <kevinb@redhat.com>
7694
7695 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7696 fencepost error.
7697 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7698 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7699 architecture.
7700
40e084e1
KS
77012012-04-05 Keith Seitz <keiths@redhat.com>
7702
7703 * linespec.c (decode_compound): Remove.
7704 (enum offset_relative_sign): New enum.
7705 (struct line_offset): New struct.
7706 (struct linespec): New struct.
7707 (struct linespec_state): Move file_symtabs,
7708 user_filename, and user_function into struct linespec.
7709 Make result an anonymous struct holding vectors of
7710 symbolp and minsym_and_objfile_d.
7711 Add language member.
7712 (enum ls_token_type): New enum.
7713 (linespec_keywords): New array.
7714 (struct ls_token): New struct.
7715 (struct ls_parser): New struct.
7716 (linespec_lexer_lex_number): New function.
7717 (linespec_lexer_lex_keyword): New function.
7718 (is_ada_operator): New function.
7719 (skip_quote_char): New function.
7720 (copy_token_string): New function.
7721 (is_closing_quote_enclosed): New function.
7722 (find_parameter_list_end): New function.
7723 (linespec_lexer_lex_string): New function.
7724 (linespec_lexer_lex_one): New function.
7725 (linespec_lexer_consume_token): New function.
7726 (linespec_lexer_peek_token): New function.
7727 (cplusplus_error): Remove unused function.
7728 (find_methods): Update comment.
7729 (find_toplevel_char): Return const.
7730 (is_objc_method_format): Remove unused function.
7731 (find_toplevel_string): New function.
7732 (is_linespec_boundary): Remove.
7733 (symbol_not_found_error): New function.
7734 (find_method_overload_end): Remove function.
7735 (unexpected_linespec_error): New function.
7736 (keep_name_info): Remove.
7737 (linespec_parse_line_offset): New function.
7738 (linespec_parse_basic): New function.
7739 (canonicalize_linespec): New function.
7740 (decode_line_internal): Remove.
7741 (create_sals_line_offset): New function adapted from
7742 decode_all_digits.
7743 (convert_linespec_to_sals): New function.
7744 (parse_linespec): New function.
7745 (linespec_parser_new): New function.
7746 (linespec_state_destructor): Change parameter type to
7747 struct linespec_state *.
7748 Add language parameter.
7749 Remove freeing of moved members.
7750 (linespec_parser_delete): New function.
7751 (decode_line_full): Use parse_linespec and linespec_parser_new.
7752 (decode_line_1): Likewise.
7753 (decode_indirect): Rename to ...
7754 (linespec_expression_to_pc): ... this and rewrite
7755 to simply find CORE_ADDR, storing this result for later
7756 conversion to SALs.
7757 (locate_first_half): Remove.
7758 (deocde_objc): Add parameter LS.
7759 Initialize new struct collect_info members.
7760 Handle minimal symbols, too.
7761 (decode_compound): Delete.
7762 (lookup_prefix_sym): Rewrite.
7763 (compare_msymbols): New function.
7764 (find_method): Rewrite.
7765 Do not call cplusplus_error.
7766 (symtabs_from_filename): Rewrite.
7767 (collect_function_symbols): Delete.
7768 (find_function_symbols): Rewrite without ARGPTR-style
7769 processing.
7770 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7771 (decode_dollar): Adapted and renamed to ...
7772 (linespec_parse_variable): ... this.
7773 (find_linespec_symbols): New function.
7774 (decode_label): Adapted and renamed to ...
7775 (find_label_symbols): ... this.
7776 (decode_digits_list_mode): Add and use LS argument.
7777 (decode_digits_ordinary): Likewise.
7778 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7779 If in list mode, allow any symbol class. Otherwise, only
7780 permit LOC_BLOCK symbols.
7781 (minsym_found): Update comments.
7782 (search_minsyms_for_name): Do not convert the matching symbol
7783 into a SAL. Simply push the symbol and objfile into the
7784 result vector.
7785 (decode_variable): Delete. Contents adapted into
7786 find_linespec_symbols.
7787
7788 * cp-support.c (SKIP_SPACE): Remove.
7789 (operator_tokens): Remove unused global.
7790 (cp_validate_operator): Remove.
7791 * cp-support.h (cp_validate_operator): Remove declaration.
7792
a72c8f6a
JK
77932012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7794
7795 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7796 for TYPE_VPTR_FIELDNO.
7797 * valprint.c (valprint_check_validity): Make it global, move the
7798 function comment ...
7799 * value.h (valprint_check_validity): ... to this new declaration.
7800
cf9bb588
TG
78012012-04-02 Tristan Gingold <gingold@adacore.com>
7802
7803 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7804 the STATE32 api for i386 state.
7805 (i386_darwin_store_inferior_registers): Likewise.
7806
17092398
TG
78072012-04-02 Tristan Gingold <gingold@adacore.com>
7808
7809 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7810 SS offset.
7811 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7812 format_string.
7813
ece0061f
TG
78142012-04-02 Tristan Gingold <gingold@adacore.com>
7815
7816 PR gdb/13901
d987a266 7817 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7818
cf65ecd3
JK
78192012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7820
7821 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7822
9bc3523d
TT
78232012-03-30 Tom Tromey <tromey@redhat.com>
7824
7825 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7826 of TRY_CATCH. Fix error handling.
7827 * python/py-value.c (convert_value_from_python): Move 'old'
7828 declaration to innermost scope.
7829
b1ed564a
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 (ada_make_symbol_completion_list): Rename parameters
7835 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7836 Adjust code accordingly.
7837
cb8e9b97
JB
78382012-03-29 Joel Brobecker <brobecker@adacore.com>
7839
7840 * ada-lang.c (symbol_completion_add): Rename parameter
7841 "encoded" into "encoded_p". Ajust code and documentation
7842 accordingly.
7843
c0af1706
JB
78442012-03-29 Joel Brobecker <brobecker@adacore.com>
7845 Andrey Smirnov <andrew.smirnov@gmail.com>
7846
7847 -Wshadow warning fix.
7848 * ada-lang.c (symbol_completion_add): Rename parameter
7849 "wild_match" into wild_match_p. Update code and documentation
7850 accordingly.
7851
6ea35997
JB
78522012-03-29 Joel Brobecker <brobecker@adacore.com>
7853
7854 * ada-lang.c (symbol_completion_match): Rename parameter
7855 "encoded" into "encoded_p". Ajust code and documentation
7856 accordingly.
7857
e701b3c0
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 (symbol_completion_match): Rename parameter
7863 "wild_match" into "wild_match_p". Adjust code and function
7864 documentation accordingly.
7865
5e2336be
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 (ada_lookup_encoded_symbol): Rename parameter
7871 "symbol_info" into "info". Adjust code accordingly.
7872 (ada_lookup_symbol): Likewise.
7873
9f88c959
JB
78742012-03-29 Joel Brobecker <brobecker@adacore.com>
7875
7876 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7877 of this function's documentation.
7878
82ccd55e
JB
78792012-03-29 Joel Brobecker <brobecker@adacore.com>
7880 Andrey Smirnov <andrew.smirnov@gmail.com>
7881
7882 -Wshadow warning fix.
7883 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7884 variable into "wild_match_p". Adjust code accordingly.
7885
d0a8ab18
JB
78862012-03-29 Joel Brobecker <brobecker@adacore.com>
7887 Andrey Smirnov <andrew.smirnov@gmail.com>
7888
7889 -Wshadow warning fix.
7890 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7891 parameter into "wild_match_p". Adjust code accordingly.
7892 Document this parameter in the function description.
7893
48b78332
JB
78942012-03-29 Joel Brobecker <brobecker@adacore.com>
7895 Andrey Smirnov <andrew.smirnov@gmail.com>
7896
7897 -Wshadow warning fix.
7898 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7899 "wild_match" parameter to "wild_match_p" (-Wshadow).
7900
2e6e0353
JB
79012012-03-29 Joel Brobecker <brobecker@adacore.com>
7902
7903 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7904 in function documentation.
7905
dc4024cd
JB
79062012-03-29 Joel Brobecker <brobecker@adacore.com>
7907 Andrey Smirnov <andrew.smirnov@gmail.com>
7908
7909 -Wshadow warning fix.
7910 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7911 variable into wild_match_p. Adjust code accordingly.
7912
6c88661c
JB
79132012-03-29 Joel Brobecker <brobecker@adacore.com>
7914 Andrey Smirnov <andrew.smirnov@gmail.com>
7915
7916 * ada-valprint.c (ada_val_print_1): Move the code handling
7917 TYPE_CODE_ENUM inside its own lexical block. Declare
7918 variables len and val there, instead of in the function's
7919 top level block. Avoid declaring deref_val again in a way
7920 that shadows another variable of the same name declared
7921 in one of the up-level blocks. Just re-use the up-level
7922 variable instead.
7923
4e5c77fe
JB
79242012-03-29 Joel Brobecker <brobecker@adacore.com>
7925
7926 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7927 Replace block_found argument by symbol_info. Adjust
7928 implementation accordingly. Add function documentation.
7929 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7930 Fix documentation.
7931 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7932 * ada-exp.y (write_object_renaming): Adjust to new
7933 ada_lookup_encoded_symbol API.
7934
1c0ac8c7
JB
79352012-03-29 Joel Brobecker <brobecker@adacore.com>
7936
7937 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7938 documentation.
7939
2aaed979
KB
79402012-03-28 Rathish C <rathish.c@kpitcummins.com>
7941
7942 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7943 (v850_register_name): Add the mpu and fpu register names.
7944 (v850e_register_name): Add the mpu and fpu register names.
7945 (v850e2_register_name): New function.
a09130f9 7946 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7947 bfd_mach_v850e2v3.
7948
927fbba6
JB
79492012-03-28 Joel Brobecker <brobecker@adacore.com>
7950
7951 * NEWS: Add entry for Ada varobj support.
7952
d32cafc7
JB
79532012-03-28 Joel Brobecker <brobecker@adacore.com>
7954
7955 * varobj.c (default_value_is_changeable_p): New function,
7956 extracted from varobj_value_is_changeable_p. Add declaration.
7957 (ada_value_is_changeable_p): New function, extracted from
7958 varobj_value_is_changeable_p. Add declaration.
7959 (struct language_specific): New field "value_is_changeable_p".
7960 (languages): Add entries for new field.
7961 (varobj_create): Set language before calling install_new_value.
7962 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7963 "value_is_changeable_p" language callback.
7964
181875a4
JB
79652012-03-28 Joel Brobecker <brobecker@adacore.com>
7966
7967 * ada-varobj.h, ada-varobj.c: New files.
7968 * Makefile.in (SFILES): Add ada-varobj.c.
7969 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7970 (COMMON_OBS): Add ada-varobj.o.
7971
7a290c40
JB
79722012-03-28 Joel Brobecker <brobecker@adacore.com>
7973
7974 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7975 (struct language_specific): New field "value_has_mutated".
7976 (languages): Set field "value_has_mutated" in each entry of array.
7977 (varobj_value_has_mutated): New function.
7978 (varobj_udpdate): Add handling of type mutation.
7979 (value_of_root): Add handling of type mutation.
7980 (ada_value_has_mutated): New function.
7981
ca9b8b9c
PA
79822012-03-28 Pedro Alves <palves@redhat.com>
7983
7984 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7985 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7986
cc0265cd
TT
79872012-03-28 Tom Tromey <tromey@redhat.com>
7988
7989 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7990 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7991 before returning.
7992
3ad2ec6f
TT
79932012-03-28 Tom Tromey <tromey@redhat.com>
7994
7995 * .dir-locals.el: New file.
7996
4a6510ba
PA
79972012-03-28 Pedro Alves <palves@redhat.com>
7998
7999 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8000
5a75128f
JB
80012012-03-28 Joel Brobecker <brobecker@adacore.com>
8002
8003 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8004 handling for r0.
8005
f99d8bf4
PA
80062012-03-27 Pedro Alves <palves@redhat.com>
8007
8008 Eliminate struct ui_stream.
8009
8010 * ui-out.h (struct ui_stream): Delete.
8011 (ui_out_field_stream): Adjust prototype.
8012 (ui_out_stream_new, ui_out_stream_delete)
8013 (make_cleanup_ui_out_stream_delete): Delete declarations.
8014 * ui-out.c (ui_out_field_stream): Change prototype to take a
8015 ui_file instead of a ui_stream. Adjust.
8016 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8017 (make_cleanup_ui_out_stream_delete): Delete.
8018 * breakpoint.c (print_breakpoint_location)
8019 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8020 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8021 * disasm.c (dump_insns): Ditto.
8022 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8023 prototype.
8024 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8025 ui_stream/ui_out_stream_new.
8026 * infcmd.c (print_return_value): Ditto.
8027 * osdata.c (info_osdata_command): Don't allocate a local
8028 ui_stream.
8029 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8030 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8031 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8032 allocate a local ui_stream.
8033 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8034 instead of ui_stream/ui_out_stream_new.
8035 (list_args_or_locals): Don't allocate a local ui_stream.
8036 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8037 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8038 ui_stream/ui_out_stream_new.
8039 * cli/cli-setshow.c (do_setshow_command): Ditto.
8040
6350a066 80412012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8042
6350a066
PA
8043 * arm-linux-tdep.c (arm_linux_init_abi): Call
8044 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8045 * arm-tdep.c (arm_process_record): New function.
8046 (deallocate_reg_mem): New function.
8047 (decode_insn): New function.
8048 (thumb_record_branch): New function.
8049 (thumb_record_ldm_stm_swi(): New function.
8050 (thumb_record_misc): New function.
8051 (thumb_record_ld_st_stack): New function.
8052 (thumb_record_ld_st_imm_offset): New function.
8053 (thumb_record_ld_st_reg_offset(): New function.
8054 (thumb_record_add_sub_cmp_mov): New function.
8055 (thumb_record_shift_add_sub): New function.
8056 (arm_record_coproc_data_proc): New function.
8057 (arm_record_coproc): New function.
8058 (arm_record_b_bl): New function.
8059 (arm_record_ld_st_multiple): New function.
8060 (arm_record_ld_st_reg_offset): New function.
8061 (arm_record_ld_st_imm_offset): New function.
8062 (arm_record_data_proc_imm): New function.
8063 (arm_record_data_proc_misc_ld_str): New function.
8064 (arm_record_extension_space): New function.
8065 (arm_record_strx): New function.
8066 (sbo_sbz): New function.
8067 (struct insn_decode_record): New structure for arm insn record.
8068 (REG_ALLOC): New macro for reg allocations.
8069 (MEM_ALLOC): New macro for memory allocations.
8070 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8071
89e028e2
AS
80722012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8073
8074 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8075 (store_register): Likewise.
8076
6350a066 80772012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8078
6350a066 8079 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8080
5b43fab2
JK
80812012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8082
8083 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8084 Describe also the option "auto".
8085
b5453b95
RH
80862012-03-22 Richard Henderson <rth@redhat.com>
8087
8088 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8089 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8090
227ee7fc
RH
80912012-03-22 Richard Henderson <rth@redhat.com>
8092
8093 * jit.c (jit_read_code_entry): Compute alignment and offset of
8094 int64_t member before computing entry_size.
8095
7b282c5a
SCR
80962012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8097
8098 Python scripting: Add new method Value.referenced_value to
8099 gdb.Value which can dereference pointer as well as reference
8100 values.
8101 * NEWS: Add entry under 'Python scripting' about the new method
8102 Value.referenced_value on gdb.Value objects.
8103 * python/py-value.c (valpy_referenced_value): New function
8104 defining a new method on gdb.Value objects which can dereference
8105 pointer and reference values.
8106
0c83539f
SCR
81072012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8108
8109 * MAINTAINERS (Write After Approval): Add myself to the list.
8110
7ccffd7c
KB
81112012-03-21 Kevin Buettner <kevinb@redhat.com>
8112
8113 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8114 in addition to "main".
8115
bd0b9f9e
JB
81162012-03-21 Joel Brobecker <brobecker@adacore.com>
8117
8118 * expression.h (op_name): Add declaration.
8119 * expprint.c (op_name): Remove declaration. Make non-static.
8120 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8121
a5362b9a
TS
81222012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8123
8124 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8125 of struct siginfo.
8126 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8127 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8128 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8129 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8130 (linux_nat_get_siginfo): Likewise.
8131 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8132 (linux_nat_get_siginfo): Likewise.
8133 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8134 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8135 * procfs.c (gdb_siginfo_t): Likewise.
8136
adcadaab
MF
81372012-03-21 Mike Frysinger <vapier@gentoo.org>
8138
8139 * .gitignore: Ignore more files.
8140
e278ad5b
PA
81412012-03-20 Pedro Alves <palves@redhat.com>
8142
8143 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8144 returns.
8145
741e63d7
YQ
81462012-03-20 Yao Qi <yao@codesourcery.com>
8147
8148 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8149 comment.
8150
b64f50a1
JK
81512012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8152
8153 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8154 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8155 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8156 sect_offset.
8157 * dwarf2expr.h (cu_offset, sect_offset): New types.
8158 (struct dwarf_expr_context_funcs) <dwarf_call>
8159 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8160 sect_offset.
8161 (struct dwarf_expr_context) <len>: Improve the comment.
8162 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8163 cu_offset and sect_offset.
8164 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8165 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8166 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8167 * dwarf2loc.h: Include dwarf2expr.h.
8168 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8169 and sect_offset.
8170 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8171 Improve the comment.
8172 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8173 (struct signatured_type, struct line_header, struct partial_die_info)
8174 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8175 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8176 (get_die_type_at_offset, create_cus_from_index)
8177 (create_signatured_type_table_from_index, dw2_get_file_names)
8178 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8179 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8180 (create_debug_types_hash_table, process_psymtab_comp_unit)
8181 (load_partial_comp_unit, create_all_comp_units)
8182 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8183 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8184 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8185 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8186 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8187 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8188 (find_partial_die, read_attribute_value, lookup_die_type)
8189 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8190 (is_ref_attr): New function comment.
8191 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8192 Use cu_offset and sect_offset.
8193 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8194 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8195 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8196 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8197 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8198 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8199 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8200 sect_offset.
8201
e97a38f7
JK
82022012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8203
8204 Code cleanup.
8205 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8206 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8207 with xfree.
8208 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8209
8320cc4f
JK
82102012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8211
8212 * NEWS: Describe new options --init-command=FILE, -ix and
8213 --init-eval-command=COMMAND, -iex.
8214 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8215 CMDARG_INIT_COMMAND.
8216 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8217 "init-command", "init-eval-command", "ix" and "iex" to the variable
8218 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8219 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8220 (print_gdb_help): Describe --init-command=FILE, -ix and
8221 --init-eval-command=COMMAND, -iex.
8222
26743505
JK
82232012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8224
8225 Code cleanup.
8226 * main.c (struct cmdarg): Move it here from main. Add more comments.
8227 (cmdarg_s, VEC (cmdarg_s)): New.
8228 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8229 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8230 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8231 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8232 of CMDARG.
8233
5ff5c7b4
TT
82342012-03-19 Tom Tromey <tromey@redhat.com>
8235
8236 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8237
ab260dad
JK
82382012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8239
8240 PR symtab/13777
8241 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8242 GCC >=4.5.
8243
c366c1f0
TT
82442012-03-16 Chris January <chris.january@allinea.com>
8245
8246 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8247 of clear.
8248
e16edb45
TT
82492012-03-16 Chris January <chris.january@allinea.com>
8250
8251 * source.c (add_path): Use memmove instead of strcpy because the
8252 strings overlap.
8253
53ba8333
JB
82542012-03-16 Joel Brobecker <brobecker@adacore.com>
8255
8256 * value.h (set_value_parent): Add declaration.
8257 * value.c (set_value_parent): New function.
8258 (value_address): If VALUE->PARENT is not NULL, then use it as
8259 the base address instead of VALUE->LOCATION.address.
8260 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8261 the same as OBJ's address. Adjust V's offset accordingly.
8262 Set V's parent.
8263
481860b3
GB
82642012-03-16 Gary Benson <gbenson@redhat.com>
8265
8266 PR breakpoints/10738
8267 * dwarf2read.c (use_deprecated_index_sections): New global.
8268 (struct partial_die_info): New member may_be_inlined.
8269 (read_partial_die): Set may_be_inlined where appropriate.
8270 (add_partial_subprogram): Add partial symbols for partial
8271 DIEs that may be inlined.
8272 (new_symbol_full): Add inlined subroutines to the current
8273 scope.
8274 (write_psymtabs_to_index): Bump version number.
8275 (dwarf2_read_index): Read only version 6 indices unless
8276 use_deprecated_index_sections is set.
8277 * linespec.c (symbol_and_data_callback): New structure.
8278 (iterate_inline_only): New function.
8279 (iterate_over_all_matching_symtabs): New argument
8280 "include_inline". If nonzero, also call the callback for
8281 symbols representing inlined subroutines.
8282 (lookup_prefix_sym): Pass extra argument to the above.
8283 (find_function_symbols): Likewise.
8284 (add_matching_symbols_to_info): Likewise.
8285 * NEWS: Mention that GDB can now set breakpoints on inlined
8286 functions.
8287
d0e7e15a
PM
82882012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8289
8290 * p-typeprint.c (pascal_type_print_method_args):
8291 Fix display of parameter of methods.
8292
3d354654
PM
82932012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8294
8295 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8296 Add missing prototype.
8297
cafe75b0
JK
82982012-03-16 Yao Qi <yao@codesourcery.com>
8299 Jan Kratochvil <jan.kratochvil@redhat.com>
8300
8301 Fix false compilation warning.
8302 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8303
25f8c692
JL
83042012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8305 Pedro Alves <pedro@codesourcery.com>
8306
8307 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8308 (arm_register_g_packet_guesses): New function.
8309 (arm_gdbarch_init): Don't force a target description with
8310 registers when the executable is detected as M-profile. Instead
8311 set gdbarch->tdep->is_m. Register `g' packet guesses.
8312 (_initialize_arm_tdep): Initialize the new target description.
8313 * features/arm-with-m-fpa-layout.xml: New description.
8314 * features/arm-with-m-fpa-layout.c: New, generated.
8315
35c63cd8
JB
83162012-03-15 Joel Brobecker <brobecker@adacore.com>
8317
8318 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8319 Update function description.
8320 (insert_bp_location): Do not wipe bl->target_info out.
8321 * mem-break.c: #include "gdb_string.h".
8322 (default_memory_insert_breakpoint): Do not call target_read_memory
8323 with a pointer to the breakpoint's shadow_contents buffer. Use
8324 a local buffer instead.
8325 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8326
57651221
TT
83272012-03-15 Tom Tromey <tromey@redhat.com>
8328
8329 * NEWS: Mention "info vtbl", not "info vtable".
8330 * cp-support.c (info_vtbl_command): Fix comment.
8331 (_initialize_cp_support): Fix text.
8332
410528f0
TT
83332012-03-15 Tom Tromey <tromey@redhat.com>
8334
8335 * cp-valprint.c (cp_print_value_fields): Use
8336 print_function_pointer_address for vtable slot.
8337
c4aeac85
TT
83382012-03-15 Tom Tromey <tromey@redhat.com>
8339
8340 * gnu-v3-abi.c (struct value_and_voffset): New.
8341 (hash_value_and_voffset, eq_value_and_voffset)
8342 (compare_value_and_voffset, compute_vtable_size)
8343 (print_one_vtable, gnuv3_print_vtable): New functions.
8344 (init_gnuv3_ops): Initialize 'print_vtable' field.
8345 * cp-support.c (info_vtbl_command): New function.
8346 (_initialize_cp_support): Add "info vtbl".
8347 * cp-abi.h (cplus_print_vtable): Declare.
8348 (struct cp_abi_ops) <print_vtable>: New field.
8349 * cp-abi.c (cplus_print_vtable): New function.
8350 * NEWS: Update.
8351
95cbceff
TT
83522012-03-15 Tom Tromey <tromey@redhat.com>
8353
8354 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8355 iterate_over_symbols.
8356
589b4a32
DE
83572012-03-14 Doug Evans <dje@google.com>
8358
8359 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8360 DW_OP_GNU_parameter_ref.
8361
e837f12a
JK
83622012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8363
8364 Fix double prompt of 'interpreter-exec mi'.
8365 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8366 (mi_interpreter_resume): use it.
8367 (mi_execute_command_input_handler): New function.
8368 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8369 mi_execute_command_input_handler.
8370
ff1e4526 83712012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8372
8373 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8374 prototype.
8375 (darwin_debug_port_info): Make static.
8376 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8377 * machoread.c (_initialize_machoread): Add prototype.
8378 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8379 (i386_darwin_set_control, i386_darwin_get_control)
8380 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8381 i386_darwin_get_status, i386_darwin_get_control):
8382 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8383
d8a5d6ee
JB
83842012-03-13 Joel Brobecker <brobecker@adacore.com>
8385
8386 * ax-gdb.c (gen_usual_unary): Remove special handling of
8387 enum and bool types.
8388
af381b8c
JB
83892012-03-13 Joel Brobecker <brobecker@adacore.com>
8390
8391 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8392
786c562f
JB
83932012-03-13 Joel Brobecker <brobecker@adacore.com>
8394
8395 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8396
e3ebf1bb
JB
83972012-03-13 Chris January <chris.january@allinea.com>
8398
8399 * aix-thread.c (fill_sprs): Store the floating point registers
8400 at the correct offsets into vals.
8401
c5b7e1cb
DE
84022012-03-13 Doug Evans <dje@google.com>
8403
16899756
DE
8404 * NEWS: Mention symbol-reloading has been deleted.
8405 * symfile.c (symbol_reloading): Delete.
8406 (show_symbol_reloading): Delete.
8407 (_initialize_symfile): Delete set/show symbol-reloading.
8408
c5b7e1cb
DE
8409 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8410 read_in_chain until we have successfully read it in.
8411 (load_full_comp_unit): Ditto.
8412 (read_signatured_type): Add comment.
8413
46cb6474
JB
84142012-03-13 Chris January <chris.january@allinea.com>
8415
8416 * stabsread.c (fix_common_block): Change type of valu argument
8417 to CORE_ADDR.
8418
76219d77
JB
84192012-03-13 Chris January <chris.january@allinea.com>
8420
8421 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8422 instruction.
8423
87b0bb13
JK
84242012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8425
8426 * common/linux-procfs.c (linux_proc_get_int): New, from
8427 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8428 field.
8429 (linux_proc_get_tgid): Only call linux_proc_get_int.
8430 (linux_proc_get_tracerpid): New.
8431 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8432 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8433 linux_proc_pid_has_state.
8434 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8435 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8436 (linux_ptrace_attach_warnings): New.
8437 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8438 New declaration.
8439 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8440 (linux_nat_attach): New variables ex, buffer, message and message_s.
8441 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8442
5f572dec
JK
84432012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8444
8445 * Makefile.in (linux-ptrace.o): New.
8446 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8447 from linux-nat.c.
8448 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8449 * common/linux-ptrace.c: New file.
8450 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8451 * config/arm/linux.mh: Likewise.
8452 * config/i386/linux.mh: Likewise.
8453 * config/i386/linux64.mh: Likewise.
8454 * config/ia64/linux.mh: Likewise.
8455 * config/m32r/linux.mh: Likewise.
8456 * config/m68k/linux.mh: Likewise.
8457 * config/mips/linux.mh: Likewise.
8458 * config/pa/linux.mh: Likewise.
8459 * config/powerpc/linux.mh: Likewise.
8460 * config/powerpc/ppc64-linux.mh: Likewise.
8461 * config/powerpc/spu-linux.mh: Likewise.
8462 * config/s390/s390.mh: Likewise.
8463 * config/sparc/linux.mh: Likewise.
8464 * config/sparc/linux64.mh: Likewise.
8465 * config/xtensa/linux.mh: Likewise.
8466 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8467 common/linux-procfs.c.
8468 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8469
44f238bb
PA
84702012-03-13 Hui Zhu <teawater@gmail.com>
8471 Pedro Alves <palves@redhat.com>
8472
8473 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8474 CREATE_BREAKPOINT_FLAGS_INSERTED.
8475 (create_breakpoint_sal, create_breakpoints_sal)
8476 (base_breakpoint_create_breakpoints_sal)
8477 (tracepoint_create_breakpoints_sal)
8478 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8479 down.
8480 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8481 (ftrace_command, strace_command): Adjust.
8482 (create_tracepoint_from_upload): Pass
8483 CREATE_BREAKPOINT_FLAGS_INSERTED.
8484 * breakpoint.h (enum breakpoint_create_flags): New.
8485 (create_breakpoint): New flags parameter.
8486 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8487 * python/py-breakpoint.c (bppy_init): Adjust.
8488 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8489 * spu-tdep.c (spu_catch_start): Adjust.
8490
1e51243a
PA
84912012-03-13 Pedro Alves <palves@redhat.com>
8492 Hui Zhu <teawater@gmail.com>
8493 Yao Qi <yao@codesourcery.com>
8494
8495 * remote.c (struct remote_state): New field `starting_up'.
8496 (remote_start_remote): Set and clear it.
8497 (remote_can_download_tracepoint): If starting up, return false.
8498
fa3064dd
YQ
84992012-03-13 Yao Qi <yao@codesourcery.com>
8500
8501 * inferior.h (struct inferior): Remove fields any_syscall_count,
8502 syscalls_counts and total_syscalls_count. Move them to new
8503 struct catch_syscall_inferior_data in breakpoint.c.
8504 * breakpoint.c: Call DEF_VEC_I(int).
8505 (struct catch_syscall_inferior_data): New.
8506 (get_catch_syscall_inferior_data): New.
8507 (catch_syscall_inferior_data_cleanup): New.
8508 (insert_catch_syscall): Update to access data in
8509 struct catch_syscall_inferior_data.
8510 (insert_catch_syscall): Likewise.
8511 (remove_catch_syscall): Likewise.
8512 (remove_catch_syscall): Likewise.
8513 (is_syscall_catchpoint_enabled): Likewise.
8514 (add_catch_command): Likewise.
8515 (_initialize_breakpoint): Register cleanup.
8516 * breakpoint.h: Removed DEF_VEC_I(int).
8517 * dwarf2loc.c: Call DEF_VEC_I(int).
8518 * mi/mi-main.c: Likewise.
8519
460fac3c
MK
85202012-03-12 Mark Kettenis <kettenis@gnu.org>
8521
8522 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8523
e1aca11e
JB
85242012-03-12 Chris January <chris.january@allinea.com>
8525
8526 * aix-thread.c (_initialize_aix_thread): Add prototype.
8527 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8528 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8529
649c7061
JB
85302012-03-12 Joel Brobecker <brobecker@adacore.com>
8531
8532 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8533 include of "amd64-nat.h".
8534
0b49e518
TT
85352012-03-12 Tom Tromey <tromey@redhat.com>
8536
8537 * buildsym.c (record_pending_block): Now static.
8538 * buildsym.h: (record_pending_block): Remove.
8539
fd24fa94
AT
85402012-03-12 Andreas Tobler <andreast@fgznet.ch>
8541
8542 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8543
ba919b58
TT
85442012-03-09 Tom Tromey <tromey@redhat.com>
8545
8546 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8547 producer_is_gxx_lt_4_6>: New fields.
8548 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8549
a48e046c
TT
85502012-03-09 Tom Tromey <tromey@redhat.com>
8551
8552 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8553
6f5e9362
JB
85542012-03-08 Joel Brobecker <brobecker@adacore.com>
8555
8556 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8557 prototype.
8558
8d037db9
JB
85592012-03-08 Joel Brobecker <brobecker@adacore.com>
8560
8561 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8562
4e841acf
JK
85632012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8564
8565 Fix -Wmissing-prototypes build.
8566 * arm-linux-nat.c (get_thread_id): Make it static.
8567 * xtensa-linux-nat.c (get_thread_id): Likewise.
8568
c6030312
JB
85692012-03-08 Joel Brobecker <brobecker@adacore.com>
8570
8571 * server.c (process_point_options): If a conditional expression
8572 is found, only print a message if remote_debug is nonzero.
8573
52323be9
LM
85742012-03-08 Luis Machado <lgustavo@codesourcery.com>
8575
8576 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8577 of internal error for unknown/unsupported types.
8578
7fe25d9b
JK
85792012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8580
8581 Fix CU relative vs. absolute DIE offsets.
8582 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8583 offset to offset_in_cu.
8584 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8585 TYPE_OFFSET.
8586 (dwarf2_fetch_die_location_block): Rename parameter offset to
8587 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8588
05e7c244
JK
85892012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8590
8591 * libunwind-frame.c: Rename to ...
8592 * ia64-libunwind-tdep.c: ... here.
8593 * libunwind-frame.h: Rename to ...
8594 * ia64-libunwind-tdep.h: ... here.
8595 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8596 ia64-libunwind-tdep.h.
8597 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8598 * README (--with-libunwind): Rename to ...
8599 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8600 * config.in: Regenerate.
8601 * configure: Regenerate.
8602 * configure.ac: New option --with-libunwind-ia64, make the
8603 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8604 Remove AC_DEFINE for HAVE_LIBUNWIND.
8605 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8606 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8607 Rename libunwind-frame in the general comment.
8608 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8609 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8610 Move forward declarations inside #ifndef. Rename libunwind-frame in
8611 the general comment.
8612 * ia64-tdep.c: Rename libunwind-frame.h #include to
8613 ia64-libunwind-tdep.h.
8614 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8615 (ia64_libunwind_descr): Rename libunwind-frame to
8616 ia64-libunwind-tdep in these function comments.
8617 * ia64-tdep.h: Rename libunwind-frame.h #include to
8618 ia64-libunwind-tdep.h.
8619 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8620 ia64-libunwind-tdep in that data comment.
8621
3755cbfd
JK
86222012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8623
8624 * libunwind-frame.h (struct frame_unwind): New declaration.
8625
d1cda5d9
JB
86262012-03-08 Joel Brobecker <brobecker@adacore.com>
8627
8628 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8629 "set breakpoint condition-evaluation" command.
8630
a0ba0aa2
TG
86312012-03-08 Tristan Gingold <gingold@adacore.com>
8632
8633 * sparc-stub.c: Move to stubs/
8634 * sh-stub.c: Likewise.
8635 * m68k-stub.c: Likewise.
8636 * m32r-stub.c: Likewise.
8637 * i386-stub.c: Likewise.
8638
7b8b6d6d
AS
86392012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8640
007cafee
AS
8641 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8642 linux_get_siginfo_type.
8643
7b8b6d6d
AS
8644 * m68klinux-nat.c: Include "gdb_proc_service.h".
8645 (PTRACE_GET_THREAD_AREA): Define.
8646 (ps_get_thread_area): New function.
8647
bba74b36
YQ
86482012-03-08 Yao Qi <yao@codesourcery.com>
8649
8650 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8651 `xsnprintf'.
8652 (remote_query_attached): Likewise.
8653 (remote_static_tracepoint_marker_at): Likewise.
8654 (remote_set_permissions): Likewise.
8655 (remote_detach_1, extended_remote_attach_1): Likewise.
8656 (send_g_packet, remote_vkill): Likewise.
8657 (extended_remote_disable_randomization): Likewise.
8658 (remote_add_target_side_condition): Likewise.
8659 (remote_insert_breakpoint): Likewise.
8660 (remote_remove_breakpoint): Likewise.
8661 (remote_insert_watchpoint): Likewise.
8662 (remote_remove_watchpoint): Likewise.
8663 (remote_insert_hw_breakpoint): Likewise.
8664 (remote_insert_hw_breakpoint): Likewise.
8665 (remote_remove_hw_breakpoint): Likewise.
8666 (remote_download_command_source): Likewise.
8667 (remote_download_tracepoint): Likewise.
8668 (remote_download_trace_state_variable): Likewise.
8669 (remote_disable_tracepoint): Likewise.
8670 (remote_trace_set_readonly_regions): Likewise.
8671 (remote_get_tracepoint_status): Likewise.
8672 (remote_trace_find): Likewise.
8673 (remote_get_trace_state_variable_value): Likewise.
8674 (remote_set_disconnected_tracing): Likewise.
8675 (remote_set_circular_trace_buffer): Likewise.
8676 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8677 (remote_use_agent): Likewise.
8678 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8679 Update callers.
8680
9b224c5e
PA
86812012-03-07 Pedro Alves <palves@redhat.com>
8682
8683 * NEWS: Mention QProgramSignals.
8684 * inferior.h (update_signals_program_target): Declare.
8685 * infrun.c: (update_signals_program_target): New.
8686 (handle_command): Update the target of the new program signals
8687 array changes.
8688 * remote.c (PACKET_QProgramSignals): New enum.
8689 (last_program_signals_packet): New global.
8690 (remote_program_signals): New.
8691 (remote_start_remote): Update the target with the program signals
8692 list.
8693 (remote_protocol_features): Add entry for QPassSignals.
8694 (remote_open_1): Free anc clear last_program_signals_packet.
8695 (init_remote_ops): Install remote_program_signals.
8696 * target.c (update_current_target): Adjust.
8697 (target_program_signals): New.
8698 * target.h (struct target_ops) <to_program_signals>: New field.
8699 (target_program_signals): Declare.
8700
74c48cbb
PA
87012012-03-07 Pedro Alves <palves@redhat.com>
8702
8703 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8704 extensions.
8705
0c13fc49
AS
87062012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8707
8708 * m68klinux-nat.c (getregs_supplies): Make static.
8709 (getfpregs_supplies): Likewise.
8710 (have_ptrace_getregs): Likewise.
8711
1281d2a3
JB
87122012-03-06 Joel Brobecker <brobecker@adacore.com>
8713
8714 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8715 in call to get_die_type_at_offset.
8716
2b03b41d
SS
87172012-03-06 Stan Shebs <stan@codesourcery.com>
8718
8719 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8720 * mi/mi-cmd-disas.c: Ditto.
8721 * mi/mi-cmd-env.c: Ditto.
8722 * mi/mi-cmd-file.c: Ditto.
8723 * mi/mi-cmd-stack.c: Ditto.
8724 * mi/mi-cmd-target.c: Ditto.
8725 * mi/mi-cmd-var.c: Ditto.
8726 * mi/mi-cmds.c: Ditto.
8727 * mi/mi-cmds.h: Ditto.
8728 * mi/mi-console.c: Ditto.
8729 * mi/mi-getopt.c: Ditto.
8730 * mi/mi-getopt.h: Ditto.
8731 * mi/mi-interp.c: Ditto.
8732 * mi/mi-main.c: Ditto.
8733 * mi/mi-out.c: Ditto.
8734 * mi/mi-parse.c: Ditto.
8735 * mi/mi-parse.h: Ditto.
8736 * mi/mi-symbol-cmds.c: Ditto.
8737
8738 * mi/mi-getopt.h: Move mi_opt struct up.
8739 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8740 return.
8741 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8742
c988ad87
TT
87432012-03-06 Tom Tromey <tromey@redhat.com>
8744
8745 * proc-service.c (ps_pglobal_lookup): Set the current program
8746 space.
8747
1b7c1b10
PA
87482012-03-06 Pedro Alves <palves@redhat.com>
8749
8750 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8751
3c182069
JB
87522012-03-05 Joel Brobecker <brobecker@adacore.com>
8753
8754 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8755
2e794194
JK
87562012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8757
8758 Code cleanup.
8759 * common/linux-osdata.c (linux_common_core_of_thread): New function
8760 comment.
8761 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8762 call by linux_common_core_of_thread.
8763 (linux_nat_core_of_thread_1): Remove.
8764 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8765 * linux-thread-db.c: Include linux-osdata.h.
8766 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8767 linux_common_core_of_thread.
8768
9f9f1f31
TT
87692012-03-05 Tom Tromey <tromey@redhat.com>
8770
8771 * value.c (value_primitive_field): Don't fetch contents for
8772 non-virtual bases.
8773
b7b189f3
TT
87742012-03-05 Tom Tromey <tromey@redhat.com>
8775
8776 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8777
05b8a789 87782012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8779
5538f557
JB
8780 * s390-nat.c: Include "gregset.h".
8781
75528772
JK
87822012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8783
8784 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8785 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8786 (libunwind_load): New variable so_error, use it for dlerror. Try to
8787 load also LIBUNWIND_SO_7.
8788
275418ae
PA
87892012-03-05 Pedro Alves <palves@redhat.com>
8790
8791 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8792 is not NULL, and remove resulting dead code.
8793
5cbb9812
TS
87942012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8795
8796 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8797 prologue to sh_analyze_prologue.
8798 (sh_analyze_prologue): Make better use of such an upper limit, and
8799 generally be more cautious about accessing memory.
8800
541515ad
TT
88012012-03-05 Tom Tromey <tromey@redhat.com>
8802
8803 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8804 _initialize_ia64_hpux_tdep.
8805
b4d36fb8
PA
88062012-03-05 Pedro Alves <palves@redhat.com>
8807
24490249
PA
8808 PR gdb/13766
8809
b4d36fb8
PA
8810 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8811 the register state is clear, supply explicit zero, instead of
8812 marking the register unavailable.
8813
60c9a3c0
TG
88142012-03-05 Tristan Gingold <gingold@adacore.com>
8815
8816 * NEWS: Mention OpenVMS ia64 new target.
8817
696759ad
TG
88182012-03-05 Tristan Gingold <gingold@adacore.com>
8819
8820 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8821 (ia64_unw_accessors, ia64_unw_rse_accessors)
8822 (ia64_libunwind_descr): Declare.
8823 * ia64-vms-tdep.c: New file.
8824 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8825 (ia64_libunwind_descr): Make them public.
8826 * configure.tgt: Add ia64-*-*vms*.
8827 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8828 (ALLDEPFILES): Add ia64-vms-tdep.c
8829
34864976
TG
88302012-03-05 Tristan Gingold <gingold@adacore.com>
8831
169081d0
TG
8832 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8833 * remote.c (PACKET_qXfer_uib): New enum value.
8834 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8835 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8836 (_initialize_remote): Call add_packet_config_cmd for
8837 xfer:uib packet.
8838
88392012-03-05 Tristan Gingold <gingold@adacore.com>
8840
8841 * osabi.c (gdb_osabi_names): Add OpenVMS.
8842 (generic_elf_osabi_sniffer): Likewise.
8843 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8844
6597b100
JK
88452012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8846
8847 Removed unused code.
8848 * libunwind-frame.c (libunwind_frame_unwind)
8849 (libunwind_frame_base_address): Remove.
8850 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8851
87399aa1
YQ
88522012-03-04 Yao Qi <yao@codesourcery.com>
8853
8854 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8855 remove trailing new line.
8856 (agent_run_command, agent_run_command): Add _ markup.
8857 (agent_capability_check): Likewise.
8858
abf1152a
JK
88592012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8860
8861 * breakpoint.c (set_condition_evaluation_mode): Set
8862 CONDITION_EVALUATION_MODE unconditionally.
8863
5808517f
YQ
88642012-03-03 Yao Qi <yao@codesourcery.com>
8865
8866 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8867 * common/agent.h: Update declaration.
8868 * inf-child.c (inf_child_use_agent): New.
8869 (inf_child_can_use_agent): New.
8870 (inf_child_target): Initialize fields `to_use_agent'
8871 and `to_can_use_agent'.
8872 * agent.c (agent_new_objfile): New.
89b7509a 8873 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8874 observer.
8875
8876 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8877 New.
89b7509a 8878 (linux_target_install_ops): Initialize field
5808517f
YQ
8879 `to_static_tracepoint_markers_by_strid'.
8880 * remote.c (free_current_marker): Move it to ...
8881 * tracepoint.c (free_current_marker): ... here. New.
8882 (cleanup_target_stop): New.
8883 * tracepoint.h: Declare free_current_marker.
8884 * NEWS: Add one entry about `info static-tracepoint-marker'.
8885
58b4daa5
YQ
88862012-03-03 Yao Qi <yao@codesourcery.com>
8887
8888 * common/agent.c (agent_loaded_p): New.
89b7509a 8889 (agent_look_up_symbols): New global.
58b4daa5
YQ
8890 * common/agent.h: Declare agent_loaded_p.
8891
8ffcbaaf
YQ
88922012-03-03 Yao Qi <yao@codesourcery.com>
8893
8894 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8895 (agent_capability_check, agent_capability_invalidate): New.
8896 (symbol_list): New array element.
8897 * common/agent.h (enum agent_capa): New.
8898 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8899
d1feda86
YQ
89002012-03-03 Yao Qi <yao@codesourcery.com>
8901
8902 * target.h (struct target_ops) <to_use_agent>: New field.
8903 (struct target_ops) <to_can_use_agent>: New field.
8904 (target_use_agent, target_can_use_agent): New macro.
8905 * target.c (update_current_target): Update.
8906 * remote.c: New enum `PACKET_QAgent'.
8907 (remote_protocol_features): Add a new element.
8908 (remote_use_agent, remote_can_use_agent): New.
8909 (init_remote_ops): Initialize field `can_use_agent' with
8910 remote_can_use_agent. Intiailize field `use_agent' with
8911 remote_use_agent.
8912 * common/agent.c (use_agent): New global.
8913 * common/agent.h: Declare it.
8914 * tracepoint.c (info_static_tracepoint_markers_command): Add
8915 comment.
8916 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8917 (COMMON_OBS): Add common/agent.o and agent.o
8918 (common-agent.o): New rule.
8919 * agent.c: New.
8920
2fa291ac
YQ
89212012-03-03 Yao Qi <yao@codesourcery.com>
8922
8923 * common/agent.c: New.
8924 * common/agent.h: New.
8925 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8926 AC_CHECK_HEADERS.
8927 * configure, configh.in: Regenerated.
8928
9fc05685
KB
89292012-03-02 Kevin Buettner <kevinb@redhat.com>
8930
8931 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8932 unless it exists for this architecture.
8933
a5ee536b
JB
89342012-03-02 Joel Brobecker <brobecker@adacore.com>
8935
8936 * language.h (struct language_defn): New "method" la_read_var_value.
8937 * findvar.c: #include "language.h".
8938 (default_read_var_value): Renames read_var_value. Rewrite
8939 function description.
8940 (read_var_value): New function.
8941 * value.h (default_read_var_value): Add prototype.
8942 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8943 New functions.
8944 (ada_language_defn): Add entry for la_read_var_value.
8945 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8946 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8947 language_defn structures to add entry for new la_read_var_value
8948 field.
8949
f59f708a
PA
89502012-03-02 Tom Tromey <tromey@redhat.com>
8951 Pedro Alves <palves@redhat.com>
8952
8953 PR breakpoints/13776:
8954 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8955 breakpoints.
8956 (delete_longjmp_breakpoint_at_next_stop): New.
8957 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8958 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8959 before deleting the inferior. Add comments.
8960 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8961 breakpoints immediately, but only on next stop. Move that code
8962 next to where we mark other breakpoints for deletion.
8963
44099a67
JB
89642012-03-02 Joel Brobecker <brobecker@adacore.com>
8965
8966 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8967 marker.
8968 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8969 violation.
8970
2a2ef594
PA
89712012-03-02 Pedro Alves <palves@redhat.com>
8972
8973 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8974
b261e0c5
UW
89752012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8976
8977 Fix -Wmissing-prototypes build.
8978 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8979 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8980 (gdbsim_has_memory): Likewise.
8981
a95babbf
YQ
89822012-03-02 Yao Qi <yao@codesourcery.com>
8983
8984 Fix -Wmissing-prototypes build.
8985 * charset.c (phony_iconv_open): Make static.
8986 (phony_iconv_close, phony_iconv): Likewise.
8987 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8988 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8989 prototype.
8990 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8991 * ser-mingw.c (create_select_thread): Make static.
8992 * windows-termcap.c (tgetent): New prototype.
8993 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8994
d603d4b3
JK
89952012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8996
8997 Fix -Wmissing-prototypes build.
8998 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8999 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9000 (_initialize_loadable): New prototypes.
9001
7fb3ad1f
DE
90022012-03-02 Doug Evans <dje@google.com>
9003
9004 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9005 abbrev table, read_comp_unit will do it.
9006
693be288
JK
90072012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9008
9009 Fix -Wmissing-prototypes build.
9010 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9011 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9012 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9013 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9014 (_initialize_arm_symbian_tdep): New prototype.
9015 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9016 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9017 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9018 static.
9019 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9020 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9021 prototype.
9022 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9023 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9024 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9025 static.
9026 * moxie-tdep.c (moxie_process_record): Likewise.
9027 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9028 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9029 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9030 (_initialize_rl78_tdep): New prototype.
9031 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9032 (_initialize_rx_tdep): New prototype.
9033 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9034 (_initialize_darwin_solib): New prototype.
9035 * solib-spu.c: Include solib-spu.h.
9036 (_initialize_spu_solib): New prototype.
9037 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9038 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9039 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9040 (tic6x_software_single_step): Make it static.
9041 (_initialize_tic6x_tdep): New prototype.
9042
638234e5
JK
90432012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9044
9045 Fix -Wmissing-prototypes build.
9046 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9047 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9048
f4a6f16d
JK
90492012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9050
9051 Fix -Wmissing-prototypes build.
9052 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9053 (frv_have_stopped_data_address): Remove.
9054
04dcf5fa
JK
90552012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9056
9057 Fix -Wmissing-prototypes build.
9058 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9059 * sh-tdep.c: Include sh64-tdep.h.
9060 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9061 * sh64-tdep.c: Include sh64-tdep.h.
9062 * sh64-tdep.h: New file.
9063
19080931
MR
90642012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9065
9066 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9067
9aac7884
MR
90682012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9069
9070 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9071 sp_regnum once the gdbarch_init_osabi hook has been called.
9072
a385295e
MR
90732012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9074
9075 * mips-tdep.c (mips32_bc1_pc): New function.
9076 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9077 BPOSGE32 and BPOSGE64 instructions.
9078 (deal_with_atomic_sequence): Likewise.
9079 (mips32_instruction_has_delay_slot): Likewise.
9080
1faeff08 90812012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9082 Chris Dearman <chris@mips.com>
9083 Maciej W. Rozycki <macro@codesourcery.com>
9084 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9085
9086 * features/mips-dsp.xml: New file.
9087 * features/mips64-dsp.xml: New file.
9088 * features/mips-dsp-linux.xml: New file.
9089 * features/mips64-dsp-linux.xml: New file.
9090 * features/Makefile (WHICH): Add mips-dsp-linux and
9091 mips64-dsp-linux.
9092 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9093 * features/mips-dsp-linux.c: New file.
9094 * features/mips64-dsp-linux.c: New file.
9095 * regformats/mips-dsp-linux.dat: New file.
9096 * regformats/mips64-dsp-linux.dat: New file.
9097 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9098 registers.
9099 (mips64_linux_register_addr): Likewise.
9100 (mips64_linux_regsets_fetch_registers): Likewise.
9101 (mips64_linux_regsets_store_registers): Likewise.
9102 (mips64_linux_fetch_registers): Update call to
9103 mips64_linux_regsets_fetch_registers.
9104 (mips64_linux_store_registers): Update call to
9105 mips64_linux_regsets_store_registers.
9106 (mips_linux_read_description): Probe for DSP registers.
9107 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9108 and initialize_tdesc_mips64_dsp_linux.
9109 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9110 Remove padding of no longer used embedded register slots.
9111 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9112 (MIPS_RESTART_REGNUM): Redefine enum value.
9113 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9114 strings.
9115 (mips_tx39_reg_names): Likewise.
9116 (mips_linux_reg_names): New array of register names for Linux
9117 targets.
9118 (mips_register_name): Check for a null pointer in
9119 mips_processor_reg_names and return an empty string.
9120 (mips_register_type): Exclude embedded registers for the IRIX
9121 and Linux ABIs.
9122 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9123 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9124 DSP registers.
9125 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9126 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9127 (mips_gdbarch_init): Likewise. Initialize internal register
9128 indices for the Linux ABI. Use dynamic numbers to refer to
9129 registers, as applicable, while parsing the target description.
9130 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9131
263689d8
JB
91322012-03-01 Joel Brobecker <brobecker@adacore.com>
9133
9134 * frame.h (read_frame_register_unsigned): Fix typo in function
9135 description.
9136
f3b4f45c
PA
91372012-03-01 Pedro Alves <palves@redhat.com>
9138
9139 * jit-reader.in [!__cplusplus]
9140 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9141
b03a2011
PA
91422012-03-01 Pedro Alves <palves@redhat.com>
9143
9144 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9145 * configure: Regenerate.
9146
70221824
PA
91472012-03-01 Pedro Alves <palves@redhat.com>
9148
9149 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9150 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9151 (ftrace_command, strace_command): Make static.
9152 * d-lang.c (_initialize_d_language): Declare.
9153 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9154 * dwarf2loc.c (_initialize_dwarf2loc):
9155 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9156 * exec.c (exec_get_section_table): Make static.
9157 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9158 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9159 * inferior.c (remove_inferior_command, add_inferior_command)
9160 (clone_inferior_command): Make static.
9161 * linux-nat.c (linux_nat_thread_address_space)
9162 (linux_nat_core_of_thread): Make static.
9163 * linux-tdep.c (_initialize_linux_tdep): Declare.
9164 * objc-lang.c (_initialize_objc_lang): Declare.
9165 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9166 Make static.
9167 (_initialize_opencl_language): Declare.
9168 * record.c (_initialize_record): Declare.
9169 * remote.c (demand_private_info, remote_get_tib_address)
9170 (remote_supports_cond_tracepoints)
9171 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9172 Make static.
9173 * skip.c (_initialize_step_skip): Declare.
9174 * symtab.c (skip_prologue_using_lineinfo): Make static.
9175 * tracepoint.c (delete_trace_state_variable)
9176 (trace_variable_command, delete_trace_variable_command)
9177 (get_uploaded_tsv, find_matching_tracepoint_location)
9178 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9179 Make static.
9180 * value.c (pack_unsigned_long): Make static.
9181 * varobj.c (varobj_ensure_python_env): Make static.
9182 * windows-tdep.c (_initialize_windows_tdep): Declare.
9183 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9184
33fbcbee
PA
91852012-03-01 Pedro Alves <palves@redhat.com>
9186
9187 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9188 gdbarch parameter.
9189 (linux_init_abi): Install it as has_shared_address_space gdbarch
9190 callback.
9191
44d0cd3b
PA
91922012-03-01 Pedro Alves <palves@redhat.com>
9193
9194 * observer.c (observer_test_first_notification_function)
9195 (observer_test_second_notification_function)
9196 (observer_test_third_notification_function): Add declarations.
9197
ed01b82c
PA
91982012-03-01 Pedro Alves <palves@redhat.com>
9199
9200 * common/signals.c (default_target_signal_to_host)
9201 (default_target_signal_from_host): Move ...
9202 * arch-utils.c: ... here.
9203 * arch-utils.h (default_target_signal_to_host)
9204 (default_target_signal_from_host): Declare.
9205
9206 * common/signals.c (target_signal_from_command): Move ...
9207 * infrun.c: ... here.
9208 * inferior.h (target_signal_from_command): Declare.
9209 * target.h (target_signal_from_command)
9210 (default_target_signal_from_host, default_target_signal_to_host):
9211 Delete declarations.
9212
9213 * common/signals.c (_initialize_signals): Delete.
9214
c9b87335
PA
92152012-03-01 Pedro Alves <palves@redhat.com>
9216
9217 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9218 both __cplusplus and !__cplusplus.
9219
9340a6c0
PA
92202012-03-01 Pedro Alves <palves@redhat.com>
9221
9222 * psymtab.c (find_and_open_source): Delete declaration.
9223 * source.c (find_and_open_source): Move comment ...
9224 * source.h (find_and_open_source): ... to this new declaration.
9225
e451c4a1
PA
92262012-03-01 Pedro Alves <palves@redhat.com>
9227
9228 * inline-frame.c: Include inline-frame.h.
9229
983fb104
PA
92302012-03-01 Pedro Alves <palves@redhat.com>
9231
9232 * tui/tui-data.c (set_gen_win_origin): Delete.
9233 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9234 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9235
5fbce5df
PA
92362012-03-01 Pedro Alves <palves@redhat.com>
9237
9238 * remote.c (encode_actions): Delete declaration.
9239 * tracepoint.c (encode_actions): Make extern.
9240 * tracepoint.h (encode_actions): Declare.
9241
49a8461d
PA
92422012-03-01 Pedro Alves <palves@redhat.com>
9243
9244 * python/py-breakpoint.c: Include python.h.
9245 * python/py-continueevent.c (create_continue_event_object): Make
9246 static.
9247 * python/py-lazy-string.c (stpy_get_type): Make static.
9248 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9249 Make static.
9250 * python/py-utils.c (unicode_to_target_python_string): Make
9251 static.
9252 * python/py-value.c: Include python.h.
9253
9079102f
PA
92542012-03-01 Pedro Alves <palves@redhat.com>
9255
9256 * inferior.c (delete_threads_of_inferior): Delete.
9257
a298c5e8
PA
92582012-03-01 Pedro Alves <palves@redhat.com>
9259
9260 Import fallback definitions from glibc.
9261
9262 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9263 ps_prochandle): Forward declare.
9264 (ps_err_e): Use glibc's comments.
9265 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9266 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9267 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9268 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9269 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9270 (struct ps_prochandle): Adjust comment.
9271
e3084549
PA
92722012-03-01 Pedro Alves <palves@redhat.com>
9273
9274 * ada-lang.c (ada_modulus_from_name): Delete.
9275 * ada-lex.l (lexer_init): Make static.
9276
ad5f7d6e
PA
92772012-03-01 Pedro Alves <palves@redhat.com>
9278
9279 PR gdb/13767
9280
9281 * frame.c (read_frame_register_unsigned): New.
9282 * frame.h (read_frame_register_unsigned): Declare.
9283 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9284 Handle it.
9285 (print_i387_control_word): New parameter `control_p'. Handle it.
9286 (i387_print_float_info): Handle unavailable float registers.
9287
e0a4d108
KS
92882012-03-01 Keith Seitz <keiths@redhat.com>
9289
9290 * linespec.c (decode_line_2): Sort the list of methods
9291 alphabetically before presenting the user with a selection
9292 menu.
9293
122d1940
DE
92942012-03-01 Doug Evans <dje@google.com>
9295
9296 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9297 has_namespace_info.
9298 (dwarf2_read_abbrevs): Remove corresponding initialization.
9299
7d74f244
DE
93002012-03-01 Scott J. Goldman <scottjg@vmware.com>
9301
9302 * NEWS: Mention new python command class gdb.COMMAND_USER.
9303 * cli/cli-cmds.c (show_user): Print error when used on a python
9304 command.
9305 (init_cli_cmds): Update documentation strings for "show user" and
9306 "set/show max-user-call-depth" to clarify that it does not apply to
9307 python commands.
9308 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9309 error check.
9310 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9311 gdb python api.
9312 * top.c (execute_command): Only execute a user-defined command as a
9313 legacy macro if c->user_commands is set.
9314
e88acd96
TT
93152012-03-01 Tom Tromey <tromey@redhat.com>
9316
9317 * valprint.h (struct generic_val_print_decorations): New.
9318 (generic_val_print): Declare.
9319 * valprint.c (generic_val_print): New function.
9320 * p-valprint.c (p_decorations): New global.
9321 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9322 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9323 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9324 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9325 * m2-valprint.c (m2_decorations): New global.
9326 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9327 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9328 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9329 TYPE_CODE_ERROR>: Call generic_val_print.
9330 * f-valprint.c (f_decorations): New global.
9331 (f_val_print): Use print_function_pointer_address.
9332 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9333 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9334 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9335 generic_val_print.
9336 * c-valprint.c (c_decorations): New global.
9337 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9338 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9339 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9340 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9341 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9342 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9343 case.
9344
d3eab38a
TT
93452012-03-01 Tom Tromey <tromey@redhat.com>
9346
9347 * valprint.c (val_print): Update.
9348 * p-valprint (pascal_val_print): Return void.
9349 * p-lang.h (pascal_val_print): Return void.
9350 * m2-valprint.c (m2_val_print): Return void.
9351 * m2-lang.h (m2_val_print): Return void.
9352 * language.h (struct language_defn) <la_val_print>: Return void.
9353 * language.c (unk_lang_val_print): Return void.
9354 * jv-valprint.c (java_val_print): Return void.
9355 * jv-lang.h (java_val_print): Return void.
9356 * f-valprint.c (f_val_print): Return void.
9357 * f-lang.h (f_val_print): Return void.
9358 * d-valprint.c (d_val_print): Return void.
9359 (dynamic_array_type): Update.
9360 * d-lang.h (d_val_print): Return void.
9361 * c-valprint.c (c_val_print): Return void.
9362 * c-lang.h (c_val_print): Return void.
9363 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9364 void.
9365 * ada-lang.h (ada_val_print): Return void.
9366
35c0084b
TT
93672012-03-01 Tom Tromey <tromey@redhat.com>
9368
9369 * value.h (val_print): Return void.
9370 * valprint.c (val_print): Return void.
9371
a1f5dd1b
TT
93722012-03-01 Tom Tromey <tromey@redhat.com>
9373
9374 * value.h (common_val_print): Return void.
9375 * valprint.c (common_val_print): Return void.
9376
8e069a98
TT
93772012-03-01 Tom Tromey <tromey@redhat.com>
9378
9379 * value.h (value_print): Return void.
9380 * valprint.c (value_print): Return void.
9381 * p-valprint.c (pascal_value_print): Return void.
9382 * p-lang.h (pascal_value_print): Return void.
9383 * language.h (struct language_defn) <la_value_print>: Return
9384 void.
9385 * language.c (unk_lang_value_print): Return void.
9386 * jv-valprint.c (java_value_print): Return void.
9387 * jv-lang.h (java_value_print): Return void.
9388 * f-valprint.c (c_value_print): Don't declare.
9389 Include c-lang.h.
9390 * c-valprint.c (c_value_print): Return void.
9391 * c-lang.h (c_value_print): Return void.
9392 * ada-valprint.c (ada_value_print): Return void.
9393 * ada-lang.h (ada_value_print): Return void.
9394
be335936
TT
93952012-03-01 Tom Tromey <tromey@redhat.com>
9396
9397 * value.c (value_primitive_field): Handle virtual base classes.
9398
b0db66a7
TT
93992012-03-01 Tom Tromey <tromey@redhat.com>
9400
9401 * gdbtypes.h (struct vbase): Remove.
9402
132c57b4
TT
94032012-03-01 Tom Tromey <tromey@redhat.com>
9404
9405 * c-valprint.c (print_function_pointer_address): Move...
9406 * valprint.c: ... here. Make non-static.
9407 * m2-valprint.c (print_function_pointer_address): Remove.
9408 * valprint.h (print_function_pointer_address): Declare.
9409
e41eec66
JB
94102012-03-01 Joel Brobecker <brobecker@adacore.com>
9411
9412 * NEWS: Document the fact that one can provide a condition when
9413 creating an Ada exception catchpoint.
9414
19c37f24
TT
94152012-03-01 Tom Tromey <tromey@redhat.com>
9416
9417 * valprint.c (val_print_type_code_flags): Fix placement of
9418 trailing brace.
9419
f0fed3a3
JB
94202012-03-01 Joel Brobecker <brobecker@adacore.com>
9421
9422 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9423 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9424 environment variable before calling update-copyright.
9425
8ba85d85
JB
94262012-03-01 Joel Brobecker <brobecker@adacore.com>
9427
9428 * gnulib/extra/update-copyright: Update to the latest from
9429 gnulib's git repository.
9430 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9431 variable to 2 instead of 1.
9432
8219b1e8
JB
94332012-02-29 Joel Brobecker <brobecker@adacore.com>
9434
9435 * varobj.c (c_value_of_variable): Remove dead code.
9436
718cb7da
JB
94372012-02-29 Joel Brobecker <brobecker@adacore.com>
9438
9439 * ada-lex.p (processId): Do not modify already encoded IDs.
9440 Update function documentation.
9441
739593e0
JB
94422012-02-29 Joel Brobecker <brobecker@adacore.com>
9443
9444 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9445 "name" with "struct symbol *name_sym".
9446 * ada-exp.y (write_var_or_type): Update call to
9447 ada_find_renaming_symbol.
9448 "name" with "struct symbol *name_sym". Adjust Implementation
9449 accordingly. Adjust the function documentation.
9450
852dff6c
JB
94512012-02-29 Joel Brobecker <brobecker@adacore.com>
9452
9453 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9454 * ada-lang.c (ada_find_any_type): Add advance declaration.
9455 Make static. Replace ada_find_any_symbol by
9456 ada_find_any_type_symbol.
9457 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9458 Improve function description. Make static.
9459 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9460 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9461
1b611343
JB
94622012-02-29 Joel Brobecker <brobecker@adacore.com>
9463
9464 * ada-lang.c (struct tag_args): Delete.
9465 (ada_get_tsd_type): Function body moved up in source file.
9466 (ada_tag_name_1, ada_tag_name_2): Delete.
9467 (ada_get_tsd_from_tag): New function.
9468 (ada_tag_name_from_tsd): New function.
9469 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9470 to determine the tag name.
9471
41246937
JB
94722012-02-29 Joel Brobecker <brobecker@adacore.com>
9473
9474 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9475 declaration.
9476 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9477 function.
9478
ffde82bf
JB
94792012-02-29 Joel Brobecker <brobecker@adacore.com>
9480
9481 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9482
2ad01556
JB
94832012-02-29 Joel Brobecker <brobecker@adacore.com>
9484
9485 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9486 full searches.
9487
99b1c762
JB
94882012-02-29 Joel Brobecker <brobecker@adacore.com>
9489
9490 * ada-lang.c (constrained_packed_array_type): If there is a
9491 parallel XA type, use it to determine the array index type.
9492
2d4a02ee
JB
94932012-02-29 Joel Brobecker <brobecker@adacore.com>
9494
9495 * ada-valprint.c (ada_val_print_1): If our value is a reference
9496 to an array descriptor, dereference it before converting it
9497 to a simple array.
9498
c48db5ca
JB
94992012-02-29 Joel Brobecker <brobecker@adacore.com>
9500
9501 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9502 creating fixed value.
9503 (ada_value_ind, ada_coerce_ref, assign_component)
9504 (ada_evaluate_subexp): Remove call to unwrap_value before
9505 call to ada_to_fixed_value.
9506
2e6fda7d
JB
95072012-02-29 Joel Brobecker <brobecker@adacore.com>
9508
9509 * ada-lang.c (to_fixed_array_type): Set result's type name.
9510
5845583d
JB
95112012-02-29 Joel Brobecker <brobecker@adacore.com>
9512
9513 * ada-lang.c (catch_ada_exception_command_split): Add new
9514 argument cond_string. Add support for condition at end of
9515 "catch exception" commands.
9516 (ada_decode_exception_location): Add new argument cond_string.
9517 Update call to catch_ada_exception_command_split.
9518 (create_ada_exception_catchpoint): Add new argument cond_string.
9519 Set the breakpoint condition if needed.
9520 (catch_ada_exception_command): Update call to
9521 ada_decode_exception_location.
9522 (ada_decode_assert_location): Add function documentation.
9523 Add support for condition at end of "catch assert" command.
9524 (catch_assert_command): Update calls to ada_decode_assert_location
9525 and create_ada_exception_catchpoint.
9526
9a7f938f
JK
95272012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9528
9529 Fix disp-step-syscall.exp: fork: single step over fork.
9530 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9531 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9532 comment, change parameters gdbarch and ptid to regcache. Remove
9533 parameter regcache, initialize gdbarch from regcache here.
9534 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9535 New functions.
9536 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9537 instead.
9538 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9539 'syscall'. Make the 'int' check more strict.
9540
ffdf6de5
JK
95412012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9542
9543 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9544 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9545 (i386_linux_intx80_sysenter_syscall_record): ... here.
9546 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9547 Use the renamed function name.
9548
c70a6932
JK
95492012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9550
9551 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9552 * breakpoint.c (until_break_command): Likewise.
9553 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9554 * infcall.c (call_function_by_hand): Likewise.
9555 * infcmd.c (finish_forward): Likewise.
9556 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9557
05b8a789 95582012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9559
d4cd3da9
JB
9560 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9561 avoid variable assignments inside condition.
9562
6425366c
JK
95632012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9564
9565 Fix static analysis issue found by cppcheck.
9566 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9567 uninitialized BUF for size 2.
9568
c8cef75f 95692012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9570 Nathan Froyd <froydnj@codesourcery.com>
9571 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9572
9573 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9574 (mips16_instruction_has_delay_slot): Likewise.
9575 (mips_segment_boundary): Likewise.
9576 (mips_adjust_breakpoint_address): Likewise.
9577 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9578
473347ad 95792012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9580 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9581
9582 * infrun.c (handle_inferior_event): Don't proceed through
9583 shared library trampolines if stepping at the machine
9584 instruction level.
9585
cf233303
MR
95862012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9587
9588 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9589 too.
9590
cb2cf4ce
TS
95912012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9592
9593 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9594 (sh_stub_unwind_sniffer): New functions.
9595 (sh_stub_unwind): New variable.
9596 (sh_gdbarch_init): Wire everything.
9597
644cebc9
PA
95982012-02-27 Pedro Alves <palves@redhat.com>
9599
9600 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9601 (linux_nat_post_attach_wait): Adjust to use
9602 linux_proc_pid_is_stopped.
9603 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9604 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9605 based on pid_is_stopped from both linux-nat.c and
9606 gdbserver/linux-low.c, and renamed.
9607
283002cf
MR
96082012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9609
9610 * remote.c (remote_watchpoint_addr_within_range): New function.
9611 (init_remote_ops): Use it.
9612
9b3e86b1
MR
96132012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9614
9615 * target.h (target_watchpoint_addr_within_range): Document macro.
9616
e36930bb
PA
96172012-02-24 Pedro Alves <palves@redhat.com>
9618
9619 * stack.c (set_last_displayed_sal): Issue internal_error instead
9620 of warning, and issue it after clearing the last displayed sal.
9621
883bc8d1
PA
96222012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9623 Pedro Alves <palves@redhat.com>
9624
9625 * breakpoint.c (until_break_command): Install breakpoints after
9626 all frame manipulations.
9627
b775012e
LM
96282012-02-24 Luis Machado <lgustavo@codesourcery.com>
9629
9630 * remote.c (remote_supports_cond_breakpoints): New forward
9631 declaration.
9632 (remote_add_target_side_condition): New function.
9633 (remote_insert_breakpoint): Add target-side breakpoint
9634 conditional if supported.
9635 (remote_insert_hw_breakpoint): Likewise.
9636 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9637 hook.
9638
9639 * target.c (update_current_target): Inherit
9640 to_supports_evaluation_of_breakpoint_conditions.
9641 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9642
9643 * target.h (struct target_ops)
9644 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9645 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9646
9647 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9648 (condition_evaluation_both, condition_evaluation_auto,
9649 condition_evaluation_host, condition_evaluation_target,
9650 condition_evaluation_enums, condition_evaluation_mode_1,
9651 condition_evaluation_mode): New static globals.
9652 (translate_condition_evaluation_mode): New function.
9653 (breakpoint_condition_evaluation_mode): New function.
9654 (gdb_evaluates_breakpoint_condition_p): New function.
9655 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9656 (mark_breakpoint_modified): New function.
9657 (mark_breakpoint_location_modified): New function.
9658 (set_condition_evaluation_mode): New function.
9659 (show_condition_evaluation_mode): New function.
9660 (bp_location_compare_addrs): New function.
9661 (get_first_location_gte_addr): New helper function.
9662 (set_breakpoint_condition): Free condition bytecode if locations
9663 has become unconditional. Call mark_breakpoint_modified (...).
9664 (condition_command): Call update_global_location_list (1) for
9665 breakpoints.
9666 (breakpoint_xfer_memory): Use is_breakpoint (...).
9667 (is_breakpoint): New function.
9668 (parse_cond_to_aexpr): New function.
9669 (build_target_condition_list): New function.
9670 (insert_bp_location): Handle target-side conditional
9671 breakpoints and call build_target_condition_list (...).
9672 (update_inserted_breakpoint_locations): New function.
9673 (insert_breakpoint_locations): Handle target-side conditional
9674 breakpoints.
9675 (bpstat_check_breakpoint_conditions): Add comment.
9676 (bp_condition_evaluator): New function.
9677 (bp_location_condition_evaluator): New function.
9678 (print_breakpoint_location): Print information on where the condition
9679 will be evaluated.
9680 (print_one_breakpoint_location): Likewise.
9681 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9682 breakpoint location.
9683 (force_breakpoint_reinsertion): New functions.
9684 (update_global_location_list): Handle target-side breakpoint
9685 conditions.
9686 Reinsert locations that are already inserted if conditions have
9687 changed.
9688 (bp_location_dtor): Free agent expression bytecode.
9689 (disable_breakpoint): Call mark_breakpoint_modified (...).
9690 Call update_global_location_list (...) with parameter 1 for breakpoints.
9691 (disable_command): Call mark_breakpoint_location_modified (...).
9692 Call update_global_location_list (...) with parameter 1 for breakpoints.
9693 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9694 (enable_command): mark_breakpoint_location_modified (...).
9695 (_initialize_breakpoint): Update documentation and add
9696 condition-evaluation breakpoint subcommand.
9697
9698 * breakpoint.h: Include ax.h.
9699 (condition_list): New data structure.
9700 (condition_status): New enum.
9701 (bp_target_info) <cond_list>: New field.
9702 (bp_location) <condition_changed, cond_bytecode>: New fields.
9703 (is_breakpoint): New prototype.
9704
3788aec7
LM
97052012-02-24 Luis Machado <lgustavo@codesourcery.com>
9706
9707 * remote.c (remote_state) <cond_breakpoints>: New field.
9708 (PACKET_ConditionalBreakpoints): New enum.
9709 (remote_cond_breakpoint_feature): New function.
9710 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9711 (remote_supports_cond_breakpoints): New function.
9712 (_initialize_remote): Add new packet configuration for
9713 target-side conditional breakpoints.
9714
72895ff6
LM
97152012-02-24 Luis Machado <lgustavo@codesourcery.com>
9716
9717 * NEWS: Mention target-side conditional breakpoint support,
9718 new condition-evaluation breakpoint subcommand and remote
9719 packet extensions.
9720
dea2aa5f
LM
97212012-02-24 Luis Machado <lgustavo@codesourcery.com>
9722
9723 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9724 number.
9725
8a8bc27f
TS
97262012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9727
9728 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9729 (after_prologue): Remove.
9730
6b446fdf
TT
97312012-02-23 Tom Tromey <tromey@redhat.com>
9732
9733 * jv-valprint.c (java_val_print): Remove dead code.
9734
ef59abfb
TG
97352012-02-23 Tristan Gingold <gingold@adacore.com>
9736
a09130f9
PA
9737 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9738 known_tasks_element and known_tasks_length fields.
9739 (read_known_tasks_array): Change argument type. Use pointer type
9740 and number of elements from DATA. Adjust.
9741 (read_known_tasks_list): Likewise.
9742 (get_known_tasks_addr): Remove.
9743 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9744 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9745 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9746
def166f6
JK
97472012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9748
9749 PR backtrace/13716
9750 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9751 it after set_momentary_breakpoint.
9752
aeaa2474
SA
97532012-02-22 Sterling Augustine <saugustine@google.com>
9754
9755 PR 13689:
9756 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9757
feea76c2
GB
97582012-02-22 Gary Benson <gbenson@redhat.com>
9759
9760 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9761 (find_slot_in_mapped_hash): Likewise.
9762
f06e05e0
JK
97632012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9764
9765 PR build/13638
9766 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9767 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9768 * configure: Regenerate.
9769
b54a8fd7
PA
97702012-02-21 Tristan Gingold <gingold@adacore.com>
9771 Pedro Alves <palves@redhat.com>
9772
9773 * ia64-tdep.c: Do not include libunwind-ia64.h.
9774 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9775 Include libunwind-ia64.h instead of libunwind.h.
9776 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9777 for libunwind.h existence.
9778 * configure, config.in: Regenerate.
9779
dfcee124
AG
97802012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9781
9782 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9783 instead of value_rtti_target_type.
9784 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9785 instead of value_rtti_target_type.
9786 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9787 value_rtti_target_type.
9788 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9789 (value_rtti_target_type): Rename to ...
9790 (value_rtti_indirect_type): ... here and make it indirect. Update
9791 function comment.
9792 * value.c (readjust_indirect_value_type): New function.
9793 (coerce_ref): Support for enclosing type setting for references
9794 with readjust_indirect_value_type.
9795 * value.h (readjust_value_type): New declaration.
9796 (value_rtti_target_type): Rename to ...
9797 (value_rtti_indirect_type): ... here.
9798
02568277
AG
97992012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9800
9801 * MAINTAINERS (Write After Approval): Add myself to the list.
9802
10c07b7e 98032012-02-20 Doug Evans <dje@google.com>
28ee876a 9804
d82ea6a8
DE
9805 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9806 Rename objfile_p_char parameter to objfilep.
9807 (build_objfile_section_table): Result is now void. All callers
9808 updated.
9809 * objfiles.h (struct objfile): Tweak comments, whitespace.
9810 (build_objfile_section_table): Update.
9811
28ee876a
DE
9812 * elfread.c (elf_symfile_segments): Fix warning text.
9813
24c79950
TT
98142012-02-20 Tom Tromey <tromey@redhat.com>
9815
9816 PR gdb/13498:
9817 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9818 particular set of file names once.
9819 (dw2_map_symbol_filenames): Likewise.
9820
3a9b40b6
JK
98212012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9822
9823 Code cleanup.
9824 * main.c (write_files): Remove the declaration.
9825 (external_editor_command): Move the declaration ...
9826 [GDBTK] (external_editor_command): ... here. Fix the comment.
9827
4d0795ca
TT
98282012-02-20 Tom Tromey <tromey@redhat.com>
9829
9830 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9831 extraneous block.
9832
637fd620
TG
98332012-02-20 Tristan Gingold <gingold@adacore.com>
9834
9835 * darwin-nat.h (enum darwin_msg_state): Add comments.
9836
6f124894
TG
98372012-02-20 Tristan Gingold <gingold@adacore.com>
9838
9839 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9840 value.
9841
2e6e3d9c
JB
98422012-20-18 Joel Brobecker <brobecker@adacore.com>
9843
9844 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9845 between function description and implementation.
9846
2e8265fd
TT
98472012-02-17 Tom Tromey <tromey@redhat.com>
9848
9849 PR python/12070:
9850 * python/py-event.c (event_object_getset): New global.
9851 (event_object_type): Reference it.
9852 * python/py-type.c (field_object_getset): New global.
9853 (field_object_type): Reference it.
9854 * python/python-internal.h (gdb_py_generic_dict): Declare.
9855 * python/py-utils.c (gdb_py_generic_dict): New function.
9856
8544a150 98572012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9858
8544a150 9859 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9860
ca193e27
TS
98612012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9862
9863 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9864 TYPE_CALLING_CONVENTION annotation.
9865
e5586183
KB
98662012-02-16 Kevin Buettner <kevinb@redhat.com>
9867
9868 * MAINTAINERS: Add rx to target ISA section.
9869 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9870 (ALLDEPFILES): Add rx-tdep.c.
9871
7dcd53a0
TT
98722012-02-16 Tom Tromey <tromey@redhat.com>
9873
9874 * symfile.c (symbol_file_add_main_1): Use inferior's
9875 symfile_flags.
9876 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9877 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9878 inferior.
9879 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9880 inferior.
9881 (follow_exec): Use inferior's symfile_flags.
9882 * inferior.h (struct inferior) <symfile_flags>: New field.
9883
ddd60447
MF
98842012-02-16 Mike Frysinger <vapier@gentoo.org>
9885
9886 PR gdb/9734:
9887 * remote-sim.c (gdbsim_create_inferior): Call error() when
9888 sim_create_inferior() fails.
9889
b0d32fb6
TG
98902012-02-16 Josh Matthews <josh@joshmatthews.net>
9891
9892 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9893
9addecb9
TT
98942012-02-16 Tom Tromey <tromey@redhat.com>
9895
9896 PR c++/13653:
9897 * thread.c (struct current_thread_cleanup) <was_removable>: New
9898 field.
9899 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9900 (make_cleanup_restore_current_thread): Initialize new field.
9901
a58b110a
KB
99022012-02-15 Kevin Buettner <kevinb@redhat.com>
9903
9904 * MAINTAINERS: Add rl78 to target ISA section.
9905 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9906 (ALLDEPFILES): Add rl78-tdep.c.
9907 * NEWS: Mention rl78 as a new target.
9908
4cb6da1c
AR
99092012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9910
9911 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9912 data.
9913 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9914
3af2590d
TT
99152012-02-15 Tom Tromey <tromey@redhat.com>
9916
9917 PR gdb/12659:
9918 * infcmd.c (registers_info): Print just the current register's
9919 name.
9920
c6910659
TT
99212012-02-15 Tom Tromey <tromey@redhat.com>
9922
9923 * python/py-symbol.c (sympy_value): Use _().
9924
7cee1e54
PA
99252012-02-15 Pedro Alves <palves@redhat.com>
9926
9927 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9928 output to be like native targets'.
9929 (remote_pid_to_str): Special case the null ptid.
9930
816338b5
SS
99312012-02-14 Stan Shebs <stan@codesourcery.com>
9932
9933 * NEWS: Mention enable count command.
9934 * breakpoint.h (struct breakpoint): New field enable_count.
9935 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9936 (enable_breakpoint): Add arg to call.
9937 (struct disp_data): New struct.
9938 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9939 (do_map_enable_once_breakpoint): Create a struct and pass it.
9940 (do_map_enable_delete_breakpoint): Ditto.
9941 (do_map_enable_count_breakpoint): New function.
9942 (enable_count_command): New function.
9943 (bpstat_stop_status): Decrement enable_count.
9944 (print_one_breakpoint_location): Report enable count.
9945 (_initialize_breakpoint): Add enable count command.
9946
c47a44f4
KB
99472012-02-14 Kevin Buettner <kevinb@redhat.com>
9948
9949 * rl78-tdep.c (reggroups.h): Include.
9950 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9951 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9952 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9953 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9954 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9955 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9956 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9957 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9958 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9959 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9960 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9961 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9962 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9963 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9964 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9965 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9966 beginning of register list.
9967 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9968 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9969 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9970 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9971 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9972 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9973 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9974 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9975 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9976 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9977 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9978 the pseudo registers. Rearrange other pseudo registers too so
9979 that the bank registers appear at the end.
9980 (rl78_register_type): Account for the fact that the byte sized
9981 bank registers are now pseudo-registers.
9982 (rl78_register_name): Rearrange the register name array. Make
9983 initial set of raw banked registers inaccessible.
9984 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9985 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9986 case for copying bytes back and forth between raw and pseudo
9987 versions of the banked registers. Update other cases to reflect
9988 the changed names.
9989 (rl78_return_value): Update to account for changed names of
9990 raw registers.
9991 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9992 rl78_register_sim_regno().
9993
e4569f1e
KB
99942012-02-14 Kevin Buettner <kevinb@redhat.com>
9995
9996 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9997 the name parameter being passed to find_pc_partial_function().
9998
7a05aae7
JK
99992012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10000
10001 * MAINTAINERS: Step down from being ia64 target maintainer.
10002
11fde611
JK
100032012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10004
10005 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10006 compilation warning.
10007
57008375
JK
100082012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10009
10010 Fix crash on loaded shlibs without loaded exec_bfd.
10011 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10012 (set_section_command): Replace exec_bfd by p->bfd.
10013
ff3c9849
TT
100142012-02-10 Tom Tromey <tromey@redhat.com>
10015
10016 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10017 when we have a C++ qualified name.
10018
db2b9fdd
PA
100192012-02-10 Pedro Alves <palves@redhat.com>
10020
10021 * inferior.c (inferior_pid_to_str): New.
10022 (print_inferior, inferior_command): Use it.
10023
12cd34f3
PA
100242012-02-10 Pedro Alves <palves@redhat.com>
10025
10026 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10027 the test CFLAGS.
10028 * configure: Regenerate.
10029
e871429d
JK
100302012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10031
10032 * linespec.c (decode_line_internal): Fix comment correctness.
10033
1916efaf
PA
100342012-02-09 Valery Khromov <valery.khromov@gmail.com>
10035
10036 PR gdb/12953
10037 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10038 * amd64bsd-nat.c: Add support for debug registers (adapted from
10039 i386bsd-nat.c).
10040 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10041 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10042 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10043 (amd64bsd_dr_get_control): New functions.
10044 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10045 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10046 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10047 watchpoints initialization.
10048 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10049
f4859d94
JK
100502012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10051
10052 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10053 flds_bnds.fields.
10054 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10055
c56a97f9
JK
100562012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10059
1a119f36
JB
100602012-02-08 Joel Brobecker <brobecker@adacore.com>
10061
10062 * language.h (symbol_name_cmp_ftype): Renames
10063 symbol_name_match_p_ftype.
10064 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10065 la_get_symbol_name_match_p.
10066 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10067 ada_get_symbol_name_match_p. Update comment.
10068 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10069 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10070 Renames symbol_name_match_p. Update field type.
10071 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10072 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10073 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10074 "la_get_symbol_name_cmp" in comments.
10075 * language.c: Likewise.
10076
c71bb1cf
RO
100772012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10078
10079 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10080 %eflags offset.
10081 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10082 (amd64_sol2_gregset32_reg_offs): Likewise.
10083
4b2d20a5
TG
100842012-02-08 Joel Brobecker <brobecker@adacore.com>
10085
10086 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10087 of the returned BFD is allocated by GDB.
10088
f0823d2c
TT
100892012-02-07 Tom Tromey <tromey@redhat.com>
10090
10091 PR python/12027:
10092 * python/python-internal.h (frame_object_type): Declare.
10093 * python/py-symbol.c (sympy_needs_frame): New function.
10094 (sympy_value): New function.
10095 (symbol_object_getset): Add "needs_frame".
10096 (symbol_object_methods): Add "value".
10097 * python/py-frame.c (frame_object_type): No longer static.
10098
64e7d9dd
TT
100992012-02-07 Tom Tromey <tromey@redhat.com>
10100
10101 PR python/13599:
10102 * python/py-symbol.c (sympy_line): New function.
10103 (symbol_object_getset): Add "line".
10104
1d6b2d2b
TT
101052012-02-07 Tom Tromey <tromey@redhat.com>
10106
10107 * charset.c (find_charset_names): Check 'in' against NULL.
10108
0d5cff50
DE
101092012-02-06 Doug Evans <dje@google.com>
10110
10111 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10112 and fields.name members from char * to const char *. All uses updated.
10113 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10114 from char * to const char *. All uses updated.
10115 (type_name_no_tag): Update.
10116 (lookup_unsigned_typename, lookup_signed_typename): Update.
10117 * gdbtypes.c (type_name_no_tag): Change result type
10118 from char * to const char *. All callers updated.
10119 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10120 name parameter from char * to const char *.
10121 * symtab.h (struct cplus_specific): Change type of demangled_name
10122 member from char * to const char *. All uses updated.
10123 (struct general_symbol_info): Change type of name and
10124 mangled_lang.demangled_name members from char * to const char *.
10125 All uses updated.
10126 (symbol_get_demangled_name, symbol_natural_name): Update.
10127 (symbol_demangled_name, symbol_search_name): Update.
10128 * symtab.c (symbol_get_demangled_name): Change result type
10129 from char * to const char *. All callers updated.
10130 (symbol_natural_name, symbol_demangled_name): Ditto.
10131 (symbol_search_name): Ditto.
10132 (completion_list_add_name): Change type of symname,sym_text,
10133 text,word parameters from char * to const char *.
10134 (completion_list_objc_symbol): Change type of sym_text,
10135 text,word parameters from char * to const char *.
10136 * ada-lang.c (find_struct_field): Change type of name parameter
10137 from char * to const char *.
10138 (encoded_ordered_before): Similarly for N0,N1 parameters.
10139 (old_renaming_is_invisible): Similarly for function_name parameter.
10140 (ada_type_name): Change result type from char * to const char *.
10141 All callers updated.
10142 * ada-lang.h (ada_type_name): Update.
10143 * buildsym.c (hashname): Change type of name parameter
10144 from char * to const char *.
10145 * buildsym.h (hashname): Update.
10146 * dbxread.c (end_psymtab): Change type of include_list parameter
10147 from char ** to const char **.
10148 * dwarf2read.c (determine_prefix): Change result type
10149 from char * to const char *. All callers updated.
10150 * f-lang.c (find_common_for_function): Change type of name, funcname
10151 parameters from char * to const char *.
10152 * f-lang.c (find_common_for_function): Update.
10153 * f-valprint.c (list_all_visible_commons): Change type of funcname
10154 parameters from char * to const char *.
10155 * gdbarch.sh (static_transform_name): Change type of name parameter
10156 and result from char * to const char *.
10157 * gdbarch.c: Regenerate.
10158 * gdbarch.h: Regenerate.
10159 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10160 of name parameter from char * to const char *.
10161 * jv-lang.c (java_primitive_type_from_name): Ditto.
10162 (java_demangled_signature_length): Similarly for signature parameter.
10163 (java_demangled_signature_copy): Ditto.
10164 (java_demangle_type_signature): Ditto.
10165 * jv-lang.h (java_primitive_type_from_name): Update.
10166 (java_demangle_type_signature): Update.
10167 * objc-lang.c (specialcmp): Change type of a,b parameters
10168 from char * to const char *.
10169 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10170 from char * to const char *. All callers updated.
10171 * p-lang.h (is_pascal_string_type): Update.
10172 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10173 of name parameter from char * to const char *.
10174 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10175 * utils.c (fprintf_symbol_filtered): Ditto.
10176 * defs.h (fprintf_symbol_filtered): Update.
10177 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10178 * stabsread.h (end_psymtab): Update.
10179 * stack.c (find_frame_funname): Change type of funname parameter
10180 from char ** to const char **.
10181 * stack.h (find_frame_funname): Update.
10182 * typeprint.c (type_print): Change type of varstring parameter
10183 from char * to const char *.
10184 * value.h (type_print): Update.
10185 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10186 from char * to const char *. All callers updated.
10187 (xcoff_end_psymtab): Change type of include_list parameter
10188 from char ** to const char **. All callers updated.
10189 (swap_sym): Similarly for name parameter. All callers updated.
10190 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10191 Use xstrdup.
10192 (process_coff_symbol): Use xstrdup.
10193 * stabsread.c (stabs_method_name_from_physname): Renamed from
10194 update_method_name_from_physname. Change result type from void
10195 to char *. All callers updated.
10196 (read_member_functions): In has_destructor case, store name in objfile
10197 obstack instead of malloc space. In !has_stub case, fix mem leak.
10198
5579a92e
TT
101992012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10200
10201 * configure: Rebuild.
10202 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10203 LDFLAGS.
10204
9058f767
KB
102052012-02-03 Kevin Buettner <kevinb@redhat.com>
10206
10207 * configure.tgt (rl78-*-elf): New target.
10208 * rl78-tdep.c: New file.
10209
5b37825d
PW
102102012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10211
10212 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10213 and continue the loop. Add QUIT statement.
10214
e009ee71
TT
102152012-02-03 Tom Tromey <tromey@redhat.com>
10216
10217 PR gdb/13596:
10218 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10219 bfd_lookup_symbol_from_symtab.
10220 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10221 gdb_bfd_lookup_symbol_from_symtab.
10222
f7e44f65
JB
102232012-02-03 Joel Brobecker <brobecker@adacore.com>
10224
10225 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10226 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10227 symbol. Add assertion that sym2 is never NULL.
10228
2c02bd72
DE
102292012-02-02 Doug Evans <dje@google.com>
10230
10231 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10232 "name" parameter to const char ** from char **. All callers updated.
10233 (find_pc_partial_function): Ditto.
10234 (cache_pc_function_name): Change type to const char * from char *.
10235 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10236 (find_pc_partial_function): Update.
10237 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10238 type of "name" parameter to const char * from char *.
10239 All uses updated.
10240 * arch-utils.c (generic_in_solib_return_trampoline): Change
10241 type of "name" parameter to const char * from char *.
10242 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10243 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10244 type of "name" parameter to const char * from char *.
10245 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10246 * gdbarch.c: Regenerate.
10247 * gdbarch.h: Regenerate.
10248 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10249 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10250 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10251 type of "name" parameter to const char * from char *.
10252 * skip.c (skip_function_pc): Ditto.
10253 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10254 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10255 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10256 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10257 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10258 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10259 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10260 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10261 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10262
e886a173
PA
102632012-02-02 Pedro Alves <palves@redhat.com>
10264
10265 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10266 the current inferior has no execution. Make sure the current
10267 remote process matches gdb's current inferior.
10268
c709a7c2
TT
102692012-02-02 Tom Tromey <tromey@redhat.com>
10270
10271 PR gdb/13405:
10272 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10273 read-only memory.
10274
f149aabd
TT
102752012-02-02 Tom Tromey <tromey@redhat.com>
10276
10277 PR gdb/9307:
10278 * symtab.c (lookup_language_this): Set block_found.
10279
03bef283
TT
102802012-02-01 Tom Tromey <tromey@redhat.com>
10281
10282 PR gdb/13431:
10283 * jit.c (struct jit_inferior_data): Rewrite.
10284 (struct jit_objfile_data): New.
10285 (get_jit_objfile_data): New function.
10286 (add_objfile_entry): Update.
10287 (jit_read_descriptor): Return int. Replace descriptor_addr
10288 argument with inf_data. Update. Don't call error.
10289 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10290 descriptor here.
10291 (jit_inferior_init): Don't look up descriptor. Don't call error.
10292 (jit_reset_inferior_data_and_breakpoints)
10293 (jit_inferior_created_observer): Remove.
10294 (jit_inferior_exit_hook): Update.
10295 (jit_executable_changed_observer): Remove.
10296 (jit_event_handler): Update.
10297 (free_objfile_data): Reset inferior data if needed.
10298 (_initialize_jit): Update.
10299
f0bbc364
TT
103002012-02-01 Tom Tromey <tromey@redhat.com>
10301
10302 * jit.c (bfd_open_from_target_memory): Move higher in file.
10303
47c1316c
TG
103042012-02-01 Tristan Gingold <gingold@adacore.com>
10305
10306 * libunwind-frame.c (libunwind_load): Display message if dlopen
10307 failed.
10308
8e704927
GB
103092012-02-01 Gary Benson <gbenson@redhat.com>
10310
09c7a31f 10311 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10312 (iterate_over_symbols): Use the above.
10313 * symtab.c (iterate_over_symbols): Likewise.
10314 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10315 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10316 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10317 (iterate_name_matcher): Document return values.
10318 (collect_one_symbol): Likewise.
10319 (collect_function_symbols): Likewise.
10320 (collect_symbols): Likewise.
10321
d9680e73
TT
103222012-02-01 Tom Tromey <tromey@redhat.com>
10323
10324 * ada-lang.c (resolve_subexp): Update.
10325 (ada_lookup_symbol_list): Add 'full_search' argument.
10326 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10327 ada_lookup_symbol_list.
10328 (ada_lookup_encoded_symbol): Update.
10329 (get_var_value): Update.
10330 * ada-exp.y (block_lookup): Update.
10331 (write_var_or_type): Update.
10332 (write_name_assoc): Update.
10333 * ada-lang.h (ada_lookup_symbol_list): Update.
10334
72e1143f
TT
103352012-01-31 Tom Tromey <tromey@redhat.com>
10336
10337 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10338 comment.
10339
ab2d2ad3
DE
103402012-01-31 Doug Evans <dje@google.com>
10341
10342 * symtab.h: Remove outdated comment.
e9111bf7 10343 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10344
bc884eba
JB
103452012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10346
10347 Fix build error in Darwin port.
10348 * i386-darwin-nat.c: Include i386-nat.h.
10349
8fc3fc34
TT
103502012-01-30 Tom Tromey <tromey@redhat.com>
10351
10352 PR breakpoints/13568:
10353 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10354 argument. Check for recursive includes.
10355 (dwarf_decode_macros): Create an include hash.
10356
5d853008
ME
103572012-01-30 Michael Eager <eager@eagercon.com>
10358
10359 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10360 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10361 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10362 (powerpc_linux_in_plt_stub): New function.
10363 (powerpc_linux_in_dynsym_resolve_code): New function.
10364 (ppc_skip_trampoline_code): New function.
10365 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10366 Use glibc_skip_solib_resolver.
10367
40478521
JK
103682012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10369
10370 Code cleanup: Make 1440 bytes of data segment read-only.
10371 * arch-utils.c (endian_enum): Make it const char *const [].
10372 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10373 Likewise.
10374 * breakpoint.c (always_inserted_enums): Likewise.
10375 * cli/cli-cmds.c (script_ext_enums): Likewise.
10376 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10377 enumlist parameter const char *const *.
10378 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10379 const char *const *.
10380 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10381 parameter const char *const *.
10382 * cris-tdep.c (cris_modes): Make it const char *const [].
10383 * filesystem.c (target_file_system_kinds): Likewise.
10384 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10385 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10386 (can_use_displaced_stepping_enum, scheduler_enums)
10387 (exec_direction_names): Likewise.
10388 * language.c (_initialize_language): Make the type_or_range_names and
10389 case_sensitive_names variables const char *const [].
10390 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10391 * python/python.c (python_excp_enums): Likewise.
10392 * remote.c (interrupt_sequence_modes): Likewise.
10393 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10394 * serial.c (logbase_enums): Likewise.
10395 * sh-tdep.c (sh_cc_enum): Likewise.
10396 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10397 Likewise.
10398 * symtab.c (multiple_symbols_modes): Likewise.
10399 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10400 Likewise.
10401 * utils.c (internal_problem_modes): Likewise.
10402
b3b8b934
JK
104032012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10404
10405 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10406 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10407 result.
10408
8c85a4e2
DE
104092012-01-27 Doug Evans <dje@google.com>
10410
10411 * configure.ac (with_python): Fix absolute path handling for win32.
10412 * configure: Regenerate.
10413
78d8b4d7
DE
104142012-01-26 Doug Evans <dje@google.com>
10415
eca864fe
DE
10416 * symtab.c: Whitespace cleanup, no code changes.
10417
7e082072
DE
10418 * symtab.c (lookup_symbol_in_language): Improve comment.
10419 (lookup_symbol_aux): Fix comment.
10420
7dc25483
DE
10421 * psymtab.c (add_psymbol_to_list): Result is now "void".
10422 * psympriv.h (add_psymbol_to_list): Update.
10423
78d8b4d7
DE
10424 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10425
4c63965b
JK
104262012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10427
10428 Do not open script filenames twice.
10429 * cli/cli-cmds.c (source_script_from_stream): Pass to
10430 source_python_script also STREAM.
10431 * python/py-auto-load.c (source_section_scripts): Pass to
10432 source_python_script_for_objfile also STREAM.
10433 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10434 also INPUT.
10435 * python/python-internal.h (source_python_script_for_objfile): New
10436 parameter file, rename parameter file to filename.
10437 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10438 instead if !_WIN32. Update the function comment.
10439 (source_python_script, source_python_script_for_objfile)
10440 (source_python_script): New parameter file, rename parameter file to
10441 filename. Pass FILENAME to python_run_simple_file.
10442 * python/python.h (source_python_script): New parameter file, rename
10443 parameter file to filename.
10444
88f38a04
PA
104452012-01-26 Pedro Alves <palves@redhat.com>
10446
10447 * corelow.c (core_has_fake_pid): Delete.
10448 (core_close): Delete references to `core_has_fake_pid'.
10449 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10450 (core_open): Delete references to `core_has_fake_pid'.
10451 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10452 the removed global.
10453
e078317b
JB
104542012-01-26 Joel Brobecker <brobecker@adacore.com>
10455
10456 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10457 Remove language parameter from name_matcher. Adjust the comment.
10458 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10459 Remove language parameter.
10460 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10461 * linespec.c (iterate_name_matcher): Likewise.
10462 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10463 name_matcher. Adjust call accordingly.
10464 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10465 (maintenance_check_symtabs): Adjust type of parameter "fun".
10466 * psymtab.h (maintenance_check_symtabs): Likewise.
10467
74ccd7f5
JB
104682012-01-26 Joel Brobecker <brobecker@adacore.com>
10469
10470 * language.h (symbol_name_match_p_ftype): New typedef.
10471 (struct language_defn): Replace field la_symbol_name_compare
10472 by la_get_symbol_name_match_p.
10473 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10474 (ada_language_defn): Use it.
10475 * linespec.c (struct symbol_matcher_data): New type.
10476 (iterate_name_matcher): Rewrite.
10477 (iterate_over_all_matching_symtabs): Pass a pointer to
10478 a symbol_matcher_data struct to expand_symtabs_matching
10479 instead of just the lookup name.
10480 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10481 opencl-lang.c, p-lang.c, language.c: Delete field
10482 la_symbol_name_compare, and replace by NULL for new field
10483 la_get_symbol_name_match_p.
10484 * symfile.h (struct quick_symbol_functions): Update comment.
10485
5d268276
TT
104862012-01-25 Tom Tromey <tromey@redhat.com>
10487
10488 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10489 dereferencing.
10490
edcc5120
TT
104912012-01-24 Tom Tromey <tromey@redhat.com>
10492
10493 PR symtab/12406:
10494 * solib.c (update_solib_list): Update the program space's
10495 added_solibs and deleted_solibs fields.
10496 * progspace.h (struct program_space) <added_solibs,
10497 deleted_solibs>: New fields.
10498 (clear_program_space_solib_cache): Declare.
10499 * progspace.c (release_program_space): Call
10500 clear_program_space_solib_cache.
10501 (clear_program_space_solib_cache): New function.
10502 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10503 bpstat_stop_status. Use handle_solib_event.
10504 * breakpoint.c: Include gdb_regex.h.
10505 (print_solib_event): New function.
10506 (bpstat_print): Use print_solib_event.
10507 (bpstat_stop_status): Add special case for bp_shlib_event.
10508 (handle_solib_event): New function.
10509 (bpstat_what): Use handle_solib_event.
10510 (struct solib_catchpoint): New.
10511 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10512 (breakpoint_hit_catch_solib, check_status_catch_solib)
10513 (print_it_catch_solib, print_one_catch_solib)
10514 (print_mention_catch_solib, print_recreate_catch_solib): New
10515 functions.
10516 (catch_solib_breakpoint_ops): New global.
10517 (catch_load_or_unload, catch_load_command_1)
10518 (catch_unload_command_1): New functions.
10519 (internal_bkpt_check_status): Add special case for
10520 bp_shlib_event.
10521 (internal_bkpt_print_it): Use print_solib_event.
10522 (initialize_breakpoint_ops): Initialize
10523 catch_solib_breakpoint_ops.
10524 (_initialize_breakpoint): Register "catch load" and "catch
10525 unload".
10526 * breakpoint.h (handle_solib_event): Declare.
10527 * NEWS: Add entry for "catch load" and "catch unload".
10528
fa864999
TT
105292012-01-24 Tom Tromey <tromey@redhat.com>
10530
10531 * ada-lang.c: Include gdb_vecs.h.
10532 * charset.c: Include gdb_vecs.h.
10533 * tracepoint.h: Include gdb_vecs.h.
10534 * gdb_vecs.h: New file.
10535
f90263c1
TT
105362012-01-24 Pedro Alves <pedro@codesourcery.com>
10537
10538 * breakpoint.c (breakpoint_hit_catch_fork)
10539 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10540 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10541 * infrun.c (inferior_has_forked, inferior_has_vforked)
10542 (inferior_has_execd, inferior_has_called_syscall): Delete.
10543 (handle_syscall_event): Get syscall_number from the execution
10544 control state's wait status.
10545 (wait_for_inferior): Don't clear syscall_number.
10546
09ac7c10
TT
105472012-01-24 Pedro Alves <palves@redhat.com>
10548
10549 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10550 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10551 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10552 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10553 `ws' parameter.
10554 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10555 false for events other than TARGET_SIGNAL_TRAP.
10556 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10557 Add `ws' parameter.
10558 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10559 events other than TARGET_SIGNAL_TRAP.
10560 (tracepoint_breakpoint_hit): Add `ws' parameter.
10561 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10562 parameter.
10563 (bpstat_stop_status): Same.
10564 (pc_at_non_inline_function): Same.
10565 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10566 to pass the current event's waitstatus to bpstat_stop_status
10567 and pc_at_non_inline_function.
10568
86eb7e95
JK
105692012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10570
10571 Code cleanup.
10572 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10573 Update the function comment for it.
10574 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10575 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10576 for STREAM.
10577
a9b3a50f
PA
105782012-01-24 Pedro Alves <palves@redhat.com>
10579
10580 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10581 outside `bs->stop' block.
10582 (bpstat_what): Rework bp_shlib_event handling.
10583 (internal_bkpt_check_status): If the breakpoint is a
10584 bp_shlib_event, then set bs->stop and bs->print if
10585 stop_on_solib_events is set.
10586
53fe1783
GB
105872012-01-24 Gary Benson <gbenson@redhat.com>
10588
10589 Delete #if 0'd out code.
10590 * stack.c (print_frame_label_vars): Remove.
10591 (catch_info): Likewise.
10592 (_initialize_stack): Remove "info catch" command.
10593 * NEWS: Mention the above.
10594
49c62f2e
PA
105952012-01-24 Pedro Alves <palves@redhat.com>
10596
10597 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10598 it.
10599 (remote_notice_new_inferior): If the remote end doesn't support
10600 the multiprocess extensions, then the PID is fake.
10601 (add_current_inferior_and_thread): New.
10602 (remote_start_remote): Use it.
10603 (extended_remote_attach_1): Adjust.
10604 (extended_remote_create_inferior_1): Use
10605 add_current_inferior_and_thread.
10606
d0d8b0c6
JK
106072012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10608
10609 Fix watchpoints to be specific for each inferior.
10610 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10611 current_program_space.
10612 * i386-nat.c (i386_inferior_data_cleanup): New.
10613 (i386_inferior_data_get): Replace variable inf_data_local by an
10614 inferior_data call.
10615 (i386_use_watchpoints): Initialize i386_inferior_data.
10616 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10617 specific iterate_over_lwps.
10618
4403d8e9
JK
106192012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10620
10621 Fix watchpoints across inferior fork.
10622 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10623 comment for linux_nat_iterate_watchpoint_lwps.
10624 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10625 linux_nat_iterate_watchpoint_lwps.
10626 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10627 * i386-linux-nat.c (update_debug_registers_callback): Update the
10628 comment for linux_nat_iterate_watchpoint_lwps.
10629 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10630 linux_nat_iterate_watchpoint_lwps.
10631 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10632 * i386-nat.c: Include inferior.h.
10633 (dr_mirror): Remove.
10634 (i386_inferior_data, struct i386_inferior_data)
10635 (i386_inferior_data_get): New.
10636 (i386_debug_reg_state): Use i386_inferior_data_get.
10637 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10638 (i386_insert_watchpoint, i386_remove_watchpoint)
10639 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10640 (i386_remove_hw_breakpoint): New variable state, use
10641 i386_debug_reg_state instead of DR_MIRROR.
10642 * linux-nat.c (delete_lwp): New declaration.
10643 (num_lwps): Move here from downwards.
10644 (delete_lwp_cleanup): New.
10645 (linux_child_follow_fork): Create new child_lp, call
10646 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10647 PTRACE_DETACH.
10648 (num_lwps): Move upwards.
10649 (linux_nat_iterate_watchpoint_lwps): New.
10650 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10651 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10652
2992c9a7 106532012-01-24 Joel Brobecker <brobecker@adacore.com>
10654
10655 GDB 7.4 released.
10656
e360902b
PA
106572012-01-23 Pedro Alves <palves@redhat.com>
10658
10659 * top.c (caution): Rename to ...
10660 (confirm): ... this.
10661 (show_caution): Rename to ...
10662 (show_confirm): ... this.
10663 (quit_cover): Adjust.
10664 (init_main): Adjust.
10665 * top.h (caution): Rename to ...
10666 (confirm): ... this.
10667 * utils.c (internal_vproblem, defaulted_query): Adjust.
10668
050a2e1d
PA
106692012-01-23 Pedro Alves <palves@redhat.com>
10670
10671 * top.c (caution): Update comment.
10672 (execute_command): Don't consider the current value of `caution'.
10673
77a35dd8
JK
106742012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10675
10676 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10677
a71b5a38
UW
106782012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10679
10680 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10681 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10682 * target.c (target_fileio_pwrite): Remove buffer address from
10683 debug output.
10684 (target_fileio_pread): Likewise.
10685
d99bd577
UW
106862012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10687
10688 * NEWS: Document remote "info proc" and "generate-core-file".
10689
35c2fab7
UW
106902012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10691
10692 * gdbarch.sh (find_memory_regions): New callback.
10693 * gdbarch.c, gdbarch.h: Regenerate.
10694
10695 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10696 callback before falling back to target method.
10697
10698 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10699 (linux_target_install_ops): No longer install it.
10700
10701 * linux-tdep.c (linux_find_memory_regions): New function.
10702 (linux_init_abi): Install it.
10703
6432734d
UW
107042012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10705
10706 * gdbarch.sh (make_corefile_notes): New architecture callback.
10707 * gdbarch.c: Regenerate.
10708 * gdbarch.h: Likewise.
10709
10710 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10711 before target_make_corefile_notes. If NULL is returned, the
10712 target does not support core file generation.
10713
10714 * linux-nat.c: Include "linux-tdep.h".
10715 (find_signalled_thread, find_stop_signal): Remove.
10716 (linux_nat_do_thread_registers): Likewise.
10717 (struct linux_nat_corefile_thread_data): Likewise.
10718 (linux_nat_corefile_thread_callback): Likewise.
10719 (iterate_over_spus): Likewise.
10720 (struct linux_spu_corefile_data): Likewise.
10721 (linux_spu_corefile_callback): Likewise.
10722 (linux_spu_make_corefile_notes): Likewise.
10723 (linux_nat_collect_thread_registers): New function.
10724 (linux_nat_make_corefile_notes): Replace contents by call to
10725 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10726 as native-only callback.
10727
10728 * linux-tdep.h: Include "bfd.h".
10729 (struct regcache): Add forward declaration.
10730 (linux_collect_thread_registers_ftype): New typedef.
10731 (linux_make_corefile_notes): Add prototype.
10732 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10733 "regset.h", and "elf-bfd.h".
10734 (find_signalled_thread, find_stop_signal): New functions.
10735 (linux_spu_make_corefile_notes): Likewise.
10736 (linux_collect_thread_registers): Likewise.
10737 (struct linux_corefile_thread_data): New data structure.
10738 (linux_corefile_thread_callback): New funcion.
10739 (linux_make_corefile_notes): Likewise.
10740 (linux_make_corefile_notes_1): Likewise.
10741 (linux_init_abi): Install it.
10742
3030c96e
UW
107432012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10744
10745 * gdbarch.sh (info_proc): New callback.
10746 * gdbarch.c, gdbarch.h: Regenerate.
10747
10748 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10749 before falling back to the target info_proc callback.
10750
10751 * linux-nat.c: Do not include "cli/cli-utils.h".
10752 (linux_nat_info_proc): Remove.
10753 (linux_target_install_ops): No longer install it.
10754
10755 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10756 (read_mapping): New function.
10757 (linux_info_proc): Likewise.
10758 (linux_init_abi): Install it.
10759
145b16a9
UW
107602012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10761
10762 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10763 * infcmd.c: (info_proc_cmd_1): New function.
10764 (info_proc_cmd): New function, moved here from equivalent routine
10765 orignally in linux-nat.c.
10766 (info_proc_cmd_mappings): Likewise.
10767 (info_proc_cmd_stat): Likewise.
10768 (info_proc_cmd_status): Likewise.
10769 (info_proc_cmd_cwd): Likewise.
10770 (info_proc_cmd_cmdline): Likewise.
10771 (info_proc_cmd_exe): Likewise.
10772 (info_proc_cmd_all): Likewise.
10773 (_initialize_infcmd): Install "info proc" command and subcommands.
10774
10775 * target.h (struct target_ops): Add to_info_proc.
10776 (target_info_proc): Add prototype.
10777 * target.c (target_info_proc): New function.
10778
10779 * procfs.c (procfs_info_proc): Add prototype.
10780 (info_proc_cmd): Rename into ...
10781 (procfs_info_proc): ... this. Update argument types as appropriate
10782 for a to_info_proc implementation. Handle "what" argument.
10783 (procfs_target): Install procfs_info_proc.
10784 (_initialize_procfs): No longer install "info proc" command.
10785
10786 * linux-nat.c: (enum info_proc_what): Remove.
10787 (linux_nat_info_proc_cmd_1): Rename into ...
10788 (linux_nat_info_proc): ... this. Update argument types as appropriate
10789 for a to_info_proc implementation.
10790 (linux_nat_info_proc_cmd): Remove.
10791 (linux_nat_info_proc_cmd_mappings): Likewise.
10792 (linux_nat_info_proc_cmd_stat): Likewise.
10793 (linux_nat_info_proc_cmd_status): Likewise.
10794 (linux_nat_info_proc_cmd_cwd): Likewise.
10795 (linux_nat_info_proc_cmd_cmdline): Likewise.
10796 (linux_nat_info_proc_cmd_exe): Likewise.
10797 (linux_nat_info_proc_cmd_all): Likewise.
10798 (linux_target_install_ops): Install linux_nat_info_proc.
10799 (_initialize_linux_nat): No longer install "info proc" command
10800 and subcommands.
10801
b9e7b9c3
UW
108022012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10803
10804 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10805 * config.in, configure: Regenerate.
10806
10807 * target.h (struct target_ops): Add to_fileio_readlink.
10808 (target_fileio_readlink): Add prototype.
10809 * target.c (target_fileio_readlink): New function.
10810
10811 * inf-child.c: Conditionally include <sys/param.h>.
10812 (inf_child_fileio_readlink): New function.
10813 (inf_child_target): Install it.
10814
10815 * remote.c (PACKET_vFile_readlink): New enum value.
10816 (remote_hostio_readlink): New function.
10817 (init_remote_ops): Install it.
10818 (_initialize_remote): Handle vFile:readlink packet type.
10819
7313baad
UW
108202012-01-20 Pedro Alves <palves@redhat.com>
10821 Ulrich Weigand <ulrich.weigand@linaro.org>
10822
10823 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10824 * config.in, configure: Regenerate.
10825
10826 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10827 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10828 (target_fileio_open): Add prototype.
10829 (target_fileio_pwrite): Likewise.
10830 (target_fileio_pread): Likewise.
10831 (target_fileio_close): Likewise.
10832 (target_fileio_unlink): Likewise.
10833 (target_fileio_read_alloc): Likewise.
10834 (target_fileio_read_stralloc): Likewise.
10835
10836 * target.c: Include "gdb/fileio.h".
10837 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10838 (default_fileio_target): New function.
10839 (target_fileio_open): Likewise.
10840 (target_fileio_pwrite): Likewise.
10841 (target_fileio_pread): Likewise.
10842 (target_fileio_close): Likewise.
10843 (target_fileio_unlink): Likewise.
10844 (target_fileio_close_cleanup): Likewise.
10845 (target_fileio_read_alloc_1): Likewise.
10846 (target_fileio_read_alloc): Likewise.
10847 (target_fileio_read_stralloc): Likewise.
10848
10849 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10850 <fcntl.h>, and <unistd.h>.
10851 (inf_child_fileio_open_flags_to_host): New function.
10852 (inf_child_errno_to_fileio_error): Likewise.
10853 (inf_child_fileio_open): Likewise.
10854 (inf_child_fileio_pwrite): Likewise.
10855 (inf_child_fileio_pread): Likewise.
10856 (inf_child_fileio_close): Likewise.
10857 (inf_child_fileio_unlink): Likewise.
10858 (inf_child_target): Install to_fileio routines.
10859
10860 * remote.c (init_remote_ops): Install to_fileio routines.
10861
901f9912
UW
108622012-01-20 Pedro Alves <palves@redhat.com>
10863 Ulrich Weigand <ulrich.weigand@linaro.org>
10864
10865 * remote.c (remote_multi_process_p): Only check for multi-process
10866 protocol feature, do not check for extended protocol.
10867 (remote_supports_multi_process): Check for extended protocol here.
10868 (set_general_process): Likewise.
10869 (extended_remote_kill): Likewise.
10870 (remote_pid_to_str): Likewise.
10871 (remote_query_supported): Always query multiprocess mode.
10872
e714e1bf
UW
108732012-01-20 Pedro Alves <palves@redhat.com>
10874 Ulrich Weigand <ulrich.weigand@linaro.org>
10875
10876 * inferior.h (struct inferior): Add fake_pid_p.
10877 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10878 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10879 magic_null_ptid since the remote side doesn't provide a real PID.
10880
50897289
TT
108812012-01-19 Tom Tromey <tromey@redhat.com>
10882
10883 * NEWS: Combine the two Python sections.
10884
1afc2033
JK
108852012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10886
10887 * target.h (target_close): Update comment on the target's unpush state.
10888
305436e0
PA
108892012-01-19 Pedro Alves <palves@redhat.com>
10890
10891 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10892 linux_nat_async directly instead of going through the target
10893 vector.
10894 * target.c (unpush_target): Close target after unpushing it, not
10895 before.
10896
49323895
GB
108972012-01-19 Gary Benson <gbenson@redhat.com>
10898
10899 * mdebugread.c (sort_blocks): Replace integer constants with ones
10900 derived from FIRST_LOCAL_BLOCK.
10901
1db33378
PP
109022012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10903 Jan Kratochvil <jan.kratochvil@redhat.com>
10904
10905 PR gdb/9538
10906 * symfile.c (find_separate_debug_file): New function.
10907 (terminate_after_last_dir_separator): Likewise.
10908 (find_separate_debug_file_by_debuglink): Also try realpath.
10909 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10910 * configure: Regenerate.
10911 * config.in: Regenerate.
10912
f83d8a90
DE
109132012-01-18 Doug Evans <dje@google.com>
10914
10915 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10916 (main.o): Remove rule.
10917 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10918 (--with-sysroot): Rewrite.
10919 * configure: Regenerate.
10920 * config.in: Regenerate.
10921
2dbca4d6
SDJ
109222012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10923
10924 * parse.c (initialize_expout): New function.
10925 (reallocate_expout): Likewise.
10926 (parse_exp_in_context): Use `initialize_expout' and
10927 `reallocate_expout' when appropriate.
10928
0695b514
PA
109292012-01-18 Pedro Alves <palves@redhat.com>
10930
10931 * record.c (struct record_breakpoint, record_breakpoint_p)
10932 (record_breakpoints): New.
10933 (record_insert_breakpoint, record_remove_breakpoint): Manage
10934 record breakpoints list. Only remove breakpoints from the
10935 inferior if they had been inserted there in the first place.
10936
136e1c30
DE
109372012-01-17 Doug Evans <dje@google.com>
10938
10939 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10940 if we know we don't have a file name to look for.
10941
c0bf857d
PA
109422012-01-17 Pedro Alves <palves@redhat.com>
10943
10944 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10945 the frame's stop reason is UNWIND_UNAVAILABLE.
10946
b486de60
JK
109472012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10948
10949 Fix compilation error.
10950 * m2-exp.y (yyerror): Use ANSI C prototype.
10951
d04550a6
SDJ
109522012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10953
10954 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10955 (growbuf_by_size): Likewise.
10956 (yyerror): Likewise.
10957 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10958 (modblock): Remove variable (was #if 0'ed).
10959 (parse_number): Convert prototype from K&R to ANSI C.
10960 (yyerror): Likewise.
10961 * objc-exp.y (parse_number): Likewise.
10962 (yyerror): Likewise.
10963 (yylex): Remove #if 0'ed code.
10964 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10965 (yyerror): Likewise.
10966
4aac40c8
TT
109672012-01-16 Tom Tromey <tromey@redhat.com>
10968
10969 * NEWS: Add item.
10970 * symtab.h (compare_filenames_for_search): Declare.
10971 * symtab.c (compare_filenames_for_search): New function.
10972 (iterate_over_some_symtabs): Use it.
10973 * symfile.h (struct quick_symbol_functions)
10974 <map_symtabs_matching_filename>: Change spec.
10975 * psymtab.c (partial_map_symtabs_matching_filename): Use
10976 compare_filenames_for_search. Update for new spec.
10977 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10978 compare_filenames_for_search. Update for new spec.
10979 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10980
cafec441
TT
109812012-01-16 Tom Tromey <tromey@redhat.com>
10982
10983 PR python/13281:
10984 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10985 (struct main_type) <flag_flag_enum>: New field.
10986 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10987 * NEWS: Add entries.
10988 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10989 enums.
10990 * python/lib/gdb/printing.py (_EnumInstance): New class.
10991 (FlagEnumerationPrinter): Likewise.
10992
983af33b
SDJ
109932012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10994
10995 * breakpoint.c (create_sals_from_address_default): New function.
10996 (create_breakpoints_sal_default): Likewise.
10997 (decode_linespec_default): Likewise.
10998 (is_marker_spec): Removed.
10999 (strace_marker_p): New function.
11000 (init_breakpoint_sal): Using `strace_marker_p' instead of
11001 `is_marker_spec'.
11002 (create_breakpoint): Call method `create_sals_from_address' from
11003 breakpoint_ops, replacing code that created SALs conditionally
11004 on the type of the breakpoint. Call method `create_breakpoints_sal',
11005 replacing code that created breakpoints conditionally on the type
11006 wanted.
11007 (base_breakpoint_create_sals_from_address): New function.
11008 (base_breakpoint_create_breakpoints_sal): Likewise.
11009 (base_breakpoint_decode_linespec): Likewise.
11010 (base_breakpoint_ops): Add methods
11011 `base_breakpoint_create_sals_from_address',
11012 `base_breakpoint_create_breakpoints_sal' and
11013 `base_breakpoint_decode_linespec'.
11014 (bkpt_create_sals_from_address): New function.
11015 (bkpt_create_breakpoints_sal): Likewise.
11016 (bkpt_decode_linespec): Likewise.
11017 (tracepoint_create_sals_from_address): Likewise.
11018 (tracepoint_create_breakpoints_sal): Likewise.
11019 (tracepoint_decode_linespec): Likewise.
11020 (strace_marker_create_sals_from_address): Likewise.
11021 (strace_marker_create_breakpoints_sal): Likewise.
11022 (strace_marker_decode_linespec): Likewise.
11023 (strace_marker_breakpoint_ops): New variable.
11024 (addr_string_to_sals): Remove `marker_spec'. Call method
11025 `decode_linespec' from breakpoint_ops, replacing code that decoded
11026 an address string into a SAL. Use `strace_marker_p' instead of
11027 `marker_spec'.
11028 (strace_command): Decide whether we are dealing with a static
11029 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11030 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11031 * breakpoint.h (linespec_result, linespec_sals): New forward
11032 declarations.
11033 (breakpoint_ops) <create_sals_from_address>,
11034 <create_breakpoints_sal>, <decode_linespec>: New methods.
11035
4795f398
DE
110362012-01-14 Doug Evans <dje@google.com>
11037
11038 * NEWS: Update text for "maint set python print-stack".
11039 It is deprecated in gdb 7.4 and deleted in 7.5.
11040
ee5106fe
EZ
110412012-01-13 Eli Zaretskii <eliz@gnu.org>
11042
11043 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11044 including curses.h.
11045
b161e06f
JK
110462012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11047
11048 * configure: Regenerate.
11049 * config.in: Regenerate.
11050
85254831
KS
110512012-01-12 Keith Seitz <keiths@redhat.com>
11052
11053 PR mi/10586
11054 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11055 (ANONYMOUS_UNION_NAME): Define.
11056 (is_path_expr_parent): New function.
11057 (get_path_expr_parent): New function.
11058 (is_anonymous_child): New function.
11059 (create_child_with_value): If the child is anonymous and without
11060 a name, assign an object name to it.
11061 (c_describe_child): Use get_path_expr_parent to determine
11062 the parent expression.
11063 If there field represents an anonymous struct or union and
11064 has no name, set an appropriate display name and expression.
11065 (cplus_describe_child): Likewise.
11066
620fa63a
PA
110672012-01-12 Pedro Alves <palves@redhat.com>
11068
11069 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11070 available when %ebp is found to be zero (outermost).
11071
2efa2c79
AT
110722012-01-11 Andreas Tobler <andreast@fgznet.ch>
11073
11074 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11075 an internal gdb_static_assert.
11076 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11077
88e7d25d
TT
110782012-01-11 Tom Tromey <tromey@redhat.com>
11079
11080 PR gdb/9598:
11081 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11082 catch" and "catch throw".
11083
72384ba3
PH
110842012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11085
11086 * blockframe.c (block_innermost_frame): Start search from selected
11087 frame, if present, or otherwise the current frame.
11088
11089 * c-exp.y (variable): Update innermost_block for
11090 'block COLONCOLON NAME' clause.
11091 * m2-exp.y (variable): Ditto.
11092 * objc-exp.y (variable): Ditto.
11093
065a711f
TT
110942012-01-10 Tom Tromey <tromey@redhat.com>
11095
11096 PR python/13199:
11097 * python/python.c (finish_python_initialization): Set sys.argv.
11098
f3f5162e
DE
110992012-01-10 Doug Evans <dje@google.com>
11100
11101 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11102 "want_line_info". All callers updated.
11103 (dwarf_decode_lines_1): New function.
11104 (handle_DW_AT_stmt_list): Add function comment.
11105 New arg "want_line_info". All callers updated.
11106 (read_file_scope,read_type_unit_scope): Move comment from
11107 handle_DW_AT_stmt_list to here.
11108
9934703b
JK
111092012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11110
11111 Fix regression after libiberty/ update for GCC PR 6057 and others.
11112 * c-exp.y (operator) <OPERATOR DELETE>
11113 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11114 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11115 (make_builtin_type, make_name): New variable i, add gdb_assert.
11116 (operator) <OPERATOR NEW>: Update ARGS to 3.
11117 (operator) <OPERATOR DELETE>: Add trailing space.
11118 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11119 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11120 * cp-support.c (cp_canonicalize_string): Check NULL from
11121 cp_comp_to_string, call warning and return.
11122
06b9f45f
JK
111232012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11124
11125 Fix duplicate .o files after omitting libbfd.a.
11126 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11127 (SFILES): Add corelow.c.
11128 (COMMON_OBS): Add corelow.o.
11129 (ALLDEPFILES): Remove corelow.c.
11130 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11131 * config/alpha/alpha-osf3.mh: Likewise.
11132 * config/alpha/fbsd.mh: Likewise.
11133 * config/arm/nbsdaout.mh: Likewise.
11134 * config/arm/nbsdelf.mh: Likewise.
11135 * config/i386/i386gnu.mh: Likewise.
11136 * config/ia64/hpux.mh: Likewise.
11137 * config/ia64/linux.mh: Likewise.
11138 * config/m32r/linux.mh: Likewise.
11139 * config/m68k/linux.mh: Likewise.
11140 * config/mips/irix5.mh: Likewise.
11141 * config/mips/irix6.mh: Likewise.
11142 * config/pa/hpux.mh: Likewise.
11143 * config/pa/linux.mh: Likewise.
11144 * config/powerpc/aix.mh: Likewise.
11145 * config/sparc/linux.mh: Likewise.
11146 * config/sparc/linux64.mh: Likewise.
11147 * config/sparc/sol2.mh: Likewise.
11148 * config/vax/vax.mh: Likewise.
11149 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11150 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11151 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11152 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11153 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11154 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11155 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11156 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11157 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11158 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11159 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11160 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11161 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11162 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11163 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11164 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11165 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11166 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11167 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11168 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11169 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11170 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11171 corelow.o from gdb_target_obs.
11172 * corefile.c (core_target): Update the comment on NULL value.
11173 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11174 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11175 MATCHES. Drop YUMMY set on NULL.
11176 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11177 reclaim CORE_DATA if it is already NULL.
11178
34365054
DE
111792012-01-09 Doug Evans <dje@google.com>
11180
11181 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11182 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11183
696166a3
KS
111842012-01-09 Keith Seitz <keiths@redhat.com>
11185
11186 * breakpoint.c (wrapper.h): Don't include.
11187
8e7b59a5
KS
111882012-01-09 Keith Seitz <keiths@redhat.com>
11189
11190 * Makefile.in (SFILES): Remove wrapper.c.
11191 (HFILES_NO_SRCDIR): Remove wrapper.h.
11192 (COMMON_OBS): Remove wrapper.o.
11193 * cli/cli-interp.c: Don't inlude wrapper.h.
11194 * corelow.c: Likewise.
11195 (core_open): Replace gdb_target_find_new_threads with
11196 TRY_CATCH around target_find_new_threads.
11197 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11198 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11199 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11200 evaluate_expression.
11201 (varobj_set_value): Likewise for evaluate_expression and
11202 value_assign.
11203 (install_new_variable): Likewise for value_fetch_lazy.
11204 (adjust_value_for_child_access): Likewise for value_ind.
11205 (c_describe_child): Likewise for value_subscript and
11206 value_ind.
11207 (c_value_of_root): Likewise for evaluate_expression.
11208 * wrapper.c: Remove.
11209 * wrapper.h: Remove.
11210
1a4eeb98
DE
112112012-01-09 Doug Evans <dje@google.com>
11212
9ff913ba
DE
11213 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11214 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11215 "abfd" args with "section". All callers updated.
11216 Error checking code moved ...
11217 (error_check_comp_unit_head): ... here. New function.
11218 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11219 Delete arg "abfd". New arg "type_offset". All callers updated.
11220 (create_debug_types_hash_table): Simplify by using
11221 read_and_check_type_unit_head.
11222
1a4eeb98
DE
11223 * parser-defs.h (namecopy): Delete.
11224 * parse.c (namecopy, namecopy_size): Move into copy_name.
11225
2e6af8c0
JK
112262012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11227
11228 Partially fix duplicate .o files after omitting libbfd.a.
11229 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11230 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11231 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11232 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11233 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11234 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11235 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11236
9f2f828a
PA
112372012-01-09 Pedro Alves <palves@redhat.com>
11238
11239 * MAINTAINERS: Update my email address.
11240
4d72c0bc
DE
112412012-01-08 Doug Evans <dje@google.com>
11242
d467dd73
DE
11243 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11244 n_type_units. Rename type_comp_units to all_type_units.
11245 All uses updated.
11246 (add_signatured_type_cu_to_table): Renamed from
11247 add_signatured_type_cu_to_list. All callers updated.
11248
4d72c0bc
DE
11249 * gdbtypes.h (struct cplus_struct_type): Delete member
11250 nfn_fields_total. All uses removed.
11251
21b2bd31
DE
112522012-01-06 Doug Evans <dje@google.com>
11253
11254 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11255 to top of file.
11256 (dwarf2_find_comp_unit): Delete.
11257 (process_psymtab_comp_unit): Make result "void".
11258 Delete args buffer, info_ptr, buffer_size, and replace with
11259 "section". All callers updated.
11260 (dwarf2_build_psymtabs_hard): Simplify.
11261
bfd189b1
SDJ
112622012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11263 Thiago Jung Bauermann <bauerman@br.ibm.com>
11264
11265 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11266 before `struct gdb_exception'.
11267 * breakpoint.c (update_global_location_list_nothrow)
11268 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11269 * cp-abi.c (value_rtti_type): Likewise.
11270 * cp-support.c (cp_validate_operator): Likewise.
11271 * infrun.c (insert_exception_resume_breakpoint)
11272 (check_exception_resume, keep_going): Likewise.
11273 * mi-interp.c (mi_breakpoint_created)
11274 (mi_breakpoint_modified): Likewise.
11275 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11276 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11277 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11278
6b07635f
DE
112792012-01-05 Doug Evans <dje@google.com>
11280
0b30b85c
DE
11281 * dwarf2read.c (statement_prologue): Delete, unused.
11282
98714339
DE
11283 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11284 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11285
6b07635f
DE
11286 * dwarf2read.c (comp_unit_header): Delete, unused.
11287
761f4555
UW
112882012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11289
11290 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11291 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11292
2ca0b532
PA
112932012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11294
11295 * infrun.c (normal_stop): Don't skip calling the normal_stop
11296 observers if the thread was doing a multi-step, but stopped for
11297 some reason other than stepping.
11298
50aeff07
PA
112992012-01-05 Pedro Alves <alves.ped@gmail.com>
11300
11301 * cli/cli-decode.h: Add comments.
11302 (CMD_LIST_AMBIGUOUS): Moved to command.h
11303 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11304 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11305 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11306 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11307 (add_com, add_com_alias, add_info, add_info_alias)
11308 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11309 declarations.
11310 * command.h: Add and adjust comments.
11311 (CMD_LIST_AMBIGUOUS): Moved here.
11312 (help_cmd, help_cmd_list): Delete declarations.
11313
5953832c
DE
113142012-01-04 Doug Evans <dje@google.com>
11315
e5fe5e75
DE
11316 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11317 All callers updated.
11318 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11319 Replace all arguments with "per_cu". All callers updated.
11320
28dee7f5
DE
11321 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11322
23745b47
DE
11323 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11324 New arg "per_cu". All callers updated.
11325
5953832c
DE
11326 Delete #if 0'd out code.
11327 * language.c (binop_result_type): Delete.
11328 (simple_type, ordered_type, same_type, integral_type): Delete.
11329 (numeric_type, character_type, string_type, boolean_type): Delete.
11330 (float_type, structured_type): Delete.
11331 * language.h: Update.
11332
0f5b7562
TT
113332012-01-04 Tom Tromey <tromey@redhat.com>
11334
11335 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11336
78218f56
JB
113372012-01-04 Joel Brobecker <brobecker@adacore.com>
11338
11339 * corefile.c (close_exec_file): Delete.
11340 (reopen_exec_file): Remove commented out code that seems related
11341 to close_exec_file, which is being deleted here.
11342 * inferior.h (close_exec_file): Delete.
11343 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11344
0fcd72ba
JB
113452012-01-04 Joel Brobecker <brobecker@adacore.com>
11346
11347 * ada-lang.c: #include "cli/cli-utils.h".
11348 (get_selections): Use skip_spaces.
11349 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11350 (catch_ada_exception_command_split): Use skip_spaces.
11351 (ada_decode_assert_location): Likewise.
11352
1dabb4c4
JB
113532012-01-04 Joel Brobecker <brobecker@adacore.com>
11354
11355 * linespec.c (decode_line_internal): Check for C++ or Java
11356 compound constructs only if the current language is C, C++
11357 or Java.
11358
5931a2fa
JK
113592012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11360
11361 Revert:
11362 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11363 Joel Brobecker <brobecker@adacore.com>
11364 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11365 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11366 3 times.
11367 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11368 fall through into AT_ENTRY_POINT.
11369 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11370 DUMMY_ADDR with it.
11371 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11372 PPC_INSN_SIZE skip to 3 times.
11373
1a2da5ee
JB
113742012-01-04 Joel Brobecker <brobecker@adacore.com>
11375
11376 * linespec.c (add_minsym): Preserve function descriptors.
11377
8645ff69
UW
113782012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11379
11380 * breakpoint.c (all_locations_are_pending): Consider locations
11381 in program spaces executing during startup pending as well.
11382
0b302171
JB
113832012-01-04 Joel Brobecker <brobecker@adacore.com>
11384
11385 Copyright year update in most files of the GDB Project.
11386
8ba098ad
JB
113872012-01-04 Joel Brobecker <brobecker@adacore.com>
11388
11389 * copyright.sh: Delete.
11390 * copyright.py: Rewrite.
11391
09c01c30
JB
113922012-01-04 Joel Brobecker <brobecker@adacore.com>
11393
11394 * gnulib/extra/update-copyright: New file, imported from gnulib.
11395
3c36c0af
JB
113962012-01-04 Joel Brobecker <brobecker@adacore.com>
11397
11398 * README (Copyright and License Notices): New section.
11399
888fe1e1
TT
114002012-01-03 Tom Tromey <tromey@redhat.com>
11401
11402 PR python/12533:
11403 * python/py-value.c (valpy_dereference, valpy_get_address
11404 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11405 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11406 (valpy_absolute, valpy_richcompare): Free intermediate values.
11407
6e681866
JB
114082011-01-03 Joel Brobecker <brobecker@adacore.com>
11409
11410 * ada-lang.c: Reformat the copyright notice.
11411
0cd09acb
JK
114122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11413
11414 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11415 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11416 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11417 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11418 Revert this part of:
11419 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11420 Build gdb directly from *.o files not using libgdb.a.
11421 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11422
12c3e59c
JB
114232012-01-02 Joel Brobecker <brobecker@adacore.com>
11424
11425 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11426 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11427 Reformat the copyright header.
11428
11bf1490
JK
114292012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11430
11431 Revert this part of:
11432 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11433 Remove the gdbtui binary.
11434 * gdb.c (main): Remove args.interpreter_p initialization.
11435 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11436 * main.h (struct captured_main_args): Remove interpreter_p.
11437
1fef196f
JB
114382012-01-02 Joel Brobecker <brobecker@adacore.com>
11439
11440 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11441
67827812
JB
114422012-01-02 Joel Brobecker <brobecker@adacore.com>
11443
11444 * top.c (print_gdb_version): Update copyright year.
11445
a4d0b831
YQ
114462012-01-02 Yao Qi <yao@codesourcery.com>
11447
11448 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11449
b5914469
JK
114502012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11451 Joel Brobecker <brobecker@adacore.com>
11452
11453 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11454 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11455 3 times.
11456 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11457 fall through into AT_ENTRY_POINT.
11458 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11459 DUMMY_ADDR with it.
11460 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11461 PPC_INSN_SIZE skip to 3 times.
11462
8da828f7
JK
114632012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11464
11465 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11466 the return value.
11467 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11468
8574e74b
JK
114692012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11470
11471 Build gdb directly from *.o files not using libgdb.a.
11472 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11473 (COMMON_OBS): Remove solib-target.o.
11474 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11475 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11476 (LIBGDB_OBS, libgdb.a): Move it above.
11477 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11478 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11479 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11480 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11481 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11482 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11483 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11484 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11485 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11486 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11487 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11488 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11489 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11490 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11491 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11492 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11493 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11494 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11495 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11496 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11497 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11498 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11499 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11500 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11501 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11502 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11503 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11504
217bff3e
JK
115052012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11506
11507 Remove the gdbtui binary.
11508 * .gitignore (/gdbtui): Remove.
11509 * Makefile.in (TUI): Remove.
11510 (SUBDIR_TUI_OBS): Remove tui-main.o.
11511 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11512 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11513 (tui-main.o): Remove.
11514 (all_object_files): Remove tui-main.o.
11515 * NEWS: New note for the gdbtui removal.
11516 * configure: Rebuilt.
11517 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11518 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11519 CONFIG_UNINSTALL respectively.
11520 * gdb.c (main): Remove args.interpreter_p initialization.
11521 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11522 * main.h (struct captured_main_args): Remove interpreter_p.
11523 * tui/tui-main.c: Remove.
11524
9cdd5dbd
DE
115252012-01-01 Doug Evans <dje@google.com>
11526
bb5ed363
DE
11527 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11528 (dwarf2_physname, read_import_statement): Ditto.
11529 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11530 (process_structure_scope read_subroutine_type): Ditto.
11531 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11532 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11533 (dwarf2_fetch_die_location_block): Ditto.
11534 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11535
a0f42c21
DE
11536 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11537 All callers updated.
11538 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11539 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11540 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11541
2dc860c0
DE
11542 * dwarf2read.c (load_cu): Move assert to more useful location.
11543
68dc6402
DE
11544 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11545 All callers updated.
11546
9cdd5dbd
DE
11547 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11548 (dwarf2_elf_names): Minor reformat.
11549 (dwarf2_per_cu_data): Tweak comment.
11550 (dwarf2_read_section): Fix comment.
11551 (create_all_comp_units): Fix comment.
11552 (load_full_comp_unit): Fix comment.
11553 (process_full_comp_unit): Fix comment.
11554 (read_signatured_type): Fix comment.
11555
0c10e53e 11556For older changes see ChangeLog-2011.
c906108c
SS
11557\f
11558Local Variables:
11559mode: change-log
11560left-margin: 8
11561fill-column: 74
11562version-control: never
57da7796 11563coding: utf-8
c906108c 11564End:
This page took 1.995658 seconds and 4 git commands to generate.