* cp-support.c (inspect_type,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2621e0fd
TT
12012-11-12 Tom Tromey <tromey@redhat.com>
2
3 * cp-support.c (inspect_type,
4 replace_typedefs_qualified_name, replace_typedefs): Add
5 finder, data arguments. Call as needed.
6 (cp_canonicalize_string_full): New function.
7 (cp_canonicalize_string_no_typedefs): Rewrite.
8 * cp-support.h (canonicalization_ftype): New typedef.
9 (cp_canonicalize_string_full): Declare.
10
53342f27
TT
112012-11-12 Tom Tromey <tromey@redhat.com>
12
13 * NEWS: Update.
14 * c-typeprint.c (c_type_print_base): Handle print_method and
15 print_typedefs flags.
16 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
17 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
18 options.
19 * typeprint.c (type_print_raw_options, default_ptype_flags):
20 Update for new field.s
21 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
22 (setprinttypelist, showprinttypelist, print_methods,
23 print_typedefs): New globals.
24 (set_print_type, show_print_type, set_print_type_methods,
25 show_print_type_methods, set_print_type_typedefs,
26 show_print_type_typedefs): New functions.
27 (_initialize_typeprint): Update documentation. Add "print
28 type methods" and "print type typedefs" parameters.
29 * typeprint.h (struct type_print_options) <print_methods,
30 print_typedefs>: New fields.
31
6c8702eb
TT
322012-11-12 Tom Tromey <tromey@redhat.com>
33
34 * c-typeprint.c (cp_type_print_method_args): Add flags
35 argument. Call c_print_type, not type_print.
36 (c_type_print_base): Call c_print_type, not type_print.
37 Update.
38
79d43c61
TT
392012-11-12 Tom Tromey <tromey@redhat.com>
40
41 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
42 to type-printing functions.
43 * ada-lang.h (ada_print_type): Add argument.
44 * ada-typeprint.c (print_array_type, print_variant_clauses,
45 print_variant_part, print_selected_record_field_types,
46 print_record_field_types, print_unchecked_union_type,
47 print_func_type, ada_print_type): Add flags argument.
48 (ada_print_typedef): Update.
49 * c-exp.y (OPERATOR conversion_type_id): Update.
50 * c-lang.h (c_print_type, c_type_print_base): Update.
51 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
52 c_type_print_modifier, c_type_print_args,
53 c_type_print_varspec_suffix, c_type_print_base): Add flags
54 argument.
55 * cp-valprint.c (cp_print_class_member): Update.
56 * dwarf2read.c (dwarf2_compute_name): Update.
57 * f-lang.h (f_print_type): Add argument.
58 * f-typeprint.c (f_print_type): Add flags argument.
59 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
60 * go-lang.h (go_print_type): Add argument.
61 * go-typeprint.c (go_print_type): Add flags argument.
62 * jv-lang.h (java_print_type): Add argument.
63 * jv-typeprint.c (java_type_print_base, java_print_type): Add
64 flags argument.
65 * language.c (unk_lang_print_type): Add flags argument.
66 * language.h (struct language_defn) <la_print_type>: Add flags
67 argument.
68 (LA_PRINT_TYPE): Likewise.
69 * m2-lang.h (m2_print_type): Add argument.
70 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
71 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
72 m2_unbounded_array, m2_record_fields): Add flags argument.
73 * p-lang.h (pascal_print_type, pascal_type_print_base,
74 pascal_type_print_varspec_prefix): Add argument.
75 * p-typeprint.c (pascal_print_type,
76 pascal_type_print_varspec_prefix, pascal_print_func_args,
77 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
78 flags argument.
79 * symmisc.c (print_symbol): Update.
80 * typeprint.c (type_print_raw_options, default_ptype_flags):
81 New globals.
82 (type_print): Update.
83 * typeprint.h (struct type_print_options): New.
84 (type_print_raw_options): Declare.
85 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
86
cf4ded82
KS
872012-11-10 Keith Seitz <keiths@redhat.com>
88
89 * breakpoint.c (clear_command): Add cleanup for
90 sals.sals if an argument is given.
91
92 * linespec.c (parse_linespec): Do cleanups after
93 parsing a convenience variable.
94
0d63ecda
KS
952012-11-10 Keith Seitz <keiths@redhat.com>
96
97 PR gdb/14288
98 * c-valprint.c (c_val_print): For character arrays
99 with "print null" option on, print ellipses if
100 the output is truncated and the next character is not \000.
101 * valprint.c (MAX_WCHARS): Define.
102 (WCHAR_BUFLEN): Likewise.
103 (WCHAR_BUFLEN_MAX): Likewise.
104 (struct converted_character): New structure.
105 (count_next_character): New function.
106 (print_converted_chars_to_obstack): New function.
107 (generic_printstr): Rewrite using count_next_character
108 and print_converted_chars_to_obstack.
109
9b8d6827
SC
1102012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
111
112 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
113 while executing the gdb command.
114 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
115 are called from prompt_for_continue.
116 * tui/tui-io.c (tui_redisplay_readline): Likewise.
117
e840f632
SC
1182012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
119
120 PR tui/9584
121
122 * tui/tui.c (tui_rl_command_key): Do not call execute_command
123 but insert the command to execute in readline's buffer.
124
f5656ead
TT
1252012-11-09 Tom Tromey <tromey@redhat.com>
126
127 * gdbarch.sh (target_gdbarch): Remove macro.
128 (get_target_gdbarch): Rename to target_gdbarch.
129 * gdbarch.c, gdbarch.h: Rebuild.
130 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
131 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
132 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
133 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
134 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
135 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
136 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
137 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
138 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
139 procfs.c, progspace.c, ravenscar-thread.c, record.c,
140 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
141 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
142 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
143 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
144 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
145 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
146 target-descriptions.c, target.c, target.h, tracepoint.c,
147 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
148 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
149 python/py-inferior.c, python/python.c: Update.
150
ed8a1c2d
AB
1512012-11-09 Andrew Burgess <aburgess@broadcom.com>
152
153 * source.c (print_source_lines_base): Add fullname field giving
154 full path to file in mi output.
155 * NEWS: Mention the new fullname field.
156
504b36fd
YQ
1572012-11-09 Yao Qi <yao@codesourcery.com>
158
159 * NEWS: Mention the fix to the ambiguity of 'fo' command.
160
9107fc8d
PA
1612012-11-09 Pedro Alves <palves@redhat.com>
162
163 PR gdb/14306
164
165 * infrun.c: Include target-descriptions.h.
166 (follow_exec): Fetch new target description.
167
30f8135b
YQ
1682012-11-09 Yao Qi <yao@codesourcery.com>
169
170 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
171 0x8d (lea).
172
558a9d82
YQ
1732012-11-09 Yao Qi <yao@codesourcery.com>
174
175 * breakpoint.c: Declare set_tracepoint_count.
176 (install_breakpoint): Call set_tracepoint_count if B is a
177 tracepoint.
178 (trace_command): Don't call set_tracepoint_count. Re-indent.
179 (strace_command, ftrace_command):
180 (create_tracepoint_from_upload): Likewise.
181
6ecd4729
PA
1822012-11-09 Pedro Alves <palves@redhat.com>
183
184 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
185 (get_target_gdbarch) <gdbarch.h>: New function.
186 (startup_gdbarch) <gdbarch.h>: Declare.
187 <gdbarch.c> (target_gdbarch): Delete.
188 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
189 current inferior's gdbarch.
190 <gdbarch.c> (get_target_gdbarch): New function.
191 * inferior.c: Include target-descriptions.h.
192 (free_inferior): Free target description info.
193 (add_inferior_with_spaces): Set the inferior's initial
194 architecture.
195 (clone_inferior_command): Copy the original inferior's target
196 description if it was user specified.
197 (initialize_inferiors): Add comment.
198 * inferior.h (struct target_desc_info): Forward declare.
199 (struct inferior) <gdbarch>: New field.
200 * linux-nat.c: Include target-descriptions.h.
201 (linux_child_follow_fork): Copy the parent's architecture and
202 target description to the child.
203 * target-descriptions.c: Include inferior.h.
204 (struct target_desc_info): New structure, holding the equivalents
205 of ...
206 (target_desc_fetched, current_target_desc)
207 (target_description_filename): ... these removed globals.
208 (get_tdesc_info, target_desc_info_from_user_p)
209 (copy_inferior_target_desc_info, target_desc_info_free): New.
210 (target_desc_fetched, current_target_desc)
211 (target_description_filename): Reimplemented as convenience
212 macros.
213 (tdesc_filename_cmd_string): New global.
214 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
215 tdescs filename ..." commands to the per-inferior equivalent.
216 (show_tdesc_filename_cmd): Get the value to show from the
217 per-inferior description filename.
218 (_initilize_target_descriptions): Change the "set/show tdesc
219 filename" commands' variable.
220 * target-descriptions.h (struct target_desc, struct target_desc_info)
221 (struct inferior): Forward declare.
222 (target_find_description, target_clear_description)
223 (target_current_description): Adjust comments.
224 (copy_inferior_target_desc_info, target_desc_info_free)
225 (target_desc_info_from_user_p). Declare.
226
4ca4d161
SC
2272012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
228
229 * tui/tui-hooks.c (tui_about_to_proceed): New function.
230 (tui_target_wait_hook): Remove.
231 (tui_install_hooks): Install the about_to_proceed observer.
232 (tui_remove_hooks): And remove it here.
233
9015683b
TT
2342012-11-08 Tom Tromey <tromey@redhat.com>
235
236 * linux-tdep.c (linux_make_siginfo_note): New function.
237 (linux_make_corefile_notes): Use it.
238 * corelow.c (get_core_siginfo): New function.
239 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
240
ea9f10bb
TT
2412012-11-08 Tom Tromey <tromey@redhat.com>
242
243 PR gdb/14704:
244 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
245 (zlib_decompress_section): Remove.
246 (gdb_bfd_map_section): Only check for compressed section
247 in mmap case. Use bfd_get_full_section_contents.
248 * osabi.c (check_note): Add 'sectsize' argument. Read
249 section data.
250 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
251 section data. Update for check_note change.
252 * xcoffread.c (xcoff_initial_scan): Use
253 bfd_get_full_section_contents.
254 * py-auto-load.c (auto_load_section_scripts): Use
255 bfd_get_full_section_contents.
256 * contrib/cc-with-tweaks.sh: Add -Z option.
257
d071a26b
TT
2582012-11-08 Tom Tromey <tromey@redhat.com>
259
260 * python/py-bpevent.c: Include defs.h.
261 * python/py-continueevent.c: Include defs.h.
262 * python/py-event.c: Include defs.h.
263 * python/py-event.h: Don't include defs.h.
264 * python/py-events.h: Don't include defs.h.
265 * python/py-evts.c: Include defs.h.
266 * python/py-exitedevent.c: Include defs.h.
267 * python/py-newobjfileevent.c: Include defs.h.
268 * python/py-signalevent.c: Include defs.h.
269 * python/py-stopevent.c: Include defs.h.
270 * python/py-threadevent.c: Include defs.h.
271
4574b35a
PM
2722012-11-08 Pierre Muller <muller@sourceware.org>
273
274 * update-web-ari.sh (print_heading): Add number of files
275 checked.
276 (nb_files): New variable counting the number of sources
277 files found by gdb_find.sh script.
278 (debug_awk): New variable to allow extra debug output.
279 (indexes): Add more information if DEBUG_AWK is set.
280
2834ab42
EBM
2812012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
282
283 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
284 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
285 following the change in PLT call stubs on linker.
286
84f13595
PM
2872012-11-08 Pierre Muller <muller@sourceware.org>
288
289 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
290 as default language.
291 (AWK): Use = instead of == for sh test to avoid warning.
292 (Linux rule): Correct [:digit] into [[:digit:]].
293 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
294 (vasprintf rule): Adapt to common subdirectory moves.
295 (xasprintf rule): Idem.
296 (xvasprintf rule): Idem.
297 (var_boolean rule): Accept occurence in == or != test.
298
299 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
300
d69e6a33
SC
3012012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
302
303 * tui/tui-hooks.c (tui_inferior_exit): New function.
304 (tui_detach_hook): Remove.
305 (tui_install_hooks): Install the inferior exit observer.
306 (tui_remove_hooks): Remove it.
307
1e96de83
YQ
3082012-11-08 Yao Qi <yao@codesourcery.com>
309
310 PR gdb/14777.
311 * source.c (_initialize_source): Call add_com_alias to abbreviate
312 'forward-search' as 'fo'.
313
0baeab03
PA
3142012-11-07 Pedro Alves <palves@redhat.com>
315
316 * arm-tdep.c: Make defs.h be the first include.
317 * coff-pe-read.c: Ditto.
318 * gnu-nat.c: Ditto.
319 * go32-nat.c: Ditto.
320 * i386-nat.c: Ditto.
321 * ppcnbsd-nat.c: Ditto.
322 * ada-varobj.h: Don't include defs.h.
323 * i386-darwin-tdep.h: Ditto.
324 * i386-nat.h: Ditto.
325
892a8570
PA
3262012-11-07 Pedro Alves <palves@redhat.com>
327
328 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
329 Committee.
330
719502e9
PM
3312012-11-07 Pierre Muller <muller@sourceware.org>
332
333 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
334 File already uses "gdb_dirent.h" header.
335
ed86b350
YQ
3362012-11-07 Yao Qi <yao@codesourcery.com>
337
338 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
339 tracepoint_count'.
340
9a4f1e4f
TT
3412012-11-06 Tom Tromey <tromey@redhat.com>
342
343 * target.h (inferior_has_forked, inferior_has_vforked)
344 (inferior_has_execd, inferior_has_called_syscall): Remove
345 declarations.
346
0316657e
PM
3472012-11-06 Pierre Muller <muller@sourceware.org>
348
349 * remote.c (remote_insert_hw_breakpoint): ARI fix,
350 add missing internalization markup.
351
f6592439
PA
3522012-11-06 Pedro Alves <palves@redhat.com>
353
354 PR gdb/14810
355
356 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
357
01f2564a
PM
3582012-11-06 Pierre Muller <muller@sourceware.org>
359
360 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
361 is not executable.
362
f37c4431
JB
3632012-11-05 Joel Brobecker <brobecker@adacore.com>
364
365 * gnulib/update-gnulib.sh: New script.
366
550889c3
JB
3672012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
368
369 * MAINTAINERS: Update my email address.
370
954b50b3
TT
3712012-11-05 Tom Tromey <tromey@redhat.com>
372
373 * frame.c (put_frame_register): Don't use temporary buffer.
374
68c9da30
PA
3752012-11-05 Pedro Alves <palves@redhat.com>
376
377 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
378 child. Clear 'pending_detach'.
379 * infrun.c (handle_vfork_child_exec_or_exit): Clear
380 'pending_detach' in the vfork parent.
381
80626a55
DE
3822012-11-05 Doug Evans <dje@google.com>
383
384 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
385 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
386 * dwarf2read.c: #include "elf-bfd.h".
387 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
388 (dwop_section_names): Renamed from dwo_section names. All uses
389 updated. Add entries for .debug_cu_index, .debug_tu_index.
390 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
391 All uses updated.
392 (struct dwp_sections): New type.
393 (struct virtual_dwo_sections): New type.
394 (struct dwp_hash_table): New type.
395 (struct dwp_file): New type.
396 (init_cutu_and_read_dies): Ensure DWO info/types section has been
397 read in. Handle DWOs coming from DWP files.
398 (lookup_dwo_file_slot): New function.
399 (dwarf2_locate_dwo_sections): Move definition closer to use.
400 (create_dwo_debug_info_hash_table_reader): Renamed from
401 create_debug_info_hash_table_reader. All callers updated.
402 (create_dwo_debug_info_hash_table): Renamed from
403 create_debug_info_hash_table. All callers updated.
404 (create_dwp_hash_table): New function.
405 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
406 (lookup_dwo_in_dwp): New function.
407 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
408 is_dwp. All callers updated.
409 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
410 (open_and_init_dwo_file): Renamed from init_dwo_file.
411 All callers updated.
412 (lookup_dwo_file): Delete.
413 (dwarf2_locate_dwp_sections): New function.
414 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
415 (allocate_dwp_loaded_cutus_table): New function.
416 (open_and_init_dwp_file): New function.
417 (lookup_dwo_cutu): New function.
418 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
419
6f6484cd
YQ
4202012-11-03 Yao Qi <yao@codesourcery.com>
421
422 Fix PR gdb/14617.
423 * breakpoint.c (trace_pass_set_count): Call
424 observer_notify_breakpoint_modified instead of
425 observer_notify_tracepoint_modified.
426 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
427
b45627a0
TT
4282012-11-02 Tom Tromey <tromey@redhat.com>
429
430 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
431 argument to complete_on_enum.
432
d4fb63e1
TT
4332012-11-02 Tom Tromey <tromey@redhat.com>
434
435 * configure: Rebuild.
436 * configure.ac (build_warnings): Add -Wempty-body.
437 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
438 * remote.c (handle_notification): Use braces for empty 'else' body.
439 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
440 'else' body.
441 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
442 'else' body.
443 * solib-som.c (som_relocate_section_addresses): Use braces
444 for empty 'else' body.
445 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
446 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
447
f50f4e56
PA
4482012-11-02 Pedro Alves <palves@redhat.com>
449
450 PR gdb/14766
451
452 * infrun.c (handle_inferior_event)
453 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
454 null_ptid before handling a vfork child exec or exit. Switch to
455 the event ptid afterwards.
456
f0559fff
YQ
4572012-11-02 Yao Qi <yao@codesourcery.com>
458
459 * std-operator.def: Remove OP_LABELED.
460 * eval.c: Remove the declaration of 'get_label'.
461 (get_label): Remove.
462 (evaluate_struct_tuple): Remove code handling OP_LABELED.
463 Update comment.
464 Remove local variable 'variantno' and related code.
465 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
466 with 'fieldno'.
467 * expprint.c (print_subexp_standard): Likewise.
468 (dump_subexp_body_standard): Likewise.
469 * parse.c (operator_length_standard): Likewise.
470
e5496e3e
PM
4712012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
472
473 Incorporate ARI web page generator into GDB sources.
474 * contrib/ari/create-web-ari-in-src.sh: New file.
475 * contrib/ari/gdb_ari.sh: New file.
476 * contrib/ari/gdb_find.sh: New file.
477 * contrib/ari/update-web-ari.sh: New file.
478
c66fb220
TT
4792012-10-31 Tom Tromey <tromey@redhat.com>
480
481 * gdbarch.c: Rebuild.
482 * gdbarch.sh: Remove references to gdbarch_swap.
483 * corelow.c (core_open): Remove obsolete comment.
484
2f27adfe
AB
4852012-10-31 Andrew Burgess <aburgess@broadcom.com>
486
487 PR cli/14772
488 * c-typeprint.c (c_print_type): Don't print a space for vector
489 types, this is handled within the suffix.
490 (c_type_print_varspec_suffix): Add a space to vector suffix.
491
144db827
PA
4922012-10-26 Pedro Alves <palves@redhat.com>
493
494 * amd64-tdep.c (amd64_relocate_instruction): Use
495 store_unsigned_integer instead of memcpy.
496 * i386-tdep.c (i386_relocate_instruction): Ditto.
497
940c3c06
PA
4982012-10-26 Pedro Alves <palves@redhat.com>
499
500 * infrun.c (handle_inferior_event): Merge handling of
501 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
502 switch case.
503
47b19065
PA
5042012-10-26 Pedro Alves <palves@redhat.com>
505
506 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
507 Remove comment.
508
87d2d2a4
PA
5092012-10-26 Pedro Alves <palves@redhat.com>
510
511 * target.c (target_waitstatus_to_string): Handle
512 TARGET_WAITKIND_VFORK_DONE.
513
fed708ed
PA
5142012-10-26 Pedro Alves <palves@redhat.com>
515
516 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
517 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
518
2590b645
JB
5192012-10-24 Tristan Gingold <gingold@adacore.com>
520
521 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
522 Add comments.
523
bed0c243
JB
5242012-10-24 Joel Brobecker <brobecker@adacore.com>
525
526 * ravenscar-thread.c (ravenscar_wait): Only update the list
527 of threads and inferior_ptid if the inferior is still alive.
528
f69c91ad
JB
5292012-10-24 Joel Brobecker <brobecker@adacore.com>
530
531 * ada-lang.c (is_known_support_routine): Use lbasename when
532 matching the symtab's filename against
533 known_runtime_file_name_patterns.
534
d99dcf51
JB
5352012-10-24 Joel Brobecker <brobecker@adacore.com>
536
537 * ada-lang.c (ada_same_array_size_p): New function.
538 (ada_promote_array_of_integrals): New function.
539 (coerce_for_assign): Add handling of arrays where the elements
540 are integrals of a smaller size than the size of the target
541 array element type.
542
32560274
JB
5432012-10-24 Joel Brobecker <brobecker@adacore.com>
544
545 * doublest.c (convert_doublest_to_floatformat): Fix comparison
546 against maximum exponent value.
547
5a04cc98
JB
5482012-10-24 Joel Brobecker <brobecker@adacore.com>
549
550 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
551 "unwind-seh.c".
552
5ded5331
JB
5532012-10-24 Joel Brobecker <brobecker@adacore.com>
554
555 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
556 strip typedef layer when computing the fixed type's field type,
557 only when computing its size.
558
2445fd7b
MK
5592012-10-24 Mark Kettenis <kettenis@gnu.org>
560
561 PR gdb/12783
562 * i386-tdep.c (i386_return_value): Handle complex double and long
563 double.
564
8f205f9c
JB
5652012-10-24 Joel Brobecker <brobecker@adacore.com>
566
567 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
568 New local variable args_len.
569 Quote the name of the executable when computing the command line.
570
7f7930dd
MK
5712012-10-23 Mark Kettenis <kettenis@gnu.org>
572
573 PR gdb/12796
574 PR gdb/12798
575 PR gdb/12800
576 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
577 AMD64_FTAG_REGNUM.
578 * amd64-tdep.c (amd64_classify): Classify complex types.
579 (amd64_return_value): Handle the COMPLEX_X87 class.
580
38a69d0a
JB
5812012-10-23 Joel Brobecker <brobecker@adacore.com>
582
583 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
584 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
585
83ab93c6
JB
5862012-10-23 Joel Brobecker <brobecker@adacore.com>
587
588 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
589 function.
590 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
591 to amd64_windows_auto_wide_charset.
592
f6fbab7d
YQ
5932012-10-23 Yao Qi <yao@codesourcery.com>
594
595 * event-top.c (mark_async_signal_handler_wrapper): Remove.
596 * event-top.h: Remove its declaration.
597 (async_request_quit): Call mark_async_signal_handler instead of
598 mark_async_signal_handler_wrapper.
599 (async_do_nothing, async_disconnect): Likewise.
600 (async_stop_sig): Likewise.
601 * remote.c (handle_remote_sigint): Likewise.
602 (handle_remote_sigint_twice): Likewise.
603
05fa9251
YQ
6042012-10-23 Yao Qi <yao@codesourcery.com>
605
606 * event-top.c (sigint_token, sighup_token): Replace 'void *'
607 with 'static struct async_signal_handler *'.
608 (sighup_token, sigquit_token, sigstp_token): Likewise.
609
08af7a40
AA
6102012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
611
612 * gdbarch.sh (function_list): Use 'pstring' when printing
613 a variable which could return NULL.
614 * gdbarch.c: Regenerate.
615
beb4b03c
JB
6162012-10-10 Joel Brobecker <brobecker@adacore.com>
617 Tom Tromey <tromey@redhat.com>
618
619 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
620 inneffective if condition by gdb assertion. Add function
621 description comment.
622
a5b12627
JB
6232012-10-19 Joel Brobecker <brobecker@adacore.com>
624
625 * parser-defs.h (struct exp_descriptor): Document constraint
626 on return value for "op_name" callbacks.
627
0b0865da
TT
6282012-10-18 Tom Tromey <tromey@redhat.com>
629
630 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
631 * symtab.c (iterate_over_some_symtabs): Constify.
632 * source.h (symtab_to_fullname): Return 'const char *'.
633 * source.c (symtab_to_fullname): Return 'const char *'.
634 * python/py-symtab.c (stpy_fullname): Constify.
635 * cli/cli-cmds.c (edit_command): Constify.
636 * breakpoint.c (print_breakpoint_location)
637 (update_static_tracepoint): Constify.
638
94b0e70d
TT
6392012-10-18 Tom Tromey <tromey@redhat.com>
640
641 * breakpoint.c (compare_breakpoints): Fix comparison.
642
fff10684
TT
6432012-10-18 Tom Tromey <tromey@redhat.com>
644
645 * valprint.c (generic_emit_char, generic_printstr): Pass size of
646 gdb_wchar_t to convert_between_encodings.
647
8de0566d
YQ
6482012-10-17 Yao Qi <yao@codesourcery.com>
649
650 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
651 more parameter 'inferior'.
652 * corefile.c (write_memory_with_notification): Caller update.
653
654 * mi/mi-cmd-var.c: Include "mi-main.h".
655 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
656 to 1 and restore it later.
657 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
658 and "data-write-memory-bytes.
659 * mi/mi-interp.c: Include objfiles.h.
660 (mi_interpreter_init): Call observer_attach_memory_changed.
661 (mi_memory_changed): New.
662 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
663 New field.
664
665 * NEWS: Mention new MI notification "memory-changed".
666
6235cdd1
JK
6672012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
668
669 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
670
07540c15
DE
6712012-10-15 Doug Evans <dje@google.com>
672
673 New option -nh: inhibit loading of ~/.gdbinit.
674 * NEWS: Mention -nh.
675 * main.c (captured_main): Recognize and process -nh.
676 (print_gdb_help): Mention -nh.
677 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
678
eab09350
L
6792012-10-15 H.J. Lu <hongjiu.lu@intel.com>
680
681 PR backtrace/14646
682 PR gdb/14647
683 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
684 pc_regnum_from_eax.
685 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
686 nor pc_regnum_from_eax.
687 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
688 nor pc_regnum_from_eax.
689
9e3a7d65
JK
6902012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
691
692 Fix entry values resolving in inlined frames.
693 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
694 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
695 entries of FRAME.
696
c83393b9
JB
6972012-10-15 Joel Brobecker <brobecker@adacore.com>
698
699 * configure.ac: Build with -DMS_WIN64 if building with Python
700 enabled using GCC on amd64-windows.
701 * configure: Regenerate.
702
801e4185
TT
7032012-10-15 Tom Tromey <tromey@redhat.com>
704
705 PR python/14635:
706 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
707 to Py_None.
708
74f910c8
TT
7092012-10-15 Tom Tromey <tromey@redhat.com>
710
711 PR python/14634:
712 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
713
2a7c8fd5
AB
7142012-10-11 Andrew Burgess <aburgess@broadcom.com>
715
716 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
717 reset thread numbering back to 1.
718
7c09e5a0
DE
7192012-10-11 Doug Evans <dje@google.com>
720
721 PR breakpoints/14643.
722 * linespec.c (struct ls_parser): New member keyword_ok.
723 (linespec_lexer_lex_string): Add comment.
724 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
725 for one.
726 (parse_linespec): Set keyword_ok.
727
a1855c1d
DE
7282012-10-10 Doug Evans <dje@google.com>
729
844226d6
DE
730 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
731 "0x" prefix on address in log message.
732
a1855c1d
DE
733 * dwarf2read.c (read_1_byte): Add const to buf parameter.
734 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
735 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
736 (lookup_dwo_file): Add const to dwo_name parameter.
737 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
738
2e24f4aa
JK
7392012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
740
741 Fix crash during stepping on ppc32.
742 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
743 SYM.
744
aa14df25
DE
7452012-10-03 Doug Evans <dje@google.com>
746
747 PR symtab/14601
748 * buildsym.c (buildsym_init): Reset using_directives to NULL.
749
3d468296
AB
7502012-10-02 Andrew Burgess <aburgess@broadcom.com>
751
752 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
753 output and use uint32_t not long to ensure 4 byte size.
754
8f0ee2eb
JB
7552012-10-02 Joel Brobecker <brobecker@adacore.com>
756
757 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
758 unref'ed it.
759
b3dc46ff
AB
7602012-10-01 Andrew Burgess <aburgess@broadcom.com>
761
762 * target.c (simple_search_memory): Include access length in
763 warning message.
764
f712f01f
EBM
7652012-09-28 Nathan Miller <nathanm2@us.ibm.com>
766 Edjunior Machado <emachado@linux.vnet.ibm.com>
767
768 PR gdb/13989
769 * solib.c (solib_find): Prevent GDB from loading native libraries when
770 debugging a cross-target corefile.
771
39181896
PA
7722012-09-28 selven <pcthegreat@gmail.com>
773
774 Make definition match declaration.
775
776 * regcache.c (regcache_register_status): Change return type to
777 enum register_status.
778
4c2786ba
YQ
7792012-09-28 Yao Qi <yao@codesourcery.com>
780
781 * mi/mi-main.c (mi_cmd_data_write_memory): Call
782 write_memory_with_notification instead of write_memory.
783 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
784 instead of target_write_memory.
785
1ae0c35e
YQ
7862012-09-28 Yao Qi <yao@codesourcery.com>
787
788 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
789 when the length of content is not an even number.
790
7977e5d2
TT
7912012-09-27 Tom Tromey <tromey@redhat.com>
792
793 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
794 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
795
807160da
JB
7962012-09-27 Joel Brobecker <brobecker@adacore.com>
797
798 * sol-thread.c (sol_thread_fetch_registers)
799 (sol_thread_store_registers): Delete commented out code.
800
43c75337
JB
8012012-09-27 Joel Brobecker <brobecker@adacore.com>
802
803 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
804 Move these functions to sparc-sol-thread.c.
805 * sparc-sol-thread.c: New file.
806 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
807 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
808 configurations.
809 * configure: Regenerate.
810
d292a972
JB
8112012-09-27 Joel Brobecker <brobecker@adacore.com>
812
813 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
814 Remove commented-out code.
815
8c3da003
JB
8162012-09-27 Joel Brobecker <brobecker@adacore.com>
817
818 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
819 Enable this code for sparc hosts only.
820
f00482b6
JB
8212012-09-27 Joel Brobecker <brobecker@adacore.com>
822
823 * procfs.h (procfs_find_LDT_entry): Add declaration.
824 * sol-thread.c (ps_lgetLDT): Delete local declaration of
825 function procfs_find_LDT_entry.
826
337c776f
JB
8272012-09-27 Joel Brobecker <brobecker@adacore.com>
828
829 * procfs.c (proc_get_LDT_entry): Make static.
830
1a04d88f
JB
8312012-09-27 Joel Brobecker <brobecker@adacore.com>
832
833 * procfs.c (proc_find_memory_regions): Fix declaration.
834
bad43aa5
SP
8352012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
836
837 * amd64-tdep.c (amd64_return_value): Revert previous change
838 that used TYPE_LENGTH directly.
839 * bfin-tdep.c (bfin_extract_return_value): Likewise.
840 (bfin_store_return_value): Likewise.
841 * cris-tdep.c (cris_store_return_value): Likewise.
842 (cris_extract_return_value): Likewise.
843 * h8300-tdep.c (h8300_extract_return_value): Likewise.
844 * hppa-tdep.c (hppa64_return_value): Likewise.
845 * lm32-tdep.c (lm32_store_return_value): Likewise.
846 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
847 * spu-tdep.c (spu_value_from_register): Likewise.
848 * vax-tdep.c (vax_return_value): Likewise.
849
63375b74
SP
8502012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
851
852 * gdbtypes.c (lookup_array_range_type): Expand parameters
853 LOW_BOUND and HIGH_BOUND to LONGEST.
854 (lookup_string_range_type): Likewise.
855 * gdbtypes.h (lookup_array_range_type): Likewise.
856 (lookup_string_range_type): Likewise.
857 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
858 Expand HIGHBOUND to ssize_t.
859 (value_string): Likewise.
860 * value.h (value_cstring): Expand parameter LEN to ssize_t.
861 (value_string): Likewise.
862
19ca11c5
YQ
8632012-09-27 Yao Qi <yao@codesourcery.com>
864
865 PR breakpoints/13898
866 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
867 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
868 per breakpoint type.
869
92107356
PM
8702012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
871
872 * procfs.c: Add gdb_bfd header.
873 * rs6000-nat.c: Likewise.
874 * solib-pa64.c: Likewise.
875 * spu-linux-nat.c: Likewise.
876 * windows-nat.c: Likewise.
877
9742094a
TT
8782012-09-26 Tom Tromey <tromey@redhat.com>
879
880 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
881
0971de02
TT
8822012-09-26 Tom Tromey <tromey@redhat.com>
883
884 * dwarf2read.c (mark_common_block_symbol_computed): New function.
885 (read_common_block): Handle child DIEs with
886 DW_AT_data_member_location.
887 (new_symbol_full): Add special case for common blocks.
888
4357ac6c
TT
8892012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
890 Tom Tromey <tromey@redhat.com>
891
892 * dwarf2read.c (read_common_block): Rewrite.
893 (new_symbol_full): Handle DW_TAG_common_block.
894 * f-lang.c (head_common_list, find_common_for_function):
895 Remove.
896 * f-lang.h (struct common_entry, struct saved_f77_common,
897 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
898 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
899 BLANK_COMMON_NAME_LOCAL): Remove.
900 (struct common_block): New.
901 * f-valprint.c (list_all_visible_commons): Remove.
902 (info_common_command_for_block): New function.
903 (info_common_command): Use it.
904 * stack.c (iterate_over_block_locals): Special case for
905 COMMON_BLOCK_DOMAIN.
906 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
907 constant.
908 (struct general_symbol_info) <value.common_block>: New field.
909 (SYMBOL_VALUE_COMMON_BLOCK): New define.
910
965f07a8
TT
9112012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
912 Tom Tromey <tromey@redhat.com>
913
914 * f-lang.c (allocate_saved_bf_node,
915 allocate_saved_function_node, allocate_saved_f77_common_node,
916 allocate_common_entry_node, tail_common_list, current_common,
917 saved_bf_list, saved_bf_list_end, current_head_bf_list,
918 tmp_bf_ptr, add_common_block, add_common_entry,
919 find_first_common_named, patch_common_entries,
920 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
921 global_remote_debug, get_bf_for_fcn, saved_function_list,
922 saved_function_list_end, clear_function_list, struct saved_fcn,
923 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
924 SAVED_BF, SAVED_BF_PTR): Remove.
925 * f-lang.h (tail_common_list, current_common,
926 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
927 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
928 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
929 real_main_c_value): Remove.
930 * f-valprint.c (there_is_a_visible_common_named): Remove.
931
6f380991
AB
9322012-09-26 Andrew Burgess <aburgess@broadcom.com>
933
934 * breakpoint.c (update_global_location_list): Ignore previous
935 duplicate status of a breakpoint when starting a new scan for
936 duplicate breakpoints.
937
9ead7ae4 9382012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 939 PR breakpoints/14419
2536b51c
YQ
940 * arm-tdep.c (arm_skip_prologue): Extending producer check to
941 support LLVM compiler.
9ead7ae4 942
8f8a23a2
SP
9432012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
944
945 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
946 * bfin-tdep.c (bfin_extract_return_value): Likewise.
947 (bfin_store_return_value): Likewise.
948 * cris-tdep.c (cris_store_return_value): Likewise.
949 (cris_extract_return_value): Likewise.
950 * h8300-tdep.c (h8300_extract_return_value): Likewise.
951 * hppa-tdep.c (hppa64_return_value): Likewise.
952 * lm32-tdep.c (lm32_store_return_value): Likewise.
953 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
954 * spu-tdep.c (spu_value_from_register): Likewise.
955 * vax-tdep.c (vax_return_value): Likewise.
956
d7019589
SP
9572012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
958
959 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
960 parameter LEN to ssize_t.
961
744a8059
SP
9622012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
963
964 * ada-valprint.c (ada_val_print_1): Eliminate single-use
965 variable LEN.
966 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
967 directly.
968 (alpha_store_return_value): Likewise.
969 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
970 (amd64_push_arguments): Likewise.
971 * ax-gdb.c (gen_trace_static_fields): Likewise.
972 (gen_traced_pop): Likewise.
973 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
974 * breakpoint.c (update_watchpoint): Likewise.
975 * findcmd.c (parse_find_args): Use local variable for type
976 instead of length.
977 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
978 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
979 (h8300_store_return_value): Likewise.
980 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
981 Use i386_darwin_arg_type_alignment directly.
982 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
983 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
984 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
985 (m68hc11_extract_return_value): Likewise.
986 * mep-tdep.c (mep_push_dummy_call): Likewise.
987 * printcmd.c (float_type_from_length): Likewise.
988 * s390-tdep.c (s390_value_from_register): Likewise.
989 * stack.c (read_frame_arg): Likewise.
990 * tracepoint.c (encode_actions_1): Likewise.
991 * valops.c (value_fetch_lazy): Use local variable for type
992 instead of length. Use TYPE_LENGTH directly.
993 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
994
a4b411d6
JB
9952012-09-25 Joel Brobecker <brobecker@adacore.com>
996
997 * symtab.c (skip_prologue_sal): Fix typo in comment.
998
11dba07a
JB
9992012-09-25 Joel Brobecker <brobecker@adacore.com>
1000
1001 * linespec.c (create_sals_line_offset): Fix typo in comment.
1002
318102b9
SP
10032012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1004
1005 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1006 use plongest to print the array size.
1007
b4aa388a
SP
10082012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1009
1010 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1011 * p-valprint.c (pascal_type_print_base): Likewise.
1012
84cebc4a
YQ
10132012-09-22 Yao Qi <yao@codesourcery.com>
1014
1015 * remote.c (remote_get_trace_status): Remove setting default
1016 values of fields of 'ts'.
1017
04e7407c
JK
10182012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1019
1020 Fix internal error on canonicalization of clang types.
1021 * cp-name-parser.y (operator): New comment at make_operator call for
1022 new, delete, new[] and delete[].
1023 (exp): Use "sizeof ". Add new comment at make_operator call.
1024
9bf4bce9
JK
10252012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1026
1027 Fix disassemble without parameters in tailcall frame.
1028 * cli/cli-cmds.c (disassemble_current_function): Use
1029 get_frame_address_in_block.
1030
1c5b7826
TT
10312012-09-21 Tom Tromey <tromey@redhat.com>
1032
1033 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1034 TYPE_CODE_UNION>: Unify, removing a goto.
1035
62a49610
TT
10362012-09-21 Tom Tromey <tromey@redhat.com>
1037
1038 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1039
2603f7ee
AB
10402012-09-21 Andrew Burgess <aburgess@broadcom.com>
1041
1042 * findvar.c (read_frame_register_value): Mark the result value as
1043 optimized out if any of the input registers have been optimized out.
1044
810849a3
AS
10452012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1046
1047 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1048
0953dec1
SP
10492012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1050
1051 * eval.c (evaluate_subexp_standard): Eliminate single-use
1052 variable LOWER.
1053
82a90ccf
YQ
10542012-09-21 Yao Qi <yao@codesourcery.com>
1055
1056 * mi/mi-interp.c: Declare mi_record_changed.
1057 (mi_interpreter_init): Call observer_attach_record_changed.
1058 (mi_record_changed): New.
1059 * record.c (record_open): Call observer_notify_record_changed.
1060 (cmd_record_stop): Call observer_notify_record_changed.
1061 * NEWS: Mention it.
1062
d7de8e3c
TT
10632012-09-20 Tom Tromey <tromey@redhat.com>
1064
1065 * NEWS: Update.
1066 * python/python.c (finalize_python): New function.
1067 (_initialize_python): Make a final cleanup.
1068
43c7c83d
DE
10692012-09-19 Doug Evans <dje@google.com>
1070
1071 * buildsym.h (param_symbols): Delete, unused.
1072 (context_stack): Delete member "params", unused.
1073 * buildsym.c (push_context): Update.
1074 * dwarf2read.c (read_func_scope): Update.
1075
aa9259cc
TS
10762012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1077
a6521d9a
TS
1078 * sh-tdep.c (sh_register_convert_to_virtual)
1079 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1080 all callers. Just do a memcpy if not the little-endian case.
1081
f92589cb
TS
1082 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1083 set_gdbarch_double_format and set_gdbarch_long_double_format.
1084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1085 set_gdbarch_double_format.
1086 * sh-tdep.c (sh_gdbarch_init): Likewise.
1087
aa9259cc
TS
1088 * NEWS: Document the removal of SH's 'regs' command.
1089 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1090 command.
1091
c1d780c2
SDJ
10922012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1093
1094 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1095 `jump'.
1096
4ae24af0
JB
10972012-09-18 Joel Brobecker <brobecker@adacore.com>
1098
1099 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1100 language when iterating over symbols.
1101
bb25a15c
YQ
11022012-09-18 Yao Qi <yao@codesourcery.com>
1103
1104 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1105 (mi_interpreter_init): Call observer_attach_tsv_created and
1106 observer_attach_tsv_deleted.
1107 (mi_tsv_created, mi_tsv_deleted): New.
1108 * tracepoint.c (delete_trace_state_variable): Call
1109 observer_notify_tsv_deleted.
1110 (trace_variable_command): Call observer_notify_tsv_created.
1111 (delete_trace_variable_command): Call
1112 observer_notify_tsv_deleted.
1113 (create_tsv_from_upload): Call observer_notify_tsv_created.
1114 * NEWS: Mention it.
1115
201b4506
YQ
11162012-09-18 Yao Qi <yao@codesourcery.com>
1117
1118 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1119 if traceframe changed.
1120 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1121 "trace-find".
1122 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1123 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1124 'traceframe_changed'.
1125 (mi_traceframe_changed): New.
1126 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1127 New field.
1128 * NEWS: Mention the new MI notification.
1129
eaeb12db
MW
11302012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1131
1132 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1133
6e3c039e
JK
11342012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1135
1136 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1137 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1138 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1139 Extend code also for PaX support. Convert all gdb_assert to warning
1140 calls.
1141
9a950c7c
JK
11422012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1143
1144 Implement auto-load user conveniences suggested by Doug Evans.
1145 * auto-load.c: Include top.h.
1146 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1147 (_initialize_auto_load): New variable scripts_directory_help. Mention
1148 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1149 scripts-directory. Document in online help one can use also files for
1150 set auto-load safe-path.
1151 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1152 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1153
deec9a9d
SP
11542012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1155
1156 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1157 of LEN.
1158
354ecfd5
SP
11592012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1160
1161 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1162 ELTLEN and use TYPE_LENGTH directly.
1163 (m2_val_print): Likewise.
1164 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1165 variable LEN and use TYPE_LENGTH directly.
1166 (m68k_svr4_store_return_value): Likewise.
1167 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1168 ARGLEN and use TYPE_LENGTH directly.
1169 (mips_o64_push_dummy_call): Likewise.
1170 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1171 variable LENGTH and use TYPE_LENGTH directly.
1172 (s390_function_arg_float): Likewise.
1173 (s390_function_arg_integer): Likewise.
1174 (s390_push_dummy_call): Likewise.
1175 (s390_return_value_convention): Likewise.
1176 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1177 TYPE_LENGTH directly.
1178
6fc1c773
YQ
11792012-09-17 Yao Qi <yao@codesourcery.com>
1180
1181 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1182 Update comment to add_setshow_integer_cmd.
1183 * cli/cli-setshow.c (do_set_command): Handle case
1184 'var_zuinteger_unlimited'.
1185 (do_show_command): Likewise.
1186 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1187 for command 'remotetimeout'.
1188 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1189 to var_integer.
1190 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1191 for command 'set listsize'.
1192
6acef6cd
SP
11932012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1194
1195 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1196 variable LEN.
1197
1ab3b62c
JK
11982012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1199
1200 PR 14119
1201 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1202 (frame_pop): Drop also TAILCALL_FRAME frames.
1203 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1204
acf9414f
JK
12052012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1206 Pedro Alves <palves@redhat.com>
1207
1208 PR 14548
1209 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1210 function start if we are already at function start. Both for
1211 reverse-next and for reverse-step into function without line number
1212 info.
1213
193facb3
JK
12142012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1215
1216 Code cleanup - rename 'inline' depth to 'artificial' depth.
1217 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1218 frame_id_artificial_p, extend the comment.
1219 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1220 * frame.c (fprint_frame_id): Rename at a user, change debug output
1221 text to "artificial=".
1222 (skip_inlined_frames): Rename to ...
1223 (skip_artificial_frames): ... here. Extend the comment.
1224 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1225 (frame_id_inlined_p): Rename to ...
1226 (frame_id_artificial_p): ... here. Rename at a user.
1227 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1228 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1229 at a user.
1230 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1231 Extend the comment.
1232 (frame_id_inlined_p): Rename to ...
1233 (frame_id_artificial_p): ... here.
1234 * inline-frame.c (inline_frame_this_id): Rename at a user.
1235
42056501
AB
12362012-09-14 Andrew Burgess <aburgess@broadcom.com>
1237
1238 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1239 vector variables using vector_size syntax rather than array
1240 syntax.
1241
84c47588
SP
12422012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1243
1244 * valarith.c (value_concat): Replace unsafe ALLOCA with
1245 XMALLOC/XFREE.
1246
f4045bcb
PA
12472012-09-14 Pedro Alves <palves@redhat.com>
1248
1249 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1250
63b46266
YPK
12512012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1252
1253 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1254 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1255 data-directory as appropriate.
1256
ddd7a8e7
SP
12572012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1258
1259 * printcmd.c (ui_printf): Eliminate single-use variable
1260 PARAM_LEN.
1261
d649a38e
YQ
12622012-09-14 Yao Qi <yao@codesourcery.com>
1263 Pedro Alves <palves@redhat.com>
1264
1265 * valops.c (value_assign): Move observer_notify_target_changed
1266 below to replace reinit_frame_cache.
1267
b9516fa1
YPK
12682012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1269
1270 Refactor Python "gdb" module into a proper Python package, by
1271 introducing a new "_gdb" module for code implemented in C, and
1272 using reload/__import__ instead of exec.
1273 * python/lib/gdb/__init__.py: Import * from _gdb.
1274 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1275 prompt_hook, sys.argv): Moved from finish_python_initialization.
1276 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1277 (packages, auto_load_packages): New list and function replacing
1278 module_dict and auto-loading code, using __file__ instead of
1279 gdb.PYTHONDIR and reload/__import__ instead of exec.
1280 (GdbSetPythonDirectory): Replacing function of the same name
1281 from finish_python_initialization, using reload/__import__ instead
1282 of exec, as well as call auto_load_packages.
1283 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1284 gdb_python_module and not gdb_module.
1285 * python/python-internal.h (gdb_python_module): Declare.
1286 * python/python.c (gdb_python_module): New global.
1287 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1288 (_initialize_python): Rename gdb module to _gdb.
1289 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1290 (finish_python_initialization): Move Python code to
1291 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1292 __main__.
1293
aa0fbdd8
PA
12942012-09-13 Pedro Alves <palves@redhat.com>
1295
1296 * Makefile.in (COMMON_OBS): Add registry.o.
1297 * registry.c: New file.
1298 * registry.h (struct registry_container): Declare.
1299 (registry_data_callback): New typedef.
1300 (struct registry_data, struct registry_data_registration, struct
1301 registry_data_registry): New type.
1302 (register_data_with_cleanup, registry_alloc_data)
1303 (registry_callback_adaptor, registry_clear_data)
1304 (registry_container_free_data, registry_set_data, registry_data):
1305 Declare.
1306 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1307 the new common structures and functions.
1308 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1309 callback typedefs.
1310
42b5c53d
MW
13112012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1312
1313 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1314 there is an error inserting hardware breakpoints and use the
1315 error message from the target.
1316
1317 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1318 Catch this exception and print the error message contained within. Do not
1319 print the default hardware error breakpoint message in this case.
1320
a1b64ce1
DE
13212012-09-12 Doug Evans <dje@google.com>
1322
1323 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1324 cu == NULL.
1325
83a788b8
DE
13262012-09-11 Doug Evans <dje@google.com>
1327
1328 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1329 .gdb_index symbol attributes if there are none.
1330
d9eaeb59
JB
13312012-09-11 Joel Brobecker <brobecker@adacore.com>
1332
1333 * symtab.h (struct minimal_symbol) [has_size]: New field.
1334 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1335 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1336 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1337 minimal symbols if the symbol's size is actually known.
1338 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1339 of msymbol's size field. Add comment.
1340 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1341 SET_MSYMBOL_SIZE to set the minimal symbol size.
1342
a83e9154
JB
13432012-09-11 Joel Brobecker <brobecker@adacore.com>
1344
1345 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1346 minimal_symbol struct object, rather than setting some of its
1347 fields one by one.
1348
350b1b26
AB
13492012-09-11 Andrew Burgess <aburgess@broadcom.com>
1350
1351 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1352 passed_a_ptr flag when displaying typedef types.
1353
2fa15f23
JB
13542012-09-10 Joel Brobecker <brobecker@adacore.com>
1355
1356 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1357 the optimized_out flag is preserved.
1358
5152ff90
AG
13592012-09-10 Anthony Green <green@moxielogic.com>
1360
1361 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1362 prologue changes in GCC.
1363
5b4f6e25
KS
13642012-09-10 Keith Seitz <keiths@redhat.com>
1365
1366 PR gdb/13483
1367 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1368 (BOOL_CONVERSION_BADNESS): ... this.
1369 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1370 (rank_one_type): Allow all boolean conversions
1371 permitted by the standard.
1372
f1070426
TT
13732012-09-06 Tom Tromey <tromey@redhat.com>
1374
1375 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1376 Don't decref py_objfile.
1377
a8db4212
YPK
13782012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1379
1380 Do not enable -lmcheck by default when Python is enabled with
1381 threading support.
1382 * configure.ac: (python_has_threads) New variable, by testing
1383 if WITH_THREAD is defined in Python.h.
1384 Move --enable-lmcheck after --with-python.
1385 Do not enable -lmcheck by default if python_has_threads=yes.
1386 Warn if --enable-lmcheck and python_has_threads=yes.
1387 * configure: Regenerate.
1388
648beb2b
YQ
13892012-08-31 Yao Qi <yao@codesourcery.com>
1390
1391 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1392 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1393 Update some commands.
1394 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1395 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1396 to 1.
1397
ef07a9f7
YQ
13982012-08-31 Yao Qi <yao@codesourcery.com>
1399
1400 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1401
fda395cf
YPK
14022012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1403
1404 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1405
8efd8e78
DE
14062012-08-29 Doug Evans <dje@google.com>
1407
1408 * main.c (print_gdb_help): Remove reference to
1409 --use-deprecated-index-sections.
1410
883b9c6c
YQ
14112012-08-28 Yao Qi <yao@codesourcery.com>
1412
1413 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1414 (init_cmds): Call add_setshow_uinteger_cmd for command
1415 'max-user-call-depth'.
1416 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1417 declaration of 'max_user_call_depth'.
1418 * frame.c (backtrace_limit): Add 'unsigned'.
1419 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1420 'limit'.
1421 * remote.c (remoteaddresssize): Add 'unsigned'.
1422 (remote_address_masked): Change local var 'address_size' to
1423 'unsigned'.
1424 (_initialize_remote): Call add_setshow_uinteger_cmd for
1425 'remoteaddresssize'.
1426 * top.c (history_size): Add 'unsigned'.
1427 (show_commands): Change local variables to 'unsigned'.
1428 (set_history_size_command): Don't check history_size is negative.
1429 Adjust the condition to call unstifle_history and set history_size
1430 to UNIT_MAX.
1431
1292279a
PA
14322012-08-28 Pedro Alves <palves@redhat.com>
1433
1434 PR gdb/14428
1435
1436 * infcmd.c (default_print_one_register_info): New, factored out
1437 from default_print_registers_info.
1438 (default_print_registers_info): Use it. Mark value unavailable if
1439 necessary.
1440 (registers_info): Print user registers with
1441 default_print_one_register_info.
1442
f629cd75
L
14432010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1444
1445 PR tui/14486
1446 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1447 is not NULL before referencing it.
1448
1c8cdcb1
JK
14492012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1450
1451 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1452 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1453 original PC for it.
1454
e9687799
JK
14552012-08-27 Eli Zaretskii <eliz@gnu.org>
1456 Jan Kratochvil <jan.kratochvil@redhat.com>
1457
1458 * auto-load.c (auto_load_objfile_script): Rename to ...
1459 (auto_load_objfile_script_1): ... here, change variable realname to
1460 parameter realname, document it, add return value, add variable retval.
1461 (auto_load_objfile_script): New function.
1462
7afa1642
JK
14632012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1464
1465 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1466 followed by a whitespace.
1467
dc7650b8
JK
14682012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1469
28e66c70 1470 PR gdb/14494.
dc7650b8
JK
1471 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1472 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1473 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1474 here.
1475
1591a1e8
PA
14762012-08-27 Wei-cheng Wang <cole945@gmail.com>
1477
1478 * memattr.c (create_mem_region): Fix memory region overlapping
1479 checking.
1480
ecfb0d68
SP
14812012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1482
1483 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1484 with xmalloc/cleanup.
1485 * mt-tdep.c (mt_push_dummy_call): Likewise.
1486 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1487 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1488
8c56c1b9
YQ
14892012-08-24 Yao Qi <yao@codesourcery.com>
1490
1491 * jv-exp.y (push_expression_name): Add "." at the end of error
1492 message.
1493
e3480f4a
YPK
14942012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1495
1496 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1497 * python/python.c (_initialize_python): Update documentation.
1498
dfbd5e7b
PA
14992012-08-23 Pedro Alves <palves@redhat.com>
1500
1501 * infrun.c (_initialize_infrun) <handle command help text>:
1502 Mention that multiple signals are supported.
1503
2edda2ff
PA
15042012-08-23 Pedro Alves <palves@redhat.com>
1505
1506 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1507 string.
1508
8d735b87
YQ
15092012-08-23 Yao Qi <yao@codesourcery.com>
1510
1511 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1512 (tfind_1): Don't call registers_changed, set_traceframe_num,
1513 and clear_traceframe_info.
1514 Call set_current_traceframe.
1515 (set_current_traceframe): call set_traceframe_num.
1516
c5d9b215
SDJ
15172012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1518
1519 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1520 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1521
037bbc8e
YPK
15222012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1523
1524 Enable readline in Python in a GDB-specific way and block the
1525 standard Python readline module to prevent conflicts with GDB.
1526 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1527 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1528 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1529 * python/py-gdb-readline.c: New file.
1530 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1531 prototype.
1532 * python/python.c (_initialize_python): Call
1533 gdbpy_initialize_gdb_readline.
1534
406b1477
KS
15352012-08-22 Keith Seitz <keiths@redhat.com>
1536
1537 * defs.h: Include build-gnulib/config.h
1538
6ca1b147
JM
15392012-08-22 Joseph Myers <joseph@codesourcery.com>
1540
1541 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1542 and blx pc.
1543
8315665e
YPK
15442012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1545
1546 Add a new "python-interactive" command that starts a standard
1547 Python interactive prompt with "pi" as alias, and add "py" as
1548 an alias to "python".
1549 * NEWS: Mention the new commands.
8315665e
YPK
1550 * python/python.c (eval_python_command): New function.
1551 (python_interactive_command): For "python-interactive" with
1552 arguments, call eval_python_command. For "python-interactive"
1553 without arguments, call PyRun_InteractiveLoop.
1554 (_initialize_python): Add "python-interactive" command with
1555 "pi" as alias, and add "py" as an alias to "python".
1556
522002f9
TT
15572012-08-22 Tom Tromey <tromey@redhat.com>
1558
1559 * defs.h (quit_flag): Don't declare.
1560 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1561 (QUIT): Use new functions.
1562 * event-top.c (command_handler): Use clear_quit_flag.
1563 (handle_sigint): Use set_quit_flag.
1564 (async_request_quit): Use check_quit_flag. Don't check
1565 immediate_quit.
1566 * exceptions.c (throw_exception): Use clear_quit_flag.
1567 * main.c (captured_main): Use clear_quit_flag.
1568 * python/python.c (clear_quit_flag, set_quit_flag)
1569 (check_quit_flag): New functions.
1570 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1571 clear_quit_flag.
1572 * remote.c (remote_wait_as): Use check_quit_flag,
1573 clear_quit_flag.
1574 (remote_start_remote): Call QUIT.
1575 * symfile.c (load_progress): Use check_quit_flag.
1576 * top.c (command_loop): Use clear_quit_flag.
1577 (command_line_input): Call QUIT.
1578 * utils.c (quit_flag): Conditionally define.
1579 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1580 functions.
1581 (prompt_for_continue): Call QUIT. Use quit, not
1582 async_request_quit.
1583 * remote-mips.c (mips_expect_timeout): Call QUIT.
1584 * monitor.c (monitor_expect): Call QUIT.
1585
b583003e
TT
15862012-08-22 Tom Tromey <tromey@redhat.com>
1587
1588 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1589 (async_init_signals): Update.
1590 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1591 (SIGWINCH_HANDLER_BODY): Remove.
1592
e1507e95
TT
15932012-08-22 Tom Tromey <tromey@redhat.com>
1594
1595 * jit.c (jit_object_close_impl): Don't malloc the objfile
1596 name.
1597 * objfiles.c (allocate_objfile): Don't malloc the objfile
1598 name.
1599 (free_objfile): Don't free the objfile name.
1600 * objfiles.h (struct objfile) <name>: Update comment.
1601 * symfile.c (reread_symbols): Fix reference counting. Don't
1602 malloc objfile name.
1603
1c00ec6b
TT
16042012-08-22 Tom Tromey <tromey@redhat.com>
1605
1606 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1607 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1608 (symfile_bfd_open): Likewise.
1609 (generic_load): Likewise.
1610 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1611 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1612 gdb_bfd_open.
1613 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1614 Use gdb_bfd_open.
1615 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1616 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1617 (pmon_load_fast): Likewise.
1618 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1619 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1620 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1621 (macho_check_dsym): Likewise.
1622 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1623 (m32r_upload_command): Likewise.
1624 * gdb_bfd.h (gdb_bfd_cache): Declare.
1625 * gdb_bfd.c (struct gdb_bfd_data): New.
1626 (gdb_bfd_cache): New global.
1627 (struct gdb_bfd_cache_search): New.
1628 (hash_bfd): New function.
1629 (eq_bfd): Likewise.
1630 (gdb_bfd_open): Likewise.
1631 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1632 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1633 gdb_bfd_data.
1634 * exec.c (exec_file_attach): Use gdb_bfd_open.
1635 * dsrec.c (load_srec): Use gdb_bfd_open.
1636
6532ff36
TT
16372012-08-22 Tom Tromey <tromey@redhat.com>
1638
1639 * dwarf2read.c (macro_start_file): Update.
1640 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1641 (free_objfile_per_bfd_storage): Destroy macro_cache.
1642 (allocate_objfile, free_objfile): Update.
1643 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1644 New field.
1645 (struct objfile) <macro_cache>: Remove.
1646 * symfile.c (reread_symbols): Update.
1647 * symmisc.c (print_symbol_bcache_statistics): Update.
1648 (print_objfile_statistics): Update.
1649
706e3705
TT
16502012-08-22 Tom Tromey <tromey@redhat.com>
1651
1652 * elfread.c (elf_symtab_read): Update.
1653 * objfiles.c (objfiles_bfd_data): New global.
1654 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1655 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1656 (allocate_objfile, free_objfile): Update.
1657 (_initialize_objfiles): Initialize objfiles_bfd_data.
1658 * objfiles.h (struct objfile_per_bfd_storage): New.
1659 (struct objfile) <per_bfd>: New field.
1660 <filename_cache>: Remove.
1661 (set_objfile_per_bfd): Declare.
1662 * symfile.c (reread_symbols): Update. Call
1663 set_objfile_per_bfd.
1664 (allocate_symtab): Update.
1665 * symmisc.c (print_symbol_bcache_statistics): Update.
1666 (print_objfile_statistics): Print the size of the BFD obstack.
1667
e992eda4
TT
16682012-08-22 Tom Tromey <tromey@redhat.com>
1669
1670 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1671 * gdb_bfd.c: Use DEFINE_REGISTRY.
1672 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1673 (gdb_bfd_ref): Call bfd_alloc_data.
1674 (gdb_bfd_unref): Call bfd_free_data.
1675
6b81941e
TT
16762012-08-22 Tom Tromey <tromey@redhat.com>
1677
1678 * registry.h (struct registry_fields): New.
1679 (REGISTRY_FIELDS): Redefine.
1680 (REGISTRY_ACCESS_FIELD): New macro.
1681 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1682 functions.
1683
8e260fc0
TT
16842012-08-22 Tom Tromey <tromey@redhat.com>
1685
1686 * auto-load.c (_initialize_auto_load): Update.
1687 * solib-svr4.c (_initialize_svr4_solib): Update
1688 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1689 * solib-darwin.c (_initialize_darwin_solib): Update.
1690 * registry.h: New file.
1691 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1692 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1693 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1694 (register_program_space_data_with_cleanup)
1695 (register_program_space_data, program_space_alloc_data)
1696 (clear_program_space_data, set_program_space_data)
1697 (program_space_data): Don't declare.
1698 * progspace.c: Use DEFINE_REGISTRY.
1699 (struct program_space_data, struct
1700 program_space_data_registration, struct
1701 program_space_data_registry, program_space_data_registry)
1702 (register_program_space_data_with_cleanup)
1703 (register_program_space_data, program_space_alloc_data)
1704 (program_space_free_data, clear_program_space_data)
1705 (set_program_space_data, program_space_data): Remove.
1706 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1707 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1708 (register_objfile_data_with_cleanup, register_objfile_data)
1709 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1710 declare.
1711 * objfiles.c: Use DEFINE_REGISTRY.
1712 (struct objfile_data, struct objfile_data_registration, struct
1713 objfile_data_registry, objfile_data_registry)
1714 (register_objfile_data_with_cleanup, register_objfile_data)
1715 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1716 (set_objfile_data, objfile_data): Remove.
1717 (_initialize_objfiles): Update.
1718 * jit.c (_initialize_jit): Update.
1719 * inflow.c (_initialize_inflow): Update.
1720 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1721 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1722 (register_inferior_data_with_cleanup, register_inferior_data)
1723 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1724 declare.
1725 * inferior.c: Use DEFINE_REGISTRY.
1726 (struct inferior_data, struct inferior_data_registration, struct
1727 inferior_data_registry, inferior_data_registry)
1728 (register_inferior_data_with_cleanup, register_inferior_data)
1729 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1730 (set_inferior_data, inferior_data): Remove.
1731 * auxv.c (_initialize_auxv): Update.
1732 * ada-lang.c (_initialize_ada_language): Update.
1733 * breakpoint.c (_initialize_breakpoint): Update.
1734 * i386-nat.c (i386_use_watchpoints): Update.
1735
ed9eebaf
TT
17362012-08-22 Tom Tromey <tromey@redhat.com>
1737
1738 * exec.c (exec_close, exec_file_attach): Update.
1739 (add_to_section_table): Initialize 'key' field.
1740 (add_target_sections, remove_target_sections): Add 'key' argument.
1741 * exec.h (add_target_sections, remove_target_sections): Add
1742 'key' argument.
1743 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1744 (reload_shared_libraries_1): Update.
1745 * target.h (struct target_section) <key>: New field.
1746
2f2e97fa
TT
17472012-08-22 Tom Tromey <tromey@redhat.com>
1748
1749 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1750
b3dbbd6f
PM
17512012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1752
1753 * symfile.c (allocate_symtab): Use host_address_to_string
1754 function instead of cast of pointer to long which is not
1755 compatible with x86_64-w64-mingw32 build.
1756
f94363d7
AP
17572012-08-19 Andrew Pinski <apinski@cavium.com>
1758
1759 * mips-tdep.c (is_octeon): New function.
1760 (is_octeon_bbit_op): New function.
1761 (mips32_next_pc): Handle Octeon's bbit instructions.
1762 (mips32_instruction_has_delay_slot): Likewise.
1763
78a59c2f
AP
17642012-08-19 Andrew Pinski <apinski@cavium.com>
1765
1766 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1767 before the function.
1768
4f5bcb50
AP
17692012-08-19 Andrew Pinski <apinski@cavium.com>
1770
1771 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1772
e5afdbd7
KS
17732012-08-19 Keith Seitz <keiths@redhat.com>
1774
1775 PR c++/14365
1776 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1777 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1778
13c9750e
EZ
17792012-08-18 Eli Zaretskii <eliz@gnu.org>
1780
1781 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1782 The typo broke "make TAGS".
1783
db761810 17842012-08-17 Joel Brobecker <brobecker@adacore.com>
1785
1786 GDB 7.5 released.
1787
a451cb65
KS
17882012-08-17 Keith Seitz <keiths@redhat.com>
1789
1790 PR c++/13356
1791 * gdbtypes.c (strict_type_checking): New variable.
1792 (show_strict_type_checking): New function.
1793 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1794 if strict type checking is disabled.
1795 (_initialize_gdbtypes): Add "check type" subcommand.
1796 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1797
17982012-08-17 Keith Seitz <keiths@redhat.com>
1799
1800 * language.h (type_mode): Remove.
1801 (type_check): Remove.
1802 (struct language_defn): Remove la_type_check.
1803 (STRICT_TYPE): Remove unused macro.
1804 (type_error): Remove.
1805 * language.c (set_type_range_case): Renamed to ...
1806 (set_range_case): ... this. Update all callers.
1807 Remove type_mode/type_check.
1808 (type_mode): Remove.
1809 (type_check): Remove.
1810 (show_type_command): Remove.
1811 (set_type_command): Remove.
1812 (language_info): Remove type checking output.
1813 (type_error): Remove unused function.
1814 (range_error): Update comment.
1815 (unknown_language_defn): Remove la_type_check.
1816 (auto_language_defn): Likewise.
1817 (local_language_defn): Likewise.
1818 (_initialize_language): Remove "check type" subcommand.
1819 * ada-lang.c (ada_language_defn): Remove la_type_check.
1820 * c-lang.c (c_language_defn): Likewise.
1821 (cplus_language_defn): Likewise.
1822 (asm_language_defn): Likewise.
1823 (minimal_language_defn): Likewise.
1824 * d-lang.c (d_language_defn): Likewise.
1825 * f-lang.c (f_language_defn): Likewise.
1826 * go-lang.c (go_language_defn): Likewise.
1827 * jv-lang.c (java_language_defn): Likewise.
1828 * m2-lang.c (m2_language_defn): Likewise.
1829 * objc-lang.c (objc_language_defn): Likewise.
1830 * opencl-lang.c (opencl_language_defn): Likewise.
1831 * p-lang.c (pascal_language_defn): Likewise.
1832
dbf6a605
MF
18332012-08-16 Mike Frysinger <vapier@gentoo.org>
1834
1835 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1836
973e3cf7
JB
18372012-08-16 Joel Brobecker <brobecker@adacore.com>
1838
1839 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1840 New function.
1841 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1842 using the regache. Use ia64_hpux_get_register_from_save_state_t
1843 to access the bsp and bspstore registers if not.
1844
d80ee84f
JB
18452012-08-16 Joel Brobecker <brobecker@adacore.com>
1846
1847 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1848 * breakpoint.c (detach_breakpoints): Change pid parameter into
1849 a ptid. Adjust code accordingly.
1850 * infrun.c (handle_inferior_event): Delete variable child_pid.
1851 Update call to detach_breakpoints to pass the child ptid for
1852 fork events.
1853 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1854 assert that inferior_ptid's lwp is zero.
1855 (linux_handle_extended_wait): Update call to detach_breakpoints.
1856 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1857 detach_breakpoints.
1858
2dcc6086
JB
18592012-08-16 Joel Brobecker <brobecker@adacore.com>
1860
1861 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1862 parent, only call detach_breakpoints if tts.tts_event ==
1863 TTEVT_VFORK.
1864
0c92d8c1
JB
18652012-08-16 Joel Brobecker <brobecker@adacore.com>
1866
1867 * dwarf2-frame.c (dwarf2_frame_cache): Use
1868 get_frame_address_in_block instead of get_frame_pc as
1869 the bound for executing the frame's FDE.
1870
6b1755ce
YQ
18712012-08-16 Yao Qi <yao@codesourcery.com>
1872
1873 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1874 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1875 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1876 (c_type_print_varspec_suffix): Likewise.
1877 * eval.c (evaluate_subexp_standard): Likewise.
1878 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1879 (f_type_print_varspec_suffix): Likewise.
1880 * gdbtypes.c (is_scalar_type): Likewise.
1881 (recursive_dump_type): Likewise.
1882 * infcall.c (value_arg_coerce): Likewise.
1883 * m2-valprint.c (m2_val_print): Likewise.
1884 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1885 (pascal_type_print_varspec_suffix): Likewise.
1886 (pascal_type_print_base): Likewise.
1887 * p-valprint.c (pascal_val_print): Likewise.
1888 (pascal_val_print): Likewise.
1889 * valops.c (value_slice): Likewise.
1890 * valprint.c (scalar_type_p): Likewise.
1891 * valarith.c (value_bitstring_subscript): Remove.
1892 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1893 Remove comment on TYPE_CODE_BITSTRING.
1894
1895 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1896 TYPE_CODE_BITSTRING.
1897
1898 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1899 slot 0.
1900
8acc4065
YQ
19012012-08-16 Yao Qi <yao@codesourcery.com>
1902
1903 * tracepoint.c (trace_find_none_command): Remove.
1904 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1905
8128fd8e
YQ
19062012-08-16 Yao Qi <yao@codesourcery.com>
1907
1908 * remote.c (handle_notification): Remove parameter 'length'.
1909 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1910
2873700e
KS
19112012-08-15 Keith Seitz <keiths@redhat.com>
1912
1913 * gdbtypes.c (opaque_type_resolution): Make static.
1914 Add missing comment.
1915 (overload_debug): Add missing comment.
1916 (show_opaque_type_resolution): Likewise.
1917 (show_overload_debug): Likewise.
1918 (print_bit_vector): Remove unnecessary forward declaration.
1919 (print_arg_types): Likewise.
1920 (dump_fn_fieldlists): Likewise.
1921 (print_cplus_stuff): Likewise.
1922
b82d08cd
TT
19232012-08-15 Tom Tromey <tromey@redhat.com>
1924
1925 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1926 (gdb_bfd_ref): Initialize new field.
1927 (gdb_bfd_unref): Unref the archive BFD.
1928 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1929 parent archive.
1930
db6573d6
TT
19312012-08-15 Tom Tromey <tromey@redhat.com>
1932
1933 PR python/14387:
1934 * python/py-bpevent.c (create_breakpoint_event_object): Update
1935 comment.
1936 * python/py-event.c (evpy_add_attribute): Update comment.
1937 * python/py-exitedevent.c (create_exited_event_object): Fix
1938 reference counting and error handling.
1939 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1940 Fix reference counting.
1941 * python/py-signalevent.c (create_signal_event_object): Fix
1942 reference counting and error handling.
1943 * python/py-stopevent.c (emit_stop_event): Fix reference
1944 counting.
1945 * python/py-threadevent.c (get_event_thread): Return a
1946 borrowed reference.
1947 * python/py-type.c (convert_field): Fix reference counting.
1948
a036ba48
TT
19492012-08-15 Tom Tromey <tromey@redhat.com>
1950
1951 * dwarf2read.c (dwarf_decode_macro_bytes)
1952 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1953 as hash key.
1954
486c7739
MF
19552012-08-14 Mike Frysinger <vapier@gentoo.org>
1956
1957 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1958 stepi, nexti, finish, next, step, jump, and continue commands.
1959 * infrun.c (_initialize_infrun): Update help text for the handle
1960 command.
1961
4cf93a03
DE
19622012-08-14 Doug Evans <dje@google.com>
1963
70b099cf
DE
1964 * gdbtypes.c (struct extra): Delete, unused.
1965
5212577a
DE
1966 * gdbtypes.c: Whitespace cleanup.
1967 (address_space_name_to_int): Remove "extern" from definition.
1968 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1969
4cf93a03
DE
1970 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1971 TYPE_POINTER_TYPE (type).
1972
3756ef7e
GB
19732012-08-14 Gary Benson <gbenson@redhat.com>
1974
1975 * solib-svr4.c (svr4_free_library_list): Use free_so.
1976
40d72643
MF
19772012-08-13 Mike Frysinger <vapier@gentoo.org>
1978
1979 * .gitignore: Add go-exp.c.
1980
f47f77df
DE
19812012-08-13 Doug Evans <dje@google.com>
1982
1983 * value.c (show_convenience): Tweak comment.
1984 (_initialize_values): Mention convenience functions in the help text
1985 for "show convenience".
1986
7507c54a
YQ
19872012-08-13 Yao Qi <yao@codesourcery.com>
1988
1989 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1990 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1991 TERNOP_SLICE_COUNT.
1992 * eval.c (evaluate_subexp_standard): Likewise.
1993 * expprint.c (print_subexp_standard): Likewise.
1994 (dump_subexp_body_standard): Likewise.
1995 * parse.c (operator_length_standard): Likewise.
1996
5cad9736
YQ
19972012-08-13 Yao Qi <yao@codesourcery.com>
1998
1999 * std-operator.def: Remove OP_BITSTRING.
2000 * breakpoint.c (watchpoint_exp_is_const): Update.
2001 * eval.c (evaluate_subexp_standard): Remove handling to
2002 OP_BITSTRING.
2003 * expprint.c (print_subexp_standard): Likewise.
2004 (dump_subexp_body_standard): Likewise.
2005 * parse.c (operator_length_standard): Likewise.
2006 * valops.c (value_bitstring): Remove.
2007 * value.h: Remove the declaration of 'value_bitstring'.
2008
bad7670a
SDJ
20092012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2010
2011 * linespec.c (find_methods): Remove unused variables `i1' and
2012 `name_len'.
2013 (decode_line_full): Likewise for `arg_start'.
2014
d9dce7fa
SDJ
20152012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2016
2017 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2018 (zlib_decompress_section): Likewise for `section_data'.
2019 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2020
a72c3253
DE
20212012-08-10 Doug Evans <dje@google.com>
2022
2023 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2024 * NEWS: Document them.
2025 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2026 function/strfns.py.
2027 * python/py-type.c (typy_array_1): New function.
2028 (typy_array): Call it.
2029 (typy_vector): New function.
2030 (type_object_methods): Add "vector".
2031 * python/lib/gdb/function/__init__.py: New file.
2032 * python/lib/gdb/function/strfns.py: New file.
2033
200bc880
SP
20342012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2035
2036 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2037 for TYPE_FIELD_BITPOS.
2038 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2039
de0bea00
MF
20402012-08-10 Mike Frysinger <vapier@gentoo.org>
2041
2042 PR cli/10436:
2043 * common/vec.h (VEC_merge): Define.
2044 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2045 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2046 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2047 * completer.c: Include gdb_signals.h.
2048 (signal_completer): Define.
2049 * completer.h (signal_completer): Add prototype.
2050 * infcmd.c (_initialize_infcmd): Assign the command
2051 completer for "signal" to handle_completer.
2052 * infrun.c: Include completer.h.
2053 (handle_completer): Define.
2054 (_initialize_infrun): Declare a new local variable c. Store the
2055 result of add_com("handle") to it. Assign the command
2056 completer for "handle" to handle_completer.
2057
5b9afe8a
YQ
20582012-08-09 Yao Qi <yao@codesourcery.com>
2059
2060 * cli/cli-decode.c (set_cmd_prefix): New.
2061 (lookup_cmd_for_prefixlist): New.
2062 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2063 of each cmd_list_element in *prefixlist.
2064 (add_setshow_cmd_full): set_cmd_prefix.
2065 (add_alias_cmd): Likewise.
2066 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2067 Declare 'auto_boolean_enums'.
2068 * cli/cli-setshow.c: Include "observer.h".
2069 (notify_command_param_changed_p): New.
2070 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2071 Remove 'static'.
2072 (do_setshow_command): Split it to ...
2073 (do_set_command, do_show_command): ... them. New.
2074 (do_set_command): Call observer_notify_command_param_changed if
2075 notify_command_param_changed_p returns true.
2076 (cmd_show_list): Caller update.
2077 * auto-load.c (set_auto_load_cmd): Likewise.
2078 * remote.c (show_remote_cmd): Likewise.
2079 * cli/cli-setshow.h: Update declarations.
2080 * top.c (execute_command): Call do_set_command and do_show_command.
2081
2082 * NEWS: Mention new MI notification.
2083 * mi/mi-interp.c: Declare mi_command_param_changed.
2084 (mi_interpreter_init): Attach mi_command_param_changed to
2085 observer command_param_changed.
2086 (mi_command_param_changed): New.
2087 Remove mi_suppress_breakpoint_notifications.
2088 Define global variable mi_suppress_notification.
2089 (mi_breakpoint_created): Update.
2090 (mi_breakpoint_deleted): Likewise.
2091 (mi_breakpoint_modified): Likewise.
2092 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2093 'gdb-set' and set mi_suppress_notification.
2094 * mi/mi-main.h: (mi_suppress_notification): New struct.
2095
1969df89
JK
20962012-08-09 Andreas Tobler <andreast@fgznet.ch>
2097 Jan Kratochvil <jan.kratochvil@redhat.com>
2098
2099 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2100
8bfd80db
YQ
21012012-08-09 Yao Qi <yao@codesourcery.com>
2102
2103 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2104 (skiplist): Move it to skip.c.
2105 (init_cmd_lists): Remove code setting enablebreaklist and
2106 skiplist to NULL.
2107 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2108 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2109 skiplist.
2110 * gdbcmd.h: Likewise.
2111 * skip.c (_initialize_step_skip): Move 'skiplist' from
2112 cli/cli-cmds.c.
2113
28578e6b
YQ
21142012-08-09 Yao Qi <yao@codesourcery.com>
2115
2116 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2117 * gnu-nat.c, symfile.c: Likewise.
2118
260c0b2a
DE
21192012-08-08 Aaron Gamble <agamble@google.com>
2120
2121 * utils.c (prompt_for_continue_wait_time): New static global.
2122 (make_command_stats_cleanup): Initialize it.
2123 (report_command_stats): Subtract time waiting for user.
2124 (prompt_for_continue): Track time waiting for user.
2125 (defaulted_query): Track time waiting for user.
2126
4f485ebc
DE
21272012-08-08 Doug Evans <dje@google.com>
2128
2129 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2130 UNOP_MEMVAL_TYPE.
2131 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2132 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2133 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2134 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2135 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2136 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2137 elt.
2138 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2139 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2140 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2141 (dump_prefix_expression): Handle OP_TYPE.
2142
2acf2b39
KS
21432012-08-08 Keith Seitz <keiths@redhat.com>
2144
2145 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2146 addr_start.
2147
e6712ff1
DE
21482012-08-08 Doug Evans <dje@google.com>
2149
2150 * linux-thread-db.c: #include "gdb_vecs.h".
2151 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2152 updated.
2153 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2154 (thread_db_load_search): Use a vector to iterate over path elements.
2155 Handle text appearing after "$pdir".
2156
2157 * gdb_string.h: Moved to ...
2158 * common/gdb_string.h: ... here.
2159 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2160 gdb_string.h and gdb_assert.h.
2161
ab854e54
YQ
21622012-08-08 Yao Qi <yao@codesourcery.com>
2163
2164 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2165 (tic6x_value_to_register): Likewise.
2166 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2167 and set_gdbarch_value_to_register.
2168
4f69f4c2
JK
21692012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2170 Jean-Marc Saffroy <saffroy@gmail.com>
2171
2172 PR 11804
2173 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2174 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2175 * gcore.c (gcore_create_callback): New function comment. Add modified
2176 parameter. Only write modified regions. Set SEC_READONLY exactly
2177 according to MODIFIED.
2178 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2179 the passed modified value to FUNC.
2180 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2181 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2182 first. New variables modified and has_anonymous. Parse the lines of
2183 smaps file. Add the passed MODIFIED value to FUNC.
2184 * procfs.c (find_memory_regions_callback): Add the passed modified
2185 value.
2186
78ac5f83
TT
21872012-08-06 Tom Tromey <tromey@redhat.com>
2188
2189 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2190 (dwarf2_frame_cache): Use it.
2191 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2192 cache initialization constraint.
2193
2c12abee
TT
21942012-08-06 Tom Tromey <tromey@redhat.com>
2195
2196 PR python/14386:
2197 * varobj.c (update_dynamic_varobj_children): Don't call
2198 PyIter_Check.
2199
4979d7f0
TT
22002012-08-06 Tom Tromey <tromey@redhat.com>
2201
2202 PR cli/14392:
2203 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2204
f3c8a52a
JK
22052012-08-06 Nathaniel Flath <flat0103@gmail.com>
2206
2207 * NEWS: New entry for 'cd' default parameters.
2208 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2209
5a1cf4d6
TT
22102012-08-03 Tom Tromey <tromey@redhat.com>
2211
2212 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2213 return.
2214
7c3270ae
UW
22152012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2216
2217 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2218 to attempting lseek/write.
2219 (inf_child_fileio_pread): Likewise for pread.
2220
ccce17b0
YQ
22212012-08-02 Yao Qi <yao@codesourcery.com>
2222
2223 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2224 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2225 add_setshow_zinteger_cmd.
2226 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2227 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2228 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2229 instead of add_setshow_zinteger_cmd.
2230 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2231 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2232 instead of add_setshow_zinteger_cmd.
2233 * frame.c (frame_debug): Add 'unsigned'.
2234 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2235 add_setshow_zinteger_cmd.
2236 * frame.h: Update the declaration of 'frame_debug'.
2237 * gdbtypes.c (overload_debug): Add 'unsigned'.
2238 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2239 add_setshow_zinteger_cmd.
2240 * inferior.h: Update declaration of 'debug_infrun'.
2241 * infrun.c (debug_infrun): Add 'unsigned'.
2242 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2243 add_setshow_zinteger_cmd.
2244 * jit.c (jit_debug): Add 'unsigned'.
2245 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2246 add_setshow_zinteger_cmd.
2247 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2248 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2249 instead of add_setshow_zinteger_cmd.
2250 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2251 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2252 add_setshow_zinteger_cmd.
2253 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2254 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2255 instead of add_setshow_zinteger_cmd.
2256 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2257 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2258 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2259 intead of add_setshow_zinteger_cmd.
2260 * mips-tdep.c (mips_debug): Add 'unsigned'.
2261 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2262 instead of add_setshow_zinteger_cmd.
2263 * monitor.c (monitor_debug): Add 'unsigned'.
2264 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2265 add_setshow_zinteger_cmd.
2266 * observer.c (observer_debug): Add 'unsigned'.
2267 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2268 add_setshow_zinteger_cmd.
2269 * parse.c (expressiondebug): Add 'unsigned'.
2270 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2271 add_setshow_zinteger_cmd.
2272 * record.c (record_debug): Add 'unsigned'.
2273 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2274 add_setshow_zinteger_cmd.
2275 * record.h: Update the declaration of 'record_debug'.
2276 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2277 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2278 add_setshow_zinteger_cmd.
2279 * serial.c (global_serial_debug_p): Add 'unsigned'.
2280 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2281 add_setshow_zinteger_cmd.
2282 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2283 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2284 add_setshow_zinteger_cmd.
2285 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2286 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2287 add_setshow_zinteger_cmd.
2288 * target.c (targetdebug): Add 'unsigned'.
2289 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2290 add_setshow_zinteger_cmd.
2291 * valops.c (overload_debug): Add 'unsigned'.
2292 * varobj.c (varobjdebug): Add 'unsigned'.
2293 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2294 add_setshow_zinteger_cmd.
2295 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2296 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2297 instead of add_setshow_zinteger_cmd.
2298
2299 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2300 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2301 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2302 instead of add_setshow_zinteger_cmd.
2303 * gdbarch.c, gdbarch.h: Re-generated.
2304
95b07c96
YQ
23052012-08-02 Yao Qi <yao@codesourcery.com>
2306
2307 * nto-tdep.c: Don't include cli/cli-decode.h and
2308 cli/cli-cmds.h.
2309 (_initialize_nto_tdep): Remove.
2310 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2311 Remove field.
2312 Remove macro nto_internal_debugging.
2313
57295b0b
RH
23142012-08-01 Richard Henderson <rth@redhat.com>
2315
2316 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2317 (mep-*-*) [gdb_target_obs]: Likewise.
2318
f782ad9b
AS
23192012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2320
2321 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2322 linux_get_siginfo_type.
2323
a14dd77e
JK
23242012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2327 AT_ENTRY_POINT.
2328 (call_function_by_hand) <ON_STACK>: Call write_memory with
2329 gdbarch_breakpoint_from_pc, if possible.
2330 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2331 here.
2332
1467929f
YQ
23332012-07-31 Yao Qi <yao@codesourcery.com>
2334
2335 * tracepoint.c: Add 'static' for some variables.
2336
70976b65
YQ
23372012-07-31 Yao Qi <yao@codesourcery.com>
2338
2339 * go32-nat.c: Declare _initialize_go32_nat.
2340 * ser-go32.c: Declare _initialize_ser_dos.
2341 * top.c (do_chdir_cleanup): Add 'static'.
2342
eff9c3e6
KS
23432012-07-30 Keith Seitz <keiths@redhat.com>
2344
2345 * linespec.c (linespec_lex_number): A number followed
2346 by quotes is a valid number, too.
2347
728400d7
TT
23482012-07-30 Tom Tromey <tromey@redhat.com>
2349
2350 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2351
fcf303ab
UW
23522012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2353
2354 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2355 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2356
4e969b4f
AB
23572012-07-30 Andrew Burgess <aburgess@broadcom.com>
2358
2359 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2360 invalid or reevaluated to prevent prevent references to possibly
2361 delete'd type objects being left in the varobj.
2362
c4bfde41
JK
23632012-07-27 Tom Tromey <tromey@redhat.com>
2364 Jan Kratochvil <jan.kratochvil@redhat.com>
2365
2366 * copying.awk: Print buffer-read-only and vi ro markers.
2367 * copying.c: Rebuild.
2368 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2369 * gdbarch.c, gdbarch.h: Rebuild.
2370 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2371 buffer-read-only and vi ro markers.
2372 * features/arm-with-iwmmxt.c: Rebuild.
2373 * features/arm-with-m-fpa-layout.c: Rebuild.
2374 * features/arm-with-m-vfp-d16.c: Rebuild.
2375 * features/arm-with-m.c: Rebuild.
2376 * features/arm-with-neon.c: Rebuild.
2377 * features/arm-with-vfpv2.c: Rebuild.
2378 * features/arm-with-vfpv3.c: Rebuild.
2379 * features/i386/amd64-avx-linux.c: Rebuild.
2380 * features/i386/amd64-avx.c: Rebuild.
2381 * features/i386/amd64-linux.c: Rebuild.
2382 * features/i386/amd64.c: Rebuild.
2383 * features/i386/i386-avx-linux.c: Rebuild.
2384 * features/i386/i386-avx.c: Rebuild.
2385 * features/i386/i386-linux.c: Rebuild.
2386 * features/i386/i386-mmx-linux.c: Rebuild.
2387 * features/i386/i386-mmx.c: Rebuild.
2388 * features/i386/i386.c: Rebuild.
2389 * features/i386/x32-avx-linux.c: Rebuild.
2390 * features/i386/x32-avx.c: Rebuild.
2391 * features/i386/x32-linux.c: Rebuild.
2392 * features/i386/x32.c: Rebuild.
2393 * features/mips-dsp-linux.c: Rebuild.
2394 * features/mips-linux.c: Rebuild.
2395 * features/mips64-dsp-linux.c: Rebuild.
2396 * features/mips64-linux.c: Rebuild.
2397 * features/rs6000/powerpc-32.c: Rebuild.
2398 * features/rs6000/powerpc-32l.c: Rebuild.
2399 * features/rs6000/powerpc-403.c: Rebuild.
2400 * features/rs6000/powerpc-403gc.c: Rebuild.
2401 * features/rs6000/powerpc-405.c: Rebuild.
2402 * features/rs6000/powerpc-505.c: Rebuild.
2403 * features/rs6000/powerpc-601.c: Rebuild.
2404 * features/rs6000/powerpc-602.c: Rebuild.
2405 * features/rs6000/powerpc-603.c: Rebuild.
2406 * features/rs6000/powerpc-604.c: Rebuild.
2407 * features/rs6000/powerpc-64.c: Rebuild.
2408 * features/rs6000/powerpc-64l.c: Rebuild.
2409 * features/rs6000/powerpc-7400.c: Rebuild.
2410 * features/rs6000/powerpc-750.c: Rebuild.
2411 * features/rs6000/powerpc-860.c: Rebuild.
2412 * features/rs6000/powerpc-altivec32.c: Rebuild.
2413 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2414 * features/rs6000/powerpc-altivec64.c: Rebuild.
2415 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2416 * features/rs6000/powerpc-cell32l.c: Rebuild.
2417 * features/rs6000/powerpc-cell64l.c: Rebuild.
2418 * features/rs6000/powerpc-e500.c: Rebuild.
2419 * features/rs6000/powerpc-e500l.c: Rebuild.
2420 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2421 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2422 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2423 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2424 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2425 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2426 * features/rs6000/powerpc-vsx32.c: Rebuild.
2427 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2428 * features/rs6000/powerpc-vsx64.c: Rebuild.
2429 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2430 * features/rs6000/rs6000.c: Rebuild.
2431 * features/s390-linux32.c: Rebuild.
2432 * features/s390-linux32v1.c: Rebuild.
2433 * features/s390-linux32v2.c: Rebuild.
2434 * features/s390-linux64.c: Rebuild.
2435 * features/s390-linux64v1.c: Rebuild.
2436 * features/s390-linux64v2.c: Rebuild.
2437 * features/s390x-linux64.c: Rebuild.
2438 * features/s390x-linux64v1.c: Rebuild.
2439 * features/s390x-linux64v2.c: Rebuild.
2440 * features/tic6x-c62x-linux.c: Rebuild.
2441 * features/tic6x-c62x.c: Rebuild.
2442 * features/tic6x-c64x-linux.c: Rebuild.
2443 * features/tic6x-c64x.c: Rebuild.
2444 * features/tic6x-c64xp-linux.c: Rebuild.
2445 * features/tic6x-c64xp.c: Rebuild.
2446
826f0041
TT
24472012-07-27 Tom Tromey <tromey@redhat.com>
2448
2449 * c-exp.y (classify_name): Avoid assignment in condition.
2450
84552b16
PA
24512012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2452
2453 * amd64-windows-tdep.c: Include "frame.h".
2454 (amd64_windows_skip_trampoline_code): New function.
2455 (amd64_windows_init_abi): Add trampoline registration.
2456
a8a64aa8
YQ
24572012-07-27 Yao Qi <yao@codesourcery.com>
2458
2459 * tracepoint.c (cur_traceframe_number): Remove.
2460 (set_tfile_traceframe): Remove.
2461 (tfile_trace_find, tfile_fetch_registers): Update callers.
2462 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2463 (tfile_open, tfile_trace_find): Likewise.
2464
d99067cb
YQ
24652012-07-27 Yao Qi <yao@codesourcery.com>
2466
2467 * thread.c (switch_to_thread): Don't call registers_changed.
2468
f2e8016f
TT
24692012-07-26 Tom Tromey <tromey@redhat.com>
2470
f782ad9b
AS
2471 * Makefile.in (SFILES): Remove objc-exp.y.
2472 (YYFILES): Remove objc-exp.c.
2473 (YYOBJ): Remove objc-exp.o.
2474 (local-maintainer-clean): Don't mention objc-exp.c.
2475 * c-exp.y: Include objc-lang.h.
2476 (%union) <class>: New field.
2477 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2478 (exp): Clone subscript production for OBJC_LBRAC. Add various
2479 Objective C productions.
2480 (msglist, msgarglist, msgarg): New productions.
2481 (array_mod, func_mod, operator): Clone productions for
2482 OBJC_LBRAC.
2483 (parse_string_or_char): Handle '@' strings.
2484 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2485 (classify_name): Check la_name_of_this. Recognize ObjC class
2486 names.
2487 * objc-exp.y: Remove.
2488 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2489 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2490
f66713d2
JK
24912012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2492
2493 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2494
7cfe01b4
JK
24952012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2496
2497 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2498 and decrement.
2499
5ba19b4c
TT
25002012-07-26 Tom Tromey <tromey@redhat.com>
2501
2502 * copying.c: Rebuild.
2503 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2504 'no_class'.
2505
27618ce4
TT
25062012-07-26 Tom Tromey <tromey@redhat.com>
2507
2508 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2509 immediate_quit.
2510 (print_objfile_statistics): Likewise.
2511 (maintenance_print_symbols): Likewise.
2512 (maintenance_print_msymbols): Likewise.
2513 (maintenance_print_objfiles): Likewise.
2514 * psymtab.c (print_partial_symbols): Call QUIT.
2515 (maintenance_print_psymbols): Likewise. Don't modify
2516 immediate_quit.
2517 * copying.c (show_copying_command): Don't modify immediate_quit.
2518 (show_warranty_command): Likewise.
2519 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2520
dd3818c8
KS
25212012-07-26 Keith Seitz <keiths@redhat.com>
2522
2523 * linespec.c (linespec_lexer_lex_number): The input
2524 is also a valid number if the next character is a comma
2525 or colon.
2526
23a80689
JB
25272012-07-26 Joel Brobecker <brobecker@adacore.com>
2528
2529 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2530 configure options.
2531
29f77997
TG
25322012-07-26 Tristan Gingold <gingold@adacore.com>
2533
2534 * machoread.c: Include gdb_bfd.h.
2535
a55c1f32
TG
25362012-07-26 Tristan Gingold <gingold@adacore.com>
2537
2538 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2539 offset.
2540
56eb65bd
SP
25412012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2542
2543 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2544 SIZE to size_t.
2545 (dwarf2_evaluate_loc_desc): Likewise.
2546 (dwarf2_loc_desc_needs_frame): Likewise.
2547 (locexpr_describe_location_1): Likewise.
2548 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2549 size_t.
2550 (struct dwarf2_loclist_baton): Likewise.
2551 * dwarf2read.c (struct dwarf_block): Likewise.
2552 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2553 (decode_locdesc): Expand SIZE and I to size_t.
2554
aec8845c
JK
25552012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2556
2557 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2558
33d7655b
JB
25592012-07-25 Joel Brobecker <brobecker@adacore.com>
2560
2561 * doublest.c (convert_doublest_to_floatformat): If the exponent
2562 is too small, treat the value as zero. If the exponent is too
2563 large, treat the value as infinity.
2564
a22d44ff
JB
25652012-07-25 Joel Brobecker <brobecker@adacore.com>
2566
2567 * configure.ac: Add --enable-lmcheck configure option.
2568 * configure: Regenerate.
2569
d6b28940
TT
25702012-07-25 Tom Tromey <tromey@redhat.com>
2571
f782ad9b
AS
2572 * NEWS: Mention maint info bfds.
2573 * gdb_bfd.c (all_bfds): New global.
2574 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2575 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2576 New functions.
d6b28940 2577
6e73ba20
RC
25782012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2579
2580 * configure.tgt: Add v850*-*-rtems*.
2581
d560eebd
TT
25822012-07-25 Tom Tromey <tromey@redhat.com>
2583
2584 * macrotab.c (macro_bcache_str): Remove cast.
2585
d7cbec71
HZ
25862012-07-25 Hui Zhu <hui_zhu@mentor.com>
2587
2588 * linespec.c (linespec_lexer_lex_number): Update comments,
2589 change the return and add check to make sure the input is
2590 the decimal numbers.
2591 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2592 false, call linespec_lexer_lex_string.
2593
882f447f
TT
25942012-07-24 Tom Tromey <tromey@redhat.com>
2595
2596 * symfile.c (symbol_file_add): Don't open BFD twice.
2597
53ab4066 25982012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2599
2600 * breakpoint.c (create_breakpoint): Store condition for pending
2601 breakpoints.
2602
108fb0f7
AS
26032012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2604
2605 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2606 (m68k_return_value): Handle complex types like structures.
2607 (m68k_svr4_return_value): Likewise.
2608
1634dcbe
JK
26092012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2610
2611 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2612 parameters to bfd_get_section_name.
2613
e2d12c21
YQ
26142012-07-24 Yao Qi <yao@codesourcery.com>
2615
2616 * cli/cli-setshow.c: Handle case 'var_uinteger'
2617 and 'var_zuninteger' together. Handle case 'var_integer' and
2618 'var_zinteger' together.
2619
64b92e45
KS
26202012-07-23 Keith Seitz <keiths@redhat.com>
2621
2622 * linespec.c (convert_linespec_to_sal): Don't add
2623 any symbols to the result vector if symbol_to_sal
2624 returns zero.
2625
0f5f4ffe
KS
26262012-07-23 Keith Seitz <keiths@redhat.com>
2627
2628 * linespec.c (decode_objc): Record the function name
2629 in the linespec.
2630
da1cc82f
TT
26312012-07-23 Tom Tromey <tromey@redhat.com>
2632
2633 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2634 counting.
2635 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2636 (map_vmap): Acquire a reference to the BFD.
2637
6c18f3e0
SP
26382012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2639
2640 * p-valprint.c (pascal_object_print_value): Replace potentially
2641 unsafe alloca with xmalloc/xfree.
2642 * valops.c (search_struct_method): Likewise.
2643
695c3173
TT
26442012-07-23 Tom Tromey <tromey@redhat.com>
2645
2646 * solib-svr4.c (enable_break): Update.
2647 * bfd-target.h (target_bfd_reopen): Update documentation.
2648
08d2cd74
TT
26492012-07-23 Tom Tromey <tromey@redhat.com>
2650
2651 * symfile.c (separate_debug_file_exists): Update.
2652 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2653 (reread_symbols): Update.
2654 * elfread.c (build_id_verify): Update.
2655 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2656 bfd_open_maybe_remote.
2657
596f7d67
TT
26582012-07-23 Tom Tromey <tromey@redhat.com>
2659
2660 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2661
8ac244b4
TT
26622012-07-23 Tom Tromey <tromey@redhat.com>
2663
2664 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2665 and 'abfd'.
2666 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2667 and 'abfd'.
2668 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2669 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2670 'abfd'.
2671 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2672 * objfiles.c (allocate_objfile): Acquire a new reference.
2673 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2674 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2675 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2676 a cleanup for 'nbfd'.
2677 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2678 for 'nbfd'.
2679 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2680 make a cleanup for 'abfd'.
2681 (symbol_file_add): Make a BFD cleanup.
2682
64c31149
TT
26832012-07-23 Tom Tromey <tromey@redhat.com>
2684
2685 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2686 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2687 * corelow.c (core_open): Use gdb_bfd_fopen.
2688 * dsrec.c (load_srec): Use gdb_bfd_openr.
2689 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2690 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2691 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2692 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2693 (gdb_bfd_fdopenr): New functions.
2694 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2695 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2696 (gdb_bfd_fdopenr): Declare.
2697 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2698 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2699 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2700 gdb_bfd_openr_next_archived_file.
2701 (macho_check_dsym): Use gdb_bfd_openr.
2702 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2703 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2704 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2705 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2706 gdb_bfd_openr.
2707 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2708 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2709 gdb_bfd_openr_next_archived_file.
2710 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2711 Use gdb_bfd_openr.
2712 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2713 gdb_bfd_openr.
2714 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2715 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2716 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2717 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2718 (symfile_bfd_open): Use gdb_bfd_fopen.
2719 (generic_load): Use gdb_bfd_openr.
2720 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2721
520b0001
TT
27222012-07-23 Tom Tromey <tromey@redhat.com>
2723
2724 * bfd-target.c (target_bfd_reopen): Update.
2725 * cli/cli-dump.c (bfd_openr_with_cleanup)
2726 (bfd_openw_with_cleanup): Update.
2727 * corelow.c (core_open): Update.
2728 * dsrec.c (load_srec): Update.
2729 * exec.c (exec_file_attach): Update.
2730 * gcore.c (create_gcore_bfd): Update.
2731 * gdb_bfd.c (gdb_bfd_ref): Return void.
2732 (gdb_bfd_open): Update.
2733 * gdb_bfd.h (gdb_bfd_ref): Return void.
2734 Update comments.
2735 * jit.c (jit_bfd_try_read_symtab): Update.
2736 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2737 * machoread.c (macho_symfile_read_all_oso): Update.
2738 (macho_check_dsym): Update.
2739 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2740 * remote-m32r-sdi.c (m32r_load): Update.
2741 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2742 * rs6000-nat.c (add_vmap): Update.
2743 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2744 Update.
2745 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2746 * solib-spu.c (spu_bfd_open): Update.
2747 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2748 * spu-linux-nat.c (spu_bfd_open): Update.
2749 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2750 (generic_load): Update.
2751 * windows-nat.c (windows_make_so): Update.
2752
2322ff16
SP
27532012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2754
2755 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2756
3def0b36
PA
27572012-07-20 Jeff Kenton <jkenton@tilera.com>
2758
2759 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2760 SIGTRAMP_FRAME unwinding.
2761
e615022a
DE
27622012-07-20 Doug Evans <dje@google.com>
2763
2764 * NEWS: Document new options "set/show use-deprecated-index-sections",
2765 and delete reference to --use-deprecated-index-sections.
2766 * symfile.h (use_deprecated_index_sections): Delete.
2767 * dwarf2read.c (use_deprecated_index_sections): Make static.
2768 (read_index_from_section): Update wording of how to load
2769 deprecated index sections.
2770 (_initialize_dwarf2_read): New options
2771 "set/show use-deprecated-index-sections".
2772 * main.c (captured_main): Delete --use-deprecated-index-sections.
2773
64776a0b
PA
27742012-07-20 Pedro Alves <palves@redhat.com>
2775
2776 PR threads/11692
2777 PR gdb/12203
2778
2779 * infrun.c (handle_inferior_event) <new thread>: Don't special
2780 case minus_one_ptid.
2781 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2782 * linux-thread-db.c (thread_get_info_callback): Don't return early
2783 if the thread is zombie.
2784 (thread_from_lwp): Change return type to void. Rewrite stale
2785 comment.
2786 (attach_thread): Don't return early if the thread is zombie,
2787 instead set its "dying" flag.
2788 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2789 (find_new_threads_callback): Don't return early if the thread is
2790 zombie.
2791
09826ec5
PA
27922012-07-20 Pedro Alves <palves@redhat.com>
2793
2794 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2795 * target.c (target_wait): Likewise.
2796 (str_comma_list_concat_elem, do_option, target_options_to_string):
2797 New functions.
2798 * target.h (target_options_to_string): Declare.
2799
f7a35f02
TT
28002012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2801 Tom Tromey <tromey@redhat.com>
2802
2803 * dwarf2read.c (dwarf_decode_macros)
2804 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2805 DW_MACRO_GNU_transparent_include_alt>: New cases.
2806 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2807 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2808
b81e1ee0
TT
28092012-07-20 Tom Tromey <tromey@redhat.com>
2810
2811 * dwarf2read.c (try_open_dwo_file): Don't call
2812 gdb_bfd_stash_filename.
2813
99c1624c
PA
28142012-07-20 Pedro Alves <palves@redhat.com>
2815
2816 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2817 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2818 (i386_process_record): Tweak description comments.
2819
4ffa4fc7
PA
28202012-07-20 Pedro Alves <palves@redhat.com>
2821
2822 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2823 (i386_process_record): Use record_read_memory.
2824 * record.c (record_read_memory): New function.
2825 (record_arch_list_add_mem, record_exec_insn): Use
2826 record_read_memory.
2827 * record.h (record_read_memory): Declare.
2828
c24343e2
YQ
28292012-07-20 Yao Qi <yao@codesourcery.com>
2830
2831 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2832 NULL for xfree.
2833
90f47860
PA
28342012-07-19 Pedro Alves <palves@redhat.com>
2835
2836 * record.c (record_resume): Ask the target beneath to report all
2837 signals.
2838
01093045
DE
28392012-07-19 Doug Evans <dje@google.com>
2840
2841 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2842 there's no section at address zero.
2843 (dwarf2_record_block_ranges): Ditto.
2844
a7c3d162
YQ
28452012-07-19 Yao Qi <yao@codesourcery.com>
2846
2847 * command.h, remote.c: Fix a typo in comment.
2848
608b4967
TT
28492012-07-19 Tom Tromey <tromey@redhat.com>
2850
2851 PR exp/13206:
2852 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2853 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2854 OP_DECLTYPE>: New cases.
2855 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2856 (type_exp): Add new productions.
2857 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2858 and decltype.
2859 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2860 New case.
2861 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2862 OP_DECLTYPE>: New case.
2863 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2864 New case.
2865 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2866 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2867
274b54d7
TT
28682012-07-19 Tom Tromey <tromey@redhat.com>
2869
2870 * c-exp.y (enum token_flags): New.
2871 (struct token) <cxx_only>: Remove.
2872 <flags>: New field.
2873 (tokentab3, tokentab2, ident_tokens): Update.
2874 (lex_one_token): Update. Handle FLAG_SHADOW.
2875
9eaf6705
TT
28762012-07-19 Tom Tromey <tromey@redhat.com>
2877
2878 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2879 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2880 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2881 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2882 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2883 type_exp production where appropriate.
2884 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2885 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2886 <UNOP_MEMVAL_TYPE>: New case.
2887 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2888 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2889 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2890 <UNOP_MEMVAL_TYPE>: New case.
2891 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2892 UNOP_REINTERPRET_CAST>: Update.
2893 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2894 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2895 UNOP_REINTERPRET_CAST>: Update.
2896 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2897 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2898 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2899 constants.
2900
6ace3df1
YQ
29012012-07-19 Yao Qi <yao@codesourcery.com>
2902 Jan Kratochvil <jan.kratochvil@redhat.com>
2903
2904 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2905 and case 'var_optional_filename' together.
2906 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2907 instead of add_setshow_optional_filename_cmd for setshow command
2908 'args'. Set completer for 'set args'.
2909
48faced0
DE
29102012-07-18 Doug Evans <dje@google.com>
2911
2912 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2913 * common/gdb_vecs.c: New file, contents from utils.c.
2914 * common/host-defs.h: New file, contents from defs.h.
2915 * utils.h: New file, contents from defs.h.
2916 * defs.h: Move all declarations of objects defined in utils.c
2917 to utils.h (except QUIT() and related).
2918 #include "utils.h", "host-defs.h".
2919 * probe.h (probe_p): Move here from gdb_vecs.h.
2920 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2921 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2922 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2923 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2924 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2925 (COMMON_OBS): Add gdb_vecs.o.
2926 (gdb_vecs.o): New rule.
2927
66f1999b
KS
29282012-07-18 Keith Seitz <keiths@redhat.com>
2929
2930 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2931 parameter. If non-zero, use SYMNAME as the canonical name
2932 for the SaL.
2933 Update all callers.
2934 (convert_linespec_to_sals): Use add_sal_to_sals for
2935 expressions, too.
2936 (decode_line_full): No need to "fill in missing canonical names"
2937 anymore. Simply make cleanups for the allocated names.
2938
5d94e27b
KS
29392012-07-18 Keith Seitz <keiths@redhat.com>
2940
2941 * linespec.c (struct linespec): Constify expression,
2942 source_filename, function_name, and label_name.
2943 (symbol_not_found_error): Make all parameters const.
2944 (linespec_parser_delete): No need to check for NULL
2945 when using xfree. Cast const char * to char * for xfree.
2946
af4908ba
KS
29472012-07-18 Keith Seitz <keiths@redhat.com>
2948
2949 * breakpoint.c (invalid_thread_id_error): New function.
2950 (find_condition_and_thread): Use invalid_thread_id_error.
2951 (watch_command_1): Likewise.
2952
853254db
TT
29532012-07-18 Tom Tromey <tromey@redhat.com>
2954
2955 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2956 * contrib/cc-with-tweaks.sh: New file.
2957
2ec9a5e0
TT
29582012-07-18 Tom Tromey <tromey@redhat.com>
2959
2960 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2961 (locate_dwz_sections): Recognize .gdb_index.
2962 (create_cus_from_index_list): New function.
2963 (create_cus_from_index): Use it. Handle .dwz data.
2964 (read_index_from_section): New function, extracted from
2965 dwarf2_read_index.
2966 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2967 if needed.
2968
36586728
TT
29692012-07-18 Tom Tromey <tromey@redhat.com>
2970
2971 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2972 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2973 <is_dwz>: New field.
2974 (struct dwz_file): New.
2975 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2976 (locate_dwz_sections, dwarf2_get_dwz_file)
2977 (get_abbrev_section_for_cu): New functions.
2978 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2979 (read_and_check_type_unit_head): Add abbrev_section argument.
2980 (create_debug_types_hash_table): Update.
2981 (init_cutu_and_read_dies): Use proper abbrev section.
2982 (init_cutu_and_read_dies_no_follow): Likewise.
2983 (set_partial_user): Do nothing if PST==NULL.
2984 (read_comp_units_from_section): New function.
2985 (create_all_comp_units): Use it.
2986 (scan_partial_symbols, partial_die_parent_scope): Update.
2987 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2988 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2989 (find_partial_die): Add offset_in_dwz argument. Update.
2990 (guess_partial_die_structure_name, fixup_partial_die): Update.
2991 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2992 DW_FORM_GNU_strp_alt.
2993 (read_indirect_string_from_dwz): New function.
2994 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2995 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2996 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2997 (follow_die_offset): Add offset_in_dwz argument.
2998 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2999 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3000 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3001 Handle new macro forms.
3002 (dwarf_decode_macros): Update.
3003 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3004 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3005 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3006 (create_debug_types_hash_table): Use correct abbrev section.
3007 (get_debug_line_section): New function.
3008 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3009 (process_full_comp_unit): Pass 'required' argument to
3010 end_symtab_get_static_block.
3011 * buildsym.h (end_symtab_get_static_block): Update.
3012 * buildsym.c (end_symtab_get_static_block): Add 'required'
3013 argument.
3014 (end_symtab, end_expandable_symtab): Update.
3015
4bf44c1c
TT
30162012-07-18 Tom Tromey <tromey@redhat.com>
3017
3018 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3019 (pagesize): Remove.
3020 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3021 (zlib_decompress_section): Remove.
3022 (dwarf2_read_section): Use gdb_bfd_map_section.
3023 (munmap_section_buffer): Remove.
3024 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3025 munmap_section_buffer.
3026 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3027 (struct gdb_bfd_section_data): New.
3028 (free_one_bfd_section): New function.
3029 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3030 (get_section_descriptor, zlib_decompress_section)
3031 (gdb_bfd_map_section): New functions.
3032 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3033
bb397797
TT
30342012-07-18 Tom Tromey <tromey@redhat.com>
3035
3036 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3037
6ec53d05
TT
30382012-07-18 Tom Tromey <tromey@redhat.com>
3039
3040 * gdb_bfd.c (struct gdb_bfd_data): New.
3041 (gdb_bfd_cache): New global.
3042 (struct gdb_bfd_cache_search): New.
3043 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3044 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3045 * gdb_bfd.h (gdb_bfd_open): Declare.
3046
f9a062ff
TT
30472012-07-18 Tom Tromey <tromey@redhat.com>
3048
3049 * utils.c (make_cleanup_bfd_unref): Rename from
3050 make_cleanup_bfd_close.
3051 * defs.h (make_cleanup_bfd_unref): Rename from
3052 make_cleanup_bfd_close.
3053 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3054 (bfd_openw_with_cleanup): Update.
3055 * corelow.c (core_open): Update.
3056 * dsrec.c (load_srec): Update.
3057 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3058 * remote-m32r-sdi.c (m32r_load): Update.
3059 * remote-mips.c (mips_load_srec): Update.
3060 (pmon_load_fast): Update.
3061 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3062 Update.
3063 (darwin_bfd_open): Update.
3064 * solib.c (solib_bfd_fopen): Update.
3065 * symfile-mem.c (symbol_file_add_from_memory): Update.
3066 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3067 (symfile_bfd_open): Update.
3068 (generic_load): Update.
3069
d6ad71ba
TT
30702012-07-18 Tom Tromey <tromey@redhat.com>
3071
3072 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3073 (pmon_load_fast): Likewise.
3074 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3075 (m32r_upload_command): Likewise.
3076 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3077 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3078 Use make_cleanup_bfd_close.
3079
a4453b7e
TT
30802012-07-18 Tom Tromey <tromey@redhat.com>
3081
3082 * symfile.c (symfile_bfd_open): Don't copy name. Call
3083 gdb_bfd_stash_filename.
3084 (load_command): Open the new BFD before freeing the old.
3085 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3086 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3087 Call gdb_bfd_stash_filename.
3088 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3089 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3090 gdb_bfd_stash_filename.
3091 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3092 Free found_pathname.
3093 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3094 gdb_bfd_stash_filename.
3095 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3096 * machoread.c (macho_add_oso_symfile): Call
3097 gdb_bfd_stash_filename.
3098 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3099 gdb_bfd_stash_filename.
3100 (macho_check_dsym): Don't copy filename. Call
3101 gdb_bfd_stash_filename.
3102 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3103 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3104 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3105 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3106 * exec.c (exec_close): Don't free the BFD's filename.
3107 (exec_file_attach): Don't copy the filename. Call
3108 gdb_bfd_stash_filename.
3109 * corelow.c (core_close): Don't free the BFD's filename.
3110 (core_open): Call gdb_bfd_stash_filename.
3111 * corefile.c (reopen_exec_file): Remove #if 0 code.
3112 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3113 pathname.
3114 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3115
cbb099e8
TT
31162012-07-18 Tom Tromey <tromey@redhat.com>
3117
3118 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3119 gdb_bfd_unref.
3120 (free_dwo_file): Use gdb_bfd_unref.
3121 * cli/cli-dump.c: Include gdb_bfd.h.
3122 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3123 (bfd_openr_with_cleanup): Likewise.
3124 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3125 gdb_bfd_unref.
3126 * utils.c: Include gdb_bfd.h.
3127 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3128 * symfile.c: Include gdb_bfd.h.
3129 (separate_debug_file_exists): Use gdb_bfd_unref.
3130 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3131 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3132 (generic_load): Use gdb_bfd_ref.
3133 (reread_symbols): Use gdb_bfd_unref.
3134 * symfile-mem.c: Include gdb_bfd.h.
3135 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3136 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3137 * solib.c: Include gdb_bfd.h.
3138 (solib_bfd_fopen): Use gdb_bfd_ref.
3139 (solib_bfd_open): Use gdb_bfd_unref.
3140 (free_so_symbols): Use gdb_bfd_unref.
3141 (reload_shared_libraries_1): Use gdb_bfd_unref.
3142 * solib-spu.c: Include gdb_bfd.h.
3143 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3144 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3145 gdb_bfd_unref.
3146 * solib-frv.c: Include gdb_bfd.h.
3147 (enable_break2): Use gdb_bfd_unref.
3148 * solib-dsbt.c: Include gdb_bfd.h.
3149 (enable_break2): Use gdb_bfd_unref.
3150 * solib-darwin.c: Include gdb_bfd.h.
3151 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3152 gdb_bfd_unref.
3153 (darwin_bfd_open): Use gdb_bfd_unref.
3154 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3155 * remote-mips.c: Include gdb_bfd.h.
3156 (mips_load_srec): Use gdb_bfd_ref.
3157 (pmon_load_fast): Use gdb_bfd_ref.
3158 * remote-m32r-sdi.c: Include gdb_bfd.h.
3159 (m32r_load): Use gdb_bfd_ref.
3160 * record.c: Include gdb_bfd.h.
3161 (record_save_cleanups): Use gdb_bfd_unref.
3162 (cmd_record_save): Use gdb_bfd_unref.
3163 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3164 gdb_bfd_unref.
3165 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3166 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3167 * objfiles.c: Include gdb_bfd.h.
3168 (free_objfile): Use gdb_bfd_unref.
3169 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3170 gdb_bfd.c.
3171 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3172 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3173 (macho_check_dsym): Likewise.
3174 * m32r-rom.c: Include gdb_bfd.h.
3175 (m32r_load): Use gdb_bfd_ref.
3176 (m32r_upload_command): Use gdb_bfd_ref.
3177 * jit.c: Include gdb_bfd.h.
3178 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3179 * gdb_bfd.h: New file.
3180 * gdb_bfd.c: New file.
3181 * gcore.c: Include gdb_bfd.h.
3182 (create_gcore_bfd): Use gdb_bfd_ref.
3183 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3184 (gcore_command): Use gdb_bfd_unref.
3185 * exec.c: Include gdb_bfd.h.
3186 (exec_close): Use gdb_bfd_unref.
3187 (exec_close_1): Use gdb_bfd_unref.
3188 (exec_file_attach): Use gdb_bfd_ref.
3189 * elfread.c: Include gdb_bfd.h.
3190 (build_id_verify): Use gdb_bfd_unref.
3191 * dsrec.c: Include gdb_bfd.h.
3192 (load_srec): Use gdb_bfd_ref.
3193 * corelow.c: Include gdb_bfd.h.
3194 (core_close): Use gdb_bfd_unref.
3195 (core_open): Use gdb_bfd_ref.
3196 * bfd-target.c: Include gdb_bfd.h.
3197 (target_bfd_xclose): Use gdb_bfd_unref.
3198 (target_bfd_reopen): Use gdb_bfd_ref.
3199 * Makefile.in (SFILES): Add gdb_bfd.c.
3200 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3201 (COMMON_OBS): Add gdb_bfd.o.
3202
ed1d1739
KS
32032012-07-18 Keith Seitz <keiths@redhat.com>
3204
3205 * breakpoint.c (find_condition_and_thread): Initialize
3206 TASK and REST.
3207 (create_breakpiont): find_condition_and_thread will now
3208 initialize COND_STRING, THREAD, and REST (and TASK).
3209 (addr_string_to_sals): Likewise.
3210
eab402df
PA
32112012-07-18 Pedro Alves <palves@redhat.com>
3212
3213 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3214 Pull the single step breakpoints out of the target.
3215
2b963b68
SDJ
32162012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3217
3218 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3219 * stap-probe.c (compile_probe_arg): Likewise.
3220
6bac7473
SDJ
32212012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3222
3223 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3224 (elf_compile_to_ax): Likewise.
3225 * infrun.c (insert_exception_resume_from_probe): Likewise.
3226 (check_exception_resume): Remove `objfile' variable.
3227 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3228 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3229 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3230 (compare_entries): Rename to...
3231 (compare_probes): ...this. Adjust function to work with
3232 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3233 respectively.
3234 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3235 `VEC (probe_p) *'.
3236 (print_ui_out_info): Adjust argument to be `struct probe *'.
3237 (info_probes_for_ops): Adjust internal computations to use
3238 `VEC (probe_p) *'.
3239 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3240 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3241 gen_info_probes_table_values>: Remove `objfile' argument.
3242 (struct probe) <objfile>: New field.
3243 (find_probe_by_pc): Remove `objfile' argument.
3244 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3245 (stap_get_probe_argument_count): Likewise.
3246 (stap_get_arg): Likewise.
3247 (stap_evaluate_probe_argument): Likewise.
3248 (stap_compile_to_ax): Likewise.
3249 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3250 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3251 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3252 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3253 sym_compile_to_ax>: Likewise.
3254
3347eb1a 32552012-07-18 Terry Guo <terry.guo@arm.com>
3256
3257 PR 14329
3258 * defs.h (GDB_MI_MSG_WIDTH): New.
3259 * ser_base (ser_base_read_error_fd): New function.
3260 (do_ser_base_readchar): Poll error file descriptor as well as
3261 standard output.
f782ad9b 3262 (generic_readchar): Refactor error handling.
3347eb1a 3263
80c8d323
JB
32642012-07-18 Joel Brobecker <brobecker@adacore.com>
3265
3266 * NEWS: Create a new section for the next release branch.
3267 Rename the section of the current branch, now that it has
3268 been cut.
3269
b45a0664 32702012-07-18 Joel Brobecker <brobecker@adacore.com>
3271
3272 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3273 * version.in: Bump version to 7.5.50.20120718-cvs.
3274
09cf2b22
KS
32752012-07-17 Keith Seitz <keiths@redhat.com>
3276
3277 * linespec.c (linespec_parse_line_offset): Make parameter
3278 const.
3279
8f043999
JK
32802012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3281
3282 PR 11914
3283 * f-valprint.c (info_common_command): New variable frame_id.
3284 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3285 * printcmd.c (print_variable_and_value): Extend function comment.
3286 Add comment for invalidated FRAME.
3287 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3288 FI form FRAME_ID after each print_frame_local_vars.
3289 (struct print_variable_and_value_data): Change frame to frame_id.
3290 (do_print_variable_and_value): New variable frame, initialize it from
3291 p->frame_id. Add comment for invalidated FRAME.
3292 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3293 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3294 for invalidated FRAME.
3295
ae5e0686
MK
32962012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3297 Pedro Alves <palves@redhat.com>
3298
3299 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3300 loop.
3301
5049c5be
TT
33022012-07-16 Tom Tromey <tromey@redhat.com>
3303
3304 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3305
2908cac6
DE
33062012-07-15 Doug Evans <dje@google.com>
3307
094b34ac
DE
3308 * dwarf2read.c (stmt_list_hash): New struct.
3309 (type_unit_group): Embed "per_cu" member, remove pointer.
3310 New union member "t", move member "tus" into it, all uses updated.
3311 New member "hash", replaces member "line_offset, all uses updated.
3312 (quick_file_names): Replace member "offset" with "hash", all uses
3313 updated.
3314 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3315 (hash_file_name_entry, eq_file_name_entry): Call them.
3316 (hash_type_unit_group, eq_type_unit_group): Ditto.
3317 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3318 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3319 (dw2_get_file_names): Update.
3320 (create_type_unit_group): Replace "per_cu" arg with "cu".
3321 All callers updated. Fix "quick" (.gdb_index) handling.
3322 (get_type_unit_group): Replace "per_cu" arg with "cu".
3323 All callers updated.
3324 (build_type_unit_groups): Don't reset tu_stats.
3325
2908cac6
DE
3326 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3327 "tab_cur_size". Change member "tab" to be a htab_t.
3328 (create_filename_seen_cache): Update.
3329 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3330 (filename_seen): Update.
3331
a2b6eff5
DE
33322012-07-13 Doug Evans <dje@google.com>
3333
3334 * symtab.c (filename_seen): Update comment.
3335
4359dff1
JK
33362012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 Doug Evans <dje@google.com>
3338
3339 * buildsym.c (end_symtab_1): Split it to ...
3340 (end_symtab_get_static_block): ... this ...
3341 (end_symtab_from_static_block): ... and this function.
3342 (end_symtab, end_expandable_symtab): Call them.
3343 * buildsym.h (end_symtab_get_static_block)
3344 (end_symtab_from_static_block): New declarations.
3345 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3346 Set its valid CU ranges.
3347
a24f71ab
JK
33482012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3349
3350 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3351 DW_OP_GNU_parameter_ref.
3352
d76b7dbc
JK
33532012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3356 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3357
9fdc877b
DE
33582012-07-13 Doug Evans <dje@google.com>
3359
3360 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3361 (filename_seen_cache): New struct.
3362 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3363 (create_filename_seen_cache): New function.
3364 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3365 (filename_seen): Delete arg "first". New arg "cache". All callers
3366 updated.
3367 (output_source_filename_data): New struct.
3368 (output_source_filename): Delete arg "first". New arg "data".
3369 All callers updated.
3370 (sources_info): Delete local "first". New locals "data", "cleanups".
3371 Rewrite to use filename_seen_cache.
3372 (add_partial_filename_data): Delete member "first". New member
3373 "filename_seen_cache". All uses updated.
3374 (make_source_files_completion_list): Rewrite to use
3375 filename_seen_cache.
3376
f80c6f3f
DE
33772012-07-12 Doug Evans <dje@google.com>
3378
3379 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3380
0bfa869d
DE
33812012-07-10 Doug Evans <dje@google.com>
3382
f4dc4d17
DE
3383 PR gdb/13498
3384 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3385 all_type_unit_groups, type_unit_groups, tu_stats.
3386 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3387 All uses updated. Add type_unit_group to union "s".
3388 (type_unit_group): New struct.
3389 (IS_TYPE_UNIT_GROUP): New macro.
3390 (abbrev_table): Delete unused member "section".
3391 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3392 (dw2_get_cu): Assert not used with type_unit_group.
3393 (dw2_get_primary_cu): New function.
3394 (dw2_build_type_unit_groups_reader): New function.
3395 (dw2_build_type_unit_groups): New function.
3396 (dw2_get_file_names): Assert not called on type units.
3397 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3398 Redo loop to iterate over type unit groups instead of type units.
3399 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3400 (read_abbrev_offset): New function.
3401 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3402 updated.
3403 (create_partial_symtab): New function.
3404 (process_psymtab_comp_unit_reader): Assert not used with type units.
3405 Call create_partial_symtab.
3406 (process_psymtab_type_unit): Delete.
3407 (hash_type_unit_group, eq_type_unit_group): New functions.
3408 (allocate_type_unit_groups_table): New function.
3409 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3410 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3411 (create_type_unit_group, get_type_unit_group): New functions.
3412 (tu_abbrev_offset): New struct.
3413 (sort_tu_by_abbrev_offset): New function.
3414 (add_type_unit_group_to_table): New function.
3415 (build_type_unit_groups): New function.
3416 (build_type_psymtabs_reader): New function.
3417 (build_type_psymtab_dependencies): New function.
3418 (build_type_psymtabs): Rewrite.
3419 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3420 is seen in a type unit.
3421 (process_queue): Move symtab expansion debugging printfs here.
3422 Call process_full_type_unit for type units.
3423 (compute_symtab_includes): Assert not called for type units.
3424 (process_cu_includes): Don't call compute_symtab_includes for
3425 type units.
3426 (process_full_type_unit): New function.
3427 (process_imported_unit_die): Flag an error if called for type units.
3428 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3429 updated. Assert not called for type units.
3430 (read_file_scope): Call dwarf2_start_symtab.
3431 (setup_type_unit_groups): New function.
3432 (read_type_unit_scope): Rewrite.
3433 (abbrev_table_read_table): Initialize abbrev_table->offset.
3434 (abbrev_table_free_cleanup): New function.
3435 (dwarf2_start_symtab): New function.
3436 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3437 * buildsym.c (finish_block_internal): New arg "expandable".
3438 All callers updated.
3439 (start_symtab): Move most contents to ...
3440 (restart_symtab): ... here. New function.
3441 (reset_symtab_globals): New function.
3442 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3443 Call reset_symtab_globals.
3444 (end_symtab, end_expandable_symtab): New functions.
3445 (set_missing_symtab, augment_type_symtab): New functions.
3446 * buildsym.h (end_expandable_symtab): Declare.
3447 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3448 * psympriv.h (struct partial_symtab): New member "anonymous".
3449 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3450 anonymous psymtabs.
3451 (read_psymtabs_with_filename): Ditto.
3452 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3453 (expand_symtabs_matching_via_partial): Ditto.
3454 (dump_psymtab): Update.
0bfa869d
DE
3455 * dictionary.c (dict_add_pending): New function.
3456 * dictionary.h (dict_add_pending): Declare.
3457
45e58e77
DE
34582012-07-09 Doug Evans <dje@google.com>
3459
b74db436
DE
3460 * buildsym.c (start_subfile): Remove unnecessary check for
3461 name == NULL.
3462
fd55216c
DE
3463 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3464
6721b2ec
DE
3465 * dwarf2read.c (load_full_type_unit): Simplify.
3466
b4dd5633
DE
3467 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3468 to struct signatured_type **. All uses updated.
3469
45e58e77
DE
3470 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3471 All callers updated.
3472
e314d629
TT
34732012-07-09 Tom Tromey <tromey@redhat.com>
3474
3475 * c-exp.y (check_parameter_typelist): New function.
3476 (parameter_typelist): Call it.
3477 * eval.c (make_params): Handle '(void)' case.
3478 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3479 '(void)' case.
3480
aa7c7447
JK
34812012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3482
3483 * common/linux-ptrace.c: Include gdb_assert.h.
3484 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3485 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3486 stdint.h.
3487 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3488 functions.
3489 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3490 * linux-nat.c (linux_child_post_attach)
3491 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3492
889003ed
JK
34932012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3494
3495 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3496 nptl <2.7 bug workaround for core files.
3497
da559b09
JK
34982012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3499
3500 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3501 clearing.
3502 (save_siginfo): Remove.
3503 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3504 call.
3505 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3506 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3507 * linux-nat.h (struct lwp_info): Remove field siginfo.
3508
f865ee35
JK
35092012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3510
3511 Code cleanup for the next patch.
3512 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3513 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3514 call for it.
3515 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3516 (ia64_linux_stopped_data_address):
3517 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3518 the return value.
3519 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3520 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3521 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3522 call for it.
3523
76b83c51
JK
35242012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3525
3526 PR 14321
3527 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3528 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3529
a6fb9c08
TT
35302012-07-06 Tom Tromey <tromey@redhat.com>
3531
3532 * c-exp.y (DOTDOTDOT): New token.
3533 (func_mod, exp): Use parameter_typelist.
3534 (parameter_typelist): New production.
3535 (tokentab3): Add "..." token.
3536 * eval.c (make_params): Handle varargs.
3537 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3538 varargs.
3539
71918a86
TT
35402012-07-06 Tom Tromey <tromey@redhat.com>
3541
3542 PR exp/9608:
3543 * c-exp.y (%union) <tvec>: Change type.
3544 (func_mod): Now uses <tvec> type.
3545 (exp): Update for tvec change.
3546 (direct_abs_decl): Push the typelist.
3547 (func_mod): Return a typelist.
3548 (nonempty_typelist): Update for tvec change.
3549 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3550 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3551 * parse.c (pop_type_list): New function.
3552 (push_typelist): New function.
3553 (follow_types): Handle tp_function_with_arguments.
3554 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3555 (enum type_pieces) <tp_function_with_arguments>: New constant.
3556 (union type_stack_elt) <typelist_val>: New field.
3557 (push_typelist): Declare.
3558
fcde5961
TT
35592012-07-06 Tom Tromey <tromey@redhat.com>
3560
3561 * c-exp.y (%union) <type_stack>: New field.
3562 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3563 (ptr_operator_ts): New production.
3564 (ptype): Update.
3565 * parse.c (type_stack_reserve): New function.
3566 (check_type_stack_depth): Use it.
3567 (pop_type_stack, append_type_stack, push_type_stack)
3568 (get_type_stack, type_stack_cleanup): New functions.
3569 (follow_types): Handle tp_type_stack.
3570 (_initialize_parse): Simplify initialization.
3571 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3572 constant.
3573 (union type_stack_elt) <stack_val>: New field.
3574 (get_type_stack, append_type_stack, push_type_stack)
3575 (type_stack_cleanup): Declare.
3576
1a7d0ce4
TT
35772012-07-06 Tom Tromey <tromey@redhat.com>
3578
3579 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3580 Remove.
3581 (struct type_stack): New.
3582 * parse.c (type_stack, type_stack_size, type_stack_depth):
3583 Remove.
3584 (type_stack): New global.
3585 (parse_exp_in_context, check_type_stack_depth)
3586 (insert_into_type_stack, insert_type, push_type, push_type_int)
3587 (insert_type_address_space, pop_type, pop_type_int)
3588 (_initialize_parse): Update.
3589
16d01384
TT
35902012-07-06 Tom Tromey <tromey@redhat.com>
3591
3592 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3593 Remove %type.
3594
9bfc60bf
SP
35952012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3596
3597 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3598
d5161074
SP
35992012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3600 Jan Kratochvil <jan.kratochvil@redhat.com>
3601
3602 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3603 alloca with xmalloc/xfree.
3604
a74bc576
SP
36052012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3606
3607 * MAINTAINERS (Write After Approval): Add myself to the list.
3608
667e0a4b
DE
36092012-07-05 Doug Evans <dje@google.com>
3610
3611 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3612
34b536a8
HZ
36132012-07-05 Hui Zhu <hui_zhu@mentor.com>
3614
3615 * ax-gdb.c (cli/cli-utils.h): New include.
3616 (linespec.h): Ditto.
3617 (agent_eval_command_one): New function.
3618 (agent_command_1): Ditto.
3619 (agent_command): Call function agent_command_1.
3620 (agent_eval_command): Ditto.
3621 (_initialize_ax_gdb): Change help for "maint agent"
3622 and "maint agent-eval".
3623
e6f0bce7
HZ
36242012-07-05 Hui Zhu <hui_zhu@mentor.com>
3625
3626 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3627 * cli/cli-utils.c (check_for_argument): New function.
3628 * cli/cli-utils.h (check_for_argument): Ditto.
3629
1b3371b1
L
36302012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3631
3632 * NEWS: Mention x32 ABI support.
3633
23e2d720
L
36342012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3635
3636 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3637 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3638
3639 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3640 and pc_regnum_from_eax to -1. Update SP regnum from
3641 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3642 needed.
3643
3644 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3645 pc_regnum_from_eax.
3646
836bf454
JK
36472012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3650 * dwarf2expr.h: Include gdbtypes.h.
3651 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3652 these forward declarations.
3653 (cu_offset, sect_offset): Move these ...
3654 * gdbtypes.h: Remove include dwarf2expr.h.
3655 (cu_offset, sect_offset): ... here.
3656
1e55e04f
L
36572012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3658
3659 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3660 (amd64_linux_sigtramp_code): This.
3661 (amd64_x32_linux_sigtramp_code): New.
3662 (LINUX_SIGTRAMP_LEN): Updated.
3663 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3664
7d0e21ad
JK
36652012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3666
3667 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3668
8775fd2d
JK
36692012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3670
3671 * config.in: Regenerate.
3672 * configure: Regenerate.
3673 * configure.ac: Remove check for gnu/libc-version.h.
3674 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3675 gnu/libc-version.h.
3676 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3677 variables libc_version, libc_major and libc_minor. Replace sscanf by
3678 inferior_has_bug. Extend the comment.
3679
fcb44371
JK
36802012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3681
3682 * linux-thread-db.c (inferior_has_bug): New function.
3683 (thread_db_find_new_threads_silently): Return boolean as checked by
3684 inferior_has_bug, describe it in the comments.
3685 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3686 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3687 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3688 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3689 if UNTIL_NO_NEW,
3690
09406207
DE
36912012-07-02 Doug Evans <dje@google.com>
3692
0907af0c
DE
3693 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3694 related to queue management.
3695
09406207
DE
3696 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3697 instead of "debug dwarf2-die" in debugging printfs.
3698 (create_debug_info_hash_table_reader): Ditto.
3699 (create_debug_info_hash_table): Ditto.
3700 (init_dwo_file): Ditto.
3701 (init_cutu_and_read_dies): Add debugging printf.
3702 (init_cutu_and_read_dies_no_follow): Ditto.
3703 (process_psymtab_comp_unit_reader): Ditto.
3704
d3ce09f5
SS
37052012-07-02 Stan Shebs <stan@codesourcery.com>
3706
3707 Add target-side support for dynamic printf.
3708 * NEWS: Mention the additional style.
3709 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3710 (struct bp_location): New field cmd_bytecode.
3711 * breakpoint.c: Include format.h.
3712 (disconnected_dprintf): New global.
3713 (parse_cmd_to_aexpr): New function.
3714 (build_target_command_list): New function.
3715 (insert_bp_location): Call it.
3716 (remove_breakpoints_pid): Skip dprintf breakpoints.
3717 (print_one_breakpoint_location): Ditto.
3718 (dprintf_style_agent): New global.
3719 (dprintf_style_enums): Add dprintf_style_agent.
3720 (update_dprintf_command_list): Add agent case.
3721 (agent_printf_command): New function.
3722 (_initialize_breakpoint): Add new commands.
3723 * common/ax.def (printf): New bytecode.
3724 * ax.h (ax_string): Declare.
3725 * ax-gdb.h (gen_printf): Declare.
3726 * ax-gdb.c: Include cli-utils.h, format.h.
3727 (gen_printf): New function.
3728 (maint_agent_print_command): New function.
3729 (_initialize_ax_gdb): Add maint agent-printf command.
3730 * ax-general.c (ax_string): New function.
3731 (ax_print): Add printf disassembly.
3732 * Makefile.in (SFILES): Add format.c
3733 (COMMON_OBS): Add format.o.
3734 * common/format.h: New file.
3735 * common/format.c: New file.
3736 * printcmd.c: Include format.h.
3737 (ui_printf): Call parse_format_string.
3738 * remote.c (remote_state): New field breakpoint_commands.
3739 (PACKET_BreakpointCommands): New enum.
3740 (remote_breakpoint_commands_feature): New function.
3741 (remote_protocol_features): Add new BreakpointCommands entry.
3742 (remote_can_run_breakpoint_commands): New function.
3743 (remote_add_target_side_commands): New function.
3744 (remote_insert_breakpoint): Call it.
3745 (remote_insert_hw_breakpoint): Ditto.
3746 (_initialize_remote): Add new packet configuration for
3747 target-side breakpoint commands.
3748 * target.h (struct target_ops): New field
3749 to_can_run_breakpoint_commands.
3750 (target_can_run_breakpoint_commands): New macro.
3751 * target.c (update_current_target): Handle
3752 to_can_run_breakpoint_commands.
3753
2d7b58e8
JK
37542012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3755
3756 Execute -ix and -iex only after system and user gdbinit files.
3757 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3758 processing down after gdbinit files.
3759
8690e634
JK
37602012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3761
3762 Add fnmatch-gnu module.
3763 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3764 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3765 * gnulib/aclocal.m4: Regenerate.
3766 * gnulib/config.in: Regenerate.
3767 * gnulib/configure: Regenerate.
3768 * gnulib/import/dummy.c: Remove.
3769 * gnulib/import/Makefile.am: Regenerate.
3770 * gnulib/import/Makefile.in: Likewise.
3771 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3772 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3773 * gnulib/import/alloca.c: New file.
3774 * gnulib/import/alloca.in.h: Likewise.
3775 * gnulib/import/config.charset: Likewise.
3776 * gnulib/import/fnmatch.c: Likewise.
3777 * gnulib/import/fnmatch.in.h: Likewise.
3778 * gnulib/import/fnmatch_loop.c: Likewise.
3779 * gnulib/import/localcharset.c: Likewise.
3780 * gnulib/import/localcharset.h: Likewise.
3781 * gnulib/import/m4/alloca.m4: Likewise.
3782 * gnulib/import/m4/codeset.m4: Likewise.
3783 * gnulib/import/m4/configmake.m4: Likewise.
3784 * gnulib/import/m4/fcntl-o.m4: Likewise.
3785 * gnulib/import/m4/fnmatch.m4: Likewise.
3786 * gnulib/import/m4/glibc21.m4: Likewise.
3787 * gnulib/import/m4/localcharset.m4: Likewise.
3788 * gnulib/import/m4/locale-fr.m4: Likewise.
3789 * gnulib/import/m4/locale-ja.m4: Likewise.
3790 * gnulib/import/m4/locale-zh.m4: Likewise.
3791 * gnulib/import/m4/mbrtowc.m4: Likewise.
3792 * gnulib/import/m4/mbsinit.m4: Likewise.
3793 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3794 * gnulib/import/m4/mbstate_t.m4: Likewise.
3795 * gnulib/import/m4/stdbool.m4: Likewise.
3796 * gnulib/import/m4/wchar_h.m4: Likewise.
3797 * gnulib/import/m4/wctype_h.m4: Likewise.
3798 * gnulib/import/m4/wint_t.m4: Likewise.
3799 * gnulib/import/mbrtowc.c: Likewise.
3800 * gnulib/import/mbsinit.c: Likewise.
3801 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3802 * gnulib/import/mbsrtowcs-state.c: Likewise.
3803 * gnulib/import/mbsrtowcs.c: Likewise.
3804 * gnulib/import/ref-add.sin: Likewise.
3805 * gnulib/import/ref-del.sin: Likewise.
3806 * gnulib/import/stdbool.in.h: Likewise.
3807 * gnulib/import/streq.h: Likewise.
3808 * gnulib/import/strnlen1.c: Likewise.
3809 * gnulib/import/strnlen1.h: Likewise.
3810 * gnulib/import/verify.h: Likewise.
3811 * gnulib/import/wchar.in.h: Likewise.
3812 * gnulib/import/wctype.in.h: Likewise.
3813
202cbf1c
JK
38142012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3815
3816 Support shell wildcards for 'set auto-load safe-path'.
3817 * auto-load.c: Include fnmatch.h.
3818 (filename_is_in_dir): Rename to ...
3819 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3820 it. Update function comment. Rename dir_len to pattern_len. New
3821 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3822 messages. Use gdb_filename_fnmatch.
3823 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3824 pattern.
3825 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3826 * defs.h (gdb_filename_fnmatch): New declaration.
3827 * utils.c: Include fnmatch.h.
3828 (gdb_filename_fnmatch): New function.
3829
fb7b5af4
SDJ
38302012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3831
3832 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3833 `-probe' and `-probe-stap' options.
3834
72d0e2c5
YQ
38352012-07-01 Yao Qi <yao@codesourcery.com>
3836
3837 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3838 always_inserted_off, and always_inserted_enums.
3839 Change always_inserted_mode's type to 'enum auto_boolean'.
3840 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3841 callers.
3842 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3843 of add_setshow_enum_cmd.
3844 * infrun.c: Remove can_use_displaced_stepping_auto,
3845 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3846 can_use_displaced_stepping_enum.
3847 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3848 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3849 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3850 add_setshow_enum_cmd.
3851
42e7ad6c
DE
38522012-06-30 Doug Evans <dje@google.com>
3853
3854 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3855 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3856 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3857
39cf75f7
DE
38582012-06-29 Doug Evans <dje@google.com>
3859
3860 * linespec.c: #include "stack.h".
3861 (decode_line_with_current_source): Moved here from symtab.c and
3862 renamed from decode_line_spec. All callers updated.
3863 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3864 renamed from decode_line_spec_1. All callers updated.
3865 * linespec.h (decode_line_with_current_source): Move declaration here
3866 from symtab.h and renamed from decode_line_spec.
3867 (decode_line_with_last_displayed): Move declaration here from symtab.h
3868 and renamed from decode_line_spec_1.
3869 * macrocmd.c: #include "linespec.h".
3870 * symtab.c: Remove #include "linespec.h".
3871
433df2d4
DE
38722012-06-28 Doug Evans <dje@google.com>
3873
1ce1cefd
DE
3874 * dwarf2read.c (get_cu_length): New function.
3875 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3876 (create_debug_types_hash_table): Ditto.
3877 (init_cutu_and_read_dies): Ditto.
3878 (init_cutu_and_read_dies_no_follow): Ditto.
3879
3b80fe9b
DE
3880 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3881
433df2d4
DE
3882 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3883 (struct abbrev_table): Define.
3884 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3885 abbrev_table.
3886 (init_cutu_and_read_dies): Update.
3887 (abbrev_table_alloc_abbrev): New function. Replaces
3888 dwarf_alloc_abbrev. All callers updated.
3889 (abbrev_table_add_abbrev): New function.
3890 (abbrev_table_lookup_abbrev): New function. Replaces
3891 dwarf2_lookup_abbrev. All callers updated.
3892 (abbrev_table_read_table): New function. Contents moved here from
3893 dwarf2_read_abbrevs.
3894 (dwarf2_read_abbrevs): Call it.
3895 (abbrev_table_free): New function.
3896 (dwarf2_free_abbrev_table): Call it.
3897
71caed83
SS
38982012-06-28 Stan Shebs <stan@codesourcery.com>
3899
3900 * osdata.c (info_osdata_command): Filter out "Title" columns
3901 from non-MI uses.
3902 * common/linux-osdata.c (struct osdata_type): Add title field.
3903 (osdata_table): Add titles to each entry.
3904 (linux_command_xfer_osdata): Add a column for title data.
3905
37ce89eb
SS
39062012-06-28 Stan Shebs <stan@codesourcery.com>
3907
3908 Make logging work for MI.
3909 * NEWS: Mention it.
3910 * interps.h (interp_set_logging_ftype): New typedef.
3911 (struct interp_procs): New field set_logging_proc.
3912 (current_interp_set_logging): Declare.
3913 * interps.c (current_interp_set_logging): New function.
3914 * cli/cli-logging.c: Include interps.h.
3915 (set_logging_redirect): Call current_interp_set_logging.
3916 (pop_output_files): Ditto.
3917 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3918 * mi/mi-console.h (mi_console_set_raw): Declare.
3919 * mi/mi-console.c (mi_console_set_raw): New function.
3920 * mi/mi-interp.c (saved_raw_stdout): New global.
3921 (mi_set_logging): New function.
3922 (_initialize_mi_interp): Add it to interp procs.
3923
659c9f3a
DE
39242012-06-28 Doug Evans <dje@google.com>
3925
a743abeb
DE
3926 * symtab.c (lookup_symbol_aux_objfile): Use
3927 ALL_OBJFILE_PRIMARY_SYMTABS.
3928
659c9f3a
DE
3929 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3930
da2d6d3d
JK
39312012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3932
3933 * common/buffer.c: Include inttypes.h and stdint.h.
3934 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3935
e5ef252a
PA
39362012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3937 Pedro Alves <palves@redhat.com>
3938
3939 * gdbthread.h (ALL_THREADS): New macro.
3940 (thread_list): Declare.
3941 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3942 going, but instead fall through to the stepping handling.
3943 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3944 the passed in signal. Adjust debug output.
3945 (resume_callback): Rename to ...
3946 (linux_nat_resume_callback): ... this. Pass the thread's last
3947 stop signal, if in "pass" state.
3948 (linux_nat_resume): Adjust to rename.
3949 (stop_wait_callback): New assertion. Don't respawn signals;
3950 instead let the LWP remain with SIGNALLED set.
3951 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3952 * remote.c (append_pending_thread_resumptions): New.
3953 (remote_vcont_resume): Call it.
3954 * target.h (target_resume): Extend comment.
3955
1d7975eb
IS
39562012-06-28 Iain Sandoe <iain@codesourcery.com>
3957
3958 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3959
2e3cf129
DE
39602012-06-27 Doug Evans <dje@google.com>
3961
3962 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3963 Delete have_addr_base, unused. All uses updated.
3964 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3965 (dwarf2_get_pc_bounds): Add ranges_base.
3966 (dwarf2_record_block_ranges): Ditto.
3967
1bb9788d
TT
39682012-06-27 Tom Tromey <tromey@redhat.com>
3969
3970 PR macros/7961:
3971 * varobj.c (varobj_create): Update.
3972 (varobj_set_value): Update.
3973 * tracepoint.c (validate_actionline): Update.
3974 (encode_actions_1): Update.
3975 * parse.c (parse_exp_1): Add 'pc' argument.
3976 (parse_exp_in_context): Add 'pc' argument. Change how
3977 expression_context_pc is set.
3978 (parse_expression): Update.
3979 (parse_field_expression): Update.
3980 * expression.h (parse_exp_1): Update.
3981 * eval.c (parse_to_comma_and_eval): Update.
3982 * breakpoint.c (set_breakpoint_condition): Update.
3983 (update_watchpoint): Update.
3984 (init_breakpoint_sal): Update
3985 (find_condition_and_thread): Update.
3986 (watch_command_1): Update.
3987 (update_breakpoint_locations): Update.
3988 * ada-lang.c (ada_read_renaming_var_value): Update.
3989 (create_excep_cond_exprs): Update.
3990
0bc3a05c
DE
39912012-06-27 Doug Evans <dje@google.com>
3992
3993 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3994 type units.
3995
4bdcc0c1
DE
39962012-06-26 Doug Evans <dje@google.com>
3997
3998 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3999 prototype.
4000 (error_check_comp_unit_head): New arg abbrev_section. All callers
4001 updated.
4002 (read_and_check_comp_unit_head): Ditto.
4003 (read_and_check_type_unit_head): Ditto.
4004
ee0bf529
SCR
40052012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4006
4007 New attribute 'last' for gdb.Symtab_and_line.
4008 * NEWS (Python Scripting): Add entry about the new attribute.
4009 * python/py-symtab.c (salpy_get_last): New function which
4010 implements the get method for the 'last' attribute of
4011 gdb.Symtab_and_line.
4012 (sal_object_getset): Add entry for the 'last' attribute.
4013
1c658ad5
DE
40142012-06-26 Doug Evans <dje@google.com>
4015
09262596
DE
4016 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4017 (dwo_sections): Add macinfo, macro.
4018 (dwarf2_locate_dwo_sections): Watch for macro sections.
4019 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4020 All callers updated. Handle DWO files.
4021
45cfd468
DE
4022 * NEWS: Mention new options "set debug dwarf2-read" and
4023 "set debug symtab-create".
4024 * dwarf2read.c (dwarf2_read_debug): New static global.
4025 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4026 (process_queue): Ditto.
4027 (process_full_comp_unit): Ditto.
4028 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4029 * elfread.c (elf_symfile_read): Add debugging printf.
4030 * minsyms.c (install_minimal_symbols): Ditto.
4031 * psymtab.c (allocate_psymtab): Ditto.
4032 * symfile.c (allocate_symtab): Ditto.
4033 * symtab.c (symtab_create_debug): New global.
4034 (_initialize_symtab): Add new option "set debug symtab-create".
4035 * symtab.h (symtab_create_debug): Declare.
4036
1c658ad5
DE
4037 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4038 (lookup_dwo_type_unit): Ditto.
4039
6fea9e18
L
40402012-06-26 Roland McGrath <roland@hack.frob.com>
4041 H.J. Lu <hongjiu.lu@intel.com>
4042
4043 * amd64-linux-nat.c: Include <sys/user.h>.
4044 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4045 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4046 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4047
4048 * configure.ac: Check if the fs_base and gs_base members of
4049 `struct user_regs_struct' exist.
4050 * config.in: Regenerated.
4051 * configure: Likewise.
4052
adb4fe3b
ME
40532012-06-25 Michael Eager <eager@eagercon.com>
4054
4055 PR python/14291
f782ad9b 4056 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4057
fc51cce1
MGD
40582012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4059
4060 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4061 register as a stack alignment in ARM mode.
4062
40a73391
JK
40632012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4064
4065 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4066 * gnulib/config.in: Regenerate.
4067 * gnulib/configure: Likewise.
4068 * gnulib/import/m4/extensions.m4: Update it.
4069 * gnulib/import/m4/gnulib-common.m4: Likewise.
4070 * gnulib/import/m4/memmem.m4: Likewise.
4071 * gnulib/import/m4/mmap-anon.m4: Likewise.
4072 * gnulib/import/m4/multiarch.m4: Likewise.
4073 * gnulib/import/stdint.in.h: Likewise.
4074
972daa01
YQ
40752012-06-24 Yao Qi <yao@codesourcery.com>
4076
4077 * corefile.c (write_memory_with_notification): New.
4078 * gdbcore.h: Declare write_memory_with_notification.
4079 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4080 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4081 * valops.c (value_assign): Likewise.
4082 * python/py-inferior.c (infpy_write_memory): Call
4083 'write_memory_with_notification'.
4084
8d6e0714
JK
40852012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4086
4087 * cc-with-index.sh: Use also -ex "set auto-load no".
4088
156942c7
DE
40892012-06-23 Doug Evans <dje@google.com>
4090
4091 PR 14125
4092 * NEWS: Document additions to .gdb_index.
4093 * dwarf2read.c: #include "gdb/gdb-index.h".
4094 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4095 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4096 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4097 (dwarf2_read_index): Recognize version 7.
4098 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4099 block_kind, domain): All callers updated.
4100 (dw2_find_symbol_file): Handle new index CU values.
4101 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4102 (add_index_entry): New args is_static, kind. All callers updated.
4103 (offset_type_compare, uniquify_cu_indices): New functions
4104 (symbol_kind): New function.
4105 (write_psymtabs_to_index): Remove duplicate CU values.
4106 (write_psymtabs_to_index): Write .gdb_index version 7.
4107
352b3eda
JB
41082012-06-22 Joel Brobecker <brobecker@adacore.com>
4109
4110 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4111 * configure: Regenerate.
4112
2678e2af
YQ
41132012-06-20 Yao Qi <yao@codesourcery.com>
4114
4115 * python/py-inferior.c: Update comments of infpy_read_memory
4116 and infpy_write_memory.
4117
95c391b6
TT
41182012-06-19 Tom Tromey <tromey@redhat.com>
4119
4120 PR exp/9514:
4121 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4122 (push_type_address_space): Remove.
4123 * parse.c (insert_into_type_stack): New function.
4124 (insert_type): Likewise.
4125 (insert_type_address_space): Rename from push_type_address_space.
4126 Insert tp_space_identifier.
4127 * c-exp.y (ptr_operator): New production.
4128 (abs_decl): Use ptr_operator.
4129 (space_identifier): Call insert_type_address_space.
4130 (ptype): Don't use const_or_volatile_or_space_identifier.
4131 (const_or_volatile_noopt): Call insert_type.
4132 (conversion_type_id, conversion_declarator): New productions.
4133 (operator): Use conversion_type_id.
4134
6ac9ef80
DE
41352012-06-18 Doug Evans <dje@google.com>
4136
422d65e7
DE
4137 * symtab.h (minimal_symbol): New member created_by_gdb.
4138 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4139 created by gdb.
4140 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4141 (search_symbols): Call it instead of lookup_symbol.
4142 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4143
49f6c839
DE
4144 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4145 Adjust address for DW_OP_GNU_addr_index.
4146 * dwarf2expr.h (dwarf_expr_context): Update comment.
4147 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4148 all callers updated. Handle TLS vars described with
4149 DW_OP_GNU_const_index.
4150 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4151 and DW_OP_GNU_const_index.
4152 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4153
6ac9ef80
DE
4154 * block.c (find_block_in_blockvector): Make explicit the fact that we
4155 ignore GLOBAL_BLOCK.
4156
4cd18215
TT
41572012-06-18 Tom Tromey <tromey@redhat.com>
4158
4159 * c-exp.y (operator): Remove trailing space after "delete" and
4160 "delete[]".
4161
a9b8d892
JK
41622012-06-18 Mark Kettenis <kettenis@gnu.org>
4163 Jan Kratochvil <jan.kratochvil@redhat.com>
4164
4165 Switch i386 and derived targets to ON_STACK.
4166 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4167 (amd64_dicos_init_abi): Remove its installment.
4168 * dicos-tdep.c (dicos_init_abi): Remove the
4169 set_gdbarch_call_dummy_location call. Update the comment here.
4170 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4171 (i386_dicos_init_abi): Remove its installment.
4172 * i386-tdep.c (i386_push_dummy_code): New function.
4173 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4174 i386_push_dummy_code.
4175
e2e4d78b
JK
41762012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4177
4178 Remove stale dummy frames.
4179 * breakpoint.c: Include dummy-frame.h.
4180 (longjmp_breakpoint_ops): New variable.
4181 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4182 bp_longjmp_call_dummy.
4183 (bpstat_what, bptype_string, print_one_breakpoint_location)
4184 (init_bp_location): Support bp_longjmp_call_dummy.
4185 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4186 (set_longjmp_breakpoint_for_call_dummy)
4187 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4188 functions.
4189 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4190 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4191 FIXME comment and extend the other comment for bp_call_dummy.
4192 (set_longjmp_breakpoint_for_call_dummy)
4193 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4194 * dummy-frame.c: Include gdbthread.h.
4195 (pop_dummy_frame_bpt): New function.
4196 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4197 (dummy_frame_discard): New function.
4198 (cleanup_dummy_frames): Update the comment about longjmps.
4199 * dummy-frame.h (dummy_frame_discard): New declaration.
4200 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4201 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4202 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4203 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4204 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4205 keep_going if IS_LONGJMP and there is no other reason to stop.
4206
09d5912c
TT
42072012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4208
4209 * remote-sim.c (sim_command_completer): Initialize
4210 variable 'result'.
4211
1788b2d3
JK
42122012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4213
4214 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4215 * dwarf2loc.c (call_site_parameter_matches): Support
4216 CALL_SITE_PARAMETER_PARAM_OFFSET.
4217 (needs_dwarf_reg_entry_value): Push stub value.
4218 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4219 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4220 * gdbtypes.h (enum call_site_parameter_kind): New item
4221 CALL_SITE_PARAMETER_PARAM_OFFSET.
4222 (struct call_site.parameter.u): New field param_offset.
4223
24c5c679
JK
42242012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4225
4226 Code cleanup: Generalize call_site.parameter key.
4227 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4228 variable dwarf_reg. New variable kind_u. Update parameters to
4229 push_dwarf_reg_entry_value.
4230 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4231 * dwarf2expr.h (enum call_site_parameter_kind)
4232 (union call_site_parameter_u): Forward declarations.
4233 (struct dwarf_expr_context_funcs): Update parameters and their
4234 description for push_dwarf_reg_entry_value.
4235 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4236 * dwarf2loc.c (call_site_parameter_matches): New function.
4237 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4238 description. Use call_site_parameter_matches.
4239 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4240 Update parameters and their description.
4241 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4242 New variable kind_u. Adjust the caller for updated parameters.
4243 (needs_dwarf_reg_entry_value): Update parameters.
4244 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4245 instead of attr. Update for the changed fields of struct
4246 call_site_parameter.
4247 * gdbtypes.h: Include dwarf2expr.h.
4248 (enum call_site_parameter_kind): New.
4249 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4250 fb_offset into new union u.
4251
ac142d96
L
42522012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4253
4254 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4255 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4256 for x32.
4257
ba224c70
L
42582012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4259
4260 * amd64-linux-nat.c (compat_x32_clock_t): New.
4261 (compat_x32_siginfo_t): Likewise.
4262 (compat_x32_siginfo_from_siginfo): Likewise.
4263 (siginfo_from_compat_x32_siginfo): Likewise.
4264 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4265 and siginfo_from_compat_x32_siginfo for x32.
4266
7ecbc825
HZ
42672012-06-15 Hui Zhu <hui_zhu@mentor.com>
4268
4269 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4270
233dfcf0
L
42712012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4272
4273 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4274 instead of gdbarch_ptr_bit.
4275 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4276 (amd64_supply_native_gregset): Likewise.
4277 (amd64_collect_native_gregset): Likewise.
4278 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4279 (amd64_supply_xsave): Likewise.
4280 (amd64_collect_fxsave): Likewise.
4281 (amd64_collect_xsave): Likewise.
4282
6da38f42
L
42832012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4284
4285 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4286 (amd64_linux_read_description): Check DS segment register for
4287 x32 process.
4288
663b969e
TT
42892012-06-15 Tom Tromey <tromey@redhat.com>
4290
4291 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4292 init_cutu_and_read_dies.
4293
d6f05027
IS
42942012-06-15 Iain Sandoe <iain@codesourcery.com>
4295
4296 * MAINTAINERS (Write After Approval): Add myself to the list.
4297
6598ed07
TT
42982012-06-15 Tom Tromey <tromey@redhat.com>
4299
4300 * valops.c (value_find_oload_method_list): Now static.
4301 * value.h (value_find_oload_method_list): Don't declare.
4302
2b214ea6
TT
43032012-06-15 Tom Tromey <tromey@redhat.com>
4304
4305 * valops.c (find_overload_match): Use value_ind.
4306
a210c238
MR
43072012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4308
4309 * infrun.c (handle_inferior_event): Correct indentation.
4310
3771a44c
DE
43112012-06-14 Doug Evans <dje@google.com>
4312
4313 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4314 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4315 All uses updated.
4316 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4317 updated. Handle DEBUG_LOC_START_LENGTH.
4318 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4319 (loclist_describe_location): Ditto.
4320
1c5a993e
MR
43212012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4322
4323 PR backtrace/13866
4324 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4325 after hiding inline functions.
4326
0b155465
JB
43272012-06-13 Joel Brobecker <brobecker@adacore.com>
4328
4329 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4330 _initialize_inf_ttrace.
4331
45717bac
JB
43322012-06-13 Joel Brobecker <brobecker@adacore.com>
4333
4334 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4335 _initialize_hppa_hpux_nat.
4336
34370865
JB
43372012-06-13 Joel Brobecker <brobecker@adacore.com>
4338
4339 * remote-sim.c (sim_command_completer): Change type of return
4340 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4341
284c5a60
MK
43422012-06-13 Mark Kettenis <kettenis@gnu.org>
4343 Jan Kratochvil <jan.kratochvil@redhat.com>
4344
4345 PR tdep/14222
4346 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4347 stack on a 16-byte boundary.
4348
2535757a
TT
43492012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4350
4351 * jit.c (finalize_symtab): Set function's return type to 'void' by
4352 default.
4353
fff4548b
MK
43542012-06-13 Mark Kettenis <kettenis@gnu.org>
4355 H.J. Lu <hongjiu.lu@intel.com>
4356
5a83521a
MK
4357 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4358 Move bits common to both the classic LP64 and the new x32 ILP32
4359 ABI here.
4360 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4361 (amd64_x32_linux_init_abi): New function.
4362 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4363 subtype.
4364
fff4548b
MK
4365 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4366 * i386-tdep.c (i386_pseudo_register_name): Make public.
4367 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4368 * amd64-tdep.c (amd64_dword_names): Add "eip".
4369 (amd64_x32_pseudo_register_type): New function
4370 (amd64_x32_init_abi): New function.
4371
dd80ea3c
JK
43722012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4373
4374 PR build/14003
4375 * inferior.h (struct inferior_suspend_state): Comment out.
4376 (struct inferior): Comment out the field suspend.
4377 * infrun.c (struct infcall_suspend_state): Comment out the field
4378 inferior_suspend.
4379 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4380 out its assignment.
4381
50af5481
JK
43822012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4383
4384 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4385 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4386 function comment. Return ERROR for unresolved cases. Implement
4387 returning proper NAME.
4388 (yylex): Accept also NAME from classify_inner_name.
4389 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4390 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4391 LOC_TYPEDEF type.
4392 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4393
d55637df
TT
43942012-06-13 Tom Tromey <tromey@redhat.com>
4395
4396 * breakpoint.c (condition_completer): New function.
4397 (_initialize_breakpoint): Use it.
4398 * value.c (complete_internalvar): New function.
4399 * value.h (complete_internalvar): Declare.
4400
49c4e619
TT
44012012-06-13 Tom Tromey <tromey@redhat.com>
4402
4403 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4404 * breakpoint.c (catch_syscall_completer): Return a VEC.
4405 * cli/cli-cmds.c (complete_command): Update.
4406 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4407 (complete_on_enum): Likewise.
4408 * command.h: Include gdb_vecs.h.
4409 (completer_ftype): Change return type.
4410 (complete_on_cmdlist, complete_on_enum): Likewise.
4411 * completer.c (noop_completer, filename_completer)
4412 (location_completer): Return a VEC.
4413 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4414 to a VEC.
4415 (expression_completer, complete_line_internal, complete_line)
4416 (command_completer): Return a VEC.
4417 (gdb_completion_word_break_characters, line_completion_function):
4418 Update.
4419 * completer.h: Include gdb_vecs.h.
4420 (complete_line, noop_completer, filename_completer)
4421 (expression_completer, location_completer, command_completer):
4422 Update.
4423 * f-lang.c (f_word_break_characters): Return a VEC.
4424 * interps.c (interpreter_completer): Return a VEC.
4425 * language.h (struct language_defn)
4426 <la_make_symbol_completion_list>: Return a VEC.
4427 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4428 * symtab.c (free_completion_list): Take a VEC.
4429 (return_val_size, return_val_index): Remove.
4430 (return_val): Now a VEC.
4431 (completion_list_add_name): Update.
4432 (default_make_symbol_completion_list_break_on)
4433 (default_make_symbol_completion_list, make_symbol_completion_list)
4434 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4435 Return a VEC.
4436 (add_filename_to_list): Update.
4437 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4438 <list>: Now a VEC.
4439 (maybe_add_partial_symtab_filename): Update.
4440 (make_source_files_completion_list): Return a VEC.
4441 * symtab.h (default_make_symbol_completion_list_break_on)
4442 (default_make_symbol_completion_list, make_symbol_completion_list)
4443 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4444 (make_source_files_completion_list): Update.
4445
625e8578
TT
44462012-06-13 Tom Tromey <tromey@redhat.com>
4447
4448 * breakpoint.c (add_catch_command): Use completer_ftype.
4449 * breakpoint.h: Include command.h.
4450 (add_catch_command): Use completer_ftype.
4451 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4452 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4453 Use completer_ftype.
4454 * command.h (completer_ftype): New typedef.
4455 (set_cmd_completer): Use it.
4456 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4457 completer_ftype.
4458
5eb3b062
PA
44592012-06-13 Pedro Alves <palves@redhat.com>
4460
4461 Partial revert of previous change.
4462
4463 * serial.c (scb_base): New global.
4464 (serial_for_fd): New.
4465 (serial_open, serial_fdopen_ops): Link new serial in open serials
4466 chain.
4467 (do_serial_close): Unlink serial from the open serials chain.
4468
8b3ee56d
PA
44692012-06-12 Pedro Alves <palves@redhat.com>
4470
4471 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4472 threads here.
4473 (prepare_for_detach): No longer context switch here in non-stop
4474 mode.
4475 (fetch_inferior_event): Ditto.
4476 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4477 to the event thread before removing breakpoints. Switch to the
4478 event thread before inserting breakpoints and resuming.
4479 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4480 event thread before resuming.
4481 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4482 Switch to the event thread before removing breakpoints.
4483
5d60742e
EZ
44842012-06-12 Eli Zaretskii <eliz@gnu.org>
4485
4486 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4487 special characters correctly for the Windows shells. See
4488 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4489 report.
4490 [!__MINGW32__]: Remove extra double quote character from special
4491 characters.
4492
a6feecf7
SS
44932012-06-11 Stan Shebs <stan@codesourcery.com>
4494
4495 * ui-out.h: Remove #if 0 declarations.
4496 * ui-out.c: Remove #if 0 functions.
4497
ddefb60f
PA
44982012-06-11 Pedro Alves <palves@redhat.com>
4499
4500 * ser-base.c (run_async_handler_and_reschedule): New.
4501 (fd_event, push_event): Use it.
4502 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4503 reference count to 1.
4504 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4505 instead of xfree.
4506 (serial_is_open, serial_ref, serial_unref): New.
4507 * serial.h (serial_open): Adjust comment.
4508 (serial_is_open): Declare.
4509 (serial_close): Adjust comment.
4510 (serial_ref, serial_unref) Declare.
4511 (struct serial): New field 'refcnt'.
4512
d5ad6aa5
PA
45132012-06-11 Pedro Alves <palves@redhat.com>
4514
4515 Remove #if 0'd "connect" command, and unnecessary associated
4516 refcounting and serial reuse bits.
4517
4518 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4519 * serial.c (last_serial_opened): Delete.
4520 (scb_base): Delete.
4521 (serial_open): Adjust.
4522 (serial_for_fd): Delete.
4523 (serial_fdopen_ops, do_serial_close): Adjust.
4524 (serial_fdopen_ops): Adjust.
4525
318aa544
PA
45262012-06-11 Pedro Alves <palves@redhat.com>
4527
4528 * serial.c (do_serial_close): Remove early return when SCB is
4529 null.
4530
07261596
TT
45312012-06-11 Tom Tromey <tromey@redhat.com>
4532
4533 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4534
cc80f267
JK
45352012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4536
4537 Fix regression by the "ambiguous linespec" series.
4538 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4539 get_last_displayed_symtab and get_last_displayed_line and depending
4540 on CURSAL.
4541
356d9f9d
TT
45422012-06-11 Tom Tromey <tromey@redhat.com>
4543
4544 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4545 (dw2_find_symbol_file): Use it.
4546
232b8704
ME
45472012-06-11 Michael Eager <eager@eagercon.com>
4548
4549 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4550 * mips-linux-tdep.h (mips_signals): New
4551
e81a37f7
TT
45522012-06-11 Tom Tromey <tromey@redhat.com>
4553
4554 * infrun.c (handle_inferior_event)
4555 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4556 breakpoint.
4557 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4558 exception logic in all cases. Update comments.
4559 (insert_longjmp_resume_breakpoint): Set the exception resume
4560 breakpoint.
4561
2e81047f
MR
45622012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4563
4564 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4565
4e32eda7
SCR
45662012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4567
4568 * valarith.c (binop_types_user_defined_p): Fix a typo.
4569
18648a37 45702012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4571 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4572
4573 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4574 * arch-utils.h: Declare.
4575 * gdbarch.sh: Add return_in_first_hidden_param_p.
4576 * gdbarch.c, gdbarch.h: Regenerated.
4577 * infcall.c (call_function_by_hand): Call
4578 gdbarch_return_in_first_hidden_param_p instead of
4579 language_pass_by_reference.
4580
4581 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4582 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4583 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4584 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4585 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4586 `cplus_return_struct_by_reference'.
4587 (tic6x_return_value): Handle language cplusplus.
4588 (tic6x_return_in_first_hidden_param_p): New.
4589 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4590
034e5797
DE
45912012-06-07 Doug Evans <dje@google.com>
4592
4593 * dwarf2read.c (dwarf2_cu): Add comment.
4594
6a00aa1e
MR
45952012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4596
4597 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4598 variable.
4599 (mips_eabi_push_dummy_call): Likewise.
4600 (mips_n32n64_push_dummy_call): Likewise.
4601 (mips_o32_push_dummy_call): Likewise.
4602 (mips_o64_push_dummy_call): Likewise.
4603
eaa05d59
MR
46042012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4605
4606 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4607
de13fcf2
MR
46082012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4609
4610 * mips-tdep.c (mips_pseudo_register_type): Use
4611 mips_float_register_p.
4612
c3a01a22
PA
46132012-06-06 Pedro Alves <palves@redhat.com>
4614
4615 * infrun.c (handle_inferior_event): Remove calls to
4616 reinit_frame_cache that follow a context_switch call.
4617
d25f45d9
PA
46182012-06-06 Pedro Alves <palves@redhat.com>
4619
4620 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4621 context_switch and remove stale comment.
4622
359f5fe6
PA
46232012-06-06 Pedro Alves <palves@redhat.com>
4624
4625 * infrun.c (struct execution_control_state): Remove
4626 `new_thread_event' field.
4627 (handle_inferior_event): Simplify new threads handling; don't
4628 resume the inferior if we find a new thread.
4629
2d4c29c5
TS
46302012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4631
4632 * NEWS: Document the deprecation of SH's 'regs' command.
4633 * inferior.h (all_registers_info): Add function declaration.
4634 * sh-tdep.c (sh_show_regs): Remove variable.
4635 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4636 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4637 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4638 (sh_show_regs_command): Remove functions.
4639 (sh_gdbarch_init): Don't set sh_show_regs.
4640 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4641 'info all-registers'.
4642 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4643 (sh64_show_regs): Remove functions.
4644 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4645
f5f1cdb6
JK
46462012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4647
4648 * configure.ac: Move development=true below AC_INIT.
4649 * configure: Regenerate.
4650
bf6309af
SS
46512012-06-05 Stan Shebs <stan@codesourcery.com>
4652
4653 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4654 gdb_stdout.
4655
45aa4659
JK
46562012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4657
4658 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4659 argument as ssize_t.
4660 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4661 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4662 * target.c (target_read_stack, target_write_memory)
4663 (target_write_raw_memory): Likewise.
4664 * target.h (target_read_stack, target_write_memory)
4665 (target_write_raw_memory): Likewise.
4666
1b162304
JK
46672012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4668
4669 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4670 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4671 * target.c (target_read_memory): Change LEN to ssize_t.
4672 * target.h (target_read_memory): Change LEN to ssize_t.
4673
8556afb4
PA
46742012-06-05 Pedro Alves <palves@redhat.com>
4675
4676 PR backtrace/13866
4677
4678 * breakpoint.c (until_break_command): Only fetch the selected
4679 frame after decode_line_1.
4680
fb139f32
PA
46812012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4682
4683 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4684 event breakpoint at _start, __start or main if a program
4685 interpreter is not found.
4686
a8e1bb34
JB
46872012-06-05 Joel Brobecker <brobecker@adacore.com>
4688
4689 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4690 Add declaration.
4691 * windows-tdep.c: #include "objfiles.h".
4692 (windows_iterate_over_objfiles_in_search_order): New function.
4693 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4694 iterate_over_objfiles_in_search_order gdbarch method to
4695 windows_iterate_over_objfiles_in_search_order.
4696 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4697
19630284
JB
46982012-06-05 Joel Brobecker <brobecker@adacore.com>
4699
4700 * gdbarch.sh: Add generation of
4701 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4702 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4703 (iterate_over_objfiles_in_search_order): New gdbarch method.
4704 * gdbarch.h, gdbarch.c: Regenerate.
4705 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4706 Add declaration.
4707 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4708 New function.
4709 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4710 out of lookup_symbol_aux_symtabs.
4711 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4712 call to lookup_symbol_aux_objfile.
4713 (struct global_sym_lookup_data): New type.
4714 (lookup_symbol_global_iterator_cb): New function.
4715 (lookup_symbol_global): Search for symbol using
4716 gdbarch_iterate_over_objfiles_in_search_order and
4717 lookup_symbol_global_iterator_cb.
4718 * findvar.c (struct minsym_lookup_data): New type.
4719 (minsym_lookup_iterator_cb): New function.
4720 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4721 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4722 and minsym_lookup_iterator_cb.
4723
67ff19f7
JB
47242012-06-05 Joel Brobecker <brobecker@adacore.com>
4725
4726 Revert the following patch:
4727 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4728 try locating the symbol in the symbol's own objfile first, before
4729 extending the search to all objfiles.
4730 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4731 out of lookup_symbol_aux_symtabs.
4732 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4733 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4734 Do not search EXCLUDE_OBJFILE.
4735 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4736 (lookup_symbol_global): Search for matches in the block's objfile
4737 first, before searching all other objfiles.
4738
ccab2054
JB
47392012-06-05 Joel Brobecker <brobecker@adacore.com>
4740
4741 * breakpoint.c (find_condition_and_thread): Stop parsing
4742 as soon as the first invalid keyword is found.
4743
e23d4a9c
JB
47442012-06-05 Joel Brobecker <brobecker@adacore.com>
4745
4746 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4747
70160166
JB
47482012-06-05 Joel Brobecker <brobecker@adacore.com>
4749
4750 * config/djgpp/djcheck.sh: Add copyright header.
4751
399501a5
JB
47522012-06-05 Joel Brobecker <brobecker@adacore.com>
4753
4754 * copyright.py (update_files, main): Fix path to update-copyright
4755 script.
4756
3770a159
JB
47572012-06-05 Joel Brobecker <brobecker@adacore.com>
4758
4759 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4760 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4761 for which a reminder to update by hand is printed.
4762
4aad0dfc
DE
47632012-06-04 Doug Evans <dje@google.com>
4764
4765 * buildsym.c (make_blockvector): Add comment.
4766
1f8cf220
PA
47672012-06-04 Pedro Alves <palves@redhat.com>
4768
4769 * arch-utils.c (default_gdb_signal_from_target): Delete.
4770 * arch-utils.h (default_gdb_signal_from_target): Delete.
4771 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4772 gdbarch_gdb_signal_from_target_p.
4773 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4774 predicate).
4775 * gdbarch.h: Regenerate.
4776 * gdbarch.c: Regenerate.
4777
86b49880
PA
47782012-06-04 Pedro Alves <palves@redhat.com>
4779
4780 * gdbarch.sh (gdb_signal_from_target): Mention that the
4781 implementation of the method must be host independent.
4782 * gdbarch.h: Regenerate.
4783
fe78531d
JK
47842012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4785
4786 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4787 parameters.
4788 (target_read_memory_bfd): New function.
4789 (symbol_file_add_from_memory): Use it.
4790
d790cf0a
DE
47912012-06-03 Doug Evans <dje@google.com>
4792
78e5175a
DE
4793 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4794 of primary symtab.
4795 (basic_lookup_transparent_type): Ditto.
4796
d790cf0a
DE
4797 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4798 (ALL_PRIMARY_SYMTABS): Use it.
4799 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4800 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4801 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4802 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4803 (basic_lookup_transparent_type): Ditto.
4804
c6e5ee5e
SDJ
48052012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4806
4807 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4808 it to optimize resolution of demangled name.
4809
a68ffae9
JK
48102012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4811
4812 * configure.ac (development): Define new variable.
4813 Call AC_CHECK_LIB for mcheck if $development.
4814 (ERROR_ON_WARNING): Enable it by default only if $development.
4815 * config.in: Regenerate.
4816 * configure: Regenerate.
4817
5299c1c4
JK
48182012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4819
4820 * target.c (target_read_memory): Make LEN argument as size_t.
4821 * target.h (target_read_memory): Likewise.
4822
48232012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4824
4825 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4826
0c56f59b
EBM
48272012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4828
4829 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4830 BookE interface for PowerPC server processors if not available
4831 in the Linux Kernel.
4832
71bdabee
KS
48332012-05-31 Keith Seitz <keiths@redhat.com>
4834
4835 * linespec.c (decode_objc): Add cleanup to free
4836 INFO.FILE_SYMTABS.
4837 (find_linespec_symbols): Add cleanup to free CLASSES.
4838 * symfile.c (find_separate_debug_file_by_debuglink): Add
4839 cleanup to free DEBUGLINK.
4840 * ui-out.c (clear_header_list): No need to check if
4841 HEADER_NEXT.COLHDR is NULL.
4842 Free HEADER_NEXT.COL_NAME.
4843
acbd605d
MGD
48442012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4845
4846 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4847 warning.
4848
65662cde
PA
48492012-05-30 Jeff Kenton <jkenton@tilera.com>
4850
4851 * configure.host (gdb_host_cpu): Handle tilegx*.
4852 (gdb_host): Handle tilegx-*-linux*.
4853 * tilegx-linux-nat.c: New file.
4854 * config/tilegx/linux.mh: New file.
4855
ade64f0e
PA
48562012-05-30 Jeff Kenton <jkenton@tilera.com>
4857
4858 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4859 tilegx-linux-tdep.o.
4860 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4861 tilegx-linux-tdep.c.
4862 * configure.tgt: Handle tilegx-*-linux*.
4863 * tilegx-tdep.h: New file.
4864 * tilegx-tdep.c: New file.
4865 * tilegx-linux-tdep.c: New file.
4866 * regformats/reg-tilegx.dat: New file.
4867
bb08bdbd
EBM
48682012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4869
4870 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4871 accounting of hw watchpoints on ppc.
4872
ebd86fb5
TJB
48732012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4874
4875 * source.c (openp): Expand tilde in path entries.
4876
0a0edcd5
DE
48772012-05-29 Doug Evans <dje@google.com>
4878
98cc87bd
DE
4879 * buildsym.c (block_compar): Fix comment.
4880 (end_symtab): Fix and clarify some comments.
4881
0a0edcd5
DE
4882 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4883 cleanup_undefined_types.
4884 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4885 All callers updated.
4886
6f0c7050
TT
48872012-05-29 Tom Tromey <tromey@redhat.com>
4888
4889 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4890 fails.
4891 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4892 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4893 fails.
4894 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4895 fails.
4896
ec95993c
TG
48972012-05-29 Tristan Gingold <gingold@adacore.com>
4898
4899 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4900 (struct darwin_info): ... New struct.
4901 (solib_darwin_pspace_data): New variable.
4902 (darwin_pspace_data_cleanup): New function.
4903 (get_darwin_info): Likewise.
4904 (darwin_dyld_version_ok, darwin_load_image_infos)
4905 (darwin_solib_get_all_image_info_addr_at_init)
4906 (darwin_solib_read_all_image_info_addr): Add info argument.
4907 Adjust code.
4908 (darwin_current_sos): Use per pspace structure.
4909 (darwin_solib_create_inferior_hook): Likewise.
4910 (darwin_clear_solib): Likewise.
4911 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4912
ae25568b
PA
49132012-05-28 Pedro Alves <palves@redhat.com>
4914
4915 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4916 block that uses them. Clear ecss before handling each event.
4917
0c5bf5a9
JK
49182012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4919
4920 * solib-svr4.c (svr4_current_sos): New comment on
4921 svr4_current_sos_via_xfer_libraries fall back.
4922
bfb05775
JK
49232012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4924
4925 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4926 it as a fallback for TYPE_IS_OPAQUE.
4927 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4928 symbols for lookup_symbol.
4929
685b1105
JK
49302012-05-24 John Steele Scott <toojays@toojays.net>
4931
4932 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4933 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4934 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4935 (check_producer): ... this new function, which also checks for ICC
4936 and caches the result.
4937 (producer_is_icc): New function.
4938 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4939 producer was ICC.
4940
22203bbf
PA
49412012-05-24 Pedro Alves <palves@redhat.com>
4942
4943 PR gdb/7205
4944
4945 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4946 (default_gdb_signal_to_target): ... this. Add comment.
4947 (default_gdb_signal_from_host): Rename to ...
4948 (default_gdb_signal_from_target): ... this. Add comment.
4949 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4950 (default_gdb_signal_to_target): ... this.
4951 (default_gdb_signal_from_host): Rename to ...
4952 (default_gdb_signal_from_target): ... this.
4953 * corelow.c (core_open): Adjust to naming change. Replace comment.
4954 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4955 (gdb_signal_from_target): ... this. Adjust to
4956 default_gdb_signal_from_host naming change. Extend comment.
4957 (gdb_signal_to_host): Rename to ...
4958 (gdb_signal_to_target): ... this. Adjust to
4959 default_gdb_signal_to_host naming change.
4960 * gdbarch.h, gdbarch.c: Renegerate.
4961
a493e3e2
PA
49622012-05-24 Pedro Alves <palves@redhat.com>
4963
4964 PR gdb/7205
4965
f782ad9b 4966 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4967
2ea28649
PA
49682012-05-24 Pedro Alves <palves@redhat.com>
4969
4970 PR gdb/7205
4971
4972 Replace target_signal with gdb_signal throughout.
4973
b09846a9
PA
49742012-05-24 Pedro Alves <palves@redhat.com>
4975
4976 PR tui/14159
4977
4978 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4979 string, instead of reusing the va_list argument.
4980
e77c107e
TT
49812012-05-24 Tom Tromey <tromey@redhat.com>
4982
4983 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4984 Remove.
4985
9fccedf7
DE
49862012-05-23 Doug Evans <dje@google.com>
4987
d50bd42b
DE
4988 * symtab.c (search_symbols): Formatting fixes.
4989 (print_symbol_info): Formatting fixes.
4990
9fccedf7
DE
4991 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4992 int64_t change to leb128 API.
4993 (read_encoded_value, decode_frame_entry_1): Ditto.
4994 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4995 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4996 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4997 (execute_stack_op): Ditto.
4998 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4999 (safe_read_uleb128, safe_read_sleb128): Ditto.
5000 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5001 (dwarf2_compile_expr_to_ax): Ditto.
5002 (locexpr_describe_location_piece): Ditto.
5003 (disassemble_dwarf_expression): Ditto.
5004 (locexpr_describe_location_1): Ditto.
5005
f3e0e960
SS
50062012-05-23 Stan Shebs <stan@codesourcery.com>
5007 Kwok Cheung Yeung <kcy@codesourcery.com>
5008
5009 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5010 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5011 (mi-cmd-info.o): New rule.
5012 * osdata.h (info_osdata_command): New declaration.
5013 * osdata.c (info_osdata_command): Change to non-static.
5014 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5015 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5016 * mi/mi-cmd-info.c: New file.
5017
c51fe631
DE
50182012-05-23 Doug Evans <dje@google.com>
5019
71cddcc1
DE
5020 * symtab.c (search_symbols): Pass NULL for file_matcher to
5021 expand_symtabs_matching if there are no files to match.
5022
c51fe631
DE
5023 * gdbtypes.c (lookup_typename): Simplify.
5024
a79378d4
PA
50252012-05-23 Pedro Alves <palves@redhat.com>
5026
5027 * arch-utils.h (default_target_signal_to_host): Delete.
5028 * arch-utils.c (default_target_signal_to_host): Delete.
5029 * gdbarch.sh (target_signal_to_host): Remove.
5030 * gdbarch.h, gdbarch.c: Regenerate.
5031
f664829e
DE
50322012-05-22 Doug Evans <dje@google.com>
5033
5034 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5035 "const gdb_byte *".
5036 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5037 (execute_cfa_program): Update to match API of leb128 functions.
5038 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5039 "const gdb_byte *".
5040 (read_unsigned_leb128, read_signed_leb128): Delete.
5041 (read_initial_length): Change type of buf argument to
5042 "const gdb_byte *".
5043 (read_encoded_value): Update to match API of leb128 functions.
5044 (decode_frame_entry): Change result to "const gdb_byte *", and
5045 similarly for "start" parameter.
5046 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5047 (dwarf2_build_frame_info): Change local frame_ptr to
5048 "const gdb_byte *".
5049 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5050 read_uleb128, read_sleb128. All callers updated.
5051 (safe_skip_leb128): New function.
5052 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5053 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5054 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5055 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5056 read_uleb128, read_sleb128.
5057 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5058 (execute_stack_op): Update to match API of leb128 functions.
5059 * dwarf2expr.h: #include "leb128.h".
5060 (read_uleb128, read_sleb128): Delete.
5061 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5062 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5063 * dwarf2loc.c (debug_loc_kind): New enum.
5064 (decode_debug_loc_addresses): New function.
5065 (decode_debug_loc_dwo_addresses): New function.
5066 (dwarf2_find_location_expression): Rewrite.
5067 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5068 (locexpr_describe_location_piece): Ditto.
5069 (disassemble_dwarf_expression): Ditto.
5070 (locexpr_describe_location_1): Ditto.
5071 (loclist_describe_location): Rewrite.
5072 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5073 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5074 (dwarf2_section_buffer_overflow_complaint): Renamed from
5075 dwarf2_macros_too_long_complaint. All callers updated.
5076 (skip_leb128): Delete.
5077 (init_cu_die_reader): Initialize reader->buffer_end.
5078 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5079 (skip_form_bytes): New arg buffer_end. All callers updated.
5080 Replace call to skip_leb128 with gdb_skip_leb128.
5081 (skip_unknown_opcode): New arg mac_end. All callers updated.
5082 (fill_in_loclist_baton): Initialize baton->from_dwo.
5083
837a1b32
MR
50842012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5085
5086 * mips-linux-nat.c (mips_linux_read_description): Use a more
5087 verbose error message.
5088
d0e64392
MR
50892012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5090
5091 * NEWS: Add MIPS/Linux DSP support.
5092 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5093 (SIGCONTEXT_DSPCTL): New macro.
5094 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5095 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5096 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5097 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5098 (N64_SIGCONTEXT_HI3): Likewise.
5099 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5100 (N64_SIGCONTEXT_LO3): Likewise.
5101 (N64_SIGCONTEXT_DSPCTL): Likewise.
5102 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5103 (mips_linux_o32_sigframe_init): Handle DSP registers.
5104 (mips_linux_n32n64_sigframe_init): Likewise.
5105
8bea7ed1
PM
51062012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5107
5108 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5109 call to abort.
5110
dab06dbe
PA
51112012-05-22 Pedro Alves <palves@redhat.com>
5112
5113 * target.h (store_waitstatus): Move declaration ...
5114 * inf-child.h (store_waitstatus): ... here.
5115 * target.c: Move inclusion of gdb_wait.h, and ...
5116 (store_waitstatus): ... this ...
5117 * inf-child.c: ... here.
5118 * linux-nat.c: Include inf-child.h.
5119 * rs6000-nat.c: Include inf-child.h.
5120 * spu-linux-nat.c: Include inf-child.h.
5121
43011e52
PM
51222012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5123
5124 * tracepoint.c (start_tracing): Add missing i18n markup.
5125 (stop_tracing, set_trace_user): Ditto.
5126 (set_trace_notes, set_trace_stop_notes): Ditto.
5127
b1af9e97
TT
51282012-05-21 Tom Tromey <tromey@redhat.com>
5129
5130 PR c++/7173:
5131 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5132 types.
5133 * value.h (value_cast_pointers): Update.
5134 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5135 (value_cast): Update.
5136 (update_search_result): New function.
5137 (do_search_struct_field): New, from search_struct_field. Check
5138 for ambiguous results.
5139 (search_struct_field): Rewrite.
5140 * infcall.c (value_arg_coerce): Update.
5141 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5142 value_cast_pointers.
5143 * ada-lang.c (ada_convert_actual): Update.
5144
e9e5e6b3
TT
51452012-05-21 Tom Tromey <tromey@redhat.com>
5146
5147 * macroexp.c (macro_stringify): Terminate the string.
5148
1564a261
JK
51492012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5150
5151 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5152 Describe it.
5153 * auto-load.c (auto_load_expand_dir_vars): New function.
5154 (auto_load_safe_path_vec_update): Use it, remove the
5155 substitute_path_component call thanks to it.
5156 (auto_load_objfile_script): Remove the debug_file_directory processing.
5157 Use auto_load_expand_dir_vars, remove the substitute_path_component
5158 call thanks to it.
5159 * configure: Regenerate.
5160 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5161 path. Escape $ also for $debugdir.
5162 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5163 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5164
a3ec0bb1
DE
51652012-05-20 Doug Evans <dje@google.com>
5166
5167 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5168 before use. Check for symtab->includes == NULL before scanning it.
5169
d467df4e
MR
51702012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5171
5172 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5173
4cc0665f
MR
51742012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5175
5176 * NEWS: Add microMIPS support and "set mips compression",
5177 "show mips compression" commands.
5178 * mips-tdep.h (mips_isa): New enum.
5179 (gdbarch_tdep): Add mips_isa.
5180 (mips_pc_is_mips16): Update prototype.
5181 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5182 * mips-tdep.c (mips_compression_mips16): New variable.
5183 (mips_compression_micromips): Likewise.
5184 (mips_compression_strings): Likewise.
5185 (mips_compression_string): Likewise.
5186 (is_mips16_isa, is_micromips_isa): New functions.
5187 (is_mips16_addr): Rename to...
5188 (is_compact_addr): ... this.
5189 (unmake_mips16_addr): Likewise to...
5190 (unmake_compact_addr): ... this.
5191 (make_mips16_addr): Likewise to...
5192 (make_compact_addr): ... this.
5193 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5194 functions.
5195 (mips_elf_make_msymbol_special): Handle microMIPS code.
5196 (msymbol_is_special): Rename to...
5197 (msymbol_is_mips16): ... this.
5198 (mips_make_symbol_special, mips_pc_is_mips16): Update
5199 accordingly.
5200 (msymbol_is_mips, msymbol_is_micromips): New functions.
5201 (mips16_to_32_reg): Rename to...
5202 (mips_reg3_to_reg): ... this.
5203 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5204 (mips_pc_isa): Likewise.
5205 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5206 code.
5207 (mips_fetch_instruction): Pass return status instead of printing
5208 an error message if requested. Handle microMIPS code. Bail out
5209 on an invalid ISA.
5210 (micromips_op): New macro.
5211 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5212 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5213 (b6s4_op, b7s3_reg): Likewise.
5214 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5215 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5216 (mips_insn_size): New function.
5217 (mips32_next_pc): Update mips_fetch_instruction call.
5218 (micromips_relative_offset7): New function.
5219 (micromips_relative_offset10): Likewise.
5220 (micromips_relative_offset16): Likewise.
5221 (micromips_pc_insn_size): Likewise.
5222 (micromips_bc1_pc): Likewise.
5223 (micromips_next_pc): Likewise.
5224 (unpack_mips16): Update mips_fetch_instruction call.
5225 (extended_mips16_next_pc): Update according to change to
5226 mips16_to_32_reg.
5227 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5228 code.
5229 (mips16_scan_prologue): Update mips_fetch_instruction call.
5230 Update according to change to mips16_to_32_reg.
5231 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5232 (mips_insn16_frame_base_sniffer): Likewise.
5233 (micromips_decode_imm9): New function.
5234 (micromips_scan_prologue): Likewise.
5235 (mips_micro_frame_cache): Likewise.
5236 (mips_micro_frame_this_id): Likewise.
5237 (mips_micro_frame_prev_register): Likewise.
5238 (mips_micro_frame_sniffer): Likewise.
5239 (mips_micro_frame_unwind): New variable.
5240 (mips_micro_frame_base_address): New function.
5241 (mips_micro_frame_base): New variable.
5242 (mips_micro_frame_base_sniffer): New function.
5243 (mips32_scan_prologue): Update mips_fetch_instruction call.
5244 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5245 rather than for MIPS16.
5246 (mips_insn32_frame_base_sniffer): Likewise.
5247 (mips_addr_bits_remove): Handle microMIPS code.
5248 (deal_with_atomic_sequence): Rename to...
5249 (mips_deal_with_atomic_sequence): ... this. Update the type
5250 of the variable used to hold an instruction. Remove the ISA bit
5251 check. Update mips_fetch_instruction call.
5252 (micromips_deal_with_atomic_sequence): New function.
5253 (deal_with_atomic_sequence): Likewise.
5254 (mips_about_to_return): Handle microMIPS code. Update
5255 mips_fetch_instruction call.
5256 (heuristic_proc_start): Check for the standard MIPS ISA rather
5257 than for MIPS16. Update mips_pc_is_mips16 and
5258 mips_fetch_instruction calls. Handle microMIPS code.
5259 (mips_push_dummy_code): Handle microMIPS code.
5260 (mips_eabi_push_dummy_call): Likewise.
5261 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5262 (mips_o64_push_dummy_call): Handle microMIPS code.
5263 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5264 (is_delayed): Remove function.
5265 (mips_single_step_through_delay): Replace the call to is_delayed
5266 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5267 Handle microMIPS code.
5268 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5269 microMIPS code.
5270 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5271 call.
5272 (micromips_in_function_epilogue_p): New function.
5273 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5274 call.
5275 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5276 Handle microMIPS.
5277 (gdb_print_insn_mips): Likewise.
5278 (mips_breakpoint_from_pc): Likewise.
5279 (mips_remote_breakpoint_from_pc): New function.
5280 (mips32_instruction_has_delay_slot): Simplify making use of the
5281 updated mips_fetch_instruction interface.
5282 (micromips_instruction_has_delay_slot): New function.
5283 (mips16_instruction_has_delay_slot): Simplify making use of the
5284 updated mips_fetch_instruction interface.
5285 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5286 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5287 calls. Handle microMIPS code.
5288 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5289 (mips_skip_trampoline_code): Handle microMIPS code.
5290 (global_mips_compression): New function.
5291 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5292 file flags. Register the microMIPS remote breakpoint handler
5293 and heuristic frame unwinder.
5294 (show_mips_compression): New function.
5295 (_initialize_mips_tdep): Add the "set mips compression" and
5296 "show mips compression" commands.
5297
22e048c9
SDJ
52982012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5299
5300 * ada-lang.c:
5301 * ada-tasks.c:
5302 * ada-varobj.c:
5303 * amd64-darwin-tdep.c:
5304 * arm-symbian-tdep.c:
5305 * arm-tdep.c:
5306 * avr-tdep.c:
5307 * ax-gdb.c:
5308 * bfin-linux-tdep.c:
5309 * breakpoint.c:
5310 * c-valprint.c:
5311 * cli/cli-cmds.c:
5312 * coffread.c:
5313 * cp-support.c:
5314 * cris-tdep.c:
5315 * dwarf2-frame-tailcall.c:
5316 * dwarf2-frame.c:
5317 * dwarf2expr.c:
5318 * dwarf2loc.c:
5319 * dwarf2read.c:
5320 * elfread.c:
5321 * eval.c:
5322 * expprint.c:
5323 * f-valprint.c:
5324 * frv-tdep.c:
5325 * h8300-tdep.c:
5326 * hppa-hpux-tdep.c:
5327 * hppa-tdep.c:
5328 * hppanbsd-tdep.c:
5329 * i386-nto-tdep.c:
5330 * i386-tdep.c:
5331 * i387-tdep.c:
5332 * ia64-tdep.c:
5333 * jit.c:
5334 * linespec.c:
5335 * linux-tdep.c:
5336 * lm32-tdep.c:
5337 * m2-valprint.c:
5338 * m32c-tdep.c:
5339 * m32r-rom.c:
5340 * m32r-tdep.c:
5341 * m68k-tdep.c:
5342 * m68klinux-tdep.c:
5343 * mi/mi-main.c:
5344 * microblaze-tdep.c:
5345 * mips-linux-tdep.c:
5346 * mips-tdep.c:
5347 * mn10300-tdep.c:
5348 * p-valprint.c:
5349 * parse.c:
5350 * ppc-linux-tdep.c:
5351 * ppc-sysv-tdep.c:
5352 * printcmd.c:
5353 * python/py-finishbreakpoint.c:
5354 * python/py-inferior.c:
5355 * python/py-infthread.c:
5356 * python/py-type.c:
5357 * python/python.c:
5358 * remote-fileio.c:
5359 * remote-m32r-sdi.c:
5360 * remote-mips.c:
5361 * reverse.c:
5362 * rl78-tdep.c:
5363 * rs6000-aix-tdep.c:
5364 * rs6000-tdep.c:
5365 * s390-tdep.c:
5366 * score-tdep.c:
5367 * sh64-tdep.c:
5368 * skip.c:
5369 * solib-darwin.c:
5370 * solib-dsbt.c:
5371 * solib-frv.c:
5372 * sparc-tdep.c:
5373 * spu-multiarch.c:
5374 * spu-tdep.c:
5375 * stack.c:
5376 * symfile.c:
5377 * symtab.c:
5378 * tic6x-tdep.c:
5379 * tracepoint.c:
5380 * v850-tdep.c:
5381 * valarith.c:
5382 * valprint.c:
5383 * value.c:
5384 * xcoffread.c:
5385 * xtensa-tdep.c:
5386 * ada-lang.c:
5387 * ada-tasks.c:
5388 * ada-varobj.c:
5389 * amd64-darwin-tdep.c:
5390 * arm-symbian-tdep.c:
5391 * arm-tdep.c: Delete unused variables.
5392
aff139ff
JK
53932012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 Rename $ddir to $datadir.
5396 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5397 * auto-load.c (auto_load_safe_path_vec_update)
5398 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5399 * configure: Regenerate.
5400 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5401 Likewise. Remove the 'use $ddir' help string.
5402
f7bfa992
JK
54032012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5404
5405 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5406 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5407
9cb709b6
TT
54082012-05-18 Tom Tromey <tromey@redhat.com>
5409
5410 PR exp/13907:
5411 * valprint.h (struct value_print_options) <symbol_print>: New
5412 field.
5413 * valprint.c (user_print_options): Add default for symbol_print.
5414 (show_symbol_print): New function.
5415 (generic_val_print): Respect symbol_print.
5416 (_initialize_valprint): Add "print symbol" setting.
5417 * f-valprint.c (f_val_print): Respect symbol_print.
5418 * c-valprint.c (c_val_print): Respect symbol_print.
5419 * NEWS: Update.
5420 * printcmd.c (print_address_symbolic): Return int. Ignore some
5421 zero-size symbols.
5422 (print_address_demangle): Return int.
5423 * defs.h: (print_address_symbolic): Return int.
5424 * value.h (print_address_demangle): Return int.
5425
b012acdd
TT
54262012-05-18 Tom Tromey <tromey@redhat.com>
5427
5428 * valprint.c (val_print_string): Don't print leading space.
5429 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5430 print space before string or vtbl.
5431 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5432 before string.
5433 * jv-valprint.c (java_value_print): Print space before string.
5434 * go-valprint.c (print_go_string): Print space before string.
5435 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5436 space before string.
5437 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5438 space before string or vtbl.
5439 * auxv.c (fprint_target_auxv): Print space after address.
5440
1d51a733
TT
54412012-05-18 Tom Tromey <tromey@redhat.com>
5442
5443 * printcmd.c (print_address_demangle): Remove special case for 0.
5444
edf0c1b7
TT
54452012-05-18 Tom Tromey <tromey@redhat.com>
5446
5447 * printcmd.c (print_address_demangle): Add 'opts' argument.
5448 * p-valprint.c (pascal_val_print): Update.
5449 * jv-valprint.c (java_val_print): Update.
5450 * value.h: Update.
5451 * valprint.c (generic_val_print): Update.
5452 (print_function_pointer_address): Add 'options' argument. Remove
5453 'addressprint' argument. Update.
5454 * m2-valprint.c (print_unpacked_pointer): Update.
5455 * gnu-v3-abi.c (print_one_vtable): Update.
5456 (gnuv3_print_method_ptr): Update.
5457 * f-valprint.c (f_val_print): Update.
5458 * cp-valprint.c (cp_print_value_fields): Update.
5459 * valprint.h (print_function_pointer_address): Update.
5460 * c-valprint.c (c_val_print): Update.
5461
9703b513
TT
54622012-05-18 Tom Tromey <tromey@redhat.com>
5463
5464 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5465 directly corresponding to the found psymtab.
5466 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5467 (dw2_find_pc_sect_symtab): Use it.
5468 * block.h (blockvector_contains_pc): Declare.
5469 * block.c (find_block_in_blockvector): New function.
5470 (blockvector_for_pc_sect): Use it.
5471 (blockvector_contains_pc): New function.
5472
5a439849
MR
54732012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5474
5475 * mips-tdep.h (mips_write_pc): New prototype.
5476 * mips-tdep.c (mips_write_pc): Make external, add description.
5477 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5478 add description.
5479
8376de04
MR
54802012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5481
5482 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5483 mips_regnum->pc.
5484 (mips_unwind_pc, mips_write_pc): Likewise.
5485 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5486 gdbarch_read_pc.
5487
d3581e61
JB
54882012-05-17 Joel Brobecker <brobecker@adacore.com>
5489
5490 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5491 proc_warn, proc_error, proc_get_status, proc_flags,
5492 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5493 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5494 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5495 proc_stop_process, proc_wait_for_stop, proc_run_process,
5496 proc_set_traced_signals, proc_set_traced_faults,
5497 proc_set_traced_sysentry, proc_set_traced_sysexit,
5498 proc_set_held_signals, proc_get_held_signals,
5499 proc_get_traced_signals, proc_get_traced_faults,
5500 proc_get_traced_sysentry, proc_get_traced_sysexit,
5501 proc_clear_current_fault, proc_set_current_signal,
5502 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5503 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5504 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5505 proc_get_current_thread, proc_get_current_thread,
5506 proc_get_current_thread, proc_update_threads,
5507 proc_update_threads, proc_update_threads, proc_update_threads,
5508 proc_iterate_over_threads, procfs_find_new_threads,
5509 procfs_pid_to_str): Make static. Remove advance declaration.
5510 (proc_cursig): Make static. Conditionalized defintion on
5511 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5512 (proc_syscall, proc_set_kill_on_last_close,
5513 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5514 proc_get_pending_signals, proc_get_signal_actions,
5515 proc_trace_signal, proc_ignore_signal): Delete.
5516
81b9b86e
SDJ
55172012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5518
5519 * coffread.c (cs_section_address): Passing proper argument for
5520 `bfd_get_section_vma'.
5521 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5522 `bfd_get_section_flags'.
5523 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5524 `bfd_get_section_vma'.
5525
abc9d0dc
TT
55262012-05-16 Tom Tromey <tromey@redhat.com>
5527
5528 PR macros/13205:
5529 * macrotab.h: (macro_define_special): Declare.
5530 (enum macro_special_kind): New.
5531 (struct macro_definition) <argc, replacement>: Update comments.
5532 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5533 (macro_define_object_internal): New function.
5534 (macro_define_object): Use it.
5535 (macro_define_special): New function.
5536 (fixup_definition): New function.
5537 (macro_lookup_definition, foreach_macro_in_scope)
5538 (foreach_macro): Use fixup_definition.
5539 * macroexp.h (macro_stringify): Declare.
5540 * macroexp.c (free_buffer_return_text): New function.
5541 (stringify): Constify "arg".
5542 (macro_stringify): New function.
5543 * dwarf2read.c (macro_start_file): Call macro_define_special.
5544
6a3a010b 55452012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5546 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5547
5548 * breakpoint.h (bp_location): Add related_address member.
5549 * inferior.h (get_return_value): Take a pointer to struct value
5550 instead of struct type for the function requested.
5551 * value.h (using_struct_return): Likewise.
5552 * gdbarch.sh (return_value): Take a pointer to struct value
5553 instead of struct type for the function requested.
5554 * breakpoint.c (set_breakpoint_location_function): Initialize
5555 related_address for bp_gnu_ifunc_resolver breakpoints.
5556 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5557 requested function's address to gdbarch_return_value.
5558 * eval.c (evaluate_subexp_standard): Pass the requested
5559 function's address to using_struct_return.
5560 * infcall.c (call_function_by_hand): Pass the requested
5561 function's address to using_struct_return and
5562 gdbarch_return_value.
5563 * infcmd.c (get_return_value): Take a pointer to struct value
5564 instead of struct type for the function requested.
5565 (print_return_value): Update accordingly.
5566 (finish_command_continuation): Likewise.
5567 * stack.c (return_command): Pass the requested function's
5568 address to using_struct_return and gdbarch_return_value.
5569 * value.c (using_struct_return): Take a pointer to struct value
5570 instead of struct type for the function requested. Pass the
5571 requested function's address to gdbarch_return_value.
5572 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5573 New function_value member, replacing function_type.
5574 (bpfinishpy_dealloc): Update accordingly.
5575 (bpfinishpy_pre_stop_hook): Likewise.
5576 (bpfinishpy_init): Likewise. Record the requested function's
5577 address.
5578 * mips-tdep.c (mips_fval_reg): New enum.
5579 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5580 words put in GP registers.
5581 (mips_o64_push_dummy_call): Update a comment.
5582 (mips_o32_return_value): Take a pointer to struct value instead
5583 of struct type for the function requested and use it to check if
5584 using the MIPS16 calling convention. Return the designated
5585 general purpose registers for floating-point values returned in
5586 MIPS16 mode.
5587 (mips_o64_return_value): Likewise.
5588 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5589 (ppc_sysv_abi_broken_return_value): Likewise.
5590 (ppc64_sysv_abi_return_value): Likewise.
5591 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5592 value instead of struct type for the function requested.
5593 * amd64-tdep.c (amd64_return_value): Likewise.
5594 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5595 * arm-tdep.c (arm_return_value): Likewise.
5596 * avr-tdep.c (avr_return_value): Likewise.
5597 * bfin-tdep.c (bfin_return_value): Likewise.
5598 * cris-tdep.c (cris_return_value): Likewise.
5599 * frv-tdep.c (frv_return_value): Likewise.
5600 * h8300-tdep.c (h8300_return_value): Likewise.
5601 (h8300h_return_value): Likewise.
5602 * hppa-tdep.c (hppa32_return_value): Likewise.
5603 (hppa64_return_value): Likewise.
5604 * i386-tdep.c (i386_return_value): Likewise.
5605 * ia64-tdep.c (ia64_return_value): Likewise.
5606 * iq2000-tdep.c (iq2000_return_value): Likewise.
5607 * lm32-tdep.c (lm32_return_value): Likewise.
5608 * m32c-tdep.c (m32c_return_value): Likewise.
5609 * m32r-tdep.c (m32r_return_value): Likewise.
5610 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5611 * m68k-tdep.c (m68k_return_value): Likewise.
5612 (m68k_svr4_return_value): Likewise.
5613 * m88k-tdep.c (m88k_return_value): Likewise.
5614 * mep-tdep.c (mep_return_value): Likewise.
5615 * microblaze-tdep.c (microblaze_return_value): Likewise.
5616 * mn10300-tdep.c (mn10300_return_value): Likewise.
5617 * moxie-tdep.c (moxie_return_value): Likewise.
5618 * mt-tdep.c (mt_return_value): Likewise.
5619 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5620 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5621 (ppc_sysv_abi_broken_return_value): Likewise.
5622 (ppc64_sysv_abi_return_value): Likewise.
5623 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5624 * rl78-tdep.c (rl78_return_value): Likewise.
5625 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5626 * rx-tdep.c (rx_return_value): Likewise.
5627 * s390-tdep.c (s390_return_value): Likewise.
5628 * score-tdep.c (score_return_value): Likewise.
5629 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5630 (sh_return_value_fpu): Likewise.
5631 * sh64-tdep.c (sh64_return_value): Likewise.
5632 * sparc-tdep.c (sparc32_return_value): Likewise.
5633 * sparc64-tdep.c (sparc64_return_value): Likewise.
5634 * spu-tdep.c (spu_return_value): Likewise.
5635 * tic6x-tdep.c (tic6x_return_value): Likewise.
5636 * v850-tdep.c (v850_return_value): Likewise.
5637 * vax-tdep.c (vax_return_value): Likewise.
5638 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5639 * xtensa-tdep.c (xtensa_return_value): Likewise.
5640 * gdbarch.c: Regenerate.
5641 * gdbarch.h: Regenerate.
5642
29ca12b3
TT
56432012-05-15 Tom Tromey <tromey@redhat.com>
5644
5645 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5646
588ae58c
JB
56472012-05-15 Joel Brobecker <brobecker@adacore.com>
5648
5649 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5650 of command in two error message.
5651
855a6e68
JB
56522012-05-15 Joel Brobecker <brobecker@adacore.com>
5653
5654 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5655
d634f2de
JB
56562012-05-15 Joel Brobecker <brobecker@adacore.com>
5657
5658 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5659
9cc815f5
JK
56602012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5661
5662 * NEWS (show auto-load scripts-directory): Add forgotten command.
5663
6a609e58
JK
56642012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5665
5666 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5667 parameters.
5668
ac1438b5
L
56692012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5670
5671 * amd64-tdep.c: Include features/i386/x32.c and
5672 features/i386/x32-avx.c.
5673 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5674 initialize_tdesc_x32_avx.
5675
e7e0cddf
SS
56762012-05-14 Stan Shebs <stan@codesourcery.com>
5677
5678 Add dynamic printf.
5679 * breakpoint.h (enum bptype): New type bp_dprintf.
5680 (struct breakpoint): New field extra_string.
5681 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5682 (create_breakpoint): Add extra_string arg.
5683 * breakpoint.c (dprintf_breakpoint_ops): New.
5684 (is_breakpoint): Add bp_dprintf.
5685 (bpstat_what): Add dprintf case.
5686 (bptype_string): Ditto.
5687 (print_one_breakpoint_location): Ditto.
5688 (init_bp_location): Ditto.
5689 (bkpt_print_mention): Ditto.
5690 (dprintf_style_enums): New array.
5691 (dprintf_style): New global.
5692 (dprintf_function): New global.
5693 (dprintf_channel): New global.
5694 (update_dprintf_command_list): New function.
5695 (update_dprintf_commands): New function.
5696 (init_breakpoint_sal): Add extra_string argument, handle it.
5697 (create_breakpoint_sal): Add extra_string argument.
5698 (create_breakpoints_sal): Add extra_string argument, update callers.
5699 (find_condition_and_thread): Add extra argument.
5700 (create_breakpoint): Add extra_string argument, record it.
5701 (dprintf_command): New function.
5702 (break_command_1): Add arg to create_breakpoint call.
5703 (handle_gnu_v3_exceptions): Ditto.
5704 (trace_command): Ditto.
5705 (ftrace_command): Ditto.
5706 (strace_command): Ditto.
5707 (bkpt_print_mention): Add dprintf case.
5708 (create_breakpoint_sal_default): Add extra_string argument.
5709 (_initialize_breakpoint): Add new commands.
5710 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5711 * python/py-breakpoint.c (bppy_init): Ditto.
5712 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5713
8ae38c14
MR
57142012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5715
5716 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5717
9f676e66
SCR
57182012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5719
5720 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5721 unsigned long long.
5722
7efc75aa
SCR
57232012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5724
5725 Add a new function gdb.find_pc_line to the Python API.
5726 * NEWS (Python Scripting): Add entry about the new function.
5727 * python/python.c (gdbpy_find_pc_line): New function which
5728 implements gdb.find_pc_line.
5729 (GdbMethods): Add entry for the new function.
5730
70af3797
PA
57312012-05-12 Pedro Alves <palves@redhat.com>
5732
5733 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5734 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5735
06da564e
EZ
57362012-05-12 Eli Zaretskii <eliz@gnu.org>
5737
5738 * inferior.c: Include completer.h
5739 (initialize_inferiors): Set completer of add-inferior to
5740 filename_completer.
5741
0288cee2
L
57422012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5743
5744 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5745 gdbarch_ptr_bit for x32 core dump.
5746
f6537a2c
L
57472012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5748
5749 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5750 and features/i386/x32-avx-linux.c.
5751
85d4a676
SS
57522012-05-11 Stan Shebs <stan@codesourcery.com>
5753 Kwok Cheung Yeung <kcy@codesourcery.com>
5754
5755 * NEWS: Describe new info os commands.
5756 * common/linux-osdata.c (PID_T, TIME_T): Define.
5757 (MAX_PID_T_STRLEN): New.
5758 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5759 MAX_PID_T_STRLEN.
5760 (command_from_pid): Add comment. Change to use PID_T.
5761 (commandline_from_pid): Change to use PID_T.
5762 (user_from_pid): Add comment.
5763 (get_process_owner): Add comment. Change to use PID_T and
5764 MAX_PID_T_STRLEN.
5765 (get_number_of_cpu_cores): Add comment.
5766 (get_cores_used_by_process): Add comment. Change to use PID_T and
5767 MAX_PID_T_STRLEN.
5768 (linux_xfer_osdata_processes): Change to use PID_T and
5769 MAX_PID_T_STRLEN.
5770 (compare_processes): New function.
5771 (linux_xfer_osdata_processgroups): New function.
5772 (linux_xfer_osdata_threads): Change to use PID_T.
5773 (linux_xfer_osdata_fds): New function.
5774 (format_socket_state, print_sockets): New functions.
5775 (union socket_addr): New union.
5776 (linux_xfer_osdata_isockets): New function.
5777 (time_from_time_t, group_from_gid): New functions.
5778 (linux_xfer_osdata_shm): New function.
5779 (linux_xfer_osdata_sem): New function.
5780 (linux_xfer_osdata_msg): New function.
5781 (linux_xfer_osdata_modules): New function.
5782 (osdata_table): Add new entries.
5783 * common/buffer.c (buffer_xml_printf): Add support for long and
5784 long long format specifiers.
5785
f24afd6d
L
57862012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5787
5788 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5789 (tdesc_x32_avx_linux): Likewise.
5790
7349ff92
JK
57912012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5792
5793 Implement multi-component --with-auto-load-dir.
5794 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5795 entries.
5796 (--with-auto-load-safe-path): Update the default value description.
5797 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5798 New.
5799 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5800 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5801 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5802 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5803 "set auto-load scripts-directory".
5804 * config.in: Regenerate.
5805 * configure: Regenerate.
5806 * configure.ac (--with-auto-load-dir): New configure option.
5807 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5808
6dea1fbd
JK
58092012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5810
5811 Provide $ddir substitution for --with-auto-load-safe-path.
5812 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5813 entries.
5814 * auto-load.c: Include observer.h.
5815 (auto_load_safe_path_vec_update): Call substitute_path_component for
5816 each component. New variable ddir_subst.
5817 (auto_load_gdb_datadir_changed): New function.
5818 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5819 AUTO_LOAD_SAFE_PATH. New comment.
5820 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5821 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5822 * config.in: Regenerate.
5823 * configure: Regenerate.
5824 * configure.ac (--auto-load-safe-path): Rename
5825 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5826 GDB_DATADIR/auto-load.
5827 * defs.h (substitute_path_component): New declaration.
5828 * top.c: Include observer.h.
5829 (set_gdb_datadir): New function.
5830 (init_main): Install it for "set data-directory".
5831 * utils.c (substitute_path_component): New function.
5832
b09aca3a
JK
58332012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5834
5835 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5836 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5837 DEBUG_FILE_DIRECTORY. Handle multiple components of
5838 DEBUG_FILE_DIRECTORY.
5839
95554aad
TT
58402012-05-10 Tom Tromey <tromey@redhat.com>
5841
5842 * dwarf2read.c (recursively_write_psymbols): New function.
5843 (write_psymtabs_to_index): Use it.
5844
5845 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5846 field.
5847 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5848 (load_partial_comp_unit): Update.
5849 (queue_comp_unit): Add argument 'pretend_language'.
5850 (process_queue): Update.
5851 (psymtab_to_symtab_1): Skip dependencies that have a user.
5852 (load_partial_comp_unit_reader): Give meaning to the 'data'
5853 argument.
5854 (load_full_comp_unit): Add 'pretend_language' argument.
5855 (process_full_comp_unit): Add 'pretend_language' argument. Set
5856 language on CU.
5857 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5858 Update.
5859 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5860 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5861 Update.
5862 (prepare_one_comp_unit): Add 'pretend_language' argument.
5863
5864 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5865 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5866 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5867 (dw2_do_instantiate_symtab): Check whether symtab was read in
5868 before queueing.
5869 (dw2_instantiate_symtab): Add assertion. Call
5870 process_cu_includes.
5871 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5872 (partial_symtab_p): New typedef.
5873 (set_partial_user): New function.
5874 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5875 (scan_partial_symbols): Add imported CU to imported_symtabs.
5876 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5877 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5878 (get_symtab, recursively_compute_inclusions)
5879 (compute_symtab_includes, process_cu_includes)
5880 (process_imported_unit_die): New functions.
5881 (process_die) <DW_TAG_imported_unit>: New case.
5882 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5883
5884 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5885 comment.
5886 (struct partial_die_info) <locdesc>: Remove.
5887 <d>: New field.
5888 (process_psymtab_comp_unit): Add 'read_partial' argument.
5889 Update.
5890 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5891 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5892 (add_partial_symbol): Update.
5893 (process_die): Handle DW_TAG_partial_unit.
5894 (read_file_scope): Update comment.
5895 (load_partial_dies): Handle DW_TAG_imported_unit.
5896 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5897 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5898
e871fbb9
TT
58992012-05-10 Tom Tromey <tromey@redhat.com>
5900
5901 * cc-with-dwz.sh: New file.
5902
b5b04b5b
TT
59032012-05-10 Tom Tromey <tromey@redhat.com>
5904
5905 * symtab.h (struct symtab) <includes, user>: New fields.
5906 * block.h (struct block_iterator) <d, idx, which>: New fields.
5907 * block.c (initialize_block_iterator, find_iterator_symtab)
5908 (block_iterator_step, block_iter_name_step)
5909 (block_iter_match_step): New functions.
5910 (block_iterator_first, block_iterator_next)
5911 (block_iter_name_first, block_iter_name_next)
5912 (block_iter_match_first, block_iter_match_next): Rewrite.
5913 (get_block_symtab): New function.
5914
84a146c9
TT
59152012-05-10 Tom Tromey <tromey@redhat.com>
5916
5917 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5918 set_block_symtab.
5919 * jit.c (finalize_symtab): Use allocate_global_block,
5920 set_block_symtab.
5921 * buildsym.c (finish_block_internal): New function, from old
5922 finish_block.
5923 (finish_block): Rewrite.
5924 (end_symtab): Use finish_block_internal, set_block_symtab.
5925 * block.h (struct global_block): New.
5926 (allocate_global_block, set_block_symtab): Declare.
5927 * block.c (allocate_global_block, set_block_symtab): New
5928 functions.
5929
9439a077
TT
59302012-05-10 Tom Tromey <tromey@redhat.com>
5931
5932 * psymtab.c (partial_map_expand_apply): Add assertion.
5933 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5934 (psymtab_to_symtab): Find unshared psymtab.
5935 (dump_psymtab): Print including psymtabs.
5936 (recursively_search_psymtabs): New function.
5937 (expand_symtabs_matching_via_partial): Use it.
5938 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5939 fields.
5940 (enum psymtab_search_status): New.
5941
8157b174
TT
59422012-05-10 Tom Tromey <tromey@redhat.com>
5943
5944 * tracepoint.c (scope_info): Update.
5945 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5946 (find_pc_sect_symtab, search_symbols)
5947 (default_make_symbol_completion_list_break_on)
5948 (make_file_symbol_completion_list): Update.
5949 * symmisc.c (dump_symtab_1): Update.
5950 * stack.c (print_frame_args, iterate_over_block_locals)
5951 (print_frame_labels, iterate_over_block_arg_vars): Update.
5952 * python/py-block.c (block_object) <dict>: Remove.
5953 <block>: New field.
5954 <iter>: Change type.
5955 (blpy_iter): Update.
5956 (blpy_block_syms_iternext): Update.
5957 * psymtab.c (map_block): Use block iterators.
5958 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5959 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5960 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5961 * infrun.c (check_exception_resume): Update.
5962 * cp-support.c (make_symbol_overload_list_block): Update.
5963 * coffread.c (patch_opaque_types): Update.
5964 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5965 * block.h (struct block_iterator): New.
5966 (block_iterator_first, block_iterator_next, block_iter_name_first)
5967 (block_iter_name_next, block_iter_match_first)
5968 (block_iter_match_next): Declare.
5969 (ALL_BLOCK_SYMBOLS): Redefine.
5970 * block.c (block_iterator_first, block_iterator_next)
5971 (block_iter_name_first, block_iter_name_next)
5972 (block_iter_match_first, block_iter_match_next): New functions.
5973 * ada-lang.c (ada_add_block_symbols)
5974 (ada_make_symbol_completion_list): Use block iterator.
5975
a2ca7a52
TT
59762012-05-10 Tom Tromey <tromey@redhat.com>
5977
5978 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5979 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5980 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5981 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5982 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5983 Update.
5984
64ea88dc
JB
59852012-05-10 Joel Brobecker <brobecker@adacore.com>
5986
5987 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5988 print-file-var-lib2.c, print-file-var-main.c and
5989 print-file-var.exp (located in gdb/testsuite/gdb.base).
5990
99a547d6
JB
59912012-05-10 Joel Brobecker <brobecker@adacore.com>
5992
5993 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5994 try locating the symbol in the symbol's own objfile first, before
5995 extending the search to all objfiles.
5996 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5997 out of lookup_symbol_aux_symtabs.
5998 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5999 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6000 Do not search EXCLUDE_OBJFILE.
6001 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6002 (lookup_symbol_global): Search for matches in the block's objfile
6003 first, before searching all other objfiles.
6004
0ece64fd
TG
60052012-05-10 Tristan Gingold <gingold@adacore.com>
6006
6007 * printcmd.c (set_command): Add pre/post inc/dec.
6008
3d16a105
FCE
60092012-05-09 Frank Ch. Eigler <fche@redhat.com>
6010
6011 * gdb.1: Document -ex option.
6012
2efbc0f7
JB
60132012-05-09 Joel Brobecker <brobecker@adacore.com>
6014
6015 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6016 * inferior.h (AT_SYMBOL): Delete.
6017
2c76a0c7
JB
60182012-05-09 Joel Brobecker <brobecker@adacore.com>
6019
6020 * mips-tdep.c (mips_push_dummy_code): New function.
6021 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6022 ON_STACK and install mips_push_dummy_code as our gdbarch
6023 push_dummy_code routine.
6024
9401a810
PA
60252012-05-09 Pedro Alves <palves@redhat.com>
6026
6027 * target.c (set_maintenance_target_async_permitted): Rename to ...
6028 (set_target_async_command): ... this.
6029 (show_maintenance_target_async_permitted): Rename to ...
6030 (show_target_async_command): ... this.
6031 (initialize_targets): Adjust.
6032
3929b321
DE
60332012-05-08 Doug Evans <dje@google.com>
6034
6035 * go-exp.y (classify_name): Add missing assignment of fields of
6036 yylval.ssym.
6037
c41535fd
EZ
60382012-05-08 Eli Zaretskii <eliz@gnu.org>
6039
6040 Display the ">" prompt in interactive mode while reading canned
6041 commands, even when the current interpreter is MI.
6042
6043 * interps.c (interp_set_temp): New function.
6044
6045 * interps.h (interp_set_temp): Add prototype.
6046
6047 * cli/cli-script.c (restore_interp): New cleanup function.
6048 (read_command_lines): Temporarily override the current interpreter
6049 with CLI and arrange for restoring the original one.
6050
c0749c4d
JS
60512012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6052
6053 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6054
d7333987
SDJ
60552012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6056
6057 * probe.c (parse_probes): Move conditional to check for
6058 debuginfo files from here...
6059 * stap-probe.c (stap_get_probes): ... to here.
6060
649e6d92
MK
60612012-05-07 Mark Kettenis <kettenis@gnu.org>
6062 H.J. Lu <hongjiu.lu@intel.com>
6063
6064 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6065 `movl %esp, %ebp' for the X32 ABI.
6066
f39c6ffd
TT
60672012-05-07 Tom Tromey <tromey@redhat.com>
6068
6069 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6070 get_DW_TAG_name.
6071 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6072 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6073 (dwarf_stack_op_name): Remove.
6074 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6075 (decode_locdesc): Use get_DW_OP_name.
6076 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6077 (dwarf2_compile_expr_to_ax): Likewise.
6078 (disassemble_dwarf_expression): Likewise.
6079 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6080
1e1f6591
CLT
60812012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6082
6083 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6084 (sh_linux_sigtramp_cache): New function.
6085 (sh_linux_sigreturn_init): New function.
6086 (sh_linux_rt_sigreturn_init): New function.
6087 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6088 patterns.
6089 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6090 syscall codes.
6091 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6092 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6093 (sh_linux_init_abi): Add init calls to register new tramp_frame
6094 definitions under 32-bit SH, update comments.
6095
545c08b4
PA
60962012-05-07 Pedro Alves <palves@redhat.com>
6097
daac165e
PA
6098 PR gdb/10952
6099
545c08b4
PA
6100 * amd64-linux-tdep.c: Include glibc-tdep.h.
6101 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6102 gdbarch_skip_solib_resolver callback.
6103
af2c1515
JK
61042012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6105
6106 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6107 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6108 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6109 (add_auto_load_safe_path): Change the error message.
6110 (_initialize_auto_load): Change the "safe-path" help text.
6111 * configure: Regenerate
6112 * configure.ac (--without-auto-load-safe-path): Set
6113 WITH_AUTO_LOAD_SAFE_PATH to /.
6114
1067f998
SDJ
61152012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6116
6117 * stap-probe.h: Do not include unecessary `probe.h'.
6118
45dfa85a
AM
61192012-05-05 Alan Modra <amodra@gmail.com>
6120
6121 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6122 bfd_und_section_ptr.
6123 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6124 and bfd_com_section_ptr.
6125
cf093994
JB
61262012-05-04 Joel Brobecker <brobecker@adacore.com>
6127
762ebb75 6128 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6129
d40dc7a8
JB
61302012-05-04 Joel Brobecker <brobecker@adacore.com>
6131
6132 * windows-nat.h (segment_register_p_ftype): New typedef.
6133 (windows_set_segment_register_p): Add declaration.
6134 * windows-nat.c (segment_register_p): New static global.
6135 (windows_set_segment_register_p): New function.
6136 (do_windows_fetch_inferior_registers): Add special handling
6137 for segment registers.
6138 * amd64-windows-nat.c: #include "amd64-tdep.h".
6139 (amd64_windows_segment_register_p): New function.
6140 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6141 * i386-windows-nat.c: #include "i386-tdep.h".
6142 (i386_windows_segment_register_p): New function.
6143 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6144
52b3699b
TG
61452012-05-04 Tristan Gingold <gingold@adacore.com>
6146
6147 * printcmd.c (set_command): Emit a warning if the expression is not
6148 an assignment.
6149
94c74239
JB
61502012-05-03 Joel Brobecker <brobecker@adacore.com>
6151
6152 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6153 Make static.
6154
fcf57f19
SDJ
61552012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6156
6157 * stap-probe.c (stap_is_operator): Change declaration.
6158 (stap_get_opcode): Change return value.
6159 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6160 `stap_parse_argument_1'.
6161
27d2932e
PA
61622012-05-03 Pedro Alves <pedro@codesourcery.com>
6163
6164 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6165 debug log.
6166
a20ee7a4
SCR
61672012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6168
6169 Add two new methods global_block and static_block to gdb.Symtab
6170 objects.
6171 * NEWS (Python scripting): Add entry about the new methods.
6172 * python/py-symtab.c (stpy_global_block): New function which
6173 implements the gdb.Symtab.global_block() method.
6174 (stpy_static_block): New function which implements the
6175 gdb.Symtab.static_block() method.
6176 (symtab_object_methods): Add entries for the two new methods.
6177
943cb756
DE
61782012-05-03 Doug Evans <dje@google.com>
6179
6180 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6181 files.
6182
f4644a3f
YQ
61832012-05-03 Yao Qi <yao@codesourcery.com>
6184
6185 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6186 space.
6187 (i386_process_record): Ditto.
6188
ef61f180
JB
61892012-05-02 Joel Brobecker <brobecker@adacore.com>
6190
6191 * infcall.c (unwind_on_signal_p): Make static.
6192
02f1df11
JB
61932012-05-02 Joel Brobecker <brobecker@adacore.com>
6194
6195 * sol-thread.c (solaris_pid_to_str): Make static.
6196 (_initialize_sol_thread): Add prototype.
6197
39023530
JB
61982012-05-02 Joel Brobecker <brobecker@adacore.com>
6199
6200 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6201
c6b0c501
CF
62022012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6203
6204 * MAINTAINERS: Remove myself.
6205
1ef71717
JK
62062012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6207
6208 Fix --without-auto-load-safe-path for MS-Windows host platform.
6209 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6210
b31b86a7
EZ
62112012-05-02 Eli Zaretskii <eliz@gnu.org>
6212
6213 * gdb_curses.h: Undefine KEY_EVENT before including curses
6214 headers. Move "#undef MOUSE_MOVED" before any curses header
6215 inclusion.
6216
777532fc
SDJ
62172012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6218
6219 * features/i386/i386-mmx-linux.c: Regenerate.
6220 * features/rs6000/powerpc-32.c: Likewise.
6221 * features/rs6000/powerpc-32l.c: Likewise.
6222 * features/rs6000/powerpc-403.c: Likewise.
6223 * features/rs6000/powerpc-403gc.c: Likewise.
6224 * features/rs6000/powerpc-405.c: Likewise.
6225 * features/rs6000/powerpc-505.c: Likewise.
6226 * features/rs6000/powerpc-601.c: Likewise.
6227 * features/rs6000/powerpc-602.c: Likewise.
6228 * features/rs6000/powerpc-603.c: Likewise.
6229 * features/rs6000/powerpc-604.c: Likewise.
6230 * features/rs6000/powerpc-64.c: Likewise.
6231 * features/rs6000/powerpc-64l.c: Likewise.
6232 * features/rs6000/powerpc-750.c: Likewise.
6233 * features/rs6000/powerpc-860.c: Likewise.
6234 * features/rs6000/powerpc-e500.c: Likewise.
6235 * features/rs6000/powerpc-e500l.c: Likewise.
6236 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6237 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6238 * features/rs6000/rs6000.c: Likewise.
6239
d71871bc
SDJ
62402012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6241
6242 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6243 variable.
6244 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6245 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6246 (stap_parse_argument) <e>: Likewise.
6247 (handle_stap_probe) <byte_order>: Likewise.
6248
fd820528
DE
62492012-04-30 Doug Evans <dje@google.com>
6250
6251 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6252 init_and_read_dies_worker. All callers updated.
6253 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6254 replaced with init_cutu_and_read_dies.
6255 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6256 (find_partial_die): Remove FIXME. Don't free current CU.
6257
ec3f619d 62582012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6259
6260 * contrib: New directory.
6261 * contrib/test_pubnames_and_indexes.py: New file.
6262
fceca515
DE
62632012-04-30 Doug Evans <dje@google.com>
6264
6265 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6266 All callers updated.
6267 (init_cu_die_reader): Verify the section is non-empty.
6268 (dwarf_decode_line_header): Don't dereference section->asection
6269 until we know the section is present.
6270
311fe7e1
SDJ
62712012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6272
6273 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6274 probes.
6275
5977971a
YQ
62762012-04-29 Yao Qi <yao@codesourcery.com>
6277
6278 * gdb-code-style.el: New hook gdb-markup-hook
6279 and gdb-comment-hook.
6280
dee91e82
DE
62812012-04-28 Doug Evans <dje@google.com>
6282
3019eac3
DE
6283 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6284 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6285 objfile->obfd.
6286 * symfile.h (dwarf2_debug_sections): New member addr.
6287 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6288 (ctx_no_get_addr_index): New function.
6289 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6290 (ctx_no_get_addr_index): Declare.
6291 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6292 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6293 (dwarf_expr_ctx_funcs): Update.
6294 (needs_get_addr_index): New function.
6295 (needs_frame_ctx_funcs): Update.
6296 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6297 * dwarf2read.c: #include "gdbcore.h".
6298 (dwarf2_per_objfile): New members addr, dwo_files.
6299 (dwarf2_elf_names): Add entry for addr.
6300 (struct dwo_section_names): New type.
6301 (dwo_section_names): New static global.
6302 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6303 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6304 old debug_types_section member updated to use this.
6305 Rename member debug_types_section to info_or_types_section,
6306 all uses updated.
6307 (signatured_type): Rename member type_offset to type_offset_in_tu,
6308 all uses updated. New member type_offset_in_section.
6309 (struct dwo_sections): New type.
6310 (struct dwo_unit): New type.
6311 (struct dwo_file): New type.
6312 (die_reader_specs): New member dwo_file.
6313 (dwarf2_locate_sections): Watch for .debug_addr.
6314 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6315 (dwarf2_read_section): Get bfd of section from bfd's asection,
6316 instead of objfile.
6317 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6318 (create_signatured_type_table_from_index): Initialize
6319 sig_type->info_or_types_section.
6320 (dw2_get_file_names): Statement lists for type units with DWO files
6321 live in the DWO file.
6322 (create_debug_types_hash_table): New function.
6323 (create_all_type_units): Rewrite.
6324 (init_cu_die_reader): New arg dwo_file, all callers updated.
6325 (init_and_read_dies_worker): Get section from
6326 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6327 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6328 continue reading the CU/TU from there.
6329 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6330 updated. Get section from this_cu->info_or_types_section.
6331 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6332 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6333 DW_FORM_GNU_str_index.
6334 (hash_dwo_file, eq_dwo_file): New functions.
6335 (allocate_dwo_file_hash_table): New function.
6336 (hash_dwo_unit, eq_dwo_unit): New functions.
6337 (allocate_dwo_unit_table): New function.
6338 (dwarf2_locate_dwo_sections): New function.
6339 (struct create_dwo_info_table_data): New type.
6340 (create_debug_info_hash_table_reader): New function.
6341 (create_debug_info_hash_table): New function.
6342 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6343 (lookup_dwo_file): New function.
6344 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6345 (free_dwo_file, free_dwo_file_cleanup): New functions.
6346 (free_dwo_file_from_slot, free_dwo_files): New functions.
6347 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6348 (dwarf2_record_block_ranges): Ditto.
6349 (read_partial_die): Ditto.
6350 (process_enumeration_scope): Update to use type_offset_in_section.
6351 (read_full_die_1): New function.
6352 (read_full_die): Rewrite.
6353 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6354 DW_FORM_GNU_str_index.
6355 (read_addr_index_1, read_addr_index): New functions.
6356 (read_addr_index_from_leb128): New function.
6357 (struct dwarf2_read_addr_index_data): New type.
6358 (dwarf2_read_addr_index_reader): New function.
6359 (dwarf2_read_addr_index): New function.
6360 (read_str_index): New function.
6361 (leb128_size): New function.
6362 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6363 If processing a type unit from a DWO file, get the line section
6364 from the DWO file.
6365 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6366 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6367 DW_FORM_GNU_str_index.
6368 (lookup_die_type): Check whether section offset of type's die is
6369 known before looking it up. Remove assert. Condition can
6370 legimately happen for inter-cu type references.
6371 (dwarf_attr_name): Handle Fission attributes.
6372 (dwarf_form_name): Handle Fission forms.
6373 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6374 DW_FORM_GNU_str_index.
6375 (follow_die_sig): Update to use type_offset_in_section.
6376 (decode_locdesc): New case DW_OP_GNU_addr_index.
6377 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6378 DW_FORM_GNU_str_index.
6379 (cu_debug_loc_section): New function.
6380 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6381 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6382 Free DWO files if present.
6383 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6384
dee91e82
DE
6385 Refactor DIE reading.
6386 * dwarf2read.c (dwarf2_per_objfile): Replace members
6387 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6388 (die_reader_specs): New member "die_section". Temporarily make
6389 member "buffer" non-const, pending constifying all info_ptr uses.
6390 (die_reader_func_ftype): New typedef.
6391 (dw2_get_file_names_reader): New function.
6392 (dw2_get_file_names): Rewrite.
6393 (read_and_check_type_unit_head): Rename arg type_offset to
6394 type_offset_in_tu.
6395 (create_all_type_units): Improve debugging message.
6396 Improve dummy type unit check.
6397 (init_cu_die_reader): New arg "section". All callers updated.
6398 (init_and_read_dies_worker): New function.
6399 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6400 (init_cutu_and_read_dies_no_follow): New function.
6401 (init_cutu_and_read_dies_simple): New function.
6402 (process_psymtab_comp_unit_reader): New function.
6403 (process_psymtab_comp_unit): Delete args section,
6404 is_debug_types_section. Rewrite. All callers updated.
6405 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6406 All callers updated. Rewrite.
6407 (load_partial_comp_unit_reader): New function.
6408 (load_partial_comp_unit): Rewrite.
6409 (skip_children): New arg reader. Delete args buffer, cu.
6410 All callers updated.
6411 (skip_one_die): New arg reader. Delete args buffer, cu.
6412 All callers updated.
6413 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6414 All callers updated.
6415 (load_full_comp_unit_reader): New function.
6416 (load_full_comp_unit): Rewrite.
6417 (read_comp_unit): Delete.
6418 (read_die_and_children_1): Delete, contents moved ...
6419 (read_die_and_children): ... here.
6420 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6421 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6422 All callers updated.
6423 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6424 All callers updated.
6425 (find_partial_die): Rewrite load_all_dies support.
6426 (read_attribute_value): New arg reader. Delete args abfd, cu.
6427 All callers updated.
6428 (read_attribute): New arg reader. Delete args abfd, cu.
6429 All callers updated.
6430 (load_full_type_unit): Add assert.
6431 (read_signatured_type_reader): New function.
6432 (read_signatured_type): Rewrite.
6433 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6434 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6435 All callers updated. Set per_cu->cu = NULL after freeing it.
6436 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6437 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6438 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6439 (set_die_type): Update.
6440 (get_die_type_at_offset): Update.
6441 (read_file_scope): Call prepare_one_comp_unit.
6442 (read_type_unit_scope): Ditto.
6443 (prepare_one_comp_unit): Set producer if present.
6444
72d59e0d
SDJ
64452012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6446
6447 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6448 gettext function on `error'.
6449
0fefef59
DE
64502012-04-27 Doug Evans <dje@google.com>
6451
6452 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6453 is empty.
6454
28106bc2
SDJ
64552012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6456 Tom Tromey <tromey@redhat.com>
6457
6458 * breakpoint.c (struct breakpoint_objfile_data)
6459 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6460 <exception_probes>: New fields.
6461 (free_breakpoint_probes): New function.
6462 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6463 `_Unwind_DebugHook'.
6464 (create_exception_master_breakpoint): Likewise.
6465 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6466 * infrun.c: Including necessary header files for handling SystemTap
6467 probes.
6468 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6469 via SystemTap probes.
6470 (check_exception_resume): Remove `func' argument. Handle exception
6471 unwinding breakpoint set via a SystemTap probe.
6472 (insert_exception_resume_from_probe): New function.
6473
55aa24fb
SDJ
64742012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6475 Tom Tromey <tromey@redhat.com>
6476 Jan Kratochvil <jan.kratochvil@redhat.com>
6477
6478 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6479 (COMMON_OBS): Likewise.
6480 (HFILES_NO_SRCDIR): Add `probe'.
6481 * NEWS: Mention support for static and SystemTap probes.
6482 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6483 SystemTap probes' arguments parser.
6484 * arm-linux-tdep.c: Including headers needed to perform the parsing
6485 of SystemTap probes' arguments.
6486 (arm_stap_is_single_operand): New function.
6487 (arm_stap_parse_special_token): Likewise.
6488 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6489 probes' arguments parser.
6490 * ax-gdb.c (require_rvalue): Removing static declaration.
6491 (gen_expr): Likewise.
6492 * ax-gdb.h (gen_expr): Declaring function.
6493 (require_rvalue): Likewise.
6494 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6495 (bkpt_probe_breakpoint_ops): New variable.
6496 (momentary_breakpoint_from_master): Set the `probe' value.
6497 (add_location_to_breakpoint): Likewise.
6498 (break_command_1): Using proper breakpoint_ops according to the
6499 argument passed by the user in the command line.
6500 (bkpt_probe_insert_location): New function.
6501 (bkpt_probe_remove_location): Likewise.
6502 (bkpt_probe_create_sals_from_address): Likewise.
6503 (bkpt_probe_decode_linespec): Likewise.
6504 (tracepoint_probe_create_sals_from_address): Likewise.
6505 (tracepoint_probe_decode_linespec): Likewise.
6506 (tracepoint_probe_breakpoint_ops): New variable.
6507 (trace_command): Using proper breakpoint_ops according to the
6508 argument passed by the user in the command line.
6509 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6510 static probes on breakpoints and tracepoints.
6511 * breakpoint.h (struct bp_location) <probe>: New field.
6512 * cli-utils.c (skip_spaces_const): New function.
6513 (extract_arg): Likewise.
6514 * cli-utils.h (skip_spaces_const): Likewise.
6515 (extract_arg): Likewise.
6516 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6517 * configure.ac: Append `stap-probe.o' to be generated when ELF
6518 support is present.
6519 * configure: Regenerate.
6520 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6521 * elfread.c: Include `probe.h' and `arch-utils.h'.
6522 (probe_key): New variable.
6523 (elf_get_probes): New function.
6524 (elf_get_probe_argument_count): Likewise.
6525 (elf_evaluate_probe_argument): Likewise.
6526 (elf_compile_to_ax): Likewise.
6527 (elf_symfile_relocate_probe): Likewise.
6528 (stap_probe_key_free): Likewise.
6529 (elf_probe_fns): New variable.
6530 (elf_sym_fns): Add `sym_probe_fns' value.
6531 (elf_sym_fns_lazy_psyms): Likewise.
6532 (elf_sym_fns_gdb_index): Likewise.
6533 (_initialize_elfread): Initialize objfile cache for static
6534 probes.
6535 * gdb_vecs.h (struct probe): New forward declaration.
6536 (probe_p): New VEC declaration.
6537 * gdbarch.c: Regenerate.
6538 * gdbarch.h: Regenerate.
6539 * gdbarch.sh (stap_integer_prefix): New variable.
6540 (stap_integer_suffix): Likewise.
6541 (stap_register_prefix): Likewise.
6542 (stap_register_suffix): Likewise.
6543 (stap_register_indirection_prefix): Likewise.
6544 (stap_register_indirection_suffix): Likewise.
6545 (stap_gdb_register_prefix): Likewise.
6546 (stap_gdb_register_suffix): Likewise.
6547 (stap_is_single_operand): New function.
6548 (stap_parse_special_token): Likewise.
6549 (struct stap_parse_info): Forward declaration.
6550 * i386-tdep.c: Including headers needed to perform the parsing
6551 of SystemTap probes' arguments.
6552 (i386_stap_is_single_operand): New function.
6553 (i386_stap_parse_special_token): Likewise.
6554 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6555 probes' arguments parser.
6556 * i386-tdep.h (i386_stap_is_single_operand): New function.
6557 (i386_stap_parse_special_token): Likewise.
6558 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6559 * mipsread.c (ecoff_sym_fns): Likewise.
6560 * objfiles.c (objfile_relocate1): Support relocation for static
6561 probes.
6562 * parse.c (prefixify_expression): Remove static declaration.
6563 (initialize_expout): Likewise.
6564 (reallocate_expout): Likewise.
6565 * parser-defs.h (initialize_expout): Declare function.
6566 (reallocate_expout): Likewise.
6567 (prefixify_expression): Likewise.
6568 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6569 of SystemTap probes' arguments.
6570 (ppc_stap_is_single_operand): New function.
6571 (ppc_stap_parse_special_token): Likewise.
6572 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6573 probes' arguments parser.
6574 * probe.c: New file, for generic statically defined probe support.
6575 * probe.h: Likewise.
6576 * s390-tdep.c: Including headers needed to perform the parsing of
6577 SystemTap probes' arguments.
6578 (s390_stap_is_single_operand): New function.
6579 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6580 probes' arguments parser.
6581 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6582 * stap-probe.c: New file, for SystemTap probe support.
6583 * stap-probe.h: Likewise.
6584 * symfile.h: Include `gdb_vecs.h'.
6585 (struct sym_probe_fns): New struct.
6586 (struct sym_fns) <sym_probe_fns>: New field.
6587 * symtab.c (init_sal): Initialize `probe' field.
6588 * symtab.h (struct probe): Forward declaration.
6589 (struct symtab_and_line) <probe>: New field.
6590 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6591 locations.
6592 (stop_tracing): Likewise.
6593 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6594
22d2b532
SDJ
65952012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6596 Tom Tromey <tromey@redhat.com>
6597
6598 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6599 and to compile agent expressions.
6600 * infrun.c (siginfo_make_value): New argument `ignore'.
6601 (siginfo_funcs): New struct.
6602 (_initialize_infrun): New argument when calling
6603 `create_internalvar_type_lazy'.
6604 * thread.c (thread_id_make_value): New argument `ignore'.
6605 (thread_funcs): New struct.
6606 (_initialize_thread): New argument when calling
6607 `create_internalvar_type_lazy'.
6608 * tracepoint.c (sdata_make_value): New argument `ignore'.
6609 (sdata_funcs): New struct.
6610 (_initialize_tracepoint): New argument when calling
6611 `create_internalvar_type_lazy'.
6612 * value.c (make_value): New struct.
6613 (create_internalvar_type_lazy): New argument `data'.
6614 (compile_internalvar_to_ax): New function.
6615 (value_of_internalvar): Properly handling `make_value' case.
6616 (clear_internalvar): Likewise.
6617 (show_convenience): Adding `TRY_CATCH' block.
6618 * value.h (internalvar_make_value): Delete, replace by...
6619 (struct internalvar_funcs): ... this.
6620 (create_internalvar_type_lazy) <fun>: Delete argument.
6621 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6622 (compile_internalvar_to_ax): New function.
6623 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6624 (tlb_funcs): New struct.
6625 (_initialize_windows_tdep): New argument when calling
6626 `create_internalvar_type_lazy'.
6627
91da1414
MW
66282012-04-27 Mark Wielaard <mjw@redhat.com>
6629
6630 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6631 see whether it is an address or a constant offset from DW_AT_low_pc.
6632 (dwarf2_record_block_ranges): Likewise.
6633 (read_partial_die): Likewise.
6634
4ab9d8ec
MW
66352012-04-26 Mark Wielaard <mjw@redhat.com>
6636
6637 * MAINTAINERS (Write After Approval): Add myself to the list.
6638
a0911fd0
MR
66392012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6640
6641 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6642 (proc_prettyprint_signal): Likewise.
6643 (proc_prettyprint_faultset): Likewise.
6644 (proc_prettyprint_fault): Likewise.
6645 (proc_prettyprint_actionset): Likewise.
6646 (proc_prettyprint_flags): Move to new proc-flags.c section.
6647 (proc_prettyfprint_flags): New prototype.
6648 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6649 (proc_syscall, proc_cursig): Likewise.
6650 (proc_set_kill_on_last_close): Likewise.
6651 (proc_unset_kill_on_last_close): Likewise.
6652 (proc_set_watchpoint): Make static.
6653 (proc_delete_dead_threads): Likewise.
6654 (procfs_set_watchpoint): Likewise.
6655 (_initialize_procfs): Add prototype.
6656 * proc-events.c: Include proc-utils.h.
6657 (init_syscall_table): Make static.
6658 * proc-api.c (_initialize_proc_api): Add prototype.
6659 * proc-flags.c: Include proc-utils.h.
6660
9009e1ae
MR
66612012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6662
6663 * configure.ac: Add AC_ARG_PROGRAM.
6664 * configure: Regenerate.
6665
4fae6e18
JK
66662012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6667
6668 Fix DW_AT_lower_bound defaults for DWARF-4+.
6669 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6670 high. New variable low_default_is_valid. Implement DWARF-4+
6671 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6672 no default by the DWARF standard.
6673
14132e89 66742012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6675 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6676
6677 * infrun.c (handle_inferior_event): Move the check for return
6678 trampolines ahead of the check for function trampolines.
6679 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6680 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6681 (mips_str_mips16_ret_stub): Likewise.
6682 (mips_str_call_fp_stub): Likewise.
6683 (mips_str_call_stub): Likewise.
6684 (mips_str_fn_stub): Likewise.
6685 (mips_str_pic): Likewise.
6686 (mips_in_frame_stub): New function.
6687 (mips_unwind_pc): Return the return address rather than the PC
6688 if the PC of an intermediate frame is inside a call thunk.
6689 (mips_is_stub_suffix): New function.
6690 (mips_is_stub_mode): Likewise.
6691 (mips_get_mips16_fn_stub_pc): Likewise.
6692 (mips_skip_mips16_trampoline_code): Update to handle all the
6693 currently generated stub types. Don't recurse into __fn_stub
6694 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6695 Use cooked register accesses.
6696 (mips_in_return_stub): Reintroduce function.
6697 (mips_skip_trampoline_code): Traverse trampolines recursively.
6698 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6699
518f0db5 67002012-04-26 Joel Brobecker <brobecker@adacore.com>
6701
6702 GDB 7.4.1 released.
6703
3184d3f9
JL
67042012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6705
6706 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6707 * features/arm-with-m-vfp-d16.xml: New file. Describes
6708 Cortex-M with VFPv4-sp-d16 FPU register layout.
6709 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6710 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6711 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6712 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6713 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6714
b6201d44
DE
67152012-04-25 Doug Evans <dje@google.com>
6716
6717 * cli/cli-decode.c (print_doc_line): Use stream instead of
6718 current_uiout.
6719
4e2f8df6
SDJ
67202012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6721
6722 * features/arm-with-iwmmxt.c: Regenerate.
6723 * features/arm-with-m-fpa-layout.c: Likewise.
6724 * features/arm-with-m.c: Likewise.
6725 * features/arm-with-neon.c: Likewise.
6726 * features/arm-with-vfpv2.c: Likewise.
6727 * features/arm-with-vfpv3.c: Likewise.
6728 * features/mips-dsp-linux.c: Likewise.
6729 * features/mips-linux.c: Likewise.
6730 * features/mips64-dsp-linux.c: Likewise.
6731 * features/mips64-linux.c: Likewise.
6732 * features/s390-linux32.c: Likewise.
6733 * features/s390-linux32v1.c: Likewise.
6734 * features/s390-linux32v2.c: Likewise.
6735 * features/s390-linux64.c: Likewise.
6736 * features/s390-linux64v1.c: Likewise.
6737 * features/s390-linux64v2.c: Likewise.
6738 * features/s390x-linux64.c: Likewise.
6739 * features/s390x-linux64v1.c: Likewise.
6740 * features/s390x-linux64v2.c: Likewise.
6741 * features/tic6x-c62x-linux.c: Likewise.
6742 * features/tic6x-c62x.c: Likewise.
6743 * features/tic6x-c64x-linux.c: Likewise.
6744 * features/tic6x-c64x.c: Likewise.
6745 * features/tic6x-c64xp-linux.c: Likewise.
6746 * features/tic6x-c64xp.c: Likewise.
6747 * target-descriptions.c: Only generate `field_type' and `type'
6748 variables when needed.
6749
2def3e66
JB
67502012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6751
6752 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6753
a766d390
DE
67542012-04-25 Doug Evans <dje@google.com>
6755
6756 Initial pass at Go language support.
6757 * NEWS: Mention Go.
6758 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6759 go-valprint.c.
6760 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6761 (YYFILES): Add go-exp.c.
6762 (YYOBJ): Add go-exp.o.
6763 (local-maintainer-clean): Delete go-exp.c.
6764 * defs.h (enum language): Add language_go.
6765 * dwarf2read.c: #include "go-lang.h".
6766 (fixup_go_packaging): New function.
6767 (process_full_comp_unit): Call it when processing Go CUs.
6768 (dwarf2_physname): Add Go support.
6769 (read_file_scope): Handle missing language spec for GNU Go.
6770 (set_cu_language): Handle DW_LANG_Go.
6771 * go-exp.y: New file.
6772 * go-lang.h: New file.
6773 * go-lang.c: New file.
6774 * go-typeprint.c: New file.
6775 * go-valprint.c: New file.
6776 * symtab.c: #include "go-lang.h".
6777 (symbol_set_language): Handle language_go.
6778 (symbol_find_demangled_name, symbol_set_names): Ditto.
6779 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6780
4e2af517
JM
67812012-04-24 Jim Meyering <meyering@redhat.com>
6782
6783 avoid a few strncpy-induced buffer overruns
6784 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6785 fname and psargs before trying to concatenate.
6786 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6787 "name" before applying strchr.
6788
b77b7f52
SCR
67892012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6790
6791 * CONTRIBUTE: Use unified diff instead of context diff when
6792 generating patches.
6793
6321c22a
MR
67942012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6795
6796 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6797 code. Handle JR.HB correctly.
6798
742c84f6
MR
67992012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6800
6801 * mips-tdep.c
6802 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6803 with the other MIPS16 helpers.
6804
7fc7e0c3
SDJ
68052012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6806
6807 * observer.sh: Conditionally declare `args', thus cleaning up
6808 unused instances of this variable.
6809
20388dd6
YQ
68102012-04-24 Yao Qi <yao@codesourcery.com>
6811
6812 Revert this patch to allow breakpoint always-inserted
6813 in record target.
6814 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6815 * breakpoint.c: Include record.h.
6816 (breakpoints_always_inserted_mode): Return false when the record
6817 target is in use.
20388dd6
YQ
6818
6819 * breakpoint.c (iterate_over_bp_locations): New.
6820 * breakpoint.h: Declare.
6821 New typedef walk_bp_location_callback.
6822 * record.c (record_open): Call record_init_record_breakpoints.
6823 (record_sync_record_breakpoints): New.
6824 (record_init_record_breakpoints): New.
6825 * NEWS: Mention supporting breakpoint always-inserted mode in
6826 record target.
6827
4734f50e
MK
68282012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6829
6830 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6831 any thread.
6832
c326b90e
YQ
68332012-04-24 Yao Qi <yao@codesourcery.com>
6834
6835 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6836 (is_catchpoint): ... it.
6837 (print_one_breakpoint_location): Caller update.
6838 * breakpoint.h: Update declaration.
6839
d8fb5a1e
DM
68402012-04-23 David S. Miller <davem@davemloft.net>
6841
6842 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6843
34431a2a
TT
68442012-04-23 Tom Tromey <tromey@redhat.com>
6845
6846 * buildsym.c (add_free_pendings): Remove.
6847 * buildsym.h (add_free_pendings): Remove.
6848
4568ecf9
DE
68492012-04-23 Doug Evans <dje@google.com>
6850
6851 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6852 attr.u.unsnd instead of attr.u.addr.
6853 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6854 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6855 DW_FORM_ref_udata.
6856 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6857 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6858 DW_FORM_ref_udata.
6859 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6860
dca9aa3a
MR
68612012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6862
6863 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6864 (mips_o32_return_value): Likewise.
6865 (mips_o64_return_value): Likewise.
6866
c8ea1972
PH
68672012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6868
6869 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6870 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6871 their treatment in eval.c.
c8ea1972 6872
8d1b3521
DM
68732012-04-21 David S. Miller <davem@davemloft.net>
6874
6875 * sparc-tdep.c (X_DISP10): Define.
6876 (sparc_analyze_control_transfer): Handle compare-and-branch.
6877
03145bf4
JL
68782012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6879
6880 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6881 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6882
004159a2 68832012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6884 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6885
6886 * mips-tdep.c (mips_float_register_p): New function.
6887 (mips_convert_register_float_case_p): Use mips_float_register_p.
6888 (mips_register_type): Likewise.
6889 (mips_print_register): Likewise.
6890 (print_gp_register_row): Likewise.
6891 (mips_print_registers_info): Likewise.
6892
7f0e6aae
MR
68932012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6894
6895 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6896 of mips16 symbols.
6897
bc17beea
AP
68982012-04-20 Andrew Pinski <apinski@cavium.com>
6899
6900 * MAINTAINERS (Write After Approval): Add myself to the list.
6901
1730a5a5
SDJ
69022012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6903
6904 * MAINTAINERS: Update my e-mail address.
6905
38ea300a
PA
69062012-04-20 Pedro Alves <palves@redhat.com>
6907
6908 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6909 $srcdir.
6910 * configure: Regenerate.
6911
111dfaae
SDJ
69122012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6913
6914 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6915 declaration.
6916 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6917
4fb2c64a
JK
69182012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6919
6920 Fix compilation compatibility with python-2.4
6921 * python/py-type.c (convert_field): Cast ADDRSTRING for
6922 PyObject_SetAttrString as non-const. New comment.
6923
6328eb38
TT
69242012-04-19 Tom Tromey <tromey@redhat.com>
6925
6926 * top.c (quit_target): Use all_cleanups.
6927 * main.c (captured_command_loop): Use all_cleanups.
6928 * exceptions.c (throw_exception): Use all_cleanups.
6929
c971b7fa
PA
69302012-04-19 Pedro Alves <palves@redhat.com>
6931
6932 * Makefile.in (GNULIB_BUILDDIR): New.
6933 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6934 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6935 (CLEANDIRS). Remove gnulib/import.
6936 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6937 (all-lib): Ditto.
6938 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6939 (gnulib/import/Makefile): Replace gnulib/import with
6940 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6941 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6942 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6943 acx_configure_dir.m4.
6944 * acinclude.m4: Include acx_configure_dir.m4.
6945 * acx_configure_dir.m4: New file.
6946 * aclocal.m4: Regenerate.
a09130f9
PA
6947 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6948 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6949 (GNULIB): New variable.
6950 (GNULIB_STDINT_H): Adjust.
6951 (AC_OUTPUT): Don't output gnulib/Makefile.
6952 * gdb/defs.h: Include build-gnulib/config.h.
6953 * aclocal.m4: Regenerate.
6954 * config.in: Regenerate.
6955 * configure: Regenerate.
6956
6957 * gnulib/Makefile.in: New file.
6958 * gnulib/configure.ac: New file.
6959 * gnulib/aclocal.m4: New file.
6960 * gnulib/config.in: New file.
6961 * gnulib/configure: New file.
c971b7fa
PA
6962 * gnulib/: Re-run gnulib-tool to adjust.
6963
b10faa68
DE
69642012-04-19 Doug Evans <dje@google.com>
6965
6966 * cleanups.h (struct cleanup): Move to cleanups.c.
6967 (make_cleanup_dtor_ftype): New typedef.
6968 (make_cleanup_dtor): Use it.
6969 (ALL_CLEANUPS): Replace with ...
6970 (all_cleanups): ... this. Declare. All uses updated.
6971 * cleanups.c: #include "gdb_assert.h".
6972 (sentinel_cleanup): New static global.
6973 (SENTINEL_CLEANUP): Define.
6974 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6975 (make_my_cleanup2): Assert result is non-NULL.
6976 (all_cleanups): New function.
6977 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6978 of NULL.
6979
d8c267cc
PA
69802012-04-19 Pedro Alves <palves@redhat.com>
6981
6982 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6983 Adjust paths to gnulib imported files.
6984
809277f8
PA
69852012-04-19 Pedro Alves <palves@redhat.com>
6986
6987 * gnulib/: Move whole directory ...
6988 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6989 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6990 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6991 (aclocal_m4_deps): Adjust.
6992 * aclocal.m4: Regenerate.
6993 * configure: Regenerate.
6994 * configure.ac: Adjust AC_OUTPUT output.
6995
aad9eab9
YQ
69962012-04-19 Yao Qi <yao@codesourcery.com>
6997
6998 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6999 (vec.o): New rule.
7000 * vec.c: Move it ...
7001 * common/vec.c: ... here.
7002 * vec.h: Move it ...
7003 * common/vec.h: ... here.
7004
48fe4669
YQ
70052012-04-19 Yao Qi <yao@codesourcery.com>
7006
7007 * gdb-code-style.el: New.
7008
770d76d7
PA
70092012-04-18 Pedro Alves <palves@redhat.com>
7010
7011 Update gnulib from latest git.
7012 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7013
7014 * gnulib/Makefile.am: Update.
7015 * gnulib/dummy.c: Update.
7016 * gnulib/extra/arg-nonnull.h: Update.
7017 * gnulib/extra/c++defs.h: Update.
7018 * gnulib/extra/update-copyright: Update.
7019 * gnulib/extra/warn-on-use.h: Update.
7020 * gnulib/inttypes.in.h: Update.
7021 * gnulib/m4/00gnulib.m4: Update.
7022 * gnulib/m4/extensions.m4: Update.
7023 * gnulib/m4/gnulib-cache.m4: Update.
7024 * gnulib/m4/gnulib-common.m4: Update.
7025 * gnulib/m4/gnulib-comp.m4: Update.
7026 * gnulib/m4/gnulib-tool.m4: Update.
7027 * gnulib/m4/include_next.m4: Update.
7028 * gnulib/m4/inttypes-pri.m4: Update.
7029 * gnulib/m4/inttypes.m4: Update.
7030 * gnulib/m4/longlong.m4: Update.
7031 * gnulib/m4/memchr.m4: Update.
7032 * gnulib/m4/memmem.m4: Update.
7033 * gnulib/m4/mmap-anon.m4: Update.
7034 * gnulib/m4/multiarch.m4: Update.
7035 * gnulib/m4/onceonly.m4: Update.
7036 * gnulib/m4/stddef_h.m4: Update.
7037 * gnulib/m4/stdint.m4: Update.
7038 * gnulib/m4/string_h.m4: Update.
7039 * gnulib/m4/warn-on-use.m4: Update.
7040 * gnulib/m4/wchar_h.m4: Update.
7041 * gnulib/m4/wchar_t.m4: Update.
7042 * gnulib/m4/wint_t.m4: Update.
7043 * gnulib/memchr.c: Update.
7044 * gnulib/memmem.c: Update.
7045 * gnulib/stddef.in.h: Update.
7046 * gnulib/stdint.in.h: Update.
7047 * gnulib/str-two-way.h: Update.
7048 * gnulib/string.in.h: Update.
7049 * gnulib/wchar.in.h: Update.
7050
7051 * gnulib/extra/arg-nonnull.h: Delete.
7052 * gnulib/extra/c++defs.h: Delete.
7053 * gnulib/extra/warn-on-use.h: Delete.
7054 * gnulib/m4/wchar_h.m4: Delete.
7055 * gnulib/m4/wint_t.m4: Delete.
7056 * gnulib/wchar.in.h: Delete.
7057
7058 * gnulib/extra/snippets/arg-nonnull.h: New.
7059 * gnulib/extra/snippets/c++defs.h: New.
7060 * gnulib/extra/snippets/warn-on-use.h: New.
7061
7062 * aclocal.m4: Regenerate.
7063 * config.in: Regenerate.
7064 * configure: Regenerate.
7065 * gnulib/Makefile.in: Regenerate.
7066
174e088e
PA
70672012-04-18 Pedro Alves <palves@redhat.com>
7068
7069 Reimport the update-copyright module from gnulib
7070 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7071
7072 * configure: Regenerate.
7073 * gnulib/Makefile.am: Update.
7074 * gnulib/Makefile.in: Regenerate.
7075 * gnulib/extra/update-copyright: Update.
7076 * gnulib/m4/gnulib-cache.m4: Update.
7077 * gnulib/m4/gnulib-comp.m4: Update.
7078
7f533142
JB
70792012-04-18 Tristan Gingold <gingold@adacore.com>
7080
7081 * configure.ac (aix): Put -lpthread into libs.
7082 * configure: Regenerate.
7083
001822aa
TT
70842012-04-18 Tom Tromey <tromey@redhat.com>
7085
7086 * linespec.c (convert_linespec_to_sals): Don't use
7087 SYMBOL_OBJ_SECTION.
7088 (compare_msymbols): Arguments are minsym_and_objfile, not
7089 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7090
db026a31
PA
70912012-04-18 Pedro Alves <palves@redhat.com>
7092
7093 Revert gnulib/ part of:
7094 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7095 Copyright year update in most files (performed by copyright.sh).
7096
12df843f
JK
70972012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7098
7099 Fix 64-bit constants on 32-bit hosts.
7100 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7101 from unsigned long to ULONGEST.
7102 (read_signed_leb128): Change declaration return type from long to
7103 LONGEST.
7104 (dwarf2_const_value_attr): Change declaration parameter value from long
7105 to LONGEST.
7106 (dwarf2_compute_name): Change variable value from long to LONGEST.
7107 (read_unsigned_leb128): Change return type, variable result and some
7108 casts from unsigned long to ULONGEST.
7109 (read_signed_leb128): Change return type, variable result and some
7110 casts from long to LONGEST.
7111 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7112 value from long to LONGEST.
7113 (dwarf2_const_value): Change variable value from long to LONGEST.
7114 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7115 plongest and hex_string.
7116 * symtab.h (struct general_symbol_info): Change ivalue from long to
7117 LONGEST, remove the comment.
7118 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7119 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7120
14e75d8e
JK
71212012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7122
7123 PR symtab/7259:
7124 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7125 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7126 (ada_discrete_type_low_bound): Fix function comment. Use
7127 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7128 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7129 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7130 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7131 Use TYPE_FIELD_ENUMVAL.
7132 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7133 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7134 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7135 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7136 TYPE_CODE_ENUM.
7137 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7138 * dwarf2read.c (process_enumeration_scope): Likewise.
7139 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7140 field.bitpos.
7141 (class StructMainTypePrettyPrinter): Support also
7142 FIELD_LOC_KIND_ENUMVAL.
7143 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7144 TYPE_CODE_ENUM.
7145 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7146 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7147 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7148 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7149 field enumval.
7150 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7151 accommodate enumval.
7152 (struct call_site): Adjust loc_kind to accommodate enumval.
7153 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7154 (TYPE_FIELD_ENUMVAL): New macros.
7155 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7156 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7157 TYPE_CODE_ENUM.
7158 * p-typeprint.c (pascal_type_print_base): Likewise.
7159 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7160 enumval.
7161 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7162 * python/py-type.c (convert_field): New variable addrstring. Use
7163 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7164 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7165 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7166 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7167 TYPE_CODE_ENUM.
7168 * valprint.c (generic_val_print): Likewise.
7169
380bca97
DE
71702012-04-17 Doug Evans <dje@google.com>
7171
dcc07052
DE
7172 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7173
380bca97
DE
7174 * dwarf2read.c: Whitespace fixes.
7175 (lookup_signatured_type): Tweak comment.
7176 (get_die_type_at_offset): Fix comment.
7177
ec92004f
JB
71782012-04-17 Joel Brobecker <brobecker@adacore.com>
7179
7180 * xcoffread.c (xcoff_secnum_to_sections): New function.
7181 (secnum_to_section, secnum_to_bfd_section): Reimplement
7182 using xcoff_secnum_to_sections. Rename "secnum" parameter
7183 into "n_scnum".
7184 (RECORD_MINIMAL_SYMBOL): Delete.
7185 (record_minimal_symbol): New function.
7186 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7187 by call to record_minimal_symbol and set misc_func_recorded
7188 to 1. Set last_csect_sec to the XCOFF section index instead
7189 of GDB's section_offset index. Update calls to
7190 prim_record_minimal_symbol_and_info to pass the BFD section
7191 as well.
7192
40301fb7
JB
71932012-04-17 Joel Brobecker <brobecker@adacore.com>
7194
7195 * xcoffread.c (read_xcoff_symtab): Delete variables
7196 last_csect_val and last_csect_sec and associated code.
7197
e0088cfd
DE
71982012-04-17 Doug Evans <dje@google.com>
7199
58d5e2c3
DE
7200 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7201 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7202 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7203 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7204
c27f5738
DE
7205 * cleanups.h: New file.
7206 * cleanups.c: New file.
7207 * Makefile.in (SFILES): Add cleanups.c.
7208 (HFILES_NO_SRCDIR): Add cleanups.h.
7209 (COMMON_OBS): Add cleanups.o.
7210 * defs.h (struct cleanup): Moved to cleanups.h.
7211 (do_cleanups,do_final_cleanups): Ditto.
7212 (discard_cleanups,discard_final_cleanups): Ditto
7213 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7214 (save_cleanups,save_final_cleanups): Ditto.
7215 (restore_cleanups,restore_final_cleanups): Ditto.
7216 (null_cleanup): Ditto.
7217 (make_my_cleanup,make_my_cleanup2): Ditto.
7218 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7219 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7220 (do_cleanups,do_final_cleanups): Ditto.
7221 (discard_cleanups,discard_final_cleanups): Ditto
7222 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7223 (save_cleanups,save_final_cleanups): Ditto.
7224 (restore_cleanups,restore_final_cleanups): Ditto.
7225 (null_cleanup): Ditto.
7226 (make_my_cleanup,make_my_cleanup2): Ditto.
7227 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7228
e0088cfd
DE
7229 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7230 make_my_cleanup.
7231 (make_cleanup_dyn_string_delete): Ditto.
7232 (make_cleanup_ui_file_delete): Ditto.
7233 (make_cleanup_ui_out_redirect_pop): Ditto.
7234 (make_cleanup_free_section_addr_info): Ditto.
7235 (make_cleanup_restore_integer): Ditto.
7236 (make_cleanup_unpush_target): Ditto.
7237 (make_cleanup_value_free_to_mark): Ditto.
7238 (make_cleanup_value_free): Ditto.
7239 (make_cleanup_free_so): Ditto.
7240
4dc84fd1
JK
72412012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7242
7243 New option "set debug auto-load".
7244 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7245 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7246 (auto_load_safe_path_vec_update)
7247 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7248 if DEBUG_AUTO_LOAD.
7249 (file_is_auto_load_safe): New parameters debug_fmt and ....
7250 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7251 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7252 caller by explanatory string.
7253 (_initialize_auto_load): Register "set debug auto-load".
7254 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7255 and ....
7256 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7257 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7258 by explanatory string.
7259 * main.c (captured_main): Likewise.
7260 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7261 (source_section_scripts): Likewise.
7262
bccbefd2
JK
72632012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7264
7265 New option "set auto-load safe-path".
7266 * NEWS: New commands "set auto-load safe-path"
7267 and "show auto-load safe-path".
7268 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7269 (auto_load_safe_path, auto_load_safe_path_vec)
7270 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7271 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7272 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7273 (source_gdb_script_for_objfile): New variable is_safe. Call
7274 file_is_auto_load_safe. Return if it is not.
7275 (struct loaded_script): New field loaded.
7276 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7277 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7278 output "Missing" to "No".
7279 (_initialize_auto_load): New variable cmd. Initialize
7280 auto_load_safe_path. Register "set auto-load safe-path",
7281 "show auto-load safe-path" and "add-auto-load-safe-path".
7282 * auto-load.h (maybe_add_script): Add parameter loaded.
7283 (file_is_auto_load_safe): New declaration.
7284 * config.in: Regenerate.
7285 * configure: Regenerate.
7286 * configure.ac: New parameters --with-auto-load-safe-path
7287 and --without-auto-load-safe-path.
7288 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7289 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7290 * main.c (captured_main): Check file_is_auto_load_safe for
7291 LOCAL_GDBINIT.
7292 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7293 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7294 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7295 not.
7296
bf88dd68
JK
72972012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7298
7299 auto-load: Implementation.
7300 * NEWS: New descriptions for "info auto-load",
7301 "info auto-load gdb-scripts", "info auto-load python-scripts",
7302 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7303 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7304 and "show auto-load-scripts". New description for "set auto-load",
7305 "show auto-load", "set auto-load gdb-scripts",
7306 "show auto-load gdb-scripts", "set auto-load python-scripts",
7307 "show auto-load python-scripts", "set auto-load local-gdbinit",
7308 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7309 "show auto-load libthread-db".
7310 * auto-load.c: Remove include python/python-internal.h. Add includes
7311 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7312 cli/cli-setshow.h.
7313 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7314 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7315 (gdbpy_global_auto_load): Rename to ...
7316 (global_auto_load): ... here.
7317 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7318 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7319 (script_language_gdb, source_gdb_script_for_objfile): New.
7320 (struct loaded_script): New field language.
7321 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7322 LANGUAGE.
7323 (maybe_add_script): Add parameter language. Drop redundant
7324 entry.full_path initialization. Initialize entry.language and
7325 (*slot)->language.
7326 (auto_load_objfile_script): Change parameter suffix to language.
7327 Remove the call of maybe_add_script.
7328 Call language->source_script_for_objfile.
7329 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7330 New.
7331 (collect_matching_scripts): Adjust it for
7332 struct collect_matching_scripts_data.
7333 (auto_load_info_scripts_pattern_nl): New variable.
7334 (info_auto_load_scripts): Rename to ...
7335 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7336 for struct collect_matching_scripts_data.
7337 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7338 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7339 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7340 (auto_load_info_cmdlist_get): New.
7341 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7342 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7343 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7344 "info auto-load local-gdbinit".
7345 * auto-load.h (struct script_language): New.
7346 (gdbpy_global_auto_load): Rename to ...
7347 (global_auto_load): ... here.
7348 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7349 (auto_load_local_gdbinit_loaded): New declarations.
7350 (maybe_add_script): New parameter language.
7351 (auto_load_objfile_script): Change parameter suffix to language.
7352 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7353 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7354 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7355 declarations.
7356 * linux-thread-db.c: Include auto-load.h and ctype.h.
7357 (auto_load_thread_db, show_auto_load_thread_db): New.
7358 (struct thread_db_info): New field filename.
7359 (delete_thread_db_info): Call xfree for FILENAME.
7360 (try_thread_db_load): Initialize FILENAME.
7361 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7362 if !AUTO_LOAD_THREAD_DB.
7363 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7364 (_initialize_thread_db): Install auto_load_thread_db
7365 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7366 as "info auto-load libthread-db".
7367 * main.c (captured_main): Rename gdbpy_global_auto_load to
7368 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7369 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7370 (print_gdb_help): Extend the help for 'local init file'.
7371 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7372 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7373 (auto_load_scripts): Rename to ...
7374 (auto_load_python_scripts): ... here, update the comment.
7375 (gdbpy_load_auto_script_for_objfile): New declaration.
7376 (show_auto_load_python_scripts, script_language_python)
7377 (gdbpy_load_auto_script_for_objfile): New.
7378 (source_section_scripts): Refactor the code.
7379 (load_auto_scripts_for_objfile): Rename to ...
7380 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7381 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7382 (info_auto_load_python_scripts): New.
7383 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7384 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7385 Register "set auto-load-scripts" as its deprecated alias. Register
7386 "info auto-load python-scripts". Register "info auto-load-scripts" as
7387 its deprecated alias.
7388 (load_auto_scripts_for_objfile): Rename to ...
7389 (gdbpy_load_auto_scripts_for_objfile): ... here.
7390 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7391 (gdbpy_load_auto_scripts_for_objfile): ... here.
7392
e2207b9a
JK
73932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7394
7395 auto-load: Move files.
7396 * Makefile.in (SFILES): Add auto-load.c.
7397 (HFILES_NO_SRCDIR): Add auto-load.h.
7398 (COMMON_OBS): Add auto-load.o.
7399 (distclean): Change .gdbinit for gdb-gdb.gdb.
7400 * auto-load.c: New file, with parts from python/py-auto-load.c.
7401 * auto-load.h: New file, with parts from python/python.h.
7402 * configure: Regenerate.
7403 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7404 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7405 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7406 * main.c: Include auto-load.h.
7407 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7408 command.h, observer.h and progspace.h to auto-load.c. Add include
7409 auto-load.h.
7410 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7411 (struct loaded_script, auto_load_pspace_data)
7412 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7413 (hash_loaded_script_entry, eq_loaded_script_entry)
7414 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7415 (maybe_add_script): Move to auto-load.c.
7416 (source_section_scripts): Change maybe_add_script parameters passing,
7417 use script_not_found_warning_print.
7418 (clear_section_scripts, auto_load_objfile_script)
7419 (auto_load_new_objfile, loaded_script_ptr)
7420 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7421 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7422 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7423 auto_load_new_objfile and info_auto_load_scripts initizations to
7424 auto-load.c.
7425 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7426
e4ab2fad
JK
74272012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7428
7429 Code cleanup.
7430 * charset.c (find_charset_names): Remove variables ix and elt.
7431 Use free_char_ptr_vec.
7432 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7433 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7434 debugdir_end. New variable debugdir_len.
7435 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7436 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7437 declarations.
7438 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7439 and elt. Use free_char_ptr_vec.
7440 * source.c (add_path): Remove variables argv, arg and argv_index.
7441 New variables dir_vec, back_to, ix and name.
7442 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7443 make_cleanup_freeargv. Remove variable separator. Simplify the code
7444 no longer expecting DIRNAME_SEPARATOR.
7445 (openp): Remove variable p, p1 and len. New variables dir_vec,
7446 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7447 no longer expecting DIRNAME_SEPARATOR.
7448 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7449 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7450 debugdir_end.
7451 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7452 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7453 (dirnames_to_char_ptr_vec): New functions.
7454
5ee4ed9f
JK
74552012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7456
7457 Code cleanup.
7458 * source.c (add_path): Remove always true conditional 'p == 0' and
7459 unindent its code block.
7460
f41f5e61
PA
74612012-04-17 Pedro Alves <palves@redhat.com>
7462
7463 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7464 (FIELD_BITPOS_LVAL): ... this.
7465 (FIELD_BITPOS): New.
7466 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7467 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7468 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7469 SET_FIELD_BITPOS.
7470 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7471 SET_FIELD_BITPOS.
7472 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7473 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7474 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7475 SET_FIELD_BITPOS.
7476
945b3a32
JK
74772012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7478
7479 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7480 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7481 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7482 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7483 * jv-lang.c (java_link_class_type): Likewise, once.
7484 * stabsread.c (read_enum_type): Likewise.
7485
42476b70
YQ
74862012-04-16 Yao Qi <yao@codesourcery.com>
7487
7488 * common/agent.c (agent_run_command): Add one more parameter `len'.
7489 Update callers.
7490 * common/agent.h: Update declaration.
7491 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7492 Update.
7493 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7494
8264ba82
AG
74952012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7496
7497 PR mi/13393
7498 * value.c (value_actual_type): New function.
7499 * value.h (value_actual_type): New declaration.
7500 * varobj.c (update_type_if_necessary): New function.
7501 (varobj_create): Call value_actual_type instead of
7502 value_type.
7503 (install_dynamic_child): distinct changed and type changed MI variable
7504 objects.
7505 (update_dynamic_varobj_children): Updated for install_dynamic_child
7506 change. All callers updated.
a09130f9 7507 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7508 the value changed and RTTI is used to determine the type.
7509 (create_child_with_value): Call value_actual_type instead of
7510 value_type.
a09130f9 7511 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7512 specify whether the given value should be casted to enclosing type.
7513 All callers updated.
7514
55a8c076
YQ
75152012-04-14 Yao Qi <yao@codesourcery.com>
7516
7517 Import gnulib module inttypes from git
7518 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7519 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7520 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7521 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7522 * aclocal.m4, config.in, configure: Regenerated.
7523 * gnulib/Makefile.am: Update.
7524 * gnulib/Makefile.in: Update.
7525 * gnulib/m4/gnulib-cache.m4: Update.
7526 * gnulib/m4/gnulib-comp.m4: Update.
7527 * gnulib/inttypes.in.h: New.
7528 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7529 * gnulib/m4/inttypes.m4: New.
55a8c076 7530
ca7781d2
LM
75312012-04-13 Luis Machado <lgustavo@codesourcery.com>
7532
7533 * infrun.c (resume): Update PC address to the real PC after
7534 preparing to do displaced stepping.
7535
e319fa28
DE
75362012-04-12 Doug Evans <dje@google.com>
7537
7538 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7539 All callers updated.
7540
15add3f5
MK
75412012-04-12 Mark Kettenis <kettenis@gnu.org>
7542
7543 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7544
52dc124a
DE
75452012-04-12 Doug Evans <dje@google.com>
7546
0e50663e
DE
7547 * dwarf2read.c (create_all_type_units): Renamed from
7548 create_debug_types_hash_table. All callers updated.
7549
52dc124a
DE
7550 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7551 local type_sig to sig_type, type_offset to type_offset_in_tu.
7552 (hash_signatured_type): Renamed from hash_type_signature,
7553 all callers updated.
7554 (eq_signatured_type): Renamed from eq_type_signature,
7555 all callers updated.
7556 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7557 (process_enumeration_scope): Ditto.
7558 (lookup_signatured_type_at_offset): Ditto.
7559 (load_full_type_unit, read_signatured_type): Ditto.
7560
248fd3bf
YQ
75612012-04-12 Yao Qi <yao@codesourcery.com>
7562
7563 * remote.c (async_remote_interrupt): Correct function name in
7564 debug message.
7565 (async_remote_interrupt_twice): Ditto.
7566
bc3aa6c3
DE
75672012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7568
7569 * source.c (find_and_open_source): Consistently pass resulting
7570 full path through xfullpath.
7571
9e529e1d
JK
75722012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7573
7574 Provide more specific displaced-stepping memory error message.
7575 * infrun.c (displaced_step_prepare): New variable status. Call
7576 target_read_memory instead of read_memory, provide more specific
7577 error message.
7578
82e0cec1
TG
75792012-04-11 Tristan Gingold <gingold@adacore.com>
7580
7581 PR gdb/13901
7582 * darwin-nat.c (darwin_execvp): Revert previous patch.
7583
d987a266
TG
75842012-04-11 Tristan Gingold <gingold@adacore.com>
7585
7586 PR gdb/13901
7587 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7588 in case of change.
7589
016b7430
TG
75902012-04-11 Tristan Gingold <gingold@adacore.com>
7591
7592 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7593 warning.
7594
06fc020f
SCR
75952012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7596
7597 New command 'explore' which helps explore values and types in
7598 scope.
7599 * NEWS: Add an entry about the new 'explore' command.
7600 * data-directory/Makefile.in: Add gdb/command/explore.py
7601 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7602 command using the GDB Python API.
06fc020f 7603
de0919f8 76042012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7605
7606 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7607 extension in jump target calculation.
7608
de0919f8 76092012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7610
7611 * mips-tdep.c (mips32_next_pc): Handle JALX.
7612
2f26ef89
YQ
76132012-04-10 Yao Qi <yao@codesourcery.com>
7614
7615 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7616
2e505b66
YQ
76172012-04-10 Yao Qi <yao@codesourcery.com>
7618
7619 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7620 and gnulib/m4/gnulib-tool.m4.
7621
0d99eb77
DE
76222012-04-10 Doug Evans <dje@google.com>
7623
7624 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7625 (load_partial_dies): Clarify comment.
7626 (find_partial_die): Support rereading type units.
7627 Clarify CU handling, if we know offset is in CU, don't search for the
7628 containing CU. Add comment regarding memory waste.
7629
9a82b8ff
L
76302012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7631
7632 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7633 i386/x32-avx and i386/x32-avx-linux.
7634 (i386/x32-expedite): New.
7635 (i386/x32-linux-expedite): Likewise.
7636 (i386/x32-avx-expedite): Likewise.
7637 (i386/x32-avx-linux-expedite): Likewise.
7638 ($(outdir)/i386/x32.dat): Likewise.
7639 ($(outdir)/i386/x32-linux.dat): Likewise.
7640 ($(outdir)/i386/x32-avx.dat): Likewise.
7641 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7642
7643 * features/i386/x32-avx-linux.xml: New file.
7644 * features/i386/x32-avx.xml: Likewise.
7645 * features/i386/x32-core.xml: Likewise.
7646 * features/i386/x32-linux.xml: Likewise.
7647 * features/i386/x32.xml: Likewise.
7648
7649 * features/i386/x32-avx-linux.c: New. Generated.
7650 * features/i386/x32-avx.c: Likewise.
7651 * features/i386/x32-linux.c: Likewise.
7652 * features/i386/x32.c: Likewise.
7653 * regformats/i386/x32-avx-linux.dat: Likewise.
7654 * regformats/i386/x32-avx.dat: Likewise.
7655 * regformats/i386/x32-linux.dat: Likewise.
7656 * regformats/i386/x32.dat: Likewise.
7657
ee41036f
TG
76582012-04-10 Tristan Gingold <gingold@adacore.com>
7659
7660 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7661 code to kill the inferior.
7662
a7aa5b8a
MK
76632012-04-09 Mark Kettenis <kettenis@gnu.org>
7664
7665 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7666 defines.
7667 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7668 defines.
a09130f9 7669 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7670 (yyvsp): New defines.
7671 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7672 defines.
7673 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7674 defines.
7675 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7676 defines.
7677 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7678 defines.
7679 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7680 defines.
7681
fb57d452
MK
76822012-04-09 Mark Kettenis <kettenis@gnu.org>
7683
a09130f9 7684 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7685 (sparc64_store_arguments): Fix coding style.
7686
cdc7b32f
MK
76872012-04-07 Mark Kettenis <kettenis@gnu.org>
7688
7689 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7690 complex floats, adjust some related comments and tighten a related
7691 assertion.
7692 (sparc64_extract_return_value): Handle complex floats.
7693
7adf1e79
DE
76942012-04-07 Doug Evans <dje@google.com>
7695
7696 * dwarf2read.c (load_partial_dies): Change condition to assert.
7697
50f1ae7b
DE
76982012-04-06 Doug Evans <dje@google.com>
7699
7700 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7701 "mov %rsp,%rbp".
7702
55fa75c3
KB
77032012-04-05 Kevin Buettner <kevinb@redhat.com>
7704
7705 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7706 fencepost error.
7707 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7708 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7709 architecture.
7710
40e084e1
KS
77112012-04-05 Keith Seitz <keiths@redhat.com>
7712
7713 * linespec.c (decode_compound): Remove.
7714 (enum offset_relative_sign): New enum.
7715 (struct line_offset): New struct.
7716 (struct linespec): New struct.
7717 (struct linespec_state): Move file_symtabs,
7718 user_filename, and user_function into struct linespec.
7719 Make result an anonymous struct holding vectors of
7720 symbolp and minsym_and_objfile_d.
7721 Add language member.
7722 (enum ls_token_type): New enum.
7723 (linespec_keywords): New array.
7724 (struct ls_token): New struct.
7725 (struct ls_parser): New struct.
7726 (linespec_lexer_lex_number): New function.
7727 (linespec_lexer_lex_keyword): New function.
7728 (is_ada_operator): New function.
7729 (skip_quote_char): New function.
7730 (copy_token_string): New function.
7731 (is_closing_quote_enclosed): New function.
7732 (find_parameter_list_end): New function.
7733 (linespec_lexer_lex_string): New function.
7734 (linespec_lexer_lex_one): New function.
7735 (linespec_lexer_consume_token): New function.
7736 (linespec_lexer_peek_token): New function.
7737 (cplusplus_error): Remove unused function.
7738 (find_methods): Update comment.
7739 (find_toplevel_char): Return const.
7740 (is_objc_method_format): Remove unused function.
7741 (find_toplevel_string): New function.
7742 (is_linespec_boundary): Remove.
7743 (symbol_not_found_error): New function.
7744 (find_method_overload_end): Remove function.
7745 (unexpected_linespec_error): New function.
7746 (keep_name_info): Remove.
7747 (linespec_parse_line_offset): New function.
7748 (linespec_parse_basic): New function.
7749 (canonicalize_linespec): New function.
7750 (decode_line_internal): Remove.
7751 (create_sals_line_offset): New function adapted from
7752 decode_all_digits.
7753 (convert_linespec_to_sals): New function.
7754 (parse_linespec): New function.
7755 (linespec_parser_new): New function.
7756 (linespec_state_destructor): Change parameter type to
7757 struct linespec_state *.
7758 Add language parameter.
7759 Remove freeing of moved members.
7760 (linespec_parser_delete): New function.
7761 (decode_line_full): Use parse_linespec and linespec_parser_new.
7762 (decode_line_1): Likewise.
7763 (decode_indirect): Rename to ...
7764 (linespec_expression_to_pc): ... this and rewrite
7765 to simply find CORE_ADDR, storing this result for later
7766 conversion to SALs.
7767 (locate_first_half): Remove.
7768 (deocde_objc): Add parameter LS.
7769 Initialize new struct collect_info members.
7770 Handle minimal symbols, too.
7771 (decode_compound): Delete.
7772 (lookup_prefix_sym): Rewrite.
7773 (compare_msymbols): New function.
7774 (find_method): Rewrite.
7775 Do not call cplusplus_error.
7776 (symtabs_from_filename): Rewrite.
7777 (collect_function_symbols): Delete.
7778 (find_function_symbols): Rewrite without ARGPTR-style
7779 processing.
7780 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7781 (decode_dollar): Adapted and renamed to ...
7782 (linespec_parse_variable): ... this.
7783 (find_linespec_symbols): New function.
7784 (decode_label): Adapted and renamed to ...
7785 (find_label_symbols): ... this.
7786 (decode_digits_list_mode): Add and use LS argument.
7787 (decode_digits_ordinary): Likewise.
7788 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7789 If in list mode, allow any symbol class. Otherwise, only
7790 permit LOC_BLOCK symbols.
7791 (minsym_found): Update comments.
7792 (search_minsyms_for_name): Do not convert the matching symbol
7793 into a SAL. Simply push the symbol and objfile into the
7794 result vector.
7795 (decode_variable): Delete. Contents adapted into
7796 find_linespec_symbols.
7797
7798 * cp-support.c (SKIP_SPACE): Remove.
7799 (operator_tokens): Remove unused global.
7800 (cp_validate_operator): Remove.
7801 * cp-support.h (cp_validate_operator): Remove declaration.
7802
a72c8f6a
JK
78032012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7804
7805 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7806 for TYPE_VPTR_FIELDNO.
7807 * valprint.c (valprint_check_validity): Make it global, move the
7808 function comment ...
7809 * value.h (valprint_check_validity): ... to this new declaration.
7810
cf9bb588
TG
78112012-04-02 Tristan Gingold <gingold@adacore.com>
7812
7813 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7814 the STATE32 api for i386 state.
7815 (i386_darwin_store_inferior_registers): Likewise.
7816
17092398
TG
78172012-04-02 Tristan Gingold <gingold@adacore.com>
7818
7819 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7820 SS offset.
7821 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7822 format_string.
7823
ece0061f
TG
78242012-04-02 Tristan Gingold <gingold@adacore.com>
7825
7826 PR gdb/13901
d987a266 7827 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7828
cf65ecd3
JK
78292012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7830
7831 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7832
9bc3523d
TT
78332012-03-30 Tom Tromey <tromey@redhat.com>
7834
7835 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7836 of TRY_CATCH. Fix error handling.
7837 * python/py-value.c (convert_value_from_python): Move 'old'
7838 declaration to innermost scope.
7839
b1ed564a
JB
78402012-03-29 Joel Brobecker <brobecker@adacore.com>
7841 Andrey Smirnov <andrew.smirnov@gmail.com>
7842
7843 -Wshadow warning fix.
7844 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7845 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7846 Adjust code accordingly.
7847
cb8e9b97
JB
78482012-03-29 Joel Brobecker <brobecker@adacore.com>
7849
7850 * ada-lang.c (symbol_completion_add): Rename parameter
7851 "encoded" into "encoded_p". Ajust code and documentation
7852 accordingly.
7853
c0af1706
JB
78542012-03-29 Joel Brobecker <brobecker@adacore.com>
7855 Andrey Smirnov <andrew.smirnov@gmail.com>
7856
7857 -Wshadow warning fix.
7858 * ada-lang.c (symbol_completion_add): Rename parameter
7859 "wild_match" into wild_match_p. Update code and documentation
7860 accordingly.
7861
6ea35997
JB
78622012-03-29 Joel Brobecker <brobecker@adacore.com>
7863
7864 * ada-lang.c (symbol_completion_match): Rename parameter
7865 "encoded" into "encoded_p". Ajust code and documentation
7866 accordingly.
7867
e701b3c0
JB
78682012-03-29 Joel Brobecker <brobecker@adacore.com>
7869 Andrey Smirnov <andrew.smirnov@gmail.com>
7870
7871 -Wshadow warning fix.
7872 * ada-lang.c (symbol_completion_match): Rename parameter
7873 "wild_match" into "wild_match_p". Adjust code and function
7874 documentation accordingly.
7875
5e2336be
JB
78762012-03-29 Joel Brobecker <brobecker@adacore.com>
7877 Andrey Smirnov <andrew.smirnov@gmail.com>
7878
7879 -Wshadow warning fix.
7880 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7881 "symbol_info" into "info". Adjust code accordingly.
7882 (ada_lookup_symbol): Likewise.
7883
9f88c959
JB
78842012-03-29 Joel Brobecker <brobecker@adacore.com>
7885
7886 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7887 of this function's documentation.
7888
82ccd55e
JB
78892012-03-29 Joel Brobecker <brobecker@adacore.com>
7890 Andrey Smirnov <andrew.smirnov@gmail.com>
7891
7892 -Wshadow warning fix.
7893 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7894 variable into "wild_match_p". Adjust code accordingly.
7895
d0a8ab18
JB
78962012-03-29 Joel Brobecker <brobecker@adacore.com>
7897 Andrey Smirnov <andrew.smirnov@gmail.com>
7898
7899 -Wshadow warning fix.
7900 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7901 parameter into "wild_match_p". Adjust code accordingly.
7902 Document this parameter in the function description.
7903
48b78332
JB
79042012-03-29 Joel Brobecker <brobecker@adacore.com>
7905 Andrey Smirnov <andrew.smirnov@gmail.com>
7906
7907 -Wshadow warning fix.
7908 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7909 "wild_match" parameter to "wild_match_p" (-Wshadow).
7910
2e6e0353
JB
79112012-03-29 Joel Brobecker <brobecker@adacore.com>
7912
7913 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7914 in function documentation.
7915
dc4024cd
JB
79162012-03-29 Joel Brobecker <brobecker@adacore.com>
7917 Andrey Smirnov <andrew.smirnov@gmail.com>
7918
7919 -Wshadow warning fix.
7920 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7921 variable into wild_match_p. Adjust code accordingly.
7922
6c88661c
JB
79232012-03-29 Joel Brobecker <brobecker@adacore.com>
7924 Andrey Smirnov <andrew.smirnov@gmail.com>
7925
7926 * ada-valprint.c (ada_val_print_1): Move the code handling
7927 TYPE_CODE_ENUM inside its own lexical block. Declare
7928 variables len and val there, instead of in the function's
7929 top level block. Avoid declaring deref_val again in a way
7930 that shadows another variable of the same name declared
7931 in one of the up-level blocks. Just re-use the up-level
7932 variable instead.
7933
4e5c77fe
JB
79342012-03-29 Joel Brobecker <brobecker@adacore.com>
7935
7936 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7937 Replace block_found argument by symbol_info. Adjust
7938 implementation accordingly. Add function documentation.
7939 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7940 Fix documentation.
7941 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7942 * ada-exp.y (write_object_renaming): Adjust to new
7943 ada_lookup_encoded_symbol API.
7944
1c0ac8c7
JB
79452012-03-29 Joel Brobecker <brobecker@adacore.com>
7946
7947 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7948 documentation.
7949
2aaed979
KB
79502012-03-28 Rathish C <rathish.c@kpitcummins.com>
7951
7952 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7953 (v850_register_name): Add the mpu and fpu register names.
7954 (v850e_register_name): Add the mpu and fpu register names.
7955 (v850e2_register_name): New function.
a09130f9 7956 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7957 bfd_mach_v850e2v3.
7958
927fbba6
JB
79592012-03-28 Joel Brobecker <brobecker@adacore.com>
7960
7961 * NEWS: Add entry for Ada varobj support.
7962
d32cafc7
JB
79632012-03-28 Joel Brobecker <brobecker@adacore.com>
7964
7965 * varobj.c (default_value_is_changeable_p): New function,
7966 extracted from varobj_value_is_changeable_p. Add declaration.
7967 (ada_value_is_changeable_p): New function, extracted from
7968 varobj_value_is_changeable_p. Add declaration.
7969 (struct language_specific): New field "value_is_changeable_p".
7970 (languages): Add entries for new field.
7971 (varobj_create): Set language before calling install_new_value.
7972 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7973 "value_is_changeable_p" language callback.
7974
181875a4
JB
79752012-03-28 Joel Brobecker <brobecker@adacore.com>
7976
7977 * ada-varobj.h, ada-varobj.c: New files.
7978 * Makefile.in (SFILES): Add ada-varobj.c.
7979 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7980 (COMMON_OBS): Add ada-varobj.o.
7981
7a290c40
JB
79822012-03-28 Joel Brobecker <brobecker@adacore.com>
7983
7984 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7985 (struct language_specific): New field "value_has_mutated".
7986 (languages): Set field "value_has_mutated" in each entry of array.
7987 (varobj_value_has_mutated): New function.
7988 (varobj_udpdate): Add handling of type mutation.
7989 (value_of_root): Add handling of type mutation.
7990 (ada_value_has_mutated): New function.
7991
ca9b8b9c
PA
79922012-03-28 Pedro Alves <palves@redhat.com>
7993
7994 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7995 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7996
cc0265cd
TT
79972012-03-28 Tom Tromey <tromey@redhat.com>
7998
7999 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8000 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8001 before returning.
8002
3ad2ec6f
TT
80032012-03-28 Tom Tromey <tromey@redhat.com>
8004
8005 * .dir-locals.el: New file.
8006
4a6510ba
PA
80072012-03-28 Pedro Alves <palves@redhat.com>
8008
8009 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8010
5a75128f
JB
80112012-03-28 Joel Brobecker <brobecker@adacore.com>
8012
8013 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8014 handling for r0.
8015
f99d8bf4
PA
80162012-03-27 Pedro Alves <palves@redhat.com>
8017
8018 Eliminate struct ui_stream.
8019
8020 * ui-out.h (struct ui_stream): Delete.
8021 (ui_out_field_stream): Adjust prototype.
8022 (ui_out_stream_new, ui_out_stream_delete)
8023 (make_cleanup_ui_out_stream_delete): Delete declarations.
8024 * ui-out.c (ui_out_field_stream): Change prototype to take a
8025 ui_file instead of a ui_stream. Adjust.
8026 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8027 (make_cleanup_ui_out_stream_delete): Delete.
8028 * breakpoint.c (print_breakpoint_location)
8029 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8030 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8031 * disasm.c (dump_insns): Ditto.
8032 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8033 prototype.
8034 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8035 ui_stream/ui_out_stream_new.
8036 * infcmd.c (print_return_value): Ditto.
8037 * osdata.c (info_osdata_command): Don't allocate a local
8038 ui_stream.
8039 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8040 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8041 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8042 allocate a local ui_stream.
8043 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8044 instead of ui_stream/ui_out_stream_new.
8045 (list_args_or_locals): Don't allocate a local ui_stream.
8046 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8047 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8048 ui_stream/ui_out_stream_new.
8049 * cli/cli-setshow.c (do_setshow_command): Ditto.
8050
6350a066 80512012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8052
6350a066
PA
8053 * arm-linux-tdep.c (arm_linux_init_abi): Call
8054 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8055 * arm-tdep.c (arm_process_record): New function.
8056 (deallocate_reg_mem): New function.
8057 (decode_insn): New function.
8058 (thumb_record_branch): New function.
8059 (thumb_record_ldm_stm_swi(): New function.
8060 (thumb_record_misc): New function.
8061 (thumb_record_ld_st_stack): New function.
8062 (thumb_record_ld_st_imm_offset): New function.
8063 (thumb_record_ld_st_reg_offset(): New function.
8064 (thumb_record_add_sub_cmp_mov): New function.
8065 (thumb_record_shift_add_sub): New function.
8066 (arm_record_coproc_data_proc): New function.
8067 (arm_record_coproc): New function.
8068 (arm_record_b_bl): New function.
8069 (arm_record_ld_st_multiple): New function.
8070 (arm_record_ld_st_reg_offset): New function.
8071 (arm_record_ld_st_imm_offset): New function.
8072 (arm_record_data_proc_imm): New function.
8073 (arm_record_data_proc_misc_ld_str): New function.
8074 (arm_record_extension_space): New function.
8075 (arm_record_strx): New function.
8076 (sbo_sbz): New function.
8077 (struct insn_decode_record): New structure for arm insn record.
8078 (REG_ALLOC): New macro for reg allocations.
8079 (MEM_ALLOC): New macro for memory allocations.
8080 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8081
89e028e2
AS
80822012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8083
8084 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8085 (store_register): Likewise.
8086
6350a066 80872012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8088
6350a066 8089 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8090
5b43fab2
JK
80912012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8092
8093 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8094 Describe also the option "auto".
8095
b5453b95
RH
80962012-03-22 Richard Henderson <rth@redhat.com>
8097
8098 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8099 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8100
227ee7fc
RH
81012012-03-22 Richard Henderson <rth@redhat.com>
8102
8103 * jit.c (jit_read_code_entry): Compute alignment and offset of
8104 int64_t member before computing entry_size.
8105
7b282c5a
SCR
81062012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8107
8108 Python scripting: Add new method Value.referenced_value to
8109 gdb.Value which can dereference pointer as well as reference
8110 values.
8111 * NEWS: Add entry under 'Python scripting' about the new method
8112 Value.referenced_value on gdb.Value objects.
8113 * python/py-value.c (valpy_referenced_value): New function
8114 defining a new method on gdb.Value objects which can dereference
8115 pointer and reference values.
8116
0c83539f
SCR
81172012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8118
8119 * MAINTAINERS (Write After Approval): Add myself to the list.
8120
7ccffd7c
KB
81212012-03-21 Kevin Buettner <kevinb@redhat.com>
8122
8123 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8124 in addition to "main".
8125
bd0b9f9e
JB
81262012-03-21 Joel Brobecker <brobecker@adacore.com>
8127
8128 * expression.h (op_name): Add declaration.
8129 * expprint.c (op_name): Remove declaration. Make non-static.
8130 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8131
a5362b9a
TS
81322012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8133
8134 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8135 of struct siginfo.
8136 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8137 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8138 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8139 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8140 (linux_nat_get_siginfo): Likewise.
8141 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8142 (linux_nat_get_siginfo): Likewise.
8143 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8144 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8145 * procfs.c (gdb_siginfo_t): Likewise.
8146
adcadaab
MF
81472012-03-21 Mike Frysinger <vapier@gentoo.org>
8148
8149 * .gitignore: Ignore more files.
8150
e278ad5b
PA
81512012-03-20 Pedro Alves <palves@redhat.com>
8152
8153 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8154 returns.
8155
741e63d7
YQ
81562012-03-20 Yao Qi <yao@codesourcery.com>
8157
8158 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8159 comment.
8160
b64f50a1
JK
81612012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8162
8163 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8164 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8165 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8166 sect_offset.
8167 * dwarf2expr.h (cu_offset, sect_offset): New types.
8168 (struct dwarf_expr_context_funcs) <dwarf_call>
8169 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8170 sect_offset.
8171 (struct dwarf_expr_context) <len>: Improve the comment.
8172 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8173 cu_offset and sect_offset.
8174 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8175 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8176 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8177 * dwarf2loc.h: Include dwarf2expr.h.
8178 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8179 and sect_offset.
8180 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8181 Improve the comment.
8182 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8183 (struct signatured_type, struct line_header, struct partial_die_info)
8184 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8185 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8186 (get_die_type_at_offset, create_cus_from_index)
8187 (create_signatured_type_table_from_index, dw2_get_file_names)
8188 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8189 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8190 (create_debug_types_hash_table, process_psymtab_comp_unit)
8191 (load_partial_comp_unit, create_all_comp_units)
8192 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8193 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8194 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8195 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8196 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8197 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8198 (find_partial_die, read_attribute_value, lookup_die_type)
8199 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8200 (is_ref_attr): New function comment.
8201 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8202 Use cu_offset and sect_offset.
8203 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8204 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8205 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8206 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8207 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8208 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8209 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8210 sect_offset.
8211
e97a38f7
JK
82122012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8213
8214 Code cleanup.
8215 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8216 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8217 with xfree.
8218 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8219
8320cc4f
JK
82202012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8221
8222 * NEWS: Describe new options --init-command=FILE, -ix and
8223 --init-eval-command=COMMAND, -iex.
8224 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8225 CMDARG_INIT_COMMAND.
8226 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8227 "init-command", "init-eval-command", "ix" and "iex" to the variable
8228 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8229 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8230 (print_gdb_help): Describe --init-command=FILE, -ix and
8231 --init-eval-command=COMMAND, -iex.
8232
26743505
JK
82332012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8234
8235 Code cleanup.
8236 * main.c (struct cmdarg): Move it here from main. Add more comments.
8237 (cmdarg_s, VEC (cmdarg_s)): New.
8238 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8239 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8240 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8241 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8242 of CMDARG.
8243
5ff5c7b4
TT
82442012-03-19 Tom Tromey <tromey@redhat.com>
8245
8246 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8247
ab260dad
JK
82482012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8249
8250 PR symtab/13777
8251 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8252 GCC >=4.5.
8253
c366c1f0
TT
82542012-03-16 Chris January <chris.january@allinea.com>
8255
8256 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8257 of clear.
8258
e16edb45
TT
82592012-03-16 Chris January <chris.january@allinea.com>
8260
8261 * source.c (add_path): Use memmove instead of strcpy because the
8262 strings overlap.
8263
53ba8333
JB
82642012-03-16 Joel Brobecker <brobecker@adacore.com>
8265
8266 * value.h (set_value_parent): Add declaration.
8267 * value.c (set_value_parent): New function.
8268 (value_address): If VALUE->PARENT is not NULL, then use it as
8269 the base address instead of VALUE->LOCATION.address.
8270 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8271 the same as OBJ's address. Adjust V's offset accordingly.
8272 Set V's parent.
8273
481860b3
GB
82742012-03-16 Gary Benson <gbenson@redhat.com>
8275
8276 PR breakpoints/10738
8277 * dwarf2read.c (use_deprecated_index_sections): New global.
8278 (struct partial_die_info): New member may_be_inlined.
8279 (read_partial_die): Set may_be_inlined where appropriate.
8280 (add_partial_subprogram): Add partial symbols for partial
8281 DIEs that may be inlined.
8282 (new_symbol_full): Add inlined subroutines to the current
8283 scope.
8284 (write_psymtabs_to_index): Bump version number.
8285 (dwarf2_read_index): Read only version 6 indices unless
8286 use_deprecated_index_sections is set.
8287 * linespec.c (symbol_and_data_callback): New structure.
8288 (iterate_inline_only): New function.
8289 (iterate_over_all_matching_symtabs): New argument
8290 "include_inline". If nonzero, also call the callback for
8291 symbols representing inlined subroutines.
8292 (lookup_prefix_sym): Pass extra argument to the above.
8293 (find_function_symbols): Likewise.
8294 (add_matching_symbols_to_info): Likewise.
8295 * NEWS: Mention that GDB can now set breakpoints on inlined
8296 functions.
8297
d0e7e15a
PM
82982012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8299
8300 * p-typeprint.c (pascal_type_print_method_args):
8301 Fix display of parameter of methods.
8302
3d354654
PM
83032012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8304
8305 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8306 Add missing prototype.
8307
cafe75b0
JK
83082012-03-16 Yao Qi <yao@codesourcery.com>
8309 Jan Kratochvil <jan.kratochvil@redhat.com>
8310
8311 Fix false compilation warning.
8312 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8313
25f8c692
JL
83142012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8315 Pedro Alves <pedro@codesourcery.com>
8316
8317 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8318 (arm_register_g_packet_guesses): New function.
8319 (arm_gdbarch_init): Don't force a target description with
8320 registers when the executable is detected as M-profile. Instead
8321 set gdbarch->tdep->is_m. Register `g' packet guesses.
8322 (_initialize_arm_tdep): Initialize the new target description.
8323 * features/arm-with-m-fpa-layout.xml: New description.
8324 * features/arm-with-m-fpa-layout.c: New, generated.
8325
35c63cd8
JB
83262012-03-15 Joel Brobecker <brobecker@adacore.com>
8327
8328 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8329 Update function description.
8330 (insert_bp_location): Do not wipe bl->target_info out.
8331 * mem-break.c: #include "gdb_string.h".
8332 (default_memory_insert_breakpoint): Do not call target_read_memory
8333 with a pointer to the breakpoint's shadow_contents buffer. Use
8334 a local buffer instead.
8335 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8336
57651221
TT
83372012-03-15 Tom Tromey <tromey@redhat.com>
8338
8339 * NEWS: Mention "info vtbl", not "info vtable".
8340 * cp-support.c (info_vtbl_command): Fix comment.
8341 (_initialize_cp_support): Fix text.
8342
410528f0
TT
83432012-03-15 Tom Tromey <tromey@redhat.com>
8344
8345 * cp-valprint.c (cp_print_value_fields): Use
8346 print_function_pointer_address for vtable slot.
8347
c4aeac85
TT
83482012-03-15 Tom Tromey <tromey@redhat.com>
8349
8350 * gnu-v3-abi.c (struct value_and_voffset): New.
8351 (hash_value_and_voffset, eq_value_and_voffset)
8352 (compare_value_and_voffset, compute_vtable_size)
8353 (print_one_vtable, gnuv3_print_vtable): New functions.
8354 (init_gnuv3_ops): Initialize 'print_vtable' field.
8355 * cp-support.c (info_vtbl_command): New function.
8356 (_initialize_cp_support): Add "info vtbl".
8357 * cp-abi.h (cplus_print_vtable): Declare.
8358 (struct cp_abi_ops) <print_vtable>: New field.
8359 * cp-abi.c (cplus_print_vtable): New function.
8360 * NEWS: Update.
8361
95cbceff
TT
83622012-03-15 Tom Tromey <tromey@redhat.com>
8363
8364 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8365 iterate_over_symbols.
8366
589b4a32
DE
83672012-03-14 Doug Evans <dje@google.com>
8368
8369 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8370 DW_OP_GNU_parameter_ref.
8371
e837f12a
JK
83722012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8373
8374 Fix double prompt of 'interpreter-exec mi'.
8375 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8376 (mi_interpreter_resume): use it.
8377 (mi_execute_command_input_handler): New function.
8378 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8379 mi_execute_command_input_handler.
8380
ff1e4526 83812012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8382
8383 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8384 prototype.
8385 (darwin_debug_port_info): Make static.
8386 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8387 * machoread.c (_initialize_machoread): Add prototype.
8388 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8389 (i386_darwin_set_control, i386_darwin_get_control)
8390 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8391 i386_darwin_get_status, i386_darwin_get_control):
8392 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8393
d8a5d6ee
JB
83942012-03-13 Joel Brobecker <brobecker@adacore.com>
8395
8396 * ax-gdb.c (gen_usual_unary): Remove special handling of
8397 enum and bool types.
8398
af381b8c
JB
83992012-03-13 Joel Brobecker <brobecker@adacore.com>
8400
8401 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8402
786c562f
JB
84032012-03-13 Joel Brobecker <brobecker@adacore.com>
8404
8405 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8406
e3ebf1bb
JB
84072012-03-13 Chris January <chris.january@allinea.com>
8408
8409 * aix-thread.c (fill_sprs): Store the floating point registers
8410 at the correct offsets into vals.
8411
c5b7e1cb
DE
84122012-03-13 Doug Evans <dje@google.com>
8413
16899756
DE
8414 * NEWS: Mention symbol-reloading has been deleted.
8415 * symfile.c (symbol_reloading): Delete.
8416 (show_symbol_reloading): Delete.
8417 (_initialize_symfile): Delete set/show symbol-reloading.
8418
c5b7e1cb
DE
8419 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8420 read_in_chain until we have successfully read it in.
8421 (load_full_comp_unit): Ditto.
8422 (read_signatured_type): Add comment.
8423
46cb6474
JB
84242012-03-13 Chris January <chris.january@allinea.com>
8425
8426 * stabsread.c (fix_common_block): Change type of valu argument
8427 to CORE_ADDR.
8428
76219d77
JB
84292012-03-13 Chris January <chris.january@allinea.com>
8430
8431 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8432 instruction.
8433
87b0bb13
JK
84342012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 * common/linux-procfs.c (linux_proc_get_int): New, from
8437 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8438 field.
8439 (linux_proc_get_tgid): Only call linux_proc_get_int.
8440 (linux_proc_get_tracerpid): New.
8441 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8442 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8443 linux_proc_pid_has_state.
8444 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8445 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8446 (linux_ptrace_attach_warnings): New.
8447 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8448 New declaration.
8449 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8450 (linux_nat_attach): New variables ex, buffer, message and message_s.
8451 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8452
5f572dec
JK
84532012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8454
8455 * Makefile.in (linux-ptrace.o): New.
8456 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8457 from linux-nat.c.
8458 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8459 * common/linux-ptrace.c: New file.
8460 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8461 * config/arm/linux.mh: Likewise.
8462 * config/i386/linux.mh: Likewise.
8463 * config/i386/linux64.mh: Likewise.
8464 * config/ia64/linux.mh: Likewise.
8465 * config/m32r/linux.mh: Likewise.
8466 * config/m68k/linux.mh: Likewise.
8467 * config/mips/linux.mh: Likewise.
8468 * config/pa/linux.mh: Likewise.
8469 * config/powerpc/linux.mh: Likewise.
8470 * config/powerpc/ppc64-linux.mh: Likewise.
8471 * config/powerpc/spu-linux.mh: Likewise.
8472 * config/s390/s390.mh: Likewise.
8473 * config/sparc/linux.mh: Likewise.
8474 * config/sparc/linux64.mh: Likewise.
8475 * config/xtensa/linux.mh: Likewise.
8476 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8477 common/linux-procfs.c.
8478 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8479
44f238bb
PA
84802012-03-13 Hui Zhu <teawater@gmail.com>
8481 Pedro Alves <palves@redhat.com>
8482
8483 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8484 CREATE_BREAKPOINT_FLAGS_INSERTED.
8485 (create_breakpoint_sal, create_breakpoints_sal)
8486 (base_breakpoint_create_breakpoints_sal)
8487 (tracepoint_create_breakpoints_sal)
8488 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8489 down.
8490 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8491 (ftrace_command, strace_command): Adjust.
8492 (create_tracepoint_from_upload): Pass
8493 CREATE_BREAKPOINT_FLAGS_INSERTED.
8494 * breakpoint.h (enum breakpoint_create_flags): New.
8495 (create_breakpoint): New flags parameter.
8496 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8497 * python/py-breakpoint.c (bppy_init): Adjust.
8498 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8499 * spu-tdep.c (spu_catch_start): Adjust.
8500
1e51243a
PA
85012012-03-13 Pedro Alves <palves@redhat.com>
8502 Hui Zhu <teawater@gmail.com>
8503 Yao Qi <yao@codesourcery.com>
8504
8505 * remote.c (struct remote_state): New field `starting_up'.
8506 (remote_start_remote): Set and clear it.
8507 (remote_can_download_tracepoint): If starting up, return false.
8508
fa3064dd
YQ
85092012-03-13 Yao Qi <yao@codesourcery.com>
8510
8511 * inferior.h (struct inferior): Remove fields any_syscall_count,
8512 syscalls_counts and total_syscalls_count. Move them to new
8513 struct catch_syscall_inferior_data in breakpoint.c.
8514 * breakpoint.c: Call DEF_VEC_I(int).
8515 (struct catch_syscall_inferior_data): New.
8516 (get_catch_syscall_inferior_data): New.
8517 (catch_syscall_inferior_data_cleanup): New.
8518 (insert_catch_syscall): Update to access data in
8519 struct catch_syscall_inferior_data.
8520 (insert_catch_syscall): Likewise.
8521 (remove_catch_syscall): Likewise.
8522 (remove_catch_syscall): Likewise.
8523 (is_syscall_catchpoint_enabled): Likewise.
8524 (add_catch_command): Likewise.
8525 (_initialize_breakpoint): Register cleanup.
8526 * breakpoint.h: Removed DEF_VEC_I(int).
8527 * dwarf2loc.c: Call DEF_VEC_I(int).
8528 * mi/mi-main.c: Likewise.
8529
460fac3c
MK
85302012-03-12 Mark Kettenis <kettenis@gnu.org>
8531
8532 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8533
e1aca11e
JB
85342012-03-12 Chris January <chris.january@allinea.com>
8535
8536 * aix-thread.c (_initialize_aix_thread): Add prototype.
8537 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8538 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8539
649c7061
JB
85402012-03-12 Joel Brobecker <brobecker@adacore.com>
8541
8542 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8543 include of "amd64-nat.h".
8544
0b49e518
TT
85452012-03-12 Tom Tromey <tromey@redhat.com>
8546
8547 * buildsym.c (record_pending_block): Now static.
8548 * buildsym.h: (record_pending_block): Remove.
8549
fd24fa94
AT
85502012-03-12 Andreas Tobler <andreast@fgznet.ch>
8551
8552 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8553
ba919b58
TT
85542012-03-09 Tom Tromey <tromey@redhat.com>
8555
8556 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8557 producer_is_gxx_lt_4_6>: New fields.
8558 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8559
a48e046c
TT
85602012-03-09 Tom Tromey <tromey@redhat.com>
8561
8562 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8563
6f5e9362
JB
85642012-03-08 Joel Brobecker <brobecker@adacore.com>
8565
8566 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8567 prototype.
8568
8d037db9
JB
85692012-03-08 Joel Brobecker <brobecker@adacore.com>
8570
8571 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8572
4e841acf
JK
85732012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8574
8575 Fix -Wmissing-prototypes build.
8576 * arm-linux-nat.c (get_thread_id): Make it static.
8577 * xtensa-linux-nat.c (get_thread_id): Likewise.
8578
c6030312
JB
85792012-03-08 Joel Brobecker <brobecker@adacore.com>
8580
8581 * server.c (process_point_options): If a conditional expression
8582 is found, only print a message if remote_debug is nonzero.
8583
52323be9
LM
85842012-03-08 Luis Machado <lgustavo@codesourcery.com>
8585
8586 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8587 of internal error for unknown/unsupported types.
8588
7fe25d9b
JK
85892012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8590
8591 Fix CU relative vs. absolute DIE offsets.
8592 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8593 offset to offset_in_cu.
8594 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8595 TYPE_OFFSET.
8596 (dwarf2_fetch_die_location_block): Rename parameter offset to
8597 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8598
05e7c244
JK
85992012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8600
8601 * libunwind-frame.c: Rename to ...
8602 * ia64-libunwind-tdep.c: ... here.
8603 * libunwind-frame.h: Rename to ...
8604 * ia64-libunwind-tdep.h: ... here.
8605 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8606 ia64-libunwind-tdep.h.
8607 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8608 * README (--with-libunwind): Rename to ...
8609 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8610 * config.in: Regenerate.
8611 * configure: Regenerate.
8612 * configure.ac: New option --with-libunwind-ia64, make the
8613 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8614 Remove AC_DEFINE for HAVE_LIBUNWIND.
8615 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8616 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8617 Rename libunwind-frame in the general comment.
8618 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8619 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8620 Move forward declarations inside #ifndef. Rename libunwind-frame in
8621 the general comment.
8622 * ia64-tdep.c: Rename libunwind-frame.h #include to
8623 ia64-libunwind-tdep.h.
8624 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8625 (ia64_libunwind_descr): Rename libunwind-frame to
8626 ia64-libunwind-tdep in these function comments.
8627 * ia64-tdep.h: Rename libunwind-frame.h #include to
8628 ia64-libunwind-tdep.h.
8629 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8630 ia64-libunwind-tdep in that data comment.
8631
3755cbfd
JK
86322012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8633
8634 * libunwind-frame.h (struct frame_unwind): New declaration.
8635
d1cda5d9
JB
86362012-03-08 Joel Brobecker <brobecker@adacore.com>
8637
8638 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8639 "set breakpoint condition-evaluation" command.
8640
a0ba0aa2
TG
86412012-03-08 Tristan Gingold <gingold@adacore.com>
8642
8643 * sparc-stub.c: Move to stubs/
8644 * sh-stub.c: Likewise.
8645 * m68k-stub.c: Likewise.
8646 * m32r-stub.c: Likewise.
8647 * i386-stub.c: Likewise.
8648
7b8b6d6d
AS
86492012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8650
007cafee
AS
8651 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8652 linux_get_siginfo_type.
8653
7b8b6d6d
AS
8654 * m68klinux-nat.c: Include "gdb_proc_service.h".
8655 (PTRACE_GET_THREAD_AREA): Define.
8656 (ps_get_thread_area): New function.
8657
bba74b36
YQ
86582012-03-08 Yao Qi <yao@codesourcery.com>
8659
8660 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8661 `xsnprintf'.
8662 (remote_query_attached): Likewise.
8663 (remote_static_tracepoint_marker_at): Likewise.
8664 (remote_set_permissions): Likewise.
8665 (remote_detach_1, extended_remote_attach_1): Likewise.
8666 (send_g_packet, remote_vkill): Likewise.
8667 (extended_remote_disable_randomization): Likewise.
8668 (remote_add_target_side_condition): Likewise.
8669 (remote_insert_breakpoint): Likewise.
8670 (remote_remove_breakpoint): Likewise.
8671 (remote_insert_watchpoint): Likewise.
8672 (remote_remove_watchpoint): Likewise.
8673 (remote_insert_hw_breakpoint): Likewise.
8674 (remote_insert_hw_breakpoint): Likewise.
8675 (remote_remove_hw_breakpoint): Likewise.
8676 (remote_download_command_source): Likewise.
8677 (remote_download_tracepoint): Likewise.
8678 (remote_download_trace_state_variable): Likewise.
8679 (remote_disable_tracepoint): Likewise.
8680 (remote_trace_set_readonly_regions): Likewise.
8681 (remote_get_tracepoint_status): Likewise.
8682 (remote_trace_find): Likewise.
8683 (remote_get_trace_state_variable_value): Likewise.
8684 (remote_set_disconnected_tracing): Likewise.
8685 (remote_set_circular_trace_buffer): Likewise.
8686 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8687 (remote_use_agent): Likewise.
8688 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8689 Update callers.
8690
9b224c5e
PA
86912012-03-07 Pedro Alves <palves@redhat.com>
8692
8693 * NEWS: Mention QProgramSignals.
8694 * inferior.h (update_signals_program_target): Declare.
8695 * infrun.c: (update_signals_program_target): New.
8696 (handle_command): Update the target of the new program signals
8697 array changes.
8698 * remote.c (PACKET_QProgramSignals): New enum.
8699 (last_program_signals_packet): New global.
8700 (remote_program_signals): New.
8701 (remote_start_remote): Update the target with the program signals
8702 list.
8703 (remote_protocol_features): Add entry for QPassSignals.
8704 (remote_open_1): Free anc clear last_program_signals_packet.
8705 (init_remote_ops): Install remote_program_signals.
8706 * target.c (update_current_target): Adjust.
8707 (target_program_signals): New.
8708 * target.h (struct target_ops) <to_program_signals>: New field.
8709 (target_program_signals): Declare.
8710
74c48cbb
PA
87112012-03-07 Pedro Alves <palves@redhat.com>
8712
8713 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8714 extensions.
8715
0c13fc49
AS
87162012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8717
8718 * m68klinux-nat.c (getregs_supplies): Make static.
8719 (getfpregs_supplies): Likewise.
8720 (have_ptrace_getregs): Likewise.
8721
1281d2a3
JB
87222012-03-06 Joel Brobecker <brobecker@adacore.com>
8723
8724 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8725 in call to get_die_type_at_offset.
8726
2b03b41d
SS
87272012-03-06 Stan Shebs <stan@codesourcery.com>
8728
8729 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8730 * mi/mi-cmd-disas.c: Ditto.
8731 * mi/mi-cmd-env.c: Ditto.
8732 * mi/mi-cmd-file.c: Ditto.
8733 * mi/mi-cmd-stack.c: Ditto.
8734 * mi/mi-cmd-target.c: Ditto.
8735 * mi/mi-cmd-var.c: Ditto.
8736 * mi/mi-cmds.c: Ditto.
8737 * mi/mi-cmds.h: Ditto.
8738 * mi/mi-console.c: Ditto.
8739 * mi/mi-getopt.c: Ditto.
8740 * mi/mi-getopt.h: Ditto.
8741 * mi/mi-interp.c: Ditto.
8742 * mi/mi-main.c: Ditto.
8743 * mi/mi-out.c: Ditto.
8744 * mi/mi-parse.c: Ditto.
8745 * mi/mi-parse.h: Ditto.
8746 * mi/mi-symbol-cmds.c: Ditto.
8747
8748 * mi/mi-getopt.h: Move mi_opt struct up.
8749 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8750 return.
8751 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8752
c988ad87
TT
87532012-03-06 Tom Tromey <tromey@redhat.com>
8754
8755 * proc-service.c (ps_pglobal_lookup): Set the current program
8756 space.
8757
1b7c1b10
PA
87582012-03-06 Pedro Alves <palves@redhat.com>
8759
8760 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8761
3c182069
JB
87622012-03-05 Joel Brobecker <brobecker@adacore.com>
8763
8764 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8765
2e794194
JK
87662012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8767
8768 Code cleanup.
8769 * common/linux-osdata.c (linux_common_core_of_thread): New function
8770 comment.
8771 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8772 call by linux_common_core_of_thread.
8773 (linux_nat_core_of_thread_1): Remove.
8774 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8775 * linux-thread-db.c: Include linux-osdata.h.
8776 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8777 linux_common_core_of_thread.
8778
9f9f1f31
TT
87792012-03-05 Tom Tromey <tromey@redhat.com>
8780
8781 * value.c (value_primitive_field): Don't fetch contents for
8782 non-virtual bases.
8783
b7b189f3
TT
87842012-03-05 Tom Tromey <tromey@redhat.com>
8785
8786 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8787
05b8a789 87882012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8789
5538f557
JB
8790 * s390-nat.c: Include "gregset.h".
8791
75528772
JK
87922012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8793
8794 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8795 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8796 (libunwind_load): New variable so_error, use it for dlerror. Try to
8797 load also LIBUNWIND_SO_7.
8798
275418ae
PA
87992012-03-05 Pedro Alves <palves@redhat.com>
8800
8801 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8802 is not NULL, and remove resulting dead code.
8803
5cbb9812
TS
88042012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8805
8806 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8807 prologue to sh_analyze_prologue.
8808 (sh_analyze_prologue): Make better use of such an upper limit, and
8809 generally be more cautious about accessing memory.
8810
541515ad
TT
88112012-03-05 Tom Tromey <tromey@redhat.com>
8812
8813 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8814 _initialize_ia64_hpux_tdep.
8815
b4d36fb8
PA
88162012-03-05 Pedro Alves <palves@redhat.com>
8817
24490249
PA
8818 PR gdb/13766
8819
b4d36fb8
PA
8820 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8821 the register state is clear, supply explicit zero, instead of
8822 marking the register unavailable.
8823
60c9a3c0
TG
88242012-03-05 Tristan Gingold <gingold@adacore.com>
8825
8826 * NEWS: Mention OpenVMS ia64 new target.
8827
696759ad
TG
88282012-03-05 Tristan Gingold <gingold@adacore.com>
8829
8830 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8831 (ia64_unw_accessors, ia64_unw_rse_accessors)
8832 (ia64_libunwind_descr): Declare.
8833 * ia64-vms-tdep.c: New file.
8834 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8835 (ia64_libunwind_descr): Make them public.
8836 * configure.tgt: Add ia64-*-*vms*.
8837 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8838 (ALLDEPFILES): Add ia64-vms-tdep.c
8839
34864976
TG
88402012-03-05 Tristan Gingold <gingold@adacore.com>
8841
169081d0
TG
8842 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8843 * remote.c (PACKET_qXfer_uib): New enum value.
8844 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8845 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8846 (_initialize_remote): Call add_packet_config_cmd for
8847 xfer:uib packet.
8848
88492012-03-05 Tristan Gingold <gingold@adacore.com>
8850
8851 * osabi.c (gdb_osabi_names): Add OpenVMS.
8852 (generic_elf_osabi_sniffer): Likewise.
8853 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8854
6597b100
JK
88552012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8856
8857 Removed unused code.
8858 * libunwind-frame.c (libunwind_frame_unwind)
8859 (libunwind_frame_base_address): Remove.
8860 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8861
87399aa1
YQ
88622012-03-04 Yao Qi <yao@codesourcery.com>
8863
8864 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8865 remove trailing new line.
8866 (agent_run_command, agent_run_command): Add _ markup.
8867 (agent_capability_check): Likewise.
8868
abf1152a
JK
88692012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8870
8871 * breakpoint.c (set_condition_evaluation_mode): Set
8872 CONDITION_EVALUATION_MODE unconditionally.
8873
5808517f
YQ
88742012-03-03 Yao Qi <yao@codesourcery.com>
8875
8876 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8877 * common/agent.h: Update declaration.
8878 * inf-child.c (inf_child_use_agent): New.
8879 (inf_child_can_use_agent): New.
8880 (inf_child_target): Initialize fields `to_use_agent'
8881 and `to_can_use_agent'.
8882 * agent.c (agent_new_objfile): New.
89b7509a 8883 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8884 observer.
8885
8886 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8887 New.
89b7509a 8888 (linux_target_install_ops): Initialize field
5808517f
YQ
8889 `to_static_tracepoint_markers_by_strid'.
8890 * remote.c (free_current_marker): Move it to ...
8891 * tracepoint.c (free_current_marker): ... here. New.
8892 (cleanup_target_stop): New.
8893 * tracepoint.h: Declare free_current_marker.
8894 * NEWS: Add one entry about `info static-tracepoint-marker'.
8895
58b4daa5
YQ
88962012-03-03 Yao Qi <yao@codesourcery.com>
8897
8898 * common/agent.c (agent_loaded_p): New.
89b7509a 8899 (agent_look_up_symbols): New global.
58b4daa5
YQ
8900 * common/agent.h: Declare agent_loaded_p.
8901
8ffcbaaf
YQ
89022012-03-03 Yao Qi <yao@codesourcery.com>
8903
8904 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8905 (agent_capability_check, agent_capability_invalidate): New.
8906 (symbol_list): New array element.
8907 * common/agent.h (enum agent_capa): New.
8908 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8909
d1feda86
YQ
89102012-03-03 Yao Qi <yao@codesourcery.com>
8911
8912 * target.h (struct target_ops) <to_use_agent>: New field.
8913 (struct target_ops) <to_can_use_agent>: New field.
8914 (target_use_agent, target_can_use_agent): New macro.
8915 * target.c (update_current_target): Update.
8916 * remote.c: New enum `PACKET_QAgent'.
8917 (remote_protocol_features): Add a new element.
8918 (remote_use_agent, remote_can_use_agent): New.
8919 (init_remote_ops): Initialize field `can_use_agent' with
8920 remote_can_use_agent. Intiailize field `use_agent' with
8921 remote_use_agent.
8922 * common/agent.c (use_agent): New global.
8923 * common/agent.h: Declare it.
8924 * tracepoint.c (info_static_tracepoint_markers_command): Add
8925 comment.
8926 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8927 (COMMON_OBS): Add common/agent.o and agent.o
8928 (common-agent.o): New rule.
8929 * agent.c: New.
8930
2fa291ac
YQ
89312012-03-03 Yao Qi <yao@codesourcery.com>
8932
8933 * common/agent.c: New.
8934 * common/agent.h: New.
8935 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8936 AC_CHECK_HEADERS.
8937 * configure, configh.in: Regenerated.
8938
9fc05685
KB
89392012-03-02 Kevin Buettner <kevinb@redhat.com>
8940
8941 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8942 unless it exists for this architecture.
8943
a5ee536b
JB
89442012-03-02 Joel Brobecker <brobecker@adacore.com>
8945
8946 * language.h (struct language_defn): New "method" la_read_var_value.
8947 * findvar.c: #include "language.h".
8948 (default_read_var_value): Renames read_var_value. Rewrite
8949 function description.
8950 (read_var_value): New function.
8951 * value.h (default_read_var_value): Add prototype.
8952 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8953 New functions.
8954 (ada_language_defn): Add entry for la_read_var_value.
8955 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8956 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8957 language_defn structures to add entry for new la_read_var_value
8958 field.
8959
f59f708a
PA
89602012-03-02 Tom Tromey <tromey@redhat.com>
8961 Pedro Alves <palves@redhat.com>
8962
8963 PR breakpoints/13776:
8964 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8965 breakpoints.
8966 (delete_longjmp_breakpoint_at_next_stop): New.
8967 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8968 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8969 before deleting the inferior. Add comments.
8970 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8971 breakpoints immediately, but only on next stop. Move that code
8972 next to where we mark other breakpoints for deletion.
8973
44099a67
JB
89742012-03-02 Joel Brobecker <brobecker@adacore.com>
8975
8976 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8977 marker.
8978 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8979 violation.
8980
2a2ef594
PA
89812012-03-02 Pedro Alves <palves@redhat.com>
8982
8983 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8984
b261e0c5
UW
89852012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8986
8987 Fix -Wmissing-prototypes build.
8988 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8989 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8990 (gdbsim_has_memory): Likewise.
8991
a95babbf
YQ
89922012-03-02 Yao Qi <yao@codesourcery.com>
8993
8994 Fix -Wmissing-prototypes build.
8995 * charset.c (phony_iconv_open): Make static.
8996 (phony_iconv_close, phony_iconv): Likewise.
8997 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8998 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8999 prototype.
9000 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9001 * ser-mingw.c (create_select_thread): Make static.
9002 * windows-termcap.c (tgetent): New prototype.
9003 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9004
d603d4b3
JK
90052012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9006
9007 Fix -Wmissing-prototypes build.
9008 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9009 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9010 (_initialize_loadable): New prototypes.
9011
7fb3ad1f
DE
90122012-03-02 Doug Evans <dje@google.com>
9013
9014 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9015 abbrev table, read_comp_unit will do it.
9016
693be288
JK
90172012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9018
9019 Fix -Wmissing-prototypes build.
9020 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9021 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9022 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9023 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9024 (_initialize_arm_symbian_tdep): New prototype.
9025 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9026 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9027 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9028 static.
9029 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9030 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9031 prototype.
9032 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9033 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9034 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9035 static.
9036 * moxie-tdep.c (moxie_process_record): Likewise.
9037 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9038 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9039 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9040 (_initialize_rl78_tdep): New prototype.
9041 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9042 (_initialize_rx_tdep): New prototype.
9043 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9044 (_initialize_darwin_solib): New prototype.
9045 * solib-spu.c: Include solib-spu.h.
9046 (_initialize_spu_solib): New prototype.
9047 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9048 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9049 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9050 (tic6x_software_single_step): Make it static.
9051 (_initialize_tic6x_tdep): New prototype.
9052
638234e5
JK
90532012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9054
9055 Fix -Wmissing-prototypes build.
9056 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9057 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9058
f4a6f16d
JK
90592012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9060
9061 Fix -Wmissing-prototypes build.
9062 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9063 (frv_have_stopped_data_address): Remove.
9064
04dcf5fa
JK
90652012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9066
9067 Fix -Wmissing-prototypes build.
9068 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9069 * sh-tdep.c: Include sh64-tdep.h.
9070 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9071 * sh64-tdep.c: Include sh64-tdep.h.
9072 * sh64-tdep.h: New file.
9073
19080931
MR
90742012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9075
9076 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9077
9aac7884
MR
90782012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9079
9080 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9081 sp_regnum once the gdbarch_init_osabi hook has been called.
9082
a385295e
MR
90832012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9084
9085 * mips-tdep.c (mips32_bc1_pc): New function.
9086 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9087 BPOSGE32 and BPOSGE64 instructions.
9088 (deal_with_atomic_sequence): Likewise.
9089 (mips32_instruction_has_delay_slot): Likewise.
9090
1faeff08 90912012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9092 Chris Dearman <chris@mips.com>
9093 Maciej W. Rozycki <macro@codesourcery.com>
9094 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9095
9096 * features/mips-dsp.xml: New file.
9097 * features/mips64-dsp.xml: New file.
9098 * features/mips-dsp-linux.xml: New file.
9099 * features/mips64-dsp-linux.xml: New file.
9100 * features/Makefile (WHICH): Add mips-dsp-linux and
9101 mips64-dsp-linux.
9102 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9103 * features/mips-dsp-linux.c: New file.
9104 * features/mips64-dsp-linux.c: New file.
9105 * regformats/mips-dsp-linux.dat: New file.
9106 * regformats/mips64-dsp-linux.dat: New file.
9107 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9108 registers.
9109 (mips64_linux_register_addr): Likewise.
9110 (mips64_linux_regsets_fetch_registers): Likewise.
9111 (mips64_linux_regsets_store_registers): Likewise.
9112 (mips64_linux_fetch_registers): Update call to
9113 mips64_linux_regsets_fetch_registers.
9114 (mips64_linux_store_registers): Update call to
9115 mips64_linux_regsets_store_registers.
9116 (mips_linux_read_description): Probe for DSP registers.
9117 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9118 and initialize_tdesc_mips64_dsp_linux.
9119 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9120 Remove padding of no longer used embedded register slots.
9121 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9122 (MIPS_RESTART_REGNUM): Redefine enum value.
9123 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9124 strings.
9125 (mips_tx39_reg_names): Likewise.
9126 (mips_linux_reg_names): New array of register names for Linux
9127 targets.
9128 (mips_register_name): Check for a null pointer in
9129 mips_processor_reg_names and return an empty string.
9130 (mips_register_type): Exclude embedded registers for the IRIX
9131 and Linux ABIs.
9132 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9133 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9134 DSP registers.
9135 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9136 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9137 (mips_gdbarch_init): Likewise. Initialize internal register
9138 indices for the Linux ABI. Use dynamic numbers to refer to
9139 registers, as applicable, while parsing the target description.
9140 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9141
263689d8
JB
91422012-03-01 Joel Brobecker <brobecker@adacore.com>
9143
9144 * frame.h (read_frame_register_unsigned): Fix typo in function
9145 description.
9146
f3b4f45c
PA
91472012-03-01 Pedro Alves <palves@redhat.com>
9148
9149 * jit-reader.in [!__cplusplus]
9150 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9151
b03a2011
PA
91522012-03-01 Pedro Alves <palves@redhat.com>
9153
9154 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9155 * configure: Regenerate.
9156
70221824
PA
91572012-03-01 Pedro Alves <palves@redhat.com>
9158
9159 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9160 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9161 (ftrace_command, strace_command): Make static.
9162 * d-lang.c (_initialize_d_language): Declare.
9163 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9164 * dwarf2loc.c (_initialize_dwarf2loc):
9165 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9166 * exec.c (exec_get_section_table): Make static.
9167 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9168 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9169 * inferior.c (remove_inferior_command, add_inferior_command)
9170 (clone_inferior_command): Make static.
9171 * linux-nat.c (linux_nat_thread_address_space)
9172 (linux_nat_core_of_thread): Make static.
9173 * linux-tdep.c (_initialize_linux_tdep): Declare.
9174 * objc-lang.c (_initialize_objc_lang): Declare.
9175 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9176 Make static.
9177 (_initialize_opencl_language): Declare.
9178 * record.c (_initialize_record): Declare.
9179 * remote.c (demand_private_info, remote_get_tib_address)
9180 (remote_supports_cond_tracepoints)
9181 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9182 Make static.
9183 * skip.c (_initialize_step_skip): Declare.
9184 * symtab.c (skip_prologue_using_lineinfo): Make static.
9185 * tracepoint.c (delete_trace_state_variable)
9186 (trace_variable_command, delete_trace_variable_command)
9187 (get_uploaded_tsv, find_matching_tracepoint_location)
9188 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9189 Make static.
9190 * value.c (pack_unsigned_long): Make static.
9191 * varobj.c (varobj_ensure_python_env): Make static.
9192 * windows-tdep.c (_initialize_windows_tdep): Declare.
9193 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9194
33fbcbee
PA
91952012-03-01 Pedro Alves <palves@redhat.com>
9196
9197 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9198 gdbarch parameter.
9199 (linux_init_abi): Install it as has_shared_address_space gdbarch
9200 callback.
9201
44d0cd3b
PA
92022012-03-01 Pedro Alves <palves@redhat.com>
9203
9204 * observer.c (observer_test_first_notification_function)
9205 (observer_test_second_notification_function)
9206 (observer_test_third_notification_function): Add declarations.
9207
ed01b82c
PA
92082012-03-01 Pedro Alves <palves@redhat.com>
9209
9210 * common/signals.c (default_target_signal_to_host)
9211 (default_target_signal_from_host): Move ...
9212 * arch-utils.c: ... here.
9213 * arch-utils.h (default_target_signal_to_host)
9214 (default_target_signal_from_host): Declare.
9215
9216 * common/signals.c (target_signal_from_command): Move ...
9217 * infrun.c: ... here.
9218 * inferior.h (target_signal_from_command): Declare.
9219 * target.h (target_signal_from_command)
9220 (default_target_signal_from_host, default_target_signal_to_host):
9221 Delete declarations.
9222
9223 * common/signals.c (_initialize_signals): Delete.
9224
c9b87335
PA
92252012-03-01 Pedro Alves <palves@redhat.com>
9226
9227 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9228 both __cplusplus and !__cplusplus.
9229
9340a6c0
PA
92302012-03-01 Pedro Alves <palves@redhat.com>
9231
9232 * psymtab.c (find_and_open_source): Delete declaration.
9233 * source.c (find_and_open_source): Move comment ...
9234 * source.h (find_and_open_source): ... to this new declaration.
9235
e451c4a1
PA
92362012-03-01 Pedro Alves <palves@redhat.com>
9237
9238 * inline-frame.c: Include inline-frame.h.
9239
983fb104
PA
92402012-03-01 Pedro Alves <palves@redhat.com>
9241
9242 * tui/tui-data.c (set_gen_win_origin): Delete.
9243 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9244 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9245
5fbce5df
PA
92462012-03-01 Pedro Alves <palves@redhat.com>
9247
9248 * remote.c (encode_actions): Delete declaration.
9249 * tracepoint.c (encode_actions): Make extern.
9250 * tracepoint.h (encode_actions): Declare.
9251
49a8461d
PA
92522012-03-01 Pedro Alves <palves@redhat.com>
9253
9254 * python/py-breakpoint.c: Include python.h.
9255 * python/py-continueevent.c (create_continue_event_object): Make
9256 static.
9257 * python/py-lazy-string.c (stpy_get_type): Make static.
9258 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9259 Make static.
9260 * python/py-utils.c (unicode_to_target_python_string): Make
9261 static.
9262 * python/py-value.c: Include python.h.
9263
9079102f
PA
92642012-03-01 Pedro Alves <palves@redhat.com>
9265
9266 * inferior.c (delete_threads_of_inferior): Delete.
9267
a298c5e8
PA
92682012-03-01 Pedro Alves <palves@redhat.com>
9269
9270 Import fallback definitions from glibc.
9271
9272 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9273 ps_prochandle): Forward declare.
9274 (ps_err_e): Use glibc's comments.
9275 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9276 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9277 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9278 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9279 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9280 (struct ps_prochandle): Adjust comment.
9281
e3084549
PA
92822012-03-01 Pedro Alves <palves@redhat.com>
9283
9284 * ada-lang.c (ada_modulus_from_name): Delete.
9285 * ada-lex.l (lexer_init): Make static.
9286
ad5f7d6e
PA
92872012-03-01 Pedro Alves <palves@redhat.com>
9288
9289 PR gdb/13767
9290
9291 * frame.c (read_frame_register_unsigned): New.
9292 * frame.h (read_frame_register_unsigned): Declare.
9293 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9294 Handle it.
9295 (print_i387_control_word): New parameter `control_p'. Handle it.
9296 (i387_print_float_info): Handle unavailable float registers.
9297
e0a4d108
KS
92982012-03-01 Keith Seitz <keiths@redhat.com>
9299
9300 * linespec.c (decode_line_2): Sort the list of methods
9301 alphabetically before presenting the user with a selection
9302 menu.
9303
122d1940
DE
93042012-03-01 Doug Evans <dje@google.com>
9305
9306 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9307 has_namespace_info.
9308 (dwarf2_read_abbrevs): Remove corresponding initialization.
9309
7d74f244
DE
93102012-03-01 Scott J. Goldman <scottjg@vmware.com>
9311
9312 * NEWS: Mention new python command class gdb.COMMAND_USER.
9313 * cli/cli-cmds.c (show_user): Print error when used on a python
9314 command.
9315 (init_cli_cmds): Update documentation strings for "show user" and
9316 "set/show max-user-call-depth" to clarify that it does not apply to
9317 python commands.
9318 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9319 error check.
9320 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9321 gdb python api.
9322 * top.c (execute_command): Only execute a user-defined command as a
9323 legacy macro if c->user_commands is set.
9324
e88acd96
TT
93252012-03-01 Tom Tromey <tromey@redhat.com>
9326
9327 * valprint.h (struct generic_val_print_decorations): New.
9328 (generic_val_print): Declare.
9329 * valprint.c (generic_val_print): New function.
9330 * p-valprint.c (p_decorations): New global.
9331 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9332 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9333 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9334 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9335 * m2-valprint.c (m2_decorations): New global.
9336 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9337 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9338 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9339 TYPE_CODE_ERROR>: Call generic_val_print.
9340 * f-valprint.c (f_decorations): New global.
9341 (f_val_print): Use print_function_pointer_address.
9342 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9343 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9344 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9345 generic_val_print.
9346 * c-valprint.c (c_decorations): New global.
9347 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9348 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9349 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9350 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9351 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9352 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9353 case.
9354
d3eab38a
TT
93552012-03-01 Tom Tromey <tromey@redhat.com>
9356
9357 * valprint.c (val_print): Update.
9358 * p-valprint (pascal_val_print): Return void.
9359 * p-lang.h (pascal_val_print): Return void.
9360 * m2-valprint.c (m2_val_print): Return void.
9361 * m2-lang.h (m2_val_print): Return void.
9362 * language.h (struct language_defn) <la_val_print>: Return void.
9363 * language.c (unk_lang_val_print): Return void.
9364 * jv-valprint.c (java_val_print): Return void.
9365 * jv-lang.h (java_val_print): Return void.
9366 * f-valprint.c (f_val_print): Return void.
9367 * f-lang.h (f_val_print): Return void.
9368 * d-valprint.c (d_val_print): Return void.
9369 (dynamic_array_type): Update.
9370 * d-lang.h (d_val_print): Return void.
9371 * c-valprint.c (c_val_print): Return void.
9372 * c-lang.h (c_val_print): Return void.
9373 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9374 void.
9375 * ada-lang.h (ada_val_print): Return void.
9376
35c0084b
TT
93772012-03-01 Tom Tromey <tromey@redhat.com>
9378
9379 * value.h (val_print): Return void.
9380 * valprint.c (val_print): Return void.
9381
a1f5dd1b
TT
93822012-03-01 Tom Tromey <tromey@redhat.com>
9383
9384 * value.h (common_val_print): Return void.
9385 * valprint.c (common_val_print): Return void.
9386
8e069a98
TT
93872012-03-01 Tom Tromey <tromey@redhat.com>
9388
9389 * value.h (value_print): Return void.
9390 * valprint.c (value_print): Return void.
9391 * p-valprint.c (pascal_value_print): Return void.
9392 * p-lang.h (pascal_value_print): Return void.
9393 * language.h (struct language_defn) <la_value_print>: Return
9394 void.
9395 * language.c (unk_lang_value_print): Return void.
9396 * jv-valprint.c (java_value_print): Return void.
9397 * jv-lang.h (java_value_print): Return void.
9398 * f-valprint.c (c_value_print): Don't declare.
9399 Include c-lang.h.
9400 * c-valprint.c (c_value_print): Return void.
9401 * c-lang.h (c_value_print): Return void.
9402 * ada-valprint.c (ada_value_print): Return void.
9403 * ada-lang.h (ada_value_print): Return void.
9404
be335936
TT
94052012-03-01 Tom Tromey <tromey@redhat.com>
9406
9407 * value.c (value_primitive_field): Handle virtual base classes.
9408
b0db66a7
TT
94092012-03-01 Tom Tromey <tromey@redhat.com>
9410
9411 * gdbtypes.h (struct vbase): Remove.
9412
132c57b4
TT
94132012-03-01 Tom Tromey <tromey@redhat.com>
9414
9415 * c-valprint.c (print_function_pointer_address): Move...
9416 * valprint.c: ... here. Make non-static.
9417 * m2-valprint.c (print_function_pointer_address): Remove.
9418 * valprint.h (print_function_pointer_address): Declare.
9419
e41eec66
JB
94202012-03-01 Joel Brobecker <brobecker@adacore.com>
9421
9422 * NEWS: Document the fact that one can provide a condition when
9423 creating an Ada exception catchpoint.
9424
19c37f24
TT
94252012-03-01 Tom Tromey <tromey@redhat.com>
9426
9427 * valprint.c (val_print_type_code_flags): Fix placement of
9428 trailing brace.
9429
f0fed3a3
JB
94302012-03-01 Joel Brobecker <brobecker@adacore.com>
9431
9432 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9433 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9434 environment variable before calling update-copyright.
9435
8ba85d85
JB
94362012-03-01 Joel Brobecker <brobecker@adacore.com>
9437
9438 * gnulib/extra/update-copyright: Update to the latest from
9439 gnulib's git repository.
9440 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9441 variable to 2 instead of 1.
9442
8219b1e8
JB
94432012-02-29 Joel Brobecker <brobecker@adacore.com>
9444
9445 * varobj.c (c_value_of_variable): Remove dead code.
9446
718cb7da
JB
94472012-02-29 Joel Brobecker <brobecker@adacore.com>
9448
9449 * ada-lex.p (processId): Do not modify already encoded IDs.
9450 Update function documentation.
9451
739593e0
JB
94522012-02-29 Joel Brobecker <brobecker@adacore.com>
9453
9454 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9455 "name" with "struct symbol *name_sym".
9456 * ada-exp.y (write_var_or_type): Update call to
9457 ada_find_renaming_symbol.
9458 "name" with "struct symbol *name_sym". Adjust Implementation
9459 accordingly. Adjust the function documentation.
9460
852dff6c
JB
94612012-02-29 Joel Brobecker <brobecker@adacore.com>
9462
9463 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9464 * ada-lang.c (ada_find_any_type): Add advance declaration.
9465 Make static. Replace ada_find_any_symbol by
9466 ada_find_any_type_symbol.
9467 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9468 Improve function description. Make static.
9469 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9470 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9471
1b611343
JB
94722012-02-29 Joel Brobecker <brobecker@adacore.com>
9473
9474 * ada-lang.c (struct tag_args): Delete.
9475 (ada_get_tsd_type): Function body moved up in source file.
9476 (ada_tag_name_1, ada_tag_name_2): Delete.
9477 (ada_get_tsd_from_tag): New function.
9478 (ada_tag_name_from_tsd): New function.
9479 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9480 to determine the tag name.
9481
41246937
JB
94822012-02-29 Joel Brobecker <brobecker@adacore.com>
9483
9484 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9485 declaration.
9486 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9487 function.
9488
ffde82bf
JB
94892012-02-29 Joel Brobecker <brobecker@adacore.com>
9490
9491 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9492
2ad01556
JB
94932012-02-29 Joel Brobecker <brobecker@adacore.com>
9494
9495 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9496 full searches.
9497
99b1c762
JB
94982012-02-29 Joel Brobecker <brobecker@adacore.com>
9499
9500 * ada-lang.c (constrained_packed_array_type): If there is a
9501 parallel XA type, use it to determine the array index type.
9502
2d4a02ee
JB
95032012-02-29 Joel Brobecker <brobecker@adacore.com>
9504
9505 * ada-valprint.c (ada_val_print_1): If our value is a reference
9506 to an array descriptor, dereference it before converting it
9507 to a simple array.
9508
c48db5ca
JB
95092012-02-29 Joel Brobecker <brobecker@adacore.com>
9510
9511 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9512 creating fixed value.
9513 (ada_value_ind, ada_coerce_ref, assign_component)
9514 (ada_evaluate_subexp): Remove call to unwrap_value before
9515 call to ada_to_fixed_value.
9516
2e6fda7d
JB
95172012-02-29 Joel Brobecker <brobecker@adacore.com>
9518
9519 * ada-lang.c (to_fixed_array_type): Set result's type name.
9520
5845583d
JB
95212012-02-29 Joel Brobecker <brobecker@adacore.com>
9522
9523 * ada-lang.c (catch_ada_exception_command_split): Add new
9524 argument cond_string. Add support for condition at end of
9525 "catch exception" commands.
9526 (ada_decode_exception_location): Add new argument cond_string.
9527 Update call to catch_ada_exception_command_split.
9528 (create_ada_exception_catchpoint): Add new argument cond_string.
9529 Set the breakpoint condition if needed.
9530 (catch_ada_exception_command): Update call to
9531 ada_decode_exception_location.
9532 (ada_decode_assert_location): Add function documentation.
9533 Add support for condition at end of "catch assert" command.
9534 (catch_assert_command): Update calls to ada_decode_assert_location
9535 and create_ada_exception_catchpoint.
9536
9a7f938f
JK
95372012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9538
9539 Fix disp-step-syscall.exp: fork: single step over fork.
9540 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9541 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9542 comment, change parameters gdbarch and ptid to regcache. Remove
9543 parameter regcache, initialize gdbarch from regcache here.
9544 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9545 New functions.
9546 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9547 instead.
9548 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9549 'syscall'. Make the 'int' check more strict.
9550
ffdf6de5
JK
95512012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9552
9553 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9554 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9555 (i386_linux_intx80_sysenter_syscall_record): ... here.
9556 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9557 Use the renamed function name.
9558
c70a6932
JK
95592012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9560
9561 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9562 * breakpoint.c (until_break_command): Likewise.
9563 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9564 * infcall.c (call_function_by_hand): Likewise.
9565 * infcmd.c (finish_forward): Likewise.
9566 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9567
05b8a789 95682012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9569
d4cd3da9
JB
9570 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9571 avoid variable assignments inside condition.
9572
6425366c
JK
95732012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9574
9575 Fix static analysis issue found by cppcheck.
9576 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9577 uninitialized BUF for size 2.
9578
c8cef75f 95792012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9580 Nathan Froyd <froydnj@codesourcery.com>
9581 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9582
9583 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9584 (mips16_instruction_has_delay_slot): Likewise.
9585 (mips_segment_boundary): Likewise.
9586 (mips_adjust_breakpoint_address): Likewise.
9587 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9588
473347ad 95892012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9590 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9591
9592 * infrun.c (handle_inferior_event): Don't proceed through
9593 shared library trampolines if stepping at the machine
9594 instruction level.
9595
cf233303
MR
95962012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9597
9598 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9599 too.
9600
cb2cf4ce
TS
96012012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9602
9603 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9604 (sh_stub_unwind_sniffer): New functions.
9605 (sh_stub_unwind): New variable.
9606 (sh_gdbarch_init): Wire everything.
9607
644cebc9
PA
96082012-02-27 Pedro Alves <palves@redhat.com>
9609
9610 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9611 (linux_nat_post_attach_wait): Adjust to use
9612 linux_proc_pid_is_stopped.
9613 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9614 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9615 based on pid_is_stopped from both linux-nat.c and
9616 gdbserver/linux-low.c, and renamed.
9617
283002cf
MR
96182012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9619
9620 * remote.c (remote_watchpoint_addr_within_range): New function.
9621 (init_remote_ops): Use it.
9622
9b3e86b1
MR
96232012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9624
9625 * target.h (target_watchpoint_addr_within_range): Document macro.
9626
e36930bb
PA
96272012-02-24 Pedro Alves <palves@redhat.com>
9628
9629 * stack.c (set_last_displayed_sal): Issue internal_error instead
9630 of warning, and issue it after clearing the last displayed sal.
9631
883bc8d1
PA
96322012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9633 Pedro Alves <palves@redhat.com>
9634
9635 * breakpoint.c (until_break_command): Install breakpoints after
9636 all frame manipulations.
9637
b775012e
LM
96382012-02-24 Luis Machado <lgustavo@codesourcery.com>
9639
9640 * remote.c (remote_supports_cond_breakpoints): New forward
9641 declaration.
9642 (remote_add_target_side_condition): New function.
9643 (remote_insert_breakpoint): Add target-side breakpoint
9644 conditional if supported.
9645 (remote_insert_hw_breakpoint): Likewise.
9646 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9647 hook.
9648
9649 * target.c (update_current_target): Inherit
9650 to_supports_evaluation_of_breakpoint_conditions.
9651 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9652
9653 * target.h (struct target_ops)
9654 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9655 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9656
9657 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9658 (condition_evaluation_both, condition_evaluation_auto,
9659 condition_evaluation_host, condition_evaluation_target,
9660 condition_evaluation_enums, condition_evaluation_mode_1,
9661 condition_evaluation_mode): New static globals.
9662 (translate_condition_evaluation_mode): New function.
9663 (breakpoint_condition_evaluation_mode): New function.
9664 (gdb_evaluates_breakpoint_condition_p): New function.
9665 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9666 (mark_breakpoint_modified): New function.
9667 (mark_breakpoint_location_modified): New function.
9668 (set_condition_evaluation_mode): New function.
9669 (show_condition_evaluation_mode): New function.
9670 (bp_location_compare_addrs): New function.
9671 (get_first_location_gte_addr): New helper function.
9672 (set_breakpoint_condition): Free condition bytecode if locations
9673 has become unconditional. Call mark_breakpoint_modified (...).
9674 (condition_command): Call update_global_location_list (1) for
9675 breakpoints.
9676 (breakpoint_xfer_memory): Use is_breakpoint (...).
9677 (is_breakpoint): New function.
9678 (parse_cond_to_aexpr): New function.
9679 (build_target_condition_list): New function.
9680 (insert_bp_location): Handle target-side conditional
9681 breakpoints and call build_target_condition_list (...).
9682 (update_inserted_breakpoint_locations): New function.
9683 (insert_breakpoint_locations): Handle target-side conditional
9684 breakpoints.
9685 (bpstat_check_breakpoint_conditions): Add comment.
9686 (bp_condition_evaluator): New function.
9687 (bp_location_condition_evaluator): New function.
9688 (print_breakpoint_location): Print information on where the condition
9689 will be evaluated.
9690 (print_one_breakpoint_location): Likewise.
9691 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9692 breakpoint location.
9693 (force_breakpoint_reinsertion): New functions.
9694 (update_global_location_list): Handle target-side breakpoint
9695 conditions.
9696 Reinsert locations that are already inserted if conditions have
9697 changed.
9698 (bp_location_dtor): Free agent expression bytecode.
9699 (disable_breakpoint): Call mark_breakpoint_modified (...).
9700 Call update_global_location_list (...) with parameter 1 for breakpoints.
9701 (disable_command): Call mark_breakpoint_location_modified (...).
9702 Call update_global_location_list (...) with parameter 1 for breakpoints.
9703 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9704 (enable_command): mark_breakpoint_location_modified (...).
9705 (_initialize_breakpoint): Update documentation and add
9706 condition-evaluation breakpoint subcommand.
9707
9708 * breakpoint.h: Include ax.h.
9709 (condition_list): New data structure.
9710 (condition_status): New enum.
9711 (bp_target_info) <cond_list>: New field.
9712 (bp_location) <condition_changed, cond_bytecode>: New fields.
9713 (is_breakpoint): New prototype.
9714
3788aec7
LM
97152012-02-24 Luis Machado <lgustavo@codesourcery.com>
9716
9717 * remote.c (remote_state) <cond_breakpoints>: New field.
9718 (PACKET_ConditionalBreakpoints): New enum.
9719 (remote_cond_breakpoint_feature): New function.
9720 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9721 (remote_supports_cond_breakpoints): New function.
9722 (_initialize_remote): Add new packet configuration for
9723 target-side conditional breakpoints.
9724
72895ff6
LM
97252012-02-24 Luis Machado <lgustavo@codesourcery.com>
9726
9727 * NEWS: Mention target-side conditional breakpoint support,
9728 new condition-evaluation breakpoint subcommand and remote
9729 packet extensions.
9730
dea2aa5f
LM
97312012-02-24 Luis Machado <lgustavo@codesourcery.com>
9732
9733 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9734 number.
9735
8a8bc27f
TS
97362012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9737
9738 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9739 (after_prologue): Remove.
9740
6b446fdf
TT
97412012-02-23 Tom Tromey <tromey@redhat.com>
9742
9743 * jv-valprint.c (java_val_print): Remove dead code.
9744
ef59abfb
TG
97452012-02-23 Tristan Gingold <gingold@adacore.com>
9746
a09130f9
PA
9747 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9748 known_tasks_element and known_tasks_length fields.
9749 (read_known_tasks_array): Change argument type. Use pointer type
9750 and number of elements from DATA. Adjust.
9751 (read_known_tasks_list): Likewise.
9752 (get_known_tasks_addr): Remove.
9753 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9754 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9755 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9756
def166f6
JK
97572012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9758
9759 PR backtrace/13716
9760 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9761 it after set_momentary_breakpoint.
9762
aeaa2474
SA
97632012-02-22 Sterling Augustine <saugustine@google.com>
9764
9765 PR 13689:
9766 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9767
feea76c2
GB
97682012-02-22 Gary Benson <gbenson@redhat.com>
9769
9770 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9771 (find_slot_in_mapped_hash): Likewise.
9772
f06e05e0
JK
97732012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9774
9775 PR build/13638
9776 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9777 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9778 * configure: Regenerate.
9779
b54a8fd7
PA
97802012-02-21 Tristan Gingold <gingold@adacore.com>
9781 Pedro Alves <palves@redhat.com>
9782
9783 * ia64-tdep.c: Do not include libunwind-ia64.h.
9784 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9785 Include libunwind-ia64.h instead of libunwind.h.
9786 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9787 for libunwind.h existence.
9788 * configure, config.in: Regenerate.
9789
dfcee124
AG
97902012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9791
9792 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9793 instead of value_rtti_target_type.
9794 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9795 instead of value_rtti_target_type.
9796 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9797 value_rtti_target_type.
9798 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9799 (value_rtti_target_type): Rename to ...
9800 (value_rtti_indirect_type): ... here and make it indirect. Update
9801 function comment.
9802 * value.c (readjust_indirect_value_type): New function.
9803 (coerce_ref): Support for enclosing type setting for references
9804 with readjust_indirect_value_type.
9805 * value.h (readjust_value_type): New declaration.
9806 (value_rtti_target_type): Rename to ...
9807 (value_rtti_indirect_type): ... here.
9808
02568277
AG
98092012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9810
9811 * MAINTAINERS (Write After Approval): Add myself to the list.
9812
10c07b7e 98132012-02-20 Doug Evans <dje@google.com>
28ee876a 9814
d82ea6a8
DE
9815 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9816 Rename objfile_p_char parameter to objfilep.
9817 (build_objfile_section_table): Result is now void. All callers
9818 updated.
9819 * objfiles.h (struct objfile): Tweak comments, whitespace.
9820 (build_objfile_section_table): Update.
9821
28ee876a
DE
9822 * elfread.c (elf_symfile_segments): Fix warning text.
9823
24c79950
TT
98242012-02-20 Tom Tromey <tromey@redhat.com>
9825
9826 PR gdb/13498:
9827 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9828 particular set of file names once.
9829 (dw2_map_symbol_filenames): Likewise.
9830
3a9b40b6
JK
98312012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9832
9833 Code cleanup.
9834 * main.c (write_files): Remove the declaration.
9835 (external_editor_command): Move the declaration ...
9836 [GDBTK] (external_editor_command): ... here. Fix the comment.
9837
4d0795ca
TT
98382012-02-20 Tom Tromey <tromey@redhat.com>
9839
9840 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9841 extraneous block.
9842
637fd620
TG
98432012-02-20 Tristan Gingold <gingold@adacore.com>
9844
9845 * darwin-nat.h (enum darwin_msg_state): Add comments.
9846
6f124894
TG
98472012-02-20 Tristan Gingold <gingold@adacore.com>
9848
9849 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9850 value.
9851
2e6e3d9c
JB
98522012-20-18 Joel Brobecker <brobecker@adacore.com>
9853
9854 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9855 between function description and implementation.
9856
2e8265fd
TT
98572012-02-17 Tom Tromey <tromey@redhat.com>
9858
9859 PR python/12070:
9860 * python/py-event.c (event_object_getset): New global.
9861 (event_object_type): Reference it.
9862 * python/py-type.c (field_object_getset): New global.
9863 (field_object_type): Reference it.
9864 * python/python-internal.h (gdb_py_generic_dict): Declare.
9865 * python/py-utils.c (gdb_py_generic_dict): New function.
9866
8544a150 98672012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9868
8544a150 9869 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9870
ca193e27
TS
98712012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9872
9873 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9874 TYPE_CALLING_CONVENTION annotation.
9875
e5586183
KB
98762012-02-16 Kevin Buettner <kevinb@redhat.com>
9877
9878 * MAINTAINERS: Add rx to target ISA section.
9879 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9880 (ALLDEPFILES): Add rx-tdep.c.
9881
7dcd53a0
TT
98822012-02-16 Tom Tromey <tromey@redhat.com>
9883
9884 * symfile.c (symbol_file_add_main_1): Use inferior's
9885 symfile_flags.
9886 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9887 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9888 inferior.
9889 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9890 inferior.
9891 (follow_exec): Use inferior's symfile_flags.
9892 * inferior.h (struct inferior) <symfile_flags>: New field.
9893
ddd60447
MF
98942012-02-16 Mike Frysinger <vapier@gentoo.org>
9895
9896 PR gdb/9734:
9897 * remote-sim.c (gdbsim_create_inferior): Call error() when
9898 sim_create_inferior() fails.
9899
b0d32fb6
TG
99002012-02-16 Josh Matthews <josh@joshmatthews.net>
9901
9902 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9903
9addecb9
TT
99042012-02-16 Tom Tromey <tromey@redhat.com>
9905
9906 PR c++/13653:
9907 * thread.c (struct current_thread_cleanup) <was_removable>: New
9908 field.
9909 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9910 (make_cleanup_restore_current_thread): Initialize new field.
9911
a58b110a
KB
99122012-02-15 Kevin Buettner <kevinb@redhat.com>
9913
9914 * MAINTAINERS: Add rl78 to target ISA section.
9915 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9916 (ALLDEPFILES): Add rl78-tdep.c.
9917 * NEWS: Mention rl78 as a new target.
9918
4cb6da1c
AR
99192012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9920
9921 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9922 data.
9923 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9924
3af2590d
TT
99252012-02-15 Tom Tromey <tromey@redhat.com>
9926
9927 PR gdb/12659:
9928 * infcmd.c (registers_info): Print just the current register's
9929 name.
9930
c6910659
TT
99312012-02-15 Tom Tromey <tromey@redhat.com>
9932
9933 * python/py-symbol.c (sympy_value): Use _().
9934
7cee1e54
PA
99352012-02-15 Pedro Alves <palves@redhat.com>
9936
9937 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9938 output to be like native targets'.
9939 (remote_pid_to_str): Special case the null ptid.
9940
816338b5
SS
99412012-02-14 Stan Shebs <stan@codesourcery.com>
9942
9943 * NEWS: Mention enable count command.
9944 * breakpoint.h (struct breakpoint): New field enable_count.
9945 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9946 (enable_breakpoint): Add arg to call.
9947 (struct disp_data): New struct.
9948 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9949 (do_map_enable_once_breakpoint): Create a struct and pass it.
9950 (do_map_enable_delete_breakpoint): Ditto.
9951 (do_map_enable_count_breakpoint): New function.
9952 (enable_count_command): New function.
9953 (bpstat_stop_status): Decrement enable_count.
9954 (print_one_breakpoint_location): Report enable count.
9955 (_initialize_breakpoint): Add enable count command.
9956
c47a44f4
KB
99572012-02-14 Kevin Buettner <kevinb@redhat.com>
9958
9959 * rl78-tdep.c (reggroups.h): Include.
9960 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9961 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9962 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9963 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9964 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9965 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9966 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9967 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9968 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9969 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9970 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9971 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9972 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9973 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9974 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9975 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9976 beginning of register list.
9977 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9978 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9979 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9980 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9981 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9982 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9983 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9984 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9985 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9986 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9987 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9988 the pseudo registers. Rearrange other pseudo registers too so
9989 that the bank registers appear at the end.
9990 (rl78_register_type): Account for the fact that the byte sized
9991 bank registers are now pseudo-registers.
9992 (rl78_register_name): Rearrange the register name array. Make
9993 initial set of raw banked registers inaccessible.
9994 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9995 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9996 case for copying bytes back and forth between raw and pseudo
9997 versions of the banked registers. Update other cases to reflect
9998 the changed names.
9999 (rl78_return_value): Update to account for changed names of
10000 raw registers.
10001 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10002 rl78_register_sim_regno().
10003
e4569f1e
KB
100042012-02-14 Kevin Buettner <kevinb@redhat.com>
10005
10006 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10007 the name parameter being passed to find_pc_partial_function().
10008
7a05aae7
JK
100092012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10010
10011 * MAINTAINERS: Step down from being ia64 target maintainer.
10012
11fde611
JK
100132012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10016 compilation warning.
10017
57008375
JK
100182012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10019
10020 Fix crash on loaded shlibs without loaded exec_bfd.
10021 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10022 (set_section_command): Replace exec_bfd by p->bfd.
10023
ff3c9849
TT
100242012-02-10 Tom Tromey <tromey@redhat.com>
10025
10026 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10027 when we have a C++ qualified name.
10028
db2b9fdd
PA
100292012-02-10 Pedro Alves <palves@redhat.com>
10030
10031 * inferior.c (inferior_pid_to_str): New.
10032 (print_inferior, inferior_command): Use it.
10033
12cd34f3
PA
100342012-02-10 Pedro Alves <palves@redhat.com>
10035
10036 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10037 the test CFLAGS.
10038 * configure: Regenerate.
10039
e871429d
JK
100402012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 * linespec.c (decode_line_internal): Fix comment correctness.
10043
1916efaf
PA
100442012-02-09 Valery Khromov <valery.khromov@gmail.com>
10045
10046 PR gdb/12953
10047 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10048 * amd64bsd-nat.c: Add support for debug registers (adapted from
10049 i386bsd-nat.c).
10050 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10051 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10052 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10053 (amd64bsd_dr_get_control): New functions.
10054 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10055 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10056 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10057 watchpoints initialization.
10058 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10059
f4859d94
JK
100602012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10061
10062 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10063 flds_bnds.fields.
10064 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10065
c56a97f9
JK
100662012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10067
10068 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10069
1a119f36
JB
100702012-02-08 Joel Brobecker <brobecker@adacore.com>
10071
10072 * language.h (symbol_name_cmp_ftype): Renames
10073 symbol_name_match_p_ftype.
10074 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10075 la_get_symbol_name_match_p.
10076 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10077 ada_get_symbol_name_match_p. Update comment.
10078 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10079 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10080 Renames symbol_name_match_p. Update field type.
10081 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10082 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10083 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10084 "la_get_symbol_name_cmp" in comments.
10085 * language.c: Likewise.
10086
c71bb1cf
RO
100872012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10088
10089 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10090 %eflags offset.
10091 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10092 (amd64_sol2_gregset32_reg_offs): Likewise.
10093
4b2d20a5
TG
100942012-02-08 Joel Brobecker <brobecker@adacore.com>
10095
10096 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10097 of the returned BFD is allocated by GDB.
10098
f0823d2c
TT
100992012-02-07 Tom Tromey <tromey@redhat.com>
10100
10101 PR python/12027:
10102 * python/python-internal.h (frame_object_type): Declare.
10103 * python/py-symbol.c (sympy_needs_frame): New function.
10104 (sympy_value): New function.
10105 (symbol_object_getset): Add "needs_frame".
10106 (symbol_object_methods): Add "value".
10107 * python/py-frame.c (frame_object_type): No longer static.
10108
64e7d9dd
TT
101092012-02-07 Tom Tromey <tromey@redhat.com>
10110
10111 PR python/13599:
10112 * python/py-symbol.c (sympy_line): New function.
10113 (symbol_object_getset): Add "line".
10114
1d6b2d2b
TT
101152012-02-07 Tom Tromey <tromey@redhat.com>
10116
10117 * charset.c (find_charset_names): Check 'in' against NULL.
10118
0d5cff50
DE
101192012-02-06 Doug Evans <dje@google.com>
10120
10121 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10122 and fields.name members from char * to const char *. All uses updated.
10123 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10124 from char * to const char *. All uses updated.
10125 (type_name_no_tag): Update.
10126 (lookup_unsigned_typename, lookup_signed_typename): Update.
10127 * gdbtypes.c (type_name_no_tag): Change result type
10128 from char * to const char *. All callers updated.
10129 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10130 name parameter from char * to const char *.
10131 * symtab.h (struct cplus_specific): Change type of demangled_name
10132 member from char * to const char *. All uses updated.
10133 (struct general_symbol_info): Change type of name and
10134 mangled_lang.demangled_name members from char * to const char *.
10135 All uses updated.
10136 (symbol_get_demangled_name, symbol_natural_name): Update.
10137 (symbol_demangled_name, symbol_search_name): Update.
10138 * symtab.c (symbol_get_demangled_name): Change result type
10139 from char * to const char *. All callers updated.
10140 (symbol_natural_name, symbol_demangled_name): Ditto.
10141 (symbol_search_name): Ditto.
10142 (completion_list_add_name): Change type of symname,sym_text,
10143 text,word parameters from char * to const char *.
10144 (completion_list_objc_symbol): Change type of sym_text,
10145 text,word parameters from char * to const char *.
10146 * ada-lang.c (find_struct_field): Change type of name parameter
10147 from char * to const char *.
10148 (encoded_ordered_before): Similarly for N0,N1 parameters.
10149 (old_renaming_is_invisible): Similarly for function_name parameter.
10150 (ada_type_name): Change result type from char * to const char *.
10151 All callers updated.
10152 * ada-lang.h (ada_type_name): Update.
10153 * buildsym.c (hashname): Change type of name parameter
10154 from char * to const char *.
10155 * buildsym.h (hashname): Update.
10156 * dbxread.c (end_psymtab): Change type of include_list parameter
10157 from char ** to const char **.
10158 * dwarf2read.c (determine_prefix): Change result type
10159 from char * to const char *. All callers updated.
10160 * f-lang.c (find_common_for_function): Change type of name, funcname
10161 parameters from char * to const char *.
10162 * f-lang.c (find_common_for_function): Update.
10163 * f-valprint.c (list_all_visible_commons): Change type of funcname
10164 parameters from char * to const char *.
10165 * gdbarch.sh (static_transform_name): Change type of name parameter
10166 and result from char * to const char *.
10167 * gdbarch.c: Regenerate.
10168 * gdbarch.h: Regenerate.
10169 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10170 of name parameter from char * to const char *.
10171 * jv-lang.c (java_primitive_type_from_name): Ditto.
10172 (java_demangled_signature_length): Similarly for signature parameter.
10173 (java_demangled_signature_copy): Ditto.
10174 (java_demangle_type_signature): Ditto.
10175 * jv-lang.h (java_primitive_type_from_name): Update.
10176 (java_demangle_type_signature): Update.
10177 * objc-lang.c (specialcmp): Change type of a,b parameters
10178 from char * to const char *.
10179 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10180 from char * to const char *. All callers updated.
10181 * p-lang.h (is_pascal_string_type): Update.
10182 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10183 of name parameter from char * to const char *.
10184 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10185 * utils.c (fprintf_symbol_filtered): Ditto.
10186 * defs.h (fprintf_symbol_filtered): Update.
10187 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10188 * stabsread.h (end_psymtab): Update.
10189 * stack.c (find_frame_funname): Change type of funname parameter
10190 from char ** to const char **.
10191 * stack.h (find_frame_funname): Update.
10192 * typeprint.c (type_print): Change type of varstring parameter
10193 from char * to const char *.
10194 * value.h (type_print): Update.
10195 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10196 from char * to const char *. All callers updated.
10197 (xcoff_end_psymtab): Change type of include_list parameter
10198 from char ** to const char **. All callers updated.
10199 (swap_sym): Similarly for name parameter. All callers updated.
10200 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10201 Use xstrdup.
10202 (process_coff_symbol): Use xstrdup.
10203 * stabsread.c (stabs_method_name_from_physname): Renamed from
10204 update_method_name_from_physname. Change result type from void
10205 to char *. All callers updated.
10206 (read_member_functions): In has_destructor case, store name in objfile
10207 obstack instead of malloc space. In !has_stub case, fix mem leak.
10208
5579a92e
TT
102092012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10210
10211 * configure: Rebuild.
10212 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10213 LDFLAGS.
10214
9058f767
KB
102152012-02-03 Kevin Buettner <kevinb@redhat.com>
10216
10217 * configure.tgt (rl78-*-elf): New target.
10218 * rl78-tdep.c: New file.
10219
5b37825d
PW
102202012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10221
10222 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10223 and continue the loop. Add QUIT statement.
10224
e009ee71
TT
102252012-02-03 Tom Tromey <tromey@redhat.com>
10226
10227 PR gdb/13596:
10228 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10229 bfd_lookup_symbol_from_symtab.
10230 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10231 gdb_bfd_lookup_symbol_from_symtab.
10232
f7e44f65
JB
102332012-02-03 Joel Brobecker <brobecker@adacore.com>
10234
10235 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10236 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10237 symbol. Add assertion that sym2 is never NULL.
10238
2c02bd72
DE
102392012-02-02 Doug Evans <dje@google.com>
10240
10241 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10242 "name" parameter to const char ** from char **. All callers updated.
10243 (find_pc_partial_function): Ditto.
10244 (cache_pc_function_name): Change type to const char * from char *.
10245 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10246 (find_pc_partial_function): Update.
10247 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10248 type of "name" parameter to const char * from char *.
10249 All uses updated.
10250 * arch-utils.c (generic_in_solib_return_trampoline): Change
10251 type of "name" parameter to const char * from char *.
10252 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10253 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10254 type of "name" parameter to const char * from char *.
10255 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10256 * gdbarch.c: Regenerate.
10257 * gdbarch.h: Regenerate.
10258 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10259 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10260 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10261 type of "name" parameter to const char * from char *.
10262 * skip.c (skip_function_pc): Ditto.
10263 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10264 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10265 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10266 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10267 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10268 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10269 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10270 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10271 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10272
e886a173
PA
102732012-02-02 Pedro Alves <palves@redhat.com>
10274
10275 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10276 the current inferior has no execution. Make sure the current
10277 remote process matches gdb's current inferior.
10278
c709a7c2
TT
102792012-02-02 Tom Tromey <tromey@redhat.com>
10280
10281 PR gdb/13405:
10282 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10283 read-only memory.
10284
f149aabd
TT
102852012-02-02 Tom Tromey <tromey@redhat.com>
10286
10287 PR gdb/9307:
10288 * symtab.c (lookup_language_this): Set block_found.
10289
03bef283
TT
102902012-02-01 Tom Tromey <tromey@redhat.com>
10291
10292 PR gdb/13431:
10293 * jit.c (struct jit_inferior_data): Rewrite.
10294 (struct jit_objfile_data): New.
10295 (get_jit_objfile_data): New function.
10296 (add_objfile_entry): Update.
10297 (jit_read_descriptor): Return int. Replace descriptor_addr
10298 argument with inf_data. Update. Don't call error.
10299 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10300 descriptor here.
10301 (jit_inferior_init): Don't look up descriptor. Don't call error.
10302 (jit_reset_inferior_data_and_breakpoints)
10303 (jit_inferior_created_observer): Remove.
10304 (jit_inferior_exit_hook): Update.
10305 (jit_executable_changed_observer): Remove.
10306 (jit_event_handler): Update.
10307 (free_objfile_data): Reset inferior data if needed.
10308 (_initialize_jit): Update.
10309
f0bbc364
TT
103102012-02-01 Tom Tromey <tromey@redhat.com>
10311
10312 * jit.c (bfd_open_from_target_memory): Move higher in file.
10313
47c1316c
TG
103142012-02-01 Tristan Gingold <gingold@adacore.com>
10315
10316 * libunwind-frame.c (libunwind_load): Display message if dlopen
10317 failed.
10318
8e704927
GB
103192012-02-01 Gary Benson <gbenson@redhat.com>
10320
09c7a31f 10321 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10322 (iterate_over_symbols): Use the above.
10323 * symtab.c (iterate_over_symbols): Likewise.
10324 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10325 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10326 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10327 (iterate_name_matcher): Document return values.
10328 (collect_one_symbol): Likewise.
10329 (collect_function_symbols): Likewise.
10330 (collect_symbols): Likewise.
10331
d9680e73
TT
103322012-02-01 Tom Tromey <tromey@redhat.com>
10333
10334 * ada-lang.c (resolve_subexp): Update.
10335 (ada_lookup_symbol_list): Add 'full_search' argument.
10336 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10337 ada_lookup_symbol_list.
10338 (ada_lookup_encoded_symbol): Update.
10339 (get_var_value): Update.
10340 * ada-exp.y (block_lookup): Update.
10341 (write_var_or_type): Update.
10342 (write_name_assoc): Update.
10343 * ada-lang.h (ada_lookup_symbol_list): Update.
10344
72e1143f
TT
103452012-01-31 Tom Tromey <tromey@redhat.com>
10346
10347 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10348 comment.
10349
ab2d2ad3
DE
103502012-01-31 Doug Evans <dje@google.com>
10351
10352 * symtab.h: Remove outdated comment.
e9111bf7 10353 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10354
bc884eba
JB
103552012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10356
10357 Fix build error in Darwin port.
10358 * i386-darwin-nat.c: Include i386-nat.h.
10359
8fc3fc34
TT
103602012-01-30 Tom Tromey <tromey@redhat.com>
10361
10362 PR breakpoints/13568:
10363 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10364 argument. Check for recursive includes.
10365 (dwarf_decode_macros): Create an include hash.
10366
5d853008
ME
103672012-01-30 Michael Eager <eager@eagercon.com>
10368
10369 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10370 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10371 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10372 (powerpc_linux_in_plt_stub): New function.
10373 (powerpc_linux_in_dynsym_resolve_code): New function.
10374 (ppc_skip_trampoline_code): New function.
10375 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10376 Use glibc_skip_solib_resolver.
10377
40478521
JK
103782012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10379
10380 Code cleanup: Make 1440 bytes of data segment read-only.
10381 * arch-utils.c (endian_enum): Make it const char *const [].
10382 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10383 Likewise.
10384 * breakpoint.c (always_inserted_enums): Likewise.
10385 * cli/cli-cmds.c (script_ext_enums): Likewise.
10386 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10387 enumlist parameter const char *const *.
10388 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10389 const char *const *.
10390 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10391 parameter const char *const *.
10392 * cris-tdep.c (cris_modes): Make it const char *const [].
10393 * filesystem.c (target_file_system_kinds): Likewise.
10394 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10395 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10396 (can_use_displaced_stepping_enum, scheduler_enums)
10397 (exec_direction_names): Likewise.
10398 * language.c (_initialize_language): Make the type_or_range_names and
10399 case_sensitive_names variables const char *const [].
10400 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10401 * python/python.c (python_excp_enums): Likewise.
10402 * remote.c (interrupt_sequence_modes): Likewise.
10403 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10404 * serial.c (logbase_enums): Likewise.
10405 * sh-tdep.c (sh_cc_enum): Likewise.
10406 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10407 Likewise.
10408 * symtab.c (multiple_symbols_modes): Likewise.
10409 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10410 Likewise.
10411 * utils.c (internal_problem_modes): Likewise.
10412
b3b8b934
JK
104132012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10414
10415 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10416 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10417 result.
10418
8c85a4e2
DE
104192012-01-27 Doug Evans <dje@google.com>
10420
10421 * configure.ac (with_python): Fix absolute path handling for win32.
10422 * configure: Regenerate.
10423
78d8b4d7
DE
104242012-01-26 Doug Evans <dje@google.com>
10425
eca864fe
DE
10426 * symtab.c: Whitespace cleanup, no code changes.
10427
7e082072
DE
10428 * symtab.c (lookup_symbol_in_language): Improve comment.
10429 (lookup_symbol_aux): Fix comment.
10430
7dc25483
DE
10431 * psymtab.c (add_psymbol_to_list): Result is now "void".
10432 * psympriv.h (add_psymbol_to_list): Update.
10433
78d8b4d7
DE
10434 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10435
4c63965b
JK
104362012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10437
10438 Do not open script filenames twice.
10439 * cli/cli-cmds.c (source_script_from_stream): Pass to
10440 source_python_script also STREAM.
10441 * python/py-auto-load.c (source_section_scripts): Pass to
10442 source_python_script_for_objfile also STREAM.
10443 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10444 also INPUT.
10445 * python/python-internal.h (source_python_script_for_objfile): New
10446 parameter file, rename parameter file to filename.
10447 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10448 instead if !_WIN32. Update the function comment.
10449 (source_python_script, source_python_script_for_objfile)
10450 (source_python_script): New parameter file, rename parameter file to
10451 filename. Pass FILENAME to python_run_simple_file.
10452 * python/python.h (source_python_script): New parameter file, rename
10453 parameter file to filename.
10454
88f38a04
PA
104552012-01-26 Pedro Alves <palves@redhat.com>
10456
10457 * corelow.c (core_has_fake_pid): Delete.
10458 (core_close): Delete references to `core_has_fake_pid'.
10459 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10460 (core_open): Delete references to `core_has_fake_pid'.
10461 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10462 the removed global.
10463
e078317b
JB
104642012-01-26 Joel Brobecker <brobecker@adacore.com>
10465
10466 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10467 Remove language parameter from name_matcher. Adjust the comment.
10468 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10469 Remove language parameter.
10470 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10471 * linespec.c (iterate_name_matcher): Likewise.
10472 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10473 name_matcher. Adjust call accordingly.
10474 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10475 (maintenance_check_symtabs): Adjust type of parameter "fun".
10476 * psymtab.h (maintenance_check_symtabs): Likewise.
10477
74ccd7f5
JB
104782012-01-26 Joel Brobecker <brobecker@adacore.com>
10479
10480 * language.h (symbol_name_match_p_ftype): New typedef.
10481 (struct language_defn): Replace field la_symbol_name_compare
10482 by la_get_symbol_name_match_p.
10483 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10484 (ada_language_defn): Use it.
10485 * linespec.c (struct symbol_matcher_data): New type.
10486 (iterate_name_matcher): Rewrite.
10487 (iterate_over_all_matching_symtabs): Pass a pointer to
10488 a symbol_matcher_data struct to expand_symtabs_matching
10489 instead of just the lookup name.
10490 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10491 opencl-lang.c, p-lang.c, language.c: Delete field
10492 la_symbol_name_compare, and replace by NULL for new field
10493 la_get_symbol_name_match_p.
10494 * symfile.h (struct quick_symbol_functions): Update comment.
10495
5d268276
TT
104962012-01-25 Tom Tromey <tromey@redhat.com>
10497
10498 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10499 dereferencing.
10500
edcc5120
TT
105012012-01-24 Tom Tromey <tromey@redhat.com>
10502
10503 PR symtab/12406:
10504 * solib.c (update_solib_list): Update the program space's
10505 added_solibs and deleted_solibs fields.
10506 * progspace.h (struct program_space) <added_solibs,
10507 deleted_solibs>: New fields.
10508 (clear_program_space_solib_cache): Declare.
10509 * progspace.c (release_program_space): Call
10510 clear_program_space_solib_cache.
10511 (clear_program_space_solib_cache): New function.
10512 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10513 bpstat_stop_status. Use handle_solib_event.
10514 * breakpoint.c: Include gdb_regex.h.
10515 (print_solib_event): New function.
10516 (bpstat_print): Use print_solib_event.
10517 (bpstat_stop_status): Add special case for bp_shlib_event.
10518 (handle_solib_event): New function.
10519 (bpstat_what): Use handle_solib_event.
10520 (struct solib_catchpoint): New.
10521 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10522 (breakpoint_hit_catch_solib, check_status_catch_solib)
10523 (print_it_catch_solib, print_one_catch_solib)
10524 (print_mention_catch_solib, print_recreate_catch_solib): New
10525 functions.
10526 (catch_solib_breakpoint_ops): New global.
10527 (catch_load_or_unload, catch_load_command_1)
10528 (catch_unload_command_1): New functions.
10529 (internal_bkpt_check_status): Add special case for
10530 bp_shlib_event.
10531 (internal_bkpt_print_it): Use print_solib_event.
10532 (initialize_breakpoint_ops): Initialize
10533 catch_solib_breakpoint_ops.
10534 (_initialize_breakpoint): Register "catch load" and "catch
10535 unload".
10536 * breakpoint.h (handle_solib_event): Declare.
10537 * NEWS: Add entry for "catch load" and "catch unload".
10538
fa864999
TT
105392012-01-24 Tom Tromey <tromey@redhat.com>
10540
10541 * ada-lang.c: Include gdb_vecs.h.
10542 * charset.c: Include gdb_vecs.h.
10543 * tracepoint.h: Include gdb_vecs.h.
10544 * gdb_vecs.h: New file.
10545
f90263c1
TT
105462012-01-24 Pedro Alves <pedro@codesourcery.com>
10547
10548 * breakpoint.c (breakpoint_hit_catch_fork)
10549 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10550 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10551 * infrun.c (inferior_has_forked, inferior_has_vforked)
10552 (inferior_has_execd, inferior_has_called_syscall): Delete.
10553 (handle_syscall_event): Get syscall_number from the execution
10554 control state's wait status.
10555 (wait_for_inferior): Don't clear syscall_number.
10556
09ac7c10
TT
105572012-01-24 Pedro Alves <palves@redhat.com>
10558
10559 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10560 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10561 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10562 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10563 `ws' parameter.
10564 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10565 false for events other than TARGET_SIGNAL_TRAP.
10566 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10567 Add `ws' parameter.
10568 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10569 events other than TARGET_SIGNAL_TRAP.
10570 (tracepoint_breakpoint_hit): Add `ws' parameter.
10571 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10572 parameter.
10573 (bpstat_stop_status): Same.
10574 (pc_at_non_inline_function): Same.
10575 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10576 to pass the current event's waitstatus to bpstat_stop_status
10577 and pc_at_non_inline_function.
10578
86eb7e95
JK
105792012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10580
10581 Code cleanup.
10582 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10583 Update the function comment for it.
10584 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10585 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10586 for STREAM.
10587
a9b3a50f
PA
105882012-01-24 Pedro Alves <palves@redhat.com>
10589
10590 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10591 outside `bs->stop' block.
10592 (bpstat_what): Rework bp_shlib_event handling.
10593 (internal_bkpt_check_status): If the breakpoint is a
10594 bp_shlib_event, then set bs->stop and bs->print if
10595 stop_on_solib_events is set.
10596
53fe1783
GB
105972012-01-24 Gary Benson <gbenson@redhat.com>
10598
10599 Delete #if 0'd out code.
10600 * stack.c (print_frame_label_vars): Remove.
10601 (catch_info): Likewise.
10602 (_initialize_stack): Remove "info catch" command.
10603 * NEWS: Mention the above.
10604
49c62f2e
PA
106052012-01-24 Pedro Alves <palves@redhat.com>
10606
10607 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10608 it.
10609 (remote_notice_new_inferior): If the remote end doesn't support
10610 the multiprocess extensions, then the PID is fake.
10611 (add_current_inferior_and_thread): New.
10612 (remote_start_remote): Use it.
10613 (extended_remote_attach_1): Adjust.
10614 (extended_remote_create_inferior_1): Use
10615 add_current_inferior_and_thread.
10616
d0d8b0c6
JK
106172012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 Fix watchpoints to be specific for each inferior.
10620 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10621 current_program_space.
10622 * i386-nat.c (i386_inferior_data_cleanup): New.
10623 (i386_inferior_data_get): Replace variable inf_data_local by an
10624 inferior_data call.
10625 (i386_use_watchpoints): Initialize i386_inferior_data.
10626 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10627 specific iterate_over_lwps.
10628
4403d8e9
JK
106292012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 Fix watchpoints across inferior fork.
10632 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10633 comment for linux_nat_iterate_watchpoint_lwps.
10634 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10635 linux_nat_iterate_watchpoint_lwps.
10636 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10637 * i386-linux-nat.c (update_debug_registers_callback): Update the
10638 comment for linux_nat_iterate_watchpoint_lwps.
10639 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10640 linux_nat_iterate_watchpoint_lwps.
10641 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10642 * i386-nat.c: Include inferior.h.
10643 (dr_mirror): Remove.
10644 (i386_inferior_data, struct i386_inferior_data)
10645 (i386_inferior_data_get): New.
10646 (i386_debug_reg_state): Use i386_inferior_data_get.
10647 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10648 (i386_insert_watchpoint, i386_remove_watchpoint)
10649 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10650 (i386_remove_hw_breakpoint): New variable state, use
10651 i386_debug_reg_state instead of DR_MIRROR.
10652 * linux-nat.c (delete_lwp): New declaration.
10653 (num_lwps): Move here from downwards.
10654 (delete_lwp_cleanup): New.
10655 (linux_child_follow_fork): Create new child_lp, call
10656 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10657 PTRACE_DETACH.
10658 (num_lwps): Move upwards.
10659 (linux_nat_iterate_watchpoint_lwps): New.
10660 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10661 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10662
2992c9a7 106632012-01-24 Joel Brobecker <brobecker@adacore.com>
10664
10665 GDB 7.4 released.
10666
e360902b
PA
106672012-01-23 Pedro Alves <palves@redhat.com>
10668
10669 * top.c (caution): Rename to ...
10670 (confirm): ... this.
10671 (show_caution): Rename to ...
10672 (show_confirm): ... this.
10673 (quit_cover): Adjust.
10674 (init_main): Adjust.
10675 * top.h (caution): Rename to ...
10676 (confirm): ... this.
10677 * utils.c (internal_vproblem, defaulted_query): Adjust.
10678
050a2e1d
PA
106792012-01-23 Pedro Alves <palves@redhat.com>
10680
10681 * top.c (caution): Update comment.
10682 (execute_command): Don't consider the current value of `caution'.
10683
77a35dd8
JK
106842012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10685
10686 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10687
a71b5a38
UW
106882012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10689
10690 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10691 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10692 * target.c (target_fileio_pwrite): Remove buffer address from
10693 debug output.
10694 (target_fileio_pread): Likewise.
10695
d99bd577
UW
106962012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10697
10698 * NEWS: Document remote "info proc" and "generate-core-file".
10699
35c2fab7
UW
107002012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10701
10702 * gdbarch.sh (find_memory_regions): New callback.
10703 * gdbarch.c, gdbarch.h: Regenerate.
10704
10705 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10706 callback before falling back to target method.
10707
10708 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10709 (linux_target_install_ops): No longer install it.
10710
10711 * linux-tdep.c (linux_find_memory_regions): New function.
10712 (linux_init_abi): Install it.
10713
6432734d
UW
107142012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10715
10716 * gdbarch.sh (make_corefile_notes): New architecture callback.
10717 * gdbarch.c: Regenerate.
10718 * gdbarch.h: Likewise.
10719
10720 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10721 before target_make_corefile_notes. If NULL is returned, the
10722 target does not support core file generation.
10723
10724 * linux-nat.c: Include "linux-tdep.h".
10725 (find_signalled_thread, find_stop_signal): Remove.
10726 (linux_nat_do_thread_registers): Likewise.
10727 (struct linux_nat_corefile_thread_data): Likewise.
10728 (linux_nat_corefile_thread_callback): Likewise.
10729 (iterate_over_spus): Likewise.
10730 (struct linux_spu_corefile_data): Likewise.
10731 (linux_spu_corefile_callback): Likewise.
10732 (linux_spu_make_corefile_notes): Likewise.
10733 (linux_nat_collect_thread_registers): New function.
10734 (linux_nat_make_corefile_notes): Replace contents by call to
10735 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10736 as native-only callback.
10737
10738 * linux-tdep.h: Include "bfd.h".
10739 (struct regcache): Add forward declaration.
10740 (linux_collect_thread_registers_ftype): New typedef.
10741 (linux_make_corefile_notes): Add prototype.
10742 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10743 "regset.h", and "elf-bfd.h".
10744 (find_signalled_thread, find_stop_signal): New functions.
10745 (linux_spu_make_corefile_notes): Likewise.
10746 (linux_collect_thread_registers): Likewise.
10747 (struct linux_corefile_thread_data): New data structure.
10748 (linux_corefile_thread_callback): New funcion.
10749 (linux_make_corefile_notes): Likewise.
10750 (linux_make_corefile_notes_1): Likewise.
10751 (linux_init_abi): Install it.
10752
3030c96e
UW
107532012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10754
10755 * gdbarch.sh (info_proc): New callback.
10756 * gdbarch.c, gdbarch.h: Regenerate.
10757
10758 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10759 before falling back to the target info_proc callback.
10760
10761 * linux-nat.c: Do not include "cli/cli-utils.h".
10762 (linux_nat_info_proc): Remove.
10763 (linux_target_install_ops): No longer install it.
10764
10765 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10766 (read_mapping): New function.
10767 (linux_info_proc): Likewise.
10768 (linux_init_abi): Install it.
10769
145b16a9
UW
107702012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10771
10772 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10773 * infcmd.c: (info_proc_cmd_1): New function.
10774 (info_proc_cmd): New function, moved here from equivalent routine
10775 orignally in linux-nat.c.
10776 (info_proc_cmd_mappings): Likewise.
10777 (info_proc_cmd_stat): Likewise.
10778 (info_proc_cmd_status): Likewise.
10779 (info_proc_cmd_cwd): Likewise.
10780 (info_proc_cmd_cmdline): Likewise.
10781 (info_proc_cmd_exe): Likewise.
10782 (info_proc_cmd_all): Likewise.
10783 (_initialize_infcmd): Install "info proc" command and subcommands.
10784
10785 * target.h (struct target_ops): Add to_info_proc.
10786 (target_info_proc): Add prototype.
10787 * target.c (target_info_proc): New function.
10788
10789 * procfs.c (procfs_info_proc): Add prototype.
10790 (info_proc_cmd): Rename into ...
10791 (procfs_info_proc): ... this. Update argument types as appropriate
10792 for a to_info_proc implementation. Handle "what" argument.
10793 (procfs_target): Install procfs_info_proc.
10794 (_initialize_procfs): No longer install "info proc" command.
10795
10796 * linux-nat.c: (enum info_proc_what): Remove.
10797 (linux_nat_info_proc_cmd_1): Rename into ...
10798 (linux_nat_info_proc): ... this. Update argument types as appropriate
10799 for a to_info_proc implementation.
10800 (linux_nat_info_proc_cmd): Remove.
10801 (linux_nat_info_proc_cmd_mappings): Likewise.
10802 (linux_nat_info_proc_cmd_stat): Likewise.
10803 (linux_nat_info_proc_cmd_status): Likewise.
10804 (linux_nat_info_proc_cmd_cwd): Likewise.
10805 (linux_nat_info_proc_cmd_cmdline): Likewise.
10806 (linux_nat_info_proc_cmd_exe): Likewise.
10807 (linux_nat_info_proc_cmd_all): Likewise.
10808 (linux_target_install_ops): Install linux_nat_info_proc.
10809 (_initialize_linux_nat): No longer install "info proc" command
10810 and subcommands.
10811
b9e7b9c3
UW
108122012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10813
10814 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10815 * config.in, configure: Regenerate.
10816
10817 * target.h (struct target_ops): Add to_fileio_readlink.
10818 (target_fileio_readlink): Add prototype.
10819 * target.c (target_fileio_readlink): New function.
10820
10821 * inf-child.c: Conditionally include <sys/param.h>.
10822 (inf_child_fileio_readlink): New function.
10823 (inf_child_target): Install it.
10824
10825 * remote.c (PACKET_vFile_readlink): New enum value.
10826 (remote_hostio_readlink): New function.
10827 (init_remote_ops): Install it.
10828 (_initialize_remote): Handle vFile:readlink packet type.
10829
7313baad
UW
108302012-01-20 Pedro Alves <palves@redhat.com>
10831 Ulrich Weigand <ulrich.weigand@linaro.org>
10832
10833 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10834 * config.in, configure: Regenerate.
10835
10836 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10837 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10838 (target_fileio_open): Add prototype.
10839 (target_fileio_pwrite): Likewise.
10840 (target_fileio_pread): Likewise.
10841 (target_fileio_close): Likewise.
10842 (target_fileio_unlink): Likewise.
10843 (target_fileio_read_alloc): Likewise.
10844 (target_fileio_read_stralloc): Likewise.
10845
10846 * target.c: Include "gdb/fileio.h".
10847 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10848 (default_fileio_target): New function.
10849 (target_fileio_open): Likewise.
10850 (target_fileio_pwrite): Likewise.
10851 (target_fileio_pread): Likewise.
10852 (target_fileio_close): Likewise.
10853 (target_fileio_unlink): Likewise.
10854 (target_fileio_close_cleanup): Likewise.
10855 (target_fileio_read_alloc_1): Likewise.
10856 (target_fileio_read_alloc): Likewise.
10857 (target_fileio_read_stralloc): Likewise.
10858
10859 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10860 <fcntl.h>, and <unistd.h>.
10861 (inf_child_fileio_open_flags_to_host): New function.
10862 (inf_child_errno_to_fileio_error): Likewise.
10863 (inf_child_fileio_open): Likewise.
10864 (inf_child_fileio_pwrite): Likewise.
10865 (inf_child_fileio_pread): Likewise.
10866 (inf_child_fileio_close): Likewise.
10867 (inf_child_fileio_unlink): Likewise.
10868 (inf_child_target): Install to_fileio routines.
10869
10870 * remote.c (init_remote_ops): Install to_fileio routines.
10871
901f9912
UW
108722012-01-20 Pedro Alves <palves@redhat.com>
10873 Ulrich Weigand <ulrich.weigand@linaro.org>
10874
10875 * remote.c (remote_multi_process_p): Only check for multi-process
10876 protocol feature, do not check for extended protocol.
10877 (remote_supports_multi_process): Check for extended protocol here.
10878 (set_general_process): Likewise.
10879 (extended_remote_kill): Likewise.
10880 (remote_pid_to_str): Likewise.
10881 (remote_query_supported): Always query multiprocess mode.
10882
e714e1bf
UW
108832012-01-20 Pedro Alves <palves@redhat.com>
10884 Ulrich Weigand <ulrich.weigand@linaro.org>
10885
10886 * inferior.h (struct inferior): Add fake_pid_p.
10887 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10888 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10889 magic_null_ptid since the remote side doesn't provide a real PID.
10890
50897289
TT
108912012-01-19 Tom Tromey <tromey@redhat.com>
10892
10893 * NEWS: Combine the two Python sections.
10894
1afc2033
JK
108952012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10896
10897 * target.h (target_close): Update comment on the target's unpush state.
10898
305436e0
PA
108992012-01-19 Pedro Alves <palves@redhat.com>
10900
10901 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10902 linux_nat_async directly instead of going through the target
10903 vector.
10904 * target.c (unpush_target): Close target after unpushing it, not
10905 before.
10906
49323895
GB
109072012-01-19 Gary Benson <gbenson@redhat.com>
10908
10909 * mdebugread.c (sort_blocks): Replace integer constants with ones
10910 derived from FIRST_LOCAL_BLOCK.
10911
1db33378
PP
109122012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10913 Jan Kratochvil <jan.kratochvil@redhat.com>
10914
10915 PR gdb/9538
10916 * symfile.c (find_separate_debug_file): New function.
10917 (terminate_after_last_dir_separator): Likewise.
10918 (find_separate_debug_file_by_debuglink): Also try realpath.
10919 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10920 * configure: Regenerate.
10921 * config.in: Regenerate.
10922
f83d8a90
DE
109232012-01-18 Doug Evans <dje@google.com>
10924
10925 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10926 (main.o): Remove rule.
10927 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10928 (--with-sysroot): Rewrite.
10929 * configure: Regenerate.
10930 * config.in: Regenerate.
10931
2dbca4d6
SDJ
109322012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10933
10934 * parse.c (initialize_expout): New function.
10935 (reallocate_expout): Likewise.
10936 (parse_exp_in_context): Use `initialize_expout' and
10937 `reallocate_expout' when appropriate.
10938
0695b514
PA
109392012-01-18 Pedro Alves <palves@redhat.com>
10940
10941 * record.c (struct record_breakpoint, record_breakpoint_p)
10942 (record_breakpoints): New.
10943 (record_insert_breakpoint, record_remove_breakpoint): Manage
10944 record breakpoints list. Only remove breakpoints from the
10945 inferior if they had been inserted there in the first place.
10946
136e1c30
DE
109472012-01-17 Doug Evans <dje@google.com>
10948
10949 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10950 if we know we don't have a file name to look for.
10951
c0bf857d
PA
109522012-01-17 Pedro Alves <palves@redhat.com>
10953
10954 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10955 the frame's stop reason is UNWIND_UNAVAILABLE.
10956
b486de60
JK
109572012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10958
10959 Fix compilation error.
10960 * m2-exp.y (yyerror): Use ANSI C prototype.
10961
d04550a6
SDJ
109622012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10963
10964 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10965 (growbuf_by_size): Likewise.
10966 (yyerror): Likewise.
10967 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10968 (modblock): Remove variable (was #if 0'ed).
10969 (parse_number): Convert prototype from K&R to ANSI C.
10970 (yyerror): Likewise.
10971 * objc-exp.y (parse_number): Likewise.
10972 (yyerror): Likewise.
10973 (yylex): Remove #if 0'ed code.
10974 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10975 (yyerror): Likewise.
10976
4aac40c8
TT
109772012-01-16 Tom Tromey <tromey@redhat.com>
10978
10979 * NEWS: Add item.
10980 * symtab.h (compare_filenames_for_search): Declare.
10981 * symtab.c (compare_filenames_for_search): New function.
10982 (iterate_over_some_symtabs): Use it.
10983 * symfile.h (struct quick_symbol_functions)
10984 <map_symtabs_matching_filename>: Change spec.
10985 * psymtab.c (partial_map_symtabs_matching_filename): Use
10986 compare_filenames_for_search. Update for new spec.
10987 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10988 compare_filenames_for_search. Update for new spec.
10989 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10990
cafec441
TT
109912012-01-16 Tom Tromey <tromey@redhat.com>
10992
10993 PR python/13281:
10994 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10995 (struct main_type) <flag_flag_enum>: New field.
10996 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10997 * NEWS: Add entries.
10998 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10999 enums.
11000 * python/lib/gdb/printing.py (_EnumInstance): New class.
11001 (FlagEnumerationPrinter): Likewise.
11002
983af33b
SDJ
110032012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11004
11005 * breakpoint.c (create_sals_from_address_default): New function.
11006 (create_breakpoints_sal_default): Likewise.
11007 (decode_linespec_default): Likewise.
11008 (is_marker_spec): Removed.
11009 (strace_marker_p): New function.
11010 (init_breakpoint_sal): Using `strace_marker_p' instead of
11011 `is_marker_spec'.
11012 (create_breakpoint): Call method `create_sals_from_address' from
11013 breakpoint_ops, replacing code that created SALs conditionally
11014 on the type of the breakpoint. Call method `create_breakpoints_sal',
11015 replacing code that created breakpoints conditionally on the type
11016 wanted.
11017 (base_breakpoint_create_sals_from_address): New function.
11018 (base_breakpoint_create_breakpoints_sal): Likewise.
11019 (base_breakpoint_decode_linespec): Likewise.
11020 (base_breakpoint_ops): Add methods
11021 `base_breakpoint_create_sals_from_address',
11022 `base_breakpoint_create_breakpoints_sal' and
11023 `base_breakpoint_decode_linespec'.
11024 (bkpt_create_sals_from_address): New function.
11025 (bkpt_create_breakpoints_sal): Likewise.
11026 (bkpt_decode_linespec): Likewise.
11027 (tracepoint_create_sals_from_address): Likewise.
11028 (tracepoint_create_breakpoints_sal): Likewise.
11029 (tracepoint_decode_linespec): Likewise.
11030 (strace_marker_create_sals_from_address): Likewise.
11031 (strace_marker_create_breakpoints_sal): Likewise.
11032 (strace_marker_decode_linespec): Likewise.
11033 (strace_marker_breakpoint_ops): New variable.
11034 (addr_string_to_sals): Remove `marker_spec'. Call method
11035 `decode_linespec' from breakpoint_ops, replacing code that decoded
11036 an address string into a SAL. Use `strace_marker_p' instead of
11037 `marker_spec'.
11038 (strace_command): Decide whether we are dealing with a static
11039 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11040 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11041 * breakpoint.h (linespec_result, linespec_sals): New forward
11042 declarations.
11043 (breakpoint_ops) <create_sals_from_address>,
11044 <create_breakpoints_sal>, <decode_linespec>: New methods.
11045
4795f398
DE
110462012-01-14 Doug Evans <dje@google.com>
11047
11048 * NEWS: Update text for "maint set python print-stack".
11049 It is deprecated in gdb 7.4 and deleted in 7.5.
11050
ee5106fe
EZ
110512012-01-13 Eli Zaretskii <eliz@gnu.org>
11052
11053 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11054 including curses.h.
11055
b161e06f
JK
110562012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11057
11058 * configure: Regenerate.
11059 * config.in: Regenerate.
11060
85254831
KS
110612012-01-12 Keith Seitz <keiths@redhat.com>
11062
11063 PR mi/10586
11064 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11065 (ANONYMOUS_UNION_NAME): Define.
11066 (is_path_expr_parent): New function.
11067 (get_path_expr_parent): New function.
11068 (is_anonymous_child): New function.
11069 (create_child_with_value): If the child is anonymous and without
11070 a name, assign an object name to it.
11071 (c_describe_child): Use get_path_expr_parent to determine
11072 the parent expression.
11073 If there field represents an anonymous struct or union and
11074 has no name, set an appropriate display name and expression.
11075 (cplus_describe_child): Likewise.
11076
620fa63a
PA
110772012-01-12 Pedro Alves <palves@redhat.com>
11078
11079 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11080 available when %ebp is found to be zero (outermost).
11081
2efa2c79
AT
110822012-01-11 Andreas Tobler <andreast@fgznet.ch>
11083
11084 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11085 an internal gdb_static_assert.
11086 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11087
88e7d25d
TT
110882012-01-11 Tom Tromey <tromey@redhat.com>
11089
11090 PR gdb/9598:
11091 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11092 catch" and "catch throw".
11093
72384ba3
PH
110942012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11095
11096 * blockframe.c (block_innermost_frame): Start search from selected
11097 frame, if present, or otherwise the current frame.
11098
11099 * c-exp.y (variable): Update innermost_block for
11100 'block COLONCOLON NAME' clause.
11101 * m2-exp.y (variable): Ditto.
11102 * objc-exp.y (variable): Ditto.
11103
065a711f
TT
111042012-01-10 Tom Tromey <tromey@redhat.com>
11105
11106 PR python/13199:
11107 * python/python.c (finish_python_initialization): Set sys.argv.
11108
f3f5162e
DE
111092012-01-10 Doug Evans <dje@google.com>
11110
11111 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11112 "want_line_info". All callers updated.
11113 (dwarf_decode_lines_1): New function.
11114 (handle_DW_AT_stmt_list): Add function comment.
11115 New arg "want_line_info". All callers updated.
11116 (read_file_scope,read_type_unit_scope): Move comment from
11117 handle_DW_AT_stmt_list to here.
11118
9934703b
JK
111192012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11120
11121 Fix regression after libiberty/ update for GCC PR 6057 and others.
11122 * c-exp.y (operator) <OPERATOR DELETE>
11123 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11124 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11125 (make_builtin_type, make_name): New variable i, add gdb_assert.
11126 (operator) <OPERATOR NEW>: Update ARGS to 3.
11127 (operator) <OPERATOR DELETE>: Add trailing space.
11128 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11129 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11130 * cp-support.c (cp_canonicalize_string): Check NULL from
11131 cp_comp_to_string, call warning and return.
11132
06b9f45f
JK
111332012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11134
11135 Fix duplicate .o files after omitting libbfd.a.
11136 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11137 (SFILES): Add corelow.c.
11138 (COMMON_OBS): Add corelow.o.
11139 (ALLDEPFILES): Remove corelow.c.
11140 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11141 * config/alpha/alpha-osf3.mh: Likewise.
11142 * config/alpha/fbsd.mh: Likewise.
11143 * config/arm/nbsdaout.mh: Likewise.
11144 * config/arm/nbsdelf.mh: Likewise.
11145 * config/i386/i386gnu.mh: Likewise.
11146 * config/ia64/hpux.mh: Likewise.
11147 * config/ia64/linux.mh: Likewise.
11148 * config/m32r/linux.mh: Likewise.
11149 * config/m68k/linux.mh: Likewise.
11150 * config/mips/irix5.mh: Likewise.
11151 * config/mips/irix6.mh: Likewise.
11152 * config/pa/hpux.mh: Likewise.
11153 * config/pa/linux.mh: Likewise.
11154 * config/powerpc/aix.mh: Likewise.
11155 * config/sparc/linux.mh: Likewise.
11156 * config/sparc/linux64.mh: Likewise.
11157 * config/sparc/sol2.mh: Likewise.
11158 * config/vax/vax.mh: Likewise.
11159 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11160 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11161 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11162 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11163 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11164 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11165 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11166 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11167 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11168 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11169 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11170 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11171 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11172 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11173 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11174 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11175 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11176 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11177 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11178 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11179 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11180 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11181 corelow.o from gdb_target_obs.
11182 * corefile.c (core_target): Update the comment on NULL value.
11183 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11184 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11185 MATCHES. Drop YUMMY set on NULL.
11186 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11187 reclaim CORE_DATA if it is already NULL.
11188
34365054
DE
111892012-01-09 Doug Evans <dje@google.com>
11190
11191 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11192 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11193
696166a3
KS
111942012-01-09 Keith Seitz <keiths@redhat.com>
11195
11196 * breakpoint.c (wrapper.h): Don't include.
11197
8e7b59a5
KS
111982012-01-09 Keith Seitz <keiths@redhat.com>
11199
11200 * Makefile.in (SFILES): Remove wrapper.c.
11201 (HFILES_NO_SRCDIR): Remove wrapper.h.
11202 (COMMON_OBS): Remove wrapper.o.
11203 * cli/cli-interp.c: Don't inlude wrapper.h.
11204 * corelow.c: Likewise.
11205 (core_open): Replace gdb_target_find_new_threads with
11206 TRY_CATCH around target_find_new_threads.
11207 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11208 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11209 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11210 evaluate_expression.
11211 (varobj_set_value): Likewise for evaluate_expression and
11212 value_assign.
11213 (install_new_variable): Likewise for value_fetch_lazy.
11214 (adjust_value_for_child_access): Likewise for value_ind.
11215 (c_describe_child): Likewise for value_subscript and
11216 value_ind.
11217 (c_value_of_root): Likewise for evaluate_expression.
11218 * wrapper.c: Remove.
11219 * wrapper.h: Remove.
11220
1a4eeb98
DE
112212012-01-09 Doug Evans <dje@google.com>
11222
9ff913ba
DE
11223 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11224 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11225 "abfd" args with "section". All callers updated.
11226 Error checking code moved ...
11227 (error_check_comp_unit_head): ... here. New function.
11228 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11229 Delete arg "abfd". New arg "type_offset". All callers updated.
11230 (create_debug_types_hash_table): Simplify by using
11231 read_and_check_type_unit_head.
11232
1a4eeb98
DE
11233 * parser-defs.h (namecopy): Delete.
11234 * parse.c (namecopy, namecopy_size): Move into copy_name.
11235
2e6af8c0
JK
112362012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11237
11238 Partially fix duplicate .o files after omitting libbfd.a.
11239 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11240 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11241 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11242 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11243 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11244 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11245 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11246
9f2f828a
PA
112472012-01-09 Pedro Alves <palves@redhat.com>
11248
11249 * MAINTAINERS: Update my email address.
11250
4d72c0bc
DE
112512012-01-08 Doug Evans <dje@google.com>
11252
d467dd73
DE
11253 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11254 n_type_units. Rename type_comp_units to all_type_units.
11255 All uses updated.
11256 (add_signatured_type_cu_to_table): Renamed from
11257 add_signatured_type_cu_to_list. All callers updated.
11258
4d72c0bc
DE
11259 * gdbtypes.h (struct cplus_struct_type): Delete member
11260 nfn_fields_total. All uses removed.
11261
21b2bd31
DE
112622012-01-06 Doug Evans <dje@google.com>
11263
11264 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11265 to top of file.
11266 (dwarf2_find_comp_unit): Delete.
11267 (process_psymtab_comp_unit): Make result "void".
11268 Delete args buffer, info_ptr, buffer_size, and replace with
11269 "section". All callers updated.
11270 (dwarf2_build_psymtabs_hard): Simplify.
11271
bfd189b1
SDJ
112722012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11273 Thiago Jung Bauermann <bauerman@br.ibm.com>
11274
11275 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11276 before `struct gdb_exception'.
11277 * breakpoint.c (update_global_location_list_nothrow)
11278 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11279 * cp-abi.c (value_rtti_type): Likewise.
11280 * cp-support.c (cp_validate_operator): Likewise.
11281 * infrun.c (insert_exception_resume_breakpoint)
11282 (check_exception_resume, keep_going): Likewise.
11283 * mi-interp.c (mi_breakpoint_created)
11284 (mi_breakpoint_modified): Likewise.
11285 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11286 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11287 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11288
6b07635f
DE
112892012-01-05 Doug Evans <dje@google.com>
11290
0b30b85c
DE
11291 * dwarf2read.c (statement_prologue): Delete, unused.
11292
98714339
DE
11293 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11294 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11295
6b07635f
DE
11296 * dwarf2read.c (comp_unit_header): Delete, unused.
11297
761f4555
UW
112982012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11299
11300 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11301 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11302
2ca0b532
PA
113032012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11304
11305 * infrun.c (normal_stop): Don't skip calling the normal_stop
11306 observers if the thread was doing a multi-step, but stopped for
11307 some reason other than stepping.
11308
50aeff07
PA
113092012-01-05 Pedro Alves <alves.ped@gmail.com>
11310
11311 * cli/cli-decode.h: Add comments.
11312 (CMD_LIST_AMBIGUOUS): Moved to command.h
11313 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11314 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11315 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11316 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11317 (add_com, add_com_alias, add_info, add_info_alias)
11318 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11319 declarations.
11320 * command.h: Add and adjust comments.
11321 (CMD_LIST_AMBIGUOUS): Moved here.
11322 (help_cmd, help_cmd_list): Delete declarations.
11323
5953832c
DE
113242012-01-04 Doug Evans <dje@google.com>
11325
e5fe5e75
DE
11326 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11327 All callers updated.
11328 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11329 Replace all arguments with "per_cu". All callers updated.
11330
28dee7f5
DE
11331 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11332
23745b47
DE
11333 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11334 New arg "per_cu". All callers updated.
11335
5953832c
DE
11336 Delete #if 0'd out code.
11337 * language.c (binop_result_type): Delete.
11338 (simple_type, ordered_type, same_type, integral_type): Delete.
11339 (numeric_type, character_type, string_type, boolean_type): Delete.
11340 (float_type, structured_type): Delete.
11341 * language.h: Update.
11342
0f5b7562
TT
113432012-01-04 Tom Tromey <tromey@redhat.com>
11344
11345 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11346
78218f56
JB
113472012-01-04 Joel Brobecker <brobecker@adacore.com>
11348
11349 * corefile.c (close_exec_file): Delete.
11350 (reopen_exec_file): Remove commented out code that seems related
11351 to close_exec_file, which is being deleted here.
11352 * inferior.h (close_exec_file): Delete.
11353 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11354
0fcd72ba
JB
113552012-01-04 Joel Brobecker <brobecker@adacore.com>
11356
11357 * ada-lang.c: #include "cli/cli-utils.h".
11358 (get_selections): Use skip_spaces.
11359 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11360 (catch_ada_exception_command_split): Use skip_spaces.
11361 (ada_decode_assert_location): Likewise.
11362
1dabb4c4
JB
113632012-01-04 Joel Brobecker <brobecker@adacore.com>
11364
11365 * linespec.c (decode_line_internal): Check for C++ or Java
11366 compound constructs only if the current language is C, C++
11367 or Java.
11368
5931a2fa
JK
113692012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11370
11371 Revert:
11372 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11373 Joel Brobecker <brobecker@adacore.com>
11374 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11375 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11376 3 times.
11377 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11378 fall through into AT_ENTRY_POINT.
11379 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11380 DUMMY_ADDR with it.
11381 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11382 PPC_INSN_SIZE skip to 3 times.
11383
1a2da5ee
JB
113842012-01-04 Joel Brobecker <brobecker@adacore.com>
11385
11386 * linespec.c (add_minsym): Preserve function descriptors.
11387
8645ff69
UW
113882012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11389
11390 * breakpoint.c (all_locations_are_pending): Consider locations
11391 in program spaces executing during startup pending as well.
11392
0b302171
JB
113932012-01-04 Joel Brobecker <brobecker@adacore.com>
11394
11395 Copyright year update in most files of the GDB Project.
11396
8ba098ad
JB
113972012-01-04 Joel Brobecker <brobecker@adacore.com>
11398
11399 * copyright.sh: Delete.
11400 * copyright.py: Rewrite.
11401
09c01c30
JB
114022012-01-04 Joel Brobecker <brobecker@adacore.com>
11403
11404 * gnulib/extra/update-copyright: New file, imported from gnulib.
11405
3c36c0af
JB
114062012-01-04 Joel Brobecker <brobecker@adacore.com>
11407
11408 * README (Copyright and License Notices): New section.
11409
888fe1e1
TT
114102012-01-03 Tom Tromey <tromey@redhat.com>
11411
11412 PR python/12533:
11413 * python/py-value.c (valpy_dereference, valpy_get_address
11414 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11415 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11416 (valpy_absolute, valpy_richcompare): Free intermediate values.
11417
6e681866
JB
114182011-01-03 Joel Brobecker <brobecker@adacore.com>
11419
11420 * ada-lang.c: Reformat the copyright notice.
11421
0cd09acb
JK
114222012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11423
11424 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11425 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11426 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11427 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11428 Revert this part of:
11429 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11430 Build gdb directly from *.o files not using libgdb.a.
11431 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11432
12c3e59c
JB
114332012-01-02 Joel Brobecker <brobecker@adacore.com>
11434
11435 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11436 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11437 Reformat the copyright header.
11438
11bf1490
JK
114392012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11440
11441 Revert this part of:
11442 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11443 Remove the gdbtui binary.
11444 * gdb.c (main): Remove args.interpreter_p initialization.
11445 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11446 * main.h (struct captured_main_args): Remove interpreter_p.
11447
1fef196f
JB
114482012-01-02 Joel Brobecker <brobecker@adacore.com>
11449
11450 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11451
67827812
JB
114522012-01-02 Joel Brobecker <brobecker@adacore.com>
11453
11454 * top.c (print_gdb_version): Update copyright year.
11455
a4d0b831
YQ
114562012-01-02 Yao Qi <yao@codesourcery.com>
11457
11458 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11459
b5914469
JK
114602012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11461 Joel Brobecker <brobecker@adacore.com>
11462
11463 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11464 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11465 3 times.
11466 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11467 fall through into AT_ENTRY_POINT.
11468 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11469 DUMMY_ADDR with it.
11470 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11471 PPC_INSN_SIZE skip to 3 times.
11472
8da828f7
JK
114732012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11474
11475 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11476 the return value.
11477 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11478
8574e74b
JK
114792012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11480
11481 Build gdb directly from *.o files not using libgdb.a.
11482 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11483 (COMMON_OBS): Remove solib-target.o.
11484 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11485 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11486 (LIBGDB_OBS, libgdb.a): Move it above.
11487 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11488 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11489 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11490 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11491 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11492 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11493 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11494 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11495 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11496 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11497 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11498 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11499 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11500 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11501 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11502 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11503 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11504 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11505 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11506 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11507 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11508 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11509 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11510 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11511 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11512 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11513 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11514
217bff3e
JK
115152012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11516
11517 Remove the gdbtui binary.
11518 * .gitignore (/gdbtui): Remove.
11519 * Makefile.in (TUI): Remove.
11520 (SUBDIR_TUI_OBS): Remove tui-main.o.
11521 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11522 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11523 (tui-main.o): Remove.
11524 (all_object_files): Remove tui-main.o.
11525 * NEWS: New note for the gdbtui removal.
11526 * configure: Rebuilt.
11527 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11528 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11529 CONFIG_UNINSTALL respectively.
11530 * gdb.c (main): Remove args.interpreter_p initialization.
11531 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11532 * main.h (struct captured_main_args): Remove interpreter_p.
11533 * tui/tui-main.c: Remove.
11534
9cdd5dbd
DE
115352012-01-01 Doug Evans <dje@google.com>
11536
bb5ed363
DE
11537 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11538 (dwarf2_physname, read_import_statement): Ditto.
11539 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11540 (process_structure_scope read_subroutine_type): Ditto.
11541 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11542 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11543 (dwarf2_fetch_die_location_block): Ditto.
11544 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11545
a0f42c21
DE
11546 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11547 All callers updated.
11548 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11549 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11550 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11551
2dc860c0
DE
11552 * dwarf2read.c (load_cu): Move assert to more useful location.
11553
68dc6402
DE
11554 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11555 All callers updated.
11556
9cdd5dbd
DE
11557 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11558 (dwarf2_elf_names): Minor reformat.
11559 (dwarf2_per_cu_data): Tweak comment.
11560 (dwarf2_read_section): Fix comment.
11561 (create_all_comp_units): Fix comment.
11562 (load_full_comp_unit): Fix comment.
11563 (process_full_comp_unit): Fix comment.
11564 (read_signatured_type): Fix comment.
11565
0c10e53e 11566For older changes see ChangeLog-2011.
c906108c
SS
11567\f
11568Local Variables:
11569mode: change-log
11570left-margin: 8
11571fill-column: 74
11572version-control: never
57da7796 11573coding: utf-8
c906108c 11574End:
This page took 1.895467 seconds and 4 git commands to generate.