http://sourceware.org/ml/gdb-patches/2012-10/msg00083.html
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
2
3 * source.c (print_source_lines_base): Add fullname field giving
4 full path to file in mi output.
5 * NEWS: Mention the new fullname field.
6
7 2012-11-09 Yao Qi <yao@codesourcery.com>
8
9 * NEWS: Mention the fix to the ambiguity of 'fo' command.
10
11 2012-11-09 Pedro Alves <palves@redhat.com>
12
13 PR gdb/14306
14
15 * infrun.c: Include target-descriptions.h.
16 (follow_exec): Fetch new target description.
17
18 2012-11-09 Yao Qi <yao@codesourcery.com>
19
20 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
21 0x8d (lea).
22
23 2012-11-09 Yao Qi <yao@codesourcery.com>
24
25 * breakpoint.c: Declare set_tracepoint_count.
26 (install_breakpoint): Call set_tracepoint_count if B is a
27 tracepoint.
28 (trace_command): Don't call set_tracepoint_count. Re-indent.
29 (strace_command, ftrace_command):
30 (create_tracepoint_from_upload): Likewise.
31
32 2012-11-09 Pedro Alves <palves@redhat.com>
33
34 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
35 (get_target_gdbarch) <gdbarch.h>: New function.
36 (startup_gdbarch) <gdbarch.h>: Declare.
37 <gdbarch.c> (target_gdbarch): Delete.
38 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
39 current inferior's gdbarch.
40 <gdbarch.c> (get_target_gdbarch): New function.
41 * inferior.c: Include target-descriptions.h.
42 (free_inferior): Free target description info.
43 (add_inferior_with_spaces): Set the inferior's initial
44 architecture.
45 (clone_inferior_command): Copy the original inferior's target
46 description if it was user specified.
47 (initialize_inferiors): Add comment.
48 * inferior.h (struct target_desc_info): Forward declare.
49 (struct inferior) <gdbarch>: New field.
50 * linux-nat.c: Include target-descriptions.h.
51 (linux_child_follow_fork): Copy the parent's architecture and
52 target description to the child.
53 * target-descriptions.c: Include inferior.h.
54 (struct target_desc_info): New structure, holding the equivalents
55 of ...
56 (target_desc_fetched, current_target_desc)
57 (target_description_filename): ... these removed globals.
58 (get_tdesc_info, target_desc_info_from_user_p)
59 (copy_inferior_target_desc_info, target_desc_info_free): New.
60 (target_desc_fetched, current_target_desc)
61 (target_description_filename): Reimplemented as convenience
62 macros.
63 (tdesc_filename_cmd_string): New global.
64 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
65 tdescs filename ..." commands to the per-inferior equivalent.
66 (show_tdesc_filename_cmd): Get the value to show from the
67 per-inferior description filename.
68 (_initilize_target_descriptions): Change the "set/show tdesc
69 filename" commands' variable.
70 * target-descriptions.h (struct target_desc, struct target_desc_info)
71 (struct inferior): Forward declare.
72 (target_find_description, target_clear_description)
73 (target_current_description): Adjust comments.
74 (copy_inferior_target_desc_info, target_desc_info_free)
75 (target_desc_info_from_user_p). Declare.
76
77 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
78
79 * tui/tui-hooks.c (tui_about_to_proceed): New function.
80 (tui_target_wait_hook): Remove.
81 (tui_install_hooks): Install the about_to_proceed observer.
82 (tui_remove_hooks): And remove it here.
83
84 2012-11-08 Tom Tromey <tromey@redhat.com>
85
86 * linux-tdep.c (linux_make_siginfo_note): New function.
87 (linux_make_corefile_notes): Use it.
88 * corelow.c (get_core_siginfo): New function.
89 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
90
91 2012-11-08 Tom Tromey <tromey@redhat.com>
92
93 PR gdb/14704:
94 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
95 (zlib_decompress_section): Remove.
96 (gdb_bfd_map_section): Only check for compressed section
97 in mmap case. Use bfd_get_full_section_contents.
98 * osabi.c (check_note): Add 'sectsize' argument. Read
99 section data.
100 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
101 section data. Update for check_note change.
102 * xcoffread.c (xcoff_initial_scan): Use
103 bfd_get_full_section_contents.
104 * py-auto-load.c (auto_load_section_scripts): Use
105 bfd_get_full_section_contents.
106 * contrib/cc-with-tweaks.sh: Add -Z option.
107
108 2012-11-08 Tom Tromey <tromey@redhat.com>
109
110 * python/py-bpevent.c: Include defs.h.
111 * python/py-continueevent.c: Include defs.h.
112 * python/py-event.c: Include defs.h.
113 * python/py-event.h: Don't include defs.h.
114 * python/py-events.h: Don't include defs.h.
115 * python/py-evts.c: Include defs.h.
116 * python/py-exitedevent.c: Include defs.h.
117 * python/py-newobjfileevent.c: Include defs.h.
118 * python/py-signalevent.c: Include defs.h.
119 * python/py-stopevent.c: Include defs.h.
120 * python/py-threadevent.c: Include defs.h.
121
122 2012-11-08 Pierre Muller <muller@sourceware.org>
123
124 * update-web-ari.sh (print_heading): Add number of files
125 checked.
126 (nb_files): New variable counting the number of sources
127 files found by gdb_find.sh script.
128 (debug_awk): New variable to allow extra debug output.
129 (indexes): Add more information if DEBUG_AWK is set.
130
131 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
132
133 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
134 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
135 following the change in PLT call stubs on linker.
136
137 2012-11-08 Pierre Muller <muller@sourceware.org>
138
139 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
140 as default language.
141 (AWK): Use = instead of == for sh test to avoid warning.
142 (Linux rule): Correct [:digit] into [[:digit:]].
143 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
144 (vasprintf rule): Adapt to common subdirectory moves.
145 (xasprintf rule): Idem.
146 (xvasprintf rule): Idem.
147 (var_boolean rule): Accept occurence in == or != test.
148
149 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
150
151 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
152
153 * tui/tui-hooks.c (tui_inferior_exit): New function.
154 (tui_detach_hook): Remove.
155 (tui_install_hooks): Install the inferior exit observer.
156 (tui_remove_hooks): Remove it.
157
158 2012-11-08 Yao Qi <yao@codesourcery.com>
159
160 PR gdb/14777.
161 * source.c (_initialize_source): Call add_com_alias to abbreviate
162 'forward-search' as 'fo'.
163
164 2012-11-07 Pedro Alves <palves@redhat.com>
165
166 * arm-tdep.c: Make defs.h be the first include.
167 * coff-pe-read.c: Ditto.
168 * gnu-nat.c: Ditto.
169 * go32-nat.c: Ditto.
170 * i386-nat.c: Ditto.
171 * ppcnbsd-nat.c: Ditto.
172 * ada-varobj.h: Don't include defs.h.
173 * i386-darwin-tdep.h: Ditto.
174 * i386-nat.h: Ditto.
175
176 2012-11-07 Pedro Alves <palves@redhat.com>
177
178 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
179 Committee.
180
181 2012-11-07 Pierre Muller <muller@sourceware.org>
182
183 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
184 File already uses "gdb_dirent.h" header.
185
186 2012-11-07 Yao Qi <yao@codesourcery.com>
187
188 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
189 tracepoint_count'.
190
191 2012-11-06 Tom Tromey <tromey@redhat.com>
192
193 * target.h (inferior_has_forked, inferior_has_vforked)
194 (inferior_has_execd, inferior_has_called_syscall): Remove
195 declarations.
196
197 2012-11-06 Pierre Muller <muller@sourceware.org>
198
199 * remote.c (remote_insert_hw_breakpoint): ARI fix,
200 add missing internalization markup.
201
202 2012-11-06 Pedro Alves <palves@redhat.com>
203
204 PR gdb/14810
205
206 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
207
208 2012-11-06 Pierre Muller <muller@sourceware.org>
209
210 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
211 is not executable.
212
213 2012-11-05 Joel Brobecker <brobecker@adacore.com>
214
215 * gnulib/update-gnulib.sh: New script.
216
217 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
218
219 * MAINTAINERS: Update my email address.
220
221 2012-11-05 Tom Tromey <tromey@redhat.com>
222
223 * frame.c (put_frame_register): Don't use temporary buffer.
224
225 2012-11-05 Pedro Alves <palves@redhat.com>
226
227 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
228 child. Clear 'pending_detach'.
229 * infrun.c (handle_vfork_child_exec_or_exit): Clear
230 'pending_detach' in the vfork parent.
231
232 2012-11-05 Doug Evans <dje@google.com>
233
234 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
235 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
236 * dwarf2read.c: #include "elf-bfd.h".
237 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
238 (dwop_section_names): Renamed from dwo_section names. All uses
239 updated. Add entries for .debug_cu_index, .debug_tu_index.
240 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
241 All uses updated.
242 (struct dwp_sections): New type.
243 (struct virtual_dwo_sections): New type.
244 (struct dwp_hash_table): New type.
245 (struct dwp_file): New type.
246 (init_cutu_and_read_dies): Ensure DWO info/types section has been
247 read in. Handle DWOs coming from DWP files.
248 (lookup_dwo_file_slot): New function.
249 (dwarf2_locate_dwo_sections): Move definition closer to use.
250 (create_dwo_debug_info_hash_table_reader): Renamed from
251 create_debug_info_hash_table_reader. All callers updated.
252 (create_dwo_debug_info_hash_table): Renamed from
253 create_debug_info_hash_table. All callers updated.
254 (create_dwp_hash_table): New function.
255 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
256 (lookup_dwo_in_dwp): New function.
257 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
258 is_dwp. All callers updated.
259 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
260 (open_and_init_dwo_file): Renamed from init_dwo_file.
261 All callers updated.
262 (lookup_dwo_file): Delete.
263 (dwarf2_locate_dwp_sections): New function.
264 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
265 (allocate_dwp_loaded_cutus_table): New function.
266 (open_and_init_dwp_file): New function.
267 (lookup_dwo_cutu): New function.
268 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
269
270 2012-11-03 Yao Qi <yao@codesourcery.com>
271
272 Fix PR gdb/14617.
273 * breakpoint.c (trace_pass_set_count): Call
274 observer_notify_breakpoint_modified instead of
275 observer_notify_tracepoint_modified.
276 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
277
278 2012-11-02 Tom Tromey <tromey@redhat.com>
279
280 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
281 argument to complete_on_enum.
282
283 2012-11-02 Tom Tromey <tromey@redhat.com>
284
285 * configure: Rebuild.
286 * configure.ac (build_warnings): Add -Wempty-body.
287 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
288 * remote.c (handle_notification): Use braces for empty 'else' body.
289 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
290 'else' body.
291 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
292 'else' body.
293 * solib-som.c (som_relocate_section_addresses): Use braces
294 for empty 'else' body.
295 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
296 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
297
298 2012-11-02 Pedro Alves <palves@redhat.com>
299
300 PR gdb/14766
301
302 * infrun.c (handle_inferior_event)
303 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
304 null_ptid before handling a vfork child exec or exit. Switch to
305 the event ptid afterwards.
306
307 2012-11-02 Yao Qi <yao@codesourcery.com>
308
309 * std-operator.def: Remove OP_LABELED.
310 * eval.c: Remove the declaration of 'get_label'.
311 (get_label): Remove.
312 (evaluate_struct_tuple): Remove code handling OP_LABELED.
313 Update comment.
314 Remove local variable 'variantno' and related code.
315 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
316 with 'fieldno'.
317 * expprint.c (print_subexp_standard): Likewise.
318 (dump_subexp_body_standard): Likewise.
319 * parse.c (operator_length_standard): Likewise.
320
321 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
322
323 Incorporate ARI web page generator into GDB sources.
324 * contrib/ari/create-web-ari-in-src.sh: New file.
325 * contrib/ari/gdb_ari.sh: New file.
326 * contrib/ari/gdb_find.sh: New file.
327 * contrib/ari/update-web-ari.sh: New file.
328
329 2012-10-31 Tom Tromey <tromey@redhat.com>
330
331 * gdbarch.c: Rebuild.
332 * gdbarch.sh: Remove references to gdbarch_swap.
333 * corelow.c (core_open): Remove obsolete comment.
334
335 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
336
337 PR cli/14772
338 * c-typeprint.c (c_print_type): Don't print a space for vector
339 types, this is handled within the suffix.
340 (c_type_print_varspec_suffix): Add a space to vector suffix.
341
342 2012-10-26 Pedro Alves <palves@redhat.com>
343
344 * amd64-tdep.c (amd64_relocate_instruction): Use
345 store_unsigned_integer instead of memcpy.
346 * i386-tdep.c (i386_relocate_instruction): Ditto.
347
348 2012-10-26 Pedro Alves <palves@redhat.com>
349
350 * infrun.c (handle_inferior_event): Merge handling of
351 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
352 switch case.
353
354 2012-10-26 Pedro Alves <palves@redhat.com>
355
356 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
357 Remove comment.
358
359 2012-10-26 Pedro Alves <palves@redhat.com>
360
361 * target.c (target_waitstatus_to_string): Handle
362 TARGET_WAITKIND_VFORK_DONE.
363
364 2012-10-26 Pedro Alves <palves@redhat.com>
365
366 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
367 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
368
369 2012-10-24 Tristan Gingold <gingold@adacore.com>
370
371 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
372 Add comments.
373
374 2012-10-24 Joel Brobecker <brobecker@adacore.com>
375
376 * ravenscar-thread.c (ravenscar_wait): Only update the list
377 of threads and inferior_ptid if the inferior is still alive.
378
379 2012-10-24 Joel Brobecker <brobecker@adacore.com>
380
381 * ada-lang.c (is_known_support_routine): Use lbasename when
382 matching the symtab's filename against
383 known_runtime_file_name_patterns.
384
385 2012-10-24 Joel Brobecker <brobecker@adacore.com>
386
387 * ada-lang.c (ada_same_array_size_p): New function.
388 (ada_promote_array_of_integrals): New function.
389 (coerce_for_assign): Add handling of arrays where the elements
390 are integrals of a smaller size than the size of the target
391 array element type.
392
393 2012-10-24 Joel Brobecker <brobecker@adacore.com>
394
395 * doublest.c (convert_doublest_to_floatformat): Fix comparison
396 against maximum exponent value.
397
398 2012-10-24 Joel Brobecker <brobecker@adacore.com>
399
400 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
401 "unwind-seh.c".
402
403 2012-10-24 Joel Brobecker <brobecker@adacore.com>
404
405 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
406 strip typedef layer when computing the fixed type's field type,
407 only when computing its size.
408
409 2012-10-24 Mark Kettenis <kettenis@gnu.org>
410
411 PR gdb/12783
412 * i386-tdep.c (i386_return_value): Handle complex double and long
413 double.
414
415 2012-10-24 Joel Brobecker <brobecker@adacore.com>
416
417 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
418 New local variable args_len.
419 Quote the name of the executable when computing the command line.
420
421 2012-10-23 Mark Kettenis <kettenis@gnu.org>
422
423 PR gdb/12796
424 PR gdb/12798
425 PR gdb/12800
426 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
427 AMD64_FTAG_REGNUM.
428 * amd64-tdep.c (amd64_classify): Classify complex types.
429 (amd64_return_value): Handle the COMPLEX_X87 class.
430
431 2012-10-23 Joel Brobecker <brobecker@adacore.com>
432
433 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
434 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
435
436 2012-10-23 Joel Brobecker <brobecker@adacore.com>
437
438 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
439 function.
440 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
441 to amd64_windows_auto_wide_charset.
442
443 2012-10-23 Yao Qi <yao@codesourcery.com>
444
445 * event-top.c (mark_async_signal_handler_wrapper): Remove.
446 * event-top.h: Remove its declaration.
447 (async_request_quit): Call mark_async_signal_handler instead of
448 mark_async_signal_handler_wrapper.
449 (async_do_nothing, async_disconnect): Likewise.
450 (async_stop_sig): Likewise.
451 * remote.c (handle_remote_sigint): Likewise.
452 (handle_remote_sigint_twice): Likewise.
453
454 2012-10-23 Yao Qi <yao@codesourcery.com>
455
456 * event-top.c (sigint_token, sighup_token): Replace 'void *'
457 with 'static struct async_signal_handler *'.
458 (sighup_token, sigquit_token, sigstp_token): Likewise.
459
460 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
461
462 * gdbarch.sh (function_list): Use 'pstring' when printing
463 a variable which could return NULL.
464 * gdbarch.c: Regenerate.
465
466 2012-10-10 Joel Brobecker <brobecker@adacore.com>
467 Tom Tromey <tromey@redhat.com>
468
469 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
470 inneffective if condition by gdb assertion. Add function
471 description comment.
472
473 2012-10-19 Joel Brobecker <brobecker@adacore.com>
474
475 * parser-defs.h (struct exp_descriptor): Document constraint
476 on return value for "op_name" callbacks.
477
478 2012-10-18 Tom Tromey <tromey@redhat.com>
479
480 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
481 * symtab.c (iterate_over_some_symtabs): Constify.
482 * source.h (symtab_to_fullname): Return 'const char *'.
483 * source.c (symtab_to_fullname): Return 'const char *'.
484 * python/py-symtab.c (stpy_fullname): Constify.
485 * cli/cli-cmds.c (edit_command): Constify.
486 * breakpoint.c (print_breakpoint_location)
487 (update_static_tracepoint): Constify.
488
489 2012-10-18 Tom Tromey <tromey@redhat.com>
490
491 * breakpoint.c (compare_breakpoints): Fix comparison.
492
493 2012-10-18 Tom Tromey <tromey@redhat.com>
494
495 * valprint.c (generic_emit_char, generic_printstr): Pass size of
496 gdb_wchar_t to convert_between_encodings.
497
498 2012-10-17 Yao Qi <yao@codesourcery.com>
499
500 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
501 more parameter 'inferior'.
502 * corefile.c (write_memory_with_notification): Caller update.
503
504 * mi/mi-cmd-var.c: Include "mi-main.h".
505 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
506 to 1 and restore it later.
507 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
508 and "data-write-memory-bytes.
509 * mi/mi-interp.c: Include objfiles.h.
510 (mi_interpreter_init): Call observer_attach_memory_changed.
511 (mi_memory_changed): New.
512 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
513 New field.
514
515 * NEWS: Mention new MI notification "memory-changed".
516
517 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
518
519 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
520
521 2012-10-15 Doug Evans <dje@google.com>
522
523 New option -nh: inhibit loading of ~/.gdbinit.
524 * NEWS: Mention -nh.
525 * main.c (captured_main): Recognize and process -nh.
526 (print_gdb_help): Mention -nh.
527 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
528
529 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
530
531 PR backtrace/14646
532 PR gdb/14647
533 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
534 pc_regnum_from_eax.
535 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
536 nor pc_regnum_from_eax.
537 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
538 nor pc_regnum_from_eax.
539
540 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 Fix entry values resolving in inlined frames.
543 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
544 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
545 entries of FRAME.
546
547 2012-10-15 Joel Brobecker <brobecker@adacore.com>
548
549 * configure.ac: Build with -DMS_WIN64 if building with Python
550 enabled using GCC on amd64-windows.
551 * configure: Regenerate.
552
553 2012-10-15 Tom Tromey <tromey@redhat.com>
554
555 PR python/14635:
556 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
557 to Py_None.
558
559 2012-10-15 Tom Tromey <tromey@redhat.com>
560
561 PR python/14634:
562 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
563
564 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
565
566 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
567 reset thread numbering back to 1.
568
569 2012-10-11 Doug Evans <dje@google.com>
570
571 PR breakpoints/14643.
572 * linespec.c (struct ls_parser): New member keyword_ok.
573 (linespec_lexer_lex_string): Add comment.
574 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
575 for one.
576 (parse_linespec): Set keyword_ok.
577
578 2012-10-10 Doug Evans <dje@google.com>
579
580 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
581 "0x" prefix on address in log message.
582
583 * dwarf2read.c (read_1_byte): Add const to buf parameter.
584 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
585 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
586 (lookup_dwo_file): Add const to dwo_name parameter.
587 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
588
589 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
590
591 Fix crash during stepping on ppc32.
592 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
593 SYM.
594
595 2012-10-03 Doug Evans <dje@google.com>
596
597 PR symtab/14601
598 * buildsym.c (buildsym_init): Reset using_directives to NULL.
599
600 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
601
602 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
603 output and use uint32_t not long to ensure 4 byte size.
604
605 2012-10-02 Joel Brobecker <brobecker@adacore.com>
606
607 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
608 unref'ed it.
609
610 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
611
612 * target.c (simple_search_memory): Include access length in
613 warning message.
614
615 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
616 Edjunior Machado <emachado@linux.vnet.ibm.com>
617
618 PR gdb/13989
619 * solib.c (solib_find): Prevent GDB from loading native libraries when
620 debugging a cross-target corefile.
621
622 2012-09-28 selven <pcthegreat@gmail.com>
623
624 Make definition match declaration.
625
626 * regcache.c (regcache_register_status): Change return type to
627 enum register_status.
628
629 2012-09-28 Yao Qi <yao@codesourcery.com>
630
631 * mi/mi-main.c (mi_cmd_data_write_memory): Call
632 write_memory_with_notification instead of write_memory.
633 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
634 instead of target_write_memory.
635
636 2012-09-28 Yao Qi <yao@codesourcery.com>
637
638 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
639 when the length of content is not an even number.
640
641 2012-09-27 Tom Tromey <tromey@redhat.com>
642
643 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
644 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
645
646 2012-09-27 Joel Brobecker <brobecker@adacore.com>
647
648 * sol-thread.c (sol_thread_fetch_registers)
649 (sol_thread_store_registers): Delete commented out code.
650
651 2012-09-27 Joel Brobecker <brobecker@adacore.com>
652
653 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
654 Move these functions to sparc-sol-thread.c.
655 * sparc-sol-thread.c: New file.
656 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
657 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
658 configurations.
659 * configure: Regenerate.
660
661 2012-09-27 Joel Brobecker <brobecker@adacore.com>
662
663 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
664 Remove commented-out code.
665
666 2012-09-27 Joel Brobecker <brobecker@adacore.com>
667
668 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
669 Enable this code for sparc hosts only.
670
671 2012-09-27 Joel Brobecker <brobecker@adacore.com>
672
673 * procfs.h (procfs_find_LDT_entry): Add declaration.
674 * sol-thread.c (ps_lgetLDT): Delete local declaration of
675 function procfs_find_LDT_entry.
676
677 2012-09-27 Joel Brobecker <brobecker@adacore.com>
678
679 * procfs.c (proc_get_LDT_entry): Make static.
680
681 2012-09-27 Joel Brobecker <brobecker@adacore.com>
682
683 * procfs.c (proc_find_memory_regions): Fix declaration.
684
685 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
686
687 * amd64-tdep.c (amd64_return_value): Revert previous change
688 that used TYPE_LENGTH directly.
689 * bfin-tdep.c (bfin_extract_return_value): Likewise.
690 (bfin_store_return_value): Likewise.
691 * cris-tdep.c (cris_store_return_value): Likewise.
692 (cris_extract_return_value): Likewise.
693 * h8300-tdep.c (h8300_extract_return_value): Likewise.
694 * hppa-tdep.c (hppa64_return_value): Likewise.
695 * lm32-tdep.c (lm32_store_return_value): Likewise.
696 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
697 * spu-tdep.c (spu_value_from_register): Likewise.
698 * vax-tdep.c (vax_return_value): Likewise.
699
700 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
701
702 * gdbtypes.c (lookup_array_range_type): Expand parameters
703 LOW_BOUND and HIGH_BOUND to LONGEST.
704 (lookup_string_range_type): Likewise.
705 * gdbtypes.h (lookup_array_range_type): Likewise.
706 (lookup_string_range_type): Likewise.
707 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
708 Expand HIGHBOUND to ssize_t.
709 (value_string): Likewise.
710 * value.h (value_cstring): Expand parameter LEN to ssize_t.
711 (value_string): Likewise.
712
713 2012-09-27 Yao Qi <yao@codesourcery.com>
714
715 PR breakpoints/13898
716 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
717 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
718 per breakpoint type.
719
720 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
721
722 * procfs.c: Add gdb_bfd header.
723 * rs6000-nat.c: Likewise.
724 * solib-pa64.c: Likewise.
725 * spu-linux-nat.c: Likewise.
726 * windows-nat.c: Likewise.
727
728 2012-09-26 Tom Tromey <tromey@redhat.com>
729
730 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
731
732 2012-09-26 Tom Tromey <tromey@redhat.com>
733
734 * dwarf2read.c (mark_common_block_symbol_computed): New function.
735 (read_common_block): Handle child DIEs with
736 DW_AT_data_member_location.
737 (new_symbol_full): Add special case for common blocks.
738
739 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
740 Tom Tromey <tromey@redhat.com>
741
742 * dwarf2read.c (read_common_block): Rewrite.
743 (new_symbol_full): Handle DW_TAG_common_block.
744 * f-lang.c (head_common_list, find_common_for_function):
745 Remove.
746 * f-lang.h (struct common_entry, struct saved_f77_common,
747 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
748 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
749 BLANK_COMMON_NAME_LOCAL): Remove.
750 (struct common_block): New.
751 * f-valprint.c (list_all_visible_commons): Remove.
752 (info_common_command_for_block): New function.
753 (info_common_command): Use it.
754 * stack.c (iterate_over_block_locals): Special case for
755 COMMON_BLOCK_DOMAIN.
756 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
757 constant.
758 (struct general_symbol_info) <value.common_block>: New field.
759 (SYMBOL_VALUE_COMMON_BLOCK): New define.
760
761 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
762 Tom Tromey <tromey@redhat.com>
763
764 * f-lang.c (allocate_saved_bf_node,
765 allocate_saved_function_node, allocate_saved_f77_common_node,
766 allocate_common_entry_node, tail_common_list, current_common,
767 saved_bf_list, saved_bf_list_end, current_head_bf_list,
768 tmp_bf_ptr, add_common_block, add_common_entry,
769 find_first_common_named, patch_common_entries,
770 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
771 global_remote_debug, get_bf_for_fcn, saved_function_list,
772 saved_function_list_end, clear_function_list, struct saved_fcn,
773 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
774 SAVED_BF, SAVED_BF_PTR): Remove.
775 * f-lang.h (tail_common_list, current_common,
776 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
777 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
778 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
779 real_main_c_value): Remove.
780 * f-valprint.c (there_is_a_visible_common_named): Remove.
781
782 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
783
784 * breakpoint.c (update_global_location_list): Ignore previous
785 duplicate status of a breakpoint when starting a new scan for
786 duplicate breakpoints.
787
788 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
789 PR breakpoints/14419
790 * arm-tdep.c (arm_skip_prologue): Extending producer check to
791 support LLVM compiler.
792
793 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
794
795 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
796 * bfin-tdep.c (bfin_extract_return_value): Likewise.
797 (bfin_store_return_value): Likewise.
798 * cris-tdep.c (cris_store_return_value): Likewise.
799 (cris_extract_return_value): Likewise.
800 * h8300-tdep.c (h8300_extract_return_value): Likewise.
801 * hppa-tdep.c (hppa64_return_value): Likewise.
802 * lm32-tdep.c (lm32_store_return_value): Likewise.
803 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
804 * spu-tdep.c (spu_value_from_register): Likewise.
805 * vax-tdep.c (vax_return_value): Likewise.
806
807 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
808
809 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
810 parameter LEN to ssize_t.
811
812 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
813
814 * ada-valprint.c (ada_val_print_1): Eliminate single-use
815 variable LEN.
816 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
817 directly.
818 (alpha_store_return_value): Likewise.
819 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
820 (amd64_push_arguments): Likewise.
821 * ax-gdb.c (gen_trace_static_fields): Likewise.
822 (gen_traced_pop): Likewise.
823 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
824 * breakpoint.c (update_watchpoint): Likewise.
825 * findcmd.c (parse_find_args): Use local variable for type
826 instead of length.
827 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
828 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
829 (h8300_store_return_value): Likewise.
830 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
831 Use i386_darwin_arg_type_alignment directly.
832 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
833 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
834 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
835 (m68hc11_extract_return_value): Likewise.
836 * mep-tdep.c (mep_push_dummy_call): Likewise.
837 * printcmd.c (float_type_from_length): Likewise.
838 * s390-tdep.c (s390_value_from_register): Likewise.
839 * stack.c (read_frame_arg): Likewise.
840 * tracepoint.c (encode_actions_1): Likewise.
841 * valops.c (value_fetch_lazy): Use local variable for type
842 instead of length. Use TYPE_LENGTH directly.
843 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
844
845 2012-09-25 Joel Brobecker <brobecker@adacore.com>
846
847 * symtab.c (skip_prologue_sal): Fix typo in comment.
848
849 2012-09-25 Joel Brobecker <brobecker@adacore.com>
850
851 * linespec.c (create_sals_line_offset): Fix typo in comment.
852
853 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
854
855 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
856 use plongest to print the array size.
857
858 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
859
860 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
861 * p-valprint.c (pascal_type_print_base): Likewise.
862
863 2012-09-22 Yao Qi <yao@codesourcery.com>
864
865 * remote.c (remote_get_trace_status): Remove setting default
866 values of fields of 'ts'.
867
868 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
869
870 Fix internal error on canonicalization of clang types.
871 * cp-name-parser.y (operator): New comment at make_operator call for
872 new, delete, new[] and delete[].
873 (exp): Use "sizeof ". Add new comment at make_operator call.
874
875 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
876
877 Fix disassemble without parameters in tailcall frame.
878 * cli/cli-cmds.c (disassemble_current_function): Use
879 get_frame_address_in_block.
880
881 2012-09-21 Tom Tromey <tromey@redhat.com>
882
883 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
884 TYPE_CODE_UNION>: Unify, removing a goto.
885
886 2012-09-21 Tom Tromey <tromey@redhat.com>
887
888 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
889
890 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
891
892 * findvar.c (read_frame_register_value): Mark the result value as
893 optimized out if any of the input registers have been optimized out.
894
895 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
896
897 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
898
899 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
900
901 * eval.c (evaluate_subexp_standard): Eliminate single-use
902 variable LOWER.
903
904 2012-09-21 Yao Qi <yao@codesourcery.com>
905
906 * mi/mi-interp.c: Declare mi_record_changed.
907 (mi_interpreter_init): Call observer_attach_record_changed.
908 (mi_record_changed): New.
909 * record.c (record_open): Call observer_notify_record_changed.
910 (cmd_record_stop): Call observer_notify_record_changed.
911 * NEWS: Mention it.
912
913 2012-09-20 Tom Tromey <tromey@redhat.com>
914
915 * NEWS: Update.
916 * python/python.c (finalize_python): New function.
917 (_initialize_python): Make a final cleanup.
918
919 2012-09-19 Doug Evans <dje@google.com>
920
921 * buildsym.h (param_symbols): Delete, unused.
922 (context_stack): Delete member "params", unused.
923 * buildsym.c (push_context): Update.
924 * dwarf2read.c (read_func_scope): Update.
925
926 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
927
928 * sh-tdep.c (sh_register_convert_to_virtual)
929 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
930 all callers. Just do a memcpy if not the little-endian case.
931
932 * h8300-tdep.c (h8300_gdbarch_init): Invoke
933 set_gdbarch_double_format and set_gdbarch_long_double_format.
934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
935 set_gdbarch_double_format.
936 * sh-tdep.c (sh_gdbarch_init): Likewise.
937
938 * NEWS: Document the removal of SH's 'regs' command.
939 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
940 command.
941
942 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
943
944 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
945 `jump'.
946
947 2012-09-18 Joel Brobecker <brobecker@adacore.com>
948
949 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
950 language when iterating over symbols.
951
952 2012-09-18 Yao Qi <yao@codesourcery.com>
953
954 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
955 (mi_interpreter_init): Call observer_attach_tsv_created and
956 observer_attach_tsv_deleted.
957 (mi_tsv_created, mi_tsv_deleted): New.
958 * tracepoint.c (delete_trace_state_variable): Call
959 observer_notify_tsv_deleted.
960 (trace_variable_command): Call observer_notify_tsv_created.
961 (delete_trace_variable_command): Call
962 observer_notify_tsv_deleted.
963 (create_tsv_from_upload): Call observer_notify_tsv_created.
964 * NEWS: Mention it.
965
966 2012-09-18 Yao Qi <yao@codesourcery.com>
967
968 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
969 if traceframe changed.
970 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
971 "trace-find".
972 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
973 (mi_interpreter_init): Hook mi_traceframe_changed to observer
974 'traceframe_changed'.
975 (mi_traceframe_changed): New.
976 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
977 New field.
978 * NEWS: Mention the new MI notification.
979
980 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
981
982 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
983
984 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
985
986 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
987 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
988 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
989 Extend code also for PaX support. Convert all gdb_assert to warning
990 calls.
991
992 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
993
994 Implement auto-load user conveniences suggested by Doug Evans.
995 * auto-load.c: Include top.h.
996 (file_is_auto_load_safe): New variable advice_printed. Print advice.
997 (_initialize_auto_load): New variable scripts_directory_help. Mention
998 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
999 scripts-directory. Document in online help one can use also files for
1000 set auto-load safe-path.
1001 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1002 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1003
1004 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1005
1006 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1007 of LEN.
1008
1009 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1010
1011 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1012 ELTLEN and use TYPE_LENGTH directly.
1013 (m2_val_print): Likewise.
1014 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1015 variable LEN and use TYPE_LENGTH directly.
1016 (m68k_svr4_store_return_value): Likewise.
1017 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1018 ARGLEN and use TYPE_LENGTH directly.
1019 (mips_o64_push_dummy_call): Likewise.
1020 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1021 variable LENGTH and use TYPE_LENGTH directly.
1022 (s390_function_arg_float): Likewise.
1023 (s390_function_arg_integer): Likewise.
1024 (s390_push_dummy_call): Likewise.
1025 (s390_return_value_convention): Likewise.
1026 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1027 TYPE_LENGTH directly.
1028
1029 2012-09-17 Yao Qi <yao@codesourcery.com>
1030
1031 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1032 Update comment to add_setshow_integer_cmd.
1033 * cli/cli-setshow.c (do_set_command): Handle case
1034 'var_zuinteger_unlimited'.
1035 (do_show_command): Likewise.
1036 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1037 for command 'remotetimeout'.
1038 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1039 to var_integer.
1040 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1041 for command 'set listsize'.
1042
1043 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1044
1045 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1046 variable LEN.
1047
1048 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1049
1050 PR 14119
1051 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1052 (frame_pop): Drop also TAILCALL_FRAME frames.
1053 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1054
1055 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1056 Pedro Alves <palves@redhat.com>
1057
1058 PR 14548
1059 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1060 function start if we are already at function start. Both for
1061 reverse-next and for reverse-step into function without line number
1062 info.
1063
1064 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1065
1066 Code cleanup - rename 'inline' depth to 'artificial' depth.
1067 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1068 frame_id_artificial_p, extend the comment.
1069 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1070 * frame.c (fprint_frame_id): Rename at a user, change debug output
1071 text to "artificial=".
1072 (skip_inlined_frames): Rename to ...
1073 (skip_artificial_frames): ... here. Extend the comment.
1074 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1075 (frame_id_inlined_p): Rename to ...
1076 (frame_id_artificial_p): ... here. Rename at a user.
1077 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1078 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1079 at a user.
1080 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1081 Extend the comment.
1082 (frame_id_inlined_p): Rename to ...
1083 (frame_id_artificial_p): ... here.
1084 * inline-frame.c (inline_frame_this_id): Rename at a user.
1085
1086 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1087
1088 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1089 vector variables using vector_size syntax rather than array
1090 syntax.
1091
1092 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1093
1094 * valarith.c (value_concat): Replace unsafe ALLOCA with
1095 XMALLOC/XFREE.
1096
1097 2012-09-14 Pedro Alves <palves@redhat.com>
1098
1099 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1100
1101 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1102
1103 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1104 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1105 data-directory as appropriate.
1106
1107 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1108
1109 * printcmd.c (ui_printf): Eliminate single-use variable
1110 PARAM_LEN.
1111
1112 2012-09-14 Yao Qi <yao@codesourcery.com>
1113 Pedro Alves <palves@redhat.com>
1114
1115 * valops.c (value_assign): Move observer_notify_target_changed
1116 below to replace reinit_frame_cache.
1117
1118 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1119
1120 Refactor Python "gdb" module into a proper Python package, by
1121 introducing a new "_gdb" module for code implemented in C, and
1122 using reload/__import__ instead of exec.
1123 * python/lib/gdb/__init__.py: Import * from _gdb.
1124 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1125 prompt_hook, sys.argv): Moved from finish_python_initialization.
1126 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1127 (packages, auto_load_packages): New list and function replacing
1128 module_dict and auto-loading code, using __file__ instead of
1129 gdb.PYTHONDIR and reload/__import__ instead of exec.
1130 (GdbSetPythonDirectory): Replacing function of the same name
1131 from finish_python_initialization, using reload/__import__ instead
1132 of exec, as well as call auto_load_packages.
1133 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1134 gdb_python_module and not gdb_module.
1135 * python/python-internal.h (gdb_python_module): Declare.
1136 * python/python.c (gdb_python_module): New global.
1137 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1138 (_initialize_python): Rename gdb module to _gdb.
1139 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1140 (finish_python_initialization): Move Python code to
1141 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1142 __main__.
1143
1144 2012-09-13 Pedro Alves <palves@redhat.com>
1145
1146 * Makefile.in (COMMON_OBS): Add registry.o.
1147 * registry.c: New file.
1148 * registry.h (struct registry_container): Declare.
1149 (registry_data_callback): New typedef.
1150 (struct registry_data, struct registry_data_registration, struct
1151 registry_data_registry): New type.
1152 (register_data_with_cleanup, registry_alloc_data)
1153 (registry_callback_adaptor, registry_clear_data)
1154 (registry_container_free_data, registry_set_data, registry_data):
1155 Declare.
1156 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1157 the new common structures and functions.
1158 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1159 callback typedefs.
1160
1161 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1162
1163 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1164 there is an error inserting hardware breakpoints and use the
1165 error message from the target.
1166
1167 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1168 Catch this exception and print the error message contained within. Do not
1169 print the default hardware error breakpoint message in this case.
1170
1171 2012-09-12 Doug Evans <dje@google.com>
1172
1173 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1174 cu == NULL.
1175
1176 2012-09-11 Doug Evans <dje@google.com>
1177
1178 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1179 .gdb_index symbol attributes if there are none.
1180
1181 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1182
1183 * symtab.h (struct minimal_symbol) [has_size]: New field.
1184 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1185 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1186 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1187 minimal symbols if the symbol's size is actually known.
1188 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1189 of msymbol's size field. Add comment.
1190 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1191 SET_MSYMBOL_SIZE to set the minimal symbol size.
1192
1193 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1194
1195 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1196 minimal_symbol struct object, rather than setting some of its
1197 fields one by one.
1198
1199 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1200
1201 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1202 passed_a_ptr flag when displaying typedef types.
1203
1204 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1205
1206 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1207 the optimized_out flag is preserved.
1208
1209 2012-09-10 Anthony Green <green@moxielogic.com>
1210
1211 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1212 prologue changes in GCC.
1213
1214 2012-09-10 Keith Seitz <keiths@redhat.com>
1215
1216 PR gdb/13483
1217 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1218 (BOOL_CONVERSION_BADNESS): ... this.
1219 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1220 (rank_one_type): Allow all boolean conversions
1221 permitted by the standard.
1222
1223 2012-09-06 Tom Tromey <tromey@redhat.com>
1224
1225 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1226 Don't decref py_objfile.
1227
1228 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1229
1230 Do not enable -lmcheck by default when Python is enabled with
1231 threading support.
1232 * configure.ac: (python_has_threads) New variable, by testing
1233 if WITH_THREAD is defined in Python.h.
1234 Move --enable-lmcheck after --with-python.
1235 Do not enable -lmcheck by default if python_has_threads=yes.
1236 Warn if --enable-lmcheck and python_has_threads=yes.
1237 * configure: Regenerate.
1238
1239 2012-08-31 Yao Qi <yao@codesourcery.com>
1240
1241 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1242 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1243 Update some commands.
1244 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1245 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1246 to 1.
1247
1248 2012-08-31 Yao Qi <yao@codesourcery.com>
1249
1250 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1251
1252 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1253
1254 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1255
1256 2012-08-29 Doug Evans <dje@google.com>
1257
1258 * main.c (print_gdb_help): Remove reference to
1259 --use-deprecated-index-sections.
1260
1261 2012-08-28 Yao Qi <yao@codesourcery.com>
1262
1263 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1264 (init_cmds): Call add_setshow_uinteger_cmd for command
1265 'max-user-call-depth'.
1266 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1267 declaration of 'max_user_call_depth'.
1268 * frame.c (backtrace_limit): Add 'unsigned'.
1269 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1270 'limit'.
1271 * remote.c (remoteaddresssize): Add 'unsigned'.
1272 (remote_address_masked): Change local var 'address_size' to
1273 'unsigned'.
1274 (_initialize_remote): Call add_setshow_uinteger_cmd for
1275 'remoteaddresssize'.
1276 * top.c (history_size): Add 'unsigned'.
1277 (show_commands): Change local variables to 'unsigned'.
1278 (set_history_size_command): Don't check history_size is negative.
1279 Adjust the condition to call unstifle_history and set history_size
1280 to UNIT_MAX.
1281
1282 2012-08-28 Pedro Alves <palves@redhat.com>
1283
1284 PR gdb/14428
1285
1286 * infcmd.c (default_print_one_register_info): New, factored out
1287 from default_print_registers_info.
1288 (default_print_registers_info): Use it. Mark value unavailable if
1289 necessary.
1290 (registers_info): Print user registers with
1291 default_print_one_register_info.
1292
1293 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1294
1295 PR tui/14486
1296 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1297 is not NULL before referencing it.
1298
1299 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
1301 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1302 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1303 original PC for it.
1304
1305 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1306 Jan Kratochvil <jan.kratochvil@redhat.com>
1307
1308 * auto-load.c (auto_load_objfile_script): Rename to ...
1309 (auto_load_objfile_script_1): ... here, change variable realname to
1310 parameter realname, document it, add return value, add variable retval.
1311 (auto_load_objfile_script): New function.
1312
1313 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1314
1315 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1316 followed by a whitespace.
1317
1318 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1319
1320 PR gdb/14494.
1321 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1322 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1323 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1324 here.
1325
1326 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1327
1328 * memattr.c (create_mem_region): Fix memory region overlapping
1329 checking.
1330
1331 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1332
1333 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1334 with xmalloc/cleanup.
1335 * mt-tdep.c (mt_push_dummy_call): Likewise.
1336 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1337 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1338
1339 2012-08-24 Yao Qi <yao@codesourcery.com>
1340
1341 * jv-exp.y (push_expression_name): Add "." at the end of error
1342 message.
1343
1344 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1345
1346 Document how to return from "python-interactive" to GDB.
1347 * python/python.c (_initialize_python): Update documentation.
1348
1349 2012-08-23 Pedro Alves <palves@redhat.com>
1350
1351 * infrun.c (_initialize_infrun) <handle command help text>:
1352 Mention that multiple signals are supported.
1353
1354 2012-08-23 Pedro Alves <palves@redhat.com>
1355
1356 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1357 string.
1358
1359 2012-08-23 Yao Qi <yao@codesourcery.com>
1360
1361 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1362 (tfind_1): Don't call registers_changed, set_traceframe_num,
1363 and clear_traceframe_info.
1364 Call set_current_traceframe.
1365 (set_current_traceframe): call set_traceframe_num.
1366
1367 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1368
1369 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1370 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1371
1372 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1373
1374 Enable readline in Python in a GDB-specific way and block the
1375 standard Python readline module to prevent conflicts with GDB.
1376 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1377 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1378 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1379 * python/py-gdb-readline.c: New file.
1380 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1381 prototype.
1382 * python/python.c (_initialize_python): Call
1383 gdbpy_initialize_gdb_readline.
1384
1385 2012-08-22 Keith Seitz <keiths@redhat.com>
1386
1387 * defs.h: Include build-gnulib/config.h
1388
1389 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1390
1391 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1392 and blx pc.
1393
1394 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1395
1396 Add a new "python-interactive" command that starts a standard
1397 Python interactive prompt with "pi" as alias, and add "py" as
1398 an alias to "python".
1399 * NEWS: Mention the new commands.
1400 * python/python.c (eval_python_command): New function.
1401 (python_interactive_command): For "python-interactive" with
1402 arguments, call eval_python_command. For "python-interactive"
1403 without arguments, call PyRun_InteractiveLoop.
1404 (_initialize_python): Add "python-interactive" command with
1405 "pi" as alias, and add "py" as an alias to "python".
1406
1407 2012-08-22 Tom Tromey <tromey@redhat.com>
1408
1409 * defs.h (quit_flag): Don't declare.
1410 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1411 (QUIT): Use new functions.
1412 * event-top.c (command_handler): Use clear_quit_flag.
1413 (handle_sigint): Use set_quit_flag.
1414 (async_request_quit): Use check_quit_flag. Don't check
1415 immediate_quit.
1416 * exceptions.c (throw_exception): Use clear_quit_flag.
1417 * main.c (captured_main): Use clear_quit_flag.
1418 * python/python.c (clear_quit_flag, set_quit_flag)
1419 (check_quit_flag): New functions.
1420 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1421 clear_quit_flag.
1422 * remote.c (remote_wait_as): Use check_quit_flag,
1423 clear_quit_flag.
1424 (remote_start_remote): Call QUIT.
1425 * symfile.c (load_progress): Use check_quit_flag.
1426 * top.c (command_loop): Use clear_quit_flag.
1427 (command_line_input): Call QUIT.
1428 * utils.c (quit_flag): Conditionally define.
1429 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1430 functions.
1431 (prompt_for_continue): Call QUIT. Use quit, not
1432 async_request_quit.
1433 * remote-mips.c (mips_expect_timeout): Call QUIT.
1434 * monitor.c (monitor_expect): Call QUIT.
1435
1436 2012-08-22 Tom Tromey <tromey@redhat.com>
1437
1438 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1439 (async_init_signals): Update.
1440 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1441 (SIGWINCH_HANDLER_BODY): Remove.
1442
1443 2012-08-22 Tom Tromey <tromey@redhat.com>
1444
1445 * jit.c (jit_object_close_impl): Don't malloc the objfile
1446 name.
1447 * objfiles.c (allocate_objfile): Don't malloc the objfile
1448 name.
1449 (free_objfile): Don't free the objfile name.
1450 * objfiles.h (struct objfile) <name>: Update comment.
1451 * symfile.c (reread_symbols): Fix reference counting. Don't
1452 malloc objfile name.
1453
1454 2012-08-22 Tom Tromey <tromey@redhat.com>
1455
1456 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1457 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1458 (symfile_bfd_open): Likewise.
1459 (generic_load): Likewise.
1460 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1461 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1462 gdb_bfd_open.
1463 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1464 Use gdb_bfd_open.
1465 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1466 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1467 (pmon_load_fast): Likewise.
1468 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1469 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1470 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1471 (macho_check_dsym): Likewise.
1472 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1473 (m32r_upload_command): Likewise.
1474 * gdb_bfd.h (gdb_bfd_cache): Declare.
1475 * gdb_bfd.c (struct gdb_bfd_data): New.
1476 (gdb_bfd_cache): New global.
1477 (struct gdb_bfd_cache_search): New.
1478 (hash_bfd): New function.
1479 (eq_bfd): Likewise.
1480 (gdb_bfd_open): Likewise.
1481 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1482 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1483 gdb_bfd_data.
1484 * exec.c (exec_file_attach): Use gdb_bfd_open.
1485 * dsrec.c (load_srec): Use gdb_bfd_open.
1486
1487 2012-08-22 Tom Tromey <tromey@redhat.com>
1488
1489 * dwarf2read.c (macro_start_file): Update.
1490 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1491 (free_objfile_per_bfd_storage): Destroy macro_cache.
1492 (allocate_objfile, free_objfile): Update.
1493 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1494 New field.
1495 (struct objfile) <macro_cache>: Remove.
1496 * symfile.c (reread_symbols): Update.
1497 * symmisc.c (print_symbol_bcache_statistics): Update.
1498 (print_objfile_statistics): Update.
1499
1500 2012-08-22 Tom Tromey <tromey@redhat.com>
1501
1502 * elfread.c (elf_symtab_read): Update.
1503 * objfiles.c (objfiles_bfd_data): New global.
1504 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1505 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1506 (allocate_objfile, free_objfile): Update.
1507 (_initialize_objfiles): Initialize objfiles_bfd_data.
1508 * objfiles.h (struct objfile_per_bfd_storage): New.
1509 (struct objfile) <per_bfd>: New field.
1510 <filename_cache>: Remove.
1511 (set_objfile_per_bfd): Declare.
1512 * symfile.c (reread_symbols): Update. Call
1513 set_objfile_per_bfd.
1514 (allocate_symtab): Update.
1515 * symmisc.c (print_symbol_bcache_statistics): Update.
1516 (print_objfile_statistics): Print the size of the BFD obstack.
1517
1518 2012-08-22 Tom Tromey <tromey@redhat.com>
1519
1520 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1521 * gdb_bfd.c: Use DEFINE_REGISTRY.
1522 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1523 (gdb_bfd_ref): Call bfd_alloc_data.
1524 (gdb_bfd_unref): Call bfd_free_data.
1525
1526 2012-08-22 Tom Tromey <tromey@redhat.com>
1527
1528 * registry.h (struct registry_fields): New.
1529 (REGISTRY_FIELDS): Redefine.
1530 (REGISTRY_ACCESS_FIELD): New macro.
1531 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1532 functions.
1533
1534 2012-08-22 Tom Tromey <tromey@redhat.com>
1535
1536 * auto-load.c (_initialize_auto_load): Update.
1537 * solib-svr4.c (_initialize_svr4_solib): Update
1538 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1539 * solib-darwin.c (_initialize_darwin_solib): Update.
1540 * registry.h: New file.
1541 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1542 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1543 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1544 (register_program_space_data_with_cleanup)
1545 (register_program_space_data, program_space_alloc_data)
1546 (clear_program_space_data, set_program_space_data)
1547 (program_space_data): Don't declare.
1548 * progspace.c: Use DEFINE_REGISTRY.
1549 (struct program_space_data, struct
1550 program_space_data_registration, struct
1551 program_space_data_registry, program_space_data_registry)
1552 (register_program_space_data_with_cleanup)
1553 (register_program_space_data, program_space_alloc_data)
1554 (program_space_free_data, clear_program_space_data)
1555 (set_program_space_data, program_space_data): Remove.
1556 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1557 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1558 (register_objfile_data_with_cleanup, register_objfile_data)
1559 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1560 declare.
1561 * objfiles.c: Use DEFINE_REGISTRY.
1562 (struct objfile_data, struct objfile_data_registration, struct
1563 objfile_data_registry, objfile_data_registry)
1564 (register_objfile_data_with_cleanup, register_objfile_data)
1565 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1566 (set_objfile_data, objfile_data): Remove.
1567 (_initialize_objfiles): Update.
1568 * jit.c (_initialize_jit): Update.
1569 * inflow.c (_initialize_inflow): Update.
1570 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1571 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1572 (register_inferior_data_with_cleanup, register_inferior_data)
1573 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1574 declare.
1575 * inferior.c: Use DEFINE_REGISTRY.
1576 (struct inferior_data, struct inferior_data_registration, struct
1577 inferior_data_registry, inferior_data_registry)
1578 (register_inferior_data_with_cleanup, register_inferior_data)
1579 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1580 (set_inferior_data, inferior_data): Remove.
1581 * auxv.c (_initialize_auxv): Update.
1582 * ada-lang.c (_initialize_ada_language): Update.
1583 * breakpoint.c (_initialize_breakpoint): Update.
1584 * i386-nat.c (i386_use_watchpoints): Update.
1585
1586 2012-08-22 Tom Tromey <tromey@redhat.com>
1587
1588 * exec.c (exec_close, exec_file_attach): Update.
1589 (add_to_section_table): Initialize 'key' field.
1590 (add_target_sections, remove_target_sections): Add 'key' argument.
1591 * exec.h (add_target_sections, remove_target_sections): Add
1592 'key' argument.
1593 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1594 (reload_shared_libraries_1): Update.
1595 * target.h (struct target_section) <key>: New field.
1596
1597 2012-08-22 Tom Tromey <tromey@redhat.com>
1598
1599 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1600
1601 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1602
1603 * symfile.c (allocate_symtab): Use host_address_to_string
1604 function instead of cast of pointer to long which is not
1605 compatible with x86_64-w64-mingw32 build.
1606
1607 2012-08-19 Andrew Pinski <apinski@cavium.com>
1608
1609 * mips-tdep.c (is_octeon): New function.
1610 (is_octeon_bbit_op): New function.
1611 (mips32_next_pc): Handle Octeon's bbit instructions.
1612 (mips32_instruction_has_delay_slot): Likewise.
1613
1614 2012-08-19 Andrew Pinski <apinski@cavium.com>
1615
1616 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1617 before the function.
1618
1619 2012-08-19 Andrew Pinski <apinski@cavium.com>
1620
1621 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1622
1623 2012-08-19 Keith Seitz <keiths@redhat.com>
1624
1625 PR c++/14365
1626 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1627 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1628
1629 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1630
1631 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1632 The typo broke "make TAGS".
1633
1634 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1635
1636 GDB 7.5 released.
1637
1638 2012-08-17 Keith Seitz <keiths@redhat.com>
1639
1640 PR c++/13356
1641 * gdbtypes.c (strict_type_checking): New variable.
1642 (show_strict_type_checking): New function.
1643 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1644 if strict type checking is disabled.
1645 (_initialize_gdbtypes): Add "check type" subcommand.
1646 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1647
1648 2012-08-17 Keith Seitz <keiths@redhat.com>
1649
1650 * language.h (type_mode): Remove.
1651 (type_check): Remove.
1652 (struct language_defn): Remove la_type_check.
1653 (STRICT_TYPE): Remove unused macro.
1654 (type_error): Remove.
1655 * language.c (set_type_range_case): Renamed to ...
1656 (set_range_case): ... this. Update all callers.
1657 Remove type_mode/type_check.
1658 (type_mode): Remove.
1659 (type_check): Remove.
1660 (show_type_command): Remove.
1661 (set_type_command): Remove.
1662 (language_info): Remove type checking output.
1663 (type_error): Remove unused function.
1664 (range_error): Update comment.
1665 (unknown_language_defn): Remove la_type_check.
1666 (auto_language_defn): Likewise.
1667 (local_language_defn): Likewise.
1668 (_initialize_language): Remove "check type" subcommand.
1669 * ada-lang.c (ada_language_defn): Remove la_type_check.
1670 * c-lang.c (c_language_defn): Likewise.
1671 (cplus_language_defn): Likewise.
1672 (asm_language_defn): Likewise.
1673 (minimal_language_defn): Likewise.
1674 * d-lang.c (d_language_defn): Likewise.
1675 * f-lang.c (f_language_defn): Likewise.
1676 * go-lang.c (go_language_defn): Likewise.
1677 * jv-lang.c (java_language_defn): Likewise.
1678 * m2-lang.c (m2_language_defn): Likewise.
1679 * objc-lang.c (objc_language_defn): Likewise.
1680 * opencl-lang.c (opencl_language_defn): Likewise.
1681 * p-lang.c (pascal_language_defn): Likewise.
1682
1683 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1684
1685 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1686
1687 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1688
1689 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1690 New function.
1691 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1692 using the regache. Use ia64_hpux_get_register_from_save_state_t
1693 to access the bsp and bspstore registers if not.
1694
1695 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1696
1697 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1698 * breakpoint.c (detach_breakpoints): Change pid parameter into
1699 a ptid. Adjust code accordingly.
1700 * infrun.c (handle_inferior_event): Delete variable child_pid.
1701 Update call to detach_breakpoints to pass the child ptid for
1702 fork events.
1703 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1704 assert that inferior_ptid's lwp is zero.
1705 (linux_handle_extended_wait): Update call to detach_breakpoints.
1706 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1707 detach_breakpoints.
1708
1709 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1710
1711 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1712 parent, only call detach_breakpoints if tts.tts_event ==
1713 TTEVT_VFORK.
1714
1715 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1716
1717 * dwarf2-frame.c (dwarf2_frame_cache): Use
1718 get_frame_address_in_block instead of get_frame_pc as
1719 the bound for executing the frame's FDE.
1720
1721 2012-08-16 Yao Qi <yao@codesourcery.com>
1722
1723 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1724 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1725 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1726 (c_type_print_varspec_suffix): Likewise.
1727 * eval.c (evaluate_subexp_standard): Likewise.
1728 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1729 (f_type_print_varspec_suffix): Likewise.
1730 * gdbtypes.c (is_scalar_type): Likewise.
1731 (recursive_dump_type): Likewise.
1732 * infcall.c (value_arg_coerce): Likewise.
1733 * m2-valprint.c (m2_val_print): Likewise.
1734 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1735 (pascal_type_print_varspec_suffix): Likewise.
1736 (pascal_type_print_base): Likewise.
1737 * p-valprint.c (pascal_val_print): Likewise.
1738 (pascal_val_print): Likewise.
1739 * valops.c (value_slice): Likewise.
1740 * valprint.c (scalar_type_p): Likewise.
1741 * valarith.c (value_bitstring_subscript): Remove.
1742 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1743 Remove comment on TYPE_CODE_BITSTRING.
1744
1745 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1746 TYPE_CODE_BITSTRING.
1747
1748 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1749 slot 0.
1750
1751 2012-08-16 Yao Qi <yao@codesourcery.com>
1752
1753 * tracepoint.c (trace_find_none_command): Remove.
1754 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1755
1756 2012-08-16 Yao Qi <yao@codesourcery.com>
1757
1758 * remote.c (handle_notification): Remove parameter 'length'.
1759 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1760
1761 2012-08-15 Keith Seitz <keiths@redhat.com>
1762
1763 * gdbtypes.c (opaque_type_resolution): Make static.
1764 Add missing comment.
1765 (overload_debug): Add missing comment.
1766 (show_opaque_type_resolution): Likewise.
1767 (show_overload_debug): Likewise.
1768 (print_bit_vector): Remove unnecessary forward declaration.
1769 (print_arg_types): Likewise.
1770 (dump_fn_fieldlists): Likewise.
1771 (print_cplus_stuff): Likewise.
1772
1773 2012-08-15 Tom Tromey <tromey@redhat.com>
1774
1775 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1776 (gdb_bfd_ref): Initialize new field.
1777 (gdb_bfd_unref): Unref the archive BFD.
1778 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1779 parent archive.
1780
1781 2012-08-15 Tom Tromey <tromey@redhat.com>
1782
1783 PR python/14387:
1784 * python/py-bpevent.c (create_breakpoint_event_object): Update
1785 comment.
1786 * python/py-event.c (evpy_add_attribute): Update comment.
1787 * python/py-exitedevent.c (create_exited_event_object): Fix
1788 reference counting and error handling.
1789 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1790 Fix reference counting.
1791 * python/py-signalevent.c (create_signal_event_object): Fix
1792 reference counting and error handling.
1793 * python/py-stopevent.c (emit_stop_event): Fix reference
1794 counting.
1795 * python/py-threadevent.c (get_event_thread): Return a
1796 borrowed reference.
1797 * python/py-type.c (convert_field): Fix reference counting.
1798
1799 2012-08-15 Tom Tromey <tromey@redhat.com>
1800
1801 * dwarf2read.c (dwarf_decode_macro_bytes)
1802 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1803 as hash key.
1804
1805 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1806
1807 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1808 stepi, nexti, finish, next, step, jump, and continue commands.
1809 * infrun.c (_initialize_infrun): Update help text for the handle
1810 command.
1811
1812 2012-08-14 Doug Evans <dje@google.com>
1813
1814 * gdbtypes.c (struct extra): Delete, unused.
1815
1816 * gdbtypes.c: Whitespace cleanup.
1817 (address_space_name_to_int): Remove "extern" from definition.
1818 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1819
1820 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1821 TYPE_POINTER_TYPE (type).
1822
1823 2012-08-14 Gary Benson <gbenson@redhat.com>
1824
1825 * solib-svr4.c (svr4_free_library_list): Use free_so.
1826
1827 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1828
1829 * .gitignore: Add go-exp.c.
1830
1831 2012-08-13 Doug Evans <dje@google.com>
1832
1833 * value.c (show_convenience): Tweak comment.
1834 (_initialize_values): Mention convenience functions in the help text
1835 for "show convenience".
1836
1837 2012-08-13 Yao Qi <yao@codesourcery.com>
1838
1839 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1840 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1841 TERNOP_SLICE_COUNT.
1842 * eval.c (evaluate_subexp_standard): Likewise.
1843 * expprint.c (print_subexp_standard): Likewise.
1844 (dump_subexp_body_standard): Likewise.
1845 * parse.c (operator_length_standard): Likewise.
1846
1847 2012-08-13 Yao Qi <yao@codesourcery.com>
1848
1849 * std-operator.def: Remove OP_BITSTRING.
1850 * breakpoint.c (watchpoint_exp_is_const): Update.
1851 * eval.c (evaluate_subexp_standard): Remove handling to
1852 OP_BITSTRING.
1853 * expprint.c (print_subexp_standard): Likewise.
1854 (dump_subexp_body_standard): Likewise.
1855 * parse.c (operator_length_standard): Likewise.
1856 * valops.c (value_bitstring): Remove.
1857 * value.h: Remove the declaration of 'value_bitstring'.
1858
1859 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1860
1861 * linespec.c (find_methods): Remove unused variables `i1' and
1862 `name_len'.
1863 (decode_line_full): Likewise for `arg_start'.
1864
1865 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1866
1867 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1868 (zlib_decompress_section): Likewise for `section_data'.
1869 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1870
1871 2012-08-10 Doug Evans <dje@google.com>
1872
1873 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1874 * NEWS: Document them.
1875 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1876 function/strfns.py.
1877 * python/py-type.c (typy_array_1): New function.
1878 (typy_array): Call it.
1879 (typy_vector): New function.
1880 (type_object_methods): Add "vector".
1881 * python/lib/gdb/function/__init__.py: New file.
1882 * python/lib/gdb/function/strfns.py: New file.
1883
1884 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1885
1886 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1887 for TYPE_FIELD_BITPOS.
1888 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1889
1890 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1891
1892 PR cli/10436:
1893 * common/vec.h (VEC_merge): Define.
1894 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1895 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1896 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1897 * completer.c: Include gdb_signals.h.
1898 (signal_completer): Define.
1899 * completer.h (signal_completer): Add prototype.
1900 * infcmd.c (_initialize_infcmd): Assign the command
1901 completer for "signal" to handle_completer.
1902 * infrun.c: Include completer.h.
1903 (handle_completer): Define.
1904 (_initialize_infrun): Declare a new local variable c. Store the
1905 result of add_com("handle") to it. Assign the command
1906 completer for "handle" to handle_completer.
1907
1908 2012-08-09 Yao Qi <yao@codesourcery.com>
1909
1910 * cli/cli-decode.c (set_cmd_prefix): New.
1911 (lookup_cmd_for_prefixlist): New.
1912 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1913 of each cmd_list_element in *prefixlist.
1914 (add_setshow_cmd_full): set_cmd_prefix.
1915 (add_alias_cmd): Likewise.
1916 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1917 Declare 'auto_boolean_enums'.
1918 * cli/cli-setshow.c: Include "observer.h".
1919 (notify_command_param_changed_p): New.
1920 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1921 Remove 'static'.
1922 (do_setshow_command): Split it to ...
1923 (do_set_command, do_show_command): ... them. New.
1924 (do_set_command): Call observer_notify_command_param_changed if
1925 notify_command_param_changed_p returns true.
1926 (cmd_show_list): Caller update.
1927 * auto-load.c (set_auto_load_cmd): Likewise.
1928 * remote.c (show_remote_cmd): Likewise.
1929 * cli/cli-setshow.h: Update declarations.
1930 * top.c (execute_command): Call do_set_command and do_show_command.
1931
1932 * NEWS: Mention new MI notification.
1933 * mi/mi-interp.c: Declare mi_command_param_changed.
1934 (mi_interpreter_init): Attach mi_command_param_changed to
1935 observer command_param_changed.
1936 (mi_command_param_changed): New.
1937 Remove mi_suppress_breakpoint_notifications.
1938 Define global variable mi_suppress_notification.
1939 (mi_breakpoint_created): Update.
1940 (mi_breakpoint_deleted): Likewise.
1941 (mi_breakpoint_modified): Likewise.
1942 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1943 'gdb-set' and set mi_suppress_notification.
1944 * mi/mi-main.h: (mi_suppress_notification): New struct.
1945
1946 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1947 Jan Kratochvil <jan.kratochvil@redhat.com>
1948
1949 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1950
1951 2012-08-09 Yao Qi <yao@codesourcery.com>
1952
1953 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1954 (skiplist): Move it to skip.c.
1955 (init_cmd_lists): Remove code setting enablebreaklist and
1956 skiplist to NULL.
1957 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1958 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1959 skiplist.
1960 * gdbcmd.h: Likewise.
1961 * skip.c (_initialize_step_skip): Move 'skiplist' from
1962 cli/cli-cmds.c.
1963
1964 2012-08-09 Yao Qi <yao@codesourcery.com>
1965
1966 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1967 * gnu-nat.c, symfile.c: Likewise.
1968
1969 2012-08-08 Aaron Gamble <agamble@google.com>
1970
1971 * utils.c (prompt_for_continue_wait_time): New static global.
1972 (make_command_stats_cleanup): Initialize it.
1973 (report_command_stats): Subtract time waiting for user.
1974 (prompt_for_continue): Track time waiting for user.
1975 (defaulted_query): Track time waiting for user.
1976
1977 2012-08-08 Doug Evans <dje@google.com>
1978
1979 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1980 UNOP_MEMVAL_TYPE.
1981 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1982 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1983 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1984 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1985 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1986 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1987 elt.
1988 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1989 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1990 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1991 (dump_prefix_expression): Handle OP_TYPE.
1992
1993 2012-08-08 Keith Seitz <keiths@redhat.com>
1994
1995 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1996 addr_start.
1997
1998 2012-08-08 Doug Evans <dje@google.com>
1999
2000 * linux-thread-db.c: #include "gdb_vecs.h".
2001 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2002 updated.
2003 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2004 (thread_db_load_search): Use a vector to iterate over path elements.
2005 Handle text appearing after "$pdir".
2006
2007 * gdb_string.h: Moved to ...
2008 * common/gdb_string.h: ... here.
2009 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2010 gdb_string.h and gdb_assert.h.
2011
2012 2012-08-08 Yao Qi <yao@codesourcery.com>
2013
2014 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2015 (tic6x_value_to_register): Likewise.
2016 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2017 and set_gdbarch_value_to_register.
2018
2019 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2020 Jean-Marc Saffroy <saffroy@gmail.com>
2021
2022 PR 11804
2023 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2024 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2025 * gcore.c (gcore_create_callback): New function comment. Add modified
2026 parameter. Only write modified regions. Set SEC_READONLY exactly
2027 according to MODIFIED.
2028 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2029 the passed modified value to FUNC.
2030 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2031 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2032 first. New variables modified and has_anonymous. Parse the lines of
2033 smaps file. Add the passed MODIFIED value to FUNC.
2034 * procfs.c (find_memory_regions_callback): Add the passed modified
2035 value.
2036
2037 2012-08-06 Tom Tromey <tromey@redhat.com>
2038
2039 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2040 (dwarf2_frame_cache): Use it.
2041 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2042 cache initialization constraint.
2043
2044 2012-08-06 Tom Tromey <tromey@redhat.com>
2045
2046 PR python/14386:
2047 * varobj.c (update_dynamic_varobj_children): Don't call
2048 PyIter_Check.
2049
2050 2012-08-06 Tom Tromey <tromey@redhat.com>
2051
2052 PR cli/14392:
2053 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2054
2055 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2056
2057 * NEWS: New entry for 'cd' default parameters.
2058 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2059
2060 2012-08-03 Tom Tromey <tromey@redhat.com>
2061
2062 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2063 return.
2064
2065 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2066
2067 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2068 to attempting lseek/write.
2069 (inf_child_fileio_pread): Likewise for pread.
2070
2071 2012-08-02 Yao Qi <yao@codesourcery.com>
2072
2073 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2074 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2075 add_setshow_zinteger_cmd.
2076 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2077 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2078 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2079 instead of add_setshow_zinteger_cmd.
2080 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2081 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2082 instead of add_setshow_zinteger_cmd.
2083 * frame.c (frame_debug): Add 'unsigned'.
2084 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2085 add_setshow_zinteger_cmd.
2086 * frame.h: Update the declaration of 'frame_debug'.
2087 * gdbtypes.c (overload_debug): Add 'unsigned'.
2088 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2089 add_setshow_zinteger_cmd.
2090 * inferior.h: Update declaration of 'debug_infrun'.
2091 * infrun.c (debug_infrun): Add 'unsigned'.
2092 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2093 add_setshow_zinteger_cmd.
2094 * jit.c (jit_debug): Add 'unsigned'.
2095 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2096 add_setshow_zinteger_cmd.
2097 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2098 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2099 instead of add_setshow_zinteger_cmd.
2100 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2101 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2102 add_setshow_zinteger_cmd.
2103 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2104 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2105 instead of add_setshow_zinteger_cmd.
2106 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2107 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2108 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2109 intead of add_setshow_zinteger_cmd.
2110 * mips-tdep.c (mips_debug): Add 'unsigned'.
2111 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2112 instead of add_setshow_zinteger_cmd.
2113 * monitor.c (monitor_debug): Add 'unsigned'.
2114 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2115 add_setshow_zinteger_cmd.
2116 * observer.c (observer_debug): Add 'unsigned'.
2117 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2118 add_setshow_zinteger_cmd.
2119 * parse.c (expressiondebug): Add 'unsigned'.
2120 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2121 add_setshow_zinteger_cmd.
2122 * record.c (record_debug): Add 'unsigned'.
2123 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2124 add_setshow_zinteger_cmd.
2125 * record.h: Update the declaration of 'record_debug'.
2126 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2127 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2128 add_setshow_zinteger_cmd.
2129 * serial.c (global_serial_debug_p): Add 'unsigned'.
2130 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2131 add_setshow_zinteger_cmd.
2132 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2133 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2134 add_setshow_zinteger_cmd.
2135 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2136 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2137 add_setshow_zinteger_cmd.
2138 * target.c (targetdebug): Add 'unsigned'.
2139 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2140 add_setshow_zinteger_cmd.
2141 * valops.c (overload_debug): Add 'unsigned'.
2142 * varobj.c (varobjdebug): Add 'unsigned'.
2143 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2144 add_setshow_zinteger_cmd.
2145 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2146 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2147 instead of add_setshow_zinteger_cmd.
2148
2149 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2150 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2151 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2152 instead of add_setshow_zinteger_cmd.
2153 * gdbarch.c, gdbarch.h: Re-generated.
2154
2155 2012-08-02 Yao Qi <yao@codesourcery.com>
2156
2157 * nto-tdep.c: Don't include cli/cli-decode.h and
2158 cli/cli-cmds.h.
2159 (_initialize_nto_tdep): Remove.
2160 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2161 Remove field.
2162 Remove macro nto_internal_debugging.
2163
2164 2012-08-01 Richard Henderson <rth@redhat.com>
2165
2166 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2167 (mep-*-*) [gdb_target_obs]: Likewise.
2168
2169 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2170
2171 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2172 linux_get_siginfo_type.
2173
2174 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2175
2176 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2177 AT_ENTRY_POINT.
2178 (call_function_by_hand) <ON_STACK>: Call write_memory with
2179 gdbarch_breakpoint_from_pc, if possible.
2180 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2181 here.
2182
2183 2012-07-31 Yao Qi <yao@codesourcery.com>
2184
2185 * tracepoint.c: Add 'static' for some variables.
2186
2187 2012-07-31 Yao Qi <yao@codesourcery.com>
2188
2189 * go32-nat.c: Declare _initialize_go32_nat.
2190 * ser-go32.c: Declare _initialize_ser_dos.
2191 * top.c (do_chdir_cleanup): Add 'static'.
2192
2193 2012-07-30 Keith Seitz <keiths@redhat.com>
2194
2195 * linespec.c (linespec_lex_number): A number followed
2196 by quotes is a valid number, too.
2197
2198 2012-07-30 Tom Tromey <tromey@redhat.com>
2199
2200 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2201
2202 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2203
2204 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2205 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2206
2207 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2208
2209 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2210 invalid or reevaluated to prevent prevent references to possibly
2211 delete'd type objects being left in the varobj.
2212
2213 2012-07-27 Tom Tromey <tromey@redhat.com>
2214 Jan Kratochvil <jan.kratochvil@redhat.com>
2215
2216 * copying.awk: Print buffer-read-only and vi ro markers.
2217 * copying.c: Rebuild.
2218 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2219 * gdbarch.c, gdbarch.h: Rebuild.
2220 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2221 buffer-read-only and vi ro markers.
2222 * features/arm-with-iwmmxt.c: Rebuild.
2223 * features/arm-with-m-fpa-layout.c: Rebuild.
2224 * features/arm-with-m-vfp-d16.c: Rebuild.
2225 * features/arm-with-m.c: Rebuild.
2226 * features/arm-with-neon.c: Rebuild.
2227 * features/arm-with-vfpv2.c: Rebuild.
2228 * features/arm-with-vfpv3.c: Rebuild.
2229 * features/i386/amd64-avx-linux.c: Rebuild.
2230 * features/i386/amd64-avx.c: Rebuild.
2231 * features/i386/amd64-linux.c: Rebuild.
2232 * features/i386/amd64.c: Rebuild.
2233 * features/i386/i386-avx-linux.c: Rebuild.
2234 * features/i386/i386-avx.c: Rebuild.
2235 * features/i386/i386-linux.c: Rebuild.
2236 * features/i386/i386-mmx-linux.c: Rebuild.
2237 * features/i386/i386-mmx.c: Rebuild.
2238 * features/i386/i386.c: Rebuild.
2239 * features/i386/x32-avx-linux.c: Rebuild.
2240 * features/i386/x32-avx.c: Rebuild.
2241 * features/i386/x32-linux.c: Rebuild.
2242 * features/i386/x32.c: Rebuild.
2243 * features/mips-dsp-linux.c: Rebuild.
2244 * features/mips-linux.c: Rebuild.
2245 * features/mips64-dsp-linux.c: Rebuild.
2246 * features/mips64-linux.c: Rebuild.
2247 * features/rs6000/powerpc-32.c: Rebuild.
2248 * features/rs6000/powerpc-32l.c: Rebuild.
2249 * features/rs6000/powerpc-403.c: Rebuild.
2250 * features/rs6000/powerpc-403gc.c: Rebuild.
2251 * features/rs6000/powerpc-405.c: Rebuild.
2252 * features/rs6000/powerpc-505.c: Rebuild.
2253 * features/rs6000/powerpc-601.c: Rebuild.
2254 * features/rs6000/powerpc-602.c: Rebuild.
2255 * features/rs6000/powerpc-603.c: Rebuild.
2256 * features/rs6000/powerpc-604.c: Rebuild.
2257 * features/rs6000/powerpc-64.c: Rebuild.
2258 * features/rs6000/powerpc-64l.c: Rebuild.
2259 * features/rs6000/powerpc-7400.c: Rebuild.
2260 * features/rs6000/powerpc-750.c: Rebuild.
2261 * features/rs6000/powerpc-860.c: Rebuild.
2262 * features/rs6000/powerpc-altivec32.c: Rebuild.
2263 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2264 * features/rs6000/powerpc-altivec64.c: Rebuild.
2265 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2266 * features/rs6000/powerpc-cell32l.c: Rebuild.
2267 * features/rs6000/powerpc-cell64l.c: Rebuild.
2268 * features/rs6000/powerpc-e500.c: Rebuild.
2269 * features/rs6000/powerpc-e500l.c: Rebuild.
2270 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2271 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2272 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2273 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2274 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2275 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2276 * features/rs6000/powerpc-vsx32.c: Rebuild.
2277 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2278 * features/rs6000/powerpc-vsx64.c: Rebuild.
2279 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2280 * features/rs6000/rs6000.c: Rebuild.
2281 * features/s390-linux32.c: Rebuild.
2282 * features/s390-linux32v1.c: Rebuild.
2283 * features/s390-linux32v2.c: Rebuild.
2284 * features/s390-linux64.c: Rebuild.
2285 * features/s390-linux64v1.c: Rebuild.
2286 * features/s390-linux64v2.c: Rebuild.
2287 * features/s390x-linux64.c: Rebuild.
2288 * features/s390x-linux64v1.c: Rebuild.
2289 * features/s390x-linux64v2.c: Rebuild.
2290 * features/tic6x-c62x-linux.c: Rebuild.
2291 * features/tic6x-c62x.c: Rebuild.
2292 * features/tic6x-c64x-linux.c: Rebuild.
2293 * features/tic6x-c64x.c: Rebuild.
2294 * features/tic6x-c64xp-linux.c: Rebuild.
2295 * features/tic6x-c64xp.c: Rebuild.
2296
2297 2012-07-27 Tom Tromey <tromey@redhat.com>
2298
2299 * c-exp.y (classify_name): Avoid assignment in condition.
2300
2301 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2302
2303 * amd64-windows-tdep.c: Include "frame.h".
2304 (amd64_windows_skip_trampoline_code): New function.
2305 (amd64_windows_init_abi): Add trampoline registration.
2306
2307 2012-07-27 Yao Qi <yao@codesourcery.com>
2308
2309 * tracepoint.c (cur_traceframe_number): Remove.
2310 (set_tfile_traceframe): Remove.
2311 (tfile_trace_find, tfile_fetch_registers): Update callers.
2312 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2313 (tfile_open, tfile_trace_find): Likewise.
2314
2315 2012-07-27 Yao Qi <yao@codesourcery.com>
2316
2317 * thread.c (switch_to_thread): Don't call registers_changed.
2318
2319 2012-07-26 Tom Tromey <tromey@redhat.com>
2320
2321 * Makefile.in (SFILES): Remove objc-exp.y.
2322 (YYFILES): Remove objc-exp.c.
2323 (YYOBJ): Remove objc-exp.o.
2324 (local-maintainer-clean): Don't mention objc-exp.c.
2325 * c-exp.y: Include objc-lang.h.
2326 (%union) <class>: New field.
2327 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2328 (exp): Clone subscript production for OBJC_LBRAC. Add various
2329 Objective C productions.
2330 (msglist, msgarglist, msgarg): New productions.
2331 (array_mod, func_mod, operator): Clone productions for
2332 OBJC_LBRAC.
2333 (parse_string_or_char): Handle '@' strings.
2334 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2335 (classify_name): Check la_name_of_this. Recognize ObjC class
2336 names.
2337 * objc-exp.y: Remove.
2338 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2339 * objc-lang.h (objc_parse, objc_error): Don't declare.
2340
2341 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2342
2343 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2344
2345 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2346
2347 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2348 and decrement.
2349
2350 2012-07-26 Tom Tromey <tromey@redhat.com>
2351
2352 * copying.c: Rebuild.
2353 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2354 'no_class'.
2355
2356 2012-07-26 Tom Tromey <tromey@redhat.com>
2357
2358 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2359 immediate_quit.
2360 (print_objfile_statistics): Likewise.
2361 (maintenance_print_symbols): Likewise.
2362 (maintenance_print_msymbols): Likewise.
2363 (maintenance_print_objfiles): Likewise.
2364 * psymtab.c (print_partial_symbols): Call QUIT.
2365 (maintenance_print_psymbols): Likewise. Don't modify
2366 immediate_quit.
2367 * copying.c (show_copying_command): Don't modify immediate_quit.
2368 (show_warranty_command): Likewise.
2369 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2370
2371 2012-07-26 Keith Seitz <keiths@redhat.com>
2372
2373 * linespec.c (linespec_lexer_lex_number): The input
2374 is also a valid number if the next character is a comma
2375 or colon.
2376
2377 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2378
2379 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2380 configure options.
2381
2382 2012-07-26 Tristan Gingold <gingold@adacore.com>
2383
2384 * machoread.c: Include gdb_bfd.h.
2385
2386 2012-07-26 Tristan Gingold <gingold@adacore.com>
2387
2388 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2389 offset.
2390
2391 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2392
2393 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2394 SIZE to size_t.
2395 (dwarf2_evaluate_loc_desc): Likewise.
2396 (dwarf2_loc_desc_needs_frame): Likewise.
2397 (locexpr_describe_location_1): Likewise.
2398 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2399 size_t.
2400 (struct dwarf2_loclist_baton): Likewise.
2401 * dwarf2read.c (struct dwarf_block): Likewise.
2402 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2403 (decode_locdesc): Expand SIZE and I to size_t.
2404
2405 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2408
2409 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2410
2411 * doublest.c (convert_doublest_to_floatformat): If the exponent
2412 is too small, treat the value as zero. If the exponent is too
2413 large, treat the value as infinity.
2414
2415 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2416
2417 * configure.ac: Add --enable-lmcheck configure option.
2418 * configure: Regenerate.
2419
2420 2012-07-25 Tom Tromey <tromey@redhat.com>
2421
2422 * NEWS: Mention maint info bfds.
2423 * gdb_bfd.c (all_bfds): New global.
2424 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2425 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2426 New functions.
2427
2428 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2429
2430 * configure.tgt: Add v850*-*-rtems*.
2431
2432 2012-07-25 Tom Tromey <tromey@redhat.com>
2433
2434 * macrotab.c (macro_bcache_str): Remove cast.
2435
2436 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2437
2438 * linespec.c (linespec_lexer_lex_number): Update comments,
2439 change the return and add check to make sure the input is
2440 the decimal numbers.
2441 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2442 false, call linespec_lexer_lex_string.
2443
2444 2012-07-24 Tom Tromey <tromey@redhat.com>
2445
2446 * symfile.c (symbol_file_add): Don't open BFD twice.
2447
2448 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2449
2450 * breakpoint.c (create_breakpoint): Store condition for pending
2451 breakpoints.
2452
2453 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2454
2455 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2456 (m68k_return_value): Handle complex types like structures.
2457 (m68k_svr4_return_value): Likewise.
2458
2459 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2460
2461 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2462 parameters to bfd_get_section_name.
2463
2464 2012-07-24 Yao Qi <yao@codesourcery.com>
2465
2466 * cli/cli-setshow.c: Handle case 'var_uinteger'
2467 and 'var_zuninteger' together. Handle case 'var_integer' and
2468 'var_zinteger' together.
2469
2470 2012-07-23 Keith Seitz <keiths@redhat.com>
2471
2472 * linespec.c (convert_linespec_to_sal): Don't add
2473 any symbols to the result vector if symbol_to_sal
2474 returns zero.
2475
2476 2012-07-23 Keith Seitz <keiths@redhat.com>
2477
2478 * linespec.c (decode_objc): Record the function name
2479 in the linespec.
2480
2481 2012-07-23 Tom Tromey <tromey@redhat.com>
2482
2483 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2484 counting.
2485 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2486 (map_vmap): Acquire a reference to the BFD.
2487
2488 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2489
2490 * p-valprint.c (pascal_object_print_value): Replace potentially
2491 unsafe alloca with xmalloc/xfree.
2492 * valops.c (search_struct_method): Likewise.
2493
2494 2012-07-23 Tom Tromey <tromey@redhat.com>
2495
2496 * solib-svr4.c (enable_break): Update.
2497 * bfd-target.h (target_bfd_reopen): Update documentation.
2498
2499 2012-07-23 Tom Tromey <tromey@redhat.com>
2500
2501 * symfile.c (separate_debug_file_exists): Update.
2502 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2503 (reread_symbols): Update.
2504 * elfread.c (build_id_verify): Update.
2505 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2506 bfd_open_maybe_remote.
2507
2508 2012-07-23 Tom Tromey <tromey@redhat.com>
2509
2510 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2511
2512 2012-07-23 Tom Tromey <tromey@redhat.com>
2513
2514 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2515 and 'abfd'.
2516 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2517 and 'abfd'.
2518 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2519 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2520 'abfd'.
2521 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2522 * objfiles.c (allocate_objfile): Acquire a new reference.
2523 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2524 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2525 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2526 a cleanup for 'nbfd'.
2527 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2528 for 'nbfd'.
2529 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2530 make a cleanup for 'abfd'.
2531 (symbol_file_add): Make a BFD cleanup.
2532
2533 2012-07-23 Tom Tromey <tromey@redhat.com>
2534
2535 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2536 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2537 * corelow.c (core_open): Use gdb_bfd_fopen.
2538 * dsrec.c (load_srec): Use gdb_bfd_openr.
2539 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2540 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2541 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2542 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2543 (gdb_bfd_fdopenr): New functions.
2544 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2545 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2546 (gdb_bfd_fdopenr): Declare.
2547 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2548 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2549 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2550 gdb_bfd_openr_next_archived_file.
2551 (macho_check_dsym): Use gdb_bfd_openr.
2552 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2553 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2554 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2555 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2556 gdb_bfd_openr.
2557 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2558 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2559 gdb_bfd_openr_next_archived_file.
2560 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2561 Use gdb_bfd_openr.
2562 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2563 gdb_bfd_openr.
2564 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2565 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2566 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2567 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2568 (symfile_bfd_open): Use gdb_bfd_fopen.
2569 (generic_load): Use gdb_bfd_openr.
2570 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2571
2572 2012-07-23 Tom Tromey <tromey@redhat.com>
2573
2574 * bfd-target.c (target_bfd_reopen): Update.
2575 * cli/cli-dump.c (bfd_openr_with_cleanup)
2576 (bfd_openw_with_cleanup): Update.
2577 * corelow.c (core_open): Update.
2578 * dsrec.c (load_srec): Update.
2579 * exec.c (exec_file_attach): Update.
2580 * gcore.c (create_gcore_bfd): Update.
2581 * gdb_bfd.c (gdb_bfd_ref): Return void.
2582 (gdb_bfd_open): Update.
2583 * gdb_bfd.h (gdb_bfd_ref): Return void.
2584 Update comments.
2585 * jit.c (jit_bfd_try_read_symtab): Update.
2586 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2587 * machoread.c (macho_symfile_read_all_oso): Update.
2588 (macho_check_dsym): Update.
2589 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2590 * remote-m32r-sdi.c (m32r_load): Update.
2591 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2592 * rs6000-nat.c (add_vmap): Update.
2593 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2594 Update.
2595 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2596 * solib-spu.c (spu_bfd_open): Update.
2597 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2598 * spu-linux-nat.c (spu_bfd_open): Update.
2599 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2600 (generic_load): Update.
2601 * windows-nat.c (windows_make_so): Update.
2602
2603 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2604
2605 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2606
2607 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2608
2609 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2610 SIGTRAMP_FRAME unwinding.
2611
2612 2012-07-20 Doug Evans <dje@google.com>
2613
2614 * NEWS: Document new options "set/show use-deprecated-index-sections",
2615 and delete reference to --use-deprecated-index-sections.
2616 * symfile.h (use_deprecated_index_sections): Delete.
2617 * dwarf2read.c (use_deprecated_index_sections): Make static.
2618 (read_index_from_section): Update wording of how to load
2619 deprecated index sections.
2620 (_initialize_dwarf2_read): New options
2621 "set/show use-deprecated-index-sections".
2622 * main.c (captured_main): Delete --use-deprecated-index-sections.
2623
2624 2012-07-20 Pedro Alves <palves@redhat.com>
2625
2626 PR threads/11692
2627 PR gdb/12203
2628
2629 * infrun.c (handle_inferior_event) <new thread>: Don't special
2630 case minus_one_ptid.
2631 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2632 * linux-thread-db.c (thread_get_info_callback): Don't return early
2633 if the thread is zombie.
2634 (thread_from_lwp): Change return type to void. Rewrite stale
2635 comment.
2636 (attach_thread): Don't return early if the thread is zombie,
2637 instead set its "dying" flag.
2638 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2639 (find_new_threads_callback): Don't return early if the thread is
2640 zombie.
2641
2642 2012-07-20 Pedro Alves <palves@redhat.com>
2643
2644 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2645 * target.c (target_wait): Likewise.
2646 (str_comma_list_concat_elem, do_option, target_options_to_string):
2647 New functions.
2648 * target.h (target_options_to_string): Declare.
2649
2650 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2651 Tom Tromey <tromey@redhat.com>
2652
2653 * dwarf2read.c (dwarf_decode_macros)
2654 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2655 DW_MACRO_GNU_transparent_include_alt>: New cases.
2656 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2657 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2658
2659 2012-07-20 Tom Tromey <tromey@redhat.com>
2660
2661 * dwarf2read.c (try_open_dwo_file): Don't call
2662 gdb_bfd_stash_filename.
2663
2664 2012-07-20 Pedro Alves <palves@redhat.com>
2665
2666 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2667 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2668 (i386_process_record): Tweak description comments.
2669
2670 2012-07-20 Pedro Alves <palves@redhat.com>
2671
2672 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2673 (i386_process_record): Use record_read_memory.
2674 * record.c (record_read_memory): New function.
2675 (record_arch_list_add_mem, record_exec_insn): Use
2676 record_read_memory.
2677 * record.h (record_read_memory): Declare.
2678
2679 2012-07-20 Yao Qi <yao@codesourcery.com>
2680
2681 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2682 NULL for xfree.
2683
2684 2012-07-19 Pedro Alves <palves@redhat.com>
2685
2686 * record.c (record_resume): Ask the target beneath to report all
2687 signals.
2688
2689 2012-07-19 Doug Evans <dje@google.com>
2690
2691 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2692 there's no section at address zero.
2693 (dwarf2_record_block_ranges): Ditto.
2694
2695 2012-07-19 Yao Qi <yao@codesourcery.com>
2696
2697 * command.h, remote.c: Fix a typo in comment.
2698
2699 2012-07-19 Tom Tromey <tromey@redhat.com>
2700
2701 PR exp/13206:
2702 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2703 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2704 OP_DECLTYPE>: New cases.
2705 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2706 (type_exp): Add new productions.
2707 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2708 and decltype.
2709 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2710 New case.
2711 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2712 OP_DECLTYPE>: New case.
2713 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2714 New case.
2715 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2716 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2717
2718 2012-07-19 Tom Tromey <tromey@redhat.com>
2719
2720 * c-exp.y (enum token_flags): New.
2721 (struct token) <cxx_only>: Remove.
2722 <flags>: New field.
2723 (tokentab3, tokentab2, ident_tokens): Update.
2724 (lex_one_token): Update. Handle FLAG_SHADOW.
2725
2726 2012-07-19 Tom Tromey <tromey@redhat.com>
2727
2728 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2729 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2730 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2731 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2732 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2733 type_exp production where appropriate.
2734 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2735 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2736 <UNOP_MEMVAL_TYPE>: New case.
2737 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2738 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2739 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2740 <UNOP_MEMVAL_TYPE>: New case.
2741 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2742 UNOP_REINTERPRET_CAST>: Update.
2743 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2744 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2745 UNOP_REINTERPRET_CAST>: Update.
2746 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2747 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2748 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2749 constants.
2750
2751 2012-07-19 Yao Qi <yao@codesourcery.com>
2752 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2755 and case 'var_optional_filename' together.
2756 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2757 instead of add_setshow_optional_filename_cmd for setshow command
2758 'args'. Set completer for 'set args'.
2759
2760 2012-07-18 Doug Evans <dje@google.com>
2761
2762 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2763 * common/gdb_vecs.c: New file, contents from utils.c.
2764 * common/host-defs.h: New file, contents from defs.h.
2765 * utils.h: New file, contents from defs.h.
2766 * defs.h: Move all declarations of objects defined in utils.c
2767 to utils.h (except QUIT() and related).
2768 #include "utils.h", "host-defs.h".
2769 * probe.h (probe_p): Move here from gdb_vecs.h.
2770 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2771 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2772 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2773 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2774 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2775 (COMMON_OBS): Add gdb_vecs.o.
2776 (gdb_vecs.o): New rule.
2777
2778 2012-07-18 Keith Seitz <keiths@redhat.com>
2779
2780 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2781 parameter. If non-zero, use SYMNAME as the canonical name
2782 for the SaL.
2783 Update all callers.
2784 (convert_linespec_to_sals): Use add_sal_to_sals for
2785 expressions, too.
2786 (decode_line_full): No need to "fill in missing canonical names"
2787 anymore. Simply make cleanups for the allocated names.
2788
2789 2012-07-18 Keith Seitz <keiths@redhat.com>
2790
2791 * linespec.c (struct linespec): Constify expression,
2792 source_filename, function_name, and label_name.
2793 (symbol_not_found_error): Make all parameters const.
2794 (linespec_parser_delete): No need to check for NULL
2795 when using xfree. Cast const char * to char * for xfree.
2796
2797 2012-07-18 Keith Seitz <keiths@redhat.com>
2798
2799 * breakpoint.c (invalid_thread_id_error): New function.
2800 (find_condition_and_thread): Use invalid_thread_id_error.
2801 (watch_command_1): Likewise.
2802
2803 2012-07-18 Tom Tromey <tromey@redhat.com>
2804
2805 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2806 * contrib/cc-with-tweaks.sh: New file.
2807
2808 2012-07-18 Tom Tromey <tromey@redhat.com>
2809
2810 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2811 (locate_dwz_sections): Recognize .gdb_index.
2812 (create_cus_from_index_list): New function.
2813 (create_cus_from_index): Use it. Handle .dwz data.
2814 (read_index_from_section): New function, extracted from
2815 dwarf2_read_index.
2816 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2817 if needed.
2818
2819 2012-07-18 Tom Tromey <tromey@redhat.com>
2820
2821 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2822 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2823 <is_dwz>: New field.
2824 (struct dwz_file): New.
2825 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2826 (locate_dwz_sections, dwarf2_get_dwz_file)
2827 (get_abbrev_section_for_cu): New functions.
2828 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2829 (read_and_check_type_unit_head): Add abbrev_section argument.
2830 (create_debug_types_hash_table): Update.
2831 (init_cutu_and_read_dies): Use proper abbrev section.
2832 (init_cutu_and_read_dies_no_follow): Likewise.
2833 (set_partial_user): Do nothing if PST==NULL.
2834 (read_comp_units_from_section): New function.
2835 (create_all_comp_units): Use it.
2836 (scan_partial_symbols, partial_die_parent_scope): Update.
2837 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2838 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2839 (find_partial_die): Add offset_in_dwz argument. Update.
2840 (guess_partial_die_structure_name, fixup_partial_die): Update.
2841 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2842 DW_FORM_GNU_strp_alt.
2843 (read_indirect_string_from_dwz): New function.
2844 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2845 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2846 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2847 (follow_die_offset): Add offset_in_dwz argument.
2848 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2849 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2850 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2851 Handle new macro forms.
2852 (dwarf_decode_macros): Update.
2853 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2854 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2855 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2856 (create_debug_types_hash_table): Use correct abbrev section.
2857 (get_debug_line_section): New function.
2858 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2859 (process_full_comp_unit): Pass 'required' argument to
2860 end_symtab_get_static_block.
2861 * buildsym.h (end_symtab_get_static_block): Update.
2862 * buildsym.c (end_symtab_get_static_block): Add 'required'
2863 argument.
2864 (end_symtab, end_expandable_symtab): Update.
2865
2866 2012-07-18 Tom Tromey <tromey@redhat.com>
2867
2868 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2869 (pagesize): Remove.
2870 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2871 (zlib_decompress_section): Remove.
2872 (dwarf2_read_section): Use gdb_bfd_map_section.
2873 (munmap_section_buffer): Remove.
2874 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2875 munmap_section_buffer.
2876 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2877 (struct gdb_bfd_section_data): New.
2878 (free_one_bfd_section): New function.
2879 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2880 (get_section_descriptor, zlib_decompress_section)
2881 (gdb_bfd_map_section): New functions.
2882 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2883
2884 2012-07-18 Tom Tromey <tromey@redhat.com>
2885
2886 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2887
2888 2012-07-18 Tom Tromey <tromey@redhat.com>
2889
2890 * gdb_bfd.c (struct gdb_bfd_data): New.
2891 (gdb_bfd_cache): New global.
2892 (struct gdb_bfd_cache_search): New.
2893 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2894 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2895 * gdb_bfd.h (gdb_bfd_open): Declare.
2896
2897 2012-07-18 Tom Tromey <tromey@redhat.com>
2898
2899 * utils.c (make_cleanup_bfd_unref): Rename from
2900 make_cleanup_bfd_close.
2901 * defs.h (make_cleanup_bfd_unref): Rename from
2902 make_cleanup_bfd_close.
2903 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2904 (bfd_openw_with_cleanup): Update.
2905 * corelow.c (core_open): Update.
2906 * dsrec.c (load_srec): Update.
2907 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2908 * remote-m32r-sdi.c (m32r_load): Update.
2909 * remote-mips.c (mips_load_srec): Update.
2910 (pmon_load_fast): Update.
2911 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2912 Update.
2913 (darwin_bfd_open): Update.
2914 * solib.c (solib_bfd_fopen): Update.
2915 * symfile-mem.c (symbol_file_add_from_memory): Update.
2916 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2917 (symfile_bfd_open): Update.
2918 (generic_load): Update.
2919
2920 2012-07-18 Tom Tromey <tromey@redhat.com>
2921
2922 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2923 (pmon_load_fast): Likewise.
2924 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2925 (m32r_upload_command): Likewise.
2926 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2927 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2928 Use make_cleanup_bfd_close.
2929
2930 2012-07-18 Tom Tromey <tromey@redhat.com>
2931
2932 * symfile.c (symfile_bfd_open): Don't copy name. Call
2933 gdb_bfd_stash_filename.
2934 (load_command): Open the new BFD before freeing the old.
2935 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2936 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2937 Call gdb_bfd_stash_filename.
2938 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2939 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2940 gdb_bfd_stash_filename.
2941 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2942 Free found_pathname.
2943 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2944 gdb_bfd_stash_filename.
2945 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2946 * machoread.c (macho_add_oso_symfile): Call
2947 gdb_bfd_stash_filename.
2948 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2949 gdb_bfd_stash_filename.
2950 (macho_check_dsym): Don't copy filename. Call
2951 gdb_bfd_stash_filename.
2952 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2953 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2954 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2955 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2956 * exec.c (exec_close): Don't free the BFD's filename.
2957 (exec_file_attach): Don't copy the filename. Call
2958 gdb_bfd_stash_filename.
2959 * corelow.c (core_close): Don't free the BFD's filename.
2960 (core_open): Call gdb_bfd_stash_filename.
2961 * corefile.c (reopen_exec_file): Remove #if 0 code.
2962 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2963 pathname.
2964 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2965
2966 2012-07-18 Tom Tromey <tromey@redhat.com>
2967
2968 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2969 gdb_bfd_unref.
2970 (free_dwo_file): Use gdb_bfd_unref.
2971 * cli/cli-dump.c: Include gdb_bfd.h.
2972 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2973 (bfd_openr_with_cleanup): Likewise.
2974 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2975 gdb_bfd_unref.
2976 * utils.c: Include gdb_bfd.h.
2977 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2978 * symfile.c: Include gdb_bfd.h.
2979 (separate_debug_file_exists): Use gdb_bfd_unref.
2980 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2981 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2982 (generic_load): Use gdb_bfd_ref.
2983 (reread_symbols): Use gdb_bfd_unref.
2984 * symfile-mem.c: Include gdb_bfd.h.
2985 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2986 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2987 * solib.c: Include gdb_bfd.h.
2988 (solib_bfd_fopen): Use gdb_bfd_ref.
2989 (solib_bfd_open): Use gdb_bfd_unref.
2990 (free_so_symbols): Use gdb_bfd_unref.
2991 (reload_shared_libraries_1): Use gdb_bfd_unref.
2992 * solib-spu.c: Include gdb_bfd.h.
2993 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2994 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2995 gdb_bfd_unref.
2996 * solib-frv.c: Include gdb_bfd.h.
2997 (enable_break2): Use gdb_bfd_unref.
2998 * solib-dsbt.c: Include gdb_bfd.h.
2999 (enable_break2): Use gdb_bfd_unref.
3000 * solib-darwin.c: Include gdb_bfd.h.
3001 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3002 gdb_bfd_unref.
3003 (darwin_bfd_open): Use gdb_bfd_unref.
3004 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3005 * remote-mips.c: Include gdb_bfd.h.
3006 (mips_load_srec): Use gdb_bfd_ref.
3007 (pmon_load_fast): Use gdb_bfd_ref.
3008 * remote-m32r-sdi.c: Include gdb_bfd.h.
3009 (m32r_load): Use gdb_bfd_ref.
3010 * record.c: Include gdb_bfd.h.
3011 (record_save_cleanups): Use gdb_bfd_unref.
3012 (cmd_record_save): Use gdb_bfd_unref.
3013 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3014 gdb_bfd_unref.
3015 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3016 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3017 * objfiles.c: Include gdb_bfd.h.
3018 (free_objfile): Use gdb_bfd_unref.
3019 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3020 gdb_bfd.c.
3021 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3022 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3023 (macho_check_dsym): Likewise.
3024 * m32r-rom.c: Include gdb_bfd.h.
3025 (m32r_load): Use gdb_bfd_ref.
3026 (m32r_upload_command): Use gdb_bfd_ref.
3027 * jit.c: Include gdb_bfd.h.
3028 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3029 * gdb_bfd.h: New file.
3030 * gdb_bfd.c: New file.
3031 * gcore.c: Include gdb_bfd.h.
3032 (create_gcore_bfd): Use gdb_bfd_ref.
3033 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3034 (gcore_command): Use gdb_bfd_unref.
3035 * exec.c: Include gdb_bfd.h.
3036 (exec_close): Use gdb_bfd_unref.
3037 (exec_close_1): Use gdb_bfd_unref.
3038 (exec_file_attach): Use gdb_bfd_ref.
3039 * elfread.c: Include gdb_bfd.h.
3040 (build_id_verify): Use gdb_bfd_unref.
3041 * dsrec.c: Include gdb_bfd.h.
3042 (load_srec): Use gdb_bfd_ref.
3043 * corelow.c: Include gdb_bfd.h.
3044 (core_close): Use gdb_bfd_unref.
3045 (core_open): Use gdb_bfd_ref.
3046 * bfd-target.c: Include gdb_bfd.h.
3047 (target_bfd_xclose): Use gdb_bfd_unref.
3048 (target_bfd_reopen): Use gdb_bfd_ref.
3049 * Makefile.in (SFILES): Add gdb_bfd.c.
3050 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3051 (COMMON_OBS): Add gdb_bfd.o.
3052
3053 2012-07-18 Keith Seitz <keiths@redhat.com>
3054
3055 * breakpoint.c (find_condition_and_thread): Initialize
3056 TASK and REST.
3057 (create_breakpiont): find_condition_and_thread will now
3058 initialize COND_STRING, THREAD, and REST (and TASK).
3059 (addr_string_to_sals): Likewise.
3060
3061 2012-07-18 Pedro Alves <palves@redhat.com>
3062
3063 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3064 Pull the single step breakpoints out of the target.
3065
3066 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3067
3068 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3069 * stap-probe.c (compile_probe_arg): Likewise.
3070
3071 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3072
3073 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3074 (elf_compile_to_ax): Likewise.
3075 * infrun.c (insert_exception_resume_from_probe): Likewise.
3076 (check_exception_resume): Remove `objfile' variable.
3077 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3078 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3079 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3080 (compare_entries): Rename to...
3081 (compare_probes): ...this. Adjust function to work with
3082 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3083 respectively.
3084 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3085 `VEC (probe_p) *'.
3086 (print_ui_out_info): Adjust argument to be `struct probe *'.
3087 (info_probes_for_ops): Adjust internal computations to use
3088 `VEC (probe_p) *'.
3089 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3090 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3091 gen_info_probes_table_values>: Remove `objfile' argument.
3092 (struct probe) <objfile>: New field.
3093 (find_probe_by_pc): Remove `objfile' argument.
3094 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3095 (stap_get_probe_argument_count): Likewise.
3096 (stap_get_arg): Likewise.
3097 (stap_evaluate_probe_argument): Likewise.
3098 (stap_compile_to_ax): Likewise.
3099 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3100 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3101 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3102 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3103 sym_compile_to_ax>: Likewise.
3104
3105 2012-07-18 Terry Guo <terry.guo@arm.com>
3106
3107 PR 14329
3108 * defs.h (GDB_MI_MSG_WIDTH): New.
3109 * ser_base (ser_base_read_error_fd): New function.
3110 (do_ser_base_readchar): Poll error file descriptor as well as
3111 standard output.
3112 (generic_readchar): Refactor error handling.
3113
3114 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3115
3116 * NEWS: Create a new section for the next release branch.
3117 Rename the section of the current branch, now that it has
3118 been cut.
3119
3120 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3121
3122 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3123 * version.in: Bump version to 7.5.50.20120718-cvs.
3124
3125 2012-07-17 Keith Seitz <keiths@redhat.com>
3126
3127 * linespec.c (linespec_parse_line_offset): Make parameter
3128 const.
3129
3130 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 PR 11914
3133 * f-valprint.c (info_common_command): New variable frame_id.
3134 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3135 * printcmd.c (print_variable_and_value): Extend function comment.
3136 Add comment for invalidated FRAME.
3137 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3138 FI form FRAME_ID after each print_frame_local_vars.
3139 (struct print_variable_and_value_data): Change frame to frame_id.
3140 (do_print_variable_and_value): New variable frame, initialize it from
3141 p->frame_id. Add comment for invalidated FRAME.
3142 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3143 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3144 for invalidated FRAME.
3145
3146 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3147 Pedro Alves <palves@redhat.com>
3148
3149 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3150 loop.
3151
3152 2012-07-16 Tom Tromey <tromey@redhat.com>
3153
3154 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3155
3156 2012-07-15 Doug Evans <dje@google.com>
3157
3158 * dwarf2read.c (stmt_list_hash): New struct.
3159 (type_unit_group): Embed "per_cu" member, remove pointer.
3160 New union member "t", move member "tus" into it, all uses updated.
3161 New member "hash", replaces member "line_offset, all uses updated.
3162 (quick_file_names): Replace member "offset" with "hash", all uses
3163 updated.
3164 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3165 (hash_file_name_entry, eq_file_name_entry): Call them.
3166 (hash_type_unit_group, eq_type_unit_group): Ditto.
3167 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3168 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3169 (dw2_get_file_names): Update.
3170 (create_type_unit_group): Replace "per_cu" arg with "cu".
3171 All callers updated. Fix "quick" (.gdb_index) handling.
3172 (get_type_unit_group): Replace "per_cu" arg with "cu".
3173 All callers updated.
3174 (build_type_unit_groups): Don't reset tu_stats.
3175
3176 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3177 "tab_cur_size". Change member "tab" to be a htab_t.
3178 (create_filename_seen_cache): Update.
3179 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3180 (filename_seen): Update.
3181
3182 2012-07-13 Doug Evans <dje@google.com>
3183
3184 * symtab.c (filename_seen): Update comment.
3185
3186 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3187 Doug Evans <dje@google.com>
3188
3189 * buildsym.c (end_symtab_1): Split it to ...
3190 (end_symtab_get_static_block): ... this ...
3191 (end_symtab_from_static_block): ... and this function.
3192 (end_symtab, end_expandable_symtab): Call them.
3193 * buildsym.h (end_symtab_get_static_block)
3194 (end_symtab_from_static_block): New declarations.
3195 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3196 Set its valid CU ranges.
3197
3198 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3201 DW_OP_GNU_parameter_ref.
3202
3203 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3204
3205 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3206 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3207
3208 2012-07-13 Doug Evans <dje@google.com>
3209
3210 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3211 (filename_seen_cache): New struct.
3212 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3213 (create_filename_seen_cache): New function.
3214 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3215 (filename_seen): Delete arg "first". New arg "cache". All callers
3216 updated.
3217 (output_source_filename_data): New struct.
3218 (output_source_filename): Delete arg "first". New arg "data".
3219 All callers updated.
3220 (sources_info): Delete local "first". New locals "data", "cleanups".
3221 Rewrite to use filename_seen_cache.
3222 (add_partial_filename_data): Delete member "first". New member
3223 "filename_seen_cache". All uses updated.
3224 (make_source_files_completion_list): Rewrite to use
3225 filename_seen_cache.
3226
3227 2012-07-12 Doug Evans <dje@google.com>
3228
3229 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3230
3231 2012-07-10 Doug Evans <dje@google.com>
3232
3233 PR gdb/13498
3234 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3235 all_type_unit_groups, type_unit_groups, tu_stats.
3236 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3237 All uses updated. Add type_unit_group to union "s".
3238 (type_unit_group): New struct.
3239 (IS_TYPE_UNIT_GROUP): New macro.
3240 (abbrev_table): Delete unused member "section".
3241 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3242 (dw2_get_cu): Assert not used with type_unit_group.
3243 (dw2_get_primary_cu): New function.
3244 (dw2_build_type_unit_groups_reader): New function.
3245 (dw2_build_type_unit_groups): New function.
3246 (dw2_get_file_names): Assert not called on type units.
3247 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3248 Redo loop to iterate over type unit groups instead of type units.
3249 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3250 (read_abbrev_offset): New function.
3251 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3252 updated.
3253 (create_partial_symtab): New function.
3254 (process_psymtab_comp_unit_reader): Assert not used with type units.
3255 Call create_partial_symtab.
3256 (process_psymtab_type_unit): Delete.
3257 (hash_type_unit_group, eq_type_unit_group): New functions.
3258 (allocate_type_unit_groups_table): New function.
3259 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3260 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3261 (create_type_unit_group, get_type_unit_group): New functions.
3262 (tu_abbrev_offset): New struct.
3263 (sort_tu_by_abbrev_offset): New function.
3264 (add_type_unit_group_to_table): New function.
3265 (build_type_unit_groups): New function.
3266 (build_type_psymtabs_reader): New function.
3267 (build_type_psymtab_dependencies): New function.
3268 (build_type_psymtabs): Rewrite.
3269 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3270 is seen in a type unit.
3271 (process_queue): Move symtab expansion debugging printfs here.
3272 Call process_full_type_unit for type units.
3273 (compute_symtab_includes): Assert not called for type units.
3274 (process_cu_includes): Don't call compute_symtab_includes for
3275 type units.
3276 (process_full_type_unit): New function.
3277 (process_imported_unit_die): Flag an error if called for type units.
3278 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3279 updated. Assert not called for type units.
3280 (read_file_scope): Call dwarf2_start_symtab.
3281 (setup_type_unit_groups): New function.
3282 (read_type_unit_scope): Rewrite.
3283 (abbrev_table_read_table): Initialize abbrev_table->offset.
3284 (abbrev_table_free_cleanup): New function.
3285 (dwarf2_start_symtab): New function.
3286 (load_full_type_unit): Assert not called for type unit groups.
3287 * buildsym.c (finish_block_internal): New arg "expandable".
3288 All callers updated.
3289 (start_symtab): Move most contents to ...
3290 (restart_symtab): ... here. New function.
3291 (reset_symtab_globals): New function.
3292 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3293 Call reset_symtab_globals.
3294 (end_symtab, end_expandable_symtab): New functions.
3295 (set_missing_symtab, augment_type_symtab): New functions.
3296 * buildsym.h (end_expandable_symtab): Declare.
3297 (augment_type_symtab, restart_symtab): Declare.
3298 * psympriv.h (struct partial_symtab): New member "anonymous".
3299 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3300 anonymous psymtabs.
3301 (read_psymtabs_with_filename): Ditto.
3302 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3303 (expand_symtabs_matching_via_partial): Ditto.
3304 (dump_psymtab): Update.
3305 * dictionary.c (dict_add_pending): New function.
3306 * dictionary.h (dict_add_pending): Declare.
3307
3308 2012-07-09 Doug Evans <dje@google.com>
3309
3310 * buildsym.c (start_subfile): Remove unnecessary check for
3311 name == NULL.
3312
3313 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3314
3315 * dwarf2read.c (load_full_type_unit): Simplify.
3316
3317 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3318 to struct signatured_type **. All uses updated.
3319
3320 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3321 All callers updated.
3322
3323 2012-07-09 Tom Tromey <tromey@redhat.com>
3324
3325 * c-exp.y (check_parameter_typelist): New function.
3326 (parameter_typelist): Call it.
3327 * eval.c (make_params): Handle '(void)' case.
3328 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3329 '(void)' case.
3330
3331 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3332
3333 * common/linux-ptrace.c: Include gdb_assert.h.
3334 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3335 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3336 stdint.h.
3337 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3338 functions.
3339 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3340 * linux-nat.c (linux_child_post_attach)
3341 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3342
3343 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3346 nptl <2.7 bug workaround for core files.
3347
3348 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3349
3350 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3351 clearing.
3352 (save_siginfo): Remove.
3353 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3354 call.
3355 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3356 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3357 * linux-nat.h (struct lwp_info): Remove field siginfo.
3358
3359 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3360
3361 Code cleanup for the next patch.
3362 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3363 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3364 call for it.
3365 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3366 (ia64_linux_stopped_data_address):
3367 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3368 the return value.
3369 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3370 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3371 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3372 call for it.
3373
3374 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3375
3376 PR 14321
3377 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3378 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3379
3380 2012-07-06 Tom Tromey <tromey@redhat.com>
3381
3382 * c-exp.y (DOTDOTDOT): New token.
3383 (func_mod, exp): Use parameter_typelist.
3384 (parameter_typelist): New production.
3385 (tokentab3): Add "..." token.
3386 * eval.c (make_params): Handle varargs.
3387 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3388 varargs.
3389
3390 2012-07-06 Tom Tromey <tromey@redhat.com>
3391
3392 PR exp/9608:
3393 * c-exp.y (%union) <tvec>: Change type.
3394 (func_mod): Now uses <tvec> type.
3395 (exp): Update for tvec change.
3396 (direct_abs_decl): Push the typelist.
3397 (func_mod): Return a typelist.
3398 (nonempty_typelist): Update for tvec change.
3399 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3400 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3401 * parse.c (pop_type_list): New function.
3402 (push_typelist): New function.
3403 (follow_types): Handle tp_function_with_arguments.
3404 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3405 (enum type_pieces) <tp_function_with_arguments>: New constant.
3406 (union type_stack_elt) <typelist_val>: New field.
3407 (push_typelist): Declare.
3408
3409 2012-07-06 Tom Tromey <tromey@redhat.com>
3410
3411 * c-exp.y (%union) <type_stack>: New field.
3412 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3413 (ptr_operator_ts): New production.
3414 (ptype): Update.
3415 * parse.c (type_stack_reserve): New function.
3416 (check_type_stack_depth): Use it.
3417 (pop_type_stack, append_type_stack, push_type_stack)
3418 (get_type_stack, type_stack_cleanup): New functions.
3419 (follow_types): Handle tp_type_stack.
3420 (_initialize_parse): Simplify initialization.
3421 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3422 constant.
3423 (union type_stack_elt) <stack_val>: New field.
3424 (get_type_stack, append_type_stack, push_type_stack)
3425 (type_stack_cleanup): Declare.
3426
3427 2012-07-06 Tom Tromey <tromey@redhat.com>
3428
3429 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3430 Remove.
3431 (struct type_stack): New.
3432 * parse.c (type_stack, type_stack_size, type_stack_depth):
3433 Remove.
3434 (type_stack): New global.
3435 (parse_exp_in_context, check_type_stack_depth)
3436 (insert_into_type_stack, insert_type, push_type, push_type_int)
3437 (insert_type_address_space, pop_type, pop_type_int)
3438 (_initialize_parse): Update.
3439
3440 2012-07-06 Tom Tromey <tromey@redhat.com>
3441
3442 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3443 Remove %type.
3444
3445 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3446
3447 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3448
3449 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3450 Jan Kratochvil <jan.kratochvil@redhat.com>
3451
3452 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3453 alloca with xmalloc/xfree.
3454
3455 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3456
3457 * MAINTAINERS (Write After Approval): Add myself to the list.
3458
3459 2012-07-05 Doug Evans <dje@google.com>
3460
3461 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3462
3463 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3464
3465 * ax-gdb.c (cli/cli-utils.h): New include.
3466 (linespec.h): Ditto.
3467 (agent_eval_command_one): New function.
3468 (agent_command_1): Ditto.
3469 (agent_command): Call function agent_command_1.
3470 (agent_eval_command): Ditto.
3471 (_initialize_ax_gdb): Change help for "maint agent"
3472 and "maint agent-eval".
3473
3474 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3475
3476 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3477 * cli/cli-utils.c (check_for_argument): New function.
3478 * cli/cli-utils.h (check_for_argument): Ditto.
3479
3480 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3481
3482 * NEWS: Mention x32 ABI support.
3483
3484 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3485
3486 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3487 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3488
3489 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3490 and pc_regnum_from_eax to -1. Update SP regnum from
3491 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3492 needed.
3493
3494 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3495 pc_regnum_from_eax.
3496
3497 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3498
3499 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3500 * dwarf2expr.h: Include gdbtypes.h.
3501 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3502 these forward declarations.
3503 (cu_offset, sect_offset): Move these ...
3504 * gdbtypes.h: Remove include dwarf2expr.h.
3505 (cu_offset, sect_offset): ... here.
3506
3507 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3508
3509 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3510 (amd64_linux_sigtramp_code): This.
3511 (amd64_x32_linux_sigtramp_code): New.
3512 (LINUX_SIGTRAMP_LEN): Updated.
3513 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3514
3515 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3516
3517 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3518
3519 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3520
3521 * config.in: Regenerate.
3522 * configure: Regenerate.
3523 * configure.ac: Remove check for gnu/libc-version.h.
3524 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3525 gnu/libc-version.h.
3526 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3527 variables libc_version, libc_major and libc_minor. Replace sscanf by
3528 inferior_has_bug. Extend the comment.
3529
3530 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3531
3532 * linux-thread-db.c (inferior_has_bug): New function.
3533 (thread_db_find_new_threads_silently): Return boolean as checked by
3534 inferior_has_bug, describe it in the comments.
3535 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3536 earlier. Abort the initialization if it returned non-zero.
3537 (thread_db_new_objfile): Exclude debug files.
3538 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3539 if UNTIL_NO_NEW,
3540
3541 2012-07-02 Doug Evans <dje@google.com>
3542
3543 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3544 related to queue management.
3545
3546 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3547 instead of "debug dwarf2-die" in debugging printfs.
3548 (create_debug_info_hash_table_reader): Ditto.
3549 (create_debug_info_hash_table): Ditto.
3550 (init_dwo_file): Ditto.
3551 (init_cutu_and_read_dies): Add debugging printf.
3552 (init_cutu_and_read_dies_no_follow): Ditto.
3553 (process_psymtab_comp_unit_reader): Ditto.
3554
3555 2012-07-02 Stan Shebs <stan@codesourcery.com>
3556
3557 Add target-side support for dynamic printf.
3558 * NEWS: Mention the additional style.
3559 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3560 (struct bp_location): New field cmd_bytecode.
3561 * breakpoint.c: Include format.h.
3562 (disconnected_dprintf): New global.
3563 (parse_cmd_to_aexpr): New function.
3564 (build_target_command_list): New function.
3565 (insert_bp_location): Call it.
3566 (remove_breakpoints_pid): Skip dprintf breakpoints.
3567 (print_one_breakpoint_location): Ditto.
3568 (dprintf_style_agent): New global.
3569 (dprintf_style_enums): Add dprintf_style_agent.
3570 (update_dprintf_command_list): Add agent case.
3571 (agent_printf_command): New function.
3572 (_initialize_breakpoint): Add new commands.
3573 * common/ax.def (printf): New bytecode.
3574 * ax.h (ax_string): Declare.
3575 * ax-gdb.h (gen_printf): Declare.
3576 * ax-gdb.c: Include cli-utils.h, format.h.
3577 (gen_printf): New function.
3578 (maint_agent_print_command): New function.
3579 (_initialize_ax_gdb): Add maint agent-printf command.
3580 * ax-general.c (ax_string): New function.
3581 (ax_print): Add printf disassembly.
3582 * Makefile.in (SFILES): Add format.c
3583 (COMMON_OBS): Add format.o.
3584 * common/format.h: New file.
3585 * common/format.c: New file.
3586 * printcmd.c: Include format.h.
3587 (ui_printf): Call parse_format_string.
3588 * remote.c (remote_state): New field breakpoint_commands.
3589 (PACKET_BreakpointCommands): New enum.
3590 (remote_breakpoint_commands_feature): New function.
3591 (remote_protocol_features): Add new BreakpointCommands entry.
3592 (remote_can_run_breakpoint_commands): New function.
3593 (remote_add_target_side_commands): New function.
3594 (remote_insert_breakpoint): Call it.
3595 (remote_insert_hw_breakpoint): Ditto.
3596 (_initialize_remote): Add new packet configuration for
3597 target-side breakpoint commands.
3598 * target.h (struct target_ops): New field
3599 to_can_run_breakpoint_commands.
3600 (target_can_run_breakpoint_commands): New macro.
3601 * target.c (update_current_target): Handle
3602 to_can_run_breakpoint_commands.
3603
3604 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3605
3606 Execute -ix and -iex only after system and user gdbinit files.
3607 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3608 processing down after gdbinit files.
3609
3610 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3611
3612 Add fnmatch-gnu module.
3613 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3614 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3615 * gnulib/aclocal.m4: Regenerate.
3616 * gnulib/config.in: Regenerate.
3617 * gnulib/configure: Regenerate.
3618 * gnulib/import/dummy.c: Remove.
3619 * gnulib/import/Makefile.am: Regenerate.
3620 * gnulib/import/Makefile.in: Likewise.
3621 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3622 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3623 * gnulib/import/alloca.c: New file.
3624 * gnulib/import/alloca.in.h: Likewise.
3625 * gnulib/import/config.charset: Likewise.
3626 * gnulib/import/fnmatch.c: Likewise.
3627 * gnulib/import/fnmatch.in.h: Likewise.
3628 * gnulib/import/fnmatch_loop.c: Likewise.
3629 * gnulib/import/localcharset.c: Likewise.
3630 * gnulib/import/localcharset.h: Likewise.
3631 * gnulib/import/m4/alloca.m4: Likewise.
3632 * gnulib/import/m4/codeset.m4: Likewise.
3633 * gnulib/import/m4/configmake.m4: Likewise.
3634 * gnulib/import/m4/fcntl-o.m4: Likewise.
3635 * gnulib/import/m4/fnmatch.m4: Likewise.
3636 * gnulib/import/m4/glibc21.m4: Likewise.
3637 * gnulib/import/m4/localcharset.m4: Likewise.
3638 * gnulib/import/m4/locale-fr.m4: Likewise.
3639 * gnulib/import/m4/locale-ja.m4: Likewise.
3640 * gnulib/import/m4/locale-zh.m4: Likewise.
3641 * gnulib/import/m4/mbrtowc.m4: Likewise.
3642 * gnulib/import/m4/mbsinit.m4: Likewise.
3643 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3644 * gnulib/import/m4/mbstate_t.m4: Likewise.
3645 * gnulib/import/m4/stdbool.m4: Likewise.
3646 * gnulib/import/m4/wchar_h.m4: Likewise.
3647 * gnulib/import/m4/wctype_h.m4: Likewise.
3648 * gnulib/import/m4/wint_t.m4: Likewise.
3649 * gnulib/import/mbrtowc.c: Likewise.
3650 * gnulib/import/mbsinit.c: Likewise.
3651 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3652 * gnulib/import/mbsrtowcs-state.c: Likewise.
3653 * gnulib/import/mbsrtowcs.c: Likewise.
3654 * gnulib/import/ref-add.sin: Likewise.
3655 * gnulib/import/ref-del.sin: Likewise.
3656 * gnulib/import/stdbool.in.h: Likewise.
3657 * gnulib/import/streq.h: Likewise.
3658 * gnulib/import/strnlen1.c: Likewise.
3659 * gnulib/import/strnlen1.h: Likewise.
3660 * gnulib/import/verify.h: Likewise.
3661 * gnulib/import/wchar.in.h: Likewise.
3662 * gnulib/import/wctype.in.h: Likewise.
3663
3664 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3665
3666 Support shell wildcards for 'set auto-load safe-path'.
3667 * auto-load.c: Include fnmatch.h.
3668 (filename_is_in_dir): Rename to ...
3669 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3670 it. Update function comment. Rename dir_len to pattern_len. New
3671 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3672 messages. Use gdb_filename_fnmatch.
3673 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3674 pattern.
3675 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3676 * defs.h (gdb_filename_fnmatch): New declaration.
3677 * utils.c: Include fnmatch.h.
3678 (gdb_filename_fnmatch): New function.
3679
3680 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3681
3682 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3683 `-probe' and `-probe-stap' options.
3684
3685 2012-07-01 Yao Qi <yao@codesourcery.com>
3686
3687 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3688 always_inserted_off, and always_inserted_enums.
3689 Change always_inserted_mode's type to 'enum auto_boolean'.
3690 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3691 callers.
3692 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3693 of add_setshow_enum_cmd.
3694 * infrun.c: Remove can_use_displaced_stepping_auto,
3695 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3696 can_use_displaced_stepping_enum.
3697 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3698 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3699 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3700 add_setshow_enum_cmd.
3701
3702 2012-06-30 Doug Evans <dje@google.com>
3703
3704 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3705 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3706 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3707
3708 2012-06-29 Doug Evans <dje@google.com>
3709
3710 * linespec.c: #include "stack.h".
3711 (decode_line_with_current_source): Moved here from symtab.c and
3712 renamed from decode_line_spec. All callers updated.
3713 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3714 renamed from decode_line_spec_1. All callers updated.
3715 * linespec.h (decode_line_with_current_source): Move declaration here
3716 from symtab.h and renamed from decode_line_spec.
3717 (decode_line_with_last_displayed): Move declaration here from symtab.h
3718 and renamed from decode_line_spec_1.
3719 * macrocmd.c: #include "linespec.h".
3720 * symtab.c: Remove #include "linespec.h".
3721
3722 2012-06-28 Doug Evans <dje@google.com>
3723
3724 * dwarf2read.c (get_cu_length): New function.
3725 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3726 (create_debug_types_hash_table): Ditto.
3727 (init_cutu_and_read_dies): Ditto.
3728 (init_cutu_and_read_dies_no_follow): Ditto.
3729
3730 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3731
3732 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3733 (struct abbrev_table): Define.
3734 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3735 abbrev_table.
3736 (init_cutu_and_read_dies): Update.
3737 (abbrev_table_alloc_abbrev): New function. Replaces
3738 dwarf_alloc_abbrev. All callers updated.
3739 (abbrev_table_add_abbrev): New function.
3740 (abbrev_table_lookup_abbrev): New function. Replaces
3741 dwarf2_lookup_abbrev. All callers updated.
3742 (abbrev_table_read_table): New function. Contents moved here from
3743 dwarf2_read_abbrevs.
3744 (dwarf2_read_abbrevs): Call it.
3745 (abbrev_table_free): New function.
3746 (dwarf2_free_abbrev_table): Call it.
3747
3748 2012-06-28 Stan Shebs <stan@codesourcery.com>
3749
3750 * osdata.c (info_osdata_command): Filter out "Title" columns
3751 from non-MI uses.
3752 * common/linux-osdata.c (struct osdata_type): Add title field.
3753 (osdata_table): Add titles to each entry.
3754 (linux_command_xfer_osdata): Add a column for title data.
3755
3756 2012-06-28 Stan Shebs <stan@codesourcery.com>
3757
3758 Make logging work for MI.
3759 * NEWS: Mention it.
3760 * interps.h (interp_set_logging_ftype): New typedef.
3761 (struct interp_procs): New field set_logging_proc.
3762 (current_interp_set_logging): Declare.
3763 * interps.c (current_interp_set_logging): New function.
3764 * cli/cli-logging.c: Include interps.h.
3765 (set_logging_redirect): Call current_interp_set_logging.
3766 (pop_output_files): Ditto.
3767 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3768 * mi/mi-console.h (mi_console_set_raw): Declare.
3769 * mi/mi-console.c (mi_console_set_raw): New function.
3770 * mi/mi-interp.c (saved_raw_stdout): New global.
3771 (mi_set_logging): New function.
3772 (_initialize_mi_interp): Add it to interp procs.
3773
3774 2012-06-28 Doug Evans <dje@google.com>
3775
3776 * symtab.c (lookup_symbol_aux_objfile): Use
3777 ALL_OBJFILE_PRIMARY_SYMTABS.
3778
3779 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3780
3781 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3782
3783 * common/buffer.c: Include inttypes.h and stdint.h.
3784 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3785
3786 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 Pedro Alves <palves@redhat.com>
3788
3789 * gdbthread.h (ALL_THREADS): New macro.
3790 (thread_list): Declare.
3791 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3792 going, but instead fall through to the stepping handling.
3793 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3794 the passed in signal. Adjust debug output.
3795 (resume_callback): Rename to ...
3796 (linux_nat_resume_callback): ... this. Pass the thread's last
3797 stop signal, if in "pass" state.
3798 (linux_nat_resume): Adjust to rename.
3799 (stop_wait_callback): New assertion. Don't respawn signals;
3800 instead let the LWP remain with SIGNALLED set.
3801 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3802 * remote.c (append_pending_thread_resumptions): New.
3803 (remote_vcont_resume): Call it.
3804 * target.h (target_resume): Extend comment.
3805
3806 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3807
3808 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3809
3810 2012-06-27 Doug Evans <dje@google.com>
3811
3812 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3813 Delete have_addr_base, unused. All uses updated.
3814 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3815 (dwarf2_get_pc_bounds): Add ranges_base.
3816 (dwarf2_record_block_ranges): Ditto.
3817
3818 2012-06-27 Tom Tromey <tromey@redhat.com>
3819
3820 PR macros/7961:
3821 * varobj.c (varobj_create): Update.
3822 (varobj_set_value): Update.
3823 * tracepoint.c (validate_actionline): Update.
3824 (encode_actions_1): Update.
3825 * parse.c (parse_exp_1): Add 'pc' argument.
3826 (parse_exp_in_context): Add 'pc' argument. Change how
3827 expression_context_pc is set.
3828 (parse_expression): Update.
3829 (parse_field_expression): Update.
3830 * expression.h (parse_exp_1): Update.
3831 * eval.c (parse_to_comma_and_eval): Update.
3832 * breakpoint.c (set_breakpoint_condition): Update.
3833 (update_watchpoint): Update.
3834 (init_breakpoint_sal): Update
3835 (find_condition_and_thread): Update.
3836 (watch_command_1): Update.
3837 (update_breakpoint_locations): Update.
3838 * ada-lang.c (ada_read_renaming_var_value): Update.
3839 (create_excep_cond_exprs): Update.
3840
3841 2012-06-27 Doug Evans <dje@google.com>
3842
3843 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3844 type units.
3845
3846 2012-06-26 Doug Evans <dje@google.com>
3847
3848 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3849 prototype.
3850 (error_check_comp_unit_head): New arg abbrev_section. All callers
3851 updated.
3852 (read_and_check_comp_unit_head): Ditto.
3853 (read_and_check_type_unit_head): Ditto.
3854
3855 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3856
3857 New attribute 'last' for gdb.Symtab_and_line.
3858 * NEWS (Python Scripting): Add entry about the new attribute.
3859 * python/py-symtab.c (salpy_get_last): New function which
3860 implements the get method for the 'last' attribute of
3861 gdb.Symtab_and_line.
3862 (sal_object_getset): Add entry for the 'last' attribute.
3863
3864 2012-06-26 Doug Evans <dje@google.com>
3865
3866 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3867 (dwo_sections): Add macinfo, macro.
3868 (dwarf2_locate_dwo_sections): Watch for macro sections.
3869 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3870 All callers updated. Handle DWO files.
3871
3872 * NEWS: Mention new options "set debug dwarf2-read" and
3873 "set debug symtab-create".
3874 * dwarf2read.c (dwarf2_read_debug): New static global.
3875 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3876 (process_queue): Ditto.
3877 (process_full_comp_unit): Ditto.
3878 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3879 * elfread.c (elf_symfile_read): Add debugging printf.
3880 * minsyms.c (install_minimal_symbols): Ditto.
3881 * psymtab.c (allocate_psymtab): Ditto.
3882 * symfile.c (allocate_symtab): Ditto.
3883 * symtab.c (symtab_create_debug): New global.
3884 (_initialize_symtab): Add new option "set debug symtab-create".
3885 * symtab.h (symtab_create_debug): Declare.
3886
3887 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3888 (lookup_dwo_type_unit): Ditto.
3889
3890 2012-06-26 Roland McGrath <roland@hack.frob.com>
3891 H.J. Lu <hongjiu.lu@intel.com>
3892
3893 * amd64-linux-nat.c: Include <sys/user.h>.
3894 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3895 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3896 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3897
3898 * configure.ac: Check if the fs_base and gs_base members of
3899 `struct user_regs_struct' exist.
3900 * config.in: Regenerated.
3901 * configure: Likewise.
3902
3903 2012-06-25 Michael Eager <eager@eagercon.com>
3904
3905 PR python/14291
3906 * python/python.c (gdbpy_write): Check for interrupted output.
3907
3908 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3909
3910 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3911 register as a stack alignment in ARM mode.
3912
3913 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3916 * gnulib/config.in: Regenerate.
3917 * gnulib/configure: Likewise.
3918 * gnulib/import/m4/extensions.m4: Update it.
3919 * gnulib/import/m4/gnulib-common.m4: Likewise.
3920 * gnulib/import/m4/memmem.m4: Likewise.
3921 * gnulib/import/m4/mmap-anon.m4: Likewise.
3922 * gnulib/import/m4/multiarch.m4: Likewise.
3923 * gnulib/import/stdint.in.h: Likewise.
3924
3925 2012-06-24 Yao Qi <yao@codesourcery.com>
3926
3927 * corefile.c (write_memory_with_notification): New.
3928 * gdbcore.h: Declare write_memory_with_notification.
3929 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3930 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3931 * valops.c (value_assign): Likewise.
3932 * python/py-inferior.c (infpy_write_memory): Call
3933 'write_memory_with_notification'.
3934
3935 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3936
3937 * cc-with-index.sh: Use also -ex "set auto-load no".
3938
3939 2012-06-23 Doug Evans <dje@google.com>
3940
3941 PR 14125
3942 * NEWS: Document additions to .gdb_index.
3943 * dwarf2read.c: #include "gdb/gdb-index.h".
3944 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3945 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3946 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3947 (dwarf2_read_index): Recognize version 7.
3948 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3949 block_kind, domain): All callers updated.
3950 (dw2_find_symbol_file): Handle new index CU values.
3951 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3952 (add_index_entry): New args is_static, kind. All callers updated.
3953 (offset_type_compare, uniquify_cu_indices): New functions
3954 (symbol_kind): New function.
3955 (write_psymtabs_to_index): Remove duplicate CU values.
3956 (write_psymtabs_to_index): Write .gdb_index version 7.
3957
3958 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3959
3960 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3961 * configure: Regenerate.
3962
3963 2012-06-20 Yao Qi <yao@codesourcery.com>
3964
3965 * python/py-inferior.c: Update comments of infpy_read_memory
3966 and infpy_write_memory.
3967
3968 2012-06-19 Tom Tromey <tromey@redhat.com>
3969
3970 PR exp/9514:
3971 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3972 (push_type_address_space): Remove.
3973 * parse.c (insert_into_type_stack): New function.
3974 (insert_type): Likewise.
3975 (insert_type_address_space): Rename from push_type_address_space.
3976 Insert tp_space_identifier.
3977 * c-exp.y (ptr_operator): New production.
3978 (abs_decl): Use ptr_operator.
3979 (space_identifier): Call insert_type_address_space.
3980 (ptype): Don't use const_or_volatile_or_space_identifier.
3981 (const_or_volatile_noopt): Call insert_type.
3982 (conversion_type_id, conversion_declarator): New productions.
3983 (operator): Use conversion_type_id.
3984
3985 2012-06-18 Doug Evans <dje@google.com>
3986
3987 * symtab.h (minimal_symbol): New member created_by_gdb.
3988 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3989 created by gdb.
3990 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3991 (search_symbols): Call it instead of lookup_symbol.
3992 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3993
3994 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3995 Adjust address for DW_OP_GNU_addr_index.
3996 * dwarf2expr.h (dwarf_expr_context): Update comment.
3997 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3998 all callers updated. Handle TLS vars described with
3999 DW_OP_GNU_const_index.
4000 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4001 and DW_OP_GNU_const_index.
4002 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4003
4004 * block.c (find_block_in_blockvector): Make explicit the fact that we
4005 ignore GLOBAL_BLOCK.
4006
4007 2012-06-18 Tom Tromey <tromey@redhat.com>
4008
4009 * c-exp.y (operator): Remove trailing space after "delete" and
4010 "delete[]".
4011
4012 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4013 Jan Kratochvil <jan.kratochvil@redhat.com>
4014
4015 Switch i386 and derived targets to ON_STACK.
4016 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4017 (amd64_dicos_init_abi): Remove its installment.
4018 * dicos-tdep.c (dicos_init_abi): Remove the
4019 set_gdbarch_call_dummy_location call. Update the comment here.
4020 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4021 (i386_dicos_init_abi): Remove its installment.
4022 * i386-tdep.c (i386_push_dummy_code): New function.
4023 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4024 i386_push_dummy_code.
4025
4026 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4027
4028 Remove stale dummy frames.
4029 * breakpoint.c: Include dummy-frame.h.
4030 (longjmp_breakpoint_ops): New variable.
4031 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4032 bp_longjmp_call_dummy.
4033 (bpstat_what, bptype_string, print_one_breakpoint_location)
4034 (init_bp_location): Support bp_longjmp_call_dummy.
4035 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4036 (set_longjmp_breakpoint_for_call_dummy)
4037 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4038 functions.
4039 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4040 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4041 FIXME comment and extend the other comment for bp_call_dummy.
4042 (set_longjmp_breakpoint_for_call_dummy)
4043 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4044 * dummy-frame.c: Include gdbthread.h.
4045 (pop_dummy_frame_bpt): New function.
4046 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4047 (dummy_frame_discard): New function.
4048 (cleanup_dummy_frames): Update the comment about longjmps.
4049 * dummy-frame.h (dummy_frame_discard): New declaration.
4050 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4051 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4052 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4053 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4054 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4055 keep_going if IS_LONGJMP and there is no other reason to stop.
4056
4057 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4058
4059 * remote-sim.c (sim_command_completer): Initialize
4060 variable 'result'.
4061
4062 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4063
4064 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4065 * dwarf2loc.c (call_site_parameter_matches): Support
4066 CALL_SITE_PARAMETER_PARAM_OFFSET.
4067 (needs_dwarf_reg_entry_value): Push stub value.
4068 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4069 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4070 * gdbtypes.h (enum call_site_parameter_kind): New item
4071 CALL_SITE_PARAMETER_PARAM_OFFSET.
4072 (struct call_site.parameter.u): New field param_offset.
4073
4074 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4075
4076 Code cleanup: Generalize call_site.parameter key.
4077 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4078 variable dwarf_reg. New variable kind_u. Update parameters to
4079 push_dwarf_reg_entry_value.
4080 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4081 * dwarf2expr.h (enum call_site_parameter_kind)
4082 (union call_site_parameter_u): Forward declarations.
4083 (struct dwarf_expr_context_funcs): Update parameters and their
4084 description for push_dwarf_reg_entry_value.
4085 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4086 * dwarf2loc.c (call_site_parameter_matches): New function.
4087 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4088 description. Use call_site_parameter_matches.
4089 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4090 Update parameters and their description.
4091 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4092 New variable kind_u. Adjust the caller for updated parameters.
4093 (needs_dwarf_reg_entry_value): Update parameters.
4094 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4095 instead of attr. Update for the changed fields of struct
4096 call_site_parameter.
4097 * gdbtypes.h: Include dwarf2expr.h.
4098 (enum call_site_parameter_kind): New.
4099 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4100 fb_offset into new union u.
4101
4102 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4103
4104 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4105 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4106 for x32.
4107
4108 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4109
4110 * amd64-linux-nat.c (compat_x32_clock_t): New.
4111 (compat_x32_siginfo_t): Likewise.
4112 (compat_x32_siginfo_from_siginfo): Likewise.
4113 (siginfo_from_compat_x32_siginfo): Likewise.
4114 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4115 and siginfo_from_compat_x32_siginfo for x32.
4116
4117 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4118
4119 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4120
4121 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4122
4123 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4124 instead of gdbarch_ptr_bit.
4125 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4126 (amd64_supply_native_gregset): Likewise.
4127 (amd64_collect_native_gregset): Likewise.
4128 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4129 (amd64_supply_xsave): Likewise.
4130 (amd64_collect_fxsave): Likewise.
4131 (amd64_collect_xsave): Likewise.
4132
4133 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4134
4135 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4136 (amd64_linux_read_description): Check DS segment register for
4137 x32 process.
4138
4139 2012-06-15 Tom Tromey <tromey@redhat.com>
4140
4141 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4142 init_cutu_and_read_dies.
4143
4144 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4145
4146 * MAINTAINERS (Write After Approval): Add myself to the list.
4147
4148 2012-06-15 Tom Tromey <tromey@redhat.com>
4149
4150 * valops.c (value_find_oload_method_list): Now static.
4151 * value.h (value_find_oload_method_list): Don't declare.
4152
4153 2012-06-15 Tom Tromey <tromey@redhat.com>
4154
4155 * valops.c (find_overload_match): Use value_ind.
4156
4157 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4158
4159 * infrun.c (handle_inferior_event): Correct indentation.
4160
4161 2012-06-14 Doug Evans <dje@google.com>
4162
4163 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4164 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4165 All uses updated.
4166 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4167 updated. Handle DEBUG_LOC_START_LENGTH.
4168 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4169 (loclist_describe_location): Ditto.
4170
4171 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4172
4173 PR backtrace/13866
4174 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4175 after hiding inline functions.
4176
4177 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4178
4179 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4180 _initialize_inf_ttrace.
4181
4182 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4183
4184 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4185 _initialize_hppa_hpux_nat.
4186
4187 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4188
4189 * remote-sim.c (sim_command_completer): Change type of return
4190 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4191
4192 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4193 Jan Kratochvil <jan.kratochvil@redhat.com>
4194
4195 PR tdep/14222
4196 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4197 stack on a 16-byte boundary.
4198
4199 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4200
4201 * jit.c (finalize_symtab): Set function's return type to 'void' by
4202 default.
4203
4204 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4205 H.J. Lu <hongjiu.lu@intel.com>
4206
4207 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4208 Move bits common to both the classic LP64 and the new x32 ILP32
4209 ABI here.
4210 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4211 (amd64_x32_linux_init_abi): New function.
4212 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4213 subtype.
4214
4215 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4216 * i386-tdep.c (i386_pseudo_register_name): Make public.
4217 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4218 * amd64-tdep.c (amd64_dword_names): Add "eip".
4219 (amd64_x32_pseudo_register_type): New function
4220 (amd64_x32_init_abi): New function.
4221
4222 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4223
4224 PR build/14003
4225 * inferior.h (struct inferior_suspend_state): Comment out.
4226 (struct inferior): Comment out the field suspend.
4227 * infrun.c (struct infcall_suspend_state): Comment out the field
4228 inferior_suspend.
4229 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4230 out its assignment.
4231
4232 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4233
4234 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4235 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4236 function comment. Return ERROR for unresolved cases. Implement
4237 returning proper NAME.
4238 (yylex): Accept also NAME from classify_inner_name.
4239 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4240 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4241 LOC_TYPEDEF type.
4242 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4243
4244 2012-06-13 Tom Tromey <tromey@redhat.com>
4245
4246 * breakpoint.c (condition_completer): New function.
4247 (_initialize_breakpoint): Use it.
4248 * value.c (complete_internalvar): New function.
4249 * value.h (complete_internalvar): Declare.
4250
4251 2012-06-13 Tom Tromey <tromey@redhat.com>
4252
4253 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4254 * breakpoint.c (catch_syscall_completer): Return a VEC.
4255 * cli/cli-cmds.c (complete_command): Update.
4256 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4257 (complete_on_enum): Likewise.
4258 * command.h: Include gdb_vecs.h.
4259 (completer_ftype): Change return type.
4260 (complete_on_cmdlist, complete_on_enum): Likewise.
4261 * completer.c (noop_completer, filename_completer)
4262 (location_completer): Return a VEC.
4263 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4264 to a VEC.
4265 (expression_completer, complete_line_internal, complete_line)
4266 (command_completer): Return a VEC.
4267 (gdb_completion_word_break_characters, line_completion_function):
4268 Update.
4269 * completer.h: Include gdb_vecs.h.
4270 (complete_line, noop_completer, filename_completer)
4271 (expression_completer, location_completer, command_completer):
4272 Update.
4273 * f-lang.c (f_word_break_characters): Return a VEC.
4274 * interps.c (interpreter_completer): Return a VEC.
4275 * language.h (struct language_defn)
4276 <la_make_symbol_completion_list>: Return a VEC.
4277 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4278 * symtab.c (free_completion_list): Take a VEC.
4279 (return_val_size, return_val_index): Remove.
4280 (return_val): Now a VEC.
4281 (completion_list_add_name): Update.
4282 (default_make_symbol_completion_list_break_on)
4283 (default_make_symbol_completion_list, make_symbol_completion_list)
4284 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4285 Return a VEC.
4286 (add_filename_to_list): Update.
4287 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4288 <list>: Now a VEC.
4289 (maybe_add_partial_symtab_filename): Update.
4290 (make_source_files_completion_list): Return a VEC.
4291 * symtab.h (default_make_symbol_completion_list_break_on)
4292 (default_make_symbol_completion_list, make_symbol_completion_list)
4293 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4294 (make_source_files_completion_list): Update.
4295
4296 2012-06-13 Tom Tromey <tromey@redhat.com>
4297
4298 * breakpoint.c (add_catch_command): Use completer_ftype.
4299 * breakpoint.h: Include command.h.
4300 (add_catch_command): Use completer_ftype.
4301 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4302 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4303 Use completer_ftype.
4304 * command.h (completer_ftype): New typedef.
4305 (set_cmd_completer): Use it.
4306 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4307 completer_ftype.
4308
4309 2012-06-13 Pedro Alves <palves@redhat.com>
4310
4311 Partial revert of previous change.
4312
4313 * serial.c (scb_base): New global.
4314 (serial_for_fd): New.
4315 (serial_open, serial_fdopen_ops): Link new serial in open serials
4316 chain.
4317 (do_serial_close): Unlink serial from the open serials chain.
4318
4319 2012-06-12 Pedro Alves <palves@redhat.com>
4320
4321 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4322 threads here.
4323 (prepare_for_detach): No longer context switch here in non-stop
4324 mode.
4325 (fetch_inferior_event): Ditto.
4326 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4327 to the event thread before removing breakpoints. Switch to the
4328 event thread before inserting breakpoints and resuming.
4329 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4330 event thread before resuming.
4331 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4332 Switch to the event thread before removing breakpoints.
4333
4334 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4335
4336 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4337 special characters correctly for the Windows shells. See
4338 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4339 report.
4340 [!__MINGW32__]: Remove extra double quote character from special
4341 characters.
4342
4343 2012-06-11 Stan Shebs <stan@codesourcery.com>
4344
4345 * ui-out.h: Remove #if 0 declarations.
4346 * ui-out.c: Remove #if 0 functions.
4347
4348 2012-06-11 Pedro Alves <palves@redhat.com>
4349
4350 * ser-base.c (run_async_handler_and_reschedule): New.
4351 (fd_event, push_event): Use it.
4352 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4353 reference count to 1.
4354 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4355 instead of xfree.
4356 (serial_is_open, serial_ref, serial_unref): New.
4357 * serial.h (serial_open): Adjust comment.
4358 (serial_is_open): Declare.
4359 (serial_close): Adjust comment.
4360 (serial_ref, serial_unref) Declare.
4361 (struct serial): New field 'refcnt'.
4362
4363 2012-06-11 Pedro Alves <palves@redhat.com>
4364
4365 Remove #if 0'd "connect" command, and unnecessary associated
4366 refcounting and serial reuse bits.
4367
4368 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4369 * serial.c (last_serial_opened): Delete.
4370 (scb_base): Delete.
4371 (serial_open): Adjust.
4372 (serial_for_fd): Delete.
4373 (serial_fdopen_ops, do_serial_close): Adjust.
4374 (serial_fdopen_ops): Adjust.
4375
4376 2012-06-11 Pedro Alves <palves@redhat.com>
4377
4378 * serial.c (do_serial_close): Remove early return when SCB is
4379 null.
4380
4381 2012-06-11 Tom Tromey <tromey@redhat.com>
4382
4383 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4384
4385 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4386
4387 Fix regression by the "ambiguous linespec" series.
4388 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4389 get_last_displayed_symtab and get_last_displayed_line and depending
4390 on CURSAL.
4391
4392 2012-06-11 Tom Tromey <tromey@redhat.com>
4393
4394 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4395 (dw2_find_symbol_file): Use it.
4396
4397 2012-06-11 Michael Eager <eager@eagercon.com>
4398
4399 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4400 * mips-linux-tdep.h (mips_signals): New
4401
4402 2012-06-11 Tom Tromey <tromey@redhat.com>
4403
4404 * infrun.c (handle_inferior_event)
4405 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4406 breakpoint.
4407 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4408 exception logic in all cases. Update comments.
4409 (insert_longjmp_resume_breakpoint): Set the exception resume
4410 breakpoint.
4411
4412 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4413
4414 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4415
4416 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4417
4418 * valarith.c (binop_types_user_defined_p): Fix a typo.
4419
4420 2012-06-08 Yao Qi <yao@codesourcery.com>
4421 Chung-Lin Tang <cltang@codesourcery.com>
4422
4423 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4424 * arch-utils.h: Declare.
4425 * gdbarch.sh: Add return_in_first_hidden_param_p.
4426 * gdbarch.c, gdbarch.h: Regenerated.
4427 * infcall.c (call_function_by_hand): Call
4428 gdbarch_return_in_first_hidden_param_p instead of
4429 language_pass_by_reference.
4430
4431 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4432 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4433 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4434 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4435 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4436 `cplus_return_struct_by_reference'.
4437 (tic6x_return_value): Handle language cplusplus.
4438 (tic6x_return_in_first_hidden_param_p): New.
4439 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4440
4441 2012-06-07 Doug Evans <dje@google.com>
4442
4443 * dwarf2read.c (dwarf2_cu): Add comment.
4444
4445 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4446
4447 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4448 variable.
4449 (mips_eabi_push_dummy_call): Likewise.
4450 (mips_n32n64_push_dummy_call): Likewise.
4451 (mips_o32_push_dummy_call): Likewise.
4452 (mips_o64_push_dummy_call): Likewise.
4453
4454 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4455
4456 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4457
4458 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4459
4460 * mips-tdep.c (mips_pseudo_register_type): Use
4461 mips_float_register_p.
4462
4463 2012-06-06 Pedro Alves <palves@redhat.com>
4464
4465 * infrun.c (handle_inferior_event): Remove calls to
4466 reinit_frame_cache that follow a context_switch call.
4467
4468 2012-06-06 Pedro Alves <palves@redhat.com>
4469
4470 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4471 context_switch and remove stale comment.
4472
4473 2012-06-06 Pedro Alves <palves@redhat.com>
4474
4475 * infrun.c (struct execution_control_state): Remove
4476 `new_thread_event' field.
4477 (handle_inferior_event): Simplify new threads handling; don't
4478 resume the inferior if we find a new thread.
4479
4480 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4481
4482 * NEWS: Document the deprecation of SH's 'regs' command.
4483 * inferior.h (all_registers_info): Add function declaration.
4484 * sh-tdep.c (sh_show_regs): Remove variable.
4485 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4486 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4487 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4488 (sh_show_regs_command): Remove functions.
4489 (sh_gdbarch_init): Don't set sh_show_regs.
4490 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4491 'info all-registers'.
4492 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4493 (sh64_show_regs): Remove functions.
4494 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4495
4496 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4497
4498 * configure.ac: Move development=true below AC_INIT.
4499 * configure: Regenerate.
4500
4501 2012-06-05 Stan Shebs <stan@codesourcery.com>
4502
4503 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4504 gdb_stdout.
4505
4506 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4507
4508 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4509 argument as ssize_t.
4510 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4511 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4512 * target.c (target_read_stack, target_write_memory)
4513 (target_write_raw_memory): Likewise.
4514 * target.h (target_read_stack, target_write_memory)
4515 (target_write_raw_memory): Likewise.
4516
4517 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4518
4519 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4520 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4521 * target.c (target_read_memory): Change LEN to ssize_t.
4522 * target.h (target_read_memory): Change LEN to ssize_t.
4523
4524 2012-06-05 Pedro Alves <palves@redhat.com>
4525
4526 PR backtrace/13866
4527
4528 * breakpoint.c (until_break_command): Only fetch the selected
4529 frame after decode_line_1.
4530
4531 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4532
4533 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4534 event breakpoint at _start, __start or main if a program
4535 interpreter is not found.
4536
4537 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4538
4539 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4540 Add declaration.
4541 * windows-tdep.c: #include "objfiles.h".
4542 (windows_iterate_over_objfiles_in_search_order): New function.
4543 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4544 iterate_over_objfiles_in_search_order gdbarch method to
4545 windows_iterate_over_objfiles_in_search_order.
4546 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4547
4548 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4549
4550 * gdbarch.sh: Add generation of
4551 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4552 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4553 (iterate_over_objfiles_in_search_order): New gdbarch method.
4554 * gdbarch.h, gdbarch.c: Regenerate.
4555 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4556 Add declaration.
4557 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4558 New function.
4559 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4560 out of lookup_symbol_aux_symtabs.
4561 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4562 call to lookup_symbol_aux_objfile.
4563 (struct global_sym_lookup_data): New type.
4564 (lookup_symbol_global_iterator_cb): New function.
4565 (lookup_symbol_global): Search for symbol using
4566 gdbarch_iterate_over_objfiles_in_search_order and
4567 lookup_symbol_global_iterator_cb.
4568 * findvar.c (struct minsym_lookup_data): New type.
4569 (minsym_lookup_iterator_cb): New function.
4570 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4571 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4572 and minsym_lookup_iterator_cb.
4573
4574 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4575
4576 Revert the following patch:
4577 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4578 try locating the symbol in the symbol's own objfile first, before
4579 extending the search to all objfiles.
4580 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4581 out of lookup_symbol_aux_symtabs.
4582 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4583 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4584 Do not search EXCLUDE_OBJFILE.
4585 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4586 (lookup_symbol_global): Search for matches in the block's objfile
4587 first, before searching all other objfiles.
4588
4589 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4590
4591 * breakpoint.c (find_condition_and_thread): Stop parsing
4592 as soon as the first invalid keyword is found.
4593
4594 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4595
4596 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4597
4598 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4599
4600 * config/djgpp/djcheck.sh: Add copyright header.
4601
4602 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4603
4604 * copyright.py (update_files, main): Fix path to update-copyright
4605 script.
4606
4607 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4608
4609 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4610 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4611 for which a reminder to update by hand is printed.
4612
4613 2012-06-04 Doug Evans <dje@google.com>
4614
4615 * buildsym.c (make_blockvector): Add comment.
4616
4617 2012-06-04 Pedro Alves <palves@redhat.com>
4618
4619 * arch-utils.c (default_gdb_signal_from_target): Delete.
4620 * arch-utils.h (default_gdb_signal_from_target): Delete.
4621 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4622 gdbarch_gdb_signal_from_target_p.
4623 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4624 predicate).
4625 * gdbarch.h: Regenerate.
4626 * gdbarch.c: Regenerate.
4627
4628 2012-06-04 Pedro Alves <palves@redhat.com>
4629
4630 * gdbarch.sh (gdb_signal_from_target): Mention that the
4631 implementation of the method must be host independent.
4632 * gdbarch.h: Regenerate.
4633
4634 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4635
4636 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4637 parameters.
4638 (target_read_memory_bfd): New function.
4639 (symbol_file_add_from_memory): Use it.
4640
4641 2012-06-03 Doug Evans <dje@google.com>
4642
4643 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4644 of primary symtab.
4645 (basic_lookup_transparent_type): Ditto.
4646
4647 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4648 (ALL_PRIMARY_SYMTABS): Use it.
4649 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4650 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4651 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4652 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4653 (basic_lookup_transparent_type): Ditto.
4654
4655 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4656
4657 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4658 it to optimize resolution of demangled name.
4659
4660 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4661
4662 * configure.ac (development): Define new variable.
4663 Call AC_CHECK_LIB for mcheck if $development.
4664 (ERROR_ON_WARNING): Enable it by default only if $development.
4665 * config.in: Regenerate.
4666 * configure: Regenerate.
4667
4668 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4669
4670 * target.c (target_read_memory): Make LEN argument as size_t.
4671 * target.h (target_read_memory): Likewise.
4672
4673 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4674
4675 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4676
4677 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4678
4679 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4680 BookE interface for PowerPC server processors if not available
4681 in the Linux Kernel.
4682
4683 2012-05-31 Keith Seitz <keiths@redhat.com>
4684
4685 * linespec.c (decode_objc): Add cleanup to free
4686 INFO.FILE_SYMTABS.
4687 (find_linespec_symbols): Add cleanup to free CLASSES.
4688 * symfile.c (find_separate_debug_file_by_debuglink): Add
4689 cleanup to free DEBUGLINK.
4690 * ui-out.c (clear_header_list): No need to check if
4691 HEADER_NEXT.COLHDR is NULL.
4692 Free HEADER_NEXT.COL_NAME.
4693
4694 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4695
4696 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4697 warning.
4698
4699 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4700
4701 * configure.host (gdb_host_cpu): Handle tilegx*.
4702 (gdb_host): Handle tilegx-*-linux*.
4703 * tilegx-linux-nat.c: New file.
4704 * config/tilegx/linux.mh: New file.
4705
4706 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4707
4708 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4709 tilegx-linux-tdep.o.
4710 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4711 tilegx-linux-tdep.c.
4712 * configure.tgt: Handle tilegx-*-linux*.
4713 * tilegx-tdep.h: New file.
4714 * tilegx-tdep.c: New file.
4715 * tilegx-linux-tdep.c: New file.
4716 * regformats/reg-tilegx.dat: New file.
4717
4718 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4719
4720 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4721 accounting of hw watchpoints on ppc.
4722
4723 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4724
4725 * source.c (openp): Expand tilde in path entries.
4726
4727 2012-05-29 Doug Evans <dje@google.com>
4728
4729 * buildsym.c (block_compar): Fix comment.
4730 (end_symtab): Fix and clarify some comments.
4731
4732 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4733 cleanup_undefined_types.
4734 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4735 All callers updated.
4736
4737 2012-05-29 Tom Tromey <tromey@redhat.com>
4738
4739 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4740 fails.
4741 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4742 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4743 fails.
4744 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4745 fails.
4746
4747 2012-05-29 Tristan Gingold <gingold@adacore.com>
4748
4749 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4750 (struct darwin_info): ... New struct.
4751 (solib_darwin_pspace_data): New variable.
4752 (darwin_pspace_data_cleanup): New function.
4753 (get_darwin_info): Likewise.
4754 (darwin_dyld_version_ok, darwin_load_image_infos)
4755 (darwin_solib_get_all_image_info_addr_at_init)
4756 (darwin_solib_read_all_image_info_addr): Add info argument.
4757 Adjust code.
4758 (darwin_current_sos): Use per pspace structure.
4759 (darwin_solib_create_inferior_hook): Likewise.
4760 (darwin_clear_solib): Likewise.
4761 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4762
4763 2012-05-28 Pedro Alves <palves@redhat.com>
4764
4765 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4766 block that uses them. Clear ecss before handling each event.
4767
4768 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4769
4770 * solib-svr4.c (svr4_current_sos): New comment on
4771 svr4_current_sos_via_xfer_libraries fall back.
4772
4773 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4776 it as a fallback for TYPE_IS_OPAQUE.
4777 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4778 symbols for lookup_symbol.
4779
4780 2012-05-24 John Steele Scott <toojays@toojays.net>
4781
4782 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4783 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4784 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4785 (check_producer): ... this new function, which also checks for ICC
4786 and caches the result.
4787 (producer_is_icc): New function.
4788 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4789 producer was ICC.
4790
4791 2012-05-24 Pedro Alves <palves@redhat.com>
4792
4793 PR gdb/7205
4794
4795 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4796 (default_gdb_signal_to_target): ... this. Add comment.
4797 (default_gdb_signal_from_host): Rename to ...
4798 (default_gdb_signal_from_target): ... this. Add comment.
4799 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4800 (default_gdb_signal_to_target): ... this.
4801 (default_gdb_signal_from_host): Rename to ...
4802 (default_gdb_signal_from_target): ... this.
4803 * corelow.c (core_open): Adjust to naming change. Replace comment.
4804 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4805 (gdb_signal_from_target): ... this. Adjust to
4806 default_gdb_signal_from_host naming change. Extend comment.
4807 (gdb_signal_to_host): Rename to ...
4808 (gdb_signal_to_target): ... this. Adjust to
4809 default_gdb_signal_to_host naming change.
4810 * gdbarch.h, gdbarch.c: Renegerate.
4811
4812 2012-05-24 Pedro Alves <palves@redhat.com>
4813
4814 PR gdb/7205
4815
4816 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4817
4818 2012-05-24 Pedro Alves <palves@redhat.com>
4819
4820 PR gdb/7205
4821
4822 Replace target_signal with gdb_signal throughout.
4823
4824 2012-05-24 Pedro Alves <palves@redhat.com>
4825
4826 PR tui/14159
4827
4828 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4829 string, instead of reusing the va_list argument.
4830
4831 2012-05-24 Tom Tromey <tromey@redhat.com>
4832
4833 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4834 Remove.
4835
4836 2012-05-23 Doug Evans <dje@google.com>
4837
4838 * symtab.c (search_symbols): Formatting fixes.
4839 (print_symbol_info): Formatting fixes.
4840
4841 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4842 int64_t change to leb128 API.
4843 (read_encoded_value, decode_frame_entry_1): Ditto.
4844 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4845 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4846 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4847 (execute_stack_op): Ditto.
4848 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4849 (safe_read_uleb128, safe_read_sleb128): Ditto.
4850 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4851 (dwarf2_compile_expr_to_ax): Ditto.
4852 (locexpr_describe_location_piece): Ditto.
4853 (disassemble_dwarf_expression): Ditto.
4854 (locexpr_describe_location_1): Ditto.
4855
4856 2012-05-23 Stan Shebs <stan@codesourcery.com>
4857 Kwok Cheung Yeung <kcy@codesourcery.com>
4858
4859 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4860 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4861 (mi-cmd-info.o): New rule.
4862 * osdata.h (info_osdata_command): New declaration.
4863 * osdata.c (info_osdata_command): Change to non-static.
4864 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4865 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4866 * mi/mi-cmd-info.c: New file.
4867
4868 2012-05-23 Doug Evans <dje@google.com>
4869
4870 * symtab.c (search_symbols): Pass NULL for file_matcher to
4871 expand_symtabs_matching if there are no files to match.
4872
4873 * gdbtypes.c (lookup_typename): Simplify.
4874
4875 2012-05-23 Pedro Alves <palves@redhat.com>
4876
4877 * arch-utils.h (default_target_signal_to_host): Delete.
4878 * arch-utils.c (default_target_signal_to_host): Delete.
4879 * gdbarch.sh (target_signal_to_host): Remove.
4880 * gdbarch.h, gdbarch.c: Regenerate.
4881
4882 2012-05-22 Doug Evans <dje@google.com>
4883
4884 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4885 "const gdb_byte *".
4886 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4887 (execute_cfa_program): Update to match API of leb128 functions.
4888 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4889 "const gdb_byte *".
4890 (read_unsigned_leb128, read_signed_leb128): Delete.
4891 (read_initial_length): Change type of buf argument to
4892 "const gdb_byte *".
4893 (read_encoded_value): Update to match API of leb128 functions.
4894 (decode_frame_entry): Change result to "const gdb_byte *", and
4895 similarly for "start" parameter.
4896 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4897 (dwarf2_build_frame_info): Change local frame_ptr to
4898 "const gdb_byte *".
4899 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4900 read_uleb128, read_sleb128. All callers updated.
4901 (safe_skip_leb128): New function.
4902 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4903 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4904 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4905 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4906 read_uleb128, read_sleb128.
4907 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4908 (execute_stack_op): Update to match API of leb128 functions.
4909 * dwarf2expr.h: #include "leb128.h".
4910 (read_uleb128, read_sleb128): Delete.
4911 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4912 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4913 * dwarf2loc.c (debug_loc_kind): New enum.
4914 (decode_debug_loc_addresses): New function.
4915 (decode_debug_loc_dwo_addresses): New function.
4916 (dwarf2_find_location_expression): Rewrite.
4917 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4918 (locexpr_describe_location_piece): Ditto.
4919 (disassemble_dwarf_expression): Ditto.
4920 (locexpr_describe_location_1): Ditto.
4921 (loclist_describe_location): Rewrite.
4922 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4923 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4924 (dwarf2_section_buffer_overflow_complaint): Renamed from
4925 dwarf2_macros_too_long_complaint. All callers updated.
4926 (skip_leb128): Delete.
4927 (init_cu_die_reader): Initialize reader->buffer_end.
4928 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4929 (skip_form_bytes): New arg buffer_end. All callers updated.
4930 Replace call to skip_leb128 with gdb_skip_leb128.
4931 (skip_unknown_opcode): New arg mac_end. All callers updated.
4932 (fill_in_loclist_baton): Initialize baton->from_dwo.
4933
4934 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4935
4936 * mips-linux-nat.c (mips_linux_read_description): Use a more
4937 verbose error message.
4938
4939 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4940
4941 * NEWS: Add MIPS/Linux DSP support.
4942 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4943 (SIGCONTEXT_DSPCTL): New macro.
4944 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4945 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4946 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4947 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4948 (N64_SIGCONTEXT_HI3): Likewise.
4949 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4950 (N64_SIGCONTEXT_LO3): Likewise.
4951 (N64_SIGCONTEXT_DSPCTL): Likewise.
4952 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4953 (mips_linux_o32_sigframe_init): Handle DSP registers.
4954 (mips_linux_n32n64_sigframe_init): Likewise.
4955
4956 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4957
4958 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4959 call to abort.
4960
4961 2012-05-22 Pedro Alves <palves@redhat.com>
4962
4963 * target.h (store_waitstatus): Move declaration ...
4964 * inf-child.h (store_waitstatus): ... here.
4965 * target.c: Move inclusion of gdb_wait.h, and ...
4966 (store_waitstatus): ... this ...
4967 * inf-child.c: ... here.
4968 * linux-nat.c: Include inf-child.h.
4969 * rs6000-nat.c: Include inf-child.h.
4970 * spu-linux-nat.c: Include inf-child.h.
4971
4972 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4973
4974 * tracepoint.c (start_tracing): Add missing i18n markup.
4975 (stop_tracing, set_trace_user): Ditto.
4976 (set_trace_notes, set_trace_stop_notes): Ditto.
4977
4978 2012-05-21 Tom Tromey <tromey@redhat.com>
4979
4980 PR c++/7173:
4981 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4982 types.
4983 * value.h (value_cast_pointers): Update.
4984 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4985 (value_cast): Update.
4986 (update_search_result): New function.
4987 (do_search_struct_field): New, from search_struct_field. Check
4988 for ambiguous results.
4989 (search_struct_field): Rewrite.
4990 * infcall.c (value_arg_coerce): Update.
4991 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4992 value_cast_pointers.
4993 * ada-lang.c (ada_convert_actual): Update.
4994
4995 2012-05-21 Tom Tromey <tromey@redhat.com>
4996
4997 * macroexp.c (macro_stringify): Terminate the string.
4998
4999 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5000
5001 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5002 Describe it.
5003 * auto-load.c (auto_load_expand_dir_vars): New function.
5004 (auto_load_safe_path_vec_update): Use it, remove the
5005 substitute_path_component call thanks to it.
5006 (auto_load_objfile_script): Remove the debug_file_directory processing.
5007 Use auto_load_expand_dir_vars, remove the substitute_path_component
5008 call thanks to it.
5009 * configure: Regenerate.
5010 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5011 path. Escape $ also for $debugdir.
5012 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5013 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5014
5015 2012-05-20 Doug Evans <dje@google.com>
5016
5017 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5018 before use. Check for symtab->includes == NULL before scanning it.
5019
5020 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5021
5022 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5023
5024 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5025
5026 * NEWS: Add microMIPS support and "set mips compression",
5027 "show mips compression" commands.
5028 * mips-tdep.h (mips_isa): New enum.
5029 (gdbarch_tdep): Add mips_isa.
5030 (mips_pc_is_mips16): Update prototype.
5031 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5032 * mips-tdep.c (mips_compression_mips16): New variable.
5033 (mips_compression_micromips): Likewise.
5034 (mips_compression_strings): Likewise.
5035 (mips_compression_string): Likewise.
5036 (is_mips16_isa, is_micromips_isa): New functions.
5037 (is_mips16_addr): Rename to...
5038 (is_compact_addr): ... this.
5039 (unmake_mips16_addr): Likewise to...
5040 (unmake_compact_addr): ... this.
5041 (make_mips16_addr): Likewise to...
5042 (make_compact_addr): ... this.
5043 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5044 functions.
5045 (mips_elf_make_msymbol_special): Handle microMIPS code.
5046 (msymbol_is_special): Rename to...
5047 (msymbol_is_mips16): ... this.
5048 (mips_make_symbol_special, mips_pc_is_mips16): Update
5049 accordingly.
5050 (msymbol_is_mips, msymbol_is_micromips): New functions.
5051 (mips16_to_32_reg): Rename to...
5052 (mips_reg3_to_reg): ... this.
5053 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5054 (mips_pc_isa): Likewise.
5055 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5056 code.
5057 (mips_fetch_instruction): Pass return status instead of printing
5058 an error message if requested. Handle microMIPS code. Bail out
5059 on an invalid ISA.
5060 (micromips_op): New macro.
5061 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5062 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5063 (b6s4_op, b7s3_reg): Likewise.
5064 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5065 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5066 (mips_insn_size): New function.
5067 (mips32_next_pc): Update mips_fetch_instruction call.
5068 (micromips_relative_offset7): New function.
5069 (micromips_relative_offset10): Likewise.
5070 (micromips_relative_offset16): Likewise.
5071 (micromips_pc_insn_size): Likewise.
5072 (micromips_bc1_pc): Likewise.
5073 (micromips_next_pc): Likewise.
5074 (unpack_mips16): Update mips_fetch_instruction call.
5075 (extended_mips16_next_pc): Update according to change to
5076 mips16_to_32_reg.
5077 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5078 code.
5079 (mips16_scan_prologue): Update mips_fetch_instruction call.
5080 Update according to change to mips16_to_32_reg.
5081 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5082 (mips_insn16_frame_base_sniffer): Likewise.
5083 (micromips_decode_imm9): New function.
5084 (micromips_scan_prologue): Likewise.
5085 (mips_micro_frame_cache): Likewise.
5086 (mips_micro_frame_this_id): Likewise.
5087 (mips_micro_frame_prev_register): Likewise.
5088 (mips_micro_frame_sniffer): Likewise.
5089 (mips_micro_frame_unwind): New variable.
5090 (mips_micro_frame_base_address): New function.
5091 (mips_micro_frame_base): New variable.
5092 (mips_micro_frame_base_sniffer): New function.
5093 (mips32_scan_prologue): Update mips_fetch_instruction call.
5094 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5095 rather than for MIPS16.
5096 (mips_insn32_frame_base_sniffer): Likewise.
5097 (mips_addr_bits_remove): Handle microMIPS code.
5098 (deal_with_atomic_sequence): Rename to...
5099 (mips_deal_with_atomic_sequence): ... this. Update the type
5100 of the variable used to hold an instruction. Remove the ISA bit
5101 check. Update mips_fetch_instruction call.
5102 (micromips_deal_with_atomic_sequence): New function.
5103 (deal_with_atomic_sequence): Likewise.
5104 (mips_about_to_return): Handle microMIPS code. Update
5105 mips_fetch_instruction call.
5106 (heuristic_proc_start): Check for the standard MIPS ISA rather
5107 than for MIPS16. Update mips_pc_is_mips16 and
5108 mips_fetch_instruction calls. Handle microMIPS code.
5109 (mips_push_dummy_code): Handle microMIPS code.
5110 (mips_eabi_push_dummy_call): Likewise.
5111 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5112 (mips_o64_push_dummy_call): Handle microMIPS code.
5113 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5114 (is_delayed): Remove function.
5115 (mips_single_step_through_delay): Replace the call to is_delayed
5116 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5117 Handle microMIPS code.
5118 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5119 microMIPS code.
5120 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5121 call.
5122 (micromips_in_function_epilogue_p): New function.
5123 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5124 call.
5125 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5126 Handle microMIPS.
5127 (gdb_print_insn_mips): Likewise.
5128 (mips_breakpoint_from_pc): Likewise.
5129 (mips_remote_breakpoint_from_pc): New function.
5130 (mips32_instruction_has_delay_slot): Simplify making use of the
5131 updated mips_fetch_instruction interface.
5132 (micromips_instruction_has_delay_slot): New function.
5133 (mips16_instruction_has_delay_slot): Simplify making use of the
5134 updated mips_fetch_instruction interface.
5135 (mips_adjust_breakpoint_address): Check for the standard MIPS
5136 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5137 calls. Handle microMIPS code.
5138 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5139 (mips_skip_trampoline_code): Handle microMIPS code.
5140 (global_mips_compression): New function.
5141 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5142 file flags. Register the microMIPS remote breakpoint handler
5143 and heuristic frame unwinder.
5144 (show_mips_compression): New function.
5145 (_initialize_mips_tdep): Add the "set mips compression" and
5146 "show mips compression" commands.
5147
5148 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5149
5150 * ada-lang.c:
5151 * ada-tasks.c:
5152 * ada-varobj.c:
5153 * amd64-darwin-tdep.c:
5154 * arm-symbian-tdep.c:
5155 * arm-tdep.c:
5156 * avr-tdep.c:
5157 * ax-gdb.c:
5158 * bfin-linux-tdep.c:
5159 * breakpoint.c:
5160 * c-valprint.c:
5161 * cli/cli-cmds.c:
5162 * coffread.c:
5163 * cp-support.c:
5164 * cris-tdep.c:
5165 * dwarf2-frame-tailcall.c:
5166 * dwarf2-frame.c:
5167 * dwarf2expr.c:
5168 * dwarf2loc.c:
5169 * dwarf2read.c:
5170 * elfread.c:
5171 * eval.c:
5172 * expprint.c:
5173 * f-valprint.c:
5174 * frv-tdep.c:
5175 * h8300-tdep.c:
5176 * hppa-hpux-tdep.c:
5177 * hppa-tdep.c:
5178 * hppanbsd-tdep.c:
5179 * i386-nto-tdep.c:
5180 * i386-tdep.c:
5181 * i387-tdep.c:
5182 * ia64-tdep.c:
5183 * jit.c:
5184 * linespec.c:
5185 * linux-tdep.c:
5186 * lm32-tdep.c:
5187 * m2-valprint.c:
5188 * m32c-tdep.c:
5189 * m32r-rom.c:
5190 * m32r-tdep.c:
5191 * m68k-tdep.c:
5192 * m68klinux-tdep.c:
5193 * mi/mi-main.c:
5194 * microblaze-tdep.c:
5195 * mips-linux-tdep.c:
5196 * mips-tdep.c:
5197 * mn10300-tdep.c:
5198 * p-valprint.c:
5199 * parse.c:
5200 * ppc-linux-tdep.c:
5201 * ppc-sysv-tdep.c:
5202 * printcmd.c:
5203 * python/py-finishbreakpoint.c:
5204 * python/py-inferior.c:
5205 * python/py-infthread.c:
5206 * python/py-type.c:
5207 * python/python.c:
5208 * remote-fileio.c:
5209 * remote-m32r-sdi.c:
5210 * remote-mips.c:
5211 * reverse.c:
5212 * rl78-tdep.c:
5213 * rs6000-aix-tdep.c:
5214 * rs6000-tdep.c:
5215 * s390-tdep.c:
5216 * score-tdep.c:
5217 * sh64-tdep.c:
5218 * skip.c:
5219 * solib-darwin.c:
5220 * solib-dsbt.c:
5221 * solib-frv.c:
5222 * sparc-tdep.c:
5223 * spu-multiarch.c:
5224 * spu-tdep.c:
5225 * stack.c:
5226 * symfile.c:
5227 * symtab.c:
5228 * tic6x-tdep.c:
5229 * tracepoint.c:
5230 * v850-tdep.c:
5231 * valarith.c:
5232 * valprint.c:
5233 * value.c:
5234 * xcoffread.c:
5235 * xtensa-tdep.c:
5236 * ada-lang.c:
5237 * ada-tasks.c:
5238 * ada-varobj.c:
5239 * amd64-darwin-tdep.c:
5240 * arm-symbian-tdep.c:
5241 * arm-tdep.c: Delete unused variables.
5242
5243 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5244
5245 Rename $ddir to $datadir.
5246 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5247 * auto-load.c (auto_load_safe_path_vec_update)
5248 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5249 * configure: Regenerate.
5250 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5251 Likewise. Remove the 'use $ddir' help string.
5252
5253 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5256 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5257
5258 2012-05-18 Tom Tromey <tromey@redhat.com>
5259
5260 PR exp/13907:
5261 * valprint.h (struct value_print_options) <symbol_print>: New
5262 field.
5263 * valprint.c (user_print_options): Add default for symbol_print.
5264 (show_symbol_print): New function.
5265 (generic_val_print): Respect symbol_print.
5266 (_initialize_valprint): Add "print symbol" setting.
5267 * f-valprint.c (f_val_print): Respect symbol_print.
5268 * c-valprint.c (c_val_print): Respect symbol_print.
5269 * NEWS: Update.
5270 * printcmd.c (print_address_symbolic): Return int. Ignore some
5271 zero-size symbols.
5272 (print_address_demangle): Return int.
5273 * defs.h: (print_address_symbolic): Return int.
5274 * value.h (print_address_demangle): Return int.
5275
5276 2012-05-18 Tom Tromey <tromey@redhat.com>
5277
5278 * valprint.c (val_print_string): Don't print leading space.
5279 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5280 print space before string or vtbl.
5281 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5282 before string.
5283 * jv-valprint.c (java_value_print): Print space before string.
5284 * go-valprint.c (print_go_string): Print space before string.
5285 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5286 space before string.
5287 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5288 space before string or vtbl.
5289 * auxv.c (fprint_target_auxv): Print space after address.
5290
5291 2012-05-18 Tom Tromey <tromey@redhat.com>
5292
5293 * printcmd.c (print_address_demangle): Remove special case for 0.
5294
5295 2012-05-18 Tom Tromey <tromey@redhat.com>
5296
5297 * printcmd.c (print_address_demangle): Add 'opts' argument.
5298 * p-valprint.c (pascal_val_print): Update.
5299 * jv-valprint.c (java_val_print): Update.
5300 * value.h: Update.
5301 * valprint.c (generic_val_print): Update.
5302 (print_function_pointer_address): Add 'options' argument. Remove
5303 'addressprint' argument. Update.
5304 * m2-valprint.c (print_unpacked_pointer): Update.
5305 * gnu-v3-abi.c (print_one_vtable): Update.
5306 (gnuv3_print_method_ptr): Update.
5307 * f-valprint.c (f_val_print): Update.
5308 * cp-valprint.c (cp_print_value_fields): Update.
5309 * valprint.h (print_function_pointer_address): Update.
5310 * c-valprint.c (c_val_print): Update.
5311
5312 2012-05-18 Tom Tromey <tromey@redhat.com>
5313
5314 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5315 directly corresponding to the found psymtab.
5316 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5317 (dw2_find_pc_sect_symtab): Use it.
5318 * block.h (blockvector_contains_pc): Declare.
5319 * block.c (find_block_in_blockvector): New function.
5320 (blockvector_for_pc_sect): Use it.
5321 (blockvector_contains_pc): New function.
5322
5323 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5324
5325 * mips-tdep.h (mips_write_pc): New prototype.
5326 * mips-tdep.c (mips_write_pc): Make external, add description.
5327 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5328 add description.
5329
5330 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5331
5332 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5333 mips_regnum->pc.
5334 (mips_unwind_pc, mips_write_pc): Likewise.
5335 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5336 gdbarch_read_pc.
5337
5338 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5339
5340 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5341 proc_warn, proc_error, proc_get_status, proc_flags,
5342 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5343 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5344 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5345 proc_stop_process, proc_wait_for_stop, proc_run_process,
5346 proc_set_traced_signals, proc_set_traced_faults,
5347 proc_set_traced_sysentry, proc_set_traced_sysexit,
5348 proc_set_held_signals, proc_get_held_signals,
5349 proc_get_traced_signals, proc_get_traced_faults,
5350 proc_get_traced_sysentry, proc_get_traced_sysexit,
5351 proc_clear_current_fault, proc_set_current_signal,
5352 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5353 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5354 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5355 proc_get_current_thread, proc_get_current_thread,
5356 proc_get_current_thread, proc_update_threads,
5357 proc_update_threads, proc_update_threads, proc_update_threads,
5358 proc_iterate_over_threads, procfs_find_new_threads,
5359 procfs_pid_to_str): Make static. Remove advance declaration.
5360 (proc_cursig): Make static. Conditionalized defintion on
5361 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5362 (proc_syscall, proc_set_kill_on_last_close,
5363 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5364 proc_get_pending_signals, proc_get_signal_actions,
5365 proc_trace_signal, proc_ignore_signal): Delete.
5366
5367 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5368
5369 * coffread.c (cs_section_address): Passing proper argument for
5370 `bfd_get_section_vma'.
5371 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5372 `bfd_get_section_flags'.
5373 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5374 `bfd_get_section_vma'.
5375
5376 2012-05-16 Tom Tromey <tromey@redhat.com>
5377
5378 PR macros/13205:
5379 * macrotab.h: (macro_define_special): Declare.
5380 (enum macro_special_kind): New.
5381 (struct macro_definition) <argc, replacement>: Update comments.
5382 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5383 (macro_define_object_internal): New function.
5384 (macro_define_object): Use it.
5385 (macro_define_special): New function.
5386 (fixup_definition): New function.
5387 (macro_lookup_definition, foreach_macro_in_scope)
5388 (foreach_macro): Use fixup_definition.
5389 * macroexp.h (macro_stringify): Declare.
5390 * macroexp.c (free_buffer_return_text): New function.
5391 (stringify): Constify "arg".
5392 (macro_stringify): New function.
5393 * dwarf2read.c (macro_start_file): Call macro_define_special.
5394
5395 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5396 Maciej W. Rozycki <macro@mips.com>
5397
5398 * breakpoint.h (bp_location): Add related_address member.
5399 * inferior.h (get_return_value): Take a pointer to struct value
5400 instead of struct type for the function requested.
5401 * value.h (using_struct_return): Likewise.
5402 * gdbarch.sh (return_value): Take a pointer to struct value
5403 instead of struct type for the function requested.
5404 * breakpoint.c (set_breakpoint_location_function): Initialize
5405 related_address for bp_gnu_ifunc_resolver breakpoints.
5406 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5407 requested function's address to gdbarch_return_value.
5408 * eval.c (evaluate_subexp_standard): Pass the requested
5409 function's address to using_struct_return.
5410 * infcall.c (call_function_by_hand): Pass the requested
5411 function's address to using_struct_return and
5412 gdbarch_return_value.
5413 * infcmd.c (get_return_value): Take a pointer to struct value
5414 instead of struct type for the function requested.
5415 (print_return_value): Update accordingly.
5416 (finish_command_continuation): Likewise.
5417 * stack.c (return_command): Pass the requested function's
5418 address to using_struct_return and gdbarch_return_value.
5419 * value.c (using_struct_return): Take a pointer to struct value
5420 instead of struct type for the function requested. Pass the
5421 requested function's address to gdbarch_return_value.
5422 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5423 New function_value member, replacing function_type.
5424 (bpfinishpy_dealloc): Update accordingly.
5425 (bpfinishpy_pre_stop_hook): Likewise.
5426 (bpfinishpy_init): Likewise. Record the requested function's
5427 address.
5428 * mips-tdep.c (mips_fval_reg): New enum.
5429 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5430 words put in GP registers.
5431 (mips_o64_push_dummy_call): Update a comment.
5432 (mips_o32_return_value): Take a pointer to struct value instead
5433 of struct type for the function requested and use it to check if
5434 using the MIPS16 calling convention. Return the designated
5435 general purpose registers for floating-point values returned in
5436 MIPS16 mode.
5437 (mips_o64_return_value): Likewise.
5438 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5439 (ppc_sysv_abi_broken_return_value): Likewise.
5440 (ppc64_sysv_abi_return_value): Likewise.
5441 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5442 value instead of struct type for the function requested.
5443 * amd64-tdep.c (amd64_return_value): Likewise.
5444 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5445 * arm-tdep.c (arm_return_value): Likewise.
5446 * avr-tdep.c (avr_return_value): Likewise.
5447 * bfin-tdep.c (bfin_return_value): Likewise.
5448 * cris-tdep.c (cris_return_value): Likewise.
5449 * frv-tdep.c (frv_return_value): Likewise.
5450 * h8300-tdep.c (h8300_return_value): Likewise.
5451 (h8300h_return_value): Likewise.
5452 * hppa-tdep.c (hppa32_return_value): Likewise.
5453 (hppa64_return_value): Likewise.
5454 * i386-tdep.c (i386_return_value): Likewise.
5455 * ia64-tdep.c (ia64_return_value): Likewise.
5456 * iq2000-tdep.c (iq2000_return_value): Likewise.
5457 * lm32-tdep.c (lm32_return_value): Likewise.
5458 * m32c-tdep.c (m32c_return_value): Likewise.
5459 * m32r-tdep.c (m32r_return_value): Likewise.
5460 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5461 * m68k-tdep.c (m68k_return_value): Likewise.
5462 (m68k_svr4_return_value): Likewise.
5463 * m88k-tdep.c (m88k_return_value): Likewise.
5464 * mep-tdep.c (mep_return_value): Likewise.
5465 * microblaze-tdep.c (microblaze_return_value): Likewise.
5466 * mn10300-tdep.c (mn10300_return_value): Likewise.
5467 * moxie-tdep.c (moxie_return_value): Likewise.
5468 * mt-tdep.c (mt_return_value): Likewise.
5469 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5470 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5471 (ppc_sysv_abi_broken_return_value): Likewise.
5472 (ppc64_sysv_abi_return_value): Likewise.
5473 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5474 * rl78-tdep.c (rl78_return_value): Likewise.
5475 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5476 * rx-tdep.c (rx_return_value): Likewise.
5477 * s390-tdep.c (s390_return_value): Likewise.
5478 * score-tdep.c (score_return_value): Likewise.
5479 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5480 (sh_return_value_fpu): Likewise.
5481 * sh64-tdep.c (sh64_return_value): Likewise.
5482 * sparc-tdep.c (sparc32_return_value): Likewise.
5483 * sparc64-tdep.c (sparc64_return_value): Likewise.
5484 * spu-tdep.c (spu_return_value): Likewise.
5485 * tic6x-tdep.c (tic6x_return_value): Likewise.
5486 * v850-tdep.c (v850_return_value): Likewise.
5487 * vax-tdep.c (vax_return_value): Likewise.
5488 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5489 * xtensa-tdep.c (xtensa_return_value): Likewise.
5490 * gdbarch.c: Regenerate.
5491 * gdbarch.h: Regenerate.
5492
5493 2012-05-15 Tom Tromey <tromey@redhat.com>
5494
5495 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5496
5497 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5498
5499 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5500 of command in two error message.
5501
5502 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5503
5504 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5505
5506 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5507
5508 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5509
5510 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5511
5512 * NEWS (show auto-load scripts-directory): Add forgotten command.
5513
5514 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5515
5516 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5517 parameters.
5518
5519 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5520
5521 * amd64-tdep.c: Include features/i386/x32.c and
5522 features/i386/x32-avx.c.
5523 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5524 initialize_tdesc_x32_avx.
5525
5526 2012-05-14 Stan Shebs <stan@codesourcery.com>
5527
5528 Add dynamic printf.
5529 * breakpoint.h (enum bptype): New type bp_dprintf.
5530 (struct breakpoint): New field extra_string.
5531 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5532 (create_breakpoint): Add extra_string arg.
5533 * breakpoint.c (dprintf_breakpoint_ops): New.
5534 (is_breakpoint): Add bp_dprintf.
5535 (bpstat_what): Add dprintf case.
5536 (bptype_string): Ditto.
5537 (print_one_breakpoint_location): Ditto.
5538 (init_bp_location): Ditto.
5539 (bkpt_print_mention): Ditto.
5540 (dprintf_style_enums): New array.
5541 (dprintf_style): New global.
5542 (dprintf_function): New global.
5543 (dprintf_channel): New global.
5544 (update_dprintf_command_list): New function.
5545 (update_dprintf_commands): New function.
5546 (init_breakpoint_sal): Add extra_string argument, handle it.
5547 (create_breakpoint_sal): Add extra_string argument.
5548 (create_breakpoints_sal): Add extra_string argument, update callers.
5549 (find_condition_and_thread): Add extra argument.
5550 (create_breakpoint): Add extra_string argument, record it.
5551 (dprintf_command): New function.
5552 (break_command_1): Add arg to create_breakpoint call.
5553 (handle_gnu_v3_exceptions): Ditto.
5554 (trace_command): Ditto.
5555 (ftrace_command): Ditto.
5556 (strace_command): Ditto.
5557 (bkpt_print_mention): Add dprintf case.
5558 (create_breakpoint_sal_default): Add extra_string argument.
5559 (_initialize_breakpoint): Add new commands.
5560 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5561 * python/py-breakpoint.c (bppy_init): Ditto.
5562 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5563
5564 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5565
5566 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5567
5568 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5569
5570 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5571 unsigned long long.
5572
5573 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5574
5575 Add a new function gdb.find_pc_line to the Python API.
5576 * NEWS (Python Scripting): Add entry about the new function.
5577 * python/python.c (gdbpy_find_pc_line): New function which
5578 implements gdb.find_pc_line.
5579 (GdbMethods): Add entry for the new function.
5580
5581 2012-05-12 Pedro Alves <palves@redhat.com>
5582
5583 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5584 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5585
5586 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5587
5588 * inferior.c: Include completer.h
5589 (initialize_inferiors): Set completer of add-inferior to
5590 filename_completer.
5591
5592 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5593
5594 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5595 gdbarch_ptr_bit for x32 core dump.
5596
5597 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5598
5599 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5600 and features/i386/x32-avx-linux.c.
5601
5602 2012-05-11 Stan Shebs <stan@codesourcery.com>
5603 Kwok Cheung Yeung <kcy@codesourcery.com>
5604
5605 * NEWS: Describe new info os commands.
5606 * common/linux-osdata.c (PID_T, TIME_T): Define.
5607 (MAX_PID_T_STRLEN): New.
5608 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5609 MAX_PID_T_STRLEN.
5610 (command_from_pid): Add comment. Change to use PID_T.
5611 (commandline_from_pid): Change to use PID_T.
5612 (user_from_pid): Add comment.
5613 (get_process_owner): Add comment. Change to use PID_T and
5614 MAX_PID_T_STRLEN.
5615 (get_number_of_cpu_cores): Add comment.
5616 (get_cores_used_by_process): Add comment. Change to use PID_T and
5617 MAX_PID_T_STRLEN.
5618 (linux_xfer_osdata_processes): Change to use PID_T and
5619 MAX_PID_T_STRLEN.
5620 (compare_processes): New function.
5621 (linux_xfer_osdata_processgroups): New function.
5622 (linux_xfer_osdata_threads): Change to use PID_T.
5623 (linux_xfer_osdata_fds): New function.
5624 (format_socket_state, print_sockets): New functions.
5625 (union socket_addr): New union.
5626 (linux_xfer_osdata_isockets): New function.
5627 (time_from_time_t, group_from_gid): New functions.
5628 (linux_xfer_osdata_shm): New function.
5629 (linux_xfer_osdata_sem): New function.
5630 (linux_xfer_osdata_msg): New function.
5631 (linux_xfer_osdata_modules): New function.
5632 (osdata_table): Add new entries.
5633 * common/buffer.c (buffer_xml_printf): Add support for long and
5634 long long format specifiers.
5635
5636 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5637
5638 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5639 (tdesc_x32_avx_linux): Likewise.
5640
5641 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5642
5643 Implement multi-component --with-auto-load-dir.
5644 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5645 entries.
5646 (--with-auto-load-safe-path): Update the default value description.
5647 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5648 New.
5649 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5650 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5651 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5652 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5653 "set auto-load scripts-directory".
5654 * config.in: Regenerate.
5655 * configure: Regenerate.
5656 * configure.ac (--with-auto-load-dir): New configure option.
5657 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5658
5659 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5660
5661 Provide $ddir substitution for --with-auto-load-safe-path.
5662 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5663 entries.
5664 * auto-load.c: Include observer.h.
5665 (auto_load_safe_path_vec_update): Call substitute_path_component for
5666 each component. New variable ddir_subst.
5667 (auto_load_gdb_datadir_changed): New function.
5668 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5669 AUTO_LOAD_SAFE_PATH. New comment.
5670 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5671 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5672 * config.in: Regenerate.
5673 * configure: Regenerate.
5674 * configure.ac (--auto-load-safe-path): Rename
5675 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5676 GDB_DATADIR/auto-load.
5677 * defs.h (substitute_path_component): New declaration.
5678 * top.c: Include observer.h.
5679 (set_gdb_datadir): New function.
5680 (init_main): Install it for "set data-directory".
5681 * utils.c (substitute_path_component): New function.
5682
5683 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5684
5685 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5686 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5687 DEBUG_FILE_DIRECTORY. Handle multiple components of
5688 DEBUG_FILE_DIRECTORY.
5689
5690 2012-05-10 Tom Tromey <tromey@redhat.com>
5691
5692 * dwarf2read.c (recursively_write_psymbols): New function.
5693 (write_psymtabs_to_index): Use it.
5694
5695 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5696 field.
5697 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5698 (load_partial_comp_unit): Update.
5699 (queue_comp_unit): Add argument 'pretend_language'.
5700 (process_queue): Update.
5701 (psymtab_to_symtab_1): Skip dependencies that have a user.
5702 (load_partial_comp_unit_reader): Give meaning to the 'data'
5703 argument.
5704 (load_full_comp_unit): Add 'pretend_language' argument.
5705 (process_full_comp_unit): Add 'pretend_language' argument. Set
5706 language on CU.
5707 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5708 Update.
5709 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5710 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5711 Update.
5712 (prepare_one_comp_unit): Add 'pretend_language' argument.
5713
5714 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5715 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5716 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5717 (dw2_do_instantiate_symtab): Check whether symtab was read in
5718 before queueing.
5719 (dw2_instantiate_symtab): Add assertion. Call
5720 process_cu_includes.
5721 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5722 (partial_symtab_p): New typedef.
5723 (set_partial_user): New function.
5724 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5725 (scan_partial_symbols): Add imported CU to imported_symtabs.
5726 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5727 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5728 (get_symtab, recursively_compute_inclusions)
5729 (compute_symtab_includes, process_cu_includes)
5730 (process_imported_unit_die): New functions.
5731 (process_die) <DW_TAG_imported_unit>: New case.
5732 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5733
5734 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5735 comment.
5736 (struct partial_die_info) <locdesc>: Remove.
5737 <d>: New field.
5738 (process_psymtab_comp_unit): Add 'read_partial' argument.
5739 Update.
5740 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5741 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5742 (add_partial_symbol): Update.
5743 (process_die): Handle DW_TAG_partial_unit.
5744 (read_file_scope): Update comment.
5745 (load_partial_dies): Handle DW_TAG_imported_unit.
5746 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5747 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5748
5749 2012-05-10 Tom Tromey <tromey@redhat.com>
5750
5751 * cc-with-dwz.sh: New file.
5752
5753 2012-05-10 Tom Tromey <tromey@redhat.com>
5754
5755 * symtab.h (struct symtab) <includes, user>: New fields.
5756 * block.h (struct block_iterator) <d, idx, which>: New fields.
5757 * block.c (initialize_block_iterator, find_iterator_symtab)
5758 (block_iterator_step, block_iter_name_step)
5759 (block_iter_match_step): New functions.
5760 (block_iterator_first, block_iterator_next)
5761 (block_iter_name_first, block_iter_name_next)
5762 (block_iter_match_first, block_iter_match_next): Rewrite.
5763 (get_block_symtab): New function.
5764
5765 2012-05-10 Tom Tromey <tromey@redhat.com>
5766
5767 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5768 set_block_symtab.
5769 * jit.c (finalize_symtab): Use allocate_global_block,
5770 set_block_symtab.
5771 * buildsym.c (finish_block_internal): New function, from old
5772 finish_block.
5773 (finish_block): Rewrite.
5774 (end_symtab): Use finish_block_internal, set_block_symtab.
5775 * block.h (struct global_block): New.
5776 (allocate_global_block, set_block_symtab): Declare.
5777 * block.c (allocate_global_block, set_block_symtab): New
5778 functions.
5779
5780 2012-05-10 Tom Tromey <tromey@redhat.com>
5781
5782 * psymtab.c (partial_map_expand_apply): Add assertion.
5783 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5784 (psymtab_to_symtab): Find unshared psymtab.
5785 (dump_psymtab): Print including psymtabs.
5786 (recursively_search_psymtabs): New function.
5787 (expand_symtabs_matching_via_partial): Use it.
5788 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5789 fields.
5790 (enum psymtab_search_status): New.
5791
5792 2012-05-10 Tom Tromey <tromey@redhat.com>
5793
5794 * tracepoint.c (scope_info): Update.
5795 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5796 (find_pc_sect_symtab, search_symbols)
5797 (default_make_symbol_completion_list_break_on)
5798 (make_file_symbol_completion_list): Update.
5799 * symmisc.c (dump_symtab_1): Update.
5800 * stack.c (print_frame_args, iterate_over_block_locals)
5801 (print_frame_labels, iterate_over_block_arg_vars): Update.
5802 * python/py-block.c (block_object) <dict>: Remove.
5803 <block>: New field.
5804 <iter>: Change type.
5805 (blpy_iter): Update.
5806 (blpy_block_syms_iternext): Update.
5807 * psymtab.c (map_block): Use block iterators.
5808 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5809 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5810 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5811 * infrun.c (check_exception_resume): Update.
5812 * cp-support.c (make_symbol_overload_list_block): Update.
5813 * coffread.c (patch_opaque_types): Update.
5814 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5815 * block.h (struct block_iterator): New.
5816 (block_iterator_first, block_iterator_next, block_iter_name_first)
5817 (block_iter_name_next, block_iter_match_first)
5818 (block_iter_match_next): Declare.
5819 (ALL_BLOCK_SYMBOLS): Redefine.
5820 * block.c (block_iterator_first, block_iterator_next)
5821 (block_iter_name_first, block_iter_name_next)
5822 (block_iter_match_first, block_iter_match_next): New functions.
5823 * ada-lang.c (ada_add_block_symbols)
5824 (ada_make_symbol_completion_list): Use block iterator.
5825
5826 2012-05-10 Tom Tromey <tromey@redhat.com>
5827
5828 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5829 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5830 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5831 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5832 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5833 Update.
5834
5835 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5836
5837 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5838 print-file-var-lib2.c, print-file-var-main.c and
5839 print-file-var.exp (located in gdb/testsuite/gdb.base).
5840
5841 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5842
5843 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5844 try locating the symbol in the symbol's own objfile first, before
5845 extending the search to all objfiles.
5846 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5847 out of lookup_symbol_aux_symtabs.
5848 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5849 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5850 Do not search EXCLUDE_OBJFILE.
5851 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5852 (lookup_symbol_global): Search for matches in the block's objfile
5853 first, before searching all other objfiles.
5854
5855 2012-05-10 Tristan Gingold <gingold@adacore.com>
5856
5857 * printcmd.c (set_command): Add pre/post inc/dec.
5858
5859 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5860
5861 * gdb.1: Document -ex option.
5862
5863 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5864
5865 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5866 * inferior.h (AT_SYMBOL): Delete.
5867
5868 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5869
5870 * mips-tdep.c (mips_push_dummy_code): New function.
5871 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5872 ON_STACK and install mips_push_dummy_code as our gdbarch
5873 push_dummy_code routine.
5874
5875 2012-05-09 Pedro Alves <palves@redhat.com>
5876
5877 * target.c (set_maintenance_target_async_permitted): Rename to ...
5878 (set_target_async_command): ... this.
5879 (show_maintenance_target_async_permitted): Rename to ...
5880 (show_target_async_command): ... this.
5881 (initialize_targets): Adjust.
5882
5883 2012-05-08 Doug Evans <dje@google.com>
5884
5885 * go-exp.y (classify_name): Add missing assignment of fields of
5886 yylval.ssym.
5887
5888 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5889
5890 Display the ">" prompt in interactive mode while reading canned
5891 commands, even when the current interpreter is MI.
5892
5893 * interps.c (interp_set_temp): New function.
5894
5895 * interps.h (interp_set_temp): Add prototype.
5896
5897 * cli/cli-script.c (restore_interp): New cleanup function.
5898 (read_command_lines): Temporarily override the current interpreter
5899 with CLI and arrange for restoring the original one.
5900
5901 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5902
5903 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5904
5905 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5906
5907 * probe.c (parse_probes): Move conditional to check for
5908 debuginfo files from here...
5909 * stap-probe.c (stap_get_probes): ... to here.
5910
5911 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5912 H.J. Lu <hongjiu.lu@intel.com>
5913
5914 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5915 `movl %esp, %ebp' for the X32 ABI.
5916
5917 2012-05-07 Tom Tromey <tromey@redhat.com>
5918
5919 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5920 get_DW_TAG_name.
5921 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5922 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5923 (dwarf_stack_op_name): Remove.
5924 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5925 (decode_locdesc): Use get_DW_OP_name.
5926 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5927 (dwarf2_compile_expr_to_ax): Likewise.
5928 (disassemble_dwarf_expression): Likewise.
5929 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5930
5931 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5932
5933 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5934 (sh_linux_sigtramp_cache): New function.
5935 (sh_linux_sigreturn_init): New function.
5936 (sh_linux_rt_sigreturn_init): New function.
5937 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5938 patterns.
5939 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5940 syscall codes.
5941 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5942 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5943 (sh_linux_init_abi): Add init calls to register new tramp_frame
5944 definitions under 32-bit SH, update comments.
5945
5946 2012-05-07 Pedro Alves <palves@redhat.com>
5947
5948 PR gdb/10952
5949
5950 * amd64-linux-tdep.c: Include glibc-tdep.h.
5951 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5952 gdbarch_skip_solib_resolver callback.
5953
5954 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5957 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5958 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5959 (add_auto_load_safe_path): Change the error message.
5960 (_initialize_auto_load): Change the "safe-path" help text.
5961 * configure: Regenerate
5962 * configure.ac (--without-auto-load-safe-path): Set
5963 WITH_AUTO_LOAD_SAFE_PATH to /.
5964
5965 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5966
5967 * stap-probe.h: Do not include unecessary `probe.h'.
5968
5969 2012-05-05 Alan Modra <amodra@gmail.com>
5970
5971 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5972 bfd_und_section_ptr.
5973 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5974 and bfd_com_section_ptr.
5975
5976 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5977
5978 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5979
5980 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5981
5982 * windows-nat.h (segment_register_p_ftype): New typedef.
5983 (windows_set_segment_register_p): Add declaration.
5984 * windows-nat.c (segment_register_p): New static global.
5985 (windows_set_segment_register_p): New function.
5986 (do_windows_fetch_inferior_registers): Add special handling
5987 for segment registers.
5988 * amd64-windows-nat.c: #include "amd64-tdep.h".
5989 (amd64_windows_segment_register_p): New function.
5990 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5991 * i386-windows-nat.c: #include "i386-tdep.h".
5992 (i386_windows_segment_register_p): New function.
5993 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5994
5995 2012-05-04 Tristan Gingold <gingold@adacore.com>
5996
5997 * printcmd.c (set_command): Emit a warning if the expression is not
5998 an assignment.
5999
6000 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6001
6002 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6003 Make static.
6004
6005 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6006
6007 * stap-probe.c (stap_is_operator): Change declaration.
6008 (stap_get_opcode): Change return value.
6009 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6010 `stap_parse_argument_1'.
6011
6012 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6013
6014 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6015 debug log.
6016
6017 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6018
6019 Add two new methods global_block and static_block to gdb.Symtab
6020 objects.
6021 * NEWS (Python scripting): Add entry about the new methods.
6022 * python/py-symtab.c (stpy_global_block): New function which
6023 implements the gdb.Symtab.global_block() method.
6024 (stpy_static_block): New function which implements the
6025 gdb.Symtab.static_block() method.
6026 (symtab_object_methods): Add entries for the two new methods.
6027
6028 2012-05-03 Doug Evans <dje@google.com>
6029
6030 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6031 files.
6032
6033 2012-05-03 Yao Qi <yao@codesourcery.com>
6034
6035 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6036 space.
6037 (i386_process_record): Ditto.
6038
6039 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6040
6041 * infcall.c (unwind_on_signal_p): Make static.
6042
6043 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6044
6045 * sol-thread.c (solaris_pid_to_str): Make static.
6046 (_initialize_sol_thread): Add prototype.
6047
6048 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6049
6050 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6051
6052 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6053
6054 * MAINTAINERS: Remove myself.
6055
6056 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6057
6058 Fix --without-auto-load-safe-path for MS-Windows host platform.
6059 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6060
6061 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6062
6063 * gdb_curses.h: Undefine KEY_EVENT before including curses
6064 headers. Move "#undef MOUSE_MOVED" before any curses header
6065 inclusion.
6066
6067 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6068
6069 * features/i386/i386-mmx-linux.c: Regenerate.
6070 * features/rs6000/powerpc-32.c: Likewise.
6071 * features/rs6000/powerpc-32l.c: Likewise.
6072 * features/rs6000/powerpc-403.c: Likewise.
6073 * features/rs6000/powerpc-403gc.c: Likewise.
6074 * features/rs6000/powerpc-405.c: Likewise.
6075 * features/rs6000/powerpc-505.c: Likewise.
6076 * features/rs6000/powerpc-601.c: Likewise.
6077 * features/rs6000/powerpc-602.c: Likewise.
6078 * features/rs6000/powerpc-603.c: Likewise.
6079 * features/rs6000/powerpc-604.c: Likewise.
6080 * features/rs6000/powerpc-64.c: Likewise.
6081 * features/rs6000/powerpc-64l.c: Likewise.
6082 * features/rs6000/powerpc-750.c: Likewise.
6083 * features/rs6000/powerpc-860.c: Likewise.
6084 * features/rs6000/powerpc-e500.c: Likewise.
6085 * features/rs6000/powerpc-e500l.c: Likewise.
6086 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6087 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6088 * features/rs6000/rs6000.c: Likewise.
6089
6090 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6091
6092 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6093 variable.
6094 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6095 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6096 (stap_parse_argument) <e>: Likewise.
6097 (handle_stap_probe) <byte_order>: Likewise.
6098
6099 2012-04-30 Doug Evans <dje@google.com>
6100
6101 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6102 init_and_read_dies_worker. All callers updated.
6103 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6104 replaced with init_cutu_and_read_dies.
6105 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6106 (find_partial_die): Remove FIXME. Don't free current CU.
6107
6108 2012-04-30 Sterling Augustine <saugustine@google.com>
6109
6110 * contrib: New directory.
6111 * contrib/test_pubnames_and_indexes.py: New file.
6112
6113 2012-04-30 Doug Evans <dje@google.com>
6114
6115 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6116 All callers updated.
6117 (init_cu_die_reader): Verify the section is non-empty.
6118 (dwarf_decode_line_header): Don't dereference section->asection
6119 until we know the section is present.
6120
6121 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6122
6123 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6124 probes.
6125
6126 2012-04-29 Yao Qi <yao@codesourcery.com>
6127
6128 * gdb-code-style.el: New hook gdb-markup-hook
6129 and gdb-comment-hook.
6130
6131 2012-04-28 Doug Evans <dje@google.com>
6132
6133 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6134 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6135 objfile->obfd.
6136 * symfile.h (dwarf2_debug_sections): New member addr.
6137 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6138 (ctx_no_get_addr_index): New function.
6139 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6140 (ctx_no_get_addr_index): Declare.
6141 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6142 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6143 (dwarf_expr_ctx_funcs): Update.
6144 (needs_get_addr_index): New function.
6145 (needs_frame_ctx_funcs): Update.
6146 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6147 * dwarf2read.c: #include "gdbcore.h".
6148 (dwarf2_per_objfile): New members addr, dwo_files.
6149 (dwarf2_elf_names): Add entry for addr.
6150 (struct dwo_section_names): New type.
6151 (dwo_section_names): New static global.
6152 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6153 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6154 old debug_types_section member updated to use this.
6155 Rename member debug_types_section to info_or_types_section,
6156 all uses updated.
6157 (signatured_type): Rename member type_offset to type_offset_in_tu,
6158 all uses updated. New member type_offset_in_section.
6159 (struct dwo_sections): New type.
6160 (struct dwo_unit): New type.
6161 (struct dwo_file): New type.
6162 (die_reader_specs): New member dwo_file.
6163 (dwarf2_locate_sections): Watch for .debug_addr.
6164 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6165 (dwarf2_read_section): Get bfd of section from bfd's asection,
6166 instead of objfile.
6167 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6168 (create_signatured_type_table_from_index): Initialize
6169 sig_type->info_or_types_section.
6170 (dw2_get_file_names): Statement lists for type units with DWO files
6171 live in the DWO file.
6172 (create_debug_types_hash_table): New function.
6173 (create_all_type_units): Rewrite.
6174 (init_cu_die_reader): New arg dwo_file, all callers updated.
6175 (init_and_read_dies_worker): Get section from
6176 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6177 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6178 continue reading the CU/TU from there.
6179 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6180 updated. Get section from this_cu->info_or_types_section.
6181 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6182 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6183 DW_FORM_GNU_str_index.
6184 (hash_dwo_file, eq_dwo_file): New functions.
6185 (allocate_dwo_file_hash_table): New function.
6186 (hash_dwo_unit, eq_dwo_unit): New functions.
6187 (allocate_dwo_unit_table): New function.
6188 (dwarf2_locate_dwo_sections): New function.
6189 (struct create_dwo_info_table_data): New type.
6190 (create_debug_info_hash_table_reader): New function.
6191 (create_debug_info_hash_table): New function.
6192 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6193 (lookup_dwo_file): New function.
6194 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6195 (free_dwo_file, free_dwo_file_cleanup): New functions.
6196 (free_dwo_file_from_slot, free_dwo_files): New functions.
6197 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6198 (dwarf2_record_block_ranges): Ditto.
6199 (read_partial_die): Ditto.
6200 (process_enumeration_scope): Update to use type_offset_in_section.
6201 (read_full_die_1): New function.
6202 (read_full_die): Rewrite.
6203 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6204 DW_FORM_GNU_str_index.
6205 (read_addr_index_1, read_addr_index): New functions.
6206 (read_addr_index_from_leb128): New function.
6207 (struct dwarf2_read_addr_index_data): New type.
6208 (dwarf2_read_addr_index_reader): New function.
6209 (dwarf2_read_addr_index): New function.
6210 (read_str_index): New function.
6211 (leb128_size): New function.
6212 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6213 If processing a type unit from a DWO file, get the line section
6214 from the DWO file.
6215 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6216 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6217 DW_FORM_GNU_str_index.
6218 (lookup_die_type): Check whether section offset of type's die is
6219 known before looking it up. Remove assert. Condition can
6220 legimately happen for inter-cu type references.
6221 (dwarf_attr_name): Handle Fission attributes.
6222 (dwarf_form_name): Handle Fission forms.
6223 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6224 DW_FORM_GNU_str_index.
6225 (follow_die_sig): Update to use type_offset_in_section.
6226 (decode_locdesc): New case DW_OP_GNU_addr_index.
6227 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6228 DW_FORM_GNU_str_index.
6229 (cu_debug_loc_section): New function.
6230 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6231 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6232 Free DWO files if present.
6233 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6234
6235 Refactor DIE reading.
6236 * dwarf2read.c (dwarf2_per_objfile): Replace members
6237 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6238 (die_reader_specs): New member "die_section". Temporarily make
6239 member "buffer" non-const, pending constifying all info_ptr uses.
6240 (die_reader_func_ftype): New typedef.
6241 (dw2_get_file_names_reader): New function.
6242 (dw2_get_file_names): Rewrite.
6243 (read_and_check_type_unit_head): Rename arg type_offset to
6244 type_offset_in_tu.
6245 (create_all_type_units): Improve debugging message.
6246 Improve dummy type unit check.
6247 (init_cu_die_reader): New arg "section". All callers updated.
6248 (init_and_read_dies_worker): New function.
6249 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6250 (init_cutu_and_read_dies_no_follow): New function.
6251 (init_cutu_and_read_dies_simple): New function.
6252 (process_psymtab_comp_unit_reader): New function.
6253 (process_psymtab_comp_unit): Delete args section,
6254 is_debug_types_section. Rewrite. All callers updated.
6255 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6256 All callers updated. Rewrite.
6257 (load_partial_comp_unit_reader): New function.
6258 (load_partial_comp_unit): Rewrite.
6259 (skip_children): New arg reader. Delete args buffer, cu.
6260 All callers updated.
6261 (skip_one_die): New arg reader. Delete args buffer, cu.
6262 All callers updated.
6263 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6264 All callers updated.
6265 (load_full_comp_unit_reader): New function.
6266 (load_full_comp_unit): Rewrite.
6267 (read_comp_unit): Delete.
6268 (read_die_and_children_1): Delete, contents moved ...
6269 (read_die_and_children): ... here.
6270 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6271 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6272 All callers updated.
6273 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6274 All callers updated.
6275 (find_partial_die): Rewrite load_all_dies support.
6276 (read_attribute_value): New arg reader. Delete args abfd, cu.
6277 All callers updated.
6278 (read_attribute): New arg reader. Delete args abfd, cu.
6279 All callers updated.
6280 (load_full_type_unit): Add assert.
6281 (read_signatured_type_reader): New function.
6282 (read_signatured_type): Rewrite.
6283 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6284 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6285 All callers updated. Set per_cu->cu = NULL after freeing it.
6286 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6287 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6288 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6289 (set_die_type): Update.
6290 (get_die_type_at_offset): Update.
6291 (read_file_scope): Call prepare_one_comp_unit.
6292 (read_type_unit_scope): Ditto.
6293 (prepare_one_comp_unit): Set producer if present.
6294
6295 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6296
6297 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6298 gettext function on `error'.
6299
6300 2012-04-27 Doug Evans <dje@google.com>
6301
6302 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6303 is empty.
6304
6305 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6306 Tom Tromey <tromey@redhat.com>
6307
6308 * breakpoint.c (struct breakpoint_objfile_data)
6309 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6310 <exception_probes>: New fields.
6311 (free_breakpoint_probes): New function.
6312 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6313 `_Unwind_DebugHook'.
6314 (create_exception_master_breakpoint): Likewise.
6315 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6316 * infrun.c: Including necessary header files for handling SystemTap
6317 probes.
6318 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6319 via SystemTap probes.
6320 (check_exception_resume): Remove `func' argument. Handle exception
6321 unwinding breakpoint set via a SystemTap probe.
6322 (insert_exception_resume_from_probe): New function.
6323
6324 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6325 Tom Tromey <tromey@redhat.com>
6326 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6329 (COMMON_OBS): Likewise.
6330 (HFILES_NO_SRCDIR): Add `probe'.
6331 * NEWS: Mention support for static and SystemTap probes.
6332 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6333 SystemTap probes' arguments parser.
6334 * arm-linux-tdep.c: Including headers needed to perform the parsing
6335 of SystemTap probes' arguments.
6336 (arm_stap_is_single_operand): New function.
6337 (arm_stap_parse_special_token): Likewise.
6338 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6339 probes' arguments parser.
6340 * ax-gdb.c (require_rvalue): Removing static declaration.
6341 (gen_expr): Likewise.
6342 * ax-gdb.h (gen_expr): Declaring function.
6343 (require_rvalue): Likewise.
6344 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6345 (bkpt_probe_breakpoint_ops): New variable.
6346 (momentary_breakpoint_from_master): Set the `probe' value.
6347 (add_location_to_breakpoint): Likewise.
6348 (break_command_1): Using proper breakpoint_ops according to the
6349 argument passed by the user in the command line.
6350 (bkpt_probe_insert_location): New function.
6351 (bkpt_probe_remove_location): Likewise.
6352 (bkpt_probe_create_sals_from_address): Likewise.
6353 (bkpt_probe_decode_linespec): Likewise.
6354 (tracepoint_probe_create_sals_from_address): Likewise.
6355 (tracepoint_probe_decode_linespec): Likewise.
6356 (tracepoint_probe_breakpoint_ops): New variable.
6357 (trace_command): Using proper breakpoint_ops according to the
6358 argument passed by the user in the command line.
6359 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6360 static probes on breakpoints and tracepoints.
6361 * breakpoint.h (struct bp_location) <probe>: New field.
6362 * cli-utils.c (skip_spaces_const): New function.
6363 (extract_arg): Likewise.
6364 * cli-utils.h (skip_spaces_const): Likewise.
6365 (extract_arg): Likewise.
6366 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6367 * configure.ac: Append `stap-probe.o' to be generated when ELF
6368 support is present.
6369 * configure: Regenerate.
6370 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6371 * elfread.c: Include `probe.h' and `arch-utils.h'.
6372 (probe_key): New variable.
6373 (elf_get_probes): New function.
6374 (elf_get_probe_argument_count): Likewise.
6375 (elf_evaluate_probe_argument): Likewise.
6376 (elf_compile_to_ax): Likewise.
6377 (elf_symfile_relocate_probe): Likewise.
6378 (stap_probe_key_free): Likewise.
6379 (elf_probe_fns): New variable.
6380 (elf_sym_fns): Add `sym_probe_fns' value.
6381 (elf_sym_fns_lazy_psyms): Likewise.
6382 (elf_sym_fns_gdb_index): Likewise.
6383 (_initialize_elfread): Initialize objfile cache for static
6384 probes.
6385 * gdb_vecs.h (struct probe): New forward declaration.
6386 (probe_p): New VEC declaration.
6387 * gdbarch.c: Regenerate.
6388 * gdbarch.h: Regenerate.
6389 * gdbarch.sh (stap_integer_prefix): New variable.
6390 (stap_integer_suffix): Likewise.
6391 (stap_register_prefix): Likewise.
6392 (stap_register_suffix): Likewise.
6393 (stap_register_indirection_prefix): Likewise.
6394 (stap_register_indirection_suffix): Likewise.
6395 (stap_gdb_register_prefix): Likewise.
6396 (stap_gdb_register_suffix): Likewise.
6397 (stap_is_single_operand): New function.
6398 (stap_parse_special_token): Likewise.
6399 (struct stap_parse_info): Forward declaration.
6400 * i386-tdep.c: Including headers needed to perform the parsing
6401 of SystemTap probes' arguments.
6402 (i386_stap_is_single_operand): New function.
6403 (i386_stap_parse_special_token): Likewise.
6404 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6405 probes' arguments parser.
6406 * i386-tdep.h (i386_stap_is_single_operand): New function.
6407 (i386_stap_parse_special_token): Likewise.
6408 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6409 * mipsread.c (ecoff_sym_fns): Likewise.
6410 * objfiles.c (objfile_relocate1): Support relocation for static
6411 probes.
6412 * parse.c (prefixify_expression): Remove static declaration.
6413 (initialize_expout): Likewise.
6414 (reallocate_expout): Likewise.
6415 * parser-defs.h (initialize_expout): Declare function.
6416 (reallocate_expout): Likewise.
6417 (prefixify_expression): Likewise.
6418 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6419 of SystemTap probes' arguments.
6420 (ppc_stap_is_single_operand): New function.
6421 (ppc_stap_parse_special_token): Likewise.
6422 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6423 probes' arguments parser.
6424 * probe.c: New file, for generic statically defined probe support.
6425 * probe.h: Likewise.
6426 * s390-tdep.c: Including headers needed to perform the parsing of
6427 SystemTap probes' arguments.
6428 (s390_stap_is_single_operand): New function.
6429 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6430 probes' arguments parser.
6431 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6432 * stap-probe.c: New file, for SystemTap probe support.
6433 * stap-probe.h: Likewise.
6434 * symfile.h: Include `gdb_vecs.h'.
6435 (struct sym_probe_fns): New struct.
6436 (struct sym_fns) <sym_probe_fns>: New field.
6437 * symtab.c (init_sal): Initialize `probe' field.
6438 * symtab.h (struct probe): Forward declaration.
6439 (struct symtab_and_line) <probe>: New field.
6440 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6441 locations.
6442 (stop_tracing): Likewise.
6443 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6444
6445 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6446 Tom Tromey <tromey@redhat.com>
6447
6448 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6449 and to compile agent expressions.
6450 * infrun.c (siginfo_make_value): New argument `ignore'.
6451 (siginfo_funcs): New struct.
6452 (_initialize_infrun): New argument when calling
6453 `create_internalvar_type_lazy'.
6454 * thread.c (thread_id_make_value): New argument `ignore'.
6455 (thread_funcs): New struct.
6456 (_initialize_thread): New argument when calling
6457 `create_internalvar_type_lazy'.
6458 * tracepoint.c (sdata_make_value): New argument `ignore'.
6459 (sdata_funcs): New struct.
6460 (_initialize_tracepoint): New argument when calling
6461 `create_internalvar_type_lazy'.
6462 * value.c (make_value): New struct.
6463 (create_internalvar_type_lazy): New argument `data'.
6464 (compile_internalvar_to_ax): New function.
6465 (value_of_internalvar): Properly handling `make_value' case.
6466 (clear_internalvar): Likewise.
6467 (show_convenience): Adding `TRY_CATCH' block.
6468 * value.h (internalvar_make_value): Delete, replace by...
6469 (struct internalvar_funcs): ... this.
6470 (create_internalvar_type_lazy) <fun>: Delete argument.
6471 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6472 (compile_internalvar_to_ax): New function.
6473 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6474 (tlb_funcs): New struct.
6475 (_initialize_windows_tdep): New argument when calling
6476 `create_internalvar_type_lazy'.
6477
6478 2012-04-27 Mark Wielaard <mjw@redhat.com>
6479
6480 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6481 see whether it is an address or a constant offset from DW_AT_low_pc.
6482 (dwarf2_record_block_ranges): Likewise.
6483 (read_partial_die): Likewise.
6484
6485 2012-04-26 Mark Wielaard <mjw@redhat.com>
6486
6487 * MAINTAINERS (Write After Approval): Add myself to the list.
6488
6489 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6490
6491 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6492 (proc_prettyprint_signal): Likewise.
6493 (proc_prettyprint_faultset): Likewise.
6494 (proc_prettyprint_fault): Likewise.
6495 (proc_prettyprint_actionset): Likewise.
6496 (proc_prettyprint_flags): Move to new proc-flags.c section.
6497 (proc_prettyfprint_flags): New prototype.
6498 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6499 (proc_syscall, proc_cursig): Likewise.
6500 (proc_set_kill_on_last_close): Likewise.
6501 (proc_unset_kill_on_last_close): Likewise.
6502 (proc_set_watchpoint): Make static.
6503 (proc_delete_dead_threads): Likewise.
6504 (procfs_set_watchpoint): Likewise.
6505 (_initialize_procfs): Add prototype.
6506 * proc-events.c: Include proc-utils.h.
6507 (init_syscall_table): Make static.
6508 * proc-api.c (_initialize_proc_api): Add prototype.
6509 * proc-flags.c: Include proc-utils.h.
6510
6511 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6512
6513 * configure.ac: Add AC_ARG_PROGRAM.
6514 * configure: Regenerate.
6515
6516 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6517
6518 Fix DW_AT_lower_bound defaults for DWARF-4+.
6519 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6520 high. New variable low_default_is_valid. Implement DWARF-4+
6521 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6522 no default by the DWARF standard.
6523
6524 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6525 Maciej W. Rozycki <macro@codesourcery.com>
6526
6527 * infrun.c (handle_inferior_event): Move the check for return
6528 trampolines ahead of the check for function trampolines.
6529 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6530 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6531 (mips_str_mips16_ret_stub): Likewise.
6532 (mips_str_call_fp_stub): Likewise.
6533 (mips_str_call_stub): Likewise.
6534 (mips_str_fn_stub): Likewise.
6535 (mips_str_pic): Likewise.
6536 (mips_in_frame_stub): New function.
6537 (mips_unwind_pc): Return the return address rather than the PC
6538 if the PC of an intermediate frame is inside a call thunk.
6539 (mips_is_stub_suffix): New function.
6540 (mips_is_stub_mode): Likewise.
6541 (mips_get_mips16_fn_stub_pc): Likewise.
6542 (mips_skip_mips16_trampoline_code): Update to handle all the
6543 currently generated stub types. Don't recurse into __fn_stub
6544 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6545 Use cooked register accesses.
6546 (mips_in_return_stub): Reintroduce function.
6547 (mips_skip_trampoline_code): Traverse trampolines recursively.
6548 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6549
6550 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6551
6552 GDB 7.4.1 released.
6553
6554 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6555
6556 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6557 * features/arm-with-m-vfp-d16.xml: New file. Describes
6558 Cortex-M with VFPv4-sp-d16 FPU register layout.
6559 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6560 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6561 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6562 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6563 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6564
6565 2012-04-25 Doug Evans <dje@google.com>
6566
6567 * cli/cli-decode.c (print_doc_line): Use stream instead of
6568 current_uiout.
6569
6570 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6571
6572 * features/arm-with-iwmmxt.c: Regenerate.
6573 * features/arm-with-m-fpa-layout.c: Likewise.
6574 * features/arm-with-m.c: Likewise.
6575 * features/arm-with-neon.c: Likewise.
6576 * features/arm-with-vfpv2.c: Likewise.
6577 * features/arm-with-vfpv3.c: Likewise.
6578 * features/mips-dsp-linux.c: Likewise.
6579 * features/mips-linux.c: Likewise.
6580 * features/mips64-dsp-linux.c: Likewise.
6581 * features/mips64-linux.c: Likewise.
6582 * features/s390-linux32.c: Likewise.
6583 * features/s390-linux32v1.c: Likewise.
6584 * features/s390-linux32v2.c: Likewise.
6585 * features/s390-linux64.c: Likewise.
6586 * features/s390-linux64v1.c: Likewise.
6587 * features/s390-linux64v2.c: Likewise.
6588 * features/s390x-linux64.c: Likewise.
6589 * features/s390x-linux64v1.c: Likewise.
6590 * features/s390x-linux64v2.c: Likewise.
6591 * features/tic6x-c62x-linux.c: Likewise.
6592 * features/tic6x-c62x.c: Likewise.
6593 * features/tic6x-c64x-linux.c: Likewise.
6594 * features/tic6x-c64x.c: Likewise.
6595 * features/tic6x-c64xp-linux.c: Likewise.
6596 * features/tic6x-c64xp.c: Likewise.
6597 * target-descriptions.c: Only generate `field_type' and `type'
6598 variables when needed.
6599
6600 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6601
6602 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6603
6604 2012-04-25 Doug Evans <dje@google.com>
6605
6606 Initial pass at Go language support.
6607 * NEWS: Mention Go.
6608 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6609 go-valprint.c.
6610 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6611 (YYFILES): Add go-exp.c.
6612 (YYOBJ): Add go-exp.o.
6613 (local-maintainer-clean): Delete go-exp.c.
6614 * defs.h (enum language): Add language_go.
6615 * dwarf2read.c: #include "go-lang.h".
6616 (fixup_go_packaging): New function.
6617 (process_full_comp_unit): Call it when processing Go CUs.
6618 (dwarf2_physname): Add Go support.
6619 (read_file_scope): Handle missing language spec for GNU Go.
6620 (set_cu_language): Handle DW_LANG_Go.
6621 * go-exp.y: New file.
6622 * go-lang.h: New file.
6623 * go-lang.c: New file.
6624 * go-typeprint.c: New file.
6625 * go-valprint.c: New file.
6626 * symtab.c: #include "go-lang.h".
6627 (symbol_set_language): Handle language_go.
6628 (symbol_find_demangled_name, symbol_set_names): Ditto.
6629 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6630
6631 2012-04-24 Jim Meyering <meyering@redhat.com>
6632
6633 avoid a few strncpy-induced buffer overruns
6634 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6635 fname and psargs before trying to concatenate.
6636 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6637 "name" before applying strchr.
6638
6639 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6640
6641 * CONTRIBUTE: Use unified diff instead of context diff when
6642 generating patches.
6643
6644 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6645
6646 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6647 code. Handle JR.HB correctly.
6648
6649 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6650
6651 * mips-tdep.c
6652 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6653 with the other MIPS16 helpers.
6654
6655 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6656
6657 * observer.sh: Conditionally declare `args', thus cleaning up
6658 unused instances of this variable.
6659
6660 2012-04-24 Yao Qi <yao@codesourcery.com>
6661
6662 Revert this patch to allow breakpoint always-inserted
6663 in record target.
6664 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6665 * breakpoint.c: Include record.h.
6666 (breakpoints_always_inserted_mode): Return false when the record
6667 target is in use.
6668
6669 * breakpoint.c (iterate_over_bp_locations): New.
6670 * breakpoint.h: Declare.
6671 New typedef walk_bp_location_callback.
6672 * record.c (record_open): Call record_init_record_breakpoints.
6673 (record_sync_record_breakpoints): New.
6674 (record_init_record_breakpoints): New.
6675 * NEWS: Mention supporting breakpoint always-inserted mode in
6676 record target.
6677
6678 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6679
6680 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6681 any thread.
6682
6683 2012-04-24 Yao Qi <yao@codesourcery.com>
6684
6685 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6686 (is_catchpoint): ... it.
6687 (print_one_breakpoint_location): Caller update.
6688 * breakpoint.h: Update declaration.
6689
6690 2012-04-23 David S. Miller <davem@davemloft.net>
6691
6692 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6693
6694 2012-04-23 Tom Tromey <tromey@redhat.com>
6695
6696 * buildsym.c (add_free_pendings): Remove.
6697 * buildsym.h (add_free_pendings): Remove.
6698
6699 2012-04-23 Doug Evans <dje@google.com>
6700
6701 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6702 attr.u.unsnd instead of attr.u.addr.
6703 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6704 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6705 DW_FORM_ref_udata.
6706 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6707 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6708 DW_FORM_ref_udata.
6709 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6710
6711 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6712
6713 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6714 (mips_o32_return_value): Likewise.
6715 (mips_o64_return_value): Likewise.
6716
6717 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6718
6719 * ada-lang.c (ada_evaluate_subexp): Add cases for
6720 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6721 their treatment in eval.c.
6722
6723 2012-04-21 David S. Miller <davem@davemloft.net>
6724
6725 * sparc-tdep.c (X_DISP10): Define.
6726 (sparc_analyze_control_transfer): Handle compare-and-branch.
6727
6728 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6729
6730 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6731 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6732
6733 2012-04-20 Nigel Stephens <nigel@mips.com>
6734 Maciej W. Rozycki <macro@codesourcery.com>
6735
6736 * mips-tdep.c (mips_float_register_p): New function.
6737 (mips_convert_register_float_case_p): Use mips_float_register_p.
6738 (mips_register_type): Likewise.
6739 (mips_print_register): Likewise.
6740 (print_gp_register_row): Likewise.
6741 (mips_print_registers_info): Likewise.
6742
6743 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6744
6745 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6746 of mips16 symbols.
6747
6748 2012-04-20 Andrew Pinski <apinski@cavium.com>
6749
6750 * MAINTAINERS (Write After Approval): Add myself to the list.
6751
6752 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6753
6754 * MAINTAINERS: Update my e-mail address.
6755
6756 2012-04-20 Pedro Alves <palves@redhat.com>
6757
6758 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6759 $srcdir.
6760 * configure: Regenerate.
6761
6762 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6763
6764 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6765 declaration.
6766 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6767
6768 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6769
6770 Fix compilation compatibility with python-2.4
6771 * python/py-type.c (convert_field): Cast ADDRSTRING for
6772 PyObject_SetAttrString as non-const. New comment.
6773
6774 2012-04-19 Tom Tromey <tromey@redhat.com>
6775
6776 * top.c (quit_target): Use all_cleanups.
6777 * main.c (captured_command_loop): Use all_cleanups.
6778 * exceptions.c (throw_exception): Use all_cleanups.
6779
6780 2012-04-19 Pedro Alves <palves@redhat.com>
6781
6782 * Makefile.in (GNULIB_BUILDDIR): New.
6783 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6784 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6785 (CLEANDIRS). Remove gnulib/import.
6786 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6787 (all-lib): Ditto.
6788 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6789 (gnulib/import/Makefile): Replace gnulib/import with
6790 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6791 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6792 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6793 acx_configure_dir.m4.
6794 * acinclude.m4: Include acx_configure_dir.m4.
6795 * acx_configure_dir.m4: New file.
6796 * aclocal.m4: Regenerate.
6797 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6798 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6799 (GNULIB): New variable.
6800 (GNULIB_STDINT_H): Adjust.
6801 (AC_OUTPUT): Don't output gnulib/Makefile.
6802 * gdb/defs.h: Include build-gnulib/config.h.
6803 * aclocal.m4: Regenerate.
6804 * config.in: Regenerate.
6805 * configure: Regenerate.
6806
6807 * gnulib/Makefile.in: New file.
6808 * gnulib/configure.ac: New file.
6809 * gnulib/aclocal.m4: New file.
6810 * gnulib/config.in: New file.
6811 * gnulib/configure: New file.
6812 * gnulib/: Re-run gnulib-tool to adjust.
6813
6814 2012-04-19 Doug Evans <dje@google.com>
6815
6816 * cleanups.h (struct cleanup): Move to cleanups.c.
6817 (make_cleanup_dtor_ftype): New typedef.
6818 (make_cleanup_dtor): Use it.
6819 (ALL_CLEANUPS): Replace with ...
6820 (all_cleanups): ... this. Declare. All uses updated.
6821 * cleanups.c: #include "gdb_assert.h".
6822 (sentinel_cleanup): New static global.
6823 (SENTINEL_CLEANUP): Define.
6824 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6825 (make_my_cleanup2): Assert result is non-NULL.
6826 (all_cleanups): New function.
6827 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6828 of NULL.
6829
6830 2012-04-19 Pedro Alves <palves@redhat.com>
6831
6832 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6833 Adjust paths to gnulib imported files.
6834
6835 2012-04-19 Pedro Alves <palves@redhat.com>
6836
6837 * gnulib/: Move whole directory ...
6838 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6839 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6840 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6841 (aclocal_m4_deps): Adjust.
6842 * aclocal.m4: Regenerate.
6843 * configure: Regenerate.
6844 * configure.ac: Adjust AC_OUTPUT output.
6845
6846 2012-04-19 Yao Qi <yao@codesourcery.com>
6847
6848 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6849 (vec.o): New rule.
6850 * vec.c: Move it ...
6851 * common/vec.c: ... here.
6852 * vec.h: Move it ...
6853 * common/vec.h: ... here.
6854
6855 2012-04-19 Yao Qi <yao@codesourcery.com>
6856
6857 * gdb-code-style.el: New.
6858
6859 2012-04-18 Pedro Alves <palves@redhat.com>
6860
6861 Update gnulib from latest git.
6862 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6863
6864 * gnulib/Makefile.am: Update.
6865 * gnulib/dummy.c: Update.
6866 * gnulib/extra/arg-nonnull.h: Update.
6867 * gnulib/extra/c++defs.h: Update.
6868 * gnulib/extra/update-copyright: Update.
6869 * gnulib/extra/warn-on-use.h: Update.
6870 * gnulib/inttypes.in.h: Update.
6871 * gnulib/m4/00gnulib.m4: Update.
6872 * gnulib/m4/extensions.m4: Update.
6873 * gnulib/m4/gnulib-cache.m4: Update.
6874 * gnulib/m4/gnulib-common.m4: Update.
6875 * gnulib/m4/gnulib-comp.m4: Update.
6876 * gnulib/m4/gnulib-tool.m4: Update.
6877 * gnulib/m4/include_next.m4: Update.
6878 * gnulib/m4/inttypes-pri.m4: Update.
6879 * gnulib/m4/inttypes.m4: Update.
6880 * gnulib/m4/longlong.m4: Update.
6881 * gnulib/m4/memchr.m4: Update.
6882 * gnulib/m4/memmem.m4: Update.
6883 * gnulib/m4/mmap-anon.m4: Update.
6884 * gnulib/m4/multiarch.m4: Update.
6885 * gnulib/m4/onceonly.m4: Update.
6886 * gnulib/m4/stddef_h.m4: Update.
6887 * gnulib/m4/stdint.m4: Update.
6888 * gnulib/m4/string_h.m4: Update.
6889 * gnulib/m4/warn-on-use.m4: Update.
6890 * gnulib/m4/wchar_h.m4: Update.
6891 * gnulib/m4/wchar_t.m4: Update.
6892 * gnulib/m4/wint_t.m4: Update.
6893 * gnulib/memchr.c: Update.
6894 * gnulib/memmem.c: Update.
6895 * gnulib/stddef.in.h: Update.
6896 * gnulib/stdint.in.h: Update.
6897 * gnulib/str-two-way.h: Update.
6898 * gnulib/string.in.h: Update.
6899 * gnulib/wchar.in.h: Update.
6900
6901 * gnulib/extra/arg-nonnull.h: Delete.
6902 * gnulib/extra/c++defs.h: Delete.
6903 * gnulib/extra/warn-on-use.h: Delete.
6904 * gnulib/m4/wchar_h.m4: Delete.
6905 * gnulib/m4/wint_t.m4: Delete.
6906 * gnulib/wchar.in.h: Delete.
6907
6908 * gnulib/extra/snippets/arg-nonnull.h: New.
6909 * gnulib/extra/snippets/c++defs.h: New.
6910 * gnulib/extra/snippets/warn-on-use.h: New.
6911
6912 * aclocal.m4: Regenerate.
6913 * config.in: Regenerate.
6914 * configure: Regenerate.
6915 * gnulib/Makefile.in: Regenerate.
6916
6917 2012-04-18 Pedro Alves <palves@redhat.com>
6918
6919 Reimport the update-copyright module from gnulib
6920 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6921
6922 * configure: Regenerate.
6923 * gnulib/Makefile.am: Update.
6924 * gnulib/Makefile.in: Regenerate.
6925 * gnulib/extra/update-copyright: Update.
6926 * gnulib/m4/gnulib-cache.m4: Update.
6927 * gnulib/m4/gnulib-comp.m4: Update.
6928
6929 2012-04-18 Tristan Gingold <gingold@adacore.com>
6930
6931 * configure.ac (aix): Put -lpthread into libs.
6932 * configure: Regenerate.
6933
6934 2012-04-18 Tom Tromey <tromey@redhat.com>
6935
6936 * linespec.c (convert_linespec_to_sals): Don't use
6937 SYMBOL_OBJ_SECTION.
6938 (compare_msymbols): Arguments are minsym_and_objfile, not
6939 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6940
6941 2012-04-18 Pedro Alves <palves@redhat.com>
6942
6943 Revert gnulib/ part of:
6944 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6945 Copyright year update in most files (performed by copyright.sh).
6946
6947 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6948
6949 Fix 64-bit constants on 32-bit hosts.
6950 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6951 from unsigned long to ULONGEST.
6952 (read_signed_leb128): Change declaration return type from long to
6953 LONGEST.
6954 (dwarf2_const_value_attr): Change declaration parameter value from long
6955 to LONGEST.
6956 (dwarf2_compute_name): Change variable value from long to LONGEST.
6957 (read_unsigned_leb128): Change return type, variable result and some
6958 casts from unsigned long to ULONGEST.
6959 (read_signed_leb128): Change return type, variable result and some
6960 casts from long to LONGEST.
6961 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6962 value from long to LONGEST.
6963 (dwarf2_const_value): Change variable value from long to LONGEST.
6964 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6965 plongest and hex_string.
6966 * symtab.h (struct general_symbol_info): Change ivalue from long to
6967 LONGEST, remove the comment.
6968 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6969 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6970
6971 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6972
6973 PR symtab/7259:
6974 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6975 * ada-lang.c (ada_discrete_type_high_bound)
6976 (ada_discrete_type_low_bound): Fix function comment. Use
6977 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6978 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6979 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6980 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6981 Use TYPE_FIELD_ENUMVAL.
6982 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6983 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6984 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6985 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6986 TYPE_CODE_ENUM.
6987 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6988 * dwarf2read.c (process_enumeration_scope): Likewise.
6989 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6990 field.bitpos.
6991 (class StructMainTypePrettyPrinter): Support also
6992 FIELD_LOC_KIND_ENUMVAL.
6993 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6994 TYPE_CODE_ENUM.
6995 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6996 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6997 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6998 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6999 field enumval.
7000 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7001 accommodate enumval.
7002 (struct call_site): Adjust loc_kind to accommodate enumval.
7003 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7004 (TYPE_FIELD_ENUMVAL): New macros.
7005 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7006 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7007 TYPE_CODE_ENUM.
7008 * p-typeprint.c (pascal_type_print_base): Likewise.
7009 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7010 enumval.
7011 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7012 * python/py-type.c (convert_field): New variable addrstring. Use
7013 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7014 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7015 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7016 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7017 TYPE_CODE_ENUM.
7018 * valprint.c (generic_val_print): Likewise.
7019
7020 2012-04-17 Doug Evans <dje@google.com>
7021
7022 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7023
7024 * dwarf2read.c: Whitespace fixes.
7025 (lookup_signatured_type): Tweak comment.
7026 (get_die_type_at_offset): Fix comment.
7027
7028 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7029
7030 * xcoffread.c (xcoff_secnum_to_sections): New function.
7031 (secnum_to_section, secnum_to_bfd_section): Reimplement
7032 using xcoff_secnum_to_sections. Rename "secnum" parameter
7033 into "n_scnum".
7034 (RECORD_MINIMAL_SYMBOL): Delete.
7035 (record_minimal_symbol): New function.
7036 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7037 by call to record_minimal_symbol and set misc_func_recorded
7038 to 1. Set last_csect_sec to the XCOFF section index instead
7039 of GDB's section_offset index. Update calls to
7040 prim_record_minimal_symbol_and_info to pass the BFD section
7041 as well.
7042
7043 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7044
7045 * xcoffread.c (read_xcoff_symtab): Delete variables
7046 last_csect_val and last_csect_sec and associated code.
7047
7048 2012-04-17 Doug Evans <dje@google.com>
7049
7050 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7051 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7052 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7053 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7054
7055 * cleanups.h: New file.
7056 * cleanups.c: New file.
7057 * Makefile.in (SFILES): Add cleanups.c.
7058 (HFILES_NO_SRCDIR): Add cleanups.h.
7059 (COMMON_OBS): Add cleanups.o.
7060 * defs.h (struct cleanup): Moved to cleanups.h.
7061 (do_cleanups,do_final_cleanups): Ditto.
7062 (discard_cleanups,discard_final_cleanups): Ditto
7063 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7064 (save_cleanups,save_final_cleanups): Ditto.
7065 (restore_cleanups,restore_final_cleanups): Ditto.
7066 (null_cleanup): Ditto.
7067 (make_my_cleanup,make_my_cleanup2): Ditto.
7068 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7069 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7070 (do_cleanups,do_final_cleanups): Ditto.
7071 (discard_cleanups,discard_final_cleanups): Ditto
7072 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7073 (save_cleanups,save_final_cleanups): Ditto.
7074 (restore_cleanups,restore_final_cleanups): Ditto.
7075 (null_cleanup): Ditto.
7076 (make_my_cleanup,make_my_cleanup2): Ditto.
7077 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7078
7079 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7080 make_my_cleanup.
7081 (make_cleanup_dyn_string_delete): Ditto.
7082 (make_cleanup_ui_file_delete): Ditto.
7083 (make_cleanup_ui_out_redirect_pop): Ditto.
7084 (make_cleanup_free_section_addr_info): Ditto.
7085 (make_cleanup_restore_integer): Ditto.
7086 (make_cleanup_unpush_target): Ditto.
7087 (make_cleanup_value_free_to_mark): Ditto.
7088 (make_cleanup_value_free): Ditto.
7089 (make_cleanup_free_so): Ditto.
7090
7091 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7092
7093 New option "set debug auto-load".
7094 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7095 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7096 (auto_load_safe_path_vec_update)
7097 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7098 if DEBUG_AUTO_LOAD.
7099 (file_is_auto_load_safe): New parameters debug_fmt and ....
7100 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7101 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7102 caller by explanatory string.
7103 (_initialize_auto_load): Register "set debug auto-load".
7104 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7105 and ....
7106 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7107 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7108 by explanatory string.
7109 * main.c (captured_main): Likewise.
7110 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7111 (source_section_scripts): Likewise.
7112
7113 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7114
7115 New option "set auto-load safe-path".
7116 * NEWS: New commands "set auto-load safe-path"
7117 and "show auto-load safe-path".
7118 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7119 (auto_load_safe_path, auto_load_safe_path_vec)
7120 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7121 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7122 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7123 (source_gdb_script_for_objfile): New variable is_safe. Call
7124 file_is_auto_load_safe. Return if it is not.
7125 (struct loaded_script): New field loaded.
7126 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7127 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7128 output "Missing" to "No".
7129 (_initialize_auto_load): New variable cmd. Initialize
7130 auto_load_safe_path. Register "set auto-load safe-path",
7131 "show auto-load safe-path" and "add-auto-load-safe-path".
7132 * auto-load.h (maybe_add_script): Add parameter loaded.
7133 (file_is_auto_load_safe): New declaration.
7134 * config.in: Regenerate.
7135 * configure: Regenerate.
7136 * configure.ac: New parameters --with-auto-load-safe-path
7137 and --without-auto-load-safe-path.
7138 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7139 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7140 * main.c (captured_main): Check file_is_auto_load_safe for
7141 LOCAL_GDBINIT.
7142 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7143 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7144 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7145 not.
7146
7147 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7148
7149 auto-load: Implementation.
7150 * NEWS: New descriptions for "info auto-load",
7151 "info auto-load gdb-scripts", "info auto-load python-scripts",
7152 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7153 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7154 and "show auto-load-scripts". New description for "set auto-load",
7155 "show auto-load", "set auto-load gdb-scripts",
7156 "show auto-load gdb-scripts", "set auto-load python-scripts",
7157 "show auto-load python-scripts", "set auto-load local-gdbinit",
7158 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7159 "show auto-load libthread-db".
7160 * auto-load.c: Remove include python/python-internal.h. Add includes
7161 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7162 cli/cli-setshow.h.
7163 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7164 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7165 (gdbpy_global_auto_load): Rename to ...
7166 (global_auto_load): ... here.
7167 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7168 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7169 (script_language_gdb, source_gdb_script_for_objfile): New.
7170 (struct loaded_script): New field language.
7171 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7172 LANGUAGE.
7173 (maybe_add_script): Add parameter language. Drop redundant
7174 entry.full_path initialization. Initialize entry.language and
7175 (*slot)->language.
7176 (auto_load_objfile_script): Change parameter suffix to language.
7177 Remove the call of maybe_add_script.
7178 Call language->source_script_for_objfile.
7179 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7180 New.
7181 (collect_matching_scripts): Adjust it for
7182 struct collect_matching_scripts_data.
7183 (auto_load_info_scripts_pattern_nl): New variable.
7184 (info_auto_load_scripts): Rename to ...
7185 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7186 for struct collect_matching_scripts_data.
7187 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7188 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7189 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7190 (auto_load_info_cmdlist_get): New.
7191 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7192 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7193 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7194 "info auto-load local-gdbinit".
7195 * auto-load.h (struct script_language): New.
7196 (gdbpy_global_auto_load): Rename to ...
7197 (global_auto_load): ... here.
7198 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7199 (auto_load_local_gdbinit_loaded): New declarations.
7200 (maybe_add_script): New parameter language.
7201 (auto_load_objfile_script): Change parameter suffix to language.
7202 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7203 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7204 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7205 declarations.
7206 * linux-thread-db.c: Include auto-load.h and ctype.h.
7207 (auto_load_thread_db, show_auto_load_thread_db): New.
7208 (struct thread_db_info): New field filename.
7209 (delete_thread_db_info): Call xfree for FILENAME.
7210 (try_thread_db_load): Initialize FILENAME.
7211 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7212 if !AUTO_LOAD_THREAD_DB.
7213 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7214 (_initialize_thread_db): Install auto_load_thread_db
7215 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7216 as "info auto-load libthread-db".
7217 * main.c (captured_main): Rename gdbpy_global_auto_load to
7218 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7219 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7220 (print_gdb_help): Extend the help for 'local init file'.
7221 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7222 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7223 (auto_load_scripts): Rename to ...
7224 (auto_load_python_scripts): ... here, update the comment.
7225 (gdbpy_load_auto_script_for_objfile): New declaration.
7226 (show_auto_load_python_scripts, script_language_python)
7227 (gdbpy_load_auto_script_for_objfile): New.
7228 (source_section_scripts): Refactor the code.
7229 (load_auto_scripts_for_objfile): Rename to ...
7230 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7231 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7232 (info_auto_load_python_scripts): New.
7233 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7234 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7235 Register "set auto-load-scripts" as its deprecated alias. Register
7236 "info auto-load python-scripts". Register "info auto-load-scripts" as
7237 its deprecated alias.
7238 (load_auto_scripts_for_objfile): Rename to ...
7239 (gdbpy_load_auto_scripts_for_objfile): ... here.
7240 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7241 (gdbpy_load_auto_scripts_for_objfile): ... here.
7242
7243 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7244
7245 auto-load: Move files.
7246 * Makefile.in (SFILES): Add auto-load.c.
7247 (HFILES_NO_SRCDIR): Add auto-load.h.
7248 (COMMON_OBS): Add auto-load.o.
7249 (distclean): Change .gdbinit for gdb-gdb.gdb.
7250 * auto-load.c: New file, with parts from python/py-auto-load.c.
7251 * auto-load.h: New file, with parts from python/python.h.
7252 * configure: Regenerate.
7253 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7254 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7255 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7256 * main.c: Include auto-load.h.
7257 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7258 command.h, observer.h and progspace.h to auto-load.c. Add include
7259 auto-load.h.
7260 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7261 (struct loaded_script, auto_load_pspace_data)
7262 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7263 (hash_loaded_script_entry, eq_loaded_script_entry)
7264 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7265 (maybe_add_script): Move to auto-load.c.
7266 (source_section_scripts): Change maybe_add_script parameters passing,
7267 use script_not_found_warning_print.
7268 (clear_section_scripts, auto_load_objfile_script)
7269 (auto_load_new_objfile, loaded_script_ptr)
7270 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7271 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7272 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7273 auto_load_new_objfile and info_auto_load_scripts initizations to
7274 auto-load.c.
7275 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7276
7277 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7278
7279 Code cleanup.
7280 * charset.c (find_charset_names): Remove variables ix and elt.
7281 Use free_char_ptr_vec.
7282 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7283 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7284 debugdir_end. New variable debugdir_len.
7285 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7286 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7287 declarations.
7288 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7289 and elt. Use free_char_ptr_vec.
7290 * source.c (add_path): Remove variables argv, arg and argv_index.
7291 New variables dir_vec, back_to, ix and name.
7292 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7293 make_cleanup_freeargv. Remove variable separator. Simplify the code
7294 no longer expecting DIRNAME_SEPARATOR.
7295 (openp): Remove variable p, p1 and len. New variables dir_vec,
7296 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7297 no longer expecting DIRNAME_SEPARATOR.
7298 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7299 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7300 debugdir_end.
7301 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7302 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7303 (dirnames_to_char_ptr_vec): New functions.
7304
7305 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 Code cleanup.
7308 * source.c (add_path): Remove always true conditional 'p == 0' and
7309 unindent its code block.
7310
7311 2012-04-17 Pedro Alves <palves@redhat.com>
7312
7313 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7314 (FIELD_BITPOS_LVAL): ... this.
7315 (FIELD_BITPOS): New.
7316 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7317 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7318 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7319 SET_FIELD_BITPOS.
7320 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7321 SET_FIELD_BITPOS.
7322 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7323 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7324 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7325 SET_FIELD_BITPOS.
7326
7327 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7328
7329 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7330 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7331 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7332 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7333 * jv-lang.c (java_link_class_type): Likewise, once.
7334 * stabsread.c (read_enum_type): Likewise.
7335
7336 2012-04-16 Yao Qi <yao@codesourcery.com>
7337
7338 * common/agent.c (agent_run_command): Add one more parameter `len'.
7339 Update callers.
7340 * common/agent.h: Update declaration.
7341 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7342 Update.
7343 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7344
7345 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7346
7347 PR mi/13393
7348 * value.c (value_actual_type): New function.
7349 * value.h (value_actual_type): New declaration.
7350 * varobj.c (update_type_if_necessary): New function.
7351 (varobj_create): Call value_actual_type instead of
7352 value_type.
7353 (install_dynamic_child): distinct changed and type changed MI variable
7354 objects.
7355 (update_dynamic_varobj_children): Updated for install_dynamic_child
7356 change. All callers updated.
7357 (varobj_update): Support for MI variable object type change if
7358 the value changed and RTTI is used to determine the type.
7359 (create_child_with_value): Call value_actual_type instead of
7360 value_type.
7361 (adjust_value_for_child_access): Extended with a new parameter which
7362 specify whether the given value should be casted to enclosing type.
7363 All callers updated.
7364
7365 2012-04-14 Yao Qi <yao@codesourcery.com>
7366
7367 Import gnulib module inttypes from git
7368 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7369 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7370 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7371 gnulib/m4/inttypes-pri.m4
7372 * aclocal.m4, config.in, configure: Regenerated.
7373 * gnulib/Makefile.am: Update.
7374 * gnulib/Makefile.in: Update.
7375 * gnulib/m4/gnulib-cache.m4: Update.
7376 * gnulib/m4/gnulib-comp.m4: Update.
7377 * gnulib/inttypes.in.h: New.
7378 * gnulib/m4/inttypes-pri.m4: New.
7379 * gnulib/m4/inttypes.m4: New.
7380
7381 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7382
7383 * infrun.c (resume): Update PC address to the real PC after
7384 preparing to do displaced stepping.
7385
7386 2012-04-12 Doug Evans <dje@google.com>
7387
7388 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7389 All callers updated.
7390
7391 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7392
7393 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7394
7395 2012-04-12 Doug Evans <dje@google.com>
7396
7397 * dwarf2read.c (create_all_type_units): Renamed from
7398 create_debug_types_hash_table. All callers updated.
7399
7400 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7401 local type_sig to sig_type, type_offset to type_offset_in_tu.
7402 (hash_signatured_type): Renamed from hash_type_signature,
7403 all callers updated.
7404 (eq_signatured_type): Renamed from eq_type_signature,
7405 all callers updated.
7406 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7407 (process_enumeration_scope): Ditto.
7408 (lookup_signatured_type_at_offset): Ditto.
7409 (load_full_type_unit, read_signatured_type): Ditto.
7410
7411 2012-04-12 Yao Qi <yao@codesourcery.com>
7412
7413 * remote.c (async_remote_interrupt): Correct function name in
7414 debug message.
7415 (async_remote_interrupt_twice): Ditto.
7416
7417 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7418
7419 * source.c (find_and_open_source): Consistently pass resulting
7420 full path through xfullpath.
7421
7422 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7423
7424 Provide more specific displaced-stepping memory error message.
7425 * infrun.c (displaced_step_prepare): New variable status. Call
7426 target_read_memory instead of read_memory, provide more specific
7427 error message.
7428
7429 2012-04-11 Tristan Gingold <gingold@adacore.com>
7430
7431 PR gdb/13901
7432 * darwin-nat.c (darwin_execvp): Revert previous patch.
7433
7434 2012-04-11 Tristan Gingold <gingold@adacore.com>
7435
7436 PR gdb/13901
7437 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7438 in case of change.
7439
7440 2012-04-11 Tristan Gingold <gingold@adacore.com>
7441
7442 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7443 warning.
7444
7445 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7446
7447 New command 'explore' which helps explore values and types in
7448 scope.
7449 * NEWS: Add an entry about the new 'explore' command.
7450 * data-directory/Makefile.in: Add gdb/command/explore.py
7451 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7452 command using the GDB Python API.
7453
7454 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7455
7456 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7457 extension in jump target calculation.
7458
7459 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7460
7461 * mips-tdep.c (mips32_next_pc): Handle JALX.
7462
7463 2012-04-10 Yao Qi <yao@codesourcery.com>
7464
7465 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7466
7467 2012-04-10 Yao Qi <yao@codesourcery.com>
7468
7469 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7470 and gnulib/m4/gnulib-tool.m4.
7471
7472 2012-04-10 Doug Evans <dje@google.com>
7473
7474 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7475 (load_partial_dies): Clarify comment.
7476 (find_partial_die): Support rereading type units.
7477 Clarify CU handling, if we know offset is in CU, don't search for the
7478 containing CU. Add comment regarding memory waste.
7479
7480 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7481
7482 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7483 i386/x32-avx and i386/x32-avx-linux.
7484 (i386/x32-expedite): New.
7485 (i386/x32-linux-expedite): Likewise.
7486 (i386/x32-avx-expedite): Likewise.
7487 (i386/x32-avx-linux-expedite): Likewise.
7488 ($(outdir)/i386/x32.dat): Likewise.
7489 ($(outdir)/i386/x32-linux.dat): Likewise.
7490 ($(outdir)/i386/x32-avx.dat): Likewise.
7491 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7492
7493 * features/i386/x32-avx-linux.xml: New file.
7494 * features/i386/x32-avx.xml: Likewise.
7495 * features/i386/x32-core.xml: Likewise.
7496 * features/i386/x32-linux.xml: Likewise.
7497 * features/i386/x32.xml: Likewise.
7498
7499 * features/i386/x32-avx-linux.c: New. Generated.
7500 * features/i386/x32-avx.c: Likewise.
7501 * features/i386/x32-linux.c: Likewise.
7502 * features/i386/x32.c: Likewise.
7503 * regformats/i386/x32-avx-linux.dat: Likewise.
7504 * regformats/i386/x32-avx.dat: Likewise.
7505 * regformats/i386/x32-linux.dat: Likewise.
7506 * regformats/i386/x32.dat: Likewise.
7507
7508 2012-04-10 Tristan Gingold <gingold@adacore.com>
7509
7510 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7511 code to kill the inferior.
7512
7513 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7514
7515 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7516 defines.
7517 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7518 defines.
7519 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7520 (yyvsp): New defines.
7521 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7522 defines.
7523 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7524 defines.
7525 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7526 defines.
7527 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7528 defines.
7529 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7530 defines.
7531
7532 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7533
7534 * sparc64-tdep.c (sparc64_store_arguments)
7535 (sparc64_store_arguments): Fix coding style.
7536
7537 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7538
7539 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7540 complex floats, adjust some related comments and tighten a related
7541 assertion.
7542 (sparc64_extract_return_value): Handle complex floats.
7543
7544 2012-04-07 Doug Evans <dje@google.com>
7545
7546 * dwarf2read.c (load_partial_dies): Change condition to assert.
7547
7548 2012-04-06 Doug Evans <dje@google.com>
7549
7550 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7551 "mov %rsp,%rbp".
7552
7553 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7554
7555 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7556 fencepost error.
7557 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7558 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7559 architecture.
7560
7561 2012-04-05 Keith Seitz <keiths@redhat.com>
7562
7563 * linespec.c (decode_compound): Remove.
7564 (enum offset_relative_sign): New enum.
7565 (struct line_offset): New struct.
7566 (struct linespec): New struct.
7567 (struct linespec_state): Move file_symtabs,
7568 user_filename, and user_function into struct linespec.
7569 Make result an anonymous struct holding vectors of
7570 symbolp and minsym_and_objfile_d.
7571 Add language member.
7572 (enum ls_token_type): New enum.
7573 (linespec_keywords): New array.
7574 (struct ls_token): New struct.
7575 (struct ls_parser): New struct.
7576 (linespec_lexer_lex_number): New function.
7577 (linespec_lexer_lex_keyword): New function.
7578 (is_ada_operator): New function.
7579 (skip_quote_char): New function.
7580 (copy_token_string): New function.
7581 (is_closing_quote_enclosed): New function.
7582 (find_parameter_list_end): New function.
7583 (linespec_lexer_lex_string): New function.
7584 (linespec_lexer_lex_one): New function.
7585 (linespec_lexer_consume_token): New function.
7586 (linespec_lexer_peek_token): New function.
7587 (cplusplus_error): Remove unused function.
7588 (find_methods): Update comment.
7589 (find_toplevel_char): Return const.
7590 (is_objc_method_format): Remove unused function.
7591 (find_toplevel_string): New function.
7592 (is_linespec_boundary): Remove.
7593 (symbol_not_found_error): New function.
7594 (find_method_overload_end): Remove function.
7595 (unexpected_linespec_error): New function.
7596 (keep_name_info): Remove.
7597 (linespec_parse_line_offset): New function.
7598 (linespec_parse_basic): New function.
7599 (canonicalize_linespec): New function.
7600 (decode_line_internal): Remove.
7601 (create_sals_line_offset): New function adapted from
7602 decode_all_digits.
7603 (convert_linespec_to_sals): New function.
7604 (parse_linespec): New function.
7605 (linespec_parser_new): New function.
7606 (linespec_state_destructor): Change parameter type to
7607 struct linespec_state *.
7608 Add language parameter.
7609 Remove freeing of moved members.
7610 (linespec_parser_delete): New function.
7611 (decode_line_full): Use parse_linespec and linespec_parser_new.
7612 (decode_line_1): Likewise.
7613 (decode_indirect): Rename to ...
7614 (linespec_expression_to_pc): ... this and rewrite
7615 to simply find CORE_ADDR, storing this result for later
7616 conversion to SALs.
7617 (locate_first_half): Remove.
7618 (deocde_objc): Add parameter LS.
7619 Initialize new struct collect_info members.
7620 Handle minimal symbols, too.
7621 (decode_compound): Delete.
7622 (lookup_prefix_sym): Rewrite.
7623 (compare_msymbols): New function.
7624 (find_method): Rewrite.
7625 Do not call cplusplus_error.
7626 (symtabs_from_filename): Rewrite.
7627 (collect_function_symbols): Delete.
7628 (find_function_symbols): Rewrite without ARGPTR-style
7629 processing.
7630 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7631 (decode_dollar): Adapted and renamed to ...
7632 (linespec_parse_variable): ... this.
7633 (find_linespec_symbols): New function.
7634 (decode_label): Adapted and renamed to ...
7635 (find_label_symbols): ... this.
7636 (decode_digits_list_mode): Add and use LS argument.
7637 (decode_digits_ordinary): Likewise.
7638 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7639 If in list mode, allow any symbol class. Otherwise, only
7640 permit LOC_BLOCK symbols.
7641 (minsym_found): Update comments.
7642 (search_minsyms_for_name): Do not convert the matching symbol
7643 into a SAL. Simply push the symbol and objfile into the
7644 result vector.
7645 (decode_variable): Delete. Contents adapted into
7646 find_linespec_symbols.
7647
7648 * cp-support.c (SKIP_SPACE): Remove.
7649 (operator_tokens): Remove unused global.
7650 (cp_validate_operator): Remove.
7651 * cp-support.h (cp_validate_operator): Remove declaration.
7652
7653 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7654
7655 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7656 for TYPE_VPTR_FIELDNO.
7657 * valprint.c (valprint_check_validity): Make it global, move the
7658 function comment ...
7659 * value.h (valprint_check_validity): ... to this new declaration.
7660
7661 2012-04-02 Tristan Gingold <gingold@adacore.com>
7662
7663 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7664 the STATE32 api for i386 state.
7665 (i386_darwin_store_inferior_registers): Likewise.
7666
7667 2012-04-02 Tristan Gingold <gingold@adacore.com>
7668
7669 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7670 SS offset.
7671 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7672 format_string.
7673
7674 2012-04-02 Tristan Gingold <gingold@adacore.com>
7675
7676 PR gdb/13901
7677 * darwin-nat.c (darwin_execvp): Set binary preference.
7678
7679 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7680
7681 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7682
7683 2012-03-30 Tom Tromey <tromey@redhat.com>
7684
7685 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7686 of TRY_CATCH. Fix error handling.
7687 * python/py-value.c (convert_value_from_python): Move 'old'
7688 declaration to innermost scope.
7689
7690 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7691 Andrey Smirnov <andrew.smirnov@gmail.com>
7692
7693 -Wshadow warning fix.
7694 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7695 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7696 Adjust code accordingly.
7697
7698 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7699
7700 * ada-lang.c (symbol_completion_add): Rename parameter
7701 "encoded" into "encoded_p". Ajust code and documentation
7702 accordingly.
7703
7704 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7705 Andrey Smirnov <andrew.smirnov@gmail.com>
7706
7707 -Wshadow warning fix.
7708 * ada-lang.c (symbol_completion_add): Rename parameter
7709 "wild_match" into wild_match_p. Update code and documentation
7710 accordingly.
7711
7712 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7713
7714 * ada-lang.c (symbol_completion_match): Rename parameter
7715 "encoded" into "encoded_p". Ajust code and documentation
7716 accordingly.
7717
7718 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7719 Andrey Smirnov <andrew.smirnov@gmail.com>
7720
7721 -Wshadow warning fix.
7722 * ada-lang.c (symbol_completion_match): Rename parameter
7723 "wild_match" into "wild_match_p". Adjust code and function
7724 documentation accordingly.
7725
7726 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7727 Andrey Smirnov <andrew.smirnov@gmail.com>
7728
7729 -Wshadow warning fix.
7730 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7731 "symbol_info" into "info". Adjust code accordingly.
7732 (ada_lookup_symbol): Likewise.
7733
7734 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7735
7736 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7737 of this function's documentation.
7738
7739 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7740 Andrey Smirnov <andrew.smirnov@gmail.com>
7741
7742 -Wshadow warning fix.
7743 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7744 variable into "wild_match_p". Adjust code accordingly.
7745
7746 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7747 Andrey Smirnov <andrew.smirnov@gmail.com>
7748
7749 -Wshadow warning fix.
7750 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7751 parameter into "wild_match_p". Adjust code accordingly.
7752 Document this parameter in the function description.
7753
7754 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7755 Andrey Smirnov <andrew.smirnov@gmail.com>
7756
7757 -Wshadow warning fix.
7758 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7759 "wild_match" parameter to "wild_match_p" (-Wshadow).
7760
7761 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7762
7763 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7764 in function documentation.
7765
7766 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7767 Andrey Smirnov <andrew.smirnov@gmail.com>
7768
7769 -Wshadow warning fix.
7770 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7771 variable into wild_match_p. Adjust code accordingly.
7772
7773 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7774 Andrey Smirnov <andrew.smirnov@gmail.com>
7775
7776 * ada-valprint.c (ada_val_print_1): Move the code handling
7777 TYPE_CODE_ENUM inside its own lexical block. Declare
7778 variables len and val there, instead of in the function's
7779 top level block. Avoid declaring deref_val again in a way
7780 that shadows another variable of the same name declared
7781 in one of the up-level blocks. Just re-use the up-level
7782 variable instead.
7783
7784 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7785
7786 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7787 Replace block_found argument by symbol_info. Adjust
7788 implementation accordingly. Add function documentation.
7789 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7790 Fix documentation.
7791 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7792 * ada-exp.y (write_object_renaming): Adjust to new
7793 ada_lookup_encoded_symbol API.
7794
7795 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7796
7797 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7798 documentation.
7799
7800 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7801
7802 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7803 (v850_register_name): Add the mpu and fpu register names.
7804 (v850e_register_name): Add the mpu and fpu register names.
7805 (v850e2_register_name): New function.
7806 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7807 bfd_mach_v850e2v3.
7808
7809 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7810
7811 * NEWS: Add entry for Ada varobj support.
7812
7813 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7814
7815 * varobj.c (default_value_is_changeable_p): New function,
7816 extracted from varobj_value_is_changeable_p. Add declaration.
7817 (ada_value_is_changeable_p): New function, extracted from
7818 varobj_value_is_changeable_p. Add declaration.
7819 (struct language_specific): New field "value_is_changeable_p".
7820 (languages): Add entries for new field.
7821 (varobj_create): Set language before calling install_new_value.
7822 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7823 "value_is_changeable_p" language callback.
7824
7825 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7826
7827 * ada-varobj.h, ada-varobj.c: New files.
7828 * Makefile.in (SFILES): Add ada-varobj.c.
7829 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7830 (COMMON_OBS): Add ada-varobj.o.
7831
7832 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7833
7834 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7835 (struct language_specific): New field "value_has_mutated".
7836 (languages): Set field "value_has_mutated" in each entry of array.
7837 (varobj_value_has_mutated): New function.
7838 (varobj_udpdate): Add handling of type mutation.
7839 (value_of_root): Add handling of type mutation.
7840 (ada_value_has_mutated): New function.
7841
7842 2012-03-28 Pedro Alves <palves@redhat.com>
7843
7844 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7845 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7846
7847 2012-03-28 Tom Tromey <tromey@redhat.com>
7848
7849 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7850 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7851 before returning.
7852
7853 2012-03-28 Tom Tromey <tromey@redhat.com>
7854
7855 * .dir-locals.el: New file.
7856
7857 2012-03-28 Pedro Alves <palves@redhat.com>
7858
7859 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7860
7861 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7862
7863 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7864 handling for r0.
7865
7866 2012-03-27 Pedro Alves <palves@redhat.com>
7867
7868 Eliminate struct ui_stream.
7869
7870 * ui-out.h (struct ui_stream): Delete.
7871 (ui_out_field_stream): Adjust prototype.
7872 (ui_out_stream_new, ui_out_stream_delete)
7873 (make_cleanup_ui_out_stream_delete): Delete declarations.
7874 * ui-out.c (ui_out_field_stream): Change prototype to take a
7875 ui_file instead of a ui_stream. Adjust.
7876 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7877 (make_cleanup_ui_out_stream_delete): Delete.
7878 * breakpoint.c (print_breakpoint_location)
7879 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7880 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7881 * disasm.c (dump_insns): Ditto.
7882 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7883 prototype.
7884 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7885 ui_stream/ui_out_stream_new.
7886 * infcmd.c (print_return_value): Ditto.
7887 * osdata.c (info_osdata_command): Don't allocate a local
7888 ui_stream.
7889 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7890 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7891 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7892 allocate a local ui_stream.
7893 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7894 instead of ui_stream/ui_out_stream_new.
7895 (list_args_or_locals): Don't allocate a local ui_stream.
7896 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7897 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7898 ui_stream/ui_out_stream_new.
7899 * cli/cli-setshow.c (do_setshow_command): Ditto.
7900
7901 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7902
7903 * arm-linux-tdep.c (arm_linux_init_abi): Call
7904 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7905 * arm-tdep.c (arm_process_record): New function.
7906 (deallocate_reg_mem): New function.
7907 (decode_insn): New function.
7908 (thumb_record_branch): New function.
7909 (thumb_record_ldm_stm_swi(): New function.
7910 (thumb_record_misc): New function.
7911 (thumb_record_ld_st_stack): New function.
7912 (thumb_record_ld_st_imm_offset): New function.
7913 (thumb_record_ld_st_reg_offset(): New function.
7914 (thumb_record_add_sub_cmp_mov): New function.
7915 (thumb_record_shift_add_sub): New function.
7916 (arm_record_coproc_data_proc): New function.
7917 (arm_record_coproc): New function.
7918 (arm_record_b_bl): New function.
7919 (arm_record_ld_st_multiple): New function.
7920 (arm_record_ld_st_reg_offset): New function.
7921 (arm_record_ld_st_imm_offset): New function.
7922 (arm_record_data_proc_imm): New function.
7923 (arm_record_data_proc_misc_ld_str): New function.
7924 (arm_record_extension_space): New function.
7925 (arm_record_strx): New function.
7926 (sbo_sbz): New function.
7927 (struct insn_decode_record): New structure for arm insn record.
7928 (REG_ALLOC): New macro for reg allocations.
7929 (MEM_ALLOC): New macro for memory allocations.
7930 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7931
7932 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7933
7934 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7935 (store_register): Likewise.
7936
7937 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7938
7939 * MAINTAINERS (Write After Approval): Add myself to the list.
7940
7941 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7942
7943 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7944 Describe also the option "auto".
7945
7946 2012-03-22 Richard Henderson <rth@redhat.com>
7947
7948 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7949 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7950
7951 2012-03-22 Richard Henderson <rth@redhat.com>
7952
7953 * jit.c (jit_read_code_entry): Compute alignment and offset of
7954 int64_t member before computing entry_size.
7955
7956 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7957
7958 Python scripting: Add new method Value.referenced_value to
7959 gdb.Value which can dereference pointer as well as reference
7960 values.
7961 * NEWS: Add entry under 'Python scripting' about the new method
7962 Value.referenced_value on gdb.Value objects.
7963 * python/py-value.c (valpy_referenced_value): New function
7964 defining a new method on gdb.Value objects which can dereference
7965 pointer and reference values.
7966
7967 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7968
7969 * MAINTAINERS (Write After Approval): Add myself to the list.
7970
7971 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7972
7973 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7974 in addition to "main".
7975
7976 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7977
7978 * expression.h (op_name): Add declaration.
7979 * expprint.c (op_name): Remove declaration. Make non-static.
7980 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7981
7982 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7983
7984 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7985 of struct siginfo.
7986 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7987 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7988 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7989 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7990 (linux_nat_get_siginfo): Likewise.
7991 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7992 (linux_nat_get_siginfo): Likewise.
7993 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7994 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7995 * procfs.c (gdb_siginfo_t): Likewise.
7996
7997 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7998
7999 * .gitignore: Ignore more files.
8000
8001 2012-03-20 Pedro Alves <palves@redhat.com>
8002
8003 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8004 returns.
8005
8006 2012-03-20 Yao Qi <yao@codesourcery.com>
8007
8008 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8009 comment.
8010
8011 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8012
8013 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8014 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8015 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8016 sect_offset.
8017 * dwarf2expr.h (cu_offset, sect_offset): New types.
8018 (struct dwarf_expr_context_funcs) <dwarf_call>
8019 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8020 sect_offset.
8021 (struct dwarf_expr_context) <len>: Improve the comment.
8022 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8023 cu_offset and sect_offset.
8024 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8025 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8026 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8027 * dwarf2loc.h: Include dwarf2expr.h.
8028 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8029 and sect_offset.
8030 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8031 Improve the comment.
8032 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8033 (struct signatured_type, struct line_header, struct partial_die_info)
8034 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8035 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8036 (get_die_type_at_offset, create_cus_from_index)
8037 (create_signatured_type_table_from_index, dw2_get_file_names)
8038 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8039 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8040 (create_debug_types_hash_table, process_psymtab_comp_unit)
8041 (load_partial_comp_unit, create_all_comp_units)
8042 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8043 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8044 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8045 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8046 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8047 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8048 (find_partial_die, read_attribute_value, lookup_die_type)
8049 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8050 (is_ref_attr): New function comment.
8051 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8052 Use cu_offset and sect_offset.
8053 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8054 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8055 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8056 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8057 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8058 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8059 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8060 sect_offset.
8061
8062 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8063
8064 Code cleanup.
8065 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8066 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8067 with xfree.
8068 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8069
8070 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 * NEWS: Describe new options --init-command=FILE, -ix and
8073 --init-eval-command=COMMAND, -iex.
8074 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8075 CMDARG_INIT_COMMAND.
8076 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8077 "init-command", "init-eval-command", "ix" and "iex" to the variable
8078 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8079 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8080 (print_gdb_help): Describe --init-command=FILE, -ix and
8081 --init-eval-command=COMMAND, -iex.
8082
8083 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8084
8085 Code cleanup.
8086 * main.c (struct cmdarg): Move it here from main. Add more comments.
8087 (cmdarg_s, VEC (cmdarg_s)): New.
8088 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8089 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8090 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8091 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8092 of CMDARG.
8093
8094 2012-03-19 Tom Tromey <tromey@redhat.com>
8095
8096 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8097
8098 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8099
8100 PR symtab/13777
8101 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8102 GCC >=4.5.
8103
8104 2012-03-16 Chris January <chris.january@allinea.com>
8105
8106 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8107 of clear.
8108
8109 2012-03-16 Chris January <chris.january@allinea.com>
8110
8111 * source.c (add_path): Use memmove instead of strcpy because the
8112 strings overlap.
8113
8114 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8115
8116 * value.h (set_value_parent): Add declaration.
8117 * value.c (set_value_parent): New function.
8118 (value_address): If VALUE->PARENT is not NULL, then use it as
8119 the base address instead of VALUE->LOCATION.address.
8120 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8121 the same as OBJ's address. Adjust V's offset accordingly.
8122 Set V's parent.
8123
8124 2012-03-16 Gary Benson <gbenson@redhat.com>
8125
8126 PR breakpoints/10738
8127 * dwarf2read.c (use_deprecated_index_sections): New global.
8128 (struct partial_die_info): New member may_be_inlined.
8129 (read_partial_die): Set may_be_inlined where appropriate.
8130 (add_partial_subprogram): Add partial symbols for partial
8131 DIEs that may be inlined.
8132 (new_symbol_full): Add inlined subroutines to the current
8133 scope.
8134 (write_psymtabs_to_index): Bump version number.
8135 (dwarf2_read_index): Read only version 6 indices unless
8136 use_deprecated_index_sections is set.
8137 * linespec.c (symbol_and_data_callback): New structure.
8138 (iterate_inline_only): New function.
8139 (iterate_over_all_matching_symtabs): New argument
8140 "include_inline". If nonzero, also call the callback for
8141 symbols representing inlined subroutines.
8142 (lookup_prefix_sym): Pass extra argument to the above.
8143 (find_function_symbols): Likewise.
8144 (add_matching_symbols_to_info): Likewise.
8145 * NEWS: Mention that GDB can now set breakpoints on inlined
8146 functions.
8147
8148 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8149
8150 * p-typeprint.c (pascal_type_print_method_args):
8151 Fix display of parameter of methods.
8152
8153 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8154
8155 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8156 Add missing prototype.
8157
8158 2012-03-16 Yao Qi <yao@codesourcery.com>
8159 Jan Kratochvil <jan.kratochvil@redhat.com>
8160
8161 Fix false compilation warning.
8162 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8163
8164 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8165 Pedro Alves <pedro@codesourcery.com>
8166
8167 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8168 (arm_register_g_packet_guesses): New function.
8169 (arm_gdbarch_init): Don't force a target description with
8170 registers when the executable is detected as M-profile. Instead
8171 set gdbarch->tdep->is_m. Register `g' packet guesses.
8172 (_initialize_arm_tdep): Initialize the new target description.
8173 * features/arm-with-m-fpa-layout.xml: New description.
8174 * features/arm-with-m-fpa-layout.c: New, generated.
8175
8176 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8177
8178 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8179 Update function description.
8180 (insert_bp_location): Do not wipe bl->target_info out.
8181 * mem-break.c: #include "gdb_string.h".
8182 (default_memory_insert_breakpoint): Do not call target_read_memory
8183 with a pointer to the breakpoint's shadow_contents buffer. Use
8184 a local buffer instead.
8185 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8186
8187 2012-03-15 Tom Tromey <tromey@redhat.com>
8188
8189 * NEWS: Mention "info vtbl", not "info vtable".
8190 * cp-support.c (info_vtbl_command): Fix comment.
8191 (_initialize_cp_support): Fix text.
8192
8193 2012-03-15 Tom Tromey <tromey@redhat.com>
8194
8195 * cp-valprint.c (cp_print_value_fields): Use
8196 print_function_pointer_address for vtable slot.
8197
8198 2012-03-15 Tom Tromey <tromey@redhat.com>
8199
8200 * gnu-v3-abi.c (struct value_and_voffset): New.
8201 (hash_value_and_voffset, eq_value_and_voffset)
8202 (compare_value_and_voffset, compute_vtable_size)
8203 (print_one_vtable, gnuv3_print_vtable): New functions.
8204 (init_gnuv3_ops): Initialize 'print_vtable' field.
8205 * cp-support.c (info_vtbl_command): New function.
8206 (_initialize_cp_support): Add "info vtbl".
8207 * cp-abi.h (cplus_print_vtable): Declare.
8208 (struct cp_abi_ops) <print_vtable>: New field.
8209 * cp-abi.c (cplus_print_vtable): New function.
8210 * NEWS: Update.
8211
8212 2012-03-15 Tom Tromey <tromey@redhat.com>
8213
8214 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8215 iterate_over_symbols.
8216
8217 2012-03-14 Doug Evans <dje@google.com>
8218
8219 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8220 DW_OP_GNU_parameter_ref.
8221
8222 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8223
8224 Fix double prompt of 'interpreter-exec mi'.
8225 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8226 (mi_interpreter_resume): use it.
8227 (mi_execute_command_input_handler): New function.
8228 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8229 mi_execute_command_input_handler.
8230
8231 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8232
8233 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8234 prototype.
8235 (darwin_debug_port_info): Make static.
8236 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8237 * machoread.c (_initialize_machoread): Add prototype.
8238 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8239 (i386_darwin_set_control, i386_darwin_get_control)
8240 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8241 i386_darwin_get_status, i386_darwin_get_control):
8242 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8243
8244 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8245
8246 * ax-gdb.c (gen_usual_unary): Remove special handling of
8247 enum and bool types.
8248
8249 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8250
8251 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8252
8253 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8254
8255 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8256
8257 2012-03-13 Chris January <chris.january@allinea.com>
8258
8259 * aix-thread.c (fill_sprs): Store the floating point registers
8260 at the correct offsets into vals.
8261
8262 2012-03-13 Doug Evans <dje@google.com>
8263
8264 * NEWS: Mention symbol-reloading has been deleted.
8265 * symfile.c (symbol_reloading): Delete.
8266 (show_symbol_reloading): Delete.
8267 (_initialize_symfile): Delete set/show symbol-reloading.
8268
8269 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8270 read_in_chain until we have successfully read it in.
8271 (load_full_comp_unit): Ditto.
8272 (read_signatured_type): Add comment.
8273
8274 2012-03-13 Chris January <chris.january@allinea.com>
8275
8276 * stabsread.c (fix_common_block): Change type of valu argument
8277 to CORE_ADDR.
8278
8279 2012-03-13 Chris January <chris.january@allinea.com>
8280
8281 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8282 instruction.
8283
8284 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8285
8286 * common/linux-procfs.c (linux_proc_get_int): New, from
8287 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8288 field.
8289 (linux_proc_get_tgid): Only call linux_proc_get_int.
8290 (linux_proc_get_tracerpid): New.
8291 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8292 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8293 linux_proc_pid_has_state.
8294 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8295 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8296 (linux_ptrace_attach_warnings): New.
8297 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8298 New declaration.
8299 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8300 (linux_nat_attach): New variables ex, buffer, message and message_s.
8301 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8302
8303 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8304
8305 * Makefile.in (linux-ptrace.o): New.
8306 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8307 from linux-nat.c.
8308 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8309 * common/linux-ptrace.c: New file.
8310 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8311 * config/arm/linux.mh: Likewise.
8312 * config/i386/linux.mh: Likewise.
8313 * config/i386/linux64.mh: Likewise.
8314 * config/ia64/linux.mh: Likewise.
8315 * config/m32r/linux.mh: Likewise.
8316 * config/m68k/linux.mh: Likewise.
8317 * config/mips/linux.mh: Likewise.
8318 * config/pa/linux.mh: Likewise.
8319 * config/powerpc/linux.mh: Likewise.
8320 * config/powerpc/ppc64-linux.mh: Likewise.
8321 * config/powerpc/spu-linux.mh: Likewise.
8322 * config/s390/s390.mh: Likewise.
8323 * config/sparc/linux.mh: Likewise.
8324 * config/sparc/linux64.mh: Likewise.
8325 * config/xtensa/linux.mh: Likewise.
8326 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8327 common/linux-procfs.c.
8328 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8329
8330 2012-03-13 Hui Zhu <teawater@gmail.com>
8331 Pedro Alves <palves@redhat.com>
8332
8333 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8334 CREATE_BREAKPOINT_FLAGS_INSERTED.
8335 (create_breakpoint_sal, create_breakpoints_sal)
8336 (base_breakpoint_create_breakpoints_sal)
8337 (tracepoint_create_breakpoints_sal)
8338 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8339 down.
8340 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8341 (ftrace_command, strace_command): Adjust.
8342 (create_tracepoint_from_upload): Pass
8343 CREATE_BREAKPOINT_FLAGS_INSERTED.
8344 * breakpoint.h (enum breakpoint_create_flags): New.
8345 (create_breakpoint): New flags parameter.
8346 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8347 * python/py-breakpoint.c (bppy_init): Adjust.
8348 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8349 * spu-tdep.c (spu_catch_start): Adjust.
8350
8351 2012-03-13 Pedro Alves <palves@redhat.com>
8352 Hui Zhu <teawater@gmail.com>
8353 Yao Qi <yao@codesourcery.com>
8354
8355 * remote.c (struct remote_state): New field `starting_up'.
8356 (remote_start_remote): Set and clear it.
8357 (remote_can_download_tracepoint): If starting up, return false.
8358
8359 2012-03-13 Yao Qi <yao@codesourcery.com>
8360
8361 * inferior.h (struct inferior): Remove fields any_syscall_count,
8362 syscalls_counts and total_syscalls_count. Move them to new
8363 struct catch_syscall_inferior_data in breakpoint.c.
8364 * breakpoint.c: Call DEF_VEC_I(int).
8365 (struct catch_syscall_inferior_data): New.
8366 (get_catch_syscall_inferior_data): New.
8367 (catch_syscall_inferior_data_cleanup): New.
8368 (insert_catch_syscall): Update to access data in
8369 struct catch_syscall_inferior_data.
8370 (insert_catch_syscall): Likewise.
8371 (remove_catch_syscall): Likewise.
8372 (remove_catch_syscall): Likewise.
8373 (is_syscall_catchpoint_enabled): Likewise.
8374 (add_catch_command): Likewise.
8375 (_initialize_breakpoint): Register cleanup.
8376 * breakpoint.h: Removed DEF_VEC_I(int).
8377 * dwarf2loc.c: Call DEF_VEC_I(int).
8378 * mi/mi-main.c: Likewise.
8379
8380 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8381
8382 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8383
8384 2012-03-12 Chris January <chris.january@allinea.com>
8385
8386 * aix-thread.c (_initialize_aix_thread): Add prototype.
8387 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8388 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8389
8390 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8391
8392 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8393 include of "amd64-nat.h".
8394
8395 2012-03-12 Tom Tromey <tromey@redhat.com>
8396
8397 * buildsym.c (record_pending_block): Now static.
8398 * buildsym.h: (record_pending_block): Remove.
8399
8400 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8401
8402 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8403
8404 2012-03-09 Tom Tromey <tromey@redhat.com>
8405
8406 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8407 producer_is_gxx_lt_4_6>: New fields.
8408 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8409
8410 2012-03-09 Tom Tromey <tromey@redhat.com>
8411
8412 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8413
8414 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8415
8416 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8417 prototype.
8418
8419 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8420
8421 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8422
8423 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8424
8425 Fix -Wmissing-prototypes build.
8426 * arm-linux-nat.c (get_thread_id): Make it static.
8427 * xtensa-linux-nat.c (get_thread_id): Likewise.
8428
8429 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8430
8431 * server.c (process_point_options): If a conditional expression
8432 is found, only print a message if remote_debug is nonzero.
8433
8434 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8435
8436 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8437 of internal error for unknown/unsupported types.
8438
8439 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8440
8441 Fix CU relative vs. absolute DIE offsets.
8442 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8443 offset to offset_in_cu.
8444 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8445 TYPE_OFFSET.
8446 (dwarf2_fetch_die_location_block): Rename parameter offset to
8447 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8448
8449 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8450
8451 * libunwind-frame.c: Rename to ...
8452 * ia64-libunwind-tdep.c: ... here.
8453 * libunwind-frame.h: Rename to ...
8454 * ia64-libunwind-tdep.h: ... here.
8455 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8456 ia64-libunwind-tdep.h.
8457 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8458 * README (--with-libunwind): Rename to ...
8459 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8460 * config.in: Regenerate.
8461 * configure: Regenerate.
8462 * configure.ac: New option --with-libunwind-ia64, make the
8463 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8464 Remove AC_DEFINE for HAVE_LIBUNWIND.
8465 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8466 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8467 Rename libunwind-frame in the general comment.
8468 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8469 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8470 Move forward declarations inside #ifndef. Rename libunwind-frame in
8471 the general comment.
8472 * ia64-tdep.c: Rename libunwind-frame.h #include to
8473 ia64-libunwind-tdep.h.
8474 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8475 (ia64_libunwind_descr): Rename libunwind-frame to
8476 ia64-libunwind-tdep in these function comments.
8477 * ia64-tdep.h: Rename libunwind-frame.h #include to
8478 ia64-libunwind-tdep.h.
8479 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8480 ia64-libunwind-tdep in that data comment.
8481
8482 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8483
8484 * libunwind-frame.h (struct frame_unwind): New declaration.
8485
8486 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8487
8488 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8489 "set breakpoint condition-evaluation" command.
8490
8491 2012-03-08 Tristan Gingold <gingold@adacore.com>
8492
8493 * sparc-stub.c: Move to stubs/
8494 * sh-stub.c: Likewise.
8495 * m68k-stub.c: Likewise.
8496 * m32r-stub.c: Likewise.
8497 * i386-stub.c: Likewise.
8498
8499 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8500
8501 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8502 linux_get_siginfo_type.
8503
8504 * m68klinux-nat.c: Include "gdb_proc_service.h".
8505 (PTRACE_GET_THREAD_AREA): Define.
8506 (ps_get_thread_area): New function.
8507
8508 2012-03-08 Yao Qi <yao@codesourcery.com>
8509
8510 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8511 `xsnprintf'.
8512 (remote_query_attached): Likewise.
8513 (remote_static_tracepoint_marker_at): Likewise.
8514 (remote_set_permissions): Likewise.
8515 (remote_detach_1, extended_remote_attach_1): Likewise.
8516 (send_g_packet, remote_vkill): Likewise.
8517 (extended_remote_disable_randomization): Likewise.
8518 (remote_add_target_side_condition): Likewise.
8519 (remote_insert_breakpoint): Likewise.
8520 (remote_remove_breakpoint): Likewise.
8521 (remote_insert_watchpoint): Likewise.
8522 (remote_remove_watchpoint): Likewise.
8523 (remote_insert_hw_breakpoint): Likewise.
8524 (remote_insert_hw_breakpoint): Likewise.
8525 (remote_remove_hw_breakpoint): Likewise.
8526 (remote_download_command_source): Likewise.
8527 (remote_download_tracepoint): Likewise.
8528 (remote_download_trace_state_variable): Likewise.
8529 (remote_disable_tracepoint): Likewise.
8530 (remote_trace_set_readonly_regions): Likewise.
8531 (remote_get_tracepoint_status): Likewise.
8532 (remote_trace_find): Likewise.
8533 (remote_get_trace_state_variable_value): Likewise.
8534 (remote_set_disconnected_tracing): Likewise.
8535 (remote_set_circular_trace_buffer): Likewise.
8536 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8537 (remote_use_agent): Likewise.
8538 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8539 Update callers.
8540
8541 2012-03-07 Pedro Alves <palves@redhat.com>
8542
8543 * NEWS: Mention QProgramSignals.
8544 * inferior.h (update_signals_program_target): Declare.
8545 * infrun.c: (update_signals_program_target): New.
8546 (handle_command): Update the target of the new program signals
8547 array changes.
8548 * remote.c (PACKET_QProgramSignals): New enum.
8549 (last_program_signals_packet): New global.
8550 (remote_program_signals): New.
8551 (remote_start_remote): Update the target with the program signals
8552 list.
8553 (remote_protocol_features): Add entry for QPassSignals.
8554 (remote_open_1): Free anc clear last_program_signals_packet.
8555 (init_remote_ops): Install remote_program_signals.
8556 * target.c (update_current_target): Adjust.
8557 (target_program_signals): New.
8558 * target.h (struct target_ops) <to_program_signals>: New field.
8559 (target_program_signals): Declare.
8560
8561 2012-03-07 Pedro Alves <palves@redhat.com>
8562
8563 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8564 extensions.
8565
8566 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8567
8568 * m68klinux-nat.c (getregs_supplies): Make static.
8569 (getfpregs_supplies): Likewise.
8570 (have_ptrace_getregs): Likewise.
8571
8572 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8573
8574 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8575 in call to get_die_type_at_offset.
8576
8577 2012-03-06 Stan Shebs <stan@codesourcery.com>
8578
8579 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8580 * mi/mi-cmd-disas.c: Ditto.
8581 * mi/mi-cmd-env.c: Ditto.
8582 * mi/mi-cmd-file.c: Ditto.
8583 * mi/mi-cmd-stack.c: Ditto.
8584 * mi/mi-cmd-target.c: Ditto.
8585 * mi/mi-cmd-var.c: Ditto.
8586 * mi/mi-cmds.c: Ditto.
8587 * mi/mi-cmds.h: Ditto.
8588 * mi/mi-console.c: Ditto.
8589 * mi/mi-getopt.c: Ditto.
8590 * mi/mi-getopt.h: Ditto.
8591 * mi/mi-interp.c: Ditto.
8592 * mi/mi-main.c: Ditto.
8593 * mi/mi-out.c: Ditto.
8594 * mi/mi-parse.c: Ditto.
8595 * mi/mi-parse.h: Ditto.
8596 * mi/mi-symbol-cmds.c: Ditto.
8597
8598 * mi/mi-getopt.h: Move mi_opt struct up.
8599 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8600 return.
8601 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8602
8603 2012-03-06 Tom Tromey <tromey@redhat.com>
8604
8605 * proc-service.c (ps_pglobal_lookup): Set the current program
8606 space.
8607
8608 2012-03-06 Pedro Alves <palves@redhat.com>
8609
8610 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8611
8612 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8613
8614 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8615
8616 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8617
8618 Code cleanup.
8619 * common/linux-osdata.c (linux_common_core_of_thread): New function
8620 comment.
8621 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8622 call by linux_common_core_of_thread.
8623 (linux_nat_core_of_thread_1): Remove.
8624 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8625 * linux-thread-db.c: Include linux-osdata.h.
8626 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8627 linux_common_core_of_thread.
8628
8629 2012-03-05 Tom Tromey <tromey@redhat.com>
8630
8631 * value.c (value_primitive_field): Don't fetch contents for
8632 non-virtual bases.
8633
8634 2012-03-05 Tom Tromey <tromey@redhat.com>
8635
8636 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8637
8638 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8639
8640 * s390-nat.c: Include "gregset.h".
8641
8642 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8643
8644 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8645 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8646 (libunwind_load): New variable so_error, use it for dlerror. Try to
8647 load also LIBUNWIND_SO_7.
8648
8649 2012-03-05 Pedro Alves <palves@redhat.com>
8650
8651 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8652 is not NULL, and remove resulting dead code.
8653
8654 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8655
8656 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8657 prologue to sh_analyze_prologue.
8658 (sh_analyze_prologue): Make better use of such an upper limit, and
8659 generally be more cautious about accessing memory.
8660
8661 2012-03-05 Tom Tromey <tromey@redhat.com>
8662
8663 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8664 _initialize_ia64_hpux_tdep.
8665
8666 2012-03-05 Pedro Alves <palves@redhat.com>
8667
8668 PR gdb/13766
8669
8670 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8671 the register state is clear, supply explicit zero, instead of
8672 marking the register unavailable.
8673
8674 2012-03-05 Tristan Gingold <gingold@adacore.com>
8675
8676 * NEWS: Mention OpenVMS ia64 new target.
8677
8678 2012-03-05 Tristan Gingold <gingold@adacore.com>
8679
8680 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8681 (ia64_unw_accessors, ia64_unw_rse_accessors)
8682 (ia64_libunwind_descr): Declare.
8683 * ia64-vms-tdep.c: New file.
8684 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8685 (ia64_libunwind_descr): Make them public.
8686 * configure.tgt: Add ia64-*-*vms*.
8687 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8688 (ALLDEPFILES): Add ia64-vms-tdep.c
8689
8690 2012-03-05 Tristan Gingold <gingold@adacore.com>
8691
8692 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8693 * remote.c (PACKET_qXfer_uib): New enum value.
8694 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8695 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8696 (_initialize_remote): Call add_packet_config_cmd for
8697 xfer:uib packet.
8698
8699 2012-03-05 Tristan Gingold <gingold@adacore.com>
8700
8701 * osabi.c (gdb_osabi_names): Add OpenVMS.
8702 (generic_elf_osabi_sniffer): Likewise.
8703 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8704
8705 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8706
8707 Removed unused code.
8708 * libunwind-frame.c (libunwind_frame_unwind)
8709 (libunwind_frame_base_address): Remove.
8710 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8711
8712 2012-03-04 Yao Qi <yao@codesourcery.com>
8713
8714 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8715 remove trailing new line.
8716 (agent_run_command, agent_run_command): Add _ markup.
8717 (agent_capability_check): Likewise.
8718
8719 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8720
8721 * breakpoint.c (set_condition_evaluation_mode): Set
8722 CONDITION_EVALUATION_MODE unconditionally.
8723
8724 2012-03-03 Yao Qi <yao@codesourcery.com>
8725
8726 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8727 * common/agent.h: Update declaration.
8728 * inf-child.c (inf_child_use_agent): New.
8729 (inf_child_can_use_agent): New.
8730 (inf_child_target): Initialize fields `to_use_agent'
8731 and `to_can_use_agent'.
8732 * agent.c (agent_new_objfile): New.
8733 (_initialize_agent): Add agent_new_objfile to new_objfile
8734 observer.
8735
8736 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8737 New.
8738 (linux_target_install_ops): Initialize field
8739 `to_static_tracepoint_markers_by_strid'.
8740 * remote.c (free_current_marker): Move it to ...
8741 * tracepoint.c (free_current_marker): ... here. New.
8742 (cleanup_target_stop): New.
8743 * tracepoint.h: Declare free_current_marker.
8744 * NEWS: Add one entry about `info static-tracepoint-marker'.
8745
8746 2012-03-03 Yao Qi <yao@codesourcery.com>
8747
8748 * common/agent.c (agent_loaded_p): New.
8749 (agent_look_up_symbols): New global.
8750 * common/agent.h: Declare agent_loaded_p.
8751
8752 2012-03-03 Yao Qi <yao@codesourcery.com>
8753
8754 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8755 (agent_capability_check, agent_capability_invalidate): New.
8756 (symbol_list): New array element.
8757 * common/agent.h (enum agent_capa): New.
8758 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8759
8760 2012-03-03 Yao Qi <yao@codesourcery.com>
8761
8762 * target.h (struct target_ops) <to_use_agent>: New field.
8763 (struct target_ops) <to_can_use_agent>: New field.
8764 (target_use_agent, target_can_use_agent): New macro.
8765 * target.c (update_current_target): Update.
8766 * remote.c: New enum `PACKET_QAgent'.
8767 (remote_protocol_features): Add a new element.
8768 (remote_use_agent, remote_can_use_agent): New.
8769 (init_remote_ops): Initialize field `can_use_agent' with
8770 remote_can_use_agent. Intiailize field `use_agent' with
8771 remote_use_agent.
8772 * common/agent.c (use_agent): New global.
8773 * common/agent.h: Declare it.
8774 * tracepoint.c (info_static_tracepoint_markers_command): Add
8775 comment.
8776 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8777 (COMMON_OBS): Add common/agent.o and agent.o
8778 (common-agent.o): New rule.
8779 * agent.c: New.
8780
8781 2012-03-03 Yao Qi <yao@codesourcery.com>
8782
8783 * common/agent.c: New.
8784 * common/agent.h: New.
8785 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8786 AC_CHECK_HEADERS.
8787 * configure, configh.in: Regenerated.
8788
8789 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8790
8791 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8792 unless it exists for this architecture.
8793
8794 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8795
8796 * language.h (struct language_defn): New "method" la_read_var_value.
8797 * findvar.c: #include "language.h".
8798 (default_read_var_value): Renames read_var_value. Rewrite
8799 function description.
8800 (read_var_value): New function.
8801 * value.h (default_read_var_value): Add prototype.
8802 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8803 New functions.
8804 (ada_language_defn): Add entry for la_read_var_value.
8805 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8806 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8807 language_defn structures to add entry for new la_read_var_value
8808 field.
8809
8810 2012-03-02 Tom Tromey <tromey@redhat.com>
8811 Pedro Alves <palves@redhat.com>
8812
8813 PR breakpoints/13776:
8814 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8815 breakpoints.
8816 (delete_longjmp_breakpoint_at_next_stop): New.
8817 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8818 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8819 before deleting the inferior. Add comments.
8820 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8821 breakpoints immediately, but only on next stop. Move that code
8822 next to where we mark other breakpoints for deletion.
8823
8824 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8825
8826 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8827 marker.
8828 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8829 violation.
8830
8831 2012-03-02 Pedro Alves <palves@redhat.com>
8832
8833 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8834
8835 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8836
8837 Fix -Wmissing-prototypes build.
8838 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8839 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8840 (gdbsim_has_memory): Likewise.
8841
8842 2012-03-02 Yao Qi <yao@codesourcery.com>
8843
8844 Fix -Wmissing-prototypes build.
8845 * charset.c (phony_iconv_open): Make static.
8846 (phony_iconv_close, phony_iconv): Likewise.
8847 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8848 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8849 prototype.
8850 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8851 * ser-mingw.c (create_select_thread): Make static.
8852 * windows-termcap.c (tgetent): New prototype.
8853 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8854
8855 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8856
8857 Fix -Wmissing-prototypes build.
8858 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8859 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8860 (_initialize_loadable): New prototypes.
8861
8862 2012-03-02 Doug Evans <dje@google.com>
8863
8864 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8865 abbrev table, read_comp_unit will do it.
8866
8867 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8868
8869 Fix -Wmissing-prototypes build.
8870 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8871 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8872 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8873 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8874 (_initialize_arm_symbian_tdep): New prototype.
8875 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8876 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8877 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8878 static.
8879 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8880 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8881 prototype.
8882 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8883 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8884 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8885 static.
8886 * moxie-tdep.c (moxie_process_record): Likewise.
8887 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8888 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8889 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8890 (_initialize_rl78_tdep): New prototype.
8891 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8892 (_initialize_rx_tdep): New prototype.
8893 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8894 (_initialize_darwin_solib): New prototype.
8895 * solib-spu.c: Include solib-spu.h.
8896 (_initialize_spu_solib): New prototype.
8897 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8898 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8899 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8900 (tic6x_software_single_step): Make it static.
8901 (_initialize_tic6x_tdep): New prototype.
8902
8903 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8904
8905 Fix -Wmissing-prototypes build.
8906 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8907 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8908
8909 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8910
8911 Fix -Wmissing-prototypes build.
8912 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8913 (frv_have_stopped_data_address): Remove.
8914
8915 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8916
8917 Fix -Wmissing-prototypes build.
8918 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8919 * sh-tdep.c: Include sh64-tdep.h.
8920 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8921 * sh64-tdep.c: Include sh64-tdep.h.
8922 * sh64-tdep.h: New file.
8923
8924 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8925
8926 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8927
8928 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8929
8930 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8931 sp_regnum once the gdbarch_init_osabi hook has been called.
8932
8933 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8934
8935 * mips-tdep.c (mips32_bc1_pc): New function.
8936 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8937 BPOSGE32 and BPOSGE64 instructions.
8938 (deal_with_atomic_sequence): Likewise.
8939 (mips32_instruction_has_delay_slot): Likewise.
8940
8941 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8942 Chris Dearman <chris@mips.com>
8943 Maciej W. Rozycki <macro@codesourcery.com>
8944 Joseph Myers <joseph@codesourcery.com>
8945
8946 * features/mips-dsp.xml: New file.
8947 * features/mips64-dsp.xml: New file.
8948 * features/mips-dsp-linux.xml: New file.
8949 * features/mips64-dsp-linux.xml: New file.
8950 * features/Makefile (WHICH): Add mips-dsp-linux and
8951 mips64-dsp-linux.
8952 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8953 * features/mips-dsp-linux.c: New file.
8954 * features/mips64-dsp-linux.c: New file.
8955 * regformats/mips-dsp-linux.dat: New file.
8956 * regformats/mips64-dsp-linux.dat: New file.
8957 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8958 registers.
8959 (mips64_linux_register_addr): Likewise.
8960 (mips64_linux_regsets_fetch_registers): Likewise.
8961 (mips64_linux_regsets_store_registers): Likewise.
8962 (mips64_linux_fetch_registers): Update call to
8963 mips64_linux_regsets_fetch_registers.
8964 (mips64_linux_store_registers): Update call to
8965 mips64_linux_regsets_store_registers.
8966 (mips_linux_read_description): Probe for DSP registers.
8967 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8968 and initialize_tdesc_mips64_dsp_linux.
8969 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8970 Remove padding of no longer used embedded register slots.
8971 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8972 (MIPS_RESTART_REGNUM): Redefine enum value.
8973 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8974 strings.
8975 (mips_tx39_reg_names): Likewise.
8976 (mips_linux_reg_names): New array of register names for Linux
8977 targets.
8978 (mips_register_name): Check for a null pointer in
8979 mips_processor_reg_names and return an empty string.
8980 (mips_register_type): Exclude embedded registers for the IRIX
8981 and Linux ABIs.
8982 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8983 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8984 DSP registers.
8985 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8986 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8987 (mips_gdbarch_init): Likewise. Initialize internal register
8988 indices for the Linux ABI. Use dynamic numbers to refer to
8989 registers, as applicable, while parsing the target description.
8990 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8991
8992 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8993
8994 * frame.h (read_frame_register_unsigned): Fix typo in function
8995 description.
8996
8997 2012-03-01 Pedro Alves <palves@redhat.com>
8998
8999 * jit-reader.in [!__cplusplus]
9000 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9001
9002 2012-03-01 Pedro Alves <palves@redhat.com>
9003
9004 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9005 * configure: Regenerate.
9006
9007 2012-03-01 Pedro Alves <palves@redhat.com>
9008
9009 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9010 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9011 (ftrace_command, strace_command): Make static.
9012 * d-lang.c (_initialize_d_language): Declare.
9013 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9014 * dwarf2loc.c (_initialize_dwarf2loc):
9015 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9016 * exec.c (exec_get_section_table): Make static.
9017 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9018 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9019 * inferior.c (remove_inferior_command, add_inferior_command)
9020 (clone_inferior_command): Make static.
9021 * linux-nat.c (linux_nat_thread_address_space)
9022 (linux_nat_core_of_thread): Make static.
9023 * linux-tdep.c (_initialize_linux_tdep): Declare.
9024 * objc-lang.c (_initialize_objc_lang): Declare.
9025 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9026 Make static.
9027 (_initialize_opencl_language): Declare.
9028 * record.c (_initialize_record): Declare.
9029 * remote.c (demand_private_info, remote_get_tib_address)
9030 (remote_supports_cond_tracepoints)
9031 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9032 Make static.
9033 * skip.c (_initialize_step_skip): Declare.
9034 * symtab.c (skip_prologue_using_lineinfo): Make static.
9035 * tracepoint.c (delete_trace_state_variable)
9036 (trace_variable_command, delete_trace_variable_command)
9037 (get_uploaded_tsv, find_matching_tracepoint_location)
9038 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9039 Make static.
9040 * value.c (pack_unsigned_long): Make static.
9041 * varobj.c (varobj_ensure_python_env): Make static.
9042 * windows-tdep.c (_initialize_windows_tdep): Declare.
9043 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9044
9045 2012-03-01 Pedro Alves <palves@redhat.com>
9046
9047 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9048 gdbarch parameter.
9049 (linux_init_abi): Install it as has_shared_address_space gdbarch
9050 callback.
9051
9052 2012-03-01 Pedro Alves <palves@redhat.com>
9053
9054 * observer.c (observer_test_first_notification_function)
9055 (observer_test_second_notification_function)
9056 (observer_test_third_notification_function): Add declarations.
9057
9058 2012-03-01 Pedro Alves <palves@redhat.com>
9059
9060 * common/signals.c (default_target_signal_to_host)
9061 (default_target_signal_from_host): Move ...
9062 * arch-utils.c: ... here.
9063 * arch-utils.h (default_target_signal_to_host)
9064 (default_target_signal_from_host): Declare.
9065
9066 * common/signals.c (target_signal_from_command): Move ...
9067 * infrun.c: ... here.
9068 * inferior.h (target_signal_from_command): Declare.
9069 * target.h (target_signal_from_command)
9070 (default_target_signal_from_host, default_target_signal_to_host):
9071 Delete declarations.
9072
9073 * common/signals.c (_initialize_signals): Delete.
9074
9075 2012-03-01 Pedro Alves <palves@redhat.com>
9076
9077 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9078 both __cplusplus and !__cplusplus.
9079
9080 2012-03-01 Pedro Alves <palves@redhat.com>
9081
9082 * psymtab.c (find_and_open_source): Delete declaration.
9083 * source.c (find_and_open_source): Move comment ...
9084 * source.h (find_and_open_source): ... to this new declaration.
9085
9086 2012-03-01 Pedro Alves <palves@redhat.com>
9087
9088 * inline-frame.c: Include inline-frame.h.
9089
9090 2012-03-01 Pedro Alves <palves@redhat.com>
9091
9092 * tui/tui-data.c (set_gen_win_origin): Delete.
9093 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9094 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9095
9096 2012-03-01 Pedro Alves <palves@redhat.com>
9097
9098 * remote.c (encode_actions): Delete declaration.
9099 * tracepoint.c (encode_actions): Make extern.
9100 * tracepoint.h (encode_actions): Declare.
9101
9102 2012-03-01 Pedro Alves <palves@redhat.com>
9103
9104 * python/py-breakpoint.c: Include python.h.
9105 * python/py-continueevent.c (create_continue_event_object): Make
9106 static.
9107 * python/py-lazy-string.c (stpy_get_type): Make static.
9108 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9109 Make static.
9110 * python/py-utils.c (unicode_to_target_python_string): Make
9111 static.
9112 * python/py-value.c: Include python.h.
9113
9114 2012-03-01 Pedro Alves <palves@redhat.com>
9115
9116 * inferior.c (delete_threads_of_inferior): Delete.
9117
9118 2012-03-01 Pedro Alves <palves@redhat.com>
9119
9120 Import fallback definitions from glibc.
9121
9122 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9123 ps_prochandle): Forward declare.
9124 (ps_err_e): Use glibc's comments.
9125 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9126 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9127 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9128 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9129 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9130 (struct ps_prochandle): Adjust comment.
9131
9132 2012-03-01 Pedro Alves <palves@redhat.com>
9133
9134 * ada-lang.c (ada_modulus_from_name): Delete.
9135 * ada-lex.l (lexer_init): Make static.
9136
9137 2012-03-01 Pedro Alves <palves@redhat.com>
9138
9139 PR gdb/13767
9140
9141 * frame.c (read_frame_register_unsigned): New.
9142 * frame.h (read_frame_register_unsigned): Declare.
9143 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9144 Handle it.
9145 (print_i387_control_word): New parameter `control_p'. Handle it.
9146 (i387_print_float_info): Handle unavailable float registers.
9147
9148 2012-03-01 Keith Seitz <keiths@redhat.com>
9149
9150 * linespec.c (decode_line_2): Sort the list of methods
9151 alphabetically before presenting the user with a selection
9152 menu.
9153
9154 2012-03-01 Doug Evans <dje@google.com>
9155
9156 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9157 has_namespace_info.
9158 (dwarf2_read_abbrevs): Remove corresponding initialization.
9159
9160 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9161
9162 * NEWS: Mention new python command class gdb.COMMAND_USER.
9163 * cli/cli-cmds.c (show_user): Print error when used on a python
9164 command.
9165 (init_cli_cmds): Update documentation strings for "show user" and
9166 "set/show max-user-call-depth" to clarify that it does not apply to
9167 python commands.
9168 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9169 error check.
9170 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9171 gdb python api.
9172 * top.c (execute_command): Only execute a user-defined command as a
9173 legacy macro if c->user_commands is set.
9174
9175 2012-03-01 Tom Tromey <tromey@redhat.com>
9176
9177 * valprint.h (struct generic_val_print_decorations): New.
9178 (generic_val_print): Declare.
9179 * valprint.c (generic_val_print): New function.
9180 * p-valprint.c (p_decorations): New global.
9181 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9182 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9183 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9184 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9185 * m2-valprint.c (m2_decorations): New global.
9186 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9187 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9188 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9189 TYPE_CODE_ERROR>: Call generic_val_print.
9190 * f-valprint.c (f_decorations): New global.
9191 (f_val_print): Use print_function_pointer_address.
9192 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9193 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9194 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9195 generic_val_print.
9196 * c-valprint.c (c_decorations): New global.
9197 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9198 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9199 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9200 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9201 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9202 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9203 case.
9204
9205 2012-03-01 Tom Tromey <tromey@redhat.com>
9206
9207 * valprint.c (val_print): Update.
9208 * p-valprint (pascal_val_print): Return void.
9209 * p-lang.h (pascal_val_print): Return void.
9210 * m2-valprint.c (m2_val_print): Return void.
9211 * m2-lang.h (m2_val_print): Return void.
9212 * language.h (struct language_defn) <la_val_print>: Return void.
9213 * language.c (unk_lang_val_print): Return void.
9214 * jv-valprint.c (java_val_print): Return void.
9215 * jv-lang.h (java_val_print): Return void.
9216 * f-valprint.c (f_val_print): Return void.
9217 * f-lang.h (f_val_print): Return void.
9218 * d-valprint.c (d_val_print): Return void.
9219 (dynamic_array_type): Update.
9220 * d-lang.h (d_val_print): Return void.
9221 * c-valprint.c (c_val_print): Return void.
9222 * c-lang.h (c_val_print): Return void.
9223 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9224 void.
9225 * ada-lang.h (ada_val_print): Return void.
9226
9227 2012-03-01 Tom Tromey <tromey@redhat.com>
9228
9229 * value.h (val_print): Return void.
9230 * valprint.c (val_print): Return void.
9231
9232 2012-03-01 Tom Tromey <tromey@redhat.com>
9233
9234 * value.h (common_val_print): Return void.
9235 * valprint.c (common_val_print): Return void.
9236
9237 2012-03-01 Tom Tromey <tromey@redhat.com>
9238
9239 * value.h (value_print): Return void.
9240 * valprint.c (value_print): Return void.
9241 * p-valprint.c (pascal_value_print): Return void.
9242 * p-lang.h (pascal_value_print): Return void.
9243 * language.h (struct language_defn) <la_value_print>: Return
9244 void.
9245 * language.c (unk_lang_value_print): Return void.
9246 * jv-valprint.c (java_value_print): Return void.
9247 * jv-lang.h (java_value_print): Return void.
9248 * f-valprint.c (c_value_print): Don't declare.
9249 Include c-lang.h.
9250 * c-valprint.c (c_value_print): Return void.
9251 * c-lang.h (c_value_print): Return void.
9252 * ada-valprint.c (ada_value_print): Return void.
9253 * ada-lang.h (ada_value_print): Return void.
9254
9255 2012-03-01 Tom Tromey <tromey@redhat.com>
9256
9257 * value.c (value_primitive_field): Handle virtual base classes.
9258
9259 2012-03-01 Tom Tromey <tromey@redhat.com>
9260
9261 * gdbtypes.h (struct vbase): Remove.
9262
9263 2012-03-01 Tom Tromey <tromey@redhat.com>
9264
9265 * c-valprint.c (print_function_pointer_address): Move...
9266 * valprint.c: ... here. Make non-static.
9267 * m2-valprint.c (print_function_pointer_address): Remove.
9268 * valprint.h (print_function_pointer_address): Declare.
9269
9270 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9271
9272 * NEWS: Document the fact that one can provide a condition when
9273 creating an Ada exception catchpoint.
9274
9275 2012-03-01 Tom Tromey <tromey@redhat.com>
9276
9277 * valprint.c (val_print_type_code_flags): Fix placement of
9278 trailing brace.
9279
9280 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9281
9282 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9283 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9284 environment variable before calling update-copyright.
9285
9286 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9287
9288 * gnulib/extra/update-copyright: Update to the latest from
9289 gnulib's git repository.
9290 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9291 variable to 2 instead of 1.
9292
9293 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9294
9295 * varobj.c (c_value_of_variable): Remove dead code.
9296
9297 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9298
9299 * ada-lex.p (processId): Do not modify already encoded IDs.
9300 Update function documentation.
9301
9302 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9303
9304 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9305 "name" with "struct symbol *name_sym".
9306 * ada-exp.y (write_var_or_type): Update call to
9307 ada_find_renaming_symbol.
9308 "name" with "struct symbol *name_sym". Adjust Implementation
9309 accordingly. Adjust the function documentation.
9310
9311 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9312
9313 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9314 * ada-lang.c (ada_find_any_type): Add advance declaration.
9315 Make static. Replace ada_find_any_symbol by
9316 ada_find_any_type_symbol.
9317 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9318 Improve function description. Make static.
9319 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9320 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9321
9322 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9323
9324 * ada-lang.c (struct tag_args): Delete.
9325 (ada_get_tsd_type): Function body moved up in source file.
9326 (ada_tag_name_1, ada_tag_name_2): Delete.
9327 (ada_get_tsd_from_tag): New function.
9328 (ada_tag_name_from_tsd): New function.
9329 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9330 to determine the tag name.
9331
9332 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9333
9334 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9335 declaration.
9336 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9337 function.
9338
9339 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9340
9341 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9342
9343 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9344
9345 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9346 full searches.
9347
9348 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9349
9350 * ada-lang.c (constrained_packed_array_type): If there is a
9351 parallel XA type, use it to determine the array index type.
9352
9353 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9354
9355 * ada-valprint.c (ada_val_print_1): If our value is a reference
9356 to an array descriptor, dereference it before converting it
9357 to a simple array.
9358
9359 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9360
9361 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9362 creating fixed value.
9363 (ada_value_ind, ada_coerce_ref, assign_component)
9364 (ada_evaluate_subexp): Remove call to unwrap_value before
9365 call to ada_to_fixed_value.
9366
9367 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9368
9369 * ada-lang.c (to_fixed_array_type): Set result's type name.
9370
9371 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9372
9373 * ada-lang.c (catch_ada_exception_command_split): Add new
9374 argument cond_string. Add support for condition at end of
9375 "catch exception" commands.
9376 (ada_decode_exception_location): Add new argument cond_string.
9377 Update call to catch_ada_exception_command_split.
9378 (create_ada_exception_catchpoint): Add new argument cond_string.
9379 Set the breakpoint condition if needed.
9380 (catch_ada_exception_command): Update call to
9381 ada_decode_exception_location.
9382 (ada_decode_assert_location): Add function documentation.
9383 Add support for condition at end of "catch assert" command.
9384 (catch_assert_command): Update calls to ada_decode_assert_location
9385 and create_ada_exception_catchpoint.
9386
9387 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9388
9389 Fix disp-step-syscall.exp: fork: single step over fork.
9390 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9391 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9392 comment, change parameters gdbarch and ptid to regcache. Remove
9393 parameter regcache, initialize gdbarch from regcache here.
9394 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9395 New functions.
9396 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9397 instead.
9398 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9399 'syscall'. Make the 'int' check more strict.
9400
9401 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9402
9403 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9404 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9405 (i386_linux_intx80_sysenter_syscall_record): ... here.
9406 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9407 Use the renamed function name.
9408
9409 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9410
9411 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9412 * breakpoint.c (until_break_command): Likewise.
9413 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9414 * infcall.c (call_function_by_hand): Likewise.
9415 * infcmd.c (finish_forward): Likewise.
9416 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9417
9418 2012-02-28 Tristan Gingold <gingold@adacore.com>
9419
9420 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9421 avoid variable assignments inside condition.
9422
9423 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9424
9425 Fix static analysis issue found by cppcheck.
9426 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9427 uninitialized BUF for size 2.
9428
9429 2012-02-27 Chris Dearman <chris@mips.com>
9430 Nathan Froyd <froydnj@codesourcery.com>
9431 Maciej W. Rozycki <macro@codesourcery.com>
9432
9433 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9434 (mips16_instruction_has_delay_slot): Likewise.
9435 (mips_segment_boundary): Likewise.
9436 (mips_adjust_breakpoint_address): Likewise.
9437 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9438
9439 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9440 Maciej W. Rozycki <macro@codesourcery.com>
9441
9442 * infrun.c (handle_inferior_event): Don't proceed through
9443 shared library trampolines if stepping at the machine
9444 instruction level.
9445
9446 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9447
9448 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9449 too.
9450
9451 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9452
9453 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9454 (sh_stub_unwind_sniffer): New functions.
9455 (sh_stub_unwind): New variable.
9456 (sh_gdbarch_init): Wire everything.
9457
9458 2012-02-27 Pedro Alves <palves@redhat.com>
9459
9460 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9461 (linux_nat_post_attach_wait): Adjust to use
9462 linux_proc_pid_is_stopped.
9463 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9464 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9465 based on pid_is_stopped from both linux-nat.c and
9466 gdbserver/linux-low.c, and renamed.
9467
9468 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9469
9470 * remote.c (remote_watchpoint_addr_within_range): New function.
9471 (init_remote_ops): Use it.
9472
9473 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9474
9475 * target.h (target_watchpoint_addr_within_range): Document macro.
9476
9477 2012-02-24 Pedro Alves <palves@redhat.com>
9478
9479 * stack.c (set_last_displayed_sal): Issue internal_error instead
9480 of warning, and issue it after clearing the last displayed sal.
9481
9482 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9483 Pedro Alves <palves@redhat.com>
9484
9485 * breakpoint.c (until_break_command): Install breakpoints after
9486 all frame manipulations.
9487
9488 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9489
9490 * remote.c (remote_supports_cond_breakpoints): New forward
9491 declaration.
9492 (remote_add_target_side_condition): New function.
9493 (remote_insert_breakpoint): Add target-side breakpoint
9494 conditional if supported.
9495 (remote_insert_hw_breakpoint): Likewise.
9496 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9497 hook.
9498
9499 * target.c (update_current_target): Inherit
9500 to_supports_evaluation_of_breakpoint_conditions.
9501 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9502
9503 * target.h (struct target_ops)
9504 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9505 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9506
9507 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9508 (condition_evaluation_both, condition_evaluation_auto,
9509 condition_evaluation_host, condition_evaluation_target,
9510 condition_evaluation_enums, condition_evaluation_mode_1,
9511 condition_evaluation_mode): New static globals.
9512 (translate_condition_evaluation_mode): New function.
9513 (breakpoint_condition_evaluation_mode): New function.
9514 (gdb_evaluates_breakpoint_condition_p): New function.
9515 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9516 (mark_breakpoint_modified): New function.
9517 (mark_breakpoint_location_modified): New function.
9518 (set_condition_evaluation_mode): New function.
9519 (show_condition_evaluation_mode): New function.
9520 (bp_location_compare_addrs): New function.
9521 (get_first_location_gte_addr): New helper function.
9522 (set_breakpoint_condition): Free condition bytecode if locations
9523 has become unconditional. Call mark_breakpoint_modified (...).
9524 (condition_command): Call update_global_location_list (1) for
9525 breakpoints.
9526 (breakpoint_xfer_memory): Use is_breakpoint (...).
9527 (is_breakpoint): New function.
9528 (parse_cond_to_aexpr): New function.
9529 (build_target_condition_list): New function.
9530 (insert_bp_location): Handle target-side conditional
9531 breakpoints and call build_target_condition_list (...).
9532 (update_inserted_breakpoint_locations): New function.
9533 (insert_breakpoint_locations): Handle target-side conditional
9534 breakpoints.
9535 (bpstat_check_breakpoint_conditions): Add comment.
9536 (bp_condition_evaluator): New function.
9537 (bp_location_condition_evaluator): New function.
9538 (print_breakpoint_location): Print information on where the condition
9539 will be evaluated.
9540 (print_one_breakpoint_location): Likewise.
9541 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9542 breakpoint location.
9543 (force_breakpoint_reinsertion): New functions.
9544 (update_global_location_list): Handle target-side breakpoint
9545 conditions.
9546 Reinsert locations that are already inserted if conditions have
9547 changed.
9548 (bp_location_dtor): Free agent expression bytecode.
9549 (disable_breakpoint): Call mark_breakpoint_modified (...).
9550 Call update_global_location_list (...) with parameter 1 for breakpoints.
9551 (disable_command): Call mark_breakpoint_location_modified (...).
9552 Call update_global_location_list (...) with parameter 1 for breakpoints.
9553 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9554 (enable_command): mark_breakpoint_location_modified (...).
9555 (_initialize_breakpoint): Update documentation and add
9556 condition-evaluation breakpoint subcommand.
9557
9558 * breakpoint.h: Include ax.h.
9559 (condition_list): New data structure.
9560 (condition_status): New enum.
9561 (bp_target_info) <cond_list>: New field.
9562 (bp_location) <condition_changed, cond_bytecode>: New fields.
9563 (is_breakpoint): New prototype.
9564
9565 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9566
9567 * remote.c (remote_state) <cond_breakpoints>: New field.
9568 (PACKET_ConditionalBreakpoints): New enum.
9569 (remote_cond_breakpoint_feature): New function.
9570 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9571 (remote_supports_cond_breakpoints): New function.
9572 (_initialize_remote): Add new packet configuration for
9573 target-side conditional breakpoints.
9574
9575 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9576
9577 * NEWS: Mention target-side conditional breakpoint support,
9578 new condition-evaluation breakpoint subcommand and remote
9579 packet extensions.
9580
9581 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9582
9583 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9584 number.
9585
9586 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9587
9588 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9589 (after_prologue): Remove.
9590
9591 2012-02-23 Tom Tromey <tromey@redhat.com>
9592
9593 * jv-valprint.c (java_val_print): Remove dead code.
9594
9595 2012-02-23 Tristan Gingold <gingold@adacore.com>
9596
9597 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9598 known_tasks_element and known_tasks_length fields.
9599 (read_known_tasks_array): Change argument type. Use pointer type
9600 and number of elements from DATA. Adjust.
9601 (read_known_tasks_list): Likewise.
9602 (get_known_tasks_addr): Remove.
9603 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9604 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9605 type and array length. Merge former get_known_tasks_addr code.
9606
9607 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9608
9609 PR backtrace/13716
9610 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9611 it after set_momentary_breakpoint.
9612
9613 2012-02-22 Sterling Augustine <saugustine@google.com>
9614
9615 PR 13689:
9616 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9617
9618 2012-02-22 Gary Benson <gbenson@redhat.com>
9619
9620 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9621 (find_slot_in_mapped_hash): Likewise.
9622
9623 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 PR build/13638
9626 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9627 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9628 * configure: Regenerate.
9629
9630 2012-02-21 Tristan Gingold <gingold@adacore.com>
9631 Pedro Alves <palves@redhat.com>
9632
9633 * ia64-tdep.c: Do not include libunwind-ia64.h.
9634 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9635 Include libunwind-ia64.h instead of libunwind.h.
9636 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9637 for libunwind.h existence.
9638 * configure, config.in: Regenerate.
9639
9640 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9641
9642 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9643 instead of value_rtti_target_type.
9644 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9645 instead of value_rtti_target_type.
9646 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9647 value_rtti_target_type.
9648 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9649 (value_rtti_target_type): Rename to ...
9650 (value_rtti_indirect_type): ... here and make it indirect. Update
9651 function comment.
9652 * value.c (readjust_indirect_value_type): New function.
9653 (coerce_ref): Support for enclosing type setting for references
9654 with readjust_indirect_value_type.
9655 * value.h (readjust_value_type): New declaration.
9656 (value_rtti_target_type): Rename to ...
9657 (value_rtti_indirect_type): ... here.
9658
9659 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9660
9661 * MAINTAINERS (Write After Approval): Add myself to the list.
9662
9663 2012-02-20 Doug Evans <dje@google.com>
9664
9665 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9666 Rename objfile_p_char parameter to objfilep.
9667 (build_objfile_section_table): Result is now void. All callers
9668 updated.
9669 * objfiles.h (struct objfile): Tweak comments, whitespace.
9670 (build_objfile_section_table): Update.
9671
9672 * elfread.c (elf_symfile_segments): Fix warning text.
9673
9674 2012-02-20 Tom Tromey <tromey@redhat.com>
9675
9676 PR gdb/13498:
9677 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9678 particular set of file names once.
9679 (dw2_map_symbol_filenames): Likewise.
9680
9681 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9682
9683 Code cleanup.
9684 * main.c (write_files): Remove the declaration.
9685 (external_editor_command): Move the declaration ...
9686 [GDBTK] (external_editor_command): ... here. Fix the comment.
9687
9688 2012-02-20 Tom Tromey <tromey@redhat.com>
9689
9690 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9691 extraneous block.
9692
9693 2012-02-20 Tristan Gingold <gingold@adacore.com>
9694
9695 * darwin-nat.h (enum darwin_msg_state): Add comments.
9696
9697 2012-02-20 Tristan Gingold <gingold@adacore.com>
9698
9699 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9700 value.
9701
9702 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9703
9704 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9705 between function description and implementation.
9706
9707 2012-02-17 Tom Tromey <tromey@redhat.com>
9708
9709 PR python/12070:
9710 * python/py-event.c (event_object_getset): New global.
9711 (event_object_type): Reference it.
9712 * python/py-type.c (field_object_getset): New global.
9713 (field_object_type): Reference it.
9714 * python/python-internal.h (gdb_py_generic_dict): Declare.
9715 * python/py-utils.c (gdb_py_generic_dict): New function.
9716
9717 2012-02-17 Tristan Gingold <gingold@adacore.com>
9718
9719 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9720
9721 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9722
9723 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9724 TYPE_CALLING_CONVENTION annotation.
9725
9726 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9727
9728 * MAINTAINERS: Add rx to target ISA section.
9729 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9730 (ALLDEPFILES): Add rx-tdep.c.
9731
9732 2012-02-16 Tom Tromey <tromey@redhat.com>
9733
9734 * symfile.c (symbol_file_add_main_1): Use inferior's
9735 symfile_flags.
9736 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9737 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9738 inferior.
9739 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9740 inferior.
9741 (follow_exec): Use inferior's symfile_flags.
9742 * inferior.h (struct inferior) <symfile_flags>: New field.
9743
9744 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9745
9746 PR gdb/9734:
9747 * remote-sim.c (gdbsim_create_inferior): Call error() when
9748 sim_create_inferior() fails.
9749
9750 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9751
9752 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9753
9754 2012-02-16 Tom Tromey <tromey@redhat.com>
9755
9756 PR c++/13653:
9757 * thread.c (struct current_thread_cleanup) <was_removable>: New
9758 field.
9759 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9760 (make_cleanup_restore_current_thread): Initialize new field.
9761
9762 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9763
9764 * MAINTAINERS: Add rl78 to target ISA section.
9765 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9766 (ALLDEPFILES): Add rl78-tdep.c.
9767 * NEWS: Mention rl78 as a new target.
9768
9769 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9770
9771 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9772 data.
9773 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9774
9775 2012-02-15 Tom Tromey <tromey@redhat.com>
9776
9777 PR gdb/12659:
9778 * infcmd.c (registers_info): Print just the current register's
9779 name.
9780
9781 2012-02-15 Tom Tromey <tromey@redhat.com>
9782
9783 * python/py-symbol.c (sympy_value): Use _().
9784
9785 2012-02-15 Pedro Alves <palves@redhat.com>
9786
9787 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9788 output to be like native targets'.
9789 (remote_pid_to_str): Special case the null ptid.
9790
9791 2012-02-14 Stan Shebs <stan@codesourcery.com>
9792
9793 * NEWS: Mention enable count command.
9794 * breakpoint.h (struct breakpoint): New field enable_count.
9795 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9796 (enable_breakpoint): Add arg to call.
9797 (struct disp_data): New struct.
9798 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9799 (do_map_enable_once_breakpoint): Create a struct and pass it.
9800 (do_map_enable_delete_breakpoint): Ditto.
9801 (do_map_enable_count_breakpoint): New function.
9802 (enable_count_command): New function.
9803 (bpstat_stop_status): Decrement enable_count.
9804 (print_one_breakpoint_location): Report enable count.
9805 (_initialize_breakpoint): Add enable count command.
9806
9807 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9808
9809 * rl78-tdep.c (reggroups.h): Include.
9810 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9811 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9812 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9813 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9814 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9815 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9816 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9817 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9818 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9819 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9820 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9821 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9822 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9823 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9824 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9825 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9826 beginning of register list.
9827 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9828 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9829 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9830 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9831 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9832 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9833 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9834 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9835 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9836 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9837 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9838 the pseudo registers. Rearrange other pseudo registers too so
9839 that the bank registers appear at the end.
9840 (rl78_register_type): Account for the fact that the byte sized
9841 bank registers are now pseudo-registers.
9842 (rl78_register_name): Rearrange the register name array. Make
9843 initial set of raw banked registers inaccessible.
9844 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9845 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9846 case for copying bytes back and forth between raw and pseudo
9847 versions of the banked registers. Update other cases to reflect
9848 the changed names.
9849 (rl78_return_value): Update to account for changed names of
9850 raw registers.
9851 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9852 rl78_register_sim_regno().
9853
9854 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9855
9856 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9857 the name parameter being passed to find_pc_partial_function().
9858
9859 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9860
9861 * MAINTAINERS: Step down from being ia64 target maintainer.
9862
9863 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9864
9865 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9866 compilation warning.
9867
9868 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9869
9870 Fix crash on loaded shlibs without loaded exec_bfd.
9871 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9872 (set_section_command): Replace exec_bfd by p->bfd.
9873
9874 2012-02-10 Tom Tromey <tromey@redhat.com>
9875
9876 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9877 when we have a C++ qualified name.
9878
9879 2012-02-10 Pedro Alves <palves@redhat.com>
9880
9881 * inferior.c (inferior_pid_to_str): New.
9882 (print_inferior, inferior_command): Use it.
9883
9884 2012-02-10 Pedro Alves <palves@redhat.com>
9885
9886 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9887 the test CFLAGS.
9888 * configure: Regenerate.
9889
9890 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9891
9892 * linespec.c (decode_line_internal): Fix comment correctness.
9893
9894 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9895
9896 PR gdb/12953
9897 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9898 * amd64bsd-nat.c: Add support for debug registers (adapted from
9899 i386bsd-nat.c).
9900 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9901 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9902 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9903 (amd64bsd_dr_get_control): New functions.
9904 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9905 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9906 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9907 watchpoints initialization.
9908 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9909
9910 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9911
9912 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9913 flds_bnds.fields.
9914 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9915
9916 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9917
9918 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9919
9920 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9921
9922 * language.h (symbol_name_cmp_ftype): Renames
9923 symbol_name_match_p_ftype.
9924 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9925 la_get_symbol_name_match_p.
9926 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9927 ada_get_symbol_name_match_p. Update comment.
9928 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9929 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9930 Renames symbol_name_match_p. Update field type.
9931 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9932 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9933 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9934 "la_get_symbol_name_cmp" in comments.
9935 * language.c: Likewise.
9936
9937 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9938
9939 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9940 %eflags offset.
9941 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9942 (amd64_sol2_gregset32_reg_offs): Likewise.
9943
9944 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9945
9946 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9947 of the returned BFD is allocated by GDB.
9948
9949 2012-02-07 Tom Tromey <tromey@redhat.com>
9950
9951 PR python/12027:
9952 * python/python-internal.h (frame_object_type): Declare.
9953 * python/py-symbol.c (sympy_needs_frame): New function.
9954 (sympy_value): New function.
9955 (symbol_object_getset): Add "needs_frame".
9956 (symbol_object_methods): Add "value".
9957 * python/py-frame.c (frame_object_type): No longer static.
9958
9959 2012-02-07 Tom Tromey <tromey@redhat.com>
9960
9961 PR python/13599:
9962 * python/py-symbol.c (sympy_line): New function.
9963 (symbol_object_getset): Add "line".
9964
9965 2012-02-07 Tom Tromey <tromey@redhat.com>
9966
9967 * charset.c (find_charset_names): Check 'in' against NULL.
9968
9969 2012-02-06 Doug Evans <dje@google.com>
9970
9971 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9972 and fields.name members from char * to const char *. All uses updated.
9973 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9974 from char * to const char *. All uses updated.
9975 (type_name_no_tag): Update.
9976 (lookup_unsigned_typename, lookup_signed_typename): Update.
9977 * gdbtypes.c (type_name_no_tag): Change result type
9978 from char * to const char *. All callers updated.
9979 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9980 name parameter from char * to const char *.
9981 * symtab.h (struct cplus_specific): Change type of demangled_name
9982 member from char * to const char *. All uses updated.
9983 (struct general_symbol_info): Change type of name and
9984 mangled_lang.demangled_name members from char * to const char *.
9985 All uses updated.
9986 (symbol_get_demangled_name, symbol_natural_name): Update.
9987 (symbol_demangled_name, symbol_search_name): Update.
9988 * symtab.c (symbol_get_demangled_name): Change result type
9989 from char * to const char *. All callers updated.
9990 (symbol_natural_name, symbol_demangled_name): Ditto.
9991 (symbol_search_name): Ditto.
9992 (completion_list_add_name): Change type of symname,sym_text,
9993 text,word parameters from char * to const char *.
9994 (completion_list_objc_symbol): Change type of sym_text,
9995 text,word parameters from char * to const char *.
9996 * ada-lang.c (find_struct_field): Change type of name parameter
9997 from char * to const char *.
9998 (encoded_ordered_before): Similarly for N0,N1 parameters.
9999 (old_renaming_is_invisible): Similarly for function_name parameter.
10000 (ada_type_name): Change result type from char * to const char *.
10001 All callers updated.
10002 * ada-lang.h (ada_type_name): Update.
10003 * buildsym.c (hashname): Change type of name parameter
10004 from char * to const char *.
10005 * buildsym.h (hashname): Update.
10006 * dbxread.c (end_psymtab): Change type of include_list parameter
10007 from char ** to const char **.
10008 * dwarf2read.c (determine_prefix): Change result type
10009 from char * to const char *. All callers updated.
10010 * f-lang.c (find_common_for_function): Change type of name, funcname
10011 parameters from char * to const char *.
10012 * f-lang.c (find_common_for_function): Update.
10013 * f-valprint.c (list_all_visible_commons): Change type of funcname
10014 parameters from char * to const char *.
10015 * gdbarch.sh (static_transform_name): Change type of name parameter
10016 and result from char * to const char *.
10017 * gdbarch.c: Regenerate.
10018 * gdbarch.h: Regenerate.
10019 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10020 of name parameter from char * to const char *.
10021 * jv-lang.c (java_primitive_type_from_name): Ditto.
10022 (java_demangled_signature_length): Similarly for signature parameter.
10023 (java_demangled_signature_copy): Ditto.
10024 (java_demangle_type_signature): Ditto.
10025 * jv-lang.h (java_primitive_type_from_name): Update.
10026 (java_demangle_type_signature): Update.
10027 * objc-lang.c (specialcmp): Change type of a,b parameters
10028 from char * to const char *.
10029 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10030 from char * to const char *. All callers updated.
10031 * p-lang.h (is_pascal_string_type): Update.
10032 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10033 of name parameter from char * to const char *.
10034 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10035 * utils.c (fprintf_symbol_filtered): Ditto.
10036 * defs.h (fprintf_symbol_filtered): Update.
10037 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10038 * stabsread.h (end_psymtab): Update.
10039 * stack.c (find_frame_funname): Change type of funname parameter
10040 from char ** to const char **.
10041 * stack.h (find_frame_funname): Update.
10042 * typeprint.c (type_print): Change type of varstring parameter
10043 from char * to const char *.
10044 * value.h (type_print): Update.
10045 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10046 from char * to const char *. All callers updated.
10047 (xcoff_end_psymtab): Change type of include_list parameter
10048 from char ** to const char **. All callers updated.
10049 (swap_sym): Similarly for name parameter. All callers updated.
10050 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10051 Use xstrdup.
10052 (process_coff_symbol): Use xstrdup.
10053 * stabsread.c (stabs_method_name_from_physname): Renamed from
10054 update_method_name_from_physname. Change result type from void
10055 to char *. All callers updated.
10056 (read_member_functions): In has_destructor case, store name in objfile
10057 obstack instead of malloc space. In !has_stub case, fix mem leak.
10058
10059 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10060
10061 * configure: Rebuild.
10062 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10063 LDFLAGS.
10064
10065 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10066
10067 * configure.tgt (rl78-*-elf): New target.
10068 * rl78-tdep.c: New file.
10069
10070 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10071
10072 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10073 and continue the loop. Add QUIT statement.
10074
10075 2012-02-03 Tom Tromey <tromey@redhat.com>
10076
10077 PR gdb/13596:
10078 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10079 bfd_lookup_symbol_from_symtab.
10080 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10081 gdb_bfd_lookup_symbol_from_symtab.
10082
10083 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10084
10085 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10086 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10087 symbol. Add assertion that sym2 is never NULL.
10088
10089 2012-02-02 Doug Evans <dje@google.com>
10090
10091 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10092 "name" parameter to const char ** from char **. All callers updated.
10093 (find_pc_partial_function): Ditto.
10094 (cache_pc_function_name): Change type to const char * from char *.
10095 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10096 (find_pc_partial_function): Update.
10097 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10098 type of "name" parameter to const char * from char *.
10099 All uses updated.
10100 * arch-utils.c (generic_in_solib_return_trampoline): Change
10101 type of "name" parameter to const char * from char *.
10102 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10103 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10104 type of "name" parameter to const char * from char *.
10105 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10106 * gdbarch.c: Regenerate.
10107 * gdbarch.h: Regenerate.
10108 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10109 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10110 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10111 type of "name" parameter to const char * from char *.
10112 * skip.c (skip_function_pc): Ditto.
10113 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10114 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10115 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10116 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10117 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10118 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10119 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10120 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10121 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10122
10123 2012-02-02 Pedro Alves <palves@redhat.com>
10124
10125 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10126 the current inferior has no execution. Make sure the current
10127 remote process matches gdb's current inferior.
10128
10129 2012-02-02 Tom Tromey <tromey@redhat.com>
10130
10131 PR gdb/13405:
10132 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10133 read-only memory.
10134
10135 2012-02-02 Tom Tromey <tromey@redhat.com>
10136
10137 PR gdb/9307:
10138 * symtab.c (lookup_language_this): Set block_found.
10139
10140 2012-02-01 Tom Tromey <tromey@redhat.com>
10141
10142 PR gdb/13431:
10143 * jit.c (struct jit_inferior_data): Rewrite.
10144 (struct jit_objfile_data): New.
10145 (get_jit_objfile_data): New function.
10146 (add_objfile_entry): Update.
10147 (jit_read_descriptor): Return int. Replace descriptor_addr
10148 argument with inf_data. Update. Don't call error.
10149 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10150 descriptor here.
10151 (jit_inferior_init): Don't look up descriptor. Don't call error.
10152 (jit_reset_inferior_data_and_breakpoints)
10153 (jit_inferior_created_observer): Remove.
10154 (jit_inferior_exit_hook): Update.
10155 (jit_executable_changed_observer): Remove.
10156 (jit_event_handler): Update.
10157 (free_objfile_data): Reset inferior data if needed.
10158 (_initialize_jit): Update.
10159
10160 2012-02-01 Tom Tromey <tromey@redhat.com>
10161
10162 * jit.c (bfd_open_from_target_memory): Move higher in file.
10163
10164 2012-02-01 Tristan Gingold <gingold@adacore.com>
10165
10166 * libunwind-frame.c (libunwind_load): Display message if dlopen
10167 failed.
10168
10169 2012-02-01 Gary Benson <gbenson@redhat.com>
10170
10171 * symtab.h (symbol_found_callback_ftype): New typedef.
10172 (iterate_over_symbols): Use the above.
10173 * symtab.c (iterate_over_symbols): Likewise.
10174 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10175 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10176 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10177 (iterate_name_matcher): Document return values.
10178 (collect_one_symbol): Likewise.
10179 (collect_function_symbols): Likewise.
10180 (collect_symbols): Likewise.
10181
10182 2012-02-01 Tom Tromey <tromey@redhat.com>
10183
10184 * ada-lang.c (resolve_subexp): Update.
10185 (ada_lookup_symbol_list): Add 'full_search' argument.
10186 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10187 ada_lookup_symbol_list.
10188 (ada_lookup_encoded_symbol): Update.
10189 (get_var_value): Update.
10190 * ada-exp.y (block_lookup): Update.
10191 (write_var_or_type): Update.
10192 (write_name_assoc): Update.
10193 * ada-lang.h (ada_lookup_symbol_list): Update.
10194
10195 2012-01-31 Tom Tromey <tromey@redhat.com>
10196
10197 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10198 comment.
10199
10200 2012-01-31 Doug Evans <dje@google.com>
10201
10202 * symtab.h: Remove outdated comment.
10203 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10204
10205 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10206
10207 Fix build error in Darwin port.
10208 * i386-darwin-nat.c: Include i386-nat.h.
10209
10210 2012-01-30 Tom Tromey <tromey@redhat.com>
10211
10212 PR breakpoints/13568:
10213 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10214 argument. Check for recursive includes.
10215 (dwarf_decode_macros): Create an include hash.
10216
10217 2012-01-30 Michael Eager <eager@eagercon.com>
10218
10219 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10220 * ppc-linux-tdep.c: Include glibc-tdep.h.
10221 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10222 (powerpc_linux_in_plt_stub): New function.
10223 (powerpc_linux_in_dynsym_resolve_code): New function.
10224 (ppc_skip_trampoline_code): New function.
10225 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10226 Use glibc_skip_solib_resolver.
10227
10228 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10229
10230 Code cleanup: Make 1440 bytes of data segment read-only.
10231 * arch-utils.c (endian_enum): Make it const char *const [].
10232 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10233 Likewise.
10234 * breakpoint.c (always_inserted_enums): Likewise.
10235 * cli/cli-cmds.c (script_ext_enums): Likewise.
10236 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10237 enumlist parameter const char *const *.
10238 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10239 const char *const *.
10240 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10241 parameter const char *const *.
10242 * cris-tdep.c (cris_modes): Make it const char *const [].
10243 * filesystem.c (target_file_system_kinds): Likewise.
10244 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10245 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10246 (can_use_displaced_stepping_enum, scheduler_enums)
10247 (exec_direction_names): Likewise.
10248 * language.c (_initialize_language): Make the type_or_range_names and
10249 case_sensitive_names variables const char *const [].
10250 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10251 * python/python.c (python_excp_enums): Likewise.
10252 * remote.c (interrupt_sequence_modes): Likewise.
10253 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10254 * serial.c (logbase_enums): Likewise.
10255 * sh-tdep.c (sh_cc_enum): Likewise.
10256 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10257 Likewise.
10258 * symtab.c (multiple_symbols_modes): Likewise.
10259 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10260 Likewise.
10261 * utils.c (internal_problem_modes): Likewise.
10262
10263 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10264
10265 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10266 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10267 result.
10268
10269 2012-01-27 Doug Evans <dje@google.com>
10270
10271 * configure.ac (with_python): Fix absolute path handling for win32.
10272 * configure: Regenerate.
10273
10274 2012-01-26 Doug Evans <dje@google.com>
10275
10276 * symtab.c: Whitespace cleanup, no code changes.
10277
10278 * symtab.c (lookup_symbol_in_language): Improve comment.
10279 (lookup_symbol_aux): Fix comment.
10280
10281 * psymtab.c (add_psymbol_to_list): Result is now "void".
10282 * psympriv.h (add_psymbol_to_list): Update.
10283
10284 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10285
10286 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10287
10288 Do not open script filenames twice.
10289 * cli/cli-cmds.c (source_script_from_stream): Pass to
10290 source_python_script also STREAM.
10291 * python/py-auto-load.c (source_section_scripts): Pass to
10292 source_python_script_for_objfile also STREAM.
10293 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10294 also INPUT.
10295 * python/python-internal.h (source_python_script_for_objfile): New
10296 parameter file, rename parameter file to filename.
10297 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10298 instead if !_WIN32. Update the function comment.
10299 (source_python_script, source_python_script_for_objfile)
10300 (source_python_script): New parameter file, rename parameter file to
10301 filename. Pass FILENAME to python_run_simple_file.
10302 * python/python.h (source_python_script): New parameter file, rename
10303 parameter file to filename.
10304
10305 2012-01-26 Pedro Alves <palves@redhat.com>
10306
10307 * corelow.c (core_has_fake_pid): Delete.
10308 (core_close): Delete references to `core_has_fake_pid'.
10309 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10310 (core_open): Delete references to `core_has_fake_pid'.
10311 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10312 the removed global.
10313
10314 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10315
10316 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10317 Remove language parameter from name_matcher. Adjust the comment.
10318 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10319 Remove language parameter.
10320 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10321 * linespec.c (iterate_name_matcher): Likewise.
10322 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10323 name_matcher. Adjust call accordingly.
10324 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10325 (maintenance_check_symtabs): Adjust type of parameter "fun".
10326 * psymtab.h (maintenance_check_symtabs): Likewise.
10327
10328 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10329
10330 * language.h (symbol_name_match_p_ftype): New typedef.
10331 (struct language_defn): Replace field la_symbol_name_compare
10332 by la_get_symbol_name_match_p.
10333 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10334 (ada_language_defn): Use it.
10335 * linespec.c (struct symbol_matcher_data): New type.
10336 (iterate_name_matcher): Rewrite.
10337 (iterate_over_all_matching_symtabs): Pass a pointer to
10338 a symbol_matcher_data struct to expand_symtabs_matching
10339 instead of just the lookup name.
10340 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10341 opencl-lang.c, p-lang.c, language.c: Delete field
10342 la_symbol_name_compare, and replace by NULL for new field
10343 la_get_symbol_name_match_p.
10344 * symfile.h (struct quick_symbol_functions): Update comment.
10345
10346 2012-01-25 Tom Tromey <tromey@redhat.com>
10347
10348 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10349 dereferencing.
10350
10351 2012-01-24 Tom Tromey <tromey@redhat.com>
10352
10353 PR symtab/12406:
10354 * solib.c (update_solib_list): Update the program space's
10355 added_solibs and deleted_solibs fields.
10356 * progspace.h (struct program_space) <added_solibs,
10357 deleted_solibs>: New fields.
10358 (clear_program_space_solib_cache): Declare.
10359 * progspace.c (release_program_space): Call
10360 clear_program_space_solib_cache.
10361 (clear_program_space_solib_cache): New function.
10362 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10363 bpstat_stop_status. Use handle_solib_event.
10364 * breakpoint.c: Include gdb_regex.h.
10365 (print_solib_event): New function.
10366 (bpstat_print): Use print_solib_event.
10367 (bpstat_stop_status): Add special case for bp_shlib_event.
10368 (handle_solib_event): New function.
10369 (bpstat_what): Use handle_solib_event.
10370 (struct solib_catchpoint): New.
10371 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10372 (breakpoint_hit_catch_solib, check_status_catch_solib)
10373 (print_it_catch_solib, print_one_catch_solib)
10374 (print_mention_catch_solib, print_recreate_catch_solib): New
10375 functions.
10376 (catch_solib_breakpoint_ops): New global.
10377 (catch_load_or_unload, catch_load_command_1)
10378 (catch_unload_command_1): New functions.
10379 (internal_bkpt_check_status): Add special case for
10380 bp_shlib_event.
10381 (internal_bkpt_print_it): Use print_solib_event.
10382 (initialize_breakpoint_ops): Initialize
10383 catch_solib_breakpoint_ops.
10384 (_initialize_breakpoint): Register "catch load" and "catch
10385 unload".
10386 * breakpoint.h (handle_solib_event): Declare.
10387 * NEWS: Add entry for "catch load" and "catch unload".
10388
10389 2012-01-24 Tom Tromey <tromey@redhat.com>
10390
10391 * ada-lang.c: Include gdb_vecs.h.
10392 * charset.c: Include gdb_vecs.h.
10393 * tracepoint.h: Include gdb_vecs.h.
10394 * gdb_vecs.h: New file.
10395
10396 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10397
10398 * breakpoint.c (breakpoint_hit_catch_fork)
10399 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10400 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10401 * infrun.c (inferior_has_forked, inferior_has_vforked)
10402 (inferior_has_execd, inferior_has_called_syscall): Delete.
10403 (handle_syscall_event): Get syscall_number from the execution
10404 control state's wait status.
10405 (wait_for_inferior): Don't clear syscall_number.
10406
10407 2012-01-24 Pedro Alves <palves@redhat.com>
10408
10409 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10410 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10411 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10412 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10413 `ws' parameter.
10414 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10415 false for events other than TARGET_SIGNAL_TRAP.
10416 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10417 Add `ws' parameter.
10418 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10419 events other than TARGET_SIGNAL_TRAP.
10420 (tracepoint_breakpoint_hit): Add `ws' parameter.
10421 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10422 parameter.
10423 (bpstat_stop_status): Same.
10424 (pc_at_non_inline_function): Same.
10425 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10426 to pass the current event's waitstatus to bpstat_stop_status
10427 and pc_at_non_inline_function.
10428
10429 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 Code cleanup.
10432 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10433 Update the function comment for it.
10434 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10435 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10436 for STREAM.
10437
10438 2012-01-24 Pedro Alves <palves@redhat.com>
10439
10440 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10441 outside `bs->stop' block.
10442 (bpstat_what): Rework bp_shlib_event handling.
10443 (internal_bkpt_check_status): If the breakpoint is a
10444 bp_shlib_event, then set bs->stop and bs->print if
10445 stop_on_solib_events is set.
10446
10447 2012-01-24 Gary Benson <gbenson@redhat.com>
10448
10449 Delete #if 0'd out code.
10450 * stack.c (print_frame_label_vars): Remove.
10451 (catch_info): Likewise.
10452 (_initialize_stack): Remove "info catch" command.
10453 * NEWS: Mention the above.
10454
10455 2012-01-24 Pedro Alves <palves@redhat.com>
10456
10457 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10458 it.
10459 (remote_notice_new_inferior): If the remote end doesn't support
10460 the multiprocess extensions, then the PID is fake.
10461 (add_current_inferior_and_thread): New.
10462 (remote_start_remote): Use it.
10463 (extended_remote_attach_1): Adjust.
10464 (extended_remote_create_inferior_1): Use
10465 add_current_inferior_and_thread.
10466
10467 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10468
10469 Fix watchpoints to be specific for each inferior.
10470 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10471 current_program_space.
10472 * i386-nat.c (i386_inferior_data_cleanup): New.
10473 (i386_inferior_data_get): Replace variable inf_data_local by an
10474 inferior_data call.
10475 (i386_use_watchpoints): Initialize i386_inferior_data.
10476 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10477 specific iterate_over_lwps.
10478
10479 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10480
10481 Fix watchpoints across inferior fork.
10482 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10483 comment for linux_nat_iterate_watchpoint_lwps.
10484 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10485 linux_nat_iterate_watchpoint_lwps.
10486 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10487 * i386-linux-nat.c (update_debug_registers_callback): Update the
10488 comment for linux_nat_iterate_watchpoint_lwps.
10489 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10490 linux_nat_iterate_watchpoint_lwps.
10491 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10492 * i386-nat.c: Include inferior.h.
10493 (dr_mirror): Remove.
10494 (i386_inferior_data, struct i386_inferior_data)
10495 (i386_inferior_data_get): New.
10496 (i386_debug_reg_state): Use i386_inferior_data_get.
10497 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10498 (i386_insert_watchpoint, i386_remove_watchpoint)
10499 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10500 (i386_remove_hw_breakpoint): New variable state, use
10501 i386_debug_reg_state instead of DR_MIRROR.
10502 * linux-nat.c (delete_lwp): New declaration.
10503 (num_lwps): Move here from downwards.
10504 (delete_lwp_cleanup): New.
10505 (linux_child_follow_fork): Create new child_lp, call
10506 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10507 PTRACE_DETACH.
10508 (num_lwps): Move upwards.
10509 (linux_nat_iterate_watchpoint_lwps): New.
10510 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10511 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10512
10513 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10514
10515 GDB 7.4 released.
10516
10517 2012-01-23 Pedro Alves <palves@redhat.com>
10518
10519 * top.c (caution): Rename to ...
10520 (confirm): ... this.
10521 (show_caution): Rename to ...
10522 (show_confirm): ... this.
10523 (quit_cover): Adjust.
10524 (init_main): Adjust.
10525 * top.h (caution): Rename to ...
10526 (confirm): ... this.
10527 * utils.c (internal_vproblem, defaulted_query): Adjust.
10528
10529 2012-01-23 Pedro Alves <palves@redhat.com>
10530
10531 * top.c (caution): Update comment.
10532 (execute_command): Don't consider the current value of `caution'.
10533
10534 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10535
10536 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10537
10538 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10539
10540 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10541 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10542 * target.c (target_fileio_pwrite): Remove buffer address from
10543 debug output.
10544 (target_fileio_pread): Likewise.
10545
10546 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10547
10548 * NEWS: Document remote "info proc" and "generate-core-file".
10549
10550 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10551
10552 * gdbarch.sh (find_memory_regions): New callback.
10553 * gdbarch.c, gdbarch.h: Regenerate.
10554
10555 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10556 callback before falling back to target method.
10557
10558 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10559 (linux_target_install_ops): No longer install it.
10560
10561 * linux-tdep.c (linux_find_memory_regions): New function.
10562 (linux_init_abi): Install it.
10563
10564 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10565
10566 * gdbarch.sh (make_corefile_notes): New architecture callback.
10567 * gdbarch.c: Regenerate.
10568 * gdbarch.h: Likewise.
10569
10570 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10571 before target_make_corefile_notes. If NULL is returned, the
10572 target does not support core file generation.
10573
10574 * linux-nat.c: Include "linux-tdep.h".
10575 (find_signalled_thread, find_stop_signal): Remove.
10576 (linux_nat_do_thread_registers): Likewise.
10577 (struct linux_nat_corefile_thread_data): Likewise.
10578 (linux_nat_corefile_thread_callback): Likewise.
10579 (iterate_over_spus): Likewise.
10580 (struct linux_spu_corefile_data): Likewise.
10581 (linux_spu_corefile_callback): Likewise.
10582 (linux_spu_make_corefile_notes): Likewise.
10583 (linux_nat_collect_thread_registers): New function.
10584 (linux_nat_make_corefile_notes): Replace contents by call to
10585 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10586 as native-only callback.
10587
10588 * linux-tdep.h: Include "bfd.h".
10589 (struct regcache): Add forward declaration.
10590 (linux_collect_thread_registers_ftype): New typedef.
10591 (linux_make_corefile_notes): Add prototype.
10592 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10593 "regset.h", and "elf-bfd.h".
10594 (find_signalled_thread, find_stop_signal): New functions.
10595 (linux_spu_make_corefile_notes): Likewise.
10596 (linux_collect_thread_registers): Likewise.
10597 (struct linux_corefile_thread_data): New data structure.
10598 (linux_corefile_thread_callback): New funcion.
10599 (linux_make_corefile_notes): Likewise.
10600 (linux_make_corefile_notes_1): Likewise.
10601 (linux_init_abi): Install it.
10602
10603 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10604
10605 * gdbarch.sh (info_proc): New callback.
10606 * gdbarch.c, gdbarch.h: Regenerate.
10607
10608 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10609 before falling back to the target info_proc callback.
10610
10611 * linux-nat.c: Do not include "cli/cli-utils.h".
10612 (linux_nat_info_proc): Remove.
10613 (linux_target_install_ops): No longer install it.
10614
10615 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10616 (read_mapping): New function.
10617 (linux_info_proc): Likewise.
10618 (linux_init_abi): Install it.
10619
10620 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10621
10622 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10623 * infcmd.c: (info_proc_cmd_1): New function.
10624 (info_proc_cmd): New function, moved here from equivalent routine
10625 orignally in linux-nat.c.
10626 (info_proc_cmd_mappings): Likewise.
10627 (info_proc_cmd_stat): Likewise.
10628 (info_proc_cmd_status): Likewise.
10629 (info_proc_cmd_cwd): Likewise.
10630 (info_proc_cmd_cmdline): Likewise.
10631 (info_proc_cmd_exe): Likewise.
10632 (info_proc_cmd_all): Likewise.
10633 (_initialize_infcmd): Install "info proc" command and subcommands.
10634
10635 * target.h (struct target_ops): Add to_info_proc.
10636 (target_info_proc): Add prototype.
10637 * target.c (target_info_proc): New function.
10638
10639 * procfs.c (procfs_info_proc): Add prototype.
10640 (info_proc_cmd): Rename into ...
10641 (procfs_info_proc): ... this. Update argument types as appropriate
10642 for a to_info_proc implementation. Handle "what" argument.
10643 (procfs_target): Install procfs_info_proc.
10644 (_initialize_procfs): No longer install "info proc" command.
10645
10646 * linux-nat.c: (enum info_proc_what): Remove.
10647 (linux_nat_info_proc_cmd_1): Rename into ...
10648 (linux_nat_info_proc): ... this. Update argument types as appropriate
10649 for a to_info_proc implementation.
10650 (linux_nat_info_proc_cmd): Remove.
10651 (linux_nat_info_proc_cmd_mappings): Likewise.
10652 (linux_nat_info_proc_cmd_stat): Likewise.
10653 (linux_nat_info_proc_cmd_status): Likewise.
10654 (linux_nat_info_proc_cmd_cwd): Likewise.
10655 (linux_nat_info_proc_cmd_cmdline): Likewise.
10656 (linux_nat_info_proc_cmd_exe): Likewise.
10657 (linux_nat_info_proc_cmd_all): Likewise.
10658 (linux_target_install_ops): Install linux_nat_info_proc.
10659 (_initialize_linux_nat): No longer install "info proc" command
10660 and subcommands.
10661
10662 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10663
10664 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10665 * config.in, configure: Regenerate.
10666
10667 * target.h (struct target_ops): Add to_fileio_readlink.
10668 (target_fileio_readlink): Add prototype.
10669 * target.c (target_fileio_readlink): New function.
10670
10671 * inf-child.c: Conditionally include <sys/param.h>.
10672 (inf_child_fileio_readlink): New function.
10673 (inf_child_target): Install it.
10674
10675 * remote.c (PACKET_vFile_readlink): New enum value.
10676 (remote_hostio_readlink): New function.
10677 (init_remote_ops): Install it.
10678 (_initialize_remote): Handle vFile:readlink packet type.
10679
10680 2012-01-20 Pedro Alves <palves@redhat.com>
10681 Ulrich Weigand <ulrich.weigand@linaro.org>
10682
10683 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10684 * config.in, configure: Regenerate.
10685
10686 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10687 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10688 (target_fileio_open): Add prototype.
10689 (target_fileio_pwrite): Likewise.
10690 (target_fileio_pread): Likewise.
10691 (target_fileio_close): Likewise.
10692 (target_fileio_unlink): Likewise.
10693 (target_fileio_read_alloc): Likewise.
10694 (target_fileio_read_stralloc): Likewise.
10695
10696 * target.c: Include "gdb/fileio.h".
10697 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10698 (default_fileio_target): New function.
10699 (target_fileio_open): Likewise.
10700 (target_fileio_pwrite): Likewise.
10701 (target_fileio_pread): Likewise.
10702 (target_fileio_close): Likewise.
10703 (target_fileio_unlink): Likewise.
10704 (target_fileio_close_cleanup): Likewise.
10705 (target_fileio_read_alloc_1): Likewise.
10706 (target_fileio_read_alloc): Likewise.
10707 (target_fileio_read_stralloc): Likewise.
10708
10709 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10710 <fcntl.h>, and <unistd.h>.
10711 (inf_child_fileio_open_flags_to_host): New function.
10712 (inf_child_errno_to_fileio_error): Likewise.
10713 (inf_child_fileio_open): Likewise.
10714 (inf_child_fileio_pwrite): Likewise.
10715 (inf_child_fileio_pread): Likewise.
10716 (inf_child_fileio_close): Likewise.
10717 (inf_child_fileio_unlink): Likewise.
10718 (inf_child_target): Install to_fileio routines.
10719
10720 * remote.c (init_remote_ops): Install to_fileio routines.
10721
10722 2012-01-20 Pedro Alves <palves@redhat.com>
10723 Ulrich Weigand <ulrich.weigand@linaro.org>
10724
10725 * remote.c (remote_multi_process_p): Only check for multi-process
10726 protocol feature, do not check for extended protocol.
10727 (remote_supports_multi_process): Check for extended protocol here.
10728 (set_general_process): Likewise.
10729 (extended_remote_kill): Likewise.
10730 (remote_pid_to_str): Likewise.
10731 (remote_query_supported): Always query multiprocess mode.
10732
10733 2012-01-20 Pedro Alves <palves@redhat.com>
10734 Ulrich Weigand <ulrich.weigand@linaro.org>
10735
10736 * inferior.h (struct inferior): Add fake_pid_p.
10737 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10738 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10739 magic_null_ptid since the remote side doesn't provide a real PID.
10740
10741 2012-01-19 Tom Tromey <tromey@redhat.com>
10742
10743 * NEWS: Combine the two Python sections.
10744
10745 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10746
10747 * target.h (target_close): Update comment on the target's unpush state.
10748
10749 2012-01-19 Pedro Alves <palves@redhat.com>
10750
10751 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10752 linux_nat_async directly instead of going through the target
10753 vector.
10754 * target.c (unpush_target): Close target after unpushing it, not
10755 before.
10756
10757 2012-01-19 Gary Benson <gbenson@redhat.com>
10758
10759 * mdebugread.c (sort_blocks): Replace integer constants with ones
10760 derived from FIRST_LOCAL_BLOCK.
10761
10762 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10763 Jan Kratochvil <jan.kratochvil@redhat.com>
10764
10765 PR gdb/9538
10766 * symfile.c (find_separate_debug_file): New function.
10767 (terminate_after_last_dir_separator): Likewise.
10768 (find_separate_debug_file_by_debuglink): Also try realpath.
10769 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10770 * configure: Regenerate.
10771 * config.in: Regenerate.
10772
10773 2012-01-18 Doug Evans <dje@google.com>
10774
10775 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10776 (main.o): Remove rule.
10777 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10778 (--with-sysroot): Rewrite.
10779 * configure: Regenerate.
10780 * config.in: Regenerate.
10781
10782 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10783
10784 * parse.c (initialize_expout): New function.
10785 (reallocate_expout): Likewise.
10786 (parse_exp_in_context): Use `initialize_expout' and
10787 `reallocate_expout' when appropriate.
10788
10789 2012-01-18 Pedro Alves <palves@redhat.com>
10790
10791 * record.c (struct record_breakpoint, record_breakpoint_p)
10792 (record_breakpoints): New.
10793 (record_insert_breakpoint, record_remove_breakpoint): Manage
10794 record breakpoints list. Only remove breakpoints from the
10795 inferior if they had been inserted there in the first place.
10796
10797 2012-01-17 Doug Evans <dje@google.com>
10798
10799 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10800 if we know we don't have a file name to look for.
10801
10802 2012-01-17 Pedro Alves <palves@redhat.com>
10803
10804 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10805 the frame's stop reason is UNWIND_UNAVAILABLE.
10806
10807 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10808
10809 Fix compilation error.
10810 * m2-exp.y (yyerror): Use ANSI C prototype.
10811
10812 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10813
10814 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10815 (growbuf_by_size): Likewise.
10816 (yyerror): Likewise.
10817 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10818 (modblock): Remove variable (was #if 0'ed).
10819 (parse_number): Convert prototype from K&R to ANSI C.
10820 (yyerror): Likewise.
10821 * objc-exp.y (parse_number): Likewise.
10822 (yyerror): Likewise.
10823 (yylex): Remove #if 0'ed code.
10824 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10825 (yyerror): Likewise.
10826
10827 2012-01-16 Tom Tromey <tromey@redhat.com>
10828
10829 * NEWS: Add item.
10830 * symtab.h (compare_filenames_for_search): Declare.
10831 * symtab.c (compare_filenames_for_search): New function.
10832 (iterate_over_some_symtabs): Use it.
10833 * symfile.h (struct quick_symbol_functions)
10834 <map_symtabs_matching_filename>: Change spec.
10835 * psymtab.c (partial_map_symtabs_matching_filename): Use
10836 compare_filenames_for_search. Update for new spec.
10837 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10838 compare_filenames_for_search. Update for new spec.
10839 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10840
10841 2012-01-16 Tom Tromey <tromey@redhat.com>
10842
10843 PR python/13281:
10844 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10845 (struct main_type) <flag_flag_enum>: New field.
10846 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10847 * NEWS: Add entries.
10848 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10849 enums.
10850 * python/lib/gdb/printing.py (_EnumInstance): New class.
10851 (FlagEnumerationPrinter): Likewise.
10852
10853 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10854
10855 * breakpoint.c (create_sals_from_address_default): New function.
10856 (create_breakpoints_sal_default): Likewise.
10857 (decode_linespec_default): Likewise.
10858 (is_marker_spec): Removed.
10859 (strace_marker_p): New function.
10860 (init_breakpoint_sal): Using `strace_marker_p' instead of
10861 `is_marker_spec'.
10862 (create_breakpoint): Call method `create_sals_from_address' from
10863 breakpoint_ops, replacing code that created SALs conditionally
10864 on the type of the breakpoint. Call method `create_breakpoints_sal',
10865 replacing code that created breakpoints conditionally on the type
10866 wanted.
10867 (base_breakpoint_create_sals_from_address): New function.
10868 (base_breakpoint_create_breakpoints_sal): Likewise.
10869 (base_breakpoint_decode_linespec): Likewise.
10870 (base_breakpoint_ops): Add methods
10871 `base_breakpoint_create_sals_from_address',
10872 `base_breakpoint_create_breakpoints_sal' and
10873 `base_breakpoint_decode_linespec'.
10874 (bkpt_create_sals_from_address): New function.
10875 (bkpt_create_breakpoints_sal): Likewise.
10876 (bkpt_decode_linespec): Likewise.
10877 (tracepoint_create_sals_from_address): Likewise.
10878 (tracepoint_create_breakpoints_sal): Likewise.
10879 (tracepoint_decode_linespec): Likewise.
10880 (strace_marker_create_sals_from_address): Likewise.
10881 (strace_marker_create_breakpoints_sal): Likewise.
10882 (strace_marker_decode_linespec): Likewise.
10883 (strace_marker_breakpoint_ops): New variable.
10884 (addr_string_to_sals): Remove `marker_spec'. Call method
10885 `decode_linespec' from breakpoint_ops, replacing code that decoded
10886 an address string into a SAL. Use `strace_marker_p' instead of
10887 `marker_spec'.
10888 (strace_command): Decide whether we are dealing with a static
10889 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10890 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10891 * breakpoint.h (linespec_result, linespec_sals): New forward
10892 declarations.
10893 (breakpoint_ops) <create_sals_from_address>,
10894 <create_breakpoints_sal>, <decode_linespec>: New methods.
10895
10896 2012-01-14 Doug Evans <dje@google.com>
10897
10898 * NEWS: Update text for "maint set python print-stack".
10899 It is deprecated in gdb 7.4 and deleted in 7.5.
10900
10901 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10902
10903 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10904 including curses.h.
10905
10906 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10907
10908 * configure: Regenerate.
10909 * config.in: Regenerate.
10910
10911 2012-01-12 Keith Seitz <keiths@redhat.com>
10912
10913 PR mi/10586
10914 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10915 (ANONYMOUS_UNION_NAME): Define.
10916 (is_path_expr_parent): New function.
10917 (get_path_expr_parent): New function.
10918 (is_anonymous_child): New function.
10919 (create_child_with_value): If the child is anonymous and without
10920 a name, assign an object name to it.
10921 (c_describe_child): Use get_path_expr_parent to determine
10922 the parent expression.
10923 If there field represents an anonymous struct or union and
10924 has no name, set an appropriate display name and expression.
10925 (cplus_describe_child): Likewise.
10926
10927 2012-01-12 Pedro Alves <palves@redhat.com>
10928
10929 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10930 available when %ebp is found to be zero (outermost).
10931
10932 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10933
10934 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10935 an internal gdb_static_assert.
10936 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10937
10938 2012-01-11 Tom Tromey <tromey@redhat.com>
10939
10940 PR gdb/9598:
10941 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10942 catch" and "catch throw".
10943
10944 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10945
10946 * blockframe.c (block_innermost_frame): Start search from selected
10947 frame, if present, or otherwise the current frame.
10948
10949 * c-exp.y (variable): Update innermost_block for
10950 'block COLONCOLON NAME' clause.
10951 * m2-exp.y (variable): Ditto.
10952 * objc-exp.y (variable): Ditto.
10953
10954 2012-01-10 Tom Tromey <tromey@redhat.com>
10955
10956 PR python/13199:
10957 * python/python.c (finish_python_initialization): Set sys.argv.
10958
10959 2012-01-10 Doug Evans <dje@google.com>
10960
10961 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10962 "want_line_info". All callers updated.
10963 (dwarf_decode_lines_1): New function.
10964 (handle_DW_AT_stmt_list): Add function comment.
10965 New arg "want_line_info". All callers updated.
10966 (read_file_scope,read_type_unit_scope): Move comment from
10967 handle_DW_AT_stmt_list to here.
10968
10969 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10970
10971 Fix regression after libiberty/ update for GCC PR 6057 and others.
10972 * c-exp.y (operator) <OPERATOR DELETE>
10973 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10974 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10975 (make_builtin_type, make_name): New variable i, add gdb_assert.
10976 (operator) <OPERATOR NEW>: Update ARGS to 3.
10977 (operator) <OPERATOR DELETE>: Add trailing space.
10978 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10979 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10980 * cp-support.c (cp_canonicalize_string): Check NULL from
10981 cp_comp_to_string, call warning and return.
10982
10983 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10984
10985 Fix duplicate .o files after omitting libbfd.a.
10986 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10987 (SFILES): Add corelow.c.
10988 (COMMON_OBS): Add corelow.o.
10989 (ALLDEPFILES): Remove corelow.c.
10990 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10991 * config/alpha/alpha-osf3.mh: Likewise.
10992 * config/alpha/fbsd.mh: Likewise.
10993 * config/arm/nbsdaout.mh: Likewise.
10994 * config/arm/nbsdelf.mh: Likewise.
10995 * config/i386/i386gnu.mh: Likewise.
10996 * config/ia64/hpux.mh: Likewise.
10997 * config/ia64/linux.mh: Likewise.
10998 * config/m32r/linux.mh: Likewise.
10999 * config/m68k/linux.mh: Likewise.
11000 * config/mips/irix5.mh: Likewise.
11001 * config/mips/irix6.mh: Likewise.
11002 * config/pa/hpux.mh: Likewise.
11003 * config/pa/linux.mh: Likewise.
11004 * config/powerpc/aix.mh: Likewise.
11005 * config/sparc/linux.mh: Likewise.
11006 * config/sparc/linux64.mh: Likewise.
11007 * config/sparc/sol2.mh: Likewise.
11008 * config/vax/vax.mh: Likewise.
11009 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11010 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11011 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11012 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11013 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11014 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11015 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11016 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11017 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11018 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11019 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11020 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11021 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11022 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11023 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11024 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11025 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11026 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11027 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11028 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11029 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11030 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11031 corelow.o from gdb_target_obs.
11032 * corefile.c (core_target): Update the comment on NULL value.
11033 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11034 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11035 MATCHES. Drop YUMMY set on NULL.
11036 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11037 reclaim CORE_DATA if it is already NULL.
11038
11039 2012-01-09 Doug Evans <dje@google.com>
11040
11041 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11042 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11043
11044 2012-01-09 Keith Seitz <keiths@redhat.com>
11045
11046 * breakpoint.c (wrapper.h): Don't include.
11047
11048 2012-01-09 Keith Seitz <keiths@redhat.com>
11049
11050 * Makefile.in (SFILES): Remove wrapper.c.
11051 (HFILES_NO_SRCDIR): Remove wrapper.h.
11052 (COMMON_OBS): Remove wrapper.o.
11053 * cli/cli-interp.c: Don't inlude wrapper.h.
11054 * corelow.c: Likewise.
11055 (core_open): Replace gdb_target_find_new_threads with
11056 TRY_CATCH around target_find_new_threads.
11057 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11058 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11059 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11060 evaluate_expression.
11061 (varobj_set_value): Likewise for evaluate_expression and
11062 value_assign.
11063 (install_new_variable): Likewise for value_fetch_lazy.
11064 (adjust_value_for_child_access): Likewise for value_ind.
11065 (c_describe_child): Likewise for value_subscript and
11066 value_ind.
11067 (c_value_of_root): Likewise for evaluate_expression.
11068 * wrapper.c: Remove.
11069 * wrapper.h: Remove.
11070
11071 2012-01-09 Doug Evans <dje@google.com>
11072
11073 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11074 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11075 "abfd" args with "section". All callers updated.
11076 Error checking code moved ...
11077 (error_check_comp_unit_head): ... here. New function.
11078 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11079 Delete arg "abfd". New arg "type_offset". All callers updated.
11080 (create_debug_types_hash_table): Simplify by using
11081 read_and_check_type_unit_head.
11082
11083 * parser-defs.h (namecopy): Delete.
11084 * parse.c (namecopy, namecopy_size): Move into copy_name.
11085
11086 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11087
11088 Partially fix duplicate .o files after omitting libbfd.a.
11089 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11090 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11091 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11092 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11093 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11094 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11095 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11096
11097 2012-01-09 Pedro Alves <palves@redhat.com>
11098
11099 * MAINTAINERS: Update my email address.
11100
11101 2012-01-08 Doug Evans <dje@google.com>
11102
11103 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11104 n_type_units. Rename type_comp_units to all_type_units.
11105 All uses updated.
11106 (add_signatured_type_cu_to_table): Renamed from
11107 add_signatured_type_cu_to_list. All callers updated.
11108
11109 * gdbtypes.h (struct cplus_struct_type): Delete member
11110 nfn_fields_total. All uses removed.
11111
11112 2012-01-06 Doug Evans <dje@google.com>
11113
11114 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11115 to top of file.
11116 (dwarf2_find_comp_unit): Delete.
11117 (process_psymtab_comp_unit): Make result "void".
11118 Delete args buffer, info_ptr, buffer_size, and replace with
11119 "section". All callers updated.
11120 (dwarf2_build_psymtabs_hard): Simplify.
11121
11122 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11123 Thiago Jung Bauermann <bauerman@br.ibm.com>
11124
11125 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11126 before `struct gdb_exception'.
11127 * breakpoint.c (update_global_location_list_nothrow)
11128 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11129 * cp-abi.c (value_rtti_type): Likewise.
11130 * cp-support.c (cp_validate_operator): Likewise.
11131 * infrun.c (insert_exception_resume_breakpoint)
11132 (check_exception_resume, keep_going): Likewise.
11133 * mi-interp.c (mi_breakpoint_created)
11134 (mi_breakpoint_modified): Likewise.
11135 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11136 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11137 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11138
11139 2012-01-05 Doug Evans <dje@google.com>
11140
11141 * dwarf2read.c (statement_prologue): Delete, unused.
11142
11143 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11144 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11145
11146 * dwarf2read.c (comp_unit_header): Delete, unused.
11147
11148 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11149
11150 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11151 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11152
11153 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11154
11155 * infrun.c (normal_stop): Don't skip calling the normal_stop
11156 observers if the thread was doing a multi-step, but stopped for
11157 some reason other than stepping.
11158
11159 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11160
11161 * cli/cli-decode.h: Add comments.
11162 (CMD_LIST_AMBIGUOUS): Moved to command.h
11163 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11164 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11165 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11166 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11167 (add_com, add_com_alias, add_info, add_info_alias)
11168 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11169 declarations.
11170 * command.h: Add and adjust comments.
11171 (CMD_LIST_AMBIGUOUS): Moved here.
11172 (help_cmd, help_cmd_list): Delete declarations.
11173
11174 2012-01-04 Doug Evans <dje@google.com>
11175
11176 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11177 All callers updated.
11178 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11179 Replace all arguments with "per_cu". All callers updated.
11180
11181 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11182
11183 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11184 New arg "per_cu". All callers updated.
11185
11186 Delete #if 0'd out code.
11187 * language.c (binop_result_type): Delete.
11188 (simple_type, ordered_type, same_type, integral_type): Delete.
11189 (numeric_type, character_type, string_type, boolean_type): Delete.
11190 (float_type, structured_type): Delete.
11191 * language.h: Update.
11192
11193 2012-01-04 Tom Tromey <tromey@redhat.com>
11194
11195 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11196
11197 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11198
11199 * corefile.c (close_exec_file): Delete.
11200 (reopen_exec_file): Remove commented out code that seems related
11201 to close_exec_file, which is being deleted here.
11202 * inferior.h (close_exec_file): Delete.
11203 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11204
11205 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11206
11207 * ada-lang.c: #include "cli/cli-utils.h".
11208 (get_selections): Use skip_spaces.
11209 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11210 (catch_ada_exception_command_split): Use skip_spaces.
11211 (ada_decode_assert_location): Likewise.
11212
11213 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11214
11215 * linespec.c (decode_line_internal): Check for C++ or Java
11216 compound constructs only if the current language is C, C++
11217 or Java.
11218
11219 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11220
11221 Revert:
11222 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11223 Joel Brobecker <brobecker@adacore.com>
11224 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11225 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11226 3 times.
11227 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11228 fall through into AT_ENTRY_POINT.
11229 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11230 DUMMY_ADDR with it.
11231 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11232 PPC_INSN_SIZE skip to 3 times.
11233
11234 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11235
11236 * linespec.c (add_minsym): Preserve function descriptors.
11237
11238 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11239
11240 * breakpoint.c (all_locations_are_pending): Consider locations
11241 in program spaces executing during startup pending as well.
11242
11243 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11244
11245 Copyright year update in most files of the GDB Project.
11246
11247 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11248
11249 * copyright.sh: Delete.
11250 * copyright.py: Rewrite.
11251
11252 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11253
11254 * gnulib/extra/update-copyright: New file, imported from gnulib.
11255
11256 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11257
11258 * README (Copyright and License Notices): New section.
11259
11260 2012-01-03 Tom Tromey <tromey@redhat.com>
11261
11262 PR python/12533:
11263 * python/py-value.c (valpy_dereference, valpy_get_address
11264 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11265 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11266 (valpy_absolute, valpy_richcompare): Free intermediate values.
11267
11268 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11269
11270 * ada-lang.c: Reformat the copyright notice.
11271
11272 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11273
11274 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11275 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11276 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11277 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11278 Revert this part of:
11279 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11280 Build gdb directly from *.o files not using libgdb.a.
11281 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11282
11283 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11284
11285 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11286 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11287 Reformat the copyright header.
11288
11289 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11290
11291 Revert this part of:
11292 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11293 Remove the gdbtui binary.
11294 * gdb.c (main): Remove args.interpreter_p initialization.
11295 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11296 * main.h (struct captured_main_args): Remove interpreter_p.
11297
11298 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11299
11300 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11301
11302 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11303
11304 * top.c (print_gdb_version): Update copyright year.
11305
11306 2012-01-02 Yao Qi <yao@codesourcery.com>
11307
11308 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11309
11310 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11311 Joel Brobecker <brobecker@adacore.com>
11312
11313 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11314 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11315 3 times.
11316 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11317 fall through into AT_ENTRY_POINT.
11318 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11319 DUMMY_ADDR with it.
11320 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11321 PPC_INSN_SIZE skip to 3 times.
11322
11323 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11324
11325 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11326 the return value.
11327 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11328
11329 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11330
11331 Build gdb directly from *.o files not using libgdb.a.
11332 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11333 (COMMON_OBS): Remove solib-target.o.
11334 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11335 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11336 (LIBGDB_OBS, libgdb.a): Move it above.
11337 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11338 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11339 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11340 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11341 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11342 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11343 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11344 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11345 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11346 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11347 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11348 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11349 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11350 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11351 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11352 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11353 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11354 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11355 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11356 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11357 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11358 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11359 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11360 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11361 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11362 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11363 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11364
11365 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11366
11367 Remove the gdbtui binary.
11368 * .gitignore (/gdbtui): Remove.
11369 * Makefile.in (TUI): Remove.
11370 (SUBDIR_TUI_OBS): Remove tui-main.o.
11371 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11372 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11373 (tui-main.o): Remove.
11374 (all_object_files): Remove tui-main.o.
11375 * NEWS: New note for the gdbtui removal.
11376 * configure: Rebuilt.
11377 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11378 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11379 CONFIG_UNINSTALL respectively.
11380 * gdb.c (main): Remove args.interpreter_p initialization.
11381 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11382 * main.h (struct captured_main_args): Remove interpreter_p.
11383 * tui/tui-main.c: Remove.
11384
11385 2012-01-01 Doug Evans <dje@google.com>
11386
11387 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11388 (dwarf2_physname, read_import_statement): Ditto.
11389 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11390 (process_structure_scope read_subroutine_type): Ditto.
11391 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11392 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11393 (dwarf2_fetch_die_location_block): Ditto.
11394 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11395
11396 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11397 All callers updated.
11398 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11399 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11400 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11401
11402 * dwarf2read.c (load_cu): Move assert to more useful location.
11403
11404 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11405 All callers updated.
11406
11407 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11408 (dwarf2_elf_names): Minor reformat.
11409 (dwarf2_per_cu_data): Tweak comment.
11410 (dwarf2_read_section): Fix comment.
11411 (create_all_comp_units): Fix comment.
11412 (load_full_comp_unit): Fix comment.
11413 (process_full_comp_unit): Fix comment.
11414 (read_signatured_type): Fix comment.
11415
11416 For older changes see ChangeLog-2011.
11417 \f
11418 Local Variables:
11419 mode: change-log
11420 left-margin: 8
11421 fill-column: 74
11422 version-control: never
11423 coding: utf-8
11424 End:
This page took 0.364604 seconds and 5 git commands to generate.