1 2012-11-08 Tom Tromey <tromey@redhat.com>
3 * python/py-bpevent.c: Include defs.h.
4 * python/py-continueevent.c: Include defs.h.
5 * python/py-event.c: Include defs.h.
6 * python/py-event.h: Don't include defs.h.
7 * python/py-events.h: Don't include defs.h.
8 * python/py-evts.c: Include defs.h.
9 * python/py-exitedevent.c: Include defs.h.
10 * python/py-newobjfileevent.c: Include defs.h.
11 * python/py-signalevent.c: Include defs.h.
12 * python/py-stopevent.c: Include defs.h.
13 * python/py-threadevent.c: Include defs.h.
15 2012-11-08 Pierre Muller <muller@sourceware.org>
17 * update-web-ari.sh (print_heading): Add number of files
19 (nb_files): New variable counting the number of sources
20 files found by gdb_find.sh script.
21 (debug_awk): New variable to allow extra debug output.
22 (indexes): Add more information if DEBUG_AWK is set.
24 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
26 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
27 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
28 following the change in PLT call stubs on linker.
30 2012-11-08 Pierre Muller <muller@sourceware.org>
32 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
34 (AWK): Use = instead of == for sh test to avoid warning.
35 (Linux rule): Correct [:digit] into [[:digit:]].
36 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
37 (vasprintf rule): Adapt to common subdirectory moves.
38 (xasprintf rule): Idem.
39 (xvasprintf rule): Idem.
40 (var_boolean rule): Accept occurence in == or != test.
42 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
44 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
46 * tui/tui-hooks.c (tui_inferior_exit): New function.
47 (tui_detach_hook): Remove.
48 (tui_install_hooks): Install the inferior exit observer.
49 (tui_remove_hooks): Remove it.
51 2012-11-08 Yao Qi <yao@codesourcery.com>
54 * source.c (_initialize_source): Call add_com_alias to abbreviate
55 'forward-search' as 'fo'.
57 2012-11-07 Pedro Alves <palves@redhat.com>
59 * arm-tdep.c: Make defs.h be the first include.
60 * coff-pe-read.c: Ditto.
64 * ppcnbsd-nat.c: Ditto.
65 * ada-varobj.h: Don't include defs.h.
66 * i386-darwin-tdep.h: Ditto.
69 2012-11-07 Pedro Alves <palves@redhat.com>
71 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
74 2012-11-07 Pierre Muller <muller@sourceware.org>
76 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
77 File already uses "gdb_dirent.h" header.
79 2012-11-07 Yao Qi <yao@codesourcery.com>
81 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
84 2012-11-06 Tom Tromey <tromey@redhat.com>
86 * target.h (inferior_has_forked, inferior_has_vforked)
87 (inferior_has_execd, inferior_has_called_syscall): Remove
90 2012-11-06 Pierre Muller <muller@sourceware.org>
92 * remote.c (remote_insert_hw_breakpoint): ARI fix,
93 add missing internalization markup.
95 2012-11-06 Pedro Alves <palves@redhat.com>
99 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
101 2012-11-06 Pierre Muller <muller@sourceware.org>
103 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
106 2012-11-05 Joel Brobecker <brobecker@adacore.com>
108 * gnulib/update-gnulib.sh: New script.
110 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
112 * MAINTAINERS: Update my email address.
114 2012-11-05 Tom Tromey <tromey@redhat.com>
116 * frame.c (put_frame_register): Don't use temporary buffer.
118 2012-11-05 Pedro Alves <palves@redhat.com>
120 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
121 child. Clear 'pending_detach'.
122 * infrun.c (handle_vfork_child_exec_or_exit): Clear
123 'pending_detach' in the vfork parent.
125 2012-11-05 Doug Evans <dje@google.com>
127 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
128 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
129 * dwarf2read.c: #include "elf-bfd.h".
130 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
131 (dwop_section_names): Renamed from dwo_section names. All uses
132 updated. Add entries for .debug_cu_index, .debug_tu_index.
133 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
135 (struct dwp_sections): New type.
136 (struct virtual_dwo_sections): New type.
137 (struct dwp_hash_table): New type.
138 (struct dwp_file): New type.
139 (init_cutu_and_read_dies): Ensure DWO info/types section has been
140 read in. Handle DWOs coming from DWP files.
141 (lookup_dwo_file_slot): New function.
142 (dwarf2_locate_dwo_sections): Move definition closer to use.
143 (create_dwo_debug_info_hash_table_reader): Renamed from
144 create_debug_info_hash_table_reader. All callers updated.
145 (create_dwo_debug_info_hash_table): Renamed from
146 create_debug_info_hash_table. All callers updated.
147 (create_dwp_hash_table): New function.
148 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
149 (lookup_dwo_in_dwp): New function.
150 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
151 is_dwp. All callers updated.
152 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
153 (open_and_init_dwo_file): Renamed from init_dwo_file.
155 (lookup_dwo_file): Delete.
156 (dwarf2_locate_dwp_sections): New function.
157 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
158 (allocate_dwp_loaded_cutus_table): New function.
159 (open_and_init_dwp_file): New function.
160 (lookup_dwo_cutu): New function.
161 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
163 2012-11-03 Yao Qi <yao@codesourcery.com>
166 * breakpoint.c (trace_pass_set_count): Call
167 observer_notify_breakpoint_modified instead of
168 observer_notify_tracepoint_modified.
169 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
171 2012-11-02 Tom Tromey <tromey@redhat.com>
173 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
174 argument to complete_on_enum.
176 2012-11-02 Tom Tromey <tromey@redhat.com>
178 * configure: Rebuild.
179 * configure.ac (build_warnings): Add -Wempty-body.
180 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
181 * remote.c (handle_notification): Use braces for empty 'else' body.
182 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
184 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
186 * solib-som.c (som_relocate_section_addresses): Use braces
187 for empty 'else' body.
188 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
189 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
191 2012-11-02 Pedro Alves <palves@redhat.com>
195 * infrun.c (handle_inferior_event)
196 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
197 null_ptid before handling a vfork child exec or exit. Switch to
198 the event ptid afterwards.
200 2012-11-02 Yao Qi <yao@codesourcery.com>
202 * std-operator.def: Remove OP_LABELED.
203 * eval.c: Remove the declaration of 'get_label'.
205 (evaluate_struct_tuple): Remove code handling OP_LABELED.
207 Remove local variable 'variantno' and related code.
208 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
210 * expprint.c (print_subexp_standard): Likewise.
211 (dump_subexp_body_standard): Likewise.
212 * parse.c (operator_length_standard): Likewise.
214 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
216 Incorporate ARI web page generator into GDB sources.
217 * contrib/ari/create-web-ari-in-src.sh: New file.
218 * contrib/ari/gdb_ari.sh: New file.
219 * contrib/ari/gdb_find.sh: New file.
220 * contrib/ari/update-web-ari.sh: New file.
222 2012-10-31 Tom Tromey <tromey@redhat.com>
224 * gdbarch.c: Rebuild.
225 * gdbarch.sh: Remove references to gdbarch_swap.
226 * corelow.c (core_open): Remove obsolete comment.
228 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
231 * c-typeprint.c (c_print_type): Don't print a space for vector
232 types, this is handled within the suffix.
233 (c_type_print_varspec_suffix): Add a space to vector suffix.
235 2012-10-26 Pedro Alves <palves@redhat.com>
237 * amd64-tdep.c (amd64_relocate_instruction): Use
238 store_unsigned_integer instead of memcpy.
239 * i386-tdep.c (i386_relocate_instruction): Ditto.
241 2012-10-26 Pedro Alves <palves@redhat.com>
243 * infrun.c (handle_inferior_event): Merge handling of
244 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
247 2012-10-26 Pedro Alves <palves@redhat.com>
249 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
252 2012-10-26 Pedro Alves <palves@redhat.com>
254 * target.c (target_waitstatus_to_string): Handle
255 TARGET_WAITKIND_VFORK_DONE.
257 2012-10-26 Pedro Alves <palves@redhat.com>
259 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
260 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
262 2012-10-24 Tristan Gingold <gingold@adacore.com>
264 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
267 2012-10-24 Joel Brobecker <brobecker@adacore.com>
269 * ravenscar-thread.c (ravenscar_wait): Only update the list
270 of threads and inferior_ptid if the inferior is still alive.
272 2012-10-24 Joel Brobecker <brobecker@adacore.com>
274 * ada-lang.c (is_known_support_routine): Use lbasename when
275 matching the symtab's filename against
276 known_runtime_file_name_patterns.
278 2012-10-24 Joel Brobecker <brobecker@adacore.com>
280 * ada-lang.c (ada_same_array_size_p): New function.
281 (ada_promote_array_of_integrals): New function.
282 (coerce_for_assign): Add handling of arrays where the elements
283 are integrals of a smaller size than the size of the target
286 2012-10-24 Joel Brobecker <brobecker@adacore.com>
288 * doublest.c (convert_doublest_to_floatformat): Fix comparison
289 against maximum exponent value.
291 2012-10-24 Joel Brobecker <brobecker@adacore.com>
293 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
296 2012-10-24 Joel Brobecker <brobecker@adacore.com>
298 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
299 strip typedef layer when computing the fixed type's field type,
300 only when computing its size.
302 2012-10-24 Mark Kettenis <kettenis@gnu.org>
305 * i386-tdep.c (i386_return_value): Handle complex double and long
308 2012-10-24 Joel Brobecker <brobecker@adacore.com>
310 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
311 New local variable args_len.
312 Quote the name of the executable when computing the command line.
314 2012-10-23 Mark Kettenis <kettenis@gnu.org>
319 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
321 * amd64-tdep.c (amd64_classify): Classify complex types.
322 (amd64_return_value): Handle the COMPLEX_X87 class.
324 2012-10-23 Joel Brobecker <brobecker@adacore.com>
326 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
327 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
329 2012-10-23 Joel Brobecker <brobecker@adacore.com>
331 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
333 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
334 to amd64_windows_auto_wide_charset.
336 2012-10-23 Yao Qi <yao@codesourcery.com>
338 * event-top.c (mark_async_signal_handler_wrapper): Remove.
339 * event-top.h: Remove its declaration.
340 (async_request_quit): Call mark_async_signal_handler instead of
341 mark_async_signal_handler_wrapper.
342 (async_do_nothing, async_disconnect): Likewise.
343 (async_stop_sig): Likewise.
344 * remote.c (handle_remote_sigint): Likewise.
345 (handle_remote_sigint_twice): Likewise.
347 2012-10-23 Yao Qi <yao@codesourcery.com>
349 * event-top.c (sigint_token, sighup_token): Replace 'void *'
350 with 'static struct async_signal_handler *'.
351 (sighup_token, sigquit_token, sigstp_token): Likewise.
353 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
355 * gdbarch.sh (function_list): Use 'pstring' when printing
356 a variable which could return NULL.
357 * gdbarch.c: Regenerate.
359 2012-10-10 Joel Brobecker <brobecker@adacore.com>
360 Tom Tromey <tromey@redhat.com>
362 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
363 inneffective if condition by gdb assertion. Add function
366 2012-10-19 Joel Brobecker <brobecker@adacore.com>
368 * parser-defs.h (struct exp_descriptor): Document constraint
369 on return value for "op_name" callbacks.
371 2012-10-18 Tom Tromey <tromey@redhat.com>
373 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
374 * symtab.c (iterate_over_some_symtabs): Constify.
375 * source.h (symtab_to_fullname): Return 'const char *'.
376 * source.c (symtab_to_fullname): Return 'const char *'.
377 * python/py-symtab.c (stpy_fullname): Constify.
378 * cli/cli-cmds.c (edit_command): Constify.
379 * breakpoint.c (print_breakpoint_location)
380 (update_static_tracepoint): Constify.
382 2012-10-18 Tom Tromey <tromey@redhat.com>
384 * breakpoint.c (compare_breakpoints): Fix comparison.
386 2012-10-18 Tom Tromey <tromey@redhat.com>
388 * valprint.c (generic_emit_char, generic_printstr): Pass size of
389 gdb_wchar_t to convert_between_encodings.
391 2012-10-17 Yao Qi <yao@codesourcery.com>
393 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
394 more parameter 'inferior'.
395 * corefile.c (write_memory_with_notification): Caller update.
397 * mi/mi-cmd-var.c: Include "mi-main.h".
398 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
399 to 1 and restore it later.
400 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
401 and "data-write-memory-bytes.
402 * mi/mi-interp.c: Include objfiles.h.
403 (mi_interpreter_init): Call observer_attach_memory_changed.
404 (mi_memory_changed): New.
405 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
408 * NEWS: Mention new MI notification "memory-changed".
410 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
412 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
414 2012-10-15 Doug Evans <dje@google.com>
416 New option -nh: inhibit loading of ~/.gdbinit.
418 * main.c (captured_main): Recognize and process -nh.
419 (print_gdb_help): Mention -nh.
420 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
422 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
426 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
428 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
429 nor pc_regnum_from_eax.
430 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
431 nor pc_regnum_from_eax.
433 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
435 Fix entry values resolving in inlined frames.
436 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
437 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
440 2012-10-15 Joel Brobecker <brobecker@adacore.com>
442 * configure.ac: Build with -DMS_WIN64 if building with Python
443 enabled using GCC on amd64-windows.
444 * configure: Regenerate.
446 2012-10-15 Tom Tromey <tromey@redhat.com>
449 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
452 2012-10-15 Tom Tromey <tromey@redhat.com>
455 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
457 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
459 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
460 reset thread numbering back to 1.
462 2012-10-11 Doug Evans <dje@google.com>
464 PR breakpoints/14643.
465 * linespec.c (struct ls_parser): New member keyword_ok.
466 (linespec_lexer_lex_string): Add comment.
467 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
469 (parse_linespec): Set keyword_ok.
471 2012-10-10 Doug Evans <dje@google.com>
473 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
474 "0x" prefix on address in log message.
476 * dwarf2read.c (read_1_byte): Add const to buf parameter.
477 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
478 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
479 (lookup_dwo_file): Add const to dwo_name parameter.
480 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
482 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
484 Fix crash during stepping on ppc32.
485 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
488 2012-10-03 Doug Evans <dje@google.com>
491 * buildsym.c (buildsym_init): Reset using_directives to NULL.
493 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
495 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
496 output and use uint32_t not long to ensure 4 byte size.
498 2012-10-02 Joel Brobecker <brobecker@adacore.com>
500 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
503 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
505 * target.c (simple_search_memory): Include access length in
508 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
509 Edjunior Machado <emachado@linux.vnet.ibm.com>
512 * solib.c (solib_find): Prevent GDB from loading native libraries when
513 debugging a cross-target corefile.
515 2012-09-28 selven <pcthegreat@gmail.com>
517 Make definition match declaration.
519 * regcache.c (regcache_register_status): Change return type to
520 enum register_status.
522 2012-09-28 Yao Qi <yao@codesourcery.com>
524 * mi/mi-main.c (mi_cmd_data_write_memory): Call
525 write_memory_with_notification instead of write_memory.
526 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
527 instead of target_write_memory.
529 2012-09-28 Yao Qi <yao@codesourcery.com>
531 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
532 when the length of content is not an even number.
534 2012-09-27 Tom Tromey <tromey@redhat.com>
536 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
537 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
539 2012-09-27 Joel Brobecker <brobecker@adacore.com>
541 * sol-thread.c (sol_thread_fetch_registers)
542 (sol_thread_store_registers): Delete commented out code.
544 2012-09-27 Joel Brobecker <brobecker@adacore.com>
546 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
547 Move these functions to sparc-sol-thread.c.
548 * sparc-sol-thread.c: New file.
549 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
550 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
552 * configure: Regenerate.
554 2012-09-27 Joel Brobecker <brobecker@adacore.com>
556 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
557 Remove commented-out code.
559 2012-09-27 Joel Brobecker <brobecker@adacore.com>
561 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
562 Enable this code for sparc hosts only.
564 2012-09-27 Joel Brobecker <brobecker@adacore.com>
566 * procfs.h (procfs_find_LDT_entry): Add declaration.
567 * sol-thread.c (ps_lgetLDT): Delete local declaration of
568 function procfs_find_LDT_entry.
570 2012-09-27 Joel Brobecker <brobecker@adacore.com>
572 * procfs.c (proc_get_LDT_entry): Make static.
574 2012-09-27 Joel Brobecker <brobecker@adacore.com>
576 * procfs.c (proc_find_memory_regions): Fix declaration.
578 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
580 * amd64-tdep.c (amd64_return_value): Revert previous change
581 that used TYPE_LENGTH directly.
582 * bfin-tdep.c (bfin_extract_return_value): Likewise.
583 (bfin_store_return_value): Likewise.
584 * cris-tdep.c (cris_store_return_value): Likewise.
585 (cris_extract_return_value): Likewise.
586 * h8300-tdep.c (h8300_extract_return_value): Likewise.
587 * hppa-tdep.c (hppa64_return_value): Likewise.
588 * lm32-tdep.c (lm32_store_return_value): Likewise.
589 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
590 * spu-tdep.c (spu_value_from_register): Likewise.
591 * vax-tdep.c (vax_return_value): Likewise.
593 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
595 * gdbtypes.c (lookup_array_range_type): Expand parameters
596 LOW_BOUND and HIGH_BOUND to LONGEST.
597 (lookup_string_range_type): Likewise.
598 * gdbtypes.h (lookup_array_range_type): Likewise.
599 (lookup_string_range_type): Likewise.
600 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
601 Expand HIGHBOUND to ssize_t.
602 (value_string): Likewise.
603 * value.h (value_cstring): Expand parameter LEN to ssize_t.
604 (value_string): Likewise.
606 2012-09-27 Yao Qi <yao@codesourcery.com>
609 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
610 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
613 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
615 * procfs.c: Add gdb_bfd header.
616 * rs6000-nat.c: Likewise.
617 * solib-pa64.c: Likewise.
618 * spu-linux-nat.c: Likewise.
619 * windows-nat.c: Likewise.
621 2012-09-26 Tom Tromey <tromey@redhat.com>
623 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
625 2012-09-26 Tom Tromey <tromey@redhat.com>
627 * dwarf2read.c (mark_common_block_symbol_computed): New function.
628 (read_common_block): Handle child DIEs with
629 DW_AT_data_member_location.
630 (new_symbol_full): Add special case for common blocks.
632 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
633 Tom Tromey <tromey@redhat.com>
635 * dwarf2read.c (read_common_block): Rewrite.
636 (new_symbol_full): Handle DW_TAG_common_block.
637 * f-lang.c (head_common_list, find_common_for_function):
639 * f-lang.h (struct common_entry, struct saved_f77_common,
640 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
641 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
642 BLANK_COMMON_NAME_LOCAL): Remove.
643 (struct common_block): New.
644 * f-valprint.c (list_all_visible_commons): Remove.
645 (info_common_command_for_block): New function.
646 (info_common_command): Use it.
647 * stack.c (iterate_over_block_locals): Special case for
649 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
651 (struct general_symbol_info) <value.common_block>: New field.
652 (SYMBOL_VALUE_COMMON_BLOCK): New define.
654 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
655 Tom Tromey <tromey@redhat.com>
657 * f-lang.c (allocate_saved_bf_node,
658 allocate_saved_function_node, allocate_saved_f77_common_node,
659 allocate_common_entry_node, tail_common_list, current_common,
660 saved_bf_list, saved_bf_list_end, current_head_bf_list,
661 tmp_bf_ptr, add_common_block, add_common_entry,
662 find_first_common_named, patch_common_entries,
663 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
664 global_remote_debug, get_bf_for_fcn, saved_function_list,
665 saved_function_list_end, clear_function_list, struct saved_fcn,
666 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
667 SAVED_BF, SAVED_BF_PTR): Remove.
668 * f-lang.h (tail_common_list, current_common,
669 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
670 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
671 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
672 real_main_c_value): Remove.
673 * f-valprint.c (there_is_a_visible_common_named): Remove.
675 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
677 * breakpoint.c (update_global_location_list): Ignore previous
678 duplicate status of a breakpoint when starting a new scan for
679 duplicate breakpoints.
681 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
683 * arm-tdep.c (arm_skip_prologue): Extending producer check to
684 support LLVM compiler.
686 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
688 * amd64-tdep.c (amd64_return_value): Use 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.
700 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
702 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
703 parameter LEN to ssize_t.
705 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
707 * ada-valprint.c (ada_val_print_1): Eliminate single-use
709 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
711 (alpha_store_return_value): Likewise.
712 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
713 (amd64_push_arguments): Likewise.
714 * ax-gdb.c (gen_trace_static_fields): Likewise.
715 (gen_traced_pop): Likewise.
716 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
717 * breakpoint.c (update_watchpoint): Likewise.
718 * findcmd.c (parse_find_args): Use local variable for type
720 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
721 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
722 (h8300_store_return_value): Likewise.
723 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
724 Use i386_darwin_arg_type_alignment directly.
725 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
726 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
727 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
728 (m68hc11_extract_return_value): Likewise.
729 * mep-tdep.c (mep_push_dummy_call): Likewise.
730 * printcmd.c (float_type_from_length): Likewise.
731 * s390-tdep.c (s390_value_from_register): Likewise.
732 * stack.c (read_frame_arg): Likewise.
733 * tracepoint.c (encode_actions_1): Likewise.
734 * valops.c (value_fetch_lazy): Use local variable for type
735 instead of length. Use TYPE_LENGTH directly.
736 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
738 2012-09-25 Joel Brobecker <brobecker@adacore.com>
740 * symtab.c (skip_prologue_sal): Fix typo in comment.
742 2012-09-25 Joel Brobecker <brobecker@adacore.com>
744 * linespec.c (create_sals_line_offset): Fix typo in comment.
746 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
748 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
749 use plongest to print the array size.
751 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
753 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
754 * p-valprint.c (pascal_type_print_base): Likewise.
756 2012-09-22 Yao Qi <yao@codesourcery.com>
758 * remote.c (remote_get_trace_status): Remove setting default
759 values of fields of 'ts'.
761 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
763 Fix internal error on canonicalization of clang types.
764 * cp-name-parser.y (operator): New comment at make_operator call for
765 new, delete, new[] and delete[].
766 (exp): Use "sizeof ". Add new comment at make_operator call.
768 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
770 Fix disassemble without parameters in tailcall frame.
771 * cli/cli-cmds.c (disassemble_current_function): Use
772 get_frame_address_in_block.
774 2012-09-21 Tom Tromey <tromey@redhat.com>
776 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
777 TYPE_CODE_UNION>: Unify, removing a goto.
779 2012-09-21 Tom Tromey <tromey@redhat.com>
781 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
783 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
785 * findvar.c (read_frame_register_value): Mark the result value as
786 optimized out if any of the input registers have been optimized out.
788 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
790 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
792 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
794 * eval.c (evaluate_subexp_standard): Eliminate single-use
797 2012-09-21 Yao Qi <yao@codesourcery.com>
799 * mi/mi-interp.c: Declare mi_record_changed.
800 (mi_interpreter_init): Call observer_attach_record_changed.
801 (mi_record_changed): New.
802 * record.c (record_open): Call observer_notify_record_changed.
803 (cmd_record_stop): Call observer_notify_record_changed.
806 2012-09-20 Tom Tromey <tromey@redhat.com>
809 * python/python.c (finalize_python): New function.
810 (_initialize_python): Make a final cleanup.
812 2012-09-19 Doug Evans <dje@google.com>
814 * buildsym.h (param_symbols): Delete, unused.
815 (context_stack): Delete member "params", unused.
816 * buildsym.c (push_context): Update.
817 * dwarf2read.c (read_func_scope): Update.
819 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
821 * sh-tdep.c (sh_register_convert_to_virtual)
822 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
823 all callers. Just do a memcpy if not the little-endian case.
825 * h8300-tdep.c (h8300_gdbarch_init): Invoke
826 set_gdbarch_double_format and set_gdbarch_long_double_format.
827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
828 set_gdbarch_double_format.
829 * sh-tdep.c (sh_gdbarch_init): Likewise.
831 * NEWS: Document the removal of SH's 'regs' command.
832 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
835 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
837 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
840 2012-09-18 Joel Brobecker <brobecker@adacore.com>
842 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
843 language when iterating over symbols.
845 2012-09-18 Yao Qi <yao@codesourcery.com>
847 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
848 (mi_interpreter_init): Call observer_attach_tsv_created and
849 observer_attach_tsv_deleted.
850 (mi_tsv_created, mi_tsv_deleted): New.
851 * tracepoint.c (delete_trace_state_variable): Call
852 observer_notify_tsv_deleted.
853 (trace_variable_command): Call observer_notify_tsv_created.
854 (delete_trace_variable_command): Call
855 observer_notify_tsv_deleted.
856 (create_tsv_from_upload): Call observer_notify_tsv_created.
859 2012-09-18 Yao Qi <yao@codesourcery.com>
861 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
862 if traceframe changed.
863 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
865 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
866 (mi_interpreter_init): Hook mi_traceframe_changed to observer
867 'traceframe_changed'.
868 (mi_traceframe_changed): New.
869 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
871 * NEWS: Mention the new MI notification.
873 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
875 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
877 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
879 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
880 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
881 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
882 Extend code also for PaX support. Convert all gdb_assert to warning
885 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
887 Implement auto-load user conveniences suggested by Doug Evans.
888 * auto-load.c: Include top.h.
889 (file_is_auto_load_safe): New variable advice_printed. Print advice.
890 (_initialize_auto_load): New variable scripts_directory_help. Mention
891 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
892 scripts-directory. Document in online help one can use also files for
893 set auto-load safe-path.
894 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
895 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
897 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
899 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
902 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
904 * m2-valprint.c (m2_print_array_contents): Eliminate variable
905 ELTLEN and use TYPE_LENGTH directly.
906 (m2_val_print): Likewise.
907 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
908 variable LEN and use TYPE_LENGTH directly.
909 (m68k_svr4_store_return_value): Likewise.
910 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
911 ARGLEN and use TYPE_LENGTH directly.
912 (mips_o64_push_dummy_call): Likewise.
913 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
914 variable LENGTH and use TYPE_LENGTH directly.
915 (s390_function_arg_float): Likewise.
916 (s390_function_arg_integer): Likewise.
917 (s390_push_dummy_call): Likewise.
918 (s390_return_value_convention): Likewise.
919 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
920 TYPE_LENGTH directly.
922 2012-09-17 Yao Qi <yao@codesourcery.com>
924 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
925 Update comment to add_setshow_integer_cmd.
926 * cli/cli-setshow.c (do_set_command): Handle case
927 'var_zuinteger_unlimited'.
928 (do_show_command): Likewise.
929 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
930 for command 'remotetimeout'.
931 * command.h (enum var_types): New zuinteger_unlimited. Update comment
933 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
934 for command 'set listsize'.
936 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
938 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
941 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
944 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
945 (frame_pop): Drop also TAILCALL_FRAME frames.
946 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
948 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
949 Pedro Alves <palves@redhat.com>
952 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
953 function start if we are already at function start. Both for
954 reverse-next and for reverse-step into function without line number
957 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
959 Code cleanup - rename 'inline' depth to 'artificial' depth.
960 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
961 frame_id_artificial_p, extend the comment.
962 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
963 * frame.c (fprint_frame_id): Rename at a user, change debug output
964 text to "artificial=".
965 (skip_inlined_frames): Rename to ...
966 (skip_artificial_frames): ... here. Extend the comment.
967 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
968 (frame_id_inlined_p): Rename to ...
969 (frame_id_artificial_p): ... here. Rename at a user.
970 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
971 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
973 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
975 (frame_id_inlined_p): Rename to ...
976 (frame_id_artificial_p): ... here.
977 * inline-frame.c (inline_frame_this_id): Rename at a user.
979 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
981 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
982 vector variables using vector_size syntax rather than array
985 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
987 * valarith.c (value_concat): Replace unsafe ALLOCA with
990 2012-09-14 Pedro Alves <palves@redhat.com>
992 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
994 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
996 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
997 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
998 data-directory as appropriate.
1000 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1002 * printcmd.c (ui_printf): Eliminate single-use variable
1005 2012-09-14 Yao Qi <yao@codesourcery.com>
1006 Pedro Alves <palves@redhat.com>
1008 * valops.c (value_assign): Move observer_notify_target_changed
1009 below to replace reinit_frame_cache.
1011 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1013 Refactor Python "gdb" module into a proper Python package, by
1014 introducing a new "_gdb" module for code implemented in C, and
1015 using reload/__import__ instead of exec.
1016 * python/lib/gdb/__init__.py: Import * from _gdb.
1017 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1018 prompt_hook, sys.argv): Moved from finish_python_initialization.
1019 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1020 (packages, auto_load_packages): New list and function replacing
1021 module_dict and auto-loading code, using __file__ instead of
1022 gdb.PYTHONDIR and reload/__import__ instead of exec.
1023 (GdbSetPythonDirectory): Replacing function of the same name
1024 from finish_python_initialization, using reload/__import__ instead
1025 of exec, as well as call auto_load_packages.
1026 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1027 gdb_python_module and not gdb_module.
1028 * python/python-internal.h (gdb_python_module): Declare.
1029 * python/python.c (gdb_python_module): New global.
1030 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1031 (_initialize_python): Rename gdb module to _gdb.
1032 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1033 (finish_python_initialization): Move Python code to
1034 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1037 2012-09-13 Pedro Alves <palves@redhat.com>
1039 * Makefile.in (COMMON_OBS): Add registry.o.
1040 * registry.c: New file.
1041 * registry.h (struct registry_container): Declare.
1042 (registry_data_callback): New typedef.
1043 (struct registry_data, struct registry_data_registration, struct
1044 registry_data_registry): New type.
1045 (register_data_with_cleanup, registry_alloc_data)
1046 (registry_callback_adaptor, registry_clear_data)
1047 (registry_container_free_data, registry_set_data, registry_data):
1049 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1050 the new common structures and functions.
1051 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1054 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1056 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1057 there is an error inserting hardware breakpoints and use the
1058 error message from the target.
1060 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1061 Catch this exception and print the error message contained within. Do not
1062 print the default hardware error breakpoint message in this case.
1064 2012-09-12 Doug Evans <dje@google.com>
1066 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1069 2012-09-11 Doug Evans <dje@google.com>
1071 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1072 .gdb_index symbol attributes if there are none.
1074 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1076 * symtab.h (struct minimal_symbol) [has_size]: New field.
1077 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1078 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1079 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1080 minimal symbols if the symbol's size is actually known.
1081 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1082 of msymbol's size field. Add comment.
1083 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1084 SET_MSYMBOL_SIZE to set the minimal symbol size.
1086 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1088 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1089 minimal_symbol struct object, rather than setting some of its
1092 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1094 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1095 passed_a_ptr flag when displaying typedef types.
1097 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1099 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1100 the optimized_out flag is preserved.
1102 2012-09-10 Anthony Green <green@moxielogic.com>
1104 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1105 prologue changes in GCC.
1107 2012-09-10 Keith Seitz <keiths@redhat.com>
1110 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1111 (BOOL_CONVERSION_BADNESS): ... this.
1112 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1113 (rank_one_type): Allow all boolean conversions
1114 permitted by the standard.
1116 2012-09-06 Tom Tromey <tromey@redhat.com>
1118 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1119 Don't decref py_objfile.
1121 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1123 Do not enable -lmcheck by default when Python is enabled with
1125 * configure.ac: (python_has_threads) New variable, by testing
1126 if WITH_THREAD is defined in Python.h.
1127 Move --enable-lmcheck after --with-python.
1128 Do not enable -lmcheck by default if python_has_threads=yes.
1129 Warn if --enable-lmcheck and python_has_threads=yes.
1130 * configure: Regenerate.
1132 2012-08-31 Yao Qi <yao@codesourcery.com>
1134 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1135 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1136 Update some commands.
1137 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1138 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1141 2012-08-31 Yao Qi <yao@codesourcery.com>
1143 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1145 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1147 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1149 2012-08-29 Doug Evans <dje@google.com>
1151 * main.c (print_gdb_help): Remove reference to
1152 --use-deprecated-index-sections.
1154 2012-08-28 Yao Qi <yao@codesourcery.com>
1156 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1157 (init_cmds): Call add_setshow_uinteger_cmd for command
1158 'max-user-call-depth'.
1159 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1160 declaration of 'max_user_call_depth'.
1161 * frame.c (backtrace_limit): Add 'unsigned'.
1162 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1164 * remote.c (remoteaddresssize): Add 'unsigned'.
1165 (remote_address_masked): Change local var 'address_size' to
1167 (_initialize_remote): Call add_setshow_uinteger_cmd for
1168 'remoteaddresssize'.
1169 * top.c (history_size): Add 'unsigned'.
1170 (show_commands): Change local variables to 'unsigned'.
1171 (set_history_size_command): Don't check history_size is negative.
1172 Adjust the condition to call unstifle_history and set history_size
1175 2012-08-28 Pedro Alves <palves@redhat.com>
1179 * infcmd.c (default_print_one_register_info): New, factored out
1180 from default_print_registers_info.
1181 (default_print_registers_info): Use it. Mark value unavailable if
1183 (registers_info): Print user registers with
1184 default_print_one_register_info.
1186 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1189 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1190 is not NULL before referencing it.
1192 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1195 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1198 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1199 Jan Kratochvil <jan.kratochvil@redhat.com>
1201 * auto-load.c (auto_load_objfile_script): Rename to ...
1202 (auto_load_objfile_script_1): ... here, change variable realname to
1203 parameter realname, document it, add return value, add variable retval.
1204 (auto_load_objfile_script): New function.
1206 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1208 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1209 followed by a whitespace.
1211 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1214 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1215 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1216 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1219 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1221 * memattr.c (create_mem_region): Fix memory region overlapping
1224 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1226 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1227 with xmalloc/cleanup.
1228 * mt-tdep.c (mt_push_dummy_call): Likewise.
1229 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1230 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1232 2012-08-24 Yao Qi <yao@codesourcery.com>
1234 * jv-exp.y (push_expression_name): Add "." at the end of error
1237 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1239 Document how to return from "python-interactive" to GDB.
1240 * python/python.c (_initialize_python): Update documentation.
1242 2012-08-23 Pedro Alves <palves@redhat.com>
1244 * infrun.c (_initialize_infrun) <handle command help text>:
1245 Mention that multiple signals are supported.
1247 2012-08-23 Pedro Alves <palves@redhat.com>
1249 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1252 2012-08-23 Yao Qi <yao@codesourcery.com>
1254 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1255 (tfind_1): Don't call registers_changed, set_traceframe_num,
1256 and clear_traceframe_info.
1257 Call set_current_traceframe.
1258 (set_current_traceframe): call set_traceframe_num.
1260 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1262 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1263 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1265 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1267 Enable readline in Python in a GDB-specific way and block the
1268 standard Python readline module to prevent conflicts with GDB.
1269 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1270 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1271 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1272 * python/py-gdb-readline.c: New file.
1273 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1275 * python/python.c (_initialize_python): Call
1276 gdbpy_initialize_gdb_readline.
1278 2012-08-22 Keith Seitz <keiths@redhat.com>
1280 * defs.h: Include build-gnulib/config.h
1282 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1284 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1287 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1289 Add a new "python-interactive" command that starts a standard
1290 Python interactive prompt with "pi" as alias, and add "py" as
1291 an alias to "python".
1292 * NEWS: Mention the new commands.
1293 * python/python.c (eval_python_command): New function.
1294 (python_interactive_command): For "python-interactive" with
1295 arguments, call eval_python_command. For "python-interactive"
1296 without arguments, call PyRun_InteractiveLoop.
1297 (_initialize_python): Add "python-interactive" command with
1298 "pi" as alias, and add "py" as an alias to "python".
1300 2012-08-22 Tom Tromey <tromey@redhat.com>
1302 * defs.h (quit_flag): Don't declare.
1303 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1304 (QUIT): Use new functions.
1305 * event-top.c (command_handler): Use clear_quit_flag.
1306 (handle_sigint): Use set_quit_flag.
1307 (async_request_quit): Use check_quit_flag. Don't check
1309 * exceptions.c (throw_exception): Use clear_quit_flag.
1310 * main.c (captured_main): Use clear_quit_flag.
1311 * python/python.c (clear_quit_flag, set_quit_flag)
1312 (check_quit_flag): New functions.
1313 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1315 * remote.c (remote_wait_as): Use check_quit_flag,
1317 (remote_start_remote): Call QUIT.
1318 * symfile.c (load_progress): Use check_quit_flag.
1319 * top.c (command_loop): Use clear_quit_flag.
1320 (command_line_input): Call QUIT.
1321 * utils.c (quit_flag): Conditionally define.
1322 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1324 (prompt_for_continue): Call QUIT. Use quit, not
1326 * remote-mips.c (mips_expect_timeout): Call QUIT.
1327 * monitor.c (monitor_expect): Call QUIT.
1329 2012-08-22 Tom Tromey <tromey@redhat.com>
1331 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1332 (async_init_signals): Update.
1333 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1334 (SIGWINCH_HANDLER_BODY): Remove.
1336 2012-08-22 Tom Tromey <tromey@redhat.com>
1338 * jit.c (jit_object_close_impl): Don't malloc the objfile
1340 * objfiles.c (allocate_objfile): Don't malloc the objfile
1342 (free_objfile): Don't free the objfile name.
1343 * objfiles.h (struct objfile) <name>: Update comment.
1344 * symfile.c (reread_symbols): Fix reference counting. Don't
1345 malloc objfile name.
1347 2012-08-22 Tom Tromey <tromey@redhat.com>
1349 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1350 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1351 (symfile_bfd_open): Likewise.
1352 (generic_load): Likewise.
1353 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1354 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1356 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1358 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1359 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1360 (pmon_load_fast): Likewise.
1361 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1362 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1363 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1364 (macho_check_dsym): Likewise.
1365 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1366 (m32r_upload_command): Likewise.
1367 * gdb_bfd.h (gdb_bfd_cache): Declare.
1368 * gdb_bfd.c (struct gdb_bfd_data): New.
1369 (gdb_bfd_cache): New global.
1370 (struct gdb_bfd_cache_search): New.
1371 (hash_bfd): New function.
1373 (gdb_bfd_open): Likewise.
1374 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1375 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1377 * exec.c (exec_file_attach): Use gdb_bfd_open.
1378 * dsrec.c (load_srec): Use gdb_bfd_open.
1380 2012-08-22 Tom Tromey <tromey@redhat.com>
1382 * dwarf2read.c (macro_start_file): Update.
1383 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1384 (free_objfile_per_bfd_storage): Destroy macro_cache.
1385 (allocate_objfile, free_objfile): Update.
1386 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1388 (struct objfile) <macro_cache>: Remove.
1389 * symfile.c (reread_symbols): Update.
1390 * symmisc.c (print_symbol_bcache_statistics): Update.
1391 (print_objfile_statistics): Update.
1393 2012-08-22 Tom Tromey <tromey@redhat.com>
1395 * elfread.c (elf_symtab_read): Update.
1396 * objfiles.c (objfiles_bfd_data): New global.
1397 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1398 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1399 (allocate_objfile, free_objfile): Update.
1400 (_initialize_objfiles): Initialize objfiles_bfd_data.
1401 * objfiles.h (struct objfile_per_bfd_storage): New.
1402 (struct objfile) <per_bfd>: New field.
1403 <filename_cache>: Remove.
1404 (set_objfile_per_bfd): Declare.
1405 * symfile.c (reread_symbols): Update. Call
1406 set_objfile_per_bfd.
1407 (allocate_symtab): Update.
1408 * symmisc.c (print_symbol_bcache_statistics): Update.
1409 (print_objfile_statistics): Print the size of the BFD obstack.
1411 2012-08-22 Tom Tromey <tromey@redhat.com>
1413 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1414 * gdb_bfd.c: Use DEFINE_REGISTRY.
1415 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1416 (gdb_bfd_ref): Call bfd_alloc_data.
1417 (gdb_bfd_unref): Call bfd_free_data.
1419 2012-08-22 Tom Tromey <tromey@redhat.com>
1421 * registry.h (struct registry_fields): New.
1422 (REGISTRY_FIELDS): Redefine.
1423 (REGISTRY_ACCESS_FIELD): New macro.
1424 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1427 2012-08-22 Tom Tromey <tromey@redhat.com>
1429 * auto-load.c (_initialize_auto_load): Update.
1430 * solib-svr4.c (_initialize_svr4_solib): Update
1431 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1432 * solib-darwin.c (_initialize_darwin_solib): Update.
1433 * registry.h: New file.
1434 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1435 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1436 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1437 (register_program_space_data_with_cleanup)
1438 (register_program_space_data, program_space_alloc_data)
1439 (clear_program_space_data, set_program_space_data)
1440 (program_space_data): Don't declare.
1441 * progspace.c: Use DEFINE_REGISTRY.
1442 (struct program_space_data, struct
1443 program_space_data_registration, struct
1444 program_space_data_registry, program_space_data_registry)
1445 (register_program_space_data_with_cleanup)
1446 (register_program_space_data, program_space_alloc_data)
1447 (program_space_free_data, clear_program_space_data)
1448 (set_program_space_data, program_space_data): Remove.
1449 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1450 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1451 (register_objfile_data_with_cleanup, register_objfile_data)
1452 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1454 * objfiles.c: Use DEFINE_REGISTRY.
1455 (struct objfile_data, struct objfile_data_registration, struct
1456 objfile_data_registry, objfile_data_registry)
1457 (register_objfile_data_with_cleanup, register_objfile_data)
1458 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1459 (set_objfile_data, objfile_data): Remove.
1460 (_initialize_objfiles): Update.
1461 * jit.c (_initialize_jit): Update.
1462 * inflow.c (_initialize_inflow): Update.
1463 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1464 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1465 (register_inferior_data_with_cleanup, register_inferior_data)
1466 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1468 * inferior.c: Use DEFINE_REGISTRY.
1469 (struct inferior_data, struct inferior_data_registration, struct
1470 inferior_data_registry, inferior_data_registry)
1471 (register_inferior_data_with_cleanup, register_inferior_data)
1472 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1473 (set_inferior_data, inferior_data): Remove.
1474 * auxv.c (_initialize_auxv): Update.
1475 * ada-lang.c (_initialize_ada_language): Update.
1476 * breakpoint.c (_initialize_breakpoint): Update.
1477 * i386-nat.c (i386_use_watchpoints): Update.
1479 2012-08-22 Tom Tromey <tromey@redhat.com>
1481 * exec.c (exec_close, exec_file_attach): Update.
1482 (add_to_section_table): Initialize 'key' field.
1483 (add_target_sections, remove_target_sections): Add 'key' argument.
1484 * exec.h (add_target_sections, remove_target_sections): Add
1486 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1487 (reload_shared_libraries_1): Update.
1488 * target.h (struct target_section) <key>: New field.
1490 2012-08-22 Tom Tromey <tromey@redhat.com>
1492 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1494 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1496 * symfile.c (allocate_symtab): Use host_address_to_string
1497 function instead of cast of pointer to long which is not
1498 compatible with x86_64-w64-mingw32 build.
1500 2012-08-19 Andrew Pinski <apinski@cavium.com>
1502 * mips-tdep.c (is_octeon): New function.
1503 (is_octeon_bbit_op): New function.
1504 (mips32_next_pc): Handle Octeon's bbit instructions.
1505 (mips32_instruction_has_delay_slot): Likewise.
1507 2012-08-19 Andrew Pinski <apinski@cavium.com>
1509 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1510 before the function.
1512 2012-08-19 Andrew Pinski <apinski@cavium.com>
1514 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1516 2012-08-19 Keith Seitz <keiths@redhat.com>
1519 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1520 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1522 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1524 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1525 The typo broke "make TAGS".
1527 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1531 2012-08-17 Keith Seitz <keiths@redhat.com>
1534 * gdbtypes.c (strict_type_checking): New variable.
1535 (show_strict_type_checking): New function.
1536 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1537 if strict type checking is disabled.
1538 (_initialize_gdbtypes): Add "check type" subcommand.
1539 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1541 2012-08-17 Keith Seitz <keiths@redhat.com>
1543 * language.h (type_mode): Remove.
1544 (type_check): Remove.
1545 (struct language_defn): Remove la_type_check.
1546 (STRICT_TYPE): Remove unused macro.
1547 (type_error): Remove.
1548 * language.c (set_type_range_case): Renamed to ...
1549 (set_range_case): ... this. Update all callers.
1550 Remove type_mode/type_check.
1551 (type_mode): Remove.
1552 (type_check): Remove.
1553 (show_type_command): Remove.
1554 (set_type_command): Remove.
1555 (language_info): Remove type checking output.
1556 (type_error): Remove unused function.
1557 (range_error): Update comment.
1558 (unknown_language_defn): Remove la_type_check.
1559 (auto_language_defn): Likewise.
1560 (local_language_defn): Likewise.
1561 (_initialize_language): Remove "check type" subcommand.
1562 * ada-lang.c (ada_language_defn): Remove la_type_check.
1563 * c-lang.c (c_language_defn): Likewise.
1564 (cplus_language_defn): Likewise.
1565 (asm_language_defn): Likewise.
1566 (minimal_language_defn): Likewise.
1567 * d-lang.c (d_language_defn): Likewise.
1568 * f-lang.c (f_language_defn): Likewise.
1569 * go-lang.c (go_language_defn): Likewise.
1570 * jv-lang.c (java_language_defn): Likewise.
1571 * m2-lang.c (m2_language_defn): Likewise.
1572 * objc-lang.c (objc_language_defn): Likewise.
1573 * opencl-lang.c (opencl_language_defn): Likewise.
1574 * p-lang.c (pascal_language_defn): Likewise.
1576 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1578 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1580 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1582 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1584 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1585 using the regache. Use ia64_hpux_get_register_from_save_state_t
1586 to access the bsp and bspstore registers if not.
1588 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1590 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1591 * breakpoint.c (detach_breakpoints): Change pid parameter into
1592 a ptid. Adjust code accordingly.
1593 * infrun.c (handle_inferior_event): Delete variable child_pid.
1594 Update call to detach_breakpoints to pass the child ptid for
1596 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1597 assert that inferior_ptid's lwp is zero.
1598 (linux_handle_extended_wait): Update call to detach_breakpoints.
1599 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1602 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1604 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1605 parent, only call detach_breakpoints if tts.tts_event ==
1608 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1610 * dwarf2-frame.c (dwarf2_frame_cache): Use
1611 get_frame_address_in_block instead of get_frame_pc as
1612 the bound for executing the frame's FDE.
1614 2012-08-16 Yao Qi <yao@codesourcery.com>
1616 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1617 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1618 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1619 (c_type_print_varspec_suffix): Likewise.
1620 * eval.c (evaluate_subexp_standard): Likewise.
1621 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1622 (f_type_print_varspec_suffix): Likewise.
1623 * gdbtypes.c (is_scalar_type): Likewise.
1624 (recursive_dump_type): Likewise.
1625 * infcall.c (value_arg_coerce): Likewise.
1626 * m2-valprint.c (m2_val_print): Likewise.
1627 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1628 (pascal_type_print_varspec_suffix): Likewise.
1629 (pascal_type_print_base): Likewise.
1630 * p-valprint.c (pascal_val_print): Likewise.
1631 (pascal_val_print): Likewise.
1632 * valops.c (value_slice): Likewise.
1633 * valprint.c (scalar_type_p): Likewise.
1634 * valarith.c (value_bitstring_subscript): Remove.
1635 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1636 Remove comment on TYPE_CODE_BITSTRING.
1638 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1639 TYPE_CODE_BITSTRING.
1641 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1644 2012-08-16 Yao Qi <yao@codesourcery.com>
1646 * tracepoint.c (trace_find_none_command): Remove.
1647 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1649 2012-08-16 Yao Qi <yao@codesourcery.com>
1651 * remote.c (handle_notification): Remove parameter 'length'.
1652 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1654 2012-08-15 Keith Seitz <keiths@redhat.com>
1656 * gdbtypes.c (opaque_type_resolution): Make static.
1657 Add missing comment.
1658 (overload_debug): Add missing comment.
1659 (show_opaque_type_resolution): Likewise.
1660 (show_overload_debug): Likewise.
1661 (print_bit_vector): Remove unnecessary forward declaration.
1662 (print_arg_types): Likewise.
1663 (dump_fn_fieldlists): Likewise.
1664 (print_cplus_stuff): Likewise.
1666 2012-08-15 Tom Tromey <tromey@redhat.com>
1668 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1669 (gdb_bfd_ref): Initialize new field.
1670 (gdb_bfd_unref): Unref the archive BFD.
1671 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1674 2012-08-15 Tom Tromey <tromey@redhat.com>
1677 * python/py-bpevent.c (create_breakpoint_event_object): Update
1679 * python/py-event.c (evpy_add_attribute): Update comment.
1680 * python/py-exitedevent.c (create_exited_event_object): Fix
1681 reference counting and error handling.
1682 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1683 Fix reference counting.
1684 * python/py-signalevent.c (create_signal_event_object): Fix
1685 reference counting and error handling.
1686 * python/py-stopevent.c (emit_stop_event): Fix reference
1688 * python/py-threadevent.c (get_event_thread): Return a
1690 * python/py-type.c (convert_field): Fix reference counting.
1692 2012-08-15 Tom Tromey <tromey@redhat.com>
1694 * dwarf2read.c (dwarf_decode_macro_bytes)
1695 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1698 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1700 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1701 stepi, nexti, finish, next, step, jump, and continue commands.
1702 * infrun.c (_initialize_infrun): Update help text for the handle
1705 2012-08-14 Doug Evans <dje@google.com>
1707 * gdbtypes.c (struct extra): Delete, unused.
1709 * gdbtypes.c: Whitespace cleanup.
1710 (address_space_name_to_int): Remove "extern" from definition.
1711 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1713 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1714 TYPE_POINTER_TYPE (type).
1716 2012-08-14 Gary Benson <gbenson@redhat.com>
1718 * solib-svr4.c (svr4_free_library_list): Use free_so.
1720 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1722 * .gitignore: Add go-exp.c.
1724 2012-08-13 Doug Evans <dje@google.com>
1726 * value.c (show_convenience): Tweak comment.
1727 (_initialize_values): Mention convenience functions in the help text
1728 for "show convenience".
1730 2012-08-13 Yao Qi <yao@codesourcery.com>
1732 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1733 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1735 * eval.c (evaluate_subexp_standard): Likewise.
1736 * expprint.c (print_subexp_standard): Likewise.
1737 (dump_subexp_body_standard): Likewise.
1738 * parse.c (operator_length_standard): Likewise.
1740 2012-08-13 Yao Qi <yao@codesourcery.com>
1742 * std-operator.def: Remove OP_BITSTRING.
1743 * breakpoint.c (watchpoint_exp_is_const): Update.
1744 * eval.c (evaluate_subexp_standard): Remove handling to
1746 * expprint.c (print_subexp_standard): Likewise.
1747 (dump_subexp_body_standard): Likewise.
1748 * parse.c (operator_length_standard): Likewise.
1749 * valops.c (value_bitstring): Remove.
1750 * value.h: Remove the declaration of 'value_bitstring'.
1752 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1754 * linespec.c (find_methods): Remove unused variables `i1' and
1756 (decode_line_full): Likewise for `arg_start'.
1758 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1760 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1761 (zlib_decompress_section): Likewise for `section_data'.
1762 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1764 2012-08-10 Doug Evans <dje@google.com>
1766 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1767 * NEWS: Document them.
1768 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1770 * python/py-type.c (typy_array_1): New function.
1771 (typy_array): Call it.
1772 (typy_vector): New function.
1773 (type_object_methods): Add "vector".
1774 * python/lib/gdb/function/__init__.py: New file.
1775 * python/lib/gdb/function/strfns.py: New file.
1777 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1779 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1780 for TYPE_FIELD_BITPOS.
1781 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1783 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1786 * common/vec.h (VEC_merge): Define.
1787 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1788 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1789 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1790 * completer.c: Include gdb_signals.h.
1791 (signal_completer): Define.
1792 * completer.h (signal_completer): Add prototype.
1793 * infcmd.c (_initialize_infcmd): Assign the command
1794 completer for "signal" to handle_completer.
1795 * infrun.c: Include completer.h.
1796 (handle_completer): Define.
1797 (_initialize_infrun): Declare a new local variable c. Store the
1798 result of add_com("handle") to it. Assign the command
1799 completer for "handle" to handle_completer.
1801 2012-08-09 Yao Qi <yao@codesourcery.com>
1803 * cli/cli-decode.c (set_cmd_prefix): New.
1804 (lookup_cmd_for_prefixlist): New.
1805 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1806 of each cmd_list_element in *prefixlist.
1807 (add_setshow_cmd_full): set_cmd_prefix.
1808 (add_alias_cmd): Likewise.
1809 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1810 Declare 'auto_boolean_enums'.
1811 * cli/cli-setshow.c: Include "observer.h".
1812 (notify_command_param_changed_p): New.
1813 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1815 (do_setshow_command): Split it to ...
1816 (do_set_command, do_show_command): ... them. New.
1817 (do_set_command): Call observer_notify_command_param_changed if
1818 notify_command_param_changed_p returns true.
1819 (cmd_show_list): Caller update.
1820 * auto-load.c (set_auto_load_cmd): Likewise.
1821 * remote.c (show_remote_cmd): Likewise.
1822 * cli/cli-setshow.h: Update declarations.
1823 * top.c (execute_command): Call do_set_command and do_show_command.
1825 * NEWS: Mention new MI notification.
1826 * mi/mi-interp.c: Declare mi_command_param_changed.
1827 (mi_interpreter_init): Attach mi_command_param_changed to
1828 observer command_param_changed.
1829 (mi_command_param_changed): New.
1830 Remove mi_suppress_breakpoint_notifications.
1831 Define global variable mi_suppress_notification.
1832 (mi_breakpoint_created): Update.
1833 (mi_breakpoint_deleted): Likewise.
1834 (mi_breakpoint_modified): Likewise.
1835 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1836 'gdb-set' and set mi_suppress_notification.
1837 * mi/mi-main.h: (mi_suppress_notification): New struct.
1839 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1840 Jan Kratochvil <jan.kratochvil@redhat.com>
1842 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1844 2012-08-09 Yao Qi <yao@codesourcery.com>
1846 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1847 (skiplist): Move it to skip.c.
1848 (init_cmd_lists): Remove code setting enablebreaklist and
1850 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1851 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1853 * gdbcmd.h: Likewise.
1854 * skip.c (_initialize_step_skip): Move 'skiplist' from
1857 2012-08-09 Yao Qi <yao@codesourcery.com>
1859 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1860 * gnu-nat.c, symfile.c: Likewise.
1862 2012-08-08 Aaron Gamble <agamble@google.com>
1864 * utils.c (prompt_for_continue_wait_time): New static global.
1865 (make_command_stats_cleanup): Initialize it.
1866 (report_command_stats): Subtract time waiting for user.
1867 (prompt_for_continue): Track time waiting for user.
1868 (defaulted_query): Track time waiting for user.
1870 2012-08-08 Doug Evans <dje@google.com>
1872 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1874 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1875 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1876 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1877 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1878 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1879 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1881 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1882 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1883 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1884 (dump_prefix_expression): Handle OP_TYPE.
1886 2012-08-08 Keith Seitz <keiths@redhat.com>
1888 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1891 2012-08-08 Doug Evans <dje@google.com>
1893 * linux-thread-db.c: #include "gdb_vecs.h".
1894 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1896 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1897 (thread_db_load_search): Use a vector to iterate over path elements.
1898 Handle text appearing after "$pdir".
1900 * gdb_string.h: Moved to ...
1901 * common/gdb_string.h: ... here.
1902 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1903 gdb_string.h and gdb_assert.h.
1905 2012-08-08 Yao Qi <yao@codesourcery.com>
1907 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1908 (tic6x_value_to_register): Likewise.
1909 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1910 and set_gdbarch_value_to_register.
1912 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1913 Jean-Marc Saffroy <saffroy@gmail.com>
1916 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1917 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1918 * gcore.c (gcore_create_callback): New function comment. Add modified
1919 parameter. Only write modified regions. Set SEC_READONLY exactly
1920 according to MODIFIED.
1921 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1922 the passed modified value to FUNC.
1923 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1924 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1925 first. New variables modified and has_anonymous. Parse the lines of
1926 smaps file. Add the passed MODIFIED value to FUNC.
1927 * procfs.c (find_memory_regions_callback): Add the passed modified
1930 2012-08-06 Tom Tromey <tromey@redhat.com>
1932 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1933 (dwarf2_frame_cache): Use it.
1934 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1935 cache initialization constraint.
1937 2012-08-06 Tom Tromey <tromey@redhat.com>
1940 * varobj.c (update_dynamic_varobj_children): Don't call
1943 2012-08-06 Tom Tromey <tromey@redhat.com>
1946 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1948 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1950 * NEWS: New entry for 'cd' default parameters.
1951 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1953 2012-08-03 Tom Tromey <tromey@redhat.com>
1955 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1958 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1960 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1961 to attempting lseek/write.
1962 (inf_child_fileio_pread): Likewise for pread.
1964 2012-08-02 Yao Qi <yao@codesourcery.com>
1966 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1967 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1968 add_setshow_zinteger_cmd.
1969 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1970 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1971 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1972 instead of add_setshow_zinteger_cmd.
1973 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1974 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1975 instead of add_setshow_zinteger_cmd.
1976 * frame.c (frame_debug): Add 'unsigned'.
1977 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1978 add_setshow_zinteger_cmd.
1979 * frame.h: Update the declaration of 'frame_debug'.
1980 * gdbtypes.c (overload_debug): Add 'unsigned'.
1981 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1982 add_setshow_zinteger_cmd.
1983 * inferior.h: Update declaration of 'debug_infrun'.
1984 * infrun.c (debug_infrun): Add 'unsigned'.
1985 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1986 add_setshow_zinteger_cmd.
1987 * jit.c (jit_debug): Add 'unsigned'.
1988 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1989 add_setshow_zinteger_cmd.
1990 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1991 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1992 instead of add_setshow_zinteger_cmd.
1993 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1994 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1995 add_setshow_zinteger_cmd.
1996 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1997 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1998 instead of add_setshow_zinteger_cmd.
1999 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2000 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2001 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2002 intead of add_setshow_zinteger_cmd.
2003 * mips-tdep.c (mips_debug): Add 'unsigned'.
2004 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2005 instead of add_setshow_zinteger_cmd.
2006 * monitor.c (monitor_debug): Add 'unsigned'.
2007 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2008 add_setshow_zinteger_cmd.
2009 * observer.c (observer_debug): Add 'unsigned'.
2010 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2011 add_setshow_zinteger_cmd.
2012 * parse.c (expressiondebug): Add 'unsigned'.
2013 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2014 add_setshow_zinteger_cmd.
2015 * record.c (record_debug): Add 'unsigned'.
2016 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2017 add_setshow_zinteger_cmd.
2018 * record.h: Update the declaration of 'record_debug'.
2019 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2020 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2021 add_setshow_zinteger_cmd.
2022 * serial.c (global_serial_debug_p): Add 'unsigned'.
2023 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2024 add_setshow_zinteger_cmd.
2025 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2026 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2027 add_setshow_zinteger_cmd.
2028 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2029 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2030 add_setshow_zinteger_cmd.
2031 * target.c (targetdebug): Add 'unsigned'.
2032 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2033 add_setshow_zinteger_cmd.
2034 * valops.c (overload_debug): Add 'unsigned'.
2035 * varobj.c (varobjdebug): Add 'unsigned'.
2036 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2037 add_setshow_zinteger_cmd.
2038 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2039 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2040 instead of add_setshow_zinteger_cmd.
2042 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2043 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2044 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2045 instead of add_setshow_zinteger_cmd.
2046 * gdbarch.c, gdbarch.h: Re-generated.
2048 2012-08-02 Yao Qi <yao@codesourcery.com>
2050 * nto-tdep.c: Don't include cli/cli-decode.h and
2052 (_initialize_nto_tdep): Remove.
2053 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2055 Remove macro nto_internal_debugging.
2057 2012-08-01 Richard Henderson <rth@redhat.com>
2059 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2060 (mep-*-*) [gdb_target_obs]: Likewise.
2062 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2064 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2065 linux_get_siginfo_type.
2067 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2071 (call_function_by_hand) <ON_STACK>: Call write_memory with
2072 gdbarch_breakpoint_from_pc, if possible.
2073 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2076 2012-07-31 Yao Qi <yao@codesourcery.com>
2078 * tracepoint.c: Add 'static' for some variables.
2080 2012-07-31 Yao Qi <yao@codesourcery.com>
2082 * go32-nat.c: Declare _initialize_go32_nat.
2083 * ser-go32.c: Declare _initialize_ser_dos.
2084 * top.c (do_chdir_cleanup): Add 'static'.
2086 2012-07-30 Keith Seitz <keiths@redhat.com>
2088 * linespec.c (linespec_lex_number): A number followed
2089 by quotes is a valid number, too.
2091 2012-07-30 Tom Tromey <tromey@redhat.com>
2093 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2095 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2097 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2098 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2100 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2102 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2103 invalid or reevaluated to prevent prevent references to possibly
2104 delete'd type objects being left in the varobj.
2106 2012-07-27 Tom Tromey <tromey@redhat.com>
2107 Jan Kratochvil <jan.kratochvil@redhat.com>
2109 * copying.awk: Print buffer-read-only and vi ro markers.
2110 * copying.c: Rebuild.
2111 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2112 * gdbarch.c, gdbarch.h: Rebuild.
2113 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2114 buffer-read-only and vi ro markers.
2115 * features/arm-with-iwmmxt.c: Rebuild.
2116 * features/arm-with-m-fpa-layout.c: Rebuild.
2117 * features/arm-with-m-vfp-d16.c: Rebuild.
2118 * features/arm-with-m.c: Rebuild.
2119 * features/arm-with-neon.c: Rebuild.
2120 * features/arm-with-vfpv2.c: Rebuild.
2121 * features/arm-with-vfpv3.c: Rebuild.
2122 * features/i386/amd64-avx-linux.c: Rebuild.
2123 * features/i386/amd64-avx.c: Rebuild.
2124 * features/i386/amd64-linux.c: Rebuild.
2125 * features/i386/amd64.c: Rebuild.
2126 * features/i386/i386-avx-linux.c: Rebuild.
2127 * features/i386/i386-avx.c: Rebuild.
2128 * features/i386/i386-linux.c: Rebuild.
2129 * features/i386/i386-mmx-linux.c: Rebuild.
2130 * features/i386/i386-mmx.c: Rebuild.
2131 * features/i386/i386.c: Rebuild.
2132 * features/i386/x32-avx-linux.c: Rebuild.
2133 * features/i386/x32-avx.c: Rebuild.
2134 * features/i386/x32-linux.c: Rebuild.
2135 * features/i386/x32.c: Rebuild.
2136 * features/mips-dsp-linux.c: Rebuild.
2137 * features/mips-linux.c: Rebuild.
2138 * features/mips64-dsp-linux.c: Rebuild.
2139 * features/mips64-linux.c: Rebuild.
2140 * features/rs6000/powerpc-32.c: Rebuild.
2141 * features/rs6000/powerpc-32l.c: Rebuild.
2142 * features/rs6000/powerpc-403.c: Rebuild.
2143 * features/rs6000/powerpc-403gc.c: Rebuild.
2144 * features/rs6000/powerpc-405.c: Rebuild.
2145 * features/rs6000/powerpc-505.c: Rebuild.
2146 * features/rs6000/powerpc-601.c: Rebuild.
2147 * features/rs6000/powerpc-602.c: Rebuild.
2148 * features/rs6000/powerpc-603.c: Rebuild.
2149 * features/rs6000/powerpc-604.c: Rebuild.
2150 * features/rs6000/powerpc-64.c: Rebuild.
2151 * features/rs6000/powerpc-64l.c: Rebuild.
2152 * features/rs6000/powerpc-7400.c: Rebuild.
2153 * features/rs6000/powerpc-750.c: Rebuild.
2154 * features/rs6000/powerpc-860.c: Rebuild.
2155 * features/rs6000/powerpc-altivec32.c: Rebuild.
2156 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2157 * features/rs6000/powerpc-altivec64.c: Rebuild.
2158 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2159 * features/rs6000/powerpc-cell32l.c: Rebuild.
2160 * features/rs6000/powerpc-cell64l.c: Rebuild.
2161 * features/rs6000/powerpc-e500.c: Rebuild.
2162 * features/rs6000/powerpc-e500l.c: Rebuild.
2163 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2164 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2165 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2166 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2167 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2168 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2169 * features/rs6000/powerpc-vsx32.c: Rebuild.
2170 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2171 * features/rs6000/powerpc-vsx64.c: Rebuild.
2172 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2173 * features/rs6000/rs6000.c: Rebuild.
2174 * features/s390-linux32.c: Rebuild.
2175 * features/s390-linux32v1.c: Rebuild.
2176 * features/s390-linux32v2.c: Rebuild.
2177 * features/s390-linux64.c: Rebuild.
2178 * features/s390-linux64v1.c: Rebuild.
2179 * features/s390-linux64v2.c: Rebuild.
2180 * features/s390x-linux64.c: Rebuild.
2181 * features/s390x-linux64v1.c: Rebuild.
2182 * features/s390x-linux64v2.c: Rebuild.
2183 * features/tic6x-c62x-linux.c: Rebuild.
2184 * features/tic6x-c62x.c: Rebuild.
2185 * features/tic6x-c64x-linux.c: Rebuild.
2186 * features/tic6x-c64x.c: Rebuild.
2187 * features/tic6x-c64xp-linux.c: Rebuild.
2188 * features/tic6x-c64xp.c: Rebuild.
2190 2012-07-27 Tom Tromey <tromey@redhat.com>
2192 * c-exp.y (classify_name): Avoid assignment in condition.
2194 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2196 * amd64-windows-tdep.c: Include "frame.h".
2197 (amd64_windows_skip_trampoline_code): New function.
2198 (amd64_windows_init_abi): Add trampoline registration.
2200 2012-07-27 Yao Qi <yao@codesourcery.com>
2202 * tracepoint.c (cur_traceframe_number): Remove.
2203 (set_tfile_traceframe): Remove.
2204 (tfile_trace_find, tfile_fetch_registers): Update callers.
2205 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2206 (tfile_open, tfile_trace_find): Likewise.
2208 2012-07-27 Yao Qi <yao@codesourcery.com>
2210 * thread.c (switch_to_thread): Don't call registers_changed.
2212 2012-07-26 Tom Tromey <tromey@redhat.com>
2214 * Makefile.in (SFILES): Remove objc-exp.y.
2215 (YYFILES): Remove objc-exp.c.
2216 (YYOBJ): Remove objc-exp.o.
2217 (local-maintainer-clean): Don't mention objc-exp.c.
2218 * c-exp.y: Include objc-lang.h.
2219 (%union) <class>: New field.
2220 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2221 (exp): Clone subscript production for OBJC_LBRAC. Add various
2222 Objective C productions.
2223 (msglist, msgarglist, msgarg): New productions.
2224 (array_mod, func_mod, operator): Clone productions for
2226 (parse_string_or_char): Handle '@' strings.
2227 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2228 (classify_name): Check la_name_of_this. Recognize ObjC class
2230 * objc-exp.y: Remove.
2231 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2232 * objc-lang.h (objc_parse, objc_error): Don't declare.
2234 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2236 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2238 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2243 2012-07-26 Tom Tromey <tromey@redhat.com>
2245 * copying.c: Rebuild.
2246 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2249 2012-07-26 Tom Tromey <tromey@redhat.com>
2251 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2253 (print_objfile_statistics): Likewise.
2254 (maintenance_print_symbols): Likewise.
2255 (maintenance_print_msymbols): Likewise.
2256 (maintenance_print_objfiles): Likewise.
2257 * psymtab.c (print_partial_symbols): Call QUIT.
2258 (maintenance_print_psymbols): Likewise. Don't modify
2260 * copying.c (show_copying_command): Don't modify immediate_quit.
2261 (show_warranty_command): Likewise.
2262 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2264 2012-07-26 Keith Seitz <keiths@redhat.com>
2266 * linespec.c (linespec_lexer_lex_number): The input
2267 is also a valid number if the next character is a comma
2270 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2272 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2275 2012-07-26 Tristan Gingold <gingold@adacore.com>
2277 * machoread.c: Include gdb_bfd.h.
2279 2012-07-26 Tristan Gingold <gingold@adacore.com>
2281 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2284 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2286 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2288 (dwarf2_evaluate_loc_desc): Likewise.
2289 (dwarf2_loc_desc_needs_frame): Likewise.
2290 (locexpr_describe_location_1): Likewise.
2291 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2293 (struct dwarf2_loclist_baton): Likewise.
2294 * dwarf2read.c (struct dwarf_block): Likewise.
2295 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2296 (decode_locdesc): Expand SIZE and I to size_t.
2298 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2300 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2302 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2304 * doublest.c (convert_doublest_to_floatformat): If the exponent
2305 is too small, treat the value as zero. If the exponent is too
2306 large, treat the value as infinity.
2308 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2310 * configure.ac: Add --enable-lmcheck configure option.
2311 * configure: Regenerate.
2313 2012-07-25 Tom Tromey <tromey@redhat.com>
2315 * NEWS: Mention maint info bfds.
2316 * gdb_bfd.c (all_bfds): New global.
2317 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2318 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2321 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2323 * configure.tgt: Add v850*-*-rtems*.
2325 2012-07-25 Tom Tromey <tromey@redhat.com>
2327 * macrotab.c (macro_bcache_str): Remove cast.
2329 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2331 * linespec.c (linespec_lexer_lex_number): Update comments,
2332 change the return and add check to make sure the input is
2333 the decimal numbers.
2334 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2335 false, call linespec_lexer_lex_string.
2337 2012-07-24 Tom Tromey <tromey@redhat.com>
2339 * symfile.c (symbol_file_add): Don't open BFD twice.
2341 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2343 * breakpoint.c (create_breakpoint): Store condition for pending
2346 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2348 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2349 (m68k_return_value): Handle complex types like structures.
2350 (m68k_svr4_return_value): Likewise.
2352 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2354 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2355 parameters to bfd_get_section_name.
2357 2012-07-24 Yao Qi <yao@codesourcery.com>
2359 * cli/cli-setshow.c: Handle case 'var_uinteger'
2360 and 'var_zuninteger' together. Handle case 'var_integer' and
2361 'var_zinteger' together.
2363 2012-07-23 Keith Seitz <keiths@redhat.com>
2365 * linespec.c (convert_linespec_to_sal): Don't add
2366 any symbols to the result vector if symbol_to_sal
2369 2012-07-23 Keith Seitz <keiths@redhat.com>
2371 * linespec.c (decode_objc): Record the function name
2374 2012-07-23 Tom Tromey <tromey@redhat.com>
2376 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2378 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2379 (map_vmap): Acquire a reference to the BFD.
2381 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2383 * p-valprint.c (pascal_object_print_value): Replace potentially
2384 unsafe alloca with xmalloc/xfree.
2385 * valops.c (search_struct_method): Likewise.
2387 2012-07-23 Tom Tromey <tromey@redhat.com>
2389 * solib-svr4.c (enable_break): Update.
2390 * bfd-target.h (target_bfd_reopen): Update documentation.
2392 2012-07-23 Tom Tromey <tromey@redhat.com>
2394 * symfile.c (separate_debug_file_exists): Update.
2395 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2396 (reread_symbols): Update.
2397 * elfread.c (build_id_verify): Update.
2398 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2399 bfd_open_maybe_remote.
2401 2012-07-23 Tom Tromey <tromey@redhat.com>
2403 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2405 2012-07-23 Tom Tromey <tromey@redhat.com>
2407 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2409 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2411 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2412 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2414 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2415 * objfiles.c (allocate_objfile): Acquire a new reference.
2416 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2417 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2418 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2419 a cleanup for 'nbfd'.
2420 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2422 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2423 make a cleanup for 'abfd'.
2424 (symbol_file_add): Make a BFD cleanup.
2426 2012-07-23 Tom Tromey <tromey@redhat.com>
2428 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2429 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2430 * corelow.c (core_open): Use gdb_bfd_fopen.
2431 * dsrec.c (load_srec): Use gdb_bfd_openr.
2432 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2433 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2434 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2435 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2436 (gdb_bfd_fdopenr): New functions.
2437 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2438 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2439 (gdb_bfd_fdopenr): Declare.
2440 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2441 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2442 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2443 gdb_bfd_openr_next_archived_file.
2444 (macho_check_dsym): Use gdb_bfd_openr.
2445 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2446 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2447 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2448 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2450 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2451 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2452 gdb_bfd_openr_next_archived_file.
2453 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2455 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2457 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2458 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2459 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2460 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2461 (symfile_bfd_open): Use gdb_bfd_fopen.
2462 (generic_load): Use gdb_bfd_openr.
2463 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2465 2012-07-23 Tom Tromey <tromey@redhat.com>
2467 * bfd-target.c (target_bfd_reopen): Update.
2468 * cli/cli-dump.c (bfd_openr_with_cleanup)
2469 (bfd_openw_with_cleanup): Update.
2470 * corelow.c (core_open): Update.
2471 * dsrec.c (load_srec): Update.
2472 * exec.c (exec_file_attach): Update.
2473 * gcore.c (create_gcore_bfd): Update.
2474 * gdb_bfd.c (gdb_bfd_ref): Return void.
2475 (gdb_bfd_open): Update.
2476 * gdb_bfd.h (gdb_bfd_ref): Return void.
2478 * jit.c (jit_bfd_try_read_symtab): Update.
2479 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2480 * machoread.c (macho_symfile_read_all_oso): Update.
2481 (macho_check_dsym): Update.
2482 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2483 * remote-m32r-sdi.c (m32r_load): Update.
2484 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2485 * rs6000-nat.c (add_vmap): Update.
2486 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2488 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2489 * solib-spu.c (spu_bfd_open): Update.
2490 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2491 * spu-linux-nat.c (spu_bfd_open): Update.
2492 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2493 (generic_load): Update.
2494 * windows-nat.c (windows_make_so): Update.
2496 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2498 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2500 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2502 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2503 SIGTRAMP_FRAME unwinding.
2505 2012-07-20 Doug Evans <dje@google.com>
2507 * NEWS: Document new options "set/show use-deprecated-index-sections",
2508 and delete reference to --use-deprecated-index-sections.
2509 * symfile.h (use_deprecated_index_sections): Delete.
2510 * dwarf2read.c (use_deprecated_index_sections): Make static.
2511 (read_index_from_section): Update wording of how to load
2512 deprecated index sections.
2513 (_initialize_dwarf2_read): New options
2514 "set/show use-deprecated-index-sections".
2515 * main.c (captured_main): Delete --use-deprecated-index-sections.
2517 2012-07-20 Pedro Alves <palves@redhat.com>
2522 * infrun.c (handle_inferior_event) <new thread>: Don't special
2523 case minus_one_ptid.
2524 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2525 * linux-thread-db.c (thread_get_info_callback): Don't return early
2526 if the thread is zombie.
2527 (thread_from_lwp): Change return type to void. Rewrite stale
2529 (attach_thread): Don't return early if the thread is zombie,
2530 instead set its "dying" flag.
2531 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2532 (find_new_threads_callback): Don't return early if the thread is
2535 2012-07-20 Pedro Alves <palves@redhat.com>
2537 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2538 * target.c (target_wait): Likewise.
2539 (str_comma_list_concat_elem, do_option, target_options_to_string):
2541 * target.h (target_options_to_string): Declare.
2543 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2544 Tom Tromey <tromey@redhat.com>
2546 * dwarf2read.c (dwarf_decode_macros)
2547 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2548 DW_MACRO_GNU_transparent_include_alt>: New cases.
2549 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2550 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2552 2012-07-20 Tom Tromey <tromey@redhat.com>
2554 * dwarf2read.c (try_open_dwo_file): Don't call
2555 gdb_bfd_stash_filename.
2557 2012-07-20 Pedro Alves <palves@redhat.com>
2559 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2560 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2561 (i386_process_record): Tweak description comments.
2563 2012-07-20 Pedro Alves <palves@redhat.com>
2565 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2566 (i386_process_record): Use record_read_memory.
2567 * record.c (record_read_memory): New function.
2568 (record_arch_list_add_mem, record_exec_insn): Use
2570 * record.h (record_read_memory): Declare.
2572 2012-07-20 Yao Qi <yao@codesourcery.com>
2574 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2577 2012-07-19 Pedro Alves <palves@redhat.com>
2579 * record.c (record_resume): Ask the target beneath to report all
2582 2012-07-19 Doug Evans <dje@google.com>
2584 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2585 there's no section at address zero.
2586 (dwarf2_record_block_ranges): Ditto.
2588 2012-07-19 Yao Qi <yao@codesourcery.com>
2590 * command.h, remote.c: Fix a typo in comment.
2592 2012-07-19 Tom Tromey <tromey@redhat.com>
2595 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2596 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2597 OP_DECLTYPE>: New cases.
2598 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2599 (type_exp): Add new productions.
2600 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2602 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2604 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2605 OP_DECLTYPE>: New case.
2606 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2608 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2609 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2611 2012-07-19 Tom Tromey <tromey@redhat.com>
2613 * c-exp.y (enum token_flags): New.
2614 (struct token) <cxx_only>: Remove.
2616 (tokentab3, tokentab2, ident_tokens): Update.
2617 (lex_one_token): Update. Handle FLAG_SHADOW.
2619 2012-07-19 Tom Tromey <tromey@redhat.com>
2621 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2622 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2623 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2624 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2625 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2626 type_exp production where appropriate.
2627 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2628 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2629 <UNOP_MEMVAL_TYPE>: New case.
2630 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2631 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2632 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2633 <UNOP_MEMVAL_TYPE>: New case.
2634 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2635 UNOP_REINTERPRET_CAST>: Update.
2636 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2637 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2638 UNOP_REINTERPRET_CAST>: Update.
2639 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2640 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2641 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2644 2012-07-19 Yao Qi <yao@codesourcery.com>
2645 Jan Kratochvil <jan.kratochvil@redhat.com>
2647 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2648 and case 'var_optional_filename' together.
2649 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2650 instead of add_setshow_optional_filename_cmd for setshow command
2651 'args'. Set completer for 'set args'.
2653 2012-07-18 Doug Evans <dje@google.com>
2655 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2656 * common/gdb_vecs.c: New file, contents from utils.c.
2657 * common/host-defs.h: New file, contents from defs.h.
2658 * utils.h: New file, contents from defs.h.
2659 * defs.h: Move all declarations of objects defined in utils.c
2660 to utils.h (except QUIT() and related).
2661 #include "utils.h", "host-defs.h".
2662 * probe.h (probe_p): Move here from gdb_vecs.h.
2663 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2664 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2665 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2666 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2667 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2668 (COMMON_OBS): Add gdb_vecs.o.
2669 (gdb_vecs.o): New rule.
2671 2012-07-18 Keith Seitz <keiths@redhat.com>
2673 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2674 parameter. If non-zero, use SYMNAME as the canonical name
2677 (convert_linespec_to_sals): Use add_sal_to_sals for
2679 (decode_line_full): No need to "fill in missing canonical names"
2680 anymore. Simply make cleanups for the allocated names.
2682 2012-07-18 Keith Seitz <keiths@redhat.com>
2684 * linespec.c (struct linespec): Constify expression,
2685 source_filename, function_name, and label_name.
2686 (symbol_not_found_error): Make all parameters const.
2687 (linespec_parser_delete): No need to check for NULL
2688 when using xfree. Cast const char * to char * for xfree.
2690 2012-07-18 Keith Seitz <keiths@redhat.com>
2692 * breakpoint.c (invalid_thread_id_error): New function.
2693 (find_condition_and_thread): Use invalid_thread_id_error.
2694 (watch_command_1): Likewise.
2696 2012-07-18 Tom Tromey <tromey@redhat.com>
2698 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2699 * contrib/cc-with-tweaks.sh: New file.
2701 2012-07-18 Tom Tromey <tromey@redhat.com>
2703 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2704 (locate_dwz_sections): Recognize .gdb_index.
2705 (create_cus_from_index_list): New function.
2706 (create_cus_from_index): Use it. Handle .dwz data.
2707 (read_index_from_section): New function, extracted from
2709 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2712 2012-07-18 Tom Tromey <tromey@redhat.com>
2714 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2715 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2716 <is_dwz>: New field.
2717 (struct dwz_file): New.
2718 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2719 (locate_dwz_sections, dwarf2_get_dwz_file)
2720 (get_abbrev_section_for_cu): New functions.
2721 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2722 (read_and_check_type_unit_head): Add abbrev_section argument.
2723 (create_debug_types_hash_table): Update.
2724 (init_cutu_and_read_dies): Use proper abbrev section.
2725 (init_cutu_and_read_dies_no_follow): Likewise.
2726 (set_partial_user): Do nothing if PST==NULL.
2727 (read_comp_units_from_section): New function.
2728 (create_all_comp_units): Use it.
2729 (scan_partial_symbols, partial_die_parent_scope): Update.
2730 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2731 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2732 (find_partial_die): Add offset_in_dwz argument. Update.
2733 (guess_partial_die_structure_name, fixup_partial_die): Update.
2734 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2735 DW_FORM_GNU_strp_alt.
2736 (read_indirect_string_from_dwz): New function.
2737 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2738 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2739 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2740 (follow_die_offset): Add offset_in_dwz argument.
2741 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2742 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2743 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2744 Handle new macro forms.
2745 (dwarf_decode_macros): Update.
2746 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2747 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2748 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2749 (create_debug_types_hash_table): Use correct abbrev section.
2750 (get_debug_line_section): New function.
2751 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2752 (process_full_comp_unit): Pass 'required' argument to
2753 end_symtab_get_static_block.
2754 * buildsym.h (end_symtab_get_static_block): Update.
2755 * buildsym.c (end_symtab_get_static_block): Add 'required'
2757 (end_symtab, end_expandable_symtab): Update.
2759 2012-07-18 Tom Tromey <tromey@redhat.com>
2761 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2763 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2764 (zlib_decompress_section): Remove.
2765 (dwarf2_read_section): Use gdb_bfd_map_section.
2766 (munmap_section_buffer): Remove.
2767 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2768 munmap_section_buffer.
2769 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2770 (struct gdb_bfd_section_data): New.
2771 (free_one_bfd_section): New function.
2772 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2773 (get_section_descriptor, zlib_decompress_section)
2774 (gdb_bfd_map_section): New functions.
2775 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2777 2012-07-18 Tom Tromey <tromey@redhat.com>
2779 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2781 2012-07-18 Tom Tromey <tromey@redhat.com>
2783 * gdb_bfd.c (struct gdb_bfd_data): New.
2784 (gdb_bfd_cache): New global.
2785 (struct gdb_bfd_cache_search): New.
2786 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2787 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2788 * gdb_bfd.h (gdb_bfd_open): Declare.
2790 2012-07-18 Tom Tromey <tromey@redhat.com>
2792 * utils.c (make_cleanup_bfd_unref): Rename from
2793 make_cleanup_bfd_close.
2794 * defs.h (make_cleanup_bfd_unref): Rename from
2795 make_cleanup_bfd_close.
2796 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2797 (bfd_openw_with_cleanup): Update.
2798 * corelow.c (core_open): Update.
2799 * dsrec.c (load_srec): Update.
2800 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2801 * remote-m32r-sdi.c (m32r_load): Update.
2802 * remote-mips.c (mips_load_srec): Update.
2803 (pmon_load_fast): Update.
2804 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2806 (darwin_bfd_open): Update.
2807 * solib.c (solib_bfd_fopen): Update.
2808 * symfile-mem.c (symbol_file_add_from_memory): Update.
2809 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2810 (symfile_bfd_open): Update.
2811 (generic_load): Update.
2813 2012-07-18 Tom Tromey <tromey@redhat.com>
2815 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2816 (pmon_load_fast): Likewise.
2817 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2818 (m32r_upload_command): Likewise.
2819 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2820 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2821 Use make_cleanup_bfd_close.
2823 2012-07-18 Tom Tromey <tromey@redhat.com>
2825 * symfile.c (symfile_bfd_open): Don't copy name. Call
2826 gdb_bfd_stash_filename.
2827 (load_command): Open the new BFD before freeing the old.
2828 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2829 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2830 Call gdb_bfd_stash_filename.
2831 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2832 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2833 gdb_bfd_stash_filename.
2834 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2835 Free found_pathname.
2836 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2837 gdb_bfd_stash_filename.
2838 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2839 * machoread.c (macho_add_oso_symfile): Call
2840 gdb_bfd_stash_filename.
2841 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2842 gdb_bfd_stash_filename.
2843 (macho_check_dsym): Don't copy filename. Call
2844 gdb_bfd_stash_filename.
2845 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2846 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2847 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2848 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2849 * exec.c (exec_close): Don't free the BFD's filename.
2850 (exec_file_attach): Don't copy the filename. Call
2851 gdb_bfd_stash_filename.
2852 * corelow.c (core_close): Don't free the BFD's filename.
2853 (core_open): Call gdb_bfd_stash_filename.
2854 * corefile.c (reopen_exec_file): Remove #if 0 code.
2855 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2857 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2859 2012-07-18 Tom Tromey <tromey@redhat.com>
2861 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2863 (free_dwo_file): Use gdb_bfd_unref.
2864 * cli/cli-dump.c: Include gdb_bfd.h.
2865 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2866 (bfd_openr_with_cleanup): Likewise.
2867 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2869 * utils.c: Include gdb_bfd.h.
2870 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2871 * symfile.c: Include gdb_bfd.h.
2872 (separate_debug_file_exists): Use gdb_bfd_unref.
2873 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2874 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2875 (generic_load): Use gdb_bfd_ref.
2876 (reread_symbols): Use gdb_bfd_unref.
2877 * symfile-mem.c: Include gdb_bfd.h.
2878 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2879 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2880 * solib.c: Include gdb_bfd.h.
2881 (solib_bfd_fopen): Use gdb_bfd_ref.
2882 (solib_bfd_open): Use gdb_bfd_unref.
2883 (free_so_symbols): Use gdb_bfd_unref.
2884 (reload_shared_libraries_1): Use gdb_bfd_unref.
2885 * solib-spu.c: Include gdb_bfd.h.
2886 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2887 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2889 * solib-frv.c: Include gdb_bfd.h.
2890 (enable_break2): Use gdb_bfd_unref.
2891 * solib-dsbt.c: Include gdb_bfd.h.
2892 (enable_break2): Use gdb_bfd_unref.
2893 * solib-darwin.c: Include gdb_bfd.h.
2894 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2896 (darwin_bfd_open): Use gdb_bfd_unref.
2897 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2898 * remote-mips.c: Include gdb_bfd.h.
2899 (mips_load_srec): Use gdb_bfd_ref.
2900 (pmon_load_fast): Use gdb_bfd_ref.
2901 * remote-m32r-sdi.c: Include gdb_bfd.h.
2902 (m32r_load): Use gdb_bfd_ref.
2903 * record.c: Include gdb_bfd.h.
2904 (record_save_cleanups): Use gdb_bfd_unref.
2905 (cmd_record_save): Use gdb_bfd_unref.
2906 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2908 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2909 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2910 * objfiles.c: Include gdb_bfd.h.
2911 (free_objfile): Use gdb_bfd_unref.
2912 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2914 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2915 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2916 (macho_check_dsym): Likewise.
2917 * m32r-rom.c: Include gdb_bfd.h.
2918 (m32r_load): Use gdb_bfd_ref.
2919 (m32r_upload_command): Use gdb_bfd_ref.
2920 * jit.c: Include gdb_bfd.h.
2921 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2922 * gdb_bfd.h: New file.
2923 * gdb_bfd.c: New file.
2924 * gcore.c: Include gdb_bfd.h.
2925 (create_gcore_bfd): Use gdb_bfd_ref.
2926 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2927 (gcore_command): Use gdb_bfd_unref.
2928 * exec.c: Include gdb_bfd.h.
2929 (exec_close): Use gdb_bfd_unref.
2930 (exec_close_1): Use gdb_bfd_unref.
2931 (exec_file_attach): Use gdb_bfd_ref.
2932 * elfread.c: Include gdb_bfd.h.
2933 (build_id_verify): Use gdb_bfd_unref.
2934 * dsrec.c: Include gdb_bfd.h.
2935 (load_srec): Use gdb_bfd_ref.
2936 * corelow.c: Include gdb_bfd.h.
2937 (core_close): Use gdb_bfd_unref.
2938 (core_open): Use gdb_bfd_ref.
2939 * bfd-target.c: Include gdb_bfd.h.
2940 (target_bfd_xclose): Use gdb_bfd_unref.
2941 (target_bfd_reopen): Use gdb_bfd_ref.
2942 * Makefile.in (SFILES): Add gdb_bfd.c.
2943 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2944 (COMMON_OBS): Add gdb_bfd.o.
2946 2012-07-18 Keith Seitz <keiths@redhat.com>
2948 * breakpoint.c (find_condition_and_thread): Initialize
2950 (create_breakpiont): find_condition_and_thread will now
2951 initialize COND_STRING, THREAD, and REST (and TASK).
2952 (addr_string_to_sals): Likewise.
2954 2012-07-18 Pedro Alves <palves@redhat.com>
2956 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2957 Pull the single step breakpoints out of the target.
2959 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2961 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2962 * stap-probe.c (compile_probe_arg): Likewise.
2964 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2966 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2967 (elf_compile_to_ax): Likewise.
2968 * infrun.c (insert_exception_resume_from_probe): Likewise.
2969 (check_exception_resume): Remove `objfile' variable.
2970 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2971 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2972 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2973 (compare_entries): Rename to...
2974 (compare_probes): ...this. Adjust function to work with
2975 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2977 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2979 (print_ui_out_info): Adjust argument to be `struct probe *'.
2980 (info_probes_for_ops): Adjust internal computations to use
2982 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2983 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2984 gen_info_probes_table_values>: Remove `objfile' argument.
2985 (struct probe) <objfile>: New field.
2986 (find_probe_by_pc): Remove `objfile' argument.
2987 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2988 (stap_get_probe_argument_count): Likewise.
2989 (stap_get_arg): Likewise.
2990 (stap_evaluate_probe_argument): Likewise.
2991 (stap_compile_to_ax): Likewise.
2992 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2993 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2994 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2995 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2996 sym_compile_to_ax>: Likewise.
2998 2012-07-18 Terry Guo <terry.guo@arm.com>
3001 * defs.h (GDB_MI_MSG_WIDTH): New.
3002 * ser_base (ser_base_read_error_fd): New function.
3003 (do_ser_base_readchar): Poll error file descriptor as well as
3005 (generic_readchar): Refactor error handling.
3007 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3009 * NEWS: Create a new section for the next release branch.
3010 Rename the section of the current branch, now that it has
3013 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3015 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3016 * version.in: Bump version to 7.5.50.20120718-cvs.
3018 2012-07-17 Keith Seitz <keiths@redhat.com>
3020 * linespec.c (linespec_parse_line_offset): Make parameter
3023 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3026 * f-valprint.c (info_common_command): New variable frame_id.
3027 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3028 * printcmd.c (print_variable_and_value): Extend function comment.
3029 Add comment for invalidated FRAME.
3030 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3031 FI form FRAME_ID after each print_frame_local_vars.
3032 (struct print_variable_and_value_data): Change frame to frame_id.
3033 (do_print_variable_and_value): New variable frame, initialize it from
3034 p->frame_id. Add comment for invalidated FRAME.
3035 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3036 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3037 for invalidated FRAME.
3039 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3040 Pedro Alves <palves@redhat.com>
3042 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3045 2012-07-16 Tom Tromey <tromey@redhat.com>
3047 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3049 2012-07-15 Doug Evans <dje@google.com>
3051 * dwarf2read.c (stmt_list_hash): New struct.
3052 (type_unit_group): Embed "per_cu" member, remove pointer.
3053 New union member "t", move member "tus" into it, all uses updated.
3054 New member "hash", replaces member "line_offset, all uses updated.
3055 (quick_file_names): Replace member "offset" with "hash", all uses
3057 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3058 (hash_file_name_entry, eq_file_name_entry): Call them.
3059 (hash_type_unit_group, eq_type_unit_group): Ditto.
3060 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3061 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3062 (dw2_get_file_names): Update.
3063 (create_type_unit_group): Replace "per_cu" arg with "cu".
3064 All callers updated. Fix "quick" (.gdb_index) handling.
3065 (get_type_unit_group): Replace "per_cu" arg with "cu".
3066 All callers updated.
3067 (build_type_unit_groups): Don't reset tu_stats.
3069 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3070 "tab_cur_size". Change member "tab" to be a htab_t.
3071 (create_filename_seen_cache): Update.
3072 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3073 (filename_seen): Update.
3075 2012-07-13 Doug Evans <dje@google.com>
3077 * symtab.c (filename_seen): Update comment.
3079 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 Doug Evans <dje@google.com>
3082 * buildsym.c (end_symtab_1): Split it to ...
3083 (end_symtab_get_static_block): ... this ...
3084 (end_symtab_from_static_block): ... and this function.
3085 (end_symtab, end_expandable_symtab): Call them.
3086 * buildsym.h (end_symtab_get_static_block)
3087 (end_symtab_from_static_block): New declarations.
3088 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3089 Set its valid CU ranges.
3091 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3093 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3094 DW_OP_GNU_parameter_ref.
3096 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3098 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3099 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3101 2012-07-13 Doug Evans <dje@google.com>
3103 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3104 (filename_seen_cache): New struct.
3105 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3106 (create_filename_seen_cache): New function.
3107 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3108 (filename_seen): Delete arg "first". New arg "cache". All callers
3110 (output_source_filename_data): New struct.
3111 (output_source_filename): Delete arg "first". New arg "data".
3112 All callers updated.
3113 (sources_info): Delete local "first". New locals "data", "cleanups".
3114 Rewrite to use filename_seen_cache.
3115 (add_partial_filename_data): Delete member "first". New member
3116 "filename_seen_cache". All uses updated.
3117 (make_source_files_completion_list): Rewrite to use
3118 filename_seen_cache.
3120 2012-07-12 Doug Evans <dje@google.com>
3122 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3124 2012-07-10 Doug Evans <dje@google.com>
3127 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3128 all_type_unit_groups, type_unit_groups, tu_stats.
3129 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3130 All uses updated. Add type_unit_group to union "s".
3131 (type_unit_group): New struct.
3132 (IS_TYPE_UNIT_GROUP): New macro.
3133 (abbrev_table): Delete unused member "section".
3134 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3135 (dw2_get_cu): Assert not used with type_unit_group.
3136 (dw2_get_primary_cu): New function.
3137 (dw2_build_type_unit_groups_reader): New function.
3138 (dw2_build_type_unit_groups): New function.
3139 (dw2_get_file_names): Assert not called on type units.
3140 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3141 Redo loop to iterate over type unit groups instead of type units.
3142 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3143 (read_abbrev_offset): New function.
3144 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3146 (create_partial_symtab): New function.
3147 (process_psymtab_comp_unit_reader): Assert not used with type units.
3148 Call create_partial_symtab.
3149 (process_psymtab_type_unit): Delete.
3150 (hash_type_unit_group, eq_type_unit_group): New functions.
3151 (allocate_type_unit_groups_table): New function.
3152 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3153 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3154 (create_type_unit_group, get_type_unit_group): New functions.
3155 (tu_abbrev_offset): New struct.
3156 (sort_tu_by_abbrev_offset): New function.
3157 (add_type_unit_group_to_table): New function.
3158 (build_type_unit_groups): New function.
3159 (build_type_psymtabs_reader): New function.
3160 (build_type_psymtab_dependencies): New function.
3161 (build_type_psymtabs): Rewrite.
3162 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3163 is seen in a type unit.
3164 (process_queue): Move symtab expansion debugging printfs here.
3165 Call process_full_type_unit for type units.
3166 (compute_symtab_includes): Assert not called for type units.
3167 (process_cu_includes): Don't call compute_symtab_includes for
3169 (process_full_type_unit): New function.
3170 (process_imported_unit_die): Flag an error if called for type units.
3171 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3172 updated. Assert not called for type units.
3173 (read_file_scope): Call dwarf2_start_symtab.
3174 (setup_type_unit_groups): New function.
3175 (read_type_unit_scope): Rewrite.
3176 (abbrev_table_read_table): Initialize abbrev_table->offset.
3177 (abbrev_table_free_cleanup): New function.
3178 (dwarf2_start_symtab): New function.
3179 (load_full_type_unit): Assert not called for type unit groups.
3180 * buildsym.c (finish_block_internal): New arg "expandable".
3181 All callers updated.
3182 (start_symtab): Move most contents to ...
3183 (restart_symtab): ... here. New function.
3184 (reset_symtab_globals): New function.
3185 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3186 Call reset_symtab_globals.
3187 (end_symtab, end_expandable_symtab): New functions.
3188 (set_missing_symtab, augment_type_symtab): New functions.
3189 * buildsym.h (end_expandable_symtab): Declare.
3190 (augment_type_symtab, restart_symtab): Declare.
3191 * psympriv.h (struct partial_symtab): New member "anonymous".
3192 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3194 (read_psymtabs_with_filename): Ditto.
3195 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3196 (expand_symtabs_matching_via_partial): Ditto.
3197 (dump_psymtab): Update.
3198 * dictionary.c (dict_add_pending): New function.
3199 * dictionary.h (dict_add_pending): Declare.
3201 2012-07-09 Doug Evans <dje@google.com>
3203 * buildsym.c (start_subfile): Remove unnecessary check for
3206 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3208 * dwarf2read.c (load_full_type_unit): Simplify.
3210 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3211 to struct signatured_type **. All uses updated.
3213 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3214 All callers updated.
3216 2012-07-09 Tom Tromey <tromey@redhat.com>
3218 * c-exp.y (check_parameter_typelist): New function.
3219 (parameter_typelist): Call it.
3220 * eval.c (make_params): Handle '(void)' case.
3221 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3224 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3226 * common/linux-ptrace.c: Include gdb_assert.h.
3227 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3228 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3230 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3232 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3233 * linux-nat.c (linux_child_post_attach)
3234 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3236 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3238 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3239 nptl <2.7 bug workaround for core files.
3241 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3243 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3245 (save_siginfo): Remove.
3246 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3248 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3249 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3250 * linux-nat.h (struct lwp_info): Remove field siginfo.
3252 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3254 Code cleanup for the next patch.
3255 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3256 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3258 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3259 (ia64_linux_stopped_data_address):
3260 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3262 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3263 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3264 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3267 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3270 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3271 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3273 2012-07-06 Tom Tromey <tromey@redhat.com>
3275 * c-exp.y (DOTDOTDOT): New token.
3276 (func_mod, exp): Use parameter_typelist.
3277 (parameter_typelist): New production.
3278 (tokentab3): Add "..." token.
3279 * eval.c (make_params): Handle varargs.
3280 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3283 2012-07-06 Tom Tromey <tromey@redhat.com>
3286 * c-exp.y (%union) <tvec>: Change type.
3287 (func_mod): Now uses <tvec> type.
3288 (exp): Update for tvec change.
3289 (direct_abs_decl): Push the typelist.
3290 (func_mod): Return a typelist.
3291 (nonempty_typelist): Update for tvec change.
3292 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3293 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3294 * parse.c (pop_type_list): New function.
3295 (push_typelist): New function.
3296 (follow_types): Handle tp_function_with_arguments.
3297 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3298 (enum type_pieces) <tp_function_with_arguments>: New constant.
3299 (union type_stack_elt) <typelist_val>: New field.
3300 (push_typelist): Declare.
3302 2012-07-06 Tom Tromey <tromey@redhat.com>
3304 * c-exp.y (%union) <type_stack>: New field.
3305 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3306 (ptr_operator_ts): New production.
3308 * parse.c (type_stack_reserve): New function.
3309 (check_type_stack_depth): Use it.
3310 (pop_type_stack, append_type_stack, push_type_stack)
3311 (get_type_stack, type_stack_cleanup): New functions.
3312 (follow_types): Handle tp_type_stack.
3313 (_initialize_parse): Simplify initialization.
3314 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3316 (union type_stack_elt) <stack_val>: New field.
3317 (get_type_stack, append_type_stack, push_type_stack)
3318 (type_stack_cleanup): Declare.
3320 2012-07-06 Tom Tromey <tromey@redhat.com>
3322 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3324 (struct type_stack): New.
3325 * parse.c (type_stack, type_stack_size, type_stack_depth):
3327 (type_stack): New global.
3328 (parse_exp_in_context, check_type_stack_depth)
3329 (insert_into_type_stack, insert_type, push_type, push_type_int)
3330 (insert_type_address_space, pop_type, pop_type_int)
3331 (_initialize_parse): Update.
3333 2012-07-06 Tom Tromey <tromey@redhat.com>
3335 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3338 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3340 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3342 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3343 Jan Kratochvil <jan.kratochvil@redhat.com>
3345 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3346 alloca with xmalloc/xfree.
3348 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3350 * MAINTAINERS (Write After Approval): Add myself to the list.
3352 2012-07-05 Doug Evans <dje@google.com>
3354 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3356 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3358 * ax-gdb.c (cli/cli-utils.h): New include.
3359 (linespec.h): Ditto.
3360 (agent_eval_command_one): New function.
3361 (agent_command_1): Ditto.
3362 (agent_command): Call function agent_command_1.
3363 (agent_eval_command): Ditto.
3364 (_initialize_ax_gdb): Change help for "maint agent"
3365 and "maint agent-eval".
3367 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3369 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3370 * cli/cli-utils.c (check_for_argument): New function.
3371 * cli/cli-utils.h (check_for_argument): Ditto.
3373 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3375 * NEWS: Mention x32 ABI support.
3377 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3379 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3380 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3382 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3383 and pc_regnum_from_eax to -1. Update SP regnum from
3384 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3387 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3390 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3393 * dwarf2expr.h: Include gdbtypes.h.
3394 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3395 these forward declarations.
3396 (cu_offset, sect_offset): Move these ...
3397 * gdbtypes.h: Remove include dwarf2expr.h.
3398 (cu_offset, sect_offset): ... here.
3400 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3402 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3403 (amd64_linux_sigtramp_code): This.
3404 (amd64_x32_linux_sigtramp_code): New.
3405 (LINUX_SIGTRAMP_LEN): Updated.
3406 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3408 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3410 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3412 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3414 * config.in: Regenerate.
3415 * configure: Regenerate.
3416 * configure.ac: Remove check for gnu/libc-version.h.
3417 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3419 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3420 variables libc_version, libc_major and libc_minor. Replace sscanf by
3421 inferior_has_bug. Extend the comment.
3423 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3425 * linux-thread-db.c (inferior_has_bug): New function.
3426 (thread_db_find_new_threads_silently): Return boolean as checked by
3427 inferior_has_bug, describe it in the comments.
3428 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3429 earlier. Abort the initialization if it returned non-zero.
3430 (thread_db_new_objfile): Exclude debug files.
3431 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3434 2012-07-02 Doug Evans <dje@google.com>
3436 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3437 related to queue management.
3439 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3440 instead of "debug dwarf2-die" in debugging printfs.
3441 (create_debug_info_hash_table_reader): Ditto.
3442 (create_debug_info_hash_table): Ditto.
3443 (init_dwo_file): Ditto.
3444 (init_cutu_and_read_dies): Add debugging printf.
3445 (init_cutu_and_read_dies_no_follow): Ditto.
3446 (process_psymtab_comp_unit_reader): Ditto.
3448 2012-07-02 Stan Shebs <stan@codesourcery.com>
3450 Add target-side support for dynamic printf.
3451 * NEWS: Mention the additional style.
3452 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3453 (struct bp_location): New field cmd_bytecode.
3454 * breakpoint.c: Include format.h.
3455 (disconnected_dprintf): New global.
3456 (parse_cmd_to_aexpr): New function.
3457 (build_target_command_list): New function.
3458 (insert_bp_location): Call it.
3459 (remove_breakpoints_pid): Skip dprintf breakpoints.
3460 (print_one_breakpoint_location): Ditto.
3461 (dprintf_style_agent): New global.
3462 (dprintf_style_enums): Add dprintf_style_agent.
3463 (update_dprintf_command_list): Add agent case.
3464 (agent_printf_command): New function.
3465 (_initialize_breakpoint): Add new commands.
3466 * common/ax.def (printf): New bytecode.
3467 * ax.h (ax_string): Declare.
3468 * ax-gdb.h (gen_printf): Declare.
3469 * ax-gdb.c: Include cli-utils.h, format.h.
3470 (gen_printf): New function.
3471 (maint_agent_print_command): New function.
3472 (_initialize_ax_gdb): Add maint agent-printf command.
3473 * ax-general.c (ax_string): New function.
3474 (ax_print): Add printf disassembly.
3475 * Makefile.in (SFILES): Add format.c
3476 (COMMON_OBS): Add format.o.
3477 * common/format.h: New file.
3478 * common/format.c: New file.
3479 * printcmd.c: Include format.h.
3480 (ui_printf): Call parse_format_string.
3481 * remote.c (remote_state): New field breakpoint_commands.
3482 (PACKET_BreakpointCommands): New enum.
3483 (remote_breakpoint_commands_feature): New function.
3484 (remote_protocol_features): Add new BreakpointCommands entry.
3485 (remote_can_run_breakpoint_commands): New function.
3486 (remote_add_target_side_commands): New function.
3487 (remote_insert_breakpoint): Call it.
3488 (remote_insert_hw_breakpoint): Ditto.
3489 (_initialize_remote): Add new packet configuration for
3490 target-side breakpoint commands.
3491 * target.h (struct target_ops): New field
3492 to_can_run_breakpoint_commands.
3493 (target_can_run_breakpoint_commands): New macro.
3494 * target.c (update_current_target): Handle
3495 to_can_run_breakpoint_commands.
3497 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3499 Execute -ix and -iex only after system and user gdbinit files.
3500 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3501 processing down after gdbinit files.
3503 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3505 Add fnmatch-gnu module.
3506 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3507 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3508 * gnulib/aclocal.m4: Regenerate.
3509 * gnulib/config.in: Regenerate.
3510 * gnulib/configure: Regenerate.
3511 * gnulib/import/dummy.c: Remove.
3512 * gnulib/import/Makefile.am: Regenerate.
3513 * gnulib/import/Makefile.in: Likewise.
3514 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3515 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3516 * gnulib/import/alloca.c: New file.
3517 * gnulib/import/alloca.in.h: Likewise.
3518 * gnulib/import/config.charset: Likewise.
3519 * gnulib/import/fnmatch.c: Likewise.
3520 * gnulib/import/fnmatch.in.h: Likewise.
3521 * gnulib/import/fnmatch_loop.c: Likewise.
3522 * gnulib/import/localcharset.c: Likewise.
3523 * gnulib/import/localcharset.h: Likewise.
3524 * gnulib/import/m4/alloca.m4: Likewise.
3525 * gnulib/import/m4/codeset.m4: Likewise.
3526 * gnulib/import/m4/configmake.m4: Likewise.
3527 * gnulib/import/m4/fcntl-o.m4: Likewise.
3528 * gnulib/import/m4/fnmatch.m4: Likewise.
3529 * gnulib/import/m4/glibc21.m4: Likewise.
3530 * gnulib/import/m4/localcharset.m4: Likewise.
3531 * gnulib/import/m4/locale-fr.m4: Likewise.
3532 * gnulib/import/m4/locale-ja.m4: Likewise.
3533 * gnulib/import/m4/locale-zh.m4: Likewise.
3534 * gnulib/import/m4/mbrtowc.m4: Likewise.
3535 * gnulib/import/m4/mbsinit.m4: Likewise.
3536 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3537 * gnulib/import/m4/mbstate_t.m4: Likewise.
3538 * gnulib/import/m4/stdbool.m4: Likewise.
3539 * gnulib/import/m4/wchar_h.m4: Likewise.
3540 * gnulib/import/m4/wctype_h.m4: Likewise.
3541 * gnulib/import/m4/wint_t.m4: Likewise.
3542 * gnulib/import/mbrtowc.c: Likewise.
3543 * gnulib/import/mbsinit.c: Likewise.
3544 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3545 * gnulib/import/mbsrtowcs-state.c: Likewise.
3546 * gnulib/import/mbsrtowcs.c: Likewise.
3547 * gnulib/import/ref-add.sin: Likewise.
3548 * gnulib/import/ref-del.sin: Likewise.
3549 * gnulib/import/stdbool.in.h: Likewise.
3550 * gnulib/import/streq.h: Likewise.
3551 * gnulib/import/strnlen1.c: Likewise.
3552 * gnulib/import/strnlen1.h: Likewise.
3553 * gnulib/import/verify.h: Likewise.
3554 * gnulib/import/wchar.in.h: Likewise.
3555 * gnulib/import/wctype.in.h: Likewise.
3557 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3559 Support shell wildcards for 'set auto-load safe-path'.
3560 * auto-load.c: Include fnmatch.h.
3561 (filename_is_in_dir): Rename to ...
3562 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3563 it. Update function comment. Rename dir_len to pattern_len. New
3564 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3565 messages. Use gdb_filename_fnmatch.
3566 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3568 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3569 * defs.h (gdb_filename_fnmatch): New declaration.
3570 * utils.c: Include fnmatch.h.
3571 (gdb_filename_fnmatch): New function.
3573 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3575 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3576 `-probe' and `-probe-stap' options.
3578 2012-07-01 Yao Qi <yao@codesourcery.com>
3580 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3581 always_inserted_off, and always_inserted_enums.
3582 Change always_inserted_mode's type to 'enum auto_boolean'.
3583 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3585 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3586 of add_setshow_enum_cmd.
3587 * infrun.c: Remove can_use_displaced_stepping_auto,
3588 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3589 can_use_displaced_stepping_enum.
3590 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3591 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3592 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3593 add_setshow_enum_cmd.
3595 2012-06-30 Doug Evans <dje@google.com>
3597 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3598 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3599 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3601 2012-06-29 Doug Evans <dje@google.com>
3603 * linespec.c: #include "stack.h".
3604 (decode_line_with_current_source): Moved here from symtab.c and
3605 renamed from decode_line_spec. All callers updated.
3606 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3607 renamed from decode_line_spec_1. All callers updated.
3608 * linespec.h (decode_line_with_current_source): Move declaration here
3609 from symtab.h and renamed from decode_line_spec.
3610 (decode_line_with_last_displayed): Move declaration here from symtab.h
3611 and renamed from decode_line_spec_1.
3612 * macrocmd.c: #include "linespec.h".
3613 * symtab.c: Remove #include "linespec.h".
3615 2012-06-28 Doug Evans <dje@google.com>
3617 * dwarf2read.c (get_cu_length): New function.
3618 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3619 (create_debug_types_hash_table): Ditto.
3620 (init_cutu_and_read_dies): Ditto.
3621 (init_cutu_and_read_dies_no_follow): Ditto.
3623 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3625 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3626 (struct abbrev_table): Define.
3627 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3629 (init_cutu_and_read_dies): Update.
3630 (abbrev_table_alloc_abbrev): New function. Replaces
3631 dwarf_alloc_abbrev. All callers updated.
3632 (abbrev_table_add_abbrev): New function.
3633 (abbrev_table_lookup_abbrev): New function. Replaces
3634 dwarf2_lookup_abbrev. All callers updated.
3635 (abbrev_table_read_table): New function. Contents moved here from
3636 dwarf2_read_abbrevs.
3637 (dwarf2_read_abbrevs): Call it.
3638 (abbrev_table_free): New function.
3639 (dwarf2_free_abbrev_table): Call it.
3641 2012-06-28 Stan Shebs <stan@codesourcery.com>
3643 * osdata.c (info_osdata_command): Filter out "Title" columns
3645 * common/linux-osdata.c (struct osdata_type): Add title field.
3646 (osdata_table): Add titles to each entry.
3647 (linux_command_xfer_osdata): Add a column for title data.
3649 2012-06-28 Stan Shebs <stan@codesourcery.com>
3651 Make logging work for MI.
3653 * interps.h (interp_set_logging_ftype): New typedef.
3654 (struct interp_procs): New field set_logging_proc.
3655 (current_interp_set_logging): Declare.
3656 * interps.c (current_interp_set_logging): New function.
3657 * cli/cli-logging.c: Include interps.h.
3658 (set_logging_redirect): Call current_interp_set_logging.
3659 (pop_output_files): Ditto.
3660 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3661 * mi/mi-console.h (mi_console_set_raw): Declare.
3662 * mi/mi-console.c (mi_console_set_raw): New function.
3663 * mi/mi-interp.c (saved_raw_stdout): New global.
3664 (mi_set_logging): New function.
3665 (_initialize_mi_interp): Add it to interp procs.
3667 2012-06-28 Doug Evans <dje@google.com>
3669 * symtab.c (lookup_symbol_aux_objfile): Use
3670 ALL_OBJFILE_PRIMARY_SYMTABS.
3672 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3674 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3676 * common/buffer.c: Include inttypes.h and stdint.h.
3677 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3679 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3680 Pedro Alves <palves@redhat.com>
3682 * gdbthread.h (ALL_THREADS): New macro.
3683 (thread_list): Declare.
3684 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3685 going, but instead fall through to the stepping handling.
3686 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3687 the passed in signal. Adjust debug output.
3688 (resume_callback): Rename to ...
3689 (linux_nat_resume_callback): ... this. Pass the thread's last
3690 stop signal, if in "pass" state.
3691 (linux_nat_resume): Adjust to rename.
3692 (stop_wait_callback): New assertion. Don't respawn signals;
3693 instead let the LWP remain with SIGNALLED set.
3694 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3695 * remote.c (append_pending_thread_resumptions): New.
3696 (remote_vcont_resume): Call it.
3697 * target.h (target_resume): Extend comment.
3699 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3701 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3703 2012-06-27 Doug Evans <dje@google.com>
3705 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3706 Delete have_addr_base, unused. All uses updated.
3707 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3708 (dwarf2_get_pc_bounds): Add ranges_base.
3709 (dwarf2_record_block_ranges): Ditto.
3711 2012-06-27 Tom Tromey <tromey@redhat.com>
3714 * varobj.c (varobj_create): Update.
3715 (varobj_set_value): Update.
3716 * tracepoint.c (validate_actionline): Update.
3717 (encode_actions_1): Update.
3718 * parse.c (parse_exp_1): Add 'pc' argument.
3719 (parse_exp_in_context): Add 'pc' argument. Change how
3720 expression_context_pc is set.
3721 (parse_expression): Update.
3722 (parse_field_expression): Update.
3723 * expression.h (parse_exp_1): Update.
3724 * eval.c (parse_to_comma_and_eval): Update.
3725 * breakpoint.c (set_breakpoint_condition): Update.
3726 (update_watchpoint): Update.
3727 (init_breakpoint_sal): Update
3728 (find_condition_and_thread): Update.
3729 (watch_command_1): Update.
3730 (update_breakpoint_locations): Update.
3731 * ada-lang.c (ada_read_renaming_var_value): Update.
3732 (create_excep_cond_exprs): Update.
3734 2012-06-27 Doug Evans <dje@google.com>
3736 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3739 2012-06-26 Doug Evans <dje@google.com>
3741 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3743 (error_check_comp_unit_head): New arg abbrev_section. All callers
3745 (read_and_check_comp_unit_head): Ditto.
3746 (read_and_check_type_unit_head): Ditto.
3748 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3750 New attribute 'last' for gdb.Symtab_and_line.
3751 * NEWS (Python Scripting): Add entry about the new attribute.
3752 * python/py-symtab.c (salpy_get_last): New function which
3753 implements the get method for the 'last' attribute of
3754 gdb.Symtab_and_line.
3755 (sal_object_getset): Add entry for the 'last' attribute.
3757 2012-06-26 Doug Evans <dje@google.com>
3759 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3760 (dwo_sections): Add macinfo, macro.
3761 (dwarf2_locate_dwo_sections): Watch for macro sections.
3762 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3763 All callers updated. Handle DWO files.
3765 * NEWS: Mention new options "set debug dwarf2-read" and
3766 "set debug symtab-create".
3767 * dwarf2read.c (dwarf2_read_debug): New static global.
3768 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3769 (process_queue): Ditto.
3770 (process_full_comp_unit): Ditto.
3771 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3772 * elfread.c (elf_symfile_read): Add debugging printf.
3773 * minsyms.c (install_minimal_symbols): Ditto.
3774 * psymtab.c (allocate_psymtab): Ditto.
3775 * symfile.c (allocate_symtab): Ditto.
3776 * symtab.c (symtab_create_debug): New global.
3777 (_initialize_symtab): Add new option "set debug symtab-create".
3778 * symtab.h (symtab_create_debug): Declare.
3780 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3781 (lookup_dwo_type_unit): Ditto.
3783 2012-06-26 Roland McGrath <roland@hack.frob.com>
3784 H.J. Lu <hongjiu.lu@intel.com>
3786 * amd64-linux-nat.c: Include <sys/user.h>.
3787 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3788 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3789 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3791 * configure.ac: Check if the fs_base and gs_base members of
3792 `struct user_regs_struct' exist.
3793 * config.in: Regenerated.
3794 * configure: Likewise.
3796 2012-06-25 Michael Eager <eager@eagercon.com>
3799 * python/python.c (gdbpy_write): Check for interrupted output.
3801 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3803 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3804 register as a stack alignment in ARM mode.
3806 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3808 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3809 * gnulib/config.in: Regenerate.
3810 * gnulib/configure: Likewise.
3811 * gnulib/import/m4/extensions.m4: Update it.
3812 * gnulib/import/m4/gnulib-common.m4: Likewise.
3813 * gnulib/import/m4/memmem.m4: Likewise.
3814 * gnulib/import/m4/mmap-anon.m4: Likewise.
3815 * gnulib/import/m4/multiarch.m4: Likewise.
3816 * gnulib/import/stdint.in.h: Likewise.
3818 2012-06-24 Yao Qi <yao@codesourcery.com>
3820 * corefile.c (write_memory_with_notification): New.
3821 * gdbcore.h: Declare write_memory_with_notification.
3822 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3823 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3824 * valops.c (value_assign): Likewise.
3825 * python/py-inferior.c (infpy_write_memory): Call
3826 'write_memory_with_notification'.
3828 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3830 * cc-with-index.sh: Use also -ex "set auto-load no".
3832 2012-06-23 Doug Evans <dje@google.com>
3835 * NEWS: Document additions to .gdb_index.
3836 * dwarf2read.c: #include "gdb/gdb-index.h".
3837 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3838 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3839 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3840 (dwarf2_read_index): Recognize version 7.
3841 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3842 block_kind, domain): All callers updated.
3843 (dw2_find_symbol_file): Handle new index CU values.
3844 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3845 (add_index_entry): New args is_static, kind. All callers updated.
3846 (offset_type_compare, uniquify_cu_indices): New functions
3847 (symbol_kind): New function.
3848 (write_psymtabs_to_index): Remove duplicate CU values.
3849 (write_psymtabs_to_index): Write .gdb_index version 7.
3851 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3853 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3854 * configure: Regenerate.
3856 2012-06-20 Yao Qi <yao@codesourcery.com>
3858 * python/py-inferior.c: Update comments of infpy_read_memory
3859 and infpy_write_memory.
3861 2012-06-19 Tom Tromey <tromey@redhat.com>
3864 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3865 (push_type_address_space): Remove.
3866 * parse.c (insert_into_type_stack): New function.
3867 (insert_type): Likewise.
3868 (insert_type_address_space): Rename from push_type_address_space.
3869 Insert tp_space_identifier.
3870 * c-exp.y (ptr_operator): New production.
3871 (abs_decl): Use ptr_operator.
3872 (space_identifier): Call insert_type_address_space.
3873 (ptype): Don't use const_or_volatile_or_space_identifier.
3874 (const_or_volatile_noopt): Call insert_type.
3875 (conversion_type_id, conversion_declarator): New productions.
3876 (operator): Use conversion_type_id.
3878 2012-06-18 Doug Evans <dje@google.com>
3880 * symtab.h (minimal_symbol): New member created_by_gdb.
3881 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3883 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3884 (search_symbols): Call it instead of lookup_symbol.
3885 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3887 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3888 Adjust address for DW_OP_GNU_addr_index.
3889 * dwarf2expr.h (dwarf_expr_context): Update comment.
3890 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3891 all callers updated. Handle TLS vars described with
3892 DW_OP_GNU_const_index.
3893 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3894 and DW_OP_GNU_const_index.
3895 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3897 * block.c (find_block_in_blockvector): Make explicit the fact that we
3898 ignore GLOBAL_BLOCK.
3900 2012-06-18 Tom Tromey <tromey@redhat.com>
3902 * c-exp.y (operator): Remove trailing space after "delete" and
3905 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3906 Jan Kratochvil <jan.kratochvil@redhat.com>
3908 Switch i386 and derived targets to ON_STACK.
3909 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3910 (amd64_dicos_init_abi): Remove its installment.
3911 * dicos-tdep.c (dicos_init_abi): Remove the
3912 set_gdbarch_call_dummy_location call. Update the comment here.
3913 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3914 (i386_dicos_init_abi): Remove its installment.
3915 * i386-tdep.c (i386_push_dummy_code): New function.
3916 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3917 i386_push_dummy_code.
3919 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3921 Remove stale dummy frames.
3922 * breakpoint.c: Include dummy-frame.h.
3923 (longjmp_breakpoint_ops): New variable.
3924 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3925 bp_longjmp_call_dummy.
3926 (bpstat_what, bptype_string, print_one_breakpoint_location)
3927 (init_bp_location): Support bp_longjmp_call_dummy.
3928 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3929 (set_longjmp_breakpoint_for_call_dummy)
3930 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3932 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3933 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3934 FIXME comment and extend the other comment for bp_call_dummy.
3935 (set_longjmp_breakpoint_for_call_dummy)
3936 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3937 * dummy-frame.c: Include gdbthread.h.
3938 (pop_dummy_frame_bpt): New function.
3939 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3940 (dummy_frame_discard): New function.
3941 (cleanup_dummy_frames): Update the comment about longjmps.
3942 * dummy-frame.h (dummy_frame_discard): New declaration.
3943 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3944 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3945 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3946 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3947 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3948 keep_going if IS_LONGJMP and there is no other reason to stop.
3950 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3952 * remote-sim.c (sim_command_completer): Initialize
3955 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3958 * dwarf2loc.c (call_site_parameter_matches): Support
3959 CALL_SITE_PARAMETER_PARAM_OFFSET.
3960 (needs_dwarf_reg_entry_value): Push stub value.
3961 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3962 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3963 * gdbtypes.h (enum call_site_parameter_kind): New item
3964 CALL_SITE_PARAMETER_PARAM_OFFSET.
3965 (struct call_site.parameter.u): New field param_offset.
3967 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3969 Code cleanup: Generalize call_site.parameter key.
3970 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3971 variable dwarf_reg. New variable kind_u. Update parameters to
3972 push_dwarf_reg_entry_value.
3973 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3974 * dwarf2expr.h (enum call_site_parameter_kind)
3975 (union call_site_parameter_u): Forward declarations.
3976 (struct dwarf_expr_context_funcs): Update parameters and their
3977 description for push_dwarf_reg_entry_value.
3978 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3979 * dwarf2loc.c (call_site_parameter_matches): New function.
3980 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3981 description. Use call_site_parameter_matches.
3982 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3983 Update parameters and their description.
3984 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3985 New variable kind_u. Adjust the caller for updated parameters.
3986 (needs_dwarf_reg_entry_value): Update parameters.
3987 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3988 instead of attr. Update for the changed fields of struct
3989 call_site_parameter.
3990 * gdbtypes.h: Include dwarf2expr.h.
3991 (enum call_site_parameter_kind): New.
3992 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3993 fb_offset into new union u.
3995 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3997 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3998 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4001 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4003 * amd64-linux-nat.c (compat_x32_clock_t): New.
4004 (compat_x32_siginfo_t): Likewise.
4005 (compat_x32_siginfo_from_siginfo): Likewise.
4006 (siginfo_from_compat_x32_siginfo): Likewise.
4007 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4008 and siginfo_from_compat_x32_siginfo for x32.
4010 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4012 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4014 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4016 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4017 instead of gdbarch_ptr_bit.
4018 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4019 (amd64_supply_native_gregset): Likewise.
4020 (amd64_collect_native_gregset): Likewise.
4021 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4022 (amd64_supply_xsave): Likewise.
4023 (amd64_collect_fxsave): Likewise.
4024 (amd64_collect_xsave): Likewise.
4026 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4028 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4029 (amd64_linux_read_description): Check DS segment register for
4032 2012-06-15 Tom Tromey <tromey@redhat.com>
4034 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4035 init_cutu_and_read_dies.
4037 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4039 * MAINTAINERS (Write After Approval): Add myself to the list.
4041 2012-06-15 Tom Tromey <tromey@redhat.com>
4043 * valops.c (value_find_oload_method_list): Now static.
4044 * value.h (value_find_oload_method_list): Don't declare.
4046 2012-06-15 Tom Tromey <tromey@redhat.com>
4048 * valops.c (find_overload_match): Use value_ind.
4050 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4052 * infrun.c (handle_inferior_event): Correct indentation.
4054 2012-06-14 Doug Evans <dje@google.com>
4056 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4057 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4059 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4060 updated. Handle DEBUG_LOC_START_LENGTH.
4061 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4062 (loclist_describe_location): Ditto.
4064 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4067 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4068 after hiding inline functions.
4070 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4072 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4073 _initialize_inf_ttrace.
4075 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4077 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4078 _initialize_hppa_hpux_nat.
4080 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4082 * remote-sim.c (sim_command_completer): Change type of return
4083 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4085 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4086 Jan Kratochvil <jan.kratochvil@redhat.com>
4089 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4090 stack on a 16-byte boundary.
4092 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4094 * jit.c (finalize_symtab): Set function's return type to 'void' by
4097 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4098 H.J. Lu <hongjiu.lu@intel.com>
4100 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4101 Move bits common to both the classic LP64 and the new x32 ILP32
4103 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4104 (amd64_x32_linux_init_abi): New function.
4105 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4108 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4109 * i386-tdep.c (i386_pseudo_register_name): Make public.
4110 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4111 * amd64-tdep.c (amd64_dword_names): Add "eip".
4112 (amd64_x32_pseudo_register_type): New function
4113 (amd64_x32_init_abi): New function.
4115 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4118 * inferior.h (struct inferior_suspend_state): Comment out.
4119 (struct inferior): Comment out the field suspend.
4120 * infrun.c (struct infcall_suspend_state): Comment out the field
4122 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4125 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4127 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4128 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4129 function comment. Return ERROR for unresolved cases. Implement
4130 returning proper NAME.
4131 (yylex): Accept also NAME from classify_inner_name.
4132 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4133 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4135 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4137 2012-06-13 Tom Tromey <tromey@redhat.com>
4139 * breakpoint.c (condition_completer): New function.
4140 (_initialize_breakpoint): Use it.
4141 * value.c (complete_internalvar): New function.
4142 * value.h (complete_internalvar): Declare.
4144 2012-06-13 Tom Tromey <tromey@redhat.com>
4146 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4147 * breakpoint.c (catch_syscall_completer): Return a VEC.
4148 * cli/cli-cmds.c (complete_command): Update.
4149 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4150 (complete_on_enum): Likewise.
4151 * command.h: Include gdb_vecs.h.
4152 (completer_ftype): Change return type.
4153 (complete_on_cmdlist, complete_on_enum): Likewise.
4154 * completer.c (noop_completer, filename_completer)
4155 (location_completer): Return a VEC.
4156 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4158 (expression_completer, complete_line_internal, complete_line)
4159 (command_completer): Return a VEC.
4160 (gdb_completion_word_break_characters, line_completion_function):
4162 * completer.h: Include gdb_vecs.h.
4163 (complete_line, noop_completer, filename_completer)
4164 (expression_completer, location_completer, command_completer):
4166 * f-lang.c (f_word_break_characters): Return a VEC.
4167 * interps.c (interpreter_completer): Return a VEC.
4168 * language.h (struct language_defn)
4169 <la_make_symbol_completion_list>: Return a VEC.
4170 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4171 * symtab.c (free_completion_list): Take a VEC.
4172 (return_val_size, return_val_index): Remove.
4173 (return_val): Now a VEC.
4174 (completion_list_add_name): Update.
4175 (default_make_symbol_completion_list_break_on)
4176 (default_make_symbol_completion_list, make_symbol_completion_list)
4177 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4179 (add_filename_to_list): Update.
4180 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4182 (maybe_add_partial_symtab_filename): Update.
4183 (make_source_files_completion_list): Return a VEC.
4184 * symtab.h (default_make_symbol_completion_list_break_on)
4185 (default_make_symbol_completion_list, make_symbol_completion_list)
4186 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4187 (make_source_files_completion_list): Update.
4189 2012-06-13 Tom Tromey <tromey@redhat.com>
4191 * breakpoint.c (add_catch_command): Use completer_ftype.
4192 * breakpoint.h: Include command.h.
4193 (add_catch_command): Use completer_ftype.
4194 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4195 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4196 Use completer_ftype.
4197 * command.h (completer_ftype): New typedef.
4198 (set_cmd_completer): Use it.
4199 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4202 2012-06-13 Pedro Alves <palves@redhat.com>
4204 Partial revert of previous change.
4206 * serial.c (scb_base): New global.
4207 (serial_for_fd): New.
4208 (serial_open, serial_fdopen_ops): Link new serial in open serials
4210 (do_serial_close): Unlink serial from the open serials chain.
4212 2012-06-12 Pedro Alves <palves@redhat.com>
4214 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4216 (prepare_for_detach): No longer context switch here in non-stop
4218 (fetch_inferior_event): Ditto.
4219 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4220 to the event thread before removing breakpoints. Switch to the
4221 event thread before inserting breakpoints and resuming.
4222 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4223 event thread before resuming.
4224 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4225 Switch to the event thread before removing breakpoints.
4227 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4229 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4230 special characters correctly for the Windows shells. See
4231 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4233 [!__MINGW32__]: Remove extra double quote character from special
4236 2012-06-11 Stan Shebs <stan@codesourcery.com>
4238 * ui-out.h: Remove #if 0 declarations.
4239 * ui-out.c: Remove #if 0 functions.
4241 2012-06-11 Pedro Alves <palves@redhat.com>
4243 * ser-base.c (run_async_handler_and_reschedule): New.
4244 (fd_event, push_event): Use it.
4245 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4246 reference count to 1.
4247 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4249 (serial_is_open, serial_ref, serial_unref): New.
4250 * serial.h (serial_open): Adjust comment.
4251 (serial_is_open): Declare.
4252 (serial_close): Adjust comment.
4253 (serial_ref, serial_unref) Declare.
4254 (struct serial): New field 'refcnt'.
4256 2012-06-11 Pedro Alves <palves@redhat.com>
4258 Remove #if 0'd "connect" command, and unnecessary associated
4259 refcounting and serial reuse bits.
4261 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4262 * serial.c (last_serial_opened): Delete.
4264 (serial_open): Adjust.
4265 (serial_for_fd): Delete.
4266 (serial_fdopen_ops, do_serial_close): Adjust.
4267 (serial_fdopen_ops): Adjust.
4269 2012-06-11 Pedro Alves <palves@redhat.com>
4271 * serial.c (do_serial_close): Remove early return when SCB is
4274 2012-06-11 Tom Tromey <tromey@redhat.com>
4276 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4278 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4280 Fix regression by the "ambiguous linespec" series.
4281 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4282 get_last_displayed_symtab and get_last_displayed_line and depending
4285 2012-06-11 Tom Tromey <tromey@redhat.com>
4287 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4288 (dw2_find_symbol_file): Use it.
4290 2012-06-11 Michael Eager <eager@eagercon.com>
4292 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4293 * mips-linux-tdep.h (mips_signals): New
4295 2012-06-11 Tom Tromey <tromey@redhat.com>
4297 * infrun.c (handle_inferior_event)
4298 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4300 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4301 exception logic in all cases. Update comments.
4302 (insert_longjmp_resume_breakpoint): Set the exception resume
4305 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4307 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4309 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4311 * valarith.c (binop_types_user_defined_p): Fix a typo.
4313 2012-06-08 Yao Qi <yao@codesourcery.com>
4314 Chung-Lin Tang <cltang@codesourcery.com>
4316 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4317 * arch-utils.h: Declare.
4318 * gdbarch.sh: Add return_in_first_hidden_param_p.
4319 * gdbarch.c, gdbarch.h: Regenerated.
4320 * infcall.c (call_function_by_hand): Call
4321 gdbarch_return_in_first_hidden_param_p instead of
4322 language_pass_by_reference.
4324 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4325 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4326 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4327 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4328 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4329 `cplus_return_struct_by_reference'.
4330 (tic6x_return_value): Handle language cplusplus.
4331 (tic6x_return_in_first_hidden_param_p): New.
4332 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4334 2012-06-07 Doug Evans <dje@google.com>
4336 * dwarf2read.c (dwarf2_cu): Add comment.
4338 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4340 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4342 (mips_eabi_push_dummy_call): Likewise.
4343 (mips_n32n64_push_dummy_call): Likewise.
4344 (mips_o32_push_dummy_call): Likewise.
4345 (mips_o64_push_dummy_call): Likewise.
4347 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4349 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4351 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4353 * mips-tdep.c (mips_pseudo_register_type): Use
4354 mips_float_register_p.
4356 2012-06-06 Pedro Alves <palves@redhat.com>
4358 * infrun.c (handle_inferior_event): Remove calls to
4359 reinit_frame_cache that follow a context_switch call.
4361 2012-06-06 Pedro Alves <palves@redhat.com>
4363 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4364 context_switch and remove stale comment.
4366 2012-06-06 Pedro Alves <palves@redhat.com>
4368 * infrun.c (struct execution_control_state): Remove
4369 `new_thread_event' field.
4370 (handle_inferior_event): Simplify new threads handling; don't
4371 resume the inferior if we find a new thread.
4373 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4375 * NEWS: Document the deprecation of SH's 'regs' command.
4376 * inferior.h (all_registers_info): Add function declaration.
4377 * sh-tdep.c (sh_show_regs): Remove variable.
4378 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4379 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4380 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4381 (sh_show_regs_command): Remove functions.
4382 (sh_gdbarch_init): Don't set sh_show_regs.
4383 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4384 'info all-registers'.
4385 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4386 (sh64_show_regs): Remove functions.
4387 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4389 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4391 * configure.ac: Move development=true below AC_INIT.
4392 * configure: Regenerate.
4394 2012-06-05 Stan Shebs <stan@codesourcery.com>
4396 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4399 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4401 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4402 argument as ssize_t.
4403 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4404 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4405 * target.c (target_read_stack, target_write_memory)
4406 (target_write_raw_memory): Likewise.
4407 * target.h (target_read_stack, target_write_memory)
4408 (target_write_raw_memory): Likewise.
4410 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4412 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4413 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4414 * target.c (target_read_memory): Change LEN to ssize_t.
4415 * target.h (target_read_memory): Change LEN to ssize_t.
4417 2012-06-05 Pedro Alves <palves@redhat.com>
4421 * breakpoint.c (until_break_command): Only fetch the selected
4422 frame after decode_line_1.
4424 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4426 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4427 event breakpoint at _start, __start or main if a program
4428 interpreter is not found.
4430 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4432 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4434 * windows-tdep.c: #include "objfiles.h".
4435 (windows_iterate_over_objfiles_in_search_order): New function.
4436 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4437 iterate_over_objfiles_in_search_order gdbarch method to
4438 windows_iterate_over_objfiles_in_search_order.
4439 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4441 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4443 * gdbarch.sh: Add generation of
4444 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4445 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4446 (iterate_over_objfiles_in_search_order): New gdbarch method.
4447 * gdbarch.h, gdbarch.c: Regenerate.
4448 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4450 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4452 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4453 out of lookup_symbol_aux_symtabs.
4454 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4455 call to lookup_symbol_aux_objfile.
4456 (struct global_sym_lookup_data): New type.
4457 (lookup_symbol_global_iterator_cb): New function.
4458 (lookup_symbol_global): Search for symbol using
4459 gdbarch_iterate_over_objfiles_in_search_order and
4460 lookup_symbol_global_iterator_cb.
4461 * findvar.c (struct minsym_lookup_data): New type.
4462 (minsym_lookup_iterator_cb): New function.
4463 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4464 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4465 and minsym_lookup_iterator_cb.
4467 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4469 Revert the following patch:
4470 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4471 try locating the symbol in the symbol's own objfile first, before
4472 extending the search to all objfiles.
4473 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4474 out of lookup_symbol_aux_symtabs.
4475 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4476 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4477 Do not search EXCLUDE_OBJFILE.
4478 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4479 (lookup_symbol_global): Search for matches in the block's objfile
4480 first, before searching all other objfiles.
4482 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4484 * breakpoint.c (find_condition_and_thread): Stop parsing
4485 as soon as the first invalid keyword is found.
4487 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4489 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4491 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4493 * config/djgpp/djcheck.sh: Add copyright header.
4495 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4497 * copyright.py (update_files, main): Fix path to update-copyright
4500 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4502 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4503 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4504 for which a reminder to update by hand is printed.
4506 2012-06-04 Doug Evans <dje@google.com>
4508 * buildsym.c (make_blockvector): Add comment.
4510 2012-06-04 Pedro Alves <palves@redhat.com>
4512 * arch-utils.c (default_gdb_signal_from_target): Delete.
4513 * arch-utils.h (default_gdb_signal_from_target): Delete.
4514 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4515 gdbarch_gdb_signal_from_target_p.
4516 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4518 * gdbarch.h: Regenerate.
4519 * gdbarch.c: Regenerate.
4521 2012-06-04 Pedro Alves <palves@redhat.com>
4523 * gdbarch.sh (gdb_signal_from_target): Mention that the
4524 implementation of the method must be host independent.
4525 * gdbarch.h: Regenerate.
4527 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4529 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4531 (target_read_memory_bfd): New function.
4532 (symbol_file_add_from_memory): Use it.
4534 2012-06-03 Doug Evans <dje@google.com>
4536 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4538 (basic_lookup_transparent_type): Ditto.
4540 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4541 (ALL_PRIMARY_SYMTABS): Use it.
4542 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4543 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4544 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4545 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4546 (basic_lookup_transparent_type): Ditto.
4548 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4550 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4551 it to optimize resolution of demangled name.
4553 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4555 * configure.ac (development): Define new variable.
4556 Call AC_CHECK_LIB for mcheck if $development.
4557 (ERROR_ON_WARNING): Enable it by default only if $development.
4558 * config.in: Regenerate.
4559 * configure: Regenerate.
4561 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4563 * target.c (target_read_memory): Make LEN argument as size_t.
4564 * target.h (target_read_memory): Likewise.
4566 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4568 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4570 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4572 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4573 BookE interface for PowerPC server processors if not available
4574 in the Linux Kernel.
4576 2012-05-31 Keith Seitz <keiths@redhat.com>
4578 * linespec.c (decode_objc): Add cleanup to free
4580 (find_linespec_symbols): Add cleanup to free CLASSES.
4581 * symfile.c (find_separate_debug_file_by_debuglink): Add
4582 cleanup to free DEBUGLINK.
4583 * ui-out.c (clear_header_list): No need to check if
4584 HEADER_NEXT.COLHDR is NULL.
4585 Free HEADER_NEXT.COL_NAME.
4587 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4589 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4592 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4594 * configure.host (gdb_host_cpu): Handle tilegx*.
4595 (gdb_host): Handle tilegx-*-linux*.
4596 * tilegx-linux-nat.c: New file.
4597 * config/tilegx/linux.mh: New file.
4599 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4601 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4602 tilegx-linux-tdep.o.
4603 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4604 tilegx-linux-tdep.c.
4605 * configure.tgt: Handle tilegx-*-linux*.
4606 * tilegx-tdep.h: New file.
4607 * tilegx-tdep.c: New file.
4608 * tilegx-linux-tdep.c: New file.
4609 * regformats/reg-tilegx.dat: New file.
4611 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4613 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4614 accounting of hw watchpoints on ppc.
4616 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4618 * source.c (openp): Expand tilde in path entries.
4620 2012-05-29 Doug Evans <dje@google.com>
4622 * buildsym.c (block_compar): Fix comment.
4623 (end_symtab): Fix and clarify some comments.
4625 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4626 cleanup_undefined_types.
4627 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4628 All callers updated.
4630 2012-05-29 Tom Tromey <tromey@redhat.com>
4632 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4634 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4635 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4637 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4640 2012-05-29 Tristan Gingold <gingold@adacore.com>
4642 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4643 (struct darwin_info): ... New struct.
4644 (solib_darwin_pspace_data): New variable.
4645 (darwin_pspace_data_cleanup): New function.
4646 (get_darwin_info): Likewise.
4647 (darwin_dyld_version_ok, darwin_load_image_infos)
4648 (darwin_solib_get_all_image_info_addr_at_init)
4649 (darwin_solib_read_all_image_info_addr): Add info argument.
4651 (darwin_current_sos): Use per pspace structure.
4652 (darwin_solib_create_inferior_hook): Likewise.
4653 (darwin_clear_solib): Likewise.
4654 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4656 2012-05-28 Pedro Alves <palves@redhat.com>
4658 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4659 block that uses them. Clear ecss before handling each event.
4661 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4663 * solib-svr4.c (svr4_current_sos): New comment on
4664 svr4_current_sos_via_xfer_libraries fall back.
4666 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4668 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4669 it as a fallback for TYPE_IS_OPAQUE.
4670 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4671 symbols for lookup_symbol.
4673 2012-05-24 John Steele Scott <toojays@toojays.net>
4675 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4676 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4677 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4678 (check_producer): ... this new function, which also checks for ICC
4679 and caches the result.
4680 (producer_is_icc): New function.
4681 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4684 2012-05-24 Pedro Alves <palves@redhat.com>
4688 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4689 (default_gdb_signal_to_target): ... this. Add comment.
4690 (default_gdb_signal_from_host): Rename to ...
4691 (default_gdb_signal_from_target): ... this. Add comment.
4692 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4693 (default_gdb_signal_to_target): ... this.
4694 (default_gdb_signal_from_host): Rename to ...
4695 (default_gdb_signal_from_target): ... this.
4696 * corelow.c (core_open): Adjust to naming change. Replace comment.
4697 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4698 (gdb_signal_from_target): ... this. Adjust to
4699 default_gdb_signal_from_host naming change. Extend comment.
4700 (gdb_signal_to_host): Rename to ...
4701 (gdb_signal_to_target): ... this. Adjust to
4702 default_gdb_signal_to_host naming change.
4703 * gdbarch.h, gdbarch.c: Renegerate.
4705 2012-05-24 Pedro Alves <palves@redhat.com>
4709 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4711 2012-05-24 Pedro Alves <palves@redhat.com>
4715 Replace target_signal with gdb_signal throughout.
4717 2012-05-24 Pedro Alves <palves@redhat.com>
4721 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4722 string, instead of reusing the va_list argument.
4724 2012-05-24 Tom Tromey <tromey@redhat.com>
4726 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4729 2012-05-23 Doug Evans <dje@google.com>
4731 * symtab.c (search_symbols): Formatting fixes.
4732 (print_symbol_info): Formatting fixes.
4734 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4735 int64_t change to leb128 API.
4736 (read_encoded_value, decode_frame_entry_1): Ditto.
4737 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4738 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4739 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4740 (execute_stack_op): Ditto.
4741 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4742 (safe_read_uleb128, safe_read_sleb128): Ditto.
4743 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4744 (dwarf2_compile_expr_to_ax): Ditto.
4745 (locexpr_describe_location_piece): Ditto.
4746 (disassemble_dwarf_expression): Ditto.
4747 (locexpr_describe_location_1): Ditto.
4749 2012-05-23 Stan Shebs <stan@codesourcery.com>
4750 Kwok Cheung Yeung <kcy@codesourcery.com>
4752 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4753 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4754 (mi-cmd-info.o): New rule.
4755 * osdata.h (info_osdata_command): New declaration.
4756 * osdata.c (info_osdata_command): Change to non-static.
4757 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4758 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4759 * mi/mi-cmd-info.c: New file.
4761 2012-05-23 Doug Evans <dje@google.com>
4763 * symtab.c (search_symbols): Pass NULL for file_matcher to
4764 expand_symtabs_matching if there are no files to match.
4766 * gdbtypes.c (lookup_typename): Simplify.
4768 2012-05-23 Pedro Alves <palves@redhat.com>
4770 * arch-utils.h (default_target_signal_to_host): Delete.
4771 * arch-utils.c (default_target_signal_to_host): Delete.
4772 * gdbarch.sh (target_signal_to_host): Remove.
4773 * gdbarch.h, gdbarch.c: Regenerate.
4775 2012-05-22 Doug Evans <dje@google.com>
4777 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4779 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4780 (execute_cfa_program): Update to match API of leb128 functions.
4781 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4783 (read_unsigned_leb128, read_signed_leb128): Delete.
4784 (read_initial_length): Change type of buf argument to
4786 (read_encoded_value): Update to match API of leb128 functions.
4787 (decode_frame_entry): Change result to "const gdb_byte *", and
4788 similarly for "start" parameter.
4789 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4790 (dwarf2_build_frame_info): Change local frame_ptr to
4792 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4793 read_uleb128, read_sleb128. All callers updated.
4794 (safe_skip_leb128): New function.
4795 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4796 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4797 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4798 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4799 read_uleb128, read_sleb128.
4800 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4801 (execute_stack_op): Update to match API of leb128 functions.
4802 * dwarf2expr.h: #include "leb128.h".
4803 (read_uleb128, read_sleb128): Delete.
4804 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4805 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4806 * dwarf2loc.c (debug_loc_kind): New enum.
4807 (decode_debug_loc_addresses): New function.
4808 (decode_debug_loc_dwo_addresses): New function.
4809 (dwarf2_find_location_expression): Rewrite.
4810 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4811 (locexpr_describe_location_piece): Ditto.
4812 (disassemble_dwarf_expression): Ditto.
4813 (locexpr_describe_location_1): Ditto.
4814 (loclist_describe_location): Rewrite.
4815 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4816 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4817 (dwarf2_section_buffer_overflow_complaint): Renamed from
4818 dwarf2_macros_too_long_complaint. All callers updated.
4819 (skip_leb128): Delete.
4820 (init_cu_die_reader): Initialize reader->buffer_end.
4821 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4822 (skip_form_bytes): New arg buffer_end. All callers updated.
4823 Replace call to skip_leb128 with gdb_skip_leb128.
4824 (skip_unknown_opcode): New arg mac_end. All callers updated.
4825 (fill_in_loclist_baton): Initialize baton->from_dwo.
4827 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4829 * mips-linux-nat.c (mips_linux_read_description): Use a more
4830 verbose error message.
4832 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4834 * NEWS: Add MIPS/Linux DSP support.
4835 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4836 (SIGCONTEXT_DSPCTL): New macro.
4837 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4838 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4839 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4840 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4841 (N64_SIGCONTEXT_HI3): Likewise.
4842 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4843 (N64_SIGCONTEXT_LO3): Likewise.
4844 (N64_SIGCONTEXT_DSPCTL): Likewise.
4845 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4846 (mips_linux_o32_sigframe_init): Handle DSP registers.
4847 (mips_linux_n32n64_sigframe_init): Likewise.
4849 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4851 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4854 2012-05-22 Pedro Alves <palves@redhat.com>
4856 * target.h (store_waitstatus): Move declaration ...
4857 * inf-child.h (store_waitstatus): ... here.
4858 * target.c: Move inclusion of gdb_wait.h, and ...
4859 (store_waitstatus): ... this ...
4860 * inf-child.c: ... here.
4861 * linux-nat.c: Include inf-child.h.
4862 * rs6000-nat.c: Include inf-child.h.
4863 * spu-linux-nat.c: Include inf-child.h.
4865 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4867 * tracepoint.c (start_tracing): Add missing i18n markup.
4868 (stop_tracing, set_trace_user): Ditto.
4869 (set_trace_notes, set_trace_stop_notes): Ditto.
4871 2012-05-21 Tom Tromey <tromey@redhat.com>
4874 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4876 * value.h (value_cast_pointers): Update.
4877 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4878 (value_cast): Update.
4879 (update_search_result): New function.
4880 (do_search_struct_field): New, from search_struct_field. Check
4881 for ambiguous results.
4882 (search_struct_field): Rewrite.
4883 * infcall.c (value_arg_coerce): Update.
4884 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4885 value_cast_pointers.
4886 * ada-lang.c (ada_convert_actual): Update.
4888 2012-05-21 Tom Tromey <tromey@redhat.com>
4890 * macroexp.c (macro_stringify): Terminate the string.
4892 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4894 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4896 * auto-load.c (auto_load_expand_dir_vars): New function.
4897 (auto_load_safe_path_vec_update): Use it, remove the
4898 substitute_path_component call thanks to it.
4899 (auto_load_objfile_script): Remove the debug_file_directory processing.
4900 Use auto_load_expand_dir_vars, remove the substitute_path_component
4902 * configure: Regenerate.
4903 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4904 path. Escape $ also for $debugdir.
4905 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4906 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4908 2012-05-20 Doug Evans <dje@google.com>
4910 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4911 before use. Check for symtab->includes == NULL before scanning it.
4913 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4915 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4917 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4919 * NEWS: Add microMIPS support and "set mips compression",
4920 "show mips compression" commands.
4921 * mips-tdep.h (mips_isa): New enum.
4922 (gdbarch_tdep): Add mips_isa.
4923 (mips_pc_is_mips16): Update prototype.
4924 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4925 * mips-tdep.c (mips_compression_mips16): New variable.
4926 (mips_compression_micromips): Likewise.
4927 (mips_compression_strings): Likewise.
4928 (mips_compression_string): Likewise.
4929 (is_mips16_isa, is_micromips_isa): New functions.
4930 (is_mips16_addr): Rename to...
4931 (is_compact_addr): ... this.
4932 (unmake_mips16_addr): Likewise to...
4933 (unmake_compact_addr): ... this.
4934 (make_mips16_addr): Likewise to...
4935 (make_compact_addr): ... this.
4936 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4938 (mips_elf_make_msymbol_special): Handle microMIPS code.
4939 (msymbol_is_special): Rename to...
4940 (msymbol_is_mips16): ... this.
4941 (mips_make_symbol_special, mips_pc_is_mips16): Update
4943 (msymbol_is_mips, msymbol_is_micromips): New functions.
4944 (mips16_to_32_reg): Rename to...
4945 (mips_reg3_to_reg): ... this.
4946 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4947 (mips_pc_isa): Likewise.
4948 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4950 (mips_fetch_instruction): Pass return status instead of printing
4951 an error message if requested. Handle microMIPS code. Bail out
4953 (micromips_op): New macro.
4954 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4955 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4956 (b6s4_op, b7s3_reg): Likewise.
4957 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4958 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4959 (mips_insn_size): New function.
4960 (mips32_next_pc): Update mips_fetch_instruction call.
4961 (micromips_relative_offset7): New function.
4962 (micromips_relative_offset10): Likewise.
4963 (micromips_relative_offset16): Likewise.
4964 (micromips_pc_insn_size): Likewise.
4965 (micromips_bc1_pc): Likewise.
4966 (micromips_next_pc): Likewise.
4967 (unpack_mips16): Update mips_fetch_instruction call.
4968 (extended_mips16_next_pc): Update according to change to
4970 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4972 (mips16_scan_prologue): Update mips_fetch_instruction call.
4973 Update according to change to mips16_to_32_reg.
4974 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4975 (mips_insn16_frame_base_sniffer): Likewise.
4976 (micromips_decode_imm9): New function.
4977 (micromips_scan_prologue): Likewise.
4978 (mips_micro_frame_cache): Likewise.
4979 (mips_micro_frame_this_id): Likewise.
4980 (mips_micro_frame_prev_register): Likewise.
4981 (mips_micro_frame_sniffer): Likewise.
4982 (mips_micro_frame_unwind): New variable.
4983 (mips_micro_frame_base_address): New function.
4984 (mips_micro_frame_base): New variable.
4985 (mips_micro_frame_base_sniffer): New function.
4986 (mips32_scan_prologue): Update mips_fetch_instruction call.
4987 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4988 rather than for MIPS16.
4989 (mips_insn32_frame_base_sniffer): Likewise.
4990 (mips_addr_bits_remove): Handle microMIPS code.
4991 (deal_with_atomic_sequence): Rename to...
4992 (mips_deal_with_atomic_sequence): ... this. Update the type
4993 of the variable used to hold an instruction. Remove the ISA bit
4994 check. Update mips_fetch_instruction call.
4995 (micromips_deal_with_atomic_sequence): New function.
4996 (deal_with_atomic_sequence): Likewise.
4997 (mips_about_to_return): Handle microMIPS code. Update
4998 mips_fetch_instruction call.
4999 (heuristic_proc_start): Check for the standard MIPS ISA rather
5000 than for MIPS16. Update mips_pc_is_mips16 and
5001 mips_fetch_instruction calls. Handle microMIPS code.
5002 (mips_push_dummy_code): Handle microMIPS code.
5003 (mips_eabi_push_dummy_call): Likewise.
5004 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5005 (mips_o64_push_dummy_call): Handle microMIPS code.
5006 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5007 (is_delayed): Remove function.
5008 (mips_single_step_through_delay): Replace the call to is_delayed
5009 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5010 Handle microMIPS code.
5011 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5013 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5015 (micromips_in_function_epilogue_p): New function.
5016 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5018 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5020 (gdb_print_insn_mips): Likewise.
5021 (mips_breakpoint_from_pc): Likewise.
5022 (mips_remote_breakpoint_from_pc): New function.
5023 (mips32_instruction_has_delay_slot): Simplify making use of the
5024 updated mips_fetch_instruction interface.
5025 (micromips_instruction_has_delay_slot): New function.
5026 (mips16_instruction_has_delay_slot): Simplify making use of the
5027 updated mips_fetch_instruction interface.
5028 (mips_adjust_breakpoint_address): Check for the standard MIPS
5029 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5030 calls. Handle microMIPS code.
5031 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5032 (mips_skip_trampoline_code): Handle microMIPS code.
5033 (global_mips_compression): New function.
5034 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5035 file flags. Register the microMIPS remote breakpoint handler
5036 and heuristic frame unwinder.
5037 (show_mips_compression): New function.
5038 (_initialize_mips_tdep): Add the "set mips compression" and
5039 "show mips compression" commands.
5041 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5046 * amd64-darwin-tdep.c:
5047 * arm-symbian-tdep.c:
5051 * bfin-linux-tdep.c:
5058 * dwarf2-frame-tailcall.c:
5087 * microblaze-tdep.c:
5088 * mips-linux-tdep.c:
5096 * python/py-finishbreakpoint.c:
5097 * python/py-inferior.c:
5098 * python/py-infthread.c:
5102 * remote-m32r-sdi.c:
5106 * rs6000-aix-tdep.c:
5132 * amd64-darwin-tdep.c:
5133 * arm-symbian-tdep.c:
5134 * arm-tdep.c: Delete unused variables.
5136 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5138 Rename $ddir to $datadir.
5139 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5140 * auto-load.c (auto_load_safe_path_vec_update)
5141 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5142 * configure: Regenerate.
5143 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5144 Likewise. Remove the 'use $ddir' help string.
5146 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5148 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5149 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5151 2012-05-18 Tom Tromey <tromey@redhat.com>
5154 * valprint.h (struct value_print_options) <symbol_print>: New
5156 * valprint.c (user_print_options): Add default for symbol_print.
5157 (show_symbol_print): New function.
5158 (generic_val_print): Respect symbol_print.
5159 (_initialize_valprint): Add "print symbol" setting.
5160 * f-valprint.c (f_val_print): Respect symbol_print.
5161 * c-valprint.c (c_val_print): Respect symbol_print.
5163 * printcmd.c (print_address_symbolic): Return int. Ignore some
5165 (print_address_demangle): Return int.
5166 * defs.h: (print_address_symbolic): Return int.
5167 * value.h (print_address_demangle): Return int.
5169 2012-05-18 Tom Tromey <tromey@redhat.com>
5171 * valprint.c (val_print_string): Don't print leading space.
5172 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5173 print space before string or vtbl.
5174 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5176 * jv-valprint.c (java_value_print): Print space before string.
5177 * go-valprint.c (print_go_string): Print space before string.
5178 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5179 space before string.
5180 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5181 space before string or vtbl.
5182 * auxv.c (fprint_target_auxv): Print space after address.
5184 2012-05-18 Tom Tromey <tromey@redhat.com>
5186 * printcmd.c (print_address_demangle): Remove special case for 0.
5188 2012-05-18 Tom Tromey <tromey@redhat.com>
5190 * printcmd.c (print_address_demangle): Add 'opts' argument.
5191 * p-valprint.c (pascal_val_print): Update.
5192 * jv-valprint.c (java_val_print): Update.
5194 * valprint.c (generic_val_print): Update.
5195 (print_function_pointer_address): Add 'options' argument. Remove
5196 'addressprint' argument. Update.
5197 * m2-valprint.c (print_unpacked_pointer): Update.
5198 * gnu-v3-abi.c (print_one_vtable): Update.
5199 (gnuv3_print_method_ptr): Update.
5200 * f-valprint.c (f_val_print): Update.
5201 * cp-valprint.c (cp_print_value_fields): Update.
5202 * valprint.h (print_function_pointer_address): Update.
5203 * c-valprint.c (c_val_print): Update.
5205 2012-05-18 Tom Tromey <tromey@redhat.com>
5207 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5208 directly corresponding to the found psymtab.
5209 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5210 (dw2_find_pc_sect_symtab): Use it.
5211 * block.h (blockvector_contains_pc): Declare.
5212 * block.c (find_block_in_blockvector): New function.
5213 (blockvector_for_pc_sect): Use it.
5214 (blockvector_contains_pc): New function.
5216 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5218 * mips-tdep.h (mips_write_pc): New prototype.
5219 * mips-tdep.c (mips_write_pc): Make external, add description.
5220 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5223 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5225 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5227 (mips_unwind_pc, mips_write_pc): Likewise.
5228 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5231 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5233 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5234 proc_warn, proc_error, proc_get_status, proc_flags,
5235 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5236 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5237 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5238 proc_stop_process, proc_wait_for_stop, proc_run_process,
5239 proc_set_traced_signals, proc_set_traced_faults,
5240 proc_set_traced_sysentry, proc_set_traced_sysexit,
5241 proc_set_held_signals, proc_get_held_signals,
5242 proc_get_traced_signals, proc_get_traced_faults,
5243 proc_get_traced_sysentry, proc_get_traced_sysexit,
5244 proc_clear_current_fault, proc_set_current_signal,
5245 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5246 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5247 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5248 proc_get_current_thread, proc_get_current_thread,
5249 proc_get_current_thread, proc_update_threads,
5250 proc_update_threads, proc_update_threads, proc_update_threads,
5251 proc_iterate_over_threads, procfs_find_new_threads,
5252 procfs_pid_to_str): Make static. Remove advance declaration.
5253 (proc_cursig): Make static. Conditionalized defintion on
5254 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5255 (proc_syscall, proc_set_kill_on_last_close,
5256 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5257 proc_get_pending_signals, proc_get_signal_actions,
5258 proc_trace_signal, proc_ignore_signal): Delete.
5260 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5262 * coffread.c (cs_section_address): Passing proper argument for
5263 `bfd_get_section_vma'.
5264 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5265 `bfd_get_section_flags'.
5266 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5267 `bfd_get_section_vma'.
5269 2012-05-16 Tom Tromey <tromey@redhat.com>
5272 * macrotab.h: (macro_define_special): Declare.
5273 (enum macro_special_kind): New.
5274 (struct macro_definition) <argc, replacement>: Update comments.
5275 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5276 (macro_define_object_internal): New function.
5277 (macro_define_object): Use it.
5278 (macro_define_special): New function.
5279 (fixup_definition): New function.
5280 (macro_lookup_definition, foreach_macro_in_scope)
5281 (foreach_macro): Use fixup_definition.
5282 * macroexp.h (macro_stringify): Declare.
5283 * macroexp.c (free_buffer_return_text): New function.
5284 (stringify): Constify "arg".
5285 (macro_stringify): New function.
5286 * dwarf2read.c (macro_start_file): Call macro_define_special.
5288 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5289 Maciej W. Rozycki <macro@mips.com>
5291 * breakpoint.h (bp_location): Add related_address member.
5292 * inferior.h (get_return_value): Take a pointer to struct value
5293 instead of struct type for the function requested.
5294 * value.h (using_struct_return): Likewise.
5295 * gdbarch.sh (return_value): Take a pointer to struct value
5296 instead of struct type for the function requested.
5297 * breakpoint.c (set_breakpoint_location_function): Initialize
5298 related_address for bp_gnu_ifunc_resolver breakpoints.
5299 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5300 requested function's address to gdbarch_return_value.
5301 * eval.c (evaluate_subexp_standard): Pass the requested
5302 function's address to using_struct_return.
5303 * infcall.c (call_function_by_hand): Pass the requested
5304 function's address to using_struct_return and
5305 gdbarch_return_value.
5306 * infcmd.c (get_return_value): Take a pointer to struct value
5307 instead of struct type for the function requested.
5308 (print_return_value): Update accordingly.
5309 (finish_command_continuation): Likewise.
5310 * stack.c (return_command): Pass the requested function's
5311 address to using_struct_return and gdbarch_return_value.
5312 * value.c (using_struct_return): Take a pointer to struct value
5313 instead of struct type for the function requested. Pass the
5314 requested function's address to gdbarch_return_value.
5315 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5316 New function_value member, replacing function_type.
5317 (bpfinishpy_dealloc): Update accordingly.
5318 (bpfinishpy_pre_stop_hook): Likewise.
5319 (bpfinishpy_init): Likewise. Record the requested function's
5321 * mips-tdep.c (mips_fval_reg): New enum.
5322 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5323 words put in GP registers.
5324 (mips_o64_push_dummy_call): Update a comment.
5325 (mips_o32_return_value): Take a pointer to struct value instead
5326 of struct type for the function requested and use it to check if
5327 using the MIPS16 calling convention. Return the designated
5328 general purpose registers for floating-point values returned in
5330 (mips_o64_return_value): Likewise.
5331 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5332 (ppc_sysv_abi_broken_return_value): Likewise.
5333 (ppc64_sysv_abi_return_value): Likewise.
5334 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5335 value instead of struct type for the function requested.
5336 * amd64-tdep.c (amd64_return_value): Likewise.
5337 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5338 * arm-tdep.c (arm_return_value): Likewise.
5339 * avr-tdep.c (avr_return_value): Likewise.
5340 * bfin-tdep.c (bfin_return_value): Likewise.
5341 * cris-tdep.c (cris_return_value): Likewise.
5342 * frv-tdep.c (frv_return_value): Likewise.
5343 * h8300-tdep.c (h8300_return_value): Likewise.
5344 (h8300h_return_value): Likewise.
5345 * hppa-tdep.c (hppa32_return_value): Likewise.
5346 (hppa64_return_value): Likewise.
5347 * i386-tdep.c (i386_return_value): Likewise.
5348 * ia64-tdep.c (ia64_return_value): Likewise.
5349 * iq2000-tdep.c (iq2000_return_value): Likewise.
5350 * lm32-tdep.c (lm32_return_value): Likewise.
5351 * m32c-tdep.c (m32c_return_value): Likewise.
5352 * m32r-tdep.c (m32r_return_value): Likewise.
5353 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5354 * m68k-tdep.c (m68k_return_value): Likewise.
5355 (m68k_svr4_return_value): Likewise.
5356 * m88k-tdep.c (m88k_return_value): Likewise.
5357 * mep-tdep.c (mep_return_value): Likewise.
5358 * microblaze-tdep.c (microblaze_return_value): Likewise.
5359 * mn10300-tdep.c (mn10300_return_value): Likewise.
5360 * moxie-tdep.c (moxie_return_value): Likewise.
5361 * mt-tdep.c (mt_return_value): Likewise.
5362 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5363 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5364 (ppc_sysv_abi_broken_return_value): Likewise.
5365 (ppc64_sysv_abi_return_value): Likewise.
5366 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5367 * rl78-tdep.c (rl78_return_value): Likewise.
5368 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5369 * rx-tdep.c (rx_return_value): Likewise.
5370 * s390-tdep.c (s390_return_value): Likewise.
5371 * score-tdep.c (score_return_value): Likewise.
5372 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5373 (sh_return_value_fpu): Likewise.
5374 * sh64-tdep.c (sh64_return_value): Likewise.
5375 * sparc-tdep.c (sparc32_return_value): Likewise.
5376 * sparc64-tdep.c (sparc64_return_value): Likewise.
5377 * spu-tdep.c (spu_return_value): Likewise.
5378 * tic6x-tdep.c (tic6x_return_value): Likewise.
5379 * v850-tdep.c (v850_return_value): Likewise.
5380 * vax-tdep.c (vax_return_value): Likewise.
5381 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5382 * xtensa-tdep.c (xtensa_return_value): Likewise.
5383 * gdbarch.c: Regenerate.
5384 * gdbarch.h: Regenerate.
5386 2012-05-15 Tom Tromey <tromey@redhat.com>
5388 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5390 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5392 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5393 of command in two error message.
5395 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5397 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5399 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5401 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5403 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5405 * NEWS (show auto-load scripts-directory): Add forgotten command.
5407 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5409 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5412 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5414 * amd64-tdep.c: Include features/i386/x32.c and
5415 features/i386/x32-avx.c.
5416 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5417 initialize_tdesc_x32_avx.
5419 2012-05-14 Stan Shebs <stan@codesourcery.com>
5422 * breakpoint.h (enum bptype): New type bp_dprintf.
5423 (struct breakpoint): New field extra_string.
5424 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5425 (create_breakpoint): Add extra_string arg.
5426 * breakpoint.c (dprintf_breakpoint_ops): New.
5427 (is_breakpoint): Add bp_dprintf.
5428 (bpstat_what): Add dprintf case.
5429 (bptype_string): Ditto.
5430 (print_one_breakpoint_location): Ditto.
5431 (init_bp_location): Ditto.
5432 (bkpt_print_mention): Ditto.
5433 (dprintf_style_enums): New array.
5434 (dprintf_style): New global.
5435 (dprintf_function): New global.
5436 (dprintf_channel): New global.
5437 (update_dprintf_command_list): New function.
5438 (update_dprintf_commands): New function.
5439 (init_breakpoint_sal): Add extra_string argument, handle it.
5440 (create_breakpoint_sal): Add extra_string argument.
5441 (create_breakpoints_sal): Add extra_string argument, update callers.
5442 (find_condition_and_thread): Add extra argument.
5443 (create_breakpoint): Add extra_string argument, record it.
5444 (dprintf_command): New function.
5445 (break_command_1): Add arg to create_breakpoint call.
5446 (handle_gnu_v3_exceptions): Ditto.
5447 (trace_command): Ditto.
5448 (ftrace_command): Ditto.
5449 (strace_command): Ditto.
5450 (bkpt_print_mention): Add dprintf case.
5451 (create_breakpoint_sal_default): Add extra_string argument.
5452 (_initialize_breakpoint): Add new commands.
5453 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5454 * python/py-breakpoint.c (bppy_init): Ditto.
5455 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5457 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5459 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5461 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5463 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5466 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5468 Add a new function gdb.find_pc_line to the Python API.
5469 * NEWS (Python Scripting): Add entry about the new function.
5470 * python/python.c (gdbpy_find_pc_line): New function which
5471 implements gdb.find_pc_line.
5472 (GdbMethods): Add entry for the new function.
5474 2012-05-12 Pedro Alves <palves@redhat.com>
5476 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5477 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5479 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5481 * inferior.c: Include completer.h
5482 (initialize_inferiors): Set completer of add-inferior to
5485 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5487 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5488 gdbarch_ptr_bit for x32 core dump.
5490 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5492 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5493 and features/i386/x32-avx-linux.c.
5495 2012-05-11 Stan Shebs <stan@codesourcery.com>
5496 Kwok Cheung Yeung <kcy@codesourcery.com>
5498 * NEWS: Describe new info os commands.
5499 * common/linux-osdata.c (PID_T, TIME_T): Define.
5500 (MAX_PID_T_STRLEN): New.
5501 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5503 (command_from_pid): Add comment. Change to use PID_T.
5504 (commandline_from_pid): Change to use PID_T.
5505 (user_from_pid): Add comment.
5506 (get_process_owner): Add comment. Change to use PID_T and
5508 (get_number_of_cpu_cores): Add comment.
5509 (get_cores_used_by_process): Add comment. Change to use PID_T and
5511 (linux_xfer_osdata_processes): Change to use PID_T and
5513 (compare_processes): New function.
5514 (linux_xfer_osdata_processgroups): New function.
5515 (linux_xfer_osdata_threads): Change to use PID_T.
5516 (linux_xfer_osdata_fds): New function.
5517 (format_socket_state, print_sockets): New functions.
5518 (union socket_addr): New union.
5519 (linux_xfer_osdata_isockets): New function.
5520 (time_from_time_t, group_from_gid): New functions.
5521 (linux_xfer_osdata_shm): New function.
5522 (linux_xfer_osdata_sem): New function.
5523 (linux_xfer_osdata_msg): New function.
5524 (linux_xfer_osdata_modules): New function.
5525 (osdata_table): Add new entries.
5526 * common/buffer.c (buffer_xml_printf): Add support for long and
5527 long long format specifiers.
5529 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5531 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5532 (tdesc_x32_avx_linux): Likewise.
5534 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5536 Implement multi-component --with-auto-load-dir.
5537 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5539 (--with-auto-load-safe-path): Update the default value description.
5540 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5542 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5543 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5544 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5545 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5546 "set auto-load scripts-directory".
5547 * config.in: Regenerate.
5548 * configure: Regenerate.
5549 * configure.ac (--with-auto-load-dir): New configure option.
5550 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5552 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5554 Provide $ddir substitution for --with-auto-load-safe-path.
5555 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5557 * auto-load.c: Include observer.h.
5558 (auto_load_safe_path_vec_update): Call substitute_path_component for
5559 each component. New variable ddir_subst.
5560 (auto_load_gdb_datadir_changed): New function.
5561 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5562 AUTO_LOAD_SAFE_PATH. New comment.
5563 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5564 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5565 * config.in: Regenerate.
5566 * configure: Regenerate.
5567 * configure.ac (--auto-load-safe-path): Rename
5568 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5569 GDB_DATADIR/auto-load.
5570 * defs.h (substitute_path_component): New declaration.
5571 * top.c: Include observer.h.
5572 (set_gdb_datadir): New function.
5573 (init_main): Install it for "set data-directory".
5574 * utils.c (substitute_path_component): New function.
5576 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5579 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5580 DEBUG_FILE_DIRECTORY. Handle multiple components of
5581 DEBUG_FILE_DIRECTORY.
5583 2012-05-10 Tom Tromey <tromey@redhat.com>
5585 * dwarf2read.c (recursively_write_psymbols): New function.
5586 (write_psymtabs_to_index): Use it.
5588 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5590 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5591 (load_partial_comp_unit): Update.
5592 (queue_comp_unit): Add argument 'pretend_language'.
5593 (process_queue): Update.
5594 (psymtab_to_symtab_1): Skip dependencies that have a user.
5595 (load_partial_comp_unit_reader): Give meaning to the 'data'
5597 (load_full_comp_unit): Add 'pretend_language' argument.
5598 (process_full_comp_unit): Add 'pretend_language' argument. Set
5600 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5602 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5603 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5605 (prepare_one_comp_unit): Add 'pretend_language' argument.
5607 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5608 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5609 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5610 (dw2_do_instantiate_symtab): Check whether symtab was read in
5612 (dw2_instantiate_symtab): Add assertion. Call
5613 process_cu_includes.
5614 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5615 (partial_symtab_p): New typedef.
5616 (set_partial_user): New function.
5617 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5618 (scan_partial_symbols): Add imported CU to imported_symtabs.
5619 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5620 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5621 (get_symtab, recursively_compute_inclusions)
5622 (compute_symtab_includes, process_cu_includes)
5623 (process_imported_unit_die): New functions.
5624 (process_die) <DW_TAG_imported_unit>: New case.
5625 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5627 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5629 (struct partial_die_info) <locdesc>: Remove.
5631 (process_psymtab_comp_unit): Add 'read_partial' argument.
5633 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5634 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5635 (add_partial_symbol): Update.
5636 (process_die): Handle DW_TAG_partial_unit.
5637 (read_file_scope): Update comment.
5638 (load_partial_dies): Handle DW_TAG_imported_unit.
5639 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5640 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5642 2012-05-10 Tom Tromey <tromey@redhat.com>
5644 * cc-with-dwz.sh: New file.
5646 2012-05-10 Tom Tromey <tromey@redhat.com>
5648 * symtab.h (struct symtab) <includes, user>: New fields.
5649 * block.h (struct block_iterator) <d, idx, which>: New fields.
5650 * block.c (initialize_block_iterator, find_iterator_symtab)
5651 (block_iterator_step, block_iter_name_step)
5652 (block_iter_match_step): New functions.
5653 (block_iterator_first, block_iterator_next)
5654 (block_iter_name_first, block_iter_name_next)
5655 (block_iter_match_first, block_iter_match_next): Rewrite.
5656 (get_block_symtab): New function.
5658 2012-05-10 Tom Tromey <tromey@redhat.com>
5660 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5662 * jit.c (finalize_symtab): Use allocate_global_block,
5664 * buildsym.c (finish_block_internal): New function, from old
5666 (finish_block): Rewrite.
5667 (end_symtab): Use finish_block_internal, set_block_symtab.
5668 * block.h (struct global_block): New.
5669 (allocate_global_block, set_block_symtab): Declare.
5670 * block.c (allocate_global_block, set_block_symtab): New
5673 2012-05-10 Tom Tromey <tromey@redhat.com>
5675 * psymtab.c (partial_map_expand_apply): Add assertion.
5676 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5677 (psymtab_to_symtab): Find unshared psymtab.
5678 (dump_psymtab): Print including psymtabs.
5679 (recursively_search_psymtabs): New function.
5680 (expand_symtabs_matching_via_partial): Use it.
5681 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5683 (enum psymtab_search_status): New.
5685 2012-05-10 Tom Tromey <tromey@redhat.com>
5687 * tracepoint.c (scope_info): Update.
5688 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5689 (find_pc_sect_symtab, search_symbols)
5690 (default_make_symbol_completion_list_break_on)
5691 (make_file_symbol_completion_list): Update.
5692 * symmisc.c (dump_symtab_1): Update.
5693 * stack.c (print_frame_args, iterate_over_block_locals)
5694 (print_frame_labels, iterate_over_block_arg_vars): Update.
5695 * python/py-block.c (block_object) <dict>: Remove.
5697 <iter>: Change type.
5698 (blpy_iter): Update.
5699 (blpy_block_syms_iternext): Update.
5700 * psymtab.c (map_block): Use block iterators.
5701 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5702 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5703 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5704 * infrun.c (check_exception_resume): Update.
5705 * cp-support.c (make_symbol_overload_list_block): Update.
5706 * coffread.c (patch_opaque_types): Update.
5707 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5708 * block.h (struct block_iterator): New.
5709 (block_iterator_first, block_iterator_next, block_iter_name_first)
5710 (block_iter_name_next, block_iter_match_first)
5711 (block_iter_match_next): Declare.
5712 (ALL_BLOCK_SYMBOLS): Redefine.
5713 * block.c (block_iterator_first, block_iterator_next)
5714 (block_iter_name_first, block_iter_name_next)
5715 (block_iter_match_first, block_iter_match_next): New functions.
5716 * ada-lang.c (ada_add_block_symbols)
5717 (ada_make_symbol_completion_list): Use block iterator.
5719 2012-05-10 Tom Tromey <tromey@redhat.com>
5721 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5722 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5723 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5724 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5725 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5728 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5730 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5731 print-file-var-lib2.c, print-file-var-main.c and
5732 print-file-var.exp (located in gdb/testsuite/gdb.base).
5734 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5736 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5737 try locating the symbol in the symbol's own objfile first, before
5738 extending the search to all objfiles.
5739 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5740 out of lookup_symbol_aux_symtabs.
5741 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5742 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5743 Do not search EXCLUDE_OBJFILE.
5744 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5745 (lookup_symbol_global): Search for matches in the block's objfile
5746 first, before searching all other objfiles.
5748 2012-05-10 Tristan Gingold <gingold@adacore.com>
5750 * printcmd.c (set_command): Add pre/post inc/dec.
5752 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5754 * gdb.1: Document -ex option.
5756 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5758 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5759 * inferior.h (AT_SYMBOL): Delete.
5761 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5763 * mips-tdep.c (mips_push_dummy_code): New function.
5764 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5765 ON_STACK and install mips_push_dummy_code as our gdbarch
5766 push_dummy_code routine.
5768 2012-05-09 Pedro Alves <palves@redhat.com>
5770 * target.c (set_maintenance_target_async_permitted): Rename to ...
5771 (set_target_async_command): ... this.
5772 (show_maintenance_target_async_permitted): Rename to ...
5773 (show_target_async_command): ... this.
5774 (initialize_targets): Adjust.
5776 2012-05-08 Doug Evans <dje@google.com>
5778 * go-exp.y (classify_name): Add missing assignment of fields of
5781 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5783 Display the ">" prompt in interactive mode while reading canned
5784 commands, even when the current interpreter is MI.
5786 * interps.c (interp_set_temp): New function.
5788 * interps.h (interp_set_temp): Add prototype.
5790 * cli/cli-script.c (restore_interp): New cleanup function.
5791 (read_command_lines): Temporarily override the current interpreter
5792 with CLI and arrange for restoring the original one.
5794 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5796 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5798 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5800 * probe.c (parse_probes): Move conditional to check for
5801 debuginfo files from here...
5802 * stap-probe.c (stap_get_probes): ... to here.
5804 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5805 H.J. Lu <hongjiu.lu@intel.com>
5807 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5808 `movl %esp, %ebp' for the X32 ABI.
5810 2012-05-07 Tom Tromey <tromey@redhat.com>
5812 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5814 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5815 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5816 (dwarf_stack_op_name): Remove.
5817 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5818 (decode_locdesc): Use get_DW_OP_name.
5819 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5820 (dwarf2_compile_expr_to_ax): Likewise.
5821 (disassemble_dwarf_expression): Likewise.
5822 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5824 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5826 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5827 (sh_linux_sigtramp_cache): New function.
5828 (sh_linux_sigreturn_init): New function.
5829 (sh_linux_rt_sigreturn_init): New function.
5830 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5832 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5834 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5835 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5836 (sh_linux_init_abi): Add init calls to register new tramp_frame
5837 definitions under 32-bit SH, update comments.
5839 2012-05-07 Pedro Alves <palves@redhat.com>
5843 * amd64-linux-tdep.c: Include glibc-tdep.h.
5844 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5845 gdbarch_skip_solib_resolver callback.
5847 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5849 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5850 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5851 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5852 (add_auto_load_safe_path): Change the error message.
5853 (_initialize_auto_load): Change the "safe-path" help text.
5854 * configure: Regenerate
5855 * configure.ac (--without-auto-load-safe-path): Set
5856 WITH_AUTO_LOAD_SAFE_PATH to /.
5858 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5860 * stap-probe.h: Do not include unecessary `probe.h'.
5862 2012-05-05 Alan Modra <amodra@gmail.com>
5864 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5865 bfd_und_section_ptr.
5866 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5867 and bfd_com_section_ptr.
5869 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5871 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5873 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5875 * windows-nat.h (segment_register_p_ftype): New typedef.
5876 (windows_set_segment_register_p): Add declaration.
5877 * windows-nat.c (segment_register_p): New static global.
5878 (windows_set_segment_register_p): New function.
5879 (do_windows_fetch_inferior_registers): Add special handling
5880 for segment registers.
5881 * amd64-windows-nat.c: #include "amd64-tdep.h".
5882 (amd64_windows_segment_register_p): New function.
5883 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5884 * i386-windows-nat.c: #include "i386-tdep.h".
5885 (i386_windows_segment_register_p): New function.
5886 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5888 2012-05-04 Tristan Gingold <gingold@adacore.com>
5890 * printcmd.c (set_command): Emit a warning if the expression is not
5893 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5895 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5898 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5900 * stap-probe.c (stap_is_operator): Change declaration.
5901 (stap_get_opcode): Change return value.
5902 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5903 `stap_parse_argument_1'.
5905 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5907 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5910 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5912 Add two new methods global_block and static_block to gdb.Symtab
5914 * NEWS (Python scripting): Add entry about the new methods.
5915 * python/py-symtab.c (stpy_global_block): New function which
5916 implements the gdb.Symtab.global_block() method.
5917 (stpy_static_block): New function which implements the
5918 gdb.Symtab.static_block() method.
5919 (symtab_object_methods): Add entries for the two new methods.
5921 2012-05-03 Doug Evans <dje@google.com>
5923 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5926 2012-05-03 Yao Qi <yao@codesourcery.com>
5928 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5930 (i386_process_record): Ditto.
5932 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5934 * infcall.c (unwind_on_signal_p): Make static.
5936 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5938 * sol-thread.c (solaris_pid_to_str): Make static.
5939 (_initialize_sol_thread): Add prototype.
5941 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5943 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5945 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5947 * MAINTAINERS: Remove myself.
5949 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5951 Fix --without-auto-load-safe-path for MS-Windows host platform.
5952 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5954 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5956 * gdb_curses.h: Undefine KEY_EVENT before including curses
5957 headers. Move "#undef MOUSE_MOVED" before any curses header
5960 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5962 * features/i386/i386-mmx-linux.c: Regenerate.
5963 * features/rs6000/powerpc-32.c: Likewise.
5964 * features/rs6000/powerpc-32l.c: Likewise.
5965 * features/rs6000/powerpc-403.c: Likewise.
5966 * features/rs6000/powerpc-403gc.c: Likewise.
5967 * features/rs6000/powerpc-405.c: Likewise.
5968 * features/rs6000/powerpc-505.c: Likewise.
5969 * features/rs6000/powerpc-601.c: Likewise.
5970 * features/rs6000/powerpc-602.c: Likewise.
5971 * features/rs6000/powerpc-603.c: Likewise.
5972 * features/rs6000/powerpc-604.c: Likewise.
5973 * features/rs6000/powerpc-64.c: Likewise.
5974 * features/rs6000/powerpc-64l.c: Likewise.
5975 * features/rs6000/powerpc-750.c: Likewise.
5976 * features/rs6000/powerpc-860.c: Likewise.
5977 * features/rs6000/powerpc-e500.c: Likewise.
5978 * features/rs6000/powerpc-e500l.c: Likewise.
5979 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5980 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5981 * features/rs6000/rs6000.c: Likewise.
5983 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5985 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5987 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5988 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5989 (stap_parse_argument) <e>: Likewise.
5990 (handle_stap_probe) <byte_order>: Likewise.
5992 2012-04-30 Doug Evans <dje@google.com>
5994 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5995 init_and_read_dies_worker. All callers updated.
5996 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5997 replaced with init_cutu_and_read_dies.
5998 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5999 (find_partial_die): Remove FIXME. Don't free current CU.
6001 2012-04-30 Sterling Augustine <saugustine@google.com>
6003 * contrib: New directory.
6004 * contrib/test_pubnames_and_indexes.py: New file.
6006 2012-04-30 Doug Evans <dje@google.com>
6008 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6009 All callers updated.
6010 (init_cu_die_reader): Verify the section is non-empty.
6011 (dwarf_decode_line_header): Don't dereference section->asection
6012 until we know the section is present.
6014 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6016 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6019 2012-04-29 Yao Qi <yao@codesourcery.com>
6021 * gdb-code-style.el: New hook gdb-markup-hook
6022 and gdb-comment-hook.
6024 2012-04-28 Doug Evans <dje@google.com>
6026 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6027 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6029 * symfile.h (dwarf2_debug_sections): New member addr.
6030 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6031 (ctx_no_get_addr_index): New function.
6032 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6033 (ctx_no_get_addr_index): Declare.
6034 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6035 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6036 (dwarf_expr_ctx_funcs): Update.
6037 (needs_get_addr_index): New function.
6038 (needs_frame_ctx_funcs): Update.
6039 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6040 * dwarf2read.c: #include "gdbcore.h".
6041 (dwarf2_per_objfile): New members addr, dwo_files.
6042 (dwarf2_elf_names): Add entry for addr.
6043 (struct dwo_section_names): New type.
6044 (dwo_section_names): New static global.
6045 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6046 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6047 old debug_types_section member updated to use this.
6048 Rename member debug_types_section to info_or_types_section,
6050 (signatured_type): Rename member type_offset to type_offset_in_tu,
6051 all uses updated. New member type_offset_in_section.
6052 (struct dwo_sections): New type.
6053 (struct dwo_unit): New type.
6054 (struct dwo_file): New type.
6055 (die_reader_specs): New member dwo_file.
6056 (dwarf2_locate_sections): Watch for .debug_addr.
6057 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6058 (dwarf2_read_section): Get bfd of section from bfd's asection,
6060 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6061 (create_signatured_type_table_from_index): Initialize
6062 sig_type->info_or_types_section.
6063 (dw2_get_file_names): Statement lists for type units with DWO files
6064 live in the DWO file.
6065 (create_debug_types_hash_table): New function.
6066 (create_all_type_units): Rewrite.
6067 (init_cu_die_reader): New arg dwo_file, all callers updated.
6068 (init_and_read_dies_worker): Get section from
6069 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6070 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6071 continue reading the CU/TU from there.
6072 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6073 updated. Get section from this_cu->info_or_types_section.
6074 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6075 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6076 DW_FORM_GNU_str_index.
6077 (hash_dwo_file, eq_dwo_file): New functions.
6078 (allocate_dwo_file_hash_table): New function.
6079 (hash_dwo_unit, eq_dwo_unit): New functions.
6080 (allocate_dwo_unit_table): New function.
6081 (dwarf2_locate_dwo_sections): New function.
6082 (struct create_dwo_info_table_data): New type.
6083 (create_debug_info_hash_table_reader): New function.
6084 (create_debug_info_hash_table): New function.
6085 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6086 (lookup_dwo_file): New function.
6087 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6088 (free_dwo_file, free_dwo_file_cleanup): New functions.
6089 (free_dwo_file_from_slot, free_dwo_files): New functions.
6090 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6091 (dwarf2_record_block_ranges): Ditto.
6092 (read_partial_die): Ditto.
6093 (process_enumeration_scope): Update to use type_offset_in_section.
6094 (read_full_die_1): New function.
6095 (read_full_die): Rewrite.
6096 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6097 DW_FORM_GNU_str_index.
6098 (read_addr_index_1, read_addr_index): New functions.
6099 (read_addr_index_from_leb128): New function.
6100 (struct dwarf2_read_addr_index_data): New type.
6101 (dwarf2_read_addr_index_reader): New function.
6102 (dwarf2_read_addr_index): New function.
6103 (read_str_index): New function.
6104 (leb128_size): New function.
6105 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6106 If processing a type unit from a DWO file, get the line section
6108 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6109 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6110 DW_FORM_GNU_str_index.
6111 (lookup_die_type): Check whether section offset of type's die is
6112 known before looking it up. Remove assert. Condition can
6113 legimately happen for inter-cu type references.
6114 (dwarf_attr_name): Handle Fission attributes.
6115 (dwarf_form_name): Handle Fission forms.
6116 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6117 DW_FORM_GNU_str_index.
6118 (follow_die_sig): Update to use type_offset_in_section.
6119 (decode_locdesc): New case DW_OP_GNU_addr_index.
6120 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6121 DW_FORM_GNU_str_index.
6122 (cu_debug_loc_section): New function.
6123 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6124 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6125 Free DWO files if present.
6126 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6128 Refactor DIE reading.
6129 * dwarf2read.c (dwarf2_per_objfile): Replace members
6130 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6131 (die_reader_specs): New member "die_section". Temporarily make
6132 member "buffer" non-const, pending constifying all info_ptr uses.
6133 (die_reader_func_ftype): New typedef.
6134 (dw2_get_file_names_reader): New function.
6135 (dw2_get_file_names): Rewrite.
6136 (read_and_check_type_unit_head): Rename arg type_offset to
6138 (create_all_type_units): Improve debugging message.
6139 Improve dummy type unit check.
6140 (init_cu_die_reader): New arg "section". All callers updated.
6141 (init_and_read_dies_worker): New function.
6142 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6143 (init_cutu_and_read_dies_no_follow): New function.
6144 (init_cutu_and_read_dies_simple): New function.
6145 (process_psymtab_comp_unit_reader): New function.
6146 (process_psymtab_comp_unit): Delete args section,
6147 is_debug_types_section. Rewrite. All callers updated.
6148 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6149 All callers updated. Rewrite.
6150 (load_partial_comp_unit_reader): New function.
6151 (load_partial_comp_unit): Rewrite.
6152 (skip_children): New arg reader. Delete args buffer, cu.
6153 All callers updated.
6154 (skip_one_die): New arg reader. Delete args buffer, cu.
6155 All callers updated.
6156 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6157 All callers updated.
6158 (load_full_comp_unit_reader): New function.
6159 (load_full_comp_unit): Rewrite.
6160 (read_comp_unit): Delete.
6161 (read_die_and_children_1): Delete, contents moved ...
6162 (read_die_and_children): ... here.
6163 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6164 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6165 All callers updated.
6166 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6167 All callers updated.
6168 (find_partial_die): Rewrite load_all_dies support.
6169 (read_attribute_value): New arg reader. Delete args abfd, cu.
6170 All callers updated.
6171 (read_attribute): New arg reader. Delete args abfd, cu.
6172 All callers updated.
6173 (load_full_type_unit): Add assert.
6174 (read_signatured_type_reader): New function.
6175 (read_signatured_type): Rewrite.
6176 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6177 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6178 All callers updated. Set per_cu->cu = NULL after freeing it.
6179 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6180 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6181 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6182 (set_die_type): Update.
6183 (get_die_type_at_offset): Update.
6184 (read_file_scope): Call prepare_one_comp_unit.
6185 (read_type_unit_scope): Ditto.
6186 (prepare_one_comp_unit): Set producer if present.
6188 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6190 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6191 gettext function on `error'.
6193 2012-04-27 Doug Evans <dje@google.com>
6195 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6198 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6199 Tom Tromey <tromey@redhat.com>
6201 * breakpoint.c (struct breakpoint_objfile_data)
6202 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6203 <exception_probes>: New fields.
6204 (free_breakpoint_probes): New function.
6205 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6206 `_Unwind_DebugHook'.
6207 (create_exception_master_breakpoint): Likewise.
6208 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6209 * infrun.c: Including necessary header files for handling SystemTap
6211 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6212 via SystemTap probes.
6213 (check_exception_resume): Remove `func' argument. Handle exception
6214 unwinding breakpoint set via a SystemTap probe.
6215 (insert_exception_resume_from_probe): New function.
6217 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6218 Tom Tromey <tromey@redhat.com>
6219 Jan Kratochvil <jan.kratochvil@redhat.com>
6221 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6222 (COMMON_OBS): Likewise.
6223 (HFILES_NO_SRCDIR): Add `probe'.
6224 * NEWS: Mention support for static and SystemTap probes.
6225 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6226 SystemTap probes' arguments parser.
6227 * arm-linux-tdep.c: Including headers needed to perform the parsing
6228 of SystemTap probes' arguments.
6229 (arm_stap_is_single_operand): New function.
6230 (arm_stap_parse_special_token): Likewise.
6231 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6232 probes' arguments parser.
6233 * ax-gdb.c (require_rvalue): Removing static declaration.
6234 (gen_expr): Likewise.
6235 * ax-gdb.h (gen_expr): Declaring function.
6236 (require_rvalue): Likewise.
6237 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6238 (bkpt_probe_breakpoint_ops): New variable.
6239 (momentary_breakpoint_from_master): Set the `probe' value.
6240 (add_location_to_breakpoint): Likewise.
6241 (break_command_1): Using proper breakpoint_ops according to the
6242 argument passed by the user in the command line.
6243 (bkpt_probe_insert_location): New function.
6244 (bkpt_probe_remove_location): Likewise.
6245 (bkpt_probe_create_sals_from_address): Likewise.
6246 (bkpt_probe_decode_linespec): Likewise.
6247 (tracepoint_probe_create_sals_from_address): Likewise.
6248 (tracepoint_probe_decode_linespec): Likewise.
6249 (tracepoint_probe_breakpoint_ops): New variable.
6250 (trace_command): Using proper breakpoint_ops according to the
6251 argument passed by the user in the command line.
6252 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6253 static probes on breakpoints and tracepoints.
6254 * breakpoint.h (struct bp_location) <probe>: New field.
6255 * cli-utils.c (skip_spaces_const): New function.
6256 (extract_arg): Likewise.
6257 * cli-utils.h (skip_spaces_const): Likewise.
6258 (extract_arg): Likewise.
6259 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6260 * configure.ac: Append `stap-probe.o' to be generated when ELF
6262 * configure: Regenerate.
6263 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6264 * elfread.c: Include `probe.h' and `arch-utils.h'.
6265 (probe_key): New variable.
6266 (elf_get_probes): New function.
6267 (elf_get_probe_argument_count): Likewise.
6268 (elf_evaluate_probe_argument): Likewise.
6269 (elf_compile_to_ax): Likewise.
6270 (elf_symfile_relocate_probe): Likewise.
6271 (stap_probe_key_free): Likewise.
6272 (elf_probe_fns): New variable.
6273 (elf_sym_fns): Add `sym_probe_fns' value.
6274 (elf_sym_fns_lazy_psyms): Likewise.
6275 (elf_sym_fns_gdb_index): Likewise.
6276 (_initialize_elfread): Initialize objfile cache for static
6278 * gdb_vecs.h (struct probe): New forward declaration.
6279 (probe_p): New VEC declaration.
6280 * gdbarch.c: Regenerate.
6281 * gdbarch.h: Regenerate.
6282 * gdbarch.sh (stap_integer_prefix): New variable.
6283 (stap_integer_suffix): Likewise.
6284 (stap_register_prefix): Likewise.
6285 (stap_register_suffix): Likewise.
6286 (stap_register_indirection_prefix): Likewise.
6287 (stap_register_indirection_suffix): Likewise.
6288 (stap_gdb_register_prefix): Likewise.
6289 (stap_gdb_register_suffix): Likewise.
6290 (stap_is_single_operand): New function.
6291 (stap_parse_special_token): Likewise.
6292 (struct stap_parse_info): Forward declaration.
6293 * i386-tdep.c: Including headers needed to perform the parsing
6294 of SystemTap probes' arguments.
6295 (i386_stap_is_single_operand): New function.
6296 (i386_stap_parse_special_token): Likewise.
6297 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6298 probes' arguments parser.
6299 * i386-tdep.h (i386_stap_is_single_operand): New function.
6300 (i386_stap_parse_special_token): Likewise.
6301 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6302 * mipsread.c (ecoff_sym_fns): Likewise.
6303 * objfiles.c (objfile_relocate1): Support relocation for static
6305 * parse.c (prefixify_expression): Remove static declaration.
6306 (initialize_expout): Likewise.
6307 (reallocate_expout): Likewise.
6308 * parser-defs.h (initialize_expout): Declare function.
6309 (reallocate_expout): Likewise.
6310 (prefixify_expression): Likewise.
6311 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6312 of SystemTap probes' arguments.
6313 (ppc_stap_is_single_operand): New function.
6314 (ppc_stap_parse_special_token): Likewise.
6315 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6316 probes' arguments parser.
6317 * probe.c: New file, for generic statically defined probe support.
6318 * probe.h: Likewise.
6319 * s390-tdep.c: Including headers needed to perform the parsing of
6320 SystemTap probes' arguments.
6321 (s390_stap_is_single_operand): New function.
6322 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6323 probes' arguments parser.
6324 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6325 * stap-probe.c: New file, for SystemTap probe support.
6326 * stap-probe.h: Likewise.
6327 * symfile.h: Include `gdb_vecs.h'.
6328 (struct sym_probe_fns): New struct.
6329 (struct sym_fns) <sym_probe_fns>: New field.
6330 * symtab.c (init_sal): Initialize `probe' field.
6331 * symtab.h (struct probe): Forward declaration.
6332 (struct symtab_and_line) <probe>: New field.
6333 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6335 (stop_tracing): Likewise.
6336 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6338 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6339 Tom Tromey <tromey@redhat.com>
6341 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6342 and to compile agent expressions.
6343 * infrun.c (siginfo_make_value): New argument `ignore'.
6344 (siginfo_funcs): New struct.
6345 (_initialize_infrun): New argument when calling
6346 `create_internalvar_type_lazy'.
6347 * thread.c (thread_id_make_value): New argument `ignore'.
6348 (thread_funcs): New struct.
6349 (_initialize_thread): New argument when calling
6350 `create_internalvar_type_lazy'.
6351 * tracepoint.c (sdata_make_value): New argument `ignore'.
6352 (sdata_funcs): New struct.
6353 (_initialize_tracepoint): New argument when calling
6354 `create_internalvar_type_lazy'.
6355 * value.c (make_value): New struct.
6356 (create_internalvar_type_lazy): New argument `data'.
6357 (compile_internalvar_to_ax): New function.
6358 (value_of_internalvar): Properly handling `make_value' case.
6359 (clear_internalvar): Likewise.
6360 (show_convenience): Adding `TRY_CATCH' block.
6361 * value.h (internalvar_make_value): Delete, replace by...
6362 (struct internalvar_funcs): ... this.
6363 (create_internalvar_type_lazy) <fun>: Delete argument.
6364 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6365 (compile_internalvar_to_ax): New function.
6366 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6367 (tlb_funcs): New struct.
6368 (_initialize_windows_tdep): New argument when calling
6369 `create_internalvar_type_lazy'.
6371 2012-04-27 Mark Wielaard <mjw@redhat.com>
6373 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6374 see whether it is an address or a constant offset from DW_AT_low_pc.
6375 (dwarf2_record_block_ranges): Likewise.
6376 (read_partial_die): Likewise.
6378 2012-04-26 Mark Wielaard <mjw@redhat.com>
6380 * MAINTAINERS (Write After Approval): Add myself to the list.
6382 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6384 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6385 (proc_prettyprint_signal): Likewise.
6386 (proc_prettyprint_faultset): Likewise.
6387 (proc_prettyprint_fault): Likewise.
6388 (proc_prettyprint_actionset): Likewise.
6389 (proc_prettyprint_flags): Move to new proc-flags.c section.
6390 (proc_prettyfprint_flags): New prototype.
6391 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6392 (proc_syscall, proc_cursig): Likewise.
6393 (proc_set_kill_on_last_close): Likewise.
6394 (proc_unset_kill_on_last_close): Likewise.
6395 (proc_set_watchpoint): Make static.
6396 (proc_delete_dead_threads): Likewise.
6397 (procfs_set_watchpoint): Likewise.
6398 (_initialize_procfs): Add prototype.
6399 * proc-events.c: Include proc-utils.h.
6400 (init_syscall_table): Make static.
6401 * proc-api.c (_initialize_proc_api): Add prototype.
6402 * proc-flags.c: Include proc-utils.h.
6404 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6406 * configure.ac: Add AC_ARG_PROGRAM.
6407 * configure: Regenerate.
6409 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6411 Fix DW_AT_lower_bound defaults for DWARF-4+.
6412 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6413 high. New variable low_default_is_valid. Implement DWARF-4+
6414 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6415 no default by the DWARF standard.
6417 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6418 Maciej W. Rozycki <macro@codesourcery.com>
6420 * infrun.c (handle_inferior_event): Move the check for return
6421 trampolines ahead of the check for function trampolines.
6422 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6423 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6424 (mips_str_mips16_ret_stub): Likewise.
6425 (mips_str_call_fp_stub): Likewise.
6426 (mips_str_call_stub): Likewise.
6427 (mips_str_fn_stub): Likewise.
6428 (mips_str_pic): Likewise.
6429 (mips_in_frame_stub): New function.
6430 (mips_unwind_pc): Return the return address rather than the PC
6431 if the PC of an intermediate frame is inside a call thunk.
6432 (mips_is_stub_suffix): New function.
6433 (mips_is_stub_mode): Likewise.
6434 (mips_get_mips16_fn_stub_pc): Likewise.
6435 (mips_skip_mips16_trampoline_code): Update to handle all the
6436 currently generated stub types. Don't recurse into __fn_stub
6437 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6438 Use cooked register accesses.
6439 (mips_in_return_stub): Reintroduce function.
6440 (mips_skip_trampoline_code): Traverse trampolines recursively.
6441 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6443 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6447 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6449 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6450 * features/arm-with-m-vfp-d16.xml: New file. Describes
6451 Cortex-M with VFPv4-sp-d16 FPU register layout.
6452 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6453 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6454 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6455 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6456 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6458 2012-04-25 Doug Evans <dje@google.com>
6460 * cli/cli-decode.c (print_doc_line): Use stream instead of
6463 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6465 * features/arm-with-iwmmxt.c: Regenerate.
6466 * features/arm-with-m-fpa-layout.c: Likewise.
6467 * features/arm-with-m.c: Likewise.
6468 * features/arm-with-neon.c: Likewise.
6469 * features/arm-with-vfpv2.c: Likewise.
6470 * features/arm-with-vfpv3.c: Likewise.
6471 * features/mips-dsp-linux.c: Likewise.
6472 * features/mips-linux.c: Likewise.
6473 * features/mips64-dsp-linux.c: Likewise.
6474 * features/mips64-linux.c: Likewise.
6475 * features/s390-linux32.c: Likewise.
6476 * features/s390-linux32v1.c: Likewise.
6477 * features/s390-linux32v2.c: Likewise.
6478 * features/s390-linux64.c: Likewise.
6479 * features/s390-linux64v1.c: Likewise.
6480 * features/s390-linux64v2.c: Likewise.
6481 * features/s390x-linux64.c: Likewise.
6482 * features/s390x-linux64v1.c: Likewise.
6483 * features/s390x-linux64v2.c: Likewise.
6484 * features/tic6x-c62x-linux.c: Likewise.
6485 * features/tic6x-c62x.c: Likewise.
6486 * features/tic6x-c64x-linux.c: Likewise.
6487 * features/tic6x-c64x.c: Likewise.
6488 * features/tic6x-c64xp-linux.c: Likewise.
6489 * features/tic6x-c64xp.c: Likewise.
6490 * target-descriptions.c: Only generate `field_type' and `type'
6491 variables when needed.
6493 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6495 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6497 2012-04-25 Doug Evans <dje@google.com>
6499 Initial pass at Go language support.
6501 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6503 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6504 (YYFILES): Add go-exp.c.
6505 (YYOBJ): Add go-exp.o.
6506 (local-maintainer-clean): Delete go-exp.c.
6507 * defs.h (enum language): Add language_go.
6508 * dwarf2read.c: #include "go-lang.h".
6509 (fixup_go_packaging): New function.
6510 (process_full_comp_unit): Call it when processing Go CUs.
6511 (dwarf2_physname): Add Go support.
6512 (read_file_scope): Handle missing language spec for GNU Go.
6513 (set_cu_language): Handle DW_LANG_Go.
6514 * go-exp.y: New file.
6515 * go-lang.h: New file.
6516 * go-lang.c: New file.
6517 * go-typeprint.c: New file.
6518 * go-valprint.c: New file.
6519 * symtab.c: #include "go-lang.h".
6520 (symbol_set_language): Handle language_go.
6521 (symbol_find_demangled_name, symbol_set_names): Ditto.
6522 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6524 2012-04-24 Jim Meyering <meyering@redhat.com>
6526 avoid a few strncpy-induced buffer overruns
6527 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6528 fname and psargs before trying to concatenate.
6529 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6530 "name" before applying strchr.
6532 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6534 * CONTRIBUTE: Use unified diff instead of context diff when
6537 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6539 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6540 code. Handle JR.HB correctly.
6542 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6545 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6546 with the other MIPS16 helpers.
6548 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6550 * observer.sh: Conditionally declare `args', thus cleaning up
6551 unused instances of this variable.
6553 2012-04-24 Yao Qi <yao@codesourcery.com>
6555 Revert this patch to allow breakpoint always-inserted
6557 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6558 * breakpoint.c: Include record.h.
6559 (breakpoints_always_inserted_mode): Return false when the record
6562 * breakpoint.c (iterate_over_bp_locations): New.
6563 * breakpoint.h: Declare.
6564 New typedef walk_bp_location_callback.
6565 * record.c (record_open): Call record_init_record_breakpoints.
6566 (record_sync_record_breakpoints): New.
6567 (record_init_record_breakpoints): New.
6568 * NEWS: Mention supporting breakpoint always-inserted mode in
6571 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6573 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6576 2012-04-24 Yao Qi <yao@codesourcery.com>
6578 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6579 (is_catchpoint): ... it.
6580 (print_one_breakpoint_location): Caller update.
6581 * breakpoint.h: Update declaration.
6583 2012-04-23 David S. Miller <davem@davemloft.net>
6585 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6587 2012-04-23 Tom Tromey <tromey@redhat.com>
6589 * buildsym.c (add_free_pendings): Remove.
6590 * buildsym.h (add_free_pendings): Remove.
6592 2012-04-23 Doug Evans <dje@google.com>
6594 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6595 attr.u.unsnd instead of attr.u.addr.
6596 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6597 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6599 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6600 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6602 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6604 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6606 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6607 (mips_o32_return_value): Likewise.
6608 (mips_o64_return_value): Likewise.
6610 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6612 * ada-lang.c (ada_evaluate_subexp): Add cases for
6613 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6614 their treatment in eval.c.
6616 2012-04-21 David S. Miller <davem@davemloft.net>
6618 * sparc-tdep.c (X_DISP10): Define.
6619 (sparc_analyze_control_transfer): Handle compare-and-branch.
6621 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6623 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6624 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6626 2012-04-20 Nigel Stephens <nigel@mips.com>
6627 Maciej W. Rozycki <macro@codesourcery.com>
6629 * mips-tdep.c (mips_float_register_p): New function.
6630 (mips_convert_register_float_case_p): Use mips_float_register_p.
6631 (mips_register_type): Likewise.
6632 (mips_print_register): Likewise.
6633 (print_gp_register_row): Likewise.
6634 (mips_print_registers_info): Likewise.
6636 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6638 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6641 2012-04-20 Andrew Pinski <apinski@cavium.com>
6643 * MAINTAINERS (Write After Approval): Add myself to the list.
6645 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6647 * MAINTAINERS: Update my e-mail address.
6649 2012-04-20 Pedro Alves <palves@redhat.com>
6651 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6653 * configure: Regenerate.
6655 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6657 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6659 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6661 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6663 Fix compilation compatibility with python-2.4
6664 * python/py-type.c (convert_field): Cast ADDRSTRING for
6665 PyObject_SetAttrString as non-const. New comment.
6667 2012-04-19 Tom Tromey <tromey@redhat.com>
6669 * top.c (quit_target): Use all_cleanups.
6670 * main.c (captured_command_loop): Use all_cleanups.
6671 * exceptions.c (throw_exception): Use all_cleanups.
6673 2012-04-19 Pedro Alves <palves@redhat.com>
6675 * Makefile.in (GNULIB_BUILDDIR): New.
6676 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6677 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6678 (CLEANDIRS). Remove gnulib/import.
6679 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6681 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6682 (gnulib/import/Makefile): Replace gnulib/import with
6683 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6684 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6685 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6686 acx_configure_dir.m4.
6687 * acinclude.m4: Include acx_configure_dir.m4.
6688 * acx_configure_dir.m4: New file.
6689 * aclocal.m4: Regenerate.
6690 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6691 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6692 (GNULIB): New variable.
6693 (GNULIB_STDINT_H): Adjust.
6694 (AC_OUTPUT): Don't output gnulib/Makefile.
6695 * gdb/defs.h: Include build-gnulib/config.h.
6696 * aclocal.m4: Regenerate.
6697 * config.in: Regenerate.
6698 * configure: Regenerate.
6700 * gnulib/Makefile.in: New file.
6701 * gnulib/configure.ac: New file.
6702 * gnulib/aclocal.m4: New file.
6703 * gnulib/config.in: New file.
6704 * gnulib/configure: New file.
6705 * gnulib/: Re-run gnulib-tool to adjust.
6707 2012-04-19 Doug Evans <dje@google.com>
6709 * cleanups.h (struct cleanup): Move to cleanups.c.
6710 (make_cleanup_dtor_ftype): New typedef.
6711 (make_cleanup_dtor): Use it.
6712 (ALL_CLEANUPS): Replace with ...
6713 (all_cleanups): ... this. Declare. All uses updated.
6714 * cleanups.c: #include "gdb_assert.h".
6715 (sentinel_cleanup): New static global.
6716 (SENTINEL_CLEANUP): Define.
6717 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6718 (make_my_cleanup2): Assert result is non-NULL.
6719 (all_cleanups): New function.
6720 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6723 2012-04-19 Pedro Alves <palves@redhat.com>
6725 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6726 Adjust paths to gnulib imported files.
6728 2012-04-19 Pedro Alves <palves@redhat.com>
6730 * gnulib/: Move whole directory ...
6731 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6732 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6733 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6734 (aclocal_m4_deps): Adjust.
6735 * aclocal.m4: Regenerate.
6736 * configure: Regenerate.
6737 * configure.ac: Adjust AC_OUTPUT output.
6739 2012-04-19 Yao Qi <yao@codesourcery.com>
6741 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6743 * vec.c: Move it ...
6744 * common/vec.c: ... here.
6745 * vec.h: Move it ...
6746 * common/vec.h: ... here.
6748 2012-04-19 Yao Qi <yao@codesourcery.com>
6750 * gdb-code-style.el: New.
6752 2012-04-18 Pedro Alves <palves@redhat.com>
6754 Update gnulib from latest git.
6755 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6757 * gnulib/Makefile.am: Update.
6758 * gnulib/dummy.c: Update.
6759 * gnulib/extra/arg-nonnull.h: Update.
6760 * gnulib/extra/c++defs.h: Update.
6761 * gnulib/extra/update-copyright: Update.
6762 * gnulib/extra/warn-on-use.h: Update.
6763 * gnulib/inttypes.in.h: Update.
6764 * gnulib/m4/00gnulib.m4: Update.
6765 * gnulib/m4/extensions.m4: Update.
6766 * gnulib/m4/gnulib-cache.m4: Update.
6767 * gnulib/m4/gnulib-common.m4: Update.
6768 * gnulib/m4/gnulib-comp.m4: Update.
6769 * gnulib/m4/gnulib-tool.m4: Update.
6770 * gnulib/m4/include_next.m4: Update.
6771 * gnulib/m4/inttypes-pri.m4: Update.
6772 * gnulib/m4/inttypes.m4: Update.
6773 * gnulib/m4/longlong.m4: Update.
6774 * gnulib/m4/memchr.m4: Update.
6775 * gnulib/m4/memmem.m4: Update.
6776 * gnulib/m4/mmap-anon.m4: Update.
6777 * gnulib/m4/multiarch.m4: Update.
6778 * gnulib/m4/onceonly.m4: Update.
6779 * gnulib/m4/stddef_h.m4: Update.
6780 * gnulib/m4/stdint.m4: Update.
6781 * gnulib/m4/string_h.m4: Update.
6782 * gnulib/m4/warn-on-use.m4: Update.
6783 * gnulib/m4/wchar_h.m4: Update.
6784 * gnulib/m4/wchar_t.m4: Update.
6785 * gnulib/m4/wint_t.m4: Update.
6786 * gnulib/memchr.c: Update.
6787 * gnulib/memmem.c: Update.
6788 * gnulib/stddef.in.h: Update.
6789 * gnulib/stdint.in.h: Update.
6790 * gnulib/str-two-way.h: Update.
6791 * gnulib/string.in.h: Update.
6792 * gnulib/wchar.in.h: Update.
6794 * gnulib/extra/arg-nonnull.h: Delete.
6795 * gnulib/extra/c++defs.h: Delete.
6796 * gnulib/extra/warn-on-use.h: Delete.
6797 * gnulib/m4/wchar_h.m4: Delete.
6798 * gnulib/m4/wint_t.m4: Delete.
6799 * gnulib/wchar.in.h: Delete.
6801 * gnulib/extra/snippets/arg-nonnull.h: New.
6802 * gnulib/extra/snippets/c++defs.h: New.
6803 * gnulib/extra/snippets/warn-on-use.h: New.
6805 * aclocal.m4: Regenerate.
6806 * config.in: Regenerate.
6807 * configure: Regenerate.
6808 * gnulib/Makefile.in: Regenerate.
6810 2012-04-18 Pedro Alves <palves@redhat.com>
6812 Reimport the update-copyright module from gnulib
6813 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6815 * configure: Regenerate.
6816 * gnulib/Makefile.am: Update.
6817 * gnulib/Makefile.in: Regenerate.
6818 * gnulib/extra/update-copyright: Update.
6819 * gnulib/m4/gnulib-cache.m4: Update.
6820 * gnulib/m4/gnulib-comp.m4: Update.
6822 2012-04-18 Tristan Gingold <gingold@adacore.com>
6824 * configure.ac (aix): Put -lpthread into libs.
6825 * configure: Regenerate.
6827 2012-04-18 Tom Tromey <tromey@redhat.com>
6829 * linespec.c (convert_linespec_to_sals): Don't use
6831 (compare_msymbols): Arguments are minsym_and_objfile, not
6832 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6834 2012-04-18 Pedro Alves <palves@redhat.com>
6836 Revert gnulib/ part of:
6837 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6838 Copyright year update in most files (performed by copyright.sh).
6840 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6842 Fix 64-bit constants on 32-bit hosts.
6843 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6844 from unsigned long to ULONGEST.
6845 (read_signed_leb128): Change declaration return type from long to
6847 (dwarf2_const_value_attr): Change declaration parameter value from long
6849 (dwarf2_compute_name): Change variable value from long to LONGEST.
6850 (read_unsigned_leb128): Change return type, variable result and some
6851 casts from unsigned long to ULONGEST.
6852 (read_signed_leb128): Change return type, variable result and some
6853 casts from long to LONGEST.
6854 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6855 value from long to LONGEST.
6856 (dwarf2_const_value): Change variable value from long to LONGEST.
6857 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6858 plongest and hex_string.
6859 * symtab.h (struct general_symbol_info): Change ivalue from long to
6860 LONGEST, remove the comment.
6861 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6862 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6864 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6867 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6868 * ada-lang.c (ada_discrete_type_high_bound)
6869 (ada_discrete_type_low_bound): Fix function comment. Use
6870 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6871 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6872 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6873 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6874 Use TYPE_FIELD_ENUMVAL.
6875 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6876 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6877 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6878 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6880 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6881 * dwarf2read.c (process_enumeration_scope): Likewise.
6882 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6884 (class StructMainTypePrettyPrinter): Support also
6885 FIELD_LOC_KIND_ENUMVAL.
6886 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6888 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6889 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6890 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6891 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6893 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6894 accommodate enumval.
6895 (struct call_site): Adjust loc_kind to accommodate enumval.
6896 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6897 (TYPE_FIELD_ENUMVAL): New macros.
6898 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6899 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6901 * p-typeprint.c (pascal_type_print_base): Likewise.
6902 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6904 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6905 * python/py-type.c (convert_field): New variable addrstring. Use
6906 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6907 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6908 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6909 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6911 * valprint.c (generic_val_print): Likewise.
6913 2012-04-17 Doug Evans <dje@google.com>
6915 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6917 * dwarf2read.c: Whitespace fixes.
6918 (lookup_signatured_type): Tweak comment.
6919 (get_die_type_at_offset): Fix comment.
6921 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6923 * xcoffread.c (xcoff_secnum_to_sections): New function.
6924 (secnum_to_section, secnum_to_bfd_section): Reimplement
6925 using xcoff_secnum_to_sections. Rename "secnum" parameter
6927 (RECORD_MINIMAL_SYMBOL): Delete.
6928 (record_minimal_symbol): New function.
6929 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6930 by call to record_minimal_symbol and set misc_func_recorded
6931 to 1. Set last_csect_sec to the XCOFF section index instead
6932 of GDB's section_offset index. Update calls to
6933 prim_record_minimal_symbol_and_info to pass the BFD section
6936 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6938 * xcoffread.c (read_xcoff_symtab): Delete variables
6939 last_csect_val and last_csect_sec and associated code.
6941 2012-04-17 Doug Evans <dje@google.com>
6943 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6944 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6945 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6946 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6948 * cleanups.h: New file.
6949 * cleanups.c: New file.
6950 * Makefile.in (SFILES): Add cleanups.c.
6951 (HFILES_NO_SRCDIR): Add cleanups.h.
6952 (COMMON_OBS): Add cleanups.o.
6953 * defs.h (struct cleanup): Moved to cleanups.h.
6954 (do_cleanups,do_final_cleanups): Ditto.
6955 (discard_cleanups,discard_final_cleanups): Ditto
6956 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6957 (save_cleanups,save_final_cleanups): Ditto.
6958 (restore_cleanups,restore_final_cleanups): Ditto.
6959 (null_cleanup): Ditto.
6960 (make_my_cleanup,make_my_cleanup2): Ditto.
6961 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6962 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6963 (do_cleanups,do_final_cleanups): Ditto.
6964 (discard_cleanups,discard_final_cleanups): Ditto
6965 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6966 (save_cleanups,save_final_cleanups): Ditto.
6967 (restore_cleanups,restore_final_cleanups): Ditto.
6968 (null_cleanup): Ditto.
6969 (make_my_cleanup,make_my_cleanup2): Ditto.
6970 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6972 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6974 (make_cleanup_dyn_string_delete): Ditto.
6975 (make_cleanup_ui_file_delete): Ditto.
6976 (make_cleanup_ui_out_redirect_pop): Ditto.
6977 (make_cleanup_free_section_addr_info): Ditto.
6978 (make_cleanup_restore_integer): Ditto.
6979 (make_cleanup_unpush_target): Ditto.
6980 (make_cleanup_value_free_to_mark): Ditto.
6981 (make_cleanup_value_free): Ditto.
6982 (make_cleanup_free_so): Ditto.
6984 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6986 New option "set debug auto-load".
6987 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6988 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6989 (auto_load_safe_path_vec_update)
6990 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6992 (file_is_auto_load_safe): New parameters debug_fmt and ....
6993 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6994 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6995 caller by explanatory string.
6996 (_initialize_auto_load): Register "set debug auto-load".
6997 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6999 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7000 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7001 by explanatory string.
7002 * main.c (captured_main): Likewise.
7003 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7004 (source_section_scripts): Likewise.
7006 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7008 New option "set auto-load safe-path".
7009 * NEWS: New commands "set auto-load safe-path"
7010 and "show auto-load safe-path".
7011 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7012 (auto_load_safe_path, auto_load_safe_path_vec)
7013 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7014 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7015 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7016 (source_gdb_script_for_objfile): New variable is_safe. Call
7017 file_is_auto_load_safe. Return if it is not.
7018 (struct loaded_script): New field loaded.
7019 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7020 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7021 output "Missing" to "No".
7022 (_initialize_auto_load): New variable cmd. Initialize
7023 auto_load_safe_path. Register "set auto-load safe-path",
7024 "show auto-load safe-path" and "add-auto-load-safe-path".
7025 * auto-load.h (maybe_add_script): Add parameter loaded.
7026 (file_is_auto_load_safe): New declaration.
7027 * config.in: Regenerate.
7028 * configure: Regenerate.
7029 * configure.ac: New parameters --with-auto-load-safe-path
7030 and --without-auto-load-safe-path.
7031 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7032 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7033 * main.c (captured_main): Check file_is_auto_load_safe for
7035 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7036 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7037 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7040 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7042 auto-load: Implementation.
7043 * NEWS: New descriptions for "info auto-load",
7044 "info auto-load gdb-scripts", "info auto-load python-scripts",
7045 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7046 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7047 and "show auto-load-scripts". New description for "set auto-load",
7048 "show auto-load", "set auto-load gdb-scripts",
7049 "show auto-load gdb-scripts", "set auto-load python-scripts",
7050 "show auto-load python-scripts", "set auto-load local-gdbinit",
7051 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7052 "show auto-load libthread-db".
7053 * auto-load.c: Remove include python/python-internal.h. Add includes
7054 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7056 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7057 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7058 (gdbpy_global_auto_load): Rename to ...
7059 (global_auto_load): ... here.
7060 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7061 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7062 (script_language_gdb, source_gdb_script_for_objfile): New.
7063 (struct loaded_script): New field language.
7064 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7066 (maybe_add_script): Add parameter language. Drop redundant
7067 entry.full_path initialization. Initialize entry.language and
7069 (auto_load_objfile_script): Change parameter suffix to language.
7070 Remove the call of maybe_add_script.
7071 Call language->source_script_for_objfile.
7072 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7074 (collect_matching_scripts): Adjust it for
7075 struct collect_matching_scripts_data.
7076 (auto_load_info_scripts_pattern_nl): New variable.
7077 (info_auto_load_scripts): Rename to ...
7078 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7079 for struct collect_matching_scripts_data.
7080 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7081 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7082 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7083 (auto_load_info_cmdlist_get): New.
7084 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7085 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7086 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7087 "info auto-load local-gdbinit".
7088 * auto-load.h (struct script_language): New.
7089 (gdbpy_global_auto_load): Rename to ...
7090 (global_auto_load): ... here.
7091 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7092 (auto_load_local_gdbinit_loaded): New declarations.
7093 (maybe_add_script): New parameter language.
7094 (auto_load_objfile_script): Change parameter suffix to language.
7095 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7096 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7097 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7099 * linux-thread-db.c: Include auto-load.h and ctype.h.
7100 (auto_load_thread_db, show_auto_load_thread_db): New.
7101 (struct thread_db_info): New field filename.
7102 (delete_thread_db_info): Call xfree for FILENAME.
7103 (try_thread_db_load): Initialize FILENAME.
7104 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7105 if !AUTO_LOAD_THREAD_DB.
7106 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7107 (_initialize_thread_db): Install auto_load_thread_db
7108 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7109 as "info auto-load libthread-db".
7110 * main.c (captured_main): Rename gdbpy_global_auto_load to
7111 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7112 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7113 (print_gdb_help): Extend the help for 'local init file'.
7114 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7115 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7116 (auto_load_scripts): Rename to ...
7117 (auto_load_python_scripts): ... here, update the comment.
7118 (gdbpy_load_auto_script_for_objfile): New declaration.
7119 (show_auto_load_python_scripts, script_language_python)
7120 (gdbpy_load_auto_script_for_objfile): New.
7121 (source_section_scripts): Refactor the code.
7122 (load_auto_scripts_for_objfile): Rename to ...
7123 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7124 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7125 (info_auto_load_python_scripts): New.
7126 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7127 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7128 Register "set auto-load-scripts" as its deprecated alias. Register
7129 "info auto-load python-scripts". Register "info auto-load-scripts" as
7130 its deprecated alias.
7131 (load_auto_scripts_for_objfile): Rename to ...
7132 (gdbpy_load_auto_scripts_for_objfile): ... here.
7133 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7134 (gdbpy_load_auto_scripts_for_objfile): ... here.
7136 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 auto-load: Move files.
7139 * Makefile.in (SFILES): Add auto-load.c.
7140 (HFILES_NO_SRCDIR): Add auto-load.h.
7141 (COMMON_OBS): Add auto-load.o.
7142 (distclean): Change .gdbinit for gdb-gdb.gdb.
7143 * auto-load.c: New file, with parts from python/py-auto-load.c.
7144 * auto-load.h: New file, with parts from python/python.h.
7145 * configure: Regenerate.
7146 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7147 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7148 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7149 * main.c: Include auto-load.h.
7150 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7151 command.h, observer.h and progspace.h to auto-load.c. Add include
7153 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7154 (struct loaded_script, auto_load_pspace_data)
7155 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7156 (hash_loaded_script_entry, eq_loaded_script_entry)
7157 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7158 (maybe_add_script): Move to auto-load.c.
7159 (source_section_scripts): Change maybe_add_script parameters passing,
7160 use script_not_found_warning_print.
7161 (clear_section_scripts, auto_load_objfile_script)
7162 (auto_load_new_objfile, loaded_script_ptr)
7163 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7164 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7165 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7166 auto_load_new_objfile and info_auto_load_scripts initizations to
7168 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7170 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7173 * charset.c (find_charset_names): Remove variables ix and elt.
7174 Use free_char_ptr_vec.
7175 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7176 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7177 debugdir_end. New variable debugdir_len.
7178 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7179 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7181 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7182 and elt. Use free_char_ptr_vec.
7183 * source.c (add_path): Remove variables argv, arg and argv_index.
7184 New variables dir_vec, back_to, ix and name.
7185 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7186 make_cleanup_freeargv. Remove variable separator. Simplify the code
7187 no longer expecting DIRNAME_SEPARATOR.
7188 (openp): Remove variable p, p1 and len. New variables dir_vec,
7189 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7190 no longer expecting DIRNAME_SEPARATOR.
7191 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7192 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7194 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7195 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7196 (dirnames_to_char_ptr_vec): New functions.
7198 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7201 * source.c (add_path): Remove always true conditional 'p == 0' and
7202 unindent its code block.
7204 2012-04-17 Pedro Alves <palves@redhat.com>
7206 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7207 (FIELD_BITPOS_LVAL): ... this.
7208 (FIELD_BITPOS): New.
7209 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7210 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7211 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7213 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7215 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7216 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7217 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7220 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7222 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7223 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7224 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7225 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7226 * jv-lang.c (java_link_class_type): Likewise, once.
7227 * stabsread.c (read_enum_type): Likewise.
7229 2012-04-16 Yao Qi <yao@codesourcery.com>
7231 * common/agent.c (agent_run_command): Add one more parameter `len'.
7233 * common/agent.h: Update declaration.
7234 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7236 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7238 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7241 * value.c (value_actual_type): New function.
7242 * value.h (value_actual_type): New declaration.
7243 * varobj.c (update_type_if_necessary): New function.
7244 (varobj_create): Call value_actual_type instead of
7246 (install_dynamic_child): distinct changed and type changed MI variable
7248 (update_dynamic_varobj_children): Updated for install_dynamic_child
7249 change. All callers updated.
7250 (varobj_update): Support for MI variable object type change if
7251 the value changed and RTTI is used to determine the type.
7252 (create_child_with_value): Call value_actual_type instead of
7254 (adjust_value_for_child_access): Extended with a new parameter which
7255 specify whether the given value should be casted to enclosing type.
7256 All callers updated.
7258 2012-04-14 Yao Qi <yao@codesourcery.com>
7260 Import gnulib module inttypes from git
7261 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7262 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7263 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7264 gnulib/m4/inttypes-pri.m4
7265 * aclocal.m4, config.in, configure: Regenerated.
7266 * gnulib/Makefile.am: Update.
7267 * gnulib/Makefile.in: Update.
7268 * gnulib/m4/gnulib-cache.m4: Update.
7269 * gnulib/m4/gnulib-comp.m4: Update.
7270 * gnulib/inttypes.in.h: New.
7271 * gnulib/m4/inttypes-pri.m4: New.
7272 * gnulib/m4/inttypes.m4: New.
7274 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7276 * infrun.c (resume): Update PC address to the real PC after
7277 preparing to do displaced stepping.
7279 2012-04-12 Doug Evans <dje@google.com>
7281 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7282 All callers updated.
7284 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7286 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7288 2012-04-12 Doug Evans <dje@google.com>
7290 * dwarf2read.c (create_all_type_units): Renamed from
7291 create_debug_types_hash_table. All callers updated.
7293 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7294 local type_sig to sig_type, type_offset to type_offset_in_tu.
7295 (hash_signatured_type): Renamed from hash_type_signature,
7296 all callers updated.
7297 (eq_signatured_type): Renamed from eq_type_signature,
7298 all callers updated.
7299 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7300 (process_enumeration_scope): Ditto.
7301 (lookup_signatured_type_at_offset): Ditto.
7302 (load_full_type_unit, read_signatured_type): Ditto.
7304 2012-04-12 Yao Qi <yao@codesourcery.com>
7306 * remote.c (async_remote_interrupt): Correct function name in
7308 (async_remote_interrupt_twice): Ditto.
7310 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7312 * source.c (find_and_open_source): Consistently pass resulting
7313 full path through xfullpath.
7315 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7317 Provide more specific displaced-stepping memory error message.
7318 * infrun.c (displaced_step_prepare): New variable status. Call
7319 target_read_memory instead of read_memory, provide more specific
7322 2012-04-11 Tristan Gingold <gingold@adacore.com>
7325 * darwin-nat.c (darwin_execvp): Revert previous patch.
7327 2012-04-11 Tristan Gingold <gingold@adacore.com>
7330 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7333 2012-04-11 Tristan Gingold <gingold@adacore.com>
7335 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7338 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7340 New command 'explore' which helps explore values and types in
7342 * NEWS: Add an entry about the new 'explore' command.
7343 * data-directory/Makefile.in: Add gdb/command/explore.py
7344 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7345 command using the GDB Python API.
7347 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7349 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7350 extension in jump target calculation.
7352 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7354 * mips-tdep.c (mips32_next_pc): Handle JALX.
7356 2012-04-10 Yao Qi <yao@codesourcery.com>
7358 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7360 2012-04-10 Yao Qi <yao@codesourcery.com>
7362 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7363 and gnulib/m4/gnulib-tool.m4.
7365 2012-04-10 Doug Evans <dje@google.com>
7367 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7368 (load_partial_dies): Clarify comment.
7369 (find_partial_die): Support rereading type units.
7370 Clarify CU handling, if we know offset is in CU, don't search for the
7371 containing CU. Add comment regarding memory waste.
7373 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7375 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7376 i386/x32-avx and i386/x32-avx-linux.
7377 (i386/x32-expedite): New.
7378 (i386/x32-linux-expedite): Likewise.
7379 (i386/x32-avx-expedite): Likewise.
7380 (i386/x32-avx-linux-expedite): Likewise.
7381 ($(outdir)/i386/x32.dat): Likewise.
7382 ($(outdir)/i386/x32-linux.dat): Likewise.
7383 ($(outdir)/i386/x32-avx.dat): Likewise.
7384 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7386 * features/i386/x32-avx-linux.xml: New file.
7387 * features/i386/x32-avx.xml: Likewise.
7388 * features/i386/x32-core.xml: Likewise.
7389 * features/i386/x32-linux.xml: Likewise.
7390 * features/i386/x32.xml: Likewise.
7392 * features/i386/x32-avx-linux.c: New. Generated.
7393 * features/i386/x32-avx.c: Likewise.
7394 * features/i386/x32-linux.c: Likewise.
7395 * features/i386/x32.c: Likewise.
7396 * regformats/i386/x32-avx-linux.dat: Likewise.
7397 * regformats/i386/x32-avx.dat: Likewise.
7398 * regformats/i386/x32-linux.dat: Likewise.
7399 * regformats/i386/x32.dat: Likewise.
7401 2012-04-10 Tristan Gingold <gingold@adacore.com>
7403 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7404 code to kill the inferior.
7406 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7408 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7410 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7412 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7413 (yyvsp): New defines.
7414 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7416 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7418 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7420 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7422 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7425 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7427 * sparc64-tdep.c (sparc64_store_arguments)
7428 (sparc64_store_arguments): Fix coding style.
7430 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7432 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7433 complex floats, adjust some related comments and tighten a related
7435 (sparc64_extract_return_value): Handle complex floats.
7437 2012-04-07 Doug Evans <dje@google.com>
7439 * dwarf2read.c (load_partial_dies): Change condition to assert.
7441 2012-04-06 Doug Evans <dje@google.com>
7443 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7446 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7448 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7450 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7451 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7454 2012-04-05 Keith Seitz <keiths@redhat.com>
7456 * linespec.c (decode_compound): Remove.
7457 (enum offset_relative_sign): New enum.
7458 (struct line_offset): New struct.
7459 (struct linespec): New struct.
7460 (struct linespec_state): Move file_symtabs,
7461 user_filename, and user_function into struct linespec.
7462 Make result an anonymous struct holding vectors of
7463 symbolp and minsym_and_objfile_d.
7464 Add language member.
7465 (enum ls_token_type): New enum.
7466 (linespec_keywords): New array.
7467 (struct ls_token): New struct.
7468 (struct ls_parser): New struct.
7469 (linespec_lexer_lex_number): New function.
7470 (linespec_lexer_lex_keyword): New function.
7471 (is_ada_operator): New function.
7472 (skip_quote_char): New function.
7473 (copy_token_string): New function.
7474 (is_closing_quote_enclosed): New function.
7475 (find_parameter_list_end): New function.
7476 (linespec_lexer_lex_string): New function.
7477 (linespec_lexer_lex_one): New function.
7478 (linespec_lexer_consume_token): New function.
7479 (linespec_lexer_peek_token): New function.
7480 (cplusplus_error): Remove unused function.
7481 (find_methods): Update comment.
7482 (find_toplevel_char): Return const.
7483 (is_objc_method_format): Remove unused function.
7484 (find_toplevel_string): New function.
7485 (is_linespec_boundary): Remove.
7486 (symbol_not_found_error): New function.
7487 (find_method_overload_end): Remove function.
7488 (unexpected_linespec_error): New function.
7489 (keep_name_info): Remove.
7490 (linespec_parse_line_offset): New function.
7491 (linespec_parse_basic): New function.
7492 (canonicalize_linespec): New function.
7493 (decode_line_internal): Remove.
7494 (create_sals_line_offset): New function adapted from
7496 (convert_linespec_to_sals): New function.
7497 (parse_linespec): New function.
7498 (linespec_parser_new): New function.
7499 (linespec_state_destructor): Change parameter type to
7500 struct linespec_state *.
7501 Add language parameter.
7502 Remove freeing of moved members.
7503 (linespec_parser_delete): New function.
7504 (decode_line_full): Use parse_linespec and linespec_parser_new.
7505 (decode_line_1): Likewise.
7506 (decode_indirect): Rename to ...
7507 (linespec_expression_to_pc): ... this and rewrite
7508 to simply find CORE_ADDR, storing this result for later
7510 (locate_first_half): Remove.
7511 (deocde_objc): Add parameter LS.
7512 Initialize new struct collect_info members.
7513 Handle minimal symbols, too.
7514 (decode_compound): Delete.
7515 (lookup_prefix_sym): Rewrite.
7516 (compare_msymbols): New function.
7517 (find_method): Rewrite.
7518 Do not call cplusplus_error.
7519 (symtabs_from_filename): Rewrite.
7520 (collect_function_symbols): Delete.
7521 (find_function_symbols): Rewrite without ARGPTR-style
7523 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7524 (decode_dollar): Adapted and renamed to ...
7525 (linespec_parse_variable): ... this.
7526 (find_linespec_symbols): New function.
7527 (decode_label): Adapted and renamed to ...
7528 (find_label_symbols): ... this.
7529 (decode_digits_list_mode): Add and use LS argument.
7530 (decode_digits_ordinary): Likewise.
7531 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7532 If in list mode, allow any symbol class. Otherwise, only
7533 permit LOC_BLOCK symbols.
7534 (minsym_found): Update comments.
7535 (search_minsyms_for_name): Do not convert the matching symbol
7536 into a SAL. Simply push the symbol and objfile into the
7538 (decode_variable): Delete. Contents adapted into
7539 find_linespec_symbols.
7541 * cp-support.c (SKIP_SPACE): Remove.
7542 (operator_tokens): Remove unused global.
7543 (cp_validate_operator): Remove.
7544 * cp-support.h (cp_validate_operator): Remove declaration.
7546 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7548 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7549 for TYPE_VPTR_FIELDNO.
7550 * valprint.c (valprint_check_validity): Make it global, move the
7551 function comment ...
7552 * value.h (valprint_check_validity): ... to this new declaration.
7554 2012-04-02 Tristan Gingold <gingold@adacore.com>
7556 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7557 the STATE32 api for i386 state.
7558 (i386_darwin_store_inferior_registers): Likewise.
7560 2012-04-02 Tristan Gingold <gingold@adacore.com>
7562 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7564 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7567 2012-04-02 Tristan Gingold <gingold@adacore.com>
7570 * darwin-nat.c (darwin_execvp): Set binary preference.
7572 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7574 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7576 2012-03-30 Tom Tromey <tromey@redhat.com>
7578 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7579 of TRY_CATCH. Fix error handling.
7580 * python/py-value.c (convert_value_from_python): Move 'old'
7581 declaration to innermost scope.
7583 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7584 Andrey Smirnov <andrew.smirnov@gmail.com>
7586 -Wshadow warning fix.
7587 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7588 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7589 Adjust code accordingly.
7591 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7593 * ada-lang.c (symbol_completion_add): Rename parameter
7594 "encoded" into "encoded_p". Ajust code and documentation
7597 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7598 Andrey Smirnov <andrew.smirnov@gmail.com>
7600 -Wshadow warning fix.
7601 * ada-lang.c (symbol_completion_add): Rename parameter
7602 "wild_match" into wild_match_p. Update code and documentation
7605 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7607 * ada-lang.c (symbol_completion_match): Rename parameter
7608 "encoded" into "encoded_p". Ajust code and documentation
7611 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7612 Andrey Smirnov <andrew.smirnov@gmail.com>
7614 -Wshadow warning fix.
7615 * ada-lang.c (symbol_completion_match): Rename parameter
7616 "wild_match" into "wild_match_p". Adjust code and function
7617 documentation accordingly.
7619 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7620 Andrey Smirnov <andrew.smirnov@gmail.com>
7622 -Wshadow warning fix.
7623 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7624 "symbol_info" into "info". Adjust code accordingly.
7625 (ada_lookup_symbol): Likewise.
7627 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7629 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7630 of this function's documentation.
7632 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7633 Andrey Smirnov <andrew.smirnov@gmail.com>
7635 -Wshadow warning fix.
7636 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7637 variable into "wild_match_p". Adjust code accordingly.
7639 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7640 Andrey Smirnov <andrew.smirnov@gmail.com>
7642 -Wshadow warning fix.
7643 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7644 parameter into "wild_match_p". Adjust code accordingly.
7645 Document this parameter in the function description.
7647 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7648 Andrey Smirnov <andrew.smirnov@gmail.com>
7650 -Wshadow warning fix.
7651 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7652 "wild_match" parameter to "wild_match_p" (-Wshadow).
7654 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7656 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7657 in function documentation.
7659 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7660 Andrey Smirnov <andrew.smirnov@gmail.com>
7662 -Wshadow warning fix.
7663 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7664 variable into wild_match_p. Adjust code accordingly.
7666 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7667 Andrey Smirnov <andrew.smirnov@gmail.com>
7669 * ada-valprint.c (ada_val_print_1): Move the code handling
7670 TYPE_CODE_ENUM inside its own lexical block. Declare
7671 variables len and val there, instead of in the function's
7672 top level block. Avoid declaring deref_val again in a way
7673 that shadows another variable of the same name declared
7674 in one of the up-level blocks. Just re-use the up-level
7677 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7679 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7680 Replace block_found argument by symbol_info. Adjust
7681 implementation accordingly. Add function documentation.
7682 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7684 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7685 * ada-exp.y (write_object_renaming): Adjust to new
7686 ada_lookup_encoded_symbol API.
7688 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7690 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7693 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7695 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7696 (v850_register_name): Add the mpu and fpu register names.
7697 (v850e_register_name): Add the mpu and fpu register names.
7698 (v850e2_register_name): New function.
7699 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7702 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7704 * NEWS: Add entry for Ada varobj support.
7706 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7708 * varobj.c (default_value_is_changeable_p): New function,
7709 extracted from varobj_value_is_changeable_p. Add declaration.
7710 (ada_value_is_changeable_p): New function, extracted from
7711 varobj_value_is_changeable_p. Add declaration.
7712 (struct language_specific): New field "value_is_changeable_p".
7713 (languages): Add entries for new field.
7714 (varobj_create): Set language before calling install_new_value.
7715 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7716 "value_is_changeable_p" language callback.
7718 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7720 * ada-varobj.h, ada-varobj.c: New files.
7721 * Makefile.in (SFILES): Add ada-varobj.c.
7722 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7723 (COMMON_OBS): Add ada-varobj.o.
7725 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7727 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7728 (struct language_specific): New field "value_has_mutated".
7729 (languages): Set field "value_has_mutated" in each entry of array.
7730 (varobj_value_has_mutated): New function.
7731 (varobj_udpdate): Add handling of type mutation.
7732 (value_of_root): Add handling of type mutation.
7733 (ada_value_has_mutated): New function.
7735 2012-03-28 Pedro Alves <palves@redhat.com>
7737 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7738 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7740 2012-03-28 Tom Tromey <tromey@redhat.com>
7742 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7743 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7746 2012-03-28 Tom Tromey <tromey@redhat.com>
7748 * .dir-locals.el: New file.
7750 2012-03-28 Pedro Alves <palves@redhat.com>
7752 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7754 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7756 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7759 2012-03-27 Pedro Alves <palves@redhat.com>
7761 Eliminate struct ui_stream.
7763 * ui-out.h (struct ui_stream): Delete.
7764 (ui_out_field_stream): Adjust prototype.
7765 (ui_out_stream_new, ui_out_stream_delete)
7766 (make_cleanup_ui_out_stream_delete): Delete declarations.
7767 * ui-out.c (ui_out_field_stream): Change prototype to take a
7768 ui_file instead of a ui_stream. Adjust.
7769 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7770 (make_cleanup_ui_out_stream_delete): Delete.
7771 * breakpoint.c (print_breakpoint_location)
7772 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7773 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7774 * disasm.c (dump_insns): Ditto.
7775 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7777 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7778 ui_stream/ui_out_stream_new.
7779 * infcmd.c (print_return_value): Ditto.
7780 * osdata.c (info_osdata_command): Don't allocate a local
7782 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7783 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7784 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7785 allocate a local ui_stream.
7786 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7787 instead of ui_stream/ui_out_stream_new.
7788 (list_args_or_locals): Don't allocate a local ui_stream.
7789 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7790 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7791 ui_stream/ui_out_stream_new.
7792 * cli/cli-setshow.c (do_setshow_command): Ditto.
7794 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7796 * arm-linux-tdep.c (arm_linux_init_abi): Call
7797 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7798 * arm-tdep.c (arm_process_record): New function.
7799 (deallocate_reg_mem): New function.
7800 (decode_insn): New function.
7801 (thumb_record_branch): New function.
7802 (thumb_record_ldm_stm_swi(): New function.
7803 (thumb_record_misc): New function.
7804 (thumb_record_ld_st_stack): New function.
7805 (thumb_record_ld_st_imm_offset): New function.
7806 (thumb_record_ld_st_reg_offset(): New function.
7807 (thumb_record_add_sub_cmp_mov): New function.
7808 (thumb_record_shift_add_sub): New function.
7809 (arm_record_coproc_data_proc): New function.
7810 (arm_record_coproc): New function.
7811 (arm_record_b_bl): New function.
7812 (arm_record_ld_st_multiple): New function.
7813 (arm_record_ld_st_reg_offset): New function.
7814 (arm_record_ld_st_imm_offset): New function.
7815 (arm_record_data_proc_imm): New function.
7816 (arm_record_data_proc_misc_ld_str): New function.
7817 (arm_record_extension_space): New function.
7818 (arm_record_strx): New function.
7819 (sbo_sbz): New function.
7820 (struct insn_decode_record): New structure for arm insn record.
7821 (REG_ALLOC): New macro for reg allocations.
7822 (MEM_ALLOC): New macro for memory allocations.
7823 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7825 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7827 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7828 (store_register): Likewise.
7830 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7832 * MAINTAINERS (Write After Approval): Add myself to the list.
7834 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7836 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7837 Describe also the option "auto".
7839 2012-03-22 Richard Henderson <rth@redhat.com>
7841 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7842 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7844 2012-03-22 Richard Henderson <rth@redhat.com>
7846 * jit.c (jit_read_code_entry): Compute alignment and offset of
7847 int64_t member before computing entry_size.
7849 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7851 Python scripting: Add new method Value.referenced_value to
7852 gdb.Value which can dereference pointer as well as reference
7854 * NEWS: Add entry under 'Python scripting' about the new method
7855 Value.referenced_value on gdb.Value objects.
7856 * python/py-value.c (valpy_referenced_value): New function
7857 defining a new method on gdb.Value objects which can dereference
7858 pointer and reference values.
7860 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7862 * MAINTAINERS (Write After Approval): Add myself to the list.
7864 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7866 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7867 in addition to "main".
7869 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7871 * expression.h (op_name): Add declaration.
7872 * expprint.c (op_name): Remove declaration. Make non-static.
7873 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7875 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7877 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7879 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7880 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7881 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7882 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7883 (linux_nat_get_siginfo): Likewise.
7884 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7885 (linux_nat_get_siginfo): Likewise.
7886 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7887 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7888 * procfs.c (gdb_siginfo_t): Likewise.
7890 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7892 * .gitignore: Ignore more files.
7894 2012-03-20 Pedro Alves <palves@redhat.com>
7896 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7899 2012-03-20 Yao Qi <yao@codesourcery.com>
7901 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7904 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7906 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7907 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7908 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7910 * dwarf2expr.h (cu_offset, sect_offset): New types.
7911 (struct dwarf_expr_context_funcs) <dwarf_call>
7912 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7914 (struct dwarf_expr_context) <len>: Improve the comment.
7915 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7916 cu_offset and sect_offset.
7917 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7918 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7919 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7920 * dwarf2loc.h: Include dwarf2expr.h.
7921 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7923 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7924 Improve the comment.
7925 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7926 (struct signatured_type, struct line_header, struct partial_die_info)
7927 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7928 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7929 (get_die_type_at_offset, create_cus_from_index)
7930 (create_signatured_type_table_from_index, dw2_get_file_names)
7931 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7932 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7933 (create_debug_types_hash_table, process_psymtab_comp_unit)
7934 (load_partial_comp_unit, create_all_comp_units)
7935 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7936 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7937 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7938 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7939 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7940 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7941 (find_partial_die, read_attribute_value, lookup_die_type)
7942 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7943 (is_ref_attr): New function comment.
7944 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7945 Use cu_offset and sect_offset.
7946 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7947 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7948 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7949 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7950 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7951 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7952 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7955 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7958 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7959 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7961 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7963 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7965 * NEWS: Describe new options --init-command=FILE, -ix and
7966 --init-eval-command=COMMAND, -iex.
7967 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7968 CMDARG_INIT_COMMAND.
7969 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7970 "init-command", "init-eval-command", "ix" and "iex" to the variable
7971 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7972 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7973 (print_gdb_help): Describe --init-command=FILE, -ix and
7974 --init-eval-command=COMMAND, -iex.
7976 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7979 * main.c (struct cmdarg): Move it here from main. Add more comments.
7980 (cmdarg_s, VEC (cmdarg_s)): New.
7981 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7982 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7983 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7984 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7987 2012-03-19 Tom Tromey <tromey@redhat.com>
7989 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7991 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7994 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7997 2012-03-16 Chris January <chris.january@allinea.com>
7999 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8002 2012-03-16 Chris January <chris.january@allinea.com>
8004 * source.c (add_path): Use memmove instead of strcpy because the
8007 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8009 * value.h (set_value_parent): Add declaration.
8010 * value.c (set_value_parent): New function.
8011 (value_address): If VALUE->PARENT is not NULL, then use it as
8012 the base address instead of VALUE->LOCATION.address.
8013 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8014 the same as OBJ's address. Adjust V's offset accordingly.
8017 2012-03-16 Gary Benson <gbenson@redhat.com>
8019 PR breakpoints/10738
8020 * dwarf2read.c (use_deprecated_index_sections): New global.
8021 (struct partial_die_info): New member may_be_inlined.
8022 (read_partial_die): Set may_be_inlined where appropriate.
8023 (add_partial_subprogram): Add partial symbols for partial
8024 DIEs that may be inlined.
8025 (new_symbol_full): Add inlined subroutines to the current
8027 (write_psymtabs_to_index): Bump version number.
8028 (dwarf2_read_index): Read only version 6 indices unless
8029 use_deprecated_index_sections is set.
8030 * linespec.c (symbol_and_data_callback): New structure.
8031 (iterate_inline_only): New function.
8032 (iterate_over_all_matching_symtabs): New argument
8033 "include_inline". If nonzero, also call the callback for
8034 symbols representing inlined subroutines.
8035 (lookup_prefix_sym): Pass extra argument to the above.
8036 (find_function_symbols): Likewise.
8037 (add_matching_symbols_to_info): Likewise.
8038 * NEWS: Mention that GDB can now set breakpoints on inlined
8041 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8043 * p-typeprint.c (pascal_type_print_method_args):
8044 Fix display of parameter of methods.
8046 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8048 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8049 Add missing prototype.
8051 2012-03-16 Yao Qi <yao@codesourcery.com>
8052 Jan Kratochvil <jan.kratochvil@redhat.com>
8054 Fix false compilation warning.
8055 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8057 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8058 Pedro Alves <pedro@codesourcery.com>
8060 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8061 (arm_register_g_packet_guesses): New function.
8062 (arm_gdbarch_init): Don't force a target description with
8063 registers when the executable is detected as M-profile. Instead
8064 set gdbarch->tdep->is_m. Register `g' packet guesses.
8065 (_initialize_arm_tdep): Initialize the new target description.
8066 * features/arm-with-m-fpa-layout.xml: New description.
8067 * features/arm-with-m-fpa-layout.c: New, generated.
8069 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8071 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8072 Update function description.
8073 (insert_bp_location): Do not wipe bl->target_info out.
8074 * mem-break.c: #include "gdb_string.h".
8075 (default_memory_insert_breakpoint): Do not call target_read_memory
8076 with a pointer to the breakpoint's shadow_contents buffer. Use
8077 a local buffer instead.
8078 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8080 2012-03-15 Tom Tromey <tromey@redhat.com>
8082 * NEWS: Mention "info vtbl", not "info vtable".
8083 * cp-support.c (info_vtbl_command): Fix comment.
8084 (_initialize_cp_support): Fix text.
8086 2012-03-15 Tom Tromey <tromey@redhat.com>
8088 * cp-valprint.c (cp_print_value_fields): Use
8089 print_function_pointer_address for vtable slot.
8091 2012-03-15 Tom Tromey <tromey@redhat.com>
8093 * gnu-v3-abi.c (struct value_and_voffset): New.
8094 (hash_value_and_voffset, eq_value_and_voffset)
8095 (compare_value_and_voffset, compute_vtable_size)
8096 (print_one_vtable, gnuv3_print_vtable): New functions.
8097 (init_gnuv3_ops): Initialize 'print_vtable' field.
8098 * cp-support.c (info_vtbl_command): New function.
8099 (_initialize_cp_support): Add "info vtbl".
8100 * cp-abi.h (cplus_print_vtable): Declare.
8101 (struct cp_abi_ops) <print_vtable>: New field.
8102 * cp-abi.c (cplus_print_vtable): New function.
8105 2012-03-15 Tom Tromey <tromey@redhat.com>
8107 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8108 iterate_over_symbols.
8110 2012-03-14 Doug Evans <dje@google.com>
8112 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8113 DW_OP_GNU_parameter_ref.
8115 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8117 Fix double prompt of 'interpreter-exec mi'.
8118 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8119 (mi_interpreter_resume): use it.
8120 (mi_execute_command_input_handler): New function.
8121 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8122 mi_execute_command_input_handler.
8124 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8126 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8128 (darwin_debug_port_info): Make static.
8129 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8130 * machoread.c (_initialize_machoread): Add prototype.
8131 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8132 (i386_darwin_set_control, i386_darwin_get_control)
8133 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8134 i386_darwin_get_status, i386_darwin_get_control):
8135 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8137 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8139 * ax-gdb.c (gen_usual_unary): Remove special handling of
8140 enum and bool types.
8142 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8144 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8146 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8148 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8150 2012-03-13 Chris January <chris.january@allinea.com>
8152 * aix-thread.c (fill_sprs): Store the floating point registers
8153 at the correct offsets into vals.
8155 2012-03-13 Doug Evans <dje@google.com>
8157 * NEWS: Mention symbol-reloading has been deleted.
8158 * symfile.c (symbol_reloading): Delete.
8159 (show_symbol_reloading): Delete.
8160 (_initialize_symfile): Delete set/show symbol-reloading.
8162 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8163 read_in_chain until we have successfully read it in.
8164 (load_full_comp_unit): Ditto.
8165 (read_signatured_type): Add comment.
8167 2012-03-13 Chris January <chris.january@allinea.com>
8169 * stabsread.c (fix_common_block): Change type of valu argument
8172 2012-03-13 Chris January <chris.january@allinea.com>
8174 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8177 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8179 * common/linux-procfs.c (linux_proc_get_int): New, from
8180 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8182 (linux_proc_get_tgid): Only call linux_proc_get_int.
8183 (linux_proc_get_tracerpid): New.
8184 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8185 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8186 linux_proc_pid_has_state.
8187 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8188 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8189 (linux_ptrace_attach_warnings): New.
8190 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8192 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8193 (linux_nat_attach): New variables ex, buffer, message and message_s.
8194 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8196 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8198 * Makefile.in (linux-ptrace.o): New.
8199 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8201 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8202 * common/linux-ptrace.c: New file.
8203 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8204 * config/arm/linux.mh: Likewise.
8205 * config/i386/linux.mh: Likewise.
8206 * config/i386/linux64.mh: Likewise.
8207 * config/ia64/linux.mh: Likewise.
8208 * config/m32r/linux.mh: Likewise.
8209 * config/m68k/linux.mh: Likewise.
8210 * config/mips/linux.mh: Likewise.
8211 * config/pa/linux.mh: Likewise.
8212 * config/powerpc/linux.mh: Likewise.
8213 * config/powerpc/ppc64-linux.mh: Likewise.
8214 * config/powerpc/spu-linux.mh: Likewise.
8215 * config/s390/s390.mh: Likewise.
8216 * config/sparc/linux.mh: Likewise.
8217 * config/sparc/linux64.mh: Likewise.
8218 * config/xtensa/linux.mh: Likewise.
8219 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8220 common/linux-procfs.c.
8221 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8223 2012-03-13 Hui Zhu <teawater@gmail.com>
8224 Pedro Alves <palves@redhat.com>
8226 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8227 CREATE_BREAKPOINT_FLAGS_INSERTED.
8228 (create_breakpoint_sal, create_breakpoints_sal)
8229 (base_breakpoint_create_breakpoints_sal)
8230 (tracepoint_create_breakpoints_sal)
8231 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8233 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8234 (ftrace_command, strace_command): Adjust.
8235 (create_tracepoint_from_upload): Pass
8236 CREATE_BREAKPOINT_FLAGS_INSERTED.
8237 * breakpoint.h (enum breakpoint_create_flags): New.
8238 (create_breakpoint): New flags parameter.
8239 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8240 * python/py-breakpoint.c (bppy_init): Adjust.
8241 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8242 * spu-tdep.c (spu_catch_start): Adjust.
8244 2012-03-13 Pedro Alves <palves@redhat.com>
8245 Hui Zhu <teawater@gmail.com>
8246 Yao Qi <yao@codesourcery.com>
8248 * remote.c (struct remote_state): New field `starting_up'.
8249 (remote_start_remote): Set and clear it.
8250 (remote_can_download_tracepoint): If starting up, return false.
8252 2012-03-13 Yao Qi <yao@codesourcery.com>
8254 * inferior.h (struct inferior): Remove fields any_syscall_count,
8255 syscalls_counts and total_syscalls_count. Move them to new
8256 struct catch_syscall_inferior_data in breakpoint.c.
8257 * breakpoint.c: Call DEF_VEC_I(int).
8258 (struct catch_syscall_inferior_data): New.
8259 (get_catch_syscall_inferior_data): New.
8260 (catch_syscall_inferior_data_cleanup): New.
8261 (insert_catch_syscall): Update to access data in
8262 struct catch_syscall_inferior_data.
8263 (insert_catch_syscall): Likewise.
8264 (remove_catch_syscall): Likewise.
8265 (remove_catch_syscall): Likewise.
8266 (is_syscall_catchpoint_enabled): Likewise.
8267 (add_catch_command): Likewise.
8268 (_initialize_breakpoint): Register cleanup.
8269 * breakpoint.h: Removed DEF_VEC_I(int).
8270 * dwarf2loc.c: Call DEF_VEC_I(int).
8271 * mi/mi-main.c: Likewise.
8273 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8275 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8277 2012-03-12 Chris January <chris.january@allinea.com>
8279 * aix-thread.c (_initialize_aix_thread): Add prototype.
8280 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8281 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8283 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8285 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8286 include of "amd64-nat.h".
8288 2012-03-12 Tom Tromey <tromey@redhat.com>
8290 * buildsym.c (record_pending_block): Now static.
8291 * buildsym.h: (record_pending_block): Remove.
8293 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8295 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8297 2012-03-09 Tom Tromey <tromey@redhat.com>
8299 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8300 producer_is_gxx_lt_4_6>: New fields.
8301 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8303 2012-03-09 Tom Tromey <tromey@redhat.com>
8305 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8307 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8309 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8312 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8314 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8316 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8318 Fix -Wmissing-prototypes build.
8319 * arm-linux-nat.c (get_thread_id): Make it static.
8320 * xtensa-linux-nat.c (get_thread_id): Likewise.
8322 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8324 * server.c (process_point_options): If a conditional expression
8325 is found, only print a message if remote_debug is nonzero.
8327 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8329 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8330 of internal error for unknown/unsupported types.
8332 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8334 Fix CU relative vs. absolute DIE offsets.
8335 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8336 offset to offset_in_cu.
8337 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8339 (dwarf2_fetch_die_location_block): Rename parameter offset to
8340 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8342 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8344 * libunwind-frame.c: Rename to ...
8345 * ia64-libunwind-tdep.c: ... here.
8346 * libunwind-frame.h: Rename to ...
8347 * ia64-libunwind-tdep.h: ... here.
8348 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8349 ia64-libunwind-tdep.h.
8350 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8351 * README (--with-libunwind): Rename to ...
8352 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8353 * config.in: Regenerate.
8354 * configure: Regenerate.
8355 * configure.ac: New option --with-libunwind-ia64, make the
8356 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8357 Remove AC_DEFINE for HAVE_LIBUNWIND.
8358 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8359 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8360 Rename libunwind-frame in the general comment.
8361 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8362 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8363 Move forward declarations inside #ifndef. Rename libunwind-frame in
8364 the general comment.
8365 * ia64-tdep.c: Rename libunwind-frame.h #include to
8366 ia64-libunwind-tdep.h.
8367 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8368 (ia64_libunwind_descr): Rename libunwind-frame to
8369 ia64-libunwind-tdep in these function comments.
8370 * ia64-tdep.h: Rename libunwind-frame.h #include to
8371 ia64-libunwind-tdep.h.
8372 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8373 ia64-libunwind-tdep in that data comment.
8375 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8377 * libunwind-frame.h (struct frame_unwind): New declaration.
8379 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8381 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8382 "set breakpoint condition-evaluation" command.
8384 2012-03-08 Tristan Gingold <gingold@adacore.com>
8386 * sparc-stub.c: Move to stubs/
8387 * sh-stub.c: Likewise.
8388 * m68k-stub.c: Likewise.
8389 * m32r-stub.c: Likewise.
8390 * i386-stub.c: Likewise.
8392 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8394 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8395 linux_get_siginfo_type.
8397 * m68klinux-nat.c: Include "gdb_proc_service.h".
8398 (PTRACE_GET_THREAD_AREA): Define.
8399 (ps_get_thread_area): New function.
8401 2012-03-08 Yao Qi <yao@codesourcery.com>
8403 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8405 (remote_query_attached): Likewise.
8406 (remote_static_tracepoint_marker_at): Likewise.
8407 (remote_set_permissions): Likewise.
8408 (remote_detach_1, extended_remote_attach_1): Likewise.
8409 (send_g_packet, remote_vkill): Likewise.
8410 (extended_remote_disable_randomization): Likewise.
8411 (remote_add_target_side_condition): Likewise.
8412 (remote_insert_breakpoint): Likewise.
8413 (remote_remove_breakpoint): Likewise.
8414 (remote_insert_watchpoint): Likewise.
8415 (remote_remove_watchpoint): Likewise.
8416 (remote_insert_hw_breakpoint): Likewise.
8417 (remote_insert_hw_breakpoint): Likewise.
8418 (remote_remove_hw_breakpoint): Likewise.
8419 (remote_download_command_source): Likewise.
8420 (remote_download_tracepoint): Likewise.
8421 (remote_download_trace_state_variable): Likewise.
8422 (remote_disable_tracepoint): Likewise.
8423 (remote_trace_set_readonly_regions): Likewise.
8424 (remote_get_tracepoint_status): Likewise.
8425 (remote_trace_find): Likewise.
8426 (remote_get_trace_state_variable_value): Likewise.
8427 (remote_set_disconnected_tracing): Likewise.
8428 (remote_set_circular_trace_buffer): Likewise.
8429 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8430 (remote_use_agent): Likewise.
8431 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8434 2012-03-07 Pedro Alves <palves@redhat.com>
8436 * NEWS: Mention QProgramSignals.
8437 * inferior.h (update_signals_program_target): Declare.
8438 * infrun.c: (update_signals_program_target): New.
8439 (handle_command): Update the target of the new program signals
8441 * remote.c (PACKET_QProgramSignals): New enum.
8442 (last_program_signals_packet): New global.
8443 (remote_program_signals): New.
8444 (remote_start_remote): Update the target with the program signals
8446 (remote_protocol_features): Add entry for QPassSignals.
8447 (remote_open_1): Free anc clear last_program_signals_packet.
8448 (init_remote_ops): Install remote_program_signals.
8449 * target.c (update_current_target): Adjust.
8450 (target_program_signals): New.
8451 * target.h (struct target_ops) <to_program_signals>: New field.
8452 (target_program_signals): Declare.
8454 2012-03-07 Pedro Alves <palves@redhat.com>
8456 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8459 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8461 * m68klinux-nat.c (getregs_supplies): Make static.
8462 (getfpregs_supplies): Likewise.
8463 (have_ptrace_getregs): Likewise.
8465 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8467 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8468 in call to get_die_type_at_offset.
8470 2012-03-06 Stan Shebs <stan@codesourcery.com>
8472 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8473 * mi/mi-cmd-disas.c: Ditto.
8474 * mi/mi-cmd-env.c: Ditto.
8475 * mi/mi-cmd-file.c: Ditto.
8476 * mi/mi-cmd-stack.c: Ditto.
8477 * mi/mi-cmd-target.c: Ditto.
8478 * mi/mi-cmd-var.c: Ditto.
8479 * mi/mi-cmds.c: Ditto.
8480 * mi/mi-cmds.h: Ditto.
8481 * mi/mi-console.c: Ditto.
8482 * mi/mi-getopt.c: Ditto.
8483 * mi/mi-getopt.h: Ditto.
8484 * mi/mi-interp.c: Ditto.
8485 * mi/mi-main.c: Ditto.
8486 * mi/mi-out.c: Ditto.
8487 * mi/mi-parse.c: Ditto.
8488 * mi/mi-parse.h: Ditto.
8489 * mi/mi-symbol-cmds.c: Ditto.
8491 * mi/mi-getopt.h: Move mi_opt struct up.
8492 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8494 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8496 2012-03-06 Tom Tromey <tromey@redhat.com>
8498 * proc-service.c (ps_pglobal_lookup): Set the current program
8501 2012-03-06 Pedro Alves <palves@redhat.com>
8503 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8505 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8507 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8509 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8512 * common/linux-osdata.c (linux_common_core_of_thread): New function
8514 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8515 call by linux_common_core_of_thread.
8516 (linux_nat_core_of_thread_1): Remove.
8517 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8518 * linux-thread-db.c: Include linux-osdata.h.
8519 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8520 linux_common_core_of_thread.
8522 2012-03-05 Tom Tromey <tromey@redhat.com>
8524 * value.c (value_primitive_field): Don't fetch contents for
8527 2012-03-05 Tom Tromey <tromey@redhat.com>
8529 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8531 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8533 * s390-nat.c: Include "gregset.h".
8535 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8537 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8538 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8539 (libunwind_load): New variable so_error, use it for dlerror. Try to
8540 load also LIBUNWIND_SO_7.
8542 2012-03-05 Pedro Alves <palves@redhat.com>
8544 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8545 is not NULL, and remove resulting dead code.
8547 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8549 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8550 prologue to sh_analyze_prologue.
8551 (sh_analyze_prologue): Make better use of such an upper limit, and
8552 generally be more cautious about accessing memory.
8554 2012-03-05 Tom Tromey <tromey@redhat.com>
8556 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8557 _initialize_ia64_hpux_tdep.
8559 2012-03-05 Pedro Alves <palves@redhat.com>
8563 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8564 the register state is clear, supply explicit zero, instead of
8565 marking the register unavailable.
8567 2012-03-05 Tristan Gingold <gingold@adacore.com>
8569 * NEWS: Mention OpenVMS ia64 new target.
8571 2012-03-05 Tristan Gingold <gingold@adacore.com>
8573 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8574 (ia64_unw_accessors, ia64_unw_rse_accessors)
8575 (ia64_libunwind_descr): Declare.
8576 * ia64-vms-tdep.c: New file.
8577 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8578 (ia64_libunwind_descr): Make them public.
8579 * configure.tgt: Add ia64-*-*vms*.
8580 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8581 (ALLDEPFILES): Add ia64-vms-tdep.c
8583 2012-03-05 Tristan Gingold <gingold@adacore.com>
8585 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8586 * remote.c (PACKET_qXfer_uib): New enum value.
8587 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8588 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8589 (_initialize_remote): Call add_packet_config_cmd for
8592 2012-03-05 Tristan Gingold <gingold@adacore.com>
8594 * osabi.c (gdb_osabi_names): Add OpenVMS.
8595 (generic_elf_osabi_sniffer): Likewise.
8596 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8598 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8600 Removed unused code.
8601 * libunwind-frame.c (libunwind_frame_unwind)
8602 (libunwind_frame_base_address): Remove.
8603 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8605 2012-03-04 Yao Qi <yao@codesourcery.com>
8607 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8608 remove trailing new line.
8609 (agent_run_command, agent_run_command): Add _ markup.
8610 (agent_capability_check): Likewise.
8612 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8614 * breakpoint.c (set_condition_evaluation_mode): Set
8615 CONDITION_EVALUATION_MODE unconditionally.
8617 2012-03-03 Yao Qi <yao@codesourcery.com>
8619 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8620 * common/agent.h: Update declaration.
8621 * inf-child.c (inf_child_use_agent): New.
8622 (inf_child_can_use_agent): New.
8623 (inf_child_target): Initialize fields `to_use_agent'
8624 and `to_can_use_agent'.
8625 * agent.c (agent_new_objfile): New.
8626 (_initialize_agent): Add agent_new_objfile to new_objfile
8629 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8631 (linux_target_install_ops): Initialize field
8632 `to_static_tracepoint_markers_by_strid'.
8633 * remote.c (free_current_marker): Move it to ...
8634 * tracepoint.c (free_current_marker): ... here. New.
8635 (cleanup_target_stop): New.
8636 * tracepoint.h: Declare free_current_marker.
8637 * NEWS: Add one entry about `info static-tracepoint-marker'.
8639 2012-03-03 Yao Qi <yao@codesourcery.com>
8641 * common/agent.c (agent_loaded_p): New.
8642 (agent_look_up_symbols): New global.
8643 * common/agent.h: Declare agent_loaded_p.
8645 2012-03-03 Yao Qi <yao@codesourcery.com>
8647 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8648 (agent_capability_check, agent_capability_invalidate): New.
8649 (symbol_list): New array element.
8650 * common/agent.h (enum agent_capa): New.
8651 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8653 2012-03-03 Yao Qi <yao@codesourcery.com>
8655 * target.h (struct target_ops) <to_use_agent>: New field.
8656 (struct target_ops) <to_can_use_agent>: New field.
8657 (target_use_agent, target_can_use_agent): New macro.
8658 * target.c (update_current_target): Update.
8659 * remote.c: New enum `PACKET_QAgent'.
8660 (remote_protocol_features): Add a new element.
8661 (remote_use_agent, remote_can_use_agent): New.
8662 (init_remote_ops): Initialize field `can_use_agent' with
8663 remote_can_use_agent. Intiailize field `use_agent' with
8665 * common/agent.c (use_agent): New global.
8666 * common/agent.h: Declare it.
8667 * tracepoint.c (info_static_tracepoint_markers_command): Add
8669 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8670 (COMMON_OBS): Add common/agent.o and agent.o
8671 (common-agent.o): New rule.
8674 2012-03-03 Yao Qi <yao@codesourcery.com>
8676 * common/agent.c: New.
8677 * common/agent.h: New.
8678 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8680 * configure, configh.in: Regenerated.
8682 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8684 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8685 unless it exists for this architecture.
8687 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8689 * language.h (struct language_defn): New "method" la_read_var_value.
8690 * findvar.c: #include "language.h".
8691 (default_read_var_value): Renames read_var_value. Rewrite
8692 function description.
8693 (read_var_value): New function.
8694 * value.h (default_read_var_value): Add prototype.
8695 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8697 (ada_language_defn): Add entry for la_read_var_value.
8698 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8699 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8700 language_defn structures to add entry for new la_read_var_value
8703 2012-03-02 Tom Tromey <tromey@redhat.com>
8704 Pedro Alves <palves@redhat.com>
8706 PR breakpoints/13776:
8707 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8709 (delete_longjmp_breakpoint_at_next_stop): New.
8710 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8711 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8712 before deleting the inferior. Add comments.
8713 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8714 breakpoints immediately, but only on next stop. Move that code
8715 next to where we mark other breakpoints for deletion.
8717 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8719 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8721 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8724 2012-03-02 Pedro Alves <palves@redhat.com>
8726 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8728 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8730 Fix -Wmissing-prototypes build.
8731 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8732 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8733 (gdbsim_has_memory): Likewise.
8735 2012-03-02 Yao Qi <yao@codesourcery.com>
8737 Fix -Wmissing-prototypes build.
8738 * charset.c (phony_iconv_open): Make static.
8739 (phony_iconv_close, phony_iconv): Likewise.
8740 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8741 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8743 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8744 * ser-mingw.c (create_select_thread): Make static.
8745 * windows-termcap.c (tgetent): New prototype.
8746 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8748 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8750 Fix -Wmissing-prototypes build.
8751 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8752 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8753 (_initialize_loadable): New prototypes.
8755 2012-03-02 Doug Evans <dje@google.com>
8757 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8758 abbrev table, read_comp_unit will do it.
8760 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8762 Fix -Wmissing-prototypes build.
8763 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8764 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8765 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8766 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8767 (_initialize_arm_symbian_tdep): New prototype.
8768 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8769 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8772 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8773 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8775 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8776 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8777 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8779 * moxie-tdep.c (moxie_process_record): Likewise.
8780 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8781 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8782 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8783 (_initialize_rl78_tdep): New prototype.
8784 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8785 (_initialize_rx_tdep): New prototype.
8786 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8787 (_initialize_darwin_solib): New prototype.
8788 * solib-spu.c: Include solib-spu.h.
8789 (_initialize_spu_solib): New prototype.
8790 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8791 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8792 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8793 (tic6x_software_single_step): Make it static.
8794 (_initialize_tic6x_tdep): New prototype.
8796 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8798 Fix -Wmissing-prototypes build.
8799 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8800 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8802 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8804 Fix -Wmissing-prototypes build.
8805 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8806 (frv_have_stopped_data_address): Remove.
8808 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8810 Fix -Wmissing-prototypes build.
8811 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8812 * sh-tdep.c: Include sh64-tdep.h.
8813 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8814 * sh64-tdep.c: Include sh64-tdep.h.
8815 * sh64-tdep.h: New file.
8817 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8819 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8821 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8823 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8824 sp_regnum once the gdbarch_init_osabi hook has been called.
8826 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8828 * mips-tdep.c (mips32_bc1_pc): New function.
8829 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8830 BPOSGE32 and BPOSGE64 instructions.
8831 (deal_with_atomic_sequence): Likewise.
8832 (mips32_instruction_has_delay_slot): Likewise.
8834 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8835 Chris Dearman <chris@mips.com>
8836 Maciej W. Rozycki <macro@codesourcery.com>
8837 Joseph Myers <joseph@codesourcery.com>
8839 * features/mips-dsp.xml: New file.
8840 * features/mips64-dsp.xml: New file.
8841 * features/mips-dsp-linux.xml: New file.
8842 * features/mips64-dsp-linux.xml: New file.
8843 * features/Makefile (WHICH): Add mips-dsp-linux and
8845 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8846 * features/mips-dsp-linux.c: New file.
8847 * features/mips64-dsp-linux.c: New file.
8848 * regformats/mips-dsp-linux.dat: New file.
8849 * regformats/mips64-dsp-linux.dat: New file.
8850 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8852 (mips64_linux_register_addr): Likewise.
8853 (mips64_linux_regsets_fetch_registers): Likewise.
8854 (mips64_linux_regsets_store_registers): Likewise.
8855 (mips64_linux_fetch_registers): Update call to
8856 mips64_linux_regsets_fetch_registers.
8857 (mips64_linux_store_registers): Update call to
8858 mips64_linux_regsets_store_registers.
8859 (mips_linux_read_description): Probe for DSP registers.
8860 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8861 and initialize_tdesc_mips64_dsp_linux.
8862 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8863 Remove padding of no longer used embedded register slots.
8864 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8865 (MIPS_RESTART_REGNUM): Redefine enum value.
8866 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8868 (mips_tx39_reg_names): Likewise.
8869 (mips_linux_reg_names): New array of register names for Linux
8871 (mips_register_name): Check for a null pointer in
8872 mips_processor_reg_names and return an empty string.
8873 (mips_register_type): Exclude embedded registers for the IRIX
8875 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8876 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8878 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8879 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8880 (mips_gdbarch_init): Likewise. Initialize internal register
8881 indices for the Linux ABI. Use dynamic numbers to refer to
8882 registers, as applicable, while parsing the target description.
8883 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8885 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8887 * frame.h (read_frame_register_unsigned): Fix typo in function
8890 2012-03-01 Pedro Alves <palves@redhat.com>
8892 * jit-reader.in [!__cplusplus]
8893 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8895 2012-03-01 Pedro Alves <palves@redhat.com>
8897 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8898 * configure: Regenerate.
8900 2012-03-01 Pedro Alves <palves@redhat.com>
8902 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8903 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8904 (ftrace_command, strace_command): Make static.
8905 * d-lang.c (_initialize_d_language): Declare.
8906 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8907 * dwarf2loc.c (_initialize_dwarf2loc):
8908 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8909 * exec.c (exec_get_section_table): Make static.
8910 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8911 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8912 * inferior.c (remove_inferior_command, add_inferior_command)
8913 (clone_inferior_command): Make static.
8914 * linux-nat.c (linux_nat_thread_address_space)
8915 (linux_nat_core_of_thread): Make static.
8916 * linux-tdep.c (_initialize_linux_tdep): Declare.
8917 * objc-lang.c (_initialize_objc_lang): Declare.
8918 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8920 (_initialize_opencl_language): Declare.
8921 * record.c (_initialize_record): Declare.
8922 * remote.c (demand_private_info, remote_get_tib_address)
8923 (remote_supports_cond_tracepoints)
8924 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8926 * skip.c (_initialize_step_skip): Declare.
8927 * symtab.c (skip_prologue_using_lineinfo): Make static.
8928 * tracepoint.c (delete_trace_state_variable)
8929 (trace_variable_command, delete_trace_variable_command)
8930 (get_uploaded_tsv, find_matching_tracepoint_location)
8931 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8933 * value.c (pack_unsigned_long): Make static.
8934 * varobj.c (varobj_ensure_python_env): Make static.
8935 * windows-tdep.c (_initialize_windows_tdep): Declare.
8936 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8938 2012-03-01 Pedro Alves <palves@redhat.com>
8940 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8942 (linux_init_abi): Install it as has_shared_address_space gdbarch
8945 2012-03-01 Pedro Alves <palves@redhat.com>
8947 * observer.c (observer_test_first_notification_function)
8948 (observer_test_second_notification_function)
8949 (observer_test_third_notification_function): Add declarations.
8951 2012-03-01 Pedro Alves <palves@redhat.com>
8953 * common/signals.c (default_target_signal_to_host)
8954 (default_target_signal_from_host): Move ...
8955 * arch-utils.c: ... here.
8956 * arch-utils.h (default_target_signal_to_host)
8957 (default_target_signal_from_host): Declare.
8959 * common/signals.c (target_signal_from_command): Move ...
8960 * infrun.c: ... here.
8961 * inferior.h (target_signal_from_command): Declare.
8962 * target.h (target_signal_from_command)
8963 (default_target_signal_from_host, default_target_signal_to_host):
8964 Delete declarations.
8966 * common/signals.c (_initialize_signals): Delete.
8968 2012-03-01 Pedro Alves <palves@redhat.com>
8970 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8971 both __cplusplus and !__cplusplus.
8973 2012-03-01 Pedro Alves <palves@redhat.com>
8975 * psymtab.c (find_and_open_source): Delete declaration.
8976 * source.c (find_and_open_source): Move comment ...
8977 * source.h (find_and_open_source): ... to this new declaration.
8979 2012-03-01 Pedro Alves <palves@redhat.com>
8981 * inline-frame.c: Include inline-frame.h.
8983 2012-03-01 Pedro Alves <palves@redhat.com>
8985 * tui/tui-data.c (set_gen_win_origin): Delete.
8986 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8987 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8989 2012-03-01 Pedro Alves <palves@redhat.com>
8991 * remote.c (encode_actions): Delete declaration.
8992 * tracepoint.c (encode_actions): Make extern.
8993 * tracepoint.h (encode_actions): Declare.
8995 2012-03-01 Pedro Alves <palves@redhat.com>
8997 * python/py-breakpoint.c: Include python.h.
8998 * python/py-continueevent.c (create_continue_event_object): Make
9000 * python/py-lazy-string.c (stpy_get_type): Make static.
9001 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9003 * python/py-utils.c (unicode_to_target_python_string): Make
9005 * python/py-value.c: Include python.h.
9007 2012-03-01 Pedro Alves <palves@redhat.com>
9009 * inferior.c (delete_threads_of_inferior): Delete.
9011 2012-03-01 Pedro Alves <palves@redhat.com>
9013 Import fallback definitions from glibc.
9015 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9016 ps_prochandle): Forward declare.
9017 (ps_err_e): Use glibc's comments.
9018 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9019 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9020 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9021 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9022 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9023 (struct ps_prochandle): Adjust comment.
9025 2012-03-01 Pedro Alves <palves@redhat.com>
9027 * ada-lang.c (ada_modulus_from_name): Delete.
9028 * ada-lex.l (lexer_init): Make static.
9030 2012-03-01 Pedro Alves <palves@redhat.com>
9034 * frame.c (read_frame_register_unsigned): New.
9035 * frame.h (read_frame_register_unsigned): Declare.
9036 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9038 (print_i387_control_word): New parameter `control_p'. Handle it.
9039 (i387_print_float_info): Handle unavailable float registers.
9041 2012-03-01 Keith Seitz <keiths@redhat.com>
9043 * linespec.c (decode_line_2): Sort the list of methods
9044 alphabetically before presenting the user with a selection
9047 2012-03-01 Doug Evans <dje@google.com>
9049 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9051 (dwarf2_read_abbrevs): Remove corresponding initialization.
9053 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9055 * NEWS: Mention new python command class gdb.COMMAND_USER.
9056 * cli/cli-cmds.c (show_user): Print error when used on a python
9058 (init_cli_cmds): Update documentation strings for "show user" and
9059 "set/show max-user-call-depth" to clarify that it does not apply to
9061 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9063 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9065 * top.c (execute_command): Only execute a user-defined command as a
9066 legacy macro if c->user_commands is set.
9068 2012-03-01 Tom Tromey <tromey@redhat.com>
9070 * valprint.h (struct generic_val_print_decorations): New.
9071 (generic_val_print): Declare.
9072 * valprint.c (generic_val_print): New function.
9073 * p-valprint.c (p_decorations): New global.
9074 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9075 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9076 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9077 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9078 * m2-valprint.c (m2_decorations): New global.
9079 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9080 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9081 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9082 TYPE_CODE_ERROR>: Call generic_val_print.
9083 * f-valprint.c (f_decorations): New global.
9084 (f_val_print): Use print_function_pointer_address.
9085 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9086 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9087 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9089 * c-valprint.c (c_decorations): New global.
9090 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9091 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9092 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9093 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9094 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9095 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9098 2012-03-01 Tom Tromey <tromey@redhat.com>
9100 * valprint.c (val_print): Update.
9101 * p-valprint (pascal_val_print): Return void.
9102 * p-lang.h (pascal_val_print): Return void.
9103 * m2-valprint.c (m2_val_print): Return void.
9104 * m2-lang.h (m2_val_print): Return void.
9105 * language.h (struct language_defn) <la_val_print>: Return void.
9106 * language.c (unk_lang_val_print): Return void.
9107 * jv-valprint.c (java_val_print): Return void.
9108 * jv-lang.h (java_val_print): Return void.
9109 * f-valprint.c (f_val_print): Return void.
9110 * f-lang.h (f_val_print): Return void.
9111 * d-valprint.c (d_val_print): Return void.
9112 (dynamic_array_type): Update.
9113 * d-lang.h (d_val_print): Return void.
9114 * c-valprint.c (c_val_print): Return void.
9115 * c-lang.h (c_val_print): Return void.
9116 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9118 * ada-lang.h (ada_val_print): Return void.
9120 2012-03-01 Tom Tromey <tromey@redhat.com>
9122 * value.h (val_print): Return void.
9123 * valprint.c (val_print): Return void.
9125 2012-03-01 Tom Tromey <tromey@redhat.com>
9127 * value.h (common_val_print): Return void.
9128 * valprint.c (common_val_print): Return void.
9130 2012-03-01 Tom Tromey <tromey@redhat.com>
9132 * value.h (value_print): Return void.
9133 * valprint.c (value_print): Return void.
9134 * p-valprint.c (pascal_value_print): Return void.
9135 * p-lang.h (pascal_value_print): Return void.
9136 * language.h (struct language_defn) <la_value_print>: Return
9138 * language.c (unk_lang_value_print): Return void.
9139 * jv-valprint.c (java_value_print): Return void.
9140 * jv-lang.h (java_value_print): Return void.
9141 * f-valprint.c (c_value_print): Don't declare.
9143 * c-valprint.c (c_value_print): Return void.
9144 * c-lang.h (c_value_print): Return void.
9145 * ada-valprint.c (ada_value_print): Return void.
9146 * ada-lang.h (ada_value_print): Return void.
9148 2012-03-01 Tom Tromey <tromey@redhat.com>
9150 * value.c (value_primitive_field): Handle virtual base classes.
9152 2012-03-01 Tom Tromey <tromey@redhat.com>
9154 * gdbtypes.h (struct vbase): Remove.
9156 2012-03-01 Tom Tromey <tromey@redhat.com>
9158 * c-valprint.c (print_function_pointer_address): Move...
9159 * valprint.c: ... here. Make non-static.
9160 * m2-valprint.c (print_function_pointer_address): Remove.
9161 * valprint.h (print_function_pointer_address): Declare.
9163 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9165 * NEWS: Document the fact that one can provide a condition when
9166 creating an Ada exception catchpoint.
9168 2012-03-01 Tom Tromey <tromey@redhat.com>
9170 * valprint.c (val_print_type_code_flags): Fix placement of
9173 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9175 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9176 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9177 environment variable before calling update-copyright.
9179 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9181 * gnulib/extra/update-copyright: Update to the latest from
9182 gnulib's git repository.
9183 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9184 variable to 2 instead of 1.
9186 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9188 * varobj.c (c_value_of_variable): Remove dead code.
9190 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9192 * ada-lex.p (processId): Do not modify already encoded IDs.
9193 Update function documentation.
9195 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9197 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9198 "name" with "struct symbol *name_sym".
9199 * ada-exp.y (write_var_or_type): Update call to
9200 ada_find_renaming_symbol.
9201 "name" with "struct symbol *name_sym". Adjust Implementation
9202 accordingly. Adjust the function documentation.
9204 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9206 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9207 * ada-lang.c (ada_find_any_type): Add advance declaration.
9208 Make static. Replace ada_find_any_symbol by
9209 ada_find_any_type_symbol.
9210 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9211 Improve function description. Make static.
9212 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9213 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9215 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9217 * ada-lang.c (struct tag_args): Delete.
9218 (ada_get_tsd_type): Function body moved up in source file.
9219 (ada_tag_name_1, ada_tag_name_2): Delete.
9220 (ada_get_tsd_from_tag): New function.
9221 (ada_tag_name_from_tsd): New function.
9222 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9223 to determine the tag name.
9225 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9227 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9229 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9232 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9234 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9236 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9238 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9241 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9243 * ada-lang.c (constrained_packed_array_type): If there is a
9244 parallel XA type, use it to determine the array index type.
9246 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9248 * ada-valprint.c (ada_val_print_1): If our value is a reference
9249 to an array descriptor, dereference it before converting it
9252 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9254 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9255 creating fixed value.
9256 (ada_value_ind, ada_coerce_ref, assign_component)
9257 (ada_evaluate_subexp): Remove call to unwrap_value before
9258 call to ada_to_fixed_value.
9260 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9262 * ada-lang.c (to_fixed_array_type): Set result's type name.
9264 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9266 * ada-lang.c (catch_ada_exception_command_split): Add new
9267 argument cond_string. Add support for condition at end of
9268 "catch exception" commands.
9269 (ada_decode_exception_location): Add new argument cond_string.
9270 Update call to catch_ada_exception_command_split.
9271 (create_ada_exception_catchpoint): Add new argument cond_string.
9272 Set the breakpoint condition if needed.
9273 (catch_ada_exception_command): Update call to
9274 ada_decode_exception_location.
9275 (ada_decode_assert_location): Add function documentation.
9276 Add support for condition at end of "catch assert" command.
9277 (catch_assert_command): Update calls to ada_decode_assert_location
9278 and create_ada_exception_catchpoint.
9280 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9282 Fix disp-step-syscall.exp: fork: single step over fork.
9283 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9284 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9285 comment, change parameters gdbarch and ptid to regcache. Remove
9286 parameter regcache, initialize gdbarch from regcache here.
9287 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9289 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9291 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9292 'syscall'. Make the 'int' check more strict.
9294 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9296 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9297 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9298 (i386_linux_intx80_sysenter_syscall_record): ... here.
9299 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9300 Use the renamed function name.
9302 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9304 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9305 * breakpoint.c (until_break_command): Likewise.
9306 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9307 * infcall.c (call_function_by_hand): Likewise.
9308 * infcmd.c (finish_forward): Likewise.
9309 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9311 2012-02-28 Tristan Gingold <gingold@adacore.com>
9313 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9314 avoid variable assignments inside condition.
9316 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9318 Fix static analysis issue found by cppcheck.
9319 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9320 uninitialized BUF for size 2.
9322 2012-02-27 Chris Dearman <chris@mips.com>
9323 Nathan Froyd <froydnj@codesourcery.com>
9324 Maciej W. Rozycki <macro@codesourcery.com>
9326 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9327 (mips16_instruction_has_delay_slot): Likewise.
9328 (mips_segment_boundary): Likewise.
9329 (mips_adjust_breakpoint_address): Likewise.
9330 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9332 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9333 Maciej W. Rozycki <macro@codesourcery.com>
9335 * infrun.c (handle_inferior_event): Don't proceed through
9336 shared library trampolines if stepping at the machine
9339 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9341 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9344 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9346 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9347 (sh_stub_unwind_sniffer): New functions.
9348 (sh_stub_unwind): New variable.
9349 (sh_gdbarch_init): Wire everything.
9351 2012-02-27 Pedro Alves <palves@redhat.com>
9353 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9354 (linux_nat_post_attach_wait): Adjust to use
9355 linux_proc_pid_is_stopped.
9356 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9357 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9358 based on pid_is_stopped from both linux-nat.c and
9359 gdbserver/linux-low.c, and renamed.
9361 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9363 * remote.c (remote_watchpoint_addr_within_range): New function.
9364 (init_remote_ops): Use it.
9366 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9368 * target.h (target_watchpoint_addr_within_range): Document macro.
9370 2012-02-24 Pedro Alves <palves@redhat.com>
9372 * stack.c (set_last_displayed_sal): Issue internal_error instead
9373 of warning, and issue it after clearing the last displayed sal.
9375 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9376 Pedro Alves <palves@redhat.com>
9378 * breakpoint.c (until_break_command): Install breakpoints after
9379 all frame manipulations.
9381 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9383 * remote.c (remote_supports_cond_breakpoints): New forward
9385 (remote_add_target_side_condition): New function.
9386 (remote_insert_breakpoint): Add target-side breakpoint
9387 conditional if supported.
9388 (remote_insert_hw_breakpoint): Likewise.
9389 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9392 * target.c (update_current_target): Inherit
9393 to_supports_evaluation_of_breakpoint_conditions.
9394 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9396 * target.h (struct target_ops)
9397 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9398 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9400 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9401 (condition_evaluation_both, condition_evaluation_auto,
9402 condition_evaluation_host, condition_evaluation_target,
9403 condition_evaluation_enums, condition_evaluation_mode_1,
9404 condition_evaluation_mode): New static globals.
9405 (translate_condition_evaluation_mode): New function.
9406 (breakpoint_condition_evaluation_mode): New function.
9407 (gdb_evaluates_breakpoint_condition_p): New function.
9408 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9409 (mark_breakpoint_modified): New function.
9410 (mark_breakpoint_location_modified): New function.
9411 (set_condition_evaluation_mode): New function.
9412 (show_condition_evaluation_mode): New function.
9413 (bp_location_compare_addrs): New function.
9414 (get_first_location_gte_addr): New helper function.
9415 (set_breakpoint_condition): Free condition bytecode if locations
9416 has become unconditional. Call mark_breakpoint_modified (...).
9417 (condition_command): Call update_global_location_list (1) for
9419 (breakpoint_xfer_memory): Use is_breakpoint (...).
9420 (is_breakpoint): New function.
9421 (parse_cond_to_aexpr): New function.
9422 (build_target_condition_list): New function.
9423 (insert_bp_location): Handle target-side conditional
9424 breakpoints and call build_target_condition_list (...).
9425 (update_inserted_breakpoint_locations): New function.
9426 (insert_breakpoint_locations): Handle target-side conditional
9428 (bpstat_check_breakpoint_conditions): Add comment.
9429 (bp_condition_evaluator): New function.
9430 (bp_location_condition_evaluator): New function.
9431 (print_breakpoint_location): Print information on where the condition
9433 (print_one_breakpoint_location): Likewise.
9434 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9435 breakpoint location.
9436 (force_breakpoint_reinsertion): New functions.
9437 (update_global_location_list): Handle target-side breakpoint
9439 Reinsert locations that are already inserted if conditions have
9441 (bp_location_dtor): Free agent expression bytecode.
9442 (disable_breakpoint): Call mark_breakpoint_modified (...).
9443 Call update_global_location_list (...) with parameter 1 for breakpoints.
9444 (disable_command): Call mark_breakpoint_location_modified (...).
9445 Call update_global_location_list (...) with parameter 1 for breakpoints.
9446 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9447 (enable_command): mark_breakpoint_location_modified (...).
9448 (_initialize_breakpoint): Update documentation and add
9449 condition-evaluation breakpoint subcommand.
9451 * breakpoint.h: Include ax.h.
9452 (condition_list): New data structure.
9453 (condition_status): New enum.
9454 (bp_target_info) <cond_list>: New field.
9455 (bp_location) <condition_changed, cond_bytecode>: New fields.
9456 (is_breakpoint): New prototype.
9458 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9460 * remote.c (remote_state) <cond_breakpoints>: New field.
9461 (PACKET_ConditionalBreakpoints): New enum.
9462 (remote_cond_breakpoint_feature): New function.
9463 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9464 (remote_supports_cond_breakpoints): New function.
9465 (_initialize_remote): Add new packet configuration for
9466 target-side conditional breakpoints.
9468 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9470 * NEWS: Mention target-side conditional breakpoint support,
9471 new condition-evaluation breakpoint subcommand and remote
9474 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9476 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9479 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9481 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9482 (after_prologue): Remove.
9484 2012-02-23 Tom Tromey <tromey@redhat.com>
9486 * jv-valprint.c (java_val_print): Remove dead code.
9488 2012-02-23 Tristan Gingold <gingold@adacore.com>
9490 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9491 known_tasks_element and known_tasks_length fields.
9492 (read_known_tasks_array): Change argument type. Use pointer type
9493 and number of elements from DATA. Adjust.
9494 (read_known_tasks_list): Likewise.
9495 (get_known_tasks_addr): Remove.
9496 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9497 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9498 type and array length. Merge former get_known_tasks_addr code.
9500 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9503 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9504 it after set_momentary_breakpoint.
9506 2012-02-22 Sterling Augustine <saugustine@google.com>
9509 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9511 2012-02-22 Gary Benson <gbenson@redhat.com>
9513 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9514 (find_slot_in_mapped_hash): Likewise.
9516 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9519 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9520 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9521 * configure: Regenerate.
9523 2012-02-21 Tristan Gingold <gingold@adacore.com>
9524 Pedro Alves <palves@redhat.com>
9526 * ia64-tdep.c: Do not include libunwind-ia64.h.
9527 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9528 Include libunwind-ia64.h instead of libunwind.h.
9529 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9530 for libunwind.h existence.
9531 * configure, config.in: Regenerate.
9533 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9535 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9536 instead of value_rtti_target_type.
9537 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9538 instead of value_rtti_target_type.
9539 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9540 value_rtti_target_type.
9541 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9542 (value_rtti_target_type): Rename to ...
9543 (value_rtti_indirect_type): ... here and make it indirect. Update
9545 * value.c (readjust_indirect_value_type): New function.
9546 (coerce_ref): Support for enclosing type setting for references
9547 with readjust_indirect_value_type.
9548 * value.h (readjust_value_type): New declaration.
9549 (value_rtti_target_type): Rename to ...
9550 (value_rtti_indirect_type): ... here.
9552 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9554 * MAINTAINERS (Write After Approval): Add myself to the list.
9556 2012-02-20 Doug Evans <dje@google.com>
9558 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9559 Rename objfile_p_char parameter to objfilep.
9560 (build_objfile_section_table): Result is now void. All callers
9562 * objfiles.h (struct objfile): Tweak comments, whitespace.
9563 (build_objfile_section_table): Update.
9565 * elfread.c (elf_symfile_segments): Fix warning text.
9567 2012-02-20 Tom Tromey <tromey@redhat.com>
9570 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9571 particular set of file names once.
9572 (dw2_map_symbol_filenames): Likewise.
9574 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9577 * main.c (write_files): Remove the declaration.
9578 (external_editor_command): Move the declaration ...
9579 [GDBTK] (external_editor_command): ... here. Fix the comment.
9581 2012-02-20 Tom Tromey <tromey@redhat.com>
9583 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9586 2012-02-20 Tristan Gingold <gingold@adacore.com>
9588 * darwin-nat.h (enum darwin_msg_state): Add comments.
9590 2012-02-20 Tristan Gingold <gingold@adacore.com>
9592 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9595 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9597 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9598 between function description and implementation.
9600 2012-02-17 Tom Tromey <tromey@redhat.com>
9603 * python/py-event.c (event_object_getset): New global.
9604 (event_object_type): Reference it.
9605 * python/py-type.c (field_object_getset): New global.
9606 (field_object_type): Reference it.
9607 * python/python-internal.h (gdb_py_generic_dict): Declare.
9608 * python/py-utils.c (gdb_py_generic_dict): New function.
9610 2012-02-17 Tristan Gingold <gingold@adacore.com>
9612 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9614 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9616 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9617 TYPE_CALLING_CONVENTION annotation.
9619 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9621 * MAINTAINERS: Add rx to target ISA section.
9622 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9623 (ALLDEPFILES): Add rx-tdep.c.
9625 2012-02-16 Tom Tromey <tromey@redhat.com>
9627 * symfile.c (symbol_file_add_main_1): Use inferior's
9629 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9630 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9632 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9634 (follow_exec): Use inferior's symfile_flags.
9635 * inferior.h (struct inferior) <symfile_flags>: New field.
9637 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9640 * remote-sim.c (gdbsim_create_inferior): Call error() when
9641 sim_create_inferior() fails.
9643 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9645 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9647 2012-02-16 Tom Tromey <tromey@redhat.com>
9650 * thread.c (struct current_thread_cleanup) <was_removable>: New
9652 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9653 (make_cleanup_restore_current_thread): Initialize new field.
9655 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9657 * MAINTAINERS: Add rl78 to target ISA section.
9658 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9659 (ALLDEPFILES): Add rl78-tdep.c.
9660 * NEWS: Mention rl78 as a new target.
9662 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9664 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9666 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9668 2012-02-15 Tom Tromey <tromey@redhat.com>
9671 * infcmd.c (registers_info): Print just the current register's
9674 2012-02-15 Tom Tromey <tromey@redhat.com>
9676 * python/py-symbol.c (sympy_value): Use _().
9678 2012-02-15 Pedro Alves <palves@redhat.com>
9680 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9681 output to be like native targets'.
9682 (remote_pid_to_str): Special case the null ptid.
9684 2012-02-14 Stan Shebs <stan@codesourcery.com>
9686 * NEWS: Mention enable count command.
9687 * breakpoint.h (struct breakpoint): New field enable_count.
9688 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9689 (enable_breakpoint): Add arg to call.
9690 (struct disp_data): New struct.
9691 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9692 (do_map_enable_once_breakpoint): Create a struct and pass it.
9693 (do_map_enable_delete_breakpoint): Ditto.
9694 (do_map_enable_count_breakpoint): New function.
9695 (enable_count_command): New function.
9696 (bpstat_stop_status): Decrement enable_count.
9697 (print_one_breakpoint_location): Report enable count.
9698 (_initialize_breakpoint): Add enable count command.
9700 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9702 * rl78-tdep.c (reggroups.h): Include.
9703 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9704 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9705 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9706 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9707 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9708 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9709 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9710 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9711 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9712 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9713 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9714 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9715 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9716 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9717 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9718 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9719 beginning of register list.
9720 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9721 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9722 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9723 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9724 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9725 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9726 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9727 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9728 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9729 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9730 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9731 the pseudo registers. Rearrange other pseudo registers too so
9732 that the bank registers appear at the end.
9733 (rl78_register_type): Account for the fact that the byte sized
9734 bank registers are now pseudo-registers.
9735 (rl78_register_name): Rearrange the register name array. Make
9736 initial set of raw banked registers inaccessible.
9737 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9738 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9739 case for copying bytes back and forth between raw and pseudo
9740 versions of the banked registers. Update other cases to reflect
9742 (rl78_return_value): Update to account for changed names of
9744 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9745 rl78_register_sim_regno().
9747 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9749 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9750 the name parameter being passed to find_pc_partial_function().
9752 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9754 * MAINTAINERS: Step down from being ia64 target maintainer.
9756 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9758 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9759 compilation warning.
9761 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9763 Fix crash on loaded shlibs without loaded exec_bfd.
9764 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9765 (set_section_command): Replace exec_bfd by p->bfd.
9767 2012-02-10 Tom Tromey <tromey@redhat.com>
9769 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9770 when we have a C++ qualified name.
9772 2012-02-10 Pedro Alves <palves@redhat.com>
9774 * inferior.c (inferior_pid_to_str): New.
9775 (print_inferior, inferior_command): Use it.
9777 2012-02-10 Pedro Alves <palves@redhat.com>
9779 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9781 * configure: Regenerate.
9783 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9785 * linespec.c (decode_line_internal): Fix comment correctness.
9787 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9790 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9791 * amd64bsd-nat.c: Add support for debug registers (adapted from
9793 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9794 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9795 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9796 (amd64bsd_dr_get_control): New functions.
9797 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9798 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9799 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9800 watchpoints initialization.
9801 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9803 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9805 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9807 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9809 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9811 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9813 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9815 * language.h (symbol_name_cmp_ftype): Renames
9816 symbol_name_match_p_ftype.
9817 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9818 la_get_symbol_name_match_p.
9819 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9820 ada_get_symbol_name_match_p. Update comment.
9821 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9822 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9823 Renames symbol_name_match_p. Update field type.
9824 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9825 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9826 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9827 "la_get_symbol_name_cmp" in comments.
9828 * language.c: Likewise.
9830 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9832 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9834 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9835 (amd64_sol2_gregset32_reg_offs): Likewise.
9837 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9839 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9840 of the returned BFD is allocated by GDB.
9842 2012-02-07 Tom Tromey <tromey@redhat.com>
9845 * python/python-internal.h (frame_object_type): Declare.
9846 * python/py-symbol.c (sympy_needs_frame): New function.
9847 (sympy_value): New function.
9848 (symbol_object_getset): Add "needs_frame".
9849 (symbol_object_methods): Add "value".
9850 * python/py-frame.c (frame_object_type): No longer static.
9852 2012-02-07 Tom Tromey <tromey@redhat.com>
9855 * python/py-symbol.c (sympy_line): New function.
9856 (symbol_object_getset): Add "line".
9858 2012-02-07 Tom Tromey <tromey@redhat.com>
9860 * charset.c (find_charset_names): Check 'in' against NULL.
9862 2012-02-06 Doug Evans <dje@google.com>
9864 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9865 and fields.name members from char * to const char *. All uses updated.
9866 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9867 from char * to const char *. All uses updated.
9868 (type_name_no_tag): Update.
9869 (lookup_unsigned_typename, lookup_signed_typename): Update.
9870 * gdbtypes.c (type_name_no_tag): Change result type
9871 from char * to const char *. All callers updated.
9872 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9873 name parameter from char * to const char *.
9874 * symtab.h (struct cplus_specific): Change type of demangled_name
9875 member from char * to const char *. All uses updated.
9876 (struct general_symbol_info): Change type of name and
9877 mangled_lang.demangled_name members from char * to const char *.
9879 (symbol_get_demangled_name, symbol_natural_name): Update.
9880 (symbol_demangled_name, symbol_search_name): Update.
9881 * symtab.c (symbol_get_demangled_name): Change result type
9882 from char * to const char *. All callers updated.
9883 (symbol_natural_name, symbol_demangled_name): Ditto.
9884 (symbol_search_name): Ditto.
9885 (completion_list_add_name): Change type of symname,sym_text,
9886 text,word parameters from char * to const char *.
9887 (completion_list_objc_symbol): Change type of sym_text,
9888 text,word parameters from char * to const char *.
9889 * ada-lang.c (find_struct_field): Change type of name parameter
9890 from char * to const char *.
9891 (encoded_ordered_before): Similarly for N0,N1 parameters.
9892 (old_renaming_is_invisible): Similarly for function_name parameter.
9893 (ada_type_name): Change result type from char * to const char *.
9894 All callers updated.
9895 * ada-lang.h (ada_type_name): Update.
9896 * buildsym.c (hashname): Change type of name parameter
9897 from char * to const char *.
9898 * buildsym.h (hashname): Update.
9899 * dbxread.c (end_psymtab): Change type of include_list parameter
9900 from char ** to const char **.
9901 * dwarf2read.c (determine_prefix): Change result type
9902 from char * to const char *. All callers updated.
9903 * f-lang.c (find_common_for_function): Change type of name, funcname
9904 parameters from char * to const char *.
9905 * f-lang.c (find_common_for_function): Update.
9906 * f-valprint.c (list_all_visible_commons): Change type of funcname
9907 parameters from char * to const char *.
9908 * gdbarch.sh (static_transform_name): Change type of name parameter
9909 and result from char * to const char *.
9910 * gdbarch.c: Regenerate.
9911 * gdbarch.h: Regenerate.
9912 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9913 of name parameter from char * to const char *.
9914 * jv-lang.c (java_primitive_type_from_name): Ditto.
9915 (java_demangled_signature_length): Similarly for signature parameter.
9916 (java_demangled_signature_copy): Ditto.
9917 (java_demangle_type_signature): Ditto.
9918 * jv-lang.h (java_primitive_type_from_name): Update.
9919 (java_demangle_type_signature): Update.
9920 * objc-lang.c (specialcmp): Change type of a,b parameters
9921 from char * to const char *.
9922 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9923 from char * to const char *. All callers updated.
9924 * p-lang.h (is_pascal_string_type): Update.
9925 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9926 of name parameter from char * to const char *.
9927 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9928 * utils.c (fprintf_symbol_filtered): Ditto.
9929 * defs.h (fprintf_symbol_filtered): Update.
9930 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9931 * stabsread.h (end_psymtab): Update.
9932 * stack.c (find_frame_funname): Change type of funname parameter
9933 from char ** to const char **.
9934 * stack.h (find_frame_funname): Update.
9935 * typeprint.c (type_print): Change type of varstring parameter
9936 from char * to const char *.
9937 * value.h (type_print): Update.
9938 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9939 from char * to const char *. All callers updated.
9940 (xcoff_end_psymtab): Change type of include_list parameter
9941 from char ** to const char **. All callers updated.
9942 (swap_sym): Similarly for name parameter. All callers updated.
9943 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9945 (process_coff_symbol): Use xstrdup.
9946 * stabsread.c (stabs_method_name_from_physname): Renamed from
9947 update_method_name_from_physname. Change result type from void
9948 to char *. All callers updated.
9949 (read_member_functions): In has_destructor case, store name in objfile
9950 obstack instead of malloc space. In !has_stub case, fix mem leak.
9952 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9954 * configure: Rebuild.
9955 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9958 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9960 * configure.tgt (rl78-*-elf): New target.
9961 * rl78-tdep.c: New file.
9963 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9965 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9966 and continue the loop. Add QUIT statement.
9968 2012-02-03 Tom Tromey <tromey@redhat.com>
9971 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9972 bfd_lookup_symbol_from_symtab.
9973 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9974 gdb_bfd_lookup_symbol_from_symtab.
9976 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9978 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9979 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9980 symbol. Add assertion that sym2 is never NULL.
9982 2012-02-02 Doug Evans <dje@google.com>
9984 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9985 "name" parameter to const char ** from char **. All callers updated.
9986 (find_pc_partial_function): Ditto.
9987 (cache_pc_function_name): Change type to const char * from char *.
9988 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9989 (find_pc_partial_function): Update.
9990 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9991 type of "name" parameter to const char * from char *.
9993 * arch-utils.c (generic_in_solib_return_trampoline): Change
9994 type of "name" parameter to const char * from char *.
9995 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9996 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9997 type of "name" parameter to const char * from char *.
9998 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9999 * gdbarch.c: Regenerate.
10000 * gdbarch.h: Regenerate.
10001 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10002 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10003 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10004 type of "name" parameter to const char * from char *.
10005 * skip.c (skip_function_pc): Ditto.
10006 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10007 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10008 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10009 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10010 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10011 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10012 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10013 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10014 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10016 2012-02-02 Pedro Alves <palves@redhat.com>
10018 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10019 the current inferior has no execution. Make sure the current
10020 remote process matches gdb's current inferior.
10022 2012-02-02 Tom Tromey <tromey@redhat.com>
10025 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10028 2012-02-02 Tom Tromey <tromey@redhat.com>
10031 * symtab.c (lookup_language_this): Set block_found.
10033 2012-02-01 Tom Tromey <tromey@redhat.com>
10036 * jit.c (struct jit_inferior_data): Rewrite.
10037 (struct jit_objfile_data): New.
10038 (get_jit_objfile_data): New function.
10039 (add_objfile_entry): Update.
10040 (jit_read_descriptor): Return int. Replace descriptor_addr
10041 argument with inf_data. Update. Don't call error.
10042 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10044 (jit_inferior_init): Don't look up descriptor. Don't call error.
10045 (jit_reset_inferior_data_and_breakpoints)
10046 (jit_inferior_created_observer): Remove.
10047 (jit_inferior_exit_hook): Update.
10048 (jit_executable_changed_observer): Remove.
10049 (jit_event_handler): Update.
10050 (free_objfile_data): Reset inferior data if needed.
10051 (_initialize_jit): Update.
10053 2012-02-01 Tom Tromey <tromey@redhat.com>
10055 * jit.c (bfd_open_from_target_memory): Move higher in file.
10057 2012-02-01 Tristan Gingold <gingold@adacore.com>
10059 * libunwind-frame.c (libunwind_load): Display message if dlopen
10062 2012-02-01 Gary Benson <gbenson@redhat.com>
10064 * symtab.h (symbol_found_callback_ftype): New typedef.
10065 (iterate_over_symbols): Use the above.
10066 * symtab.c (iterate_over_symbols): Likewise.
10067 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10068 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10069 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10070 (iterate_name_matcher): Document return values.
10071 (collect_one_symbol): Likewise.
10072 (collect_function_symbols): Likewise.
10073 (collect_symbols): Likewise.
10075 2012-02-01 Tom Tromey <tromey@redhat.com>
10077 * ada-lang.c (resolve_subexp): Update.
10078 (ada_lookup_symbol_list): Add 'full_search' argument.
10079 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10080 ada_lookup_symbol_list.
10081 (ada_lookup_encoded_symbol): Update.
10082 (get_var_value): Update.
10083 * ada-exp.y (block_lookup): Update.
10084 (write_var_or_type): Update.
10085 (write_name_assoc): Update.
10086 * ada-lang.h (ada_lookup_symbol_list): Update.
10088 2012-01-31 Tom Tromey <tromey@redhat.com>
10090 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10093 2012-01-31 Doug Evans <dje@google.com>
10095 * symtab.h: Remove outdated comment.
10096 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10098 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10100 Fix build error in Darwin port.
10101 * i386-darwin-nat.c: Include i386-nat.h.
10103 2012-01-30 Tom Tromey <tromey@redhat.com>
10105 PR breakpoints/13568:
10106 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10107 argument. Check for recursive includes.
10108 (dwarf_decode_macros): Create an include hash.
10110 2012-01-30 Michael Eager <eager@eagercon.com>
10112 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10113 * ppc-linux-tdep.c: Include glibc-tdep.h.
10114 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10115 (powerpc_linux_in_plt_stub): New function.
10116 (powerpc_linux_in_dynsym_resolve_code): New function.
10117 (ppc_skip_trampoline_code): New function.
10118 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10119 Use glibc_skip_solib_resolver.
10121 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10123 Code cleanup: Make 1440 bytes of data segment read-only.
10124 * arch-utils.c (endian_enum): Make it const char *const [].
10125 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10127 * breakpoint.c (always_inserted_enums): Likewise.
10128 * cli/cli-cmds.c (script_ext_enums): Likewise.
10129 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10130 enumlist parameter const char *const *.
10131 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10132 const char *const *.
10133 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10134 parameter const char *const *.
10135 * cris-tdep.c (cris_modes): Make it const char *const [].
10136 * filesystem.c (target_file_system_kinds): Likewise.
10137 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10138 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10139 (can_use_displaced_stepping_enum, scheduler_enums)
10140 (exec_direction_names): Likewise.
10141 * language.c (_initialize_language): Make the type_or_range_names and
10142 case_sensitive_names variables const char *const [].
10143 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10144 * python/python.c (python_excp_enums): Likewise.
10145 * remote.c (interrupt_sequence_modes): Likewise.
10146 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10147 * serial.c (logbase_enums): Likewise.
10148 * sh-tdep.c (sh_cc_enum): Likewise.
10149 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10151 * symtab.c (multiple_symbols_modes): Likewise.
10152 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10154 * utils.c (internal_problem_modes): Likewise.
10156 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10158 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10159 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10162 2012-01-27 Doug Evans <dje@google.com>
10164 * configure.ac (with_python): Fix absolute path handling for win32.
10165 * configure: Regenerate.
10167 2012-01-26 Doug Evans <dje@google.com>
10169 * symtab.c: Whitespace cleanup, no code changes.
10171 * symtab.c (lookup_symbol_in_language): Improve comment.
10172 (lookup_symbol_aux): Fix comment.
10174 * psymtab.c (add_psymbol_to_list): Result is now "void".
10175 * psympriv.h (add_psymbol_to_list): Update.
10177 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10179 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10181 Do not open script filenames twice.
10182 * cli/cli-cmds.c (source_script_from_stream): Pass to
10183 source_python_script also STREAM.
10184 * python/py-auto-load.c (source_section_scripts): Pass to
10185 source_python_script_for_objfile also STREAM.
10186 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10188 * python/python-internal.h (source_python_script_for_objfile): New
10189 parameter file, rename parameter file to filename.
10190 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10191 instead if !_WIN32. Update the function comment.
10192 (source_python_script, source_python_script_for_objfile)
10193 (source_python_script): New parameter file, rename parameter file to
10194 filename. Pass FILENAME to python_run_simple_file.
10195 * python/python.h (source_python_script): New parameter file, rename
10196 parameter file to filename.
10198 2012-01-26 Pedro Alves <palves@redhat.com>
10200 * corelow.c (core_has_fake_pid): Delete.
10201 (core_close): Delete references to `core_has_fake_pid'.
10202 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10203 (core_open): Delete references to `core_has_fake_pid'.
10204 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10205 the removed global.
10207 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10209 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10210 Remove language parameter from name_matcher. Adjust the comment.
10211 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10212 Remove language parameter.
10213 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10214 * linespec.c (iterate_name_matcher): Likewise.
10215 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10216 name_matcher. Adjust call accordingly.
10217 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10218 (maintenance_check_symtabs): Adjust type of parameter "fun".
10219 * psymtab.h (maintenance_check_symtabs): Likewise.
10221 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10223 * language.h (symbol_name_match_p_ftype): New typedef.
10224 (struct language_defn): Replace field la_symbol_name_compare
10225 by la_get_symbol_name_match_p.
10226 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10227 (ada_language_defn): Use it.
10228 * linespec.c (struct symbol_matcher_data): New type.
10229 (iterate_name_matcher): Rewrite.
10230 (iterate_over_all_matching_symtabs): Pass a pointer to
10231 a symbol_matcher_data struct to expand_symtabs_matching
10232 instead of just the lookup name.
10233 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10234 opencl-lang.c, p-lang.c, language.c: Delete field
10235 la_symbol_name_compare, and replace by NULL for new field
10236 la_get_symbol_name_match_p.
10237 * symfile.h (struct quick_symbol_functions): Update comment.
10239 2012-01-25 Tom Tromey <tromey@redhat.com>
10241 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10244 2012-01-24 Tom Tromey <tromey@redhat.com>
10247 * solib.c (update_solib_list): Update the program space's
10248 added_solibs and deleted_solibs fields.
10249 * progspace.h (struct program_space) <added_solibs,
10250 deleted_solibs>: New fields.
10251 (clear_program_space_solib_cache): Declare.
10252 * progspace.c (release_program_space): Call
10253 clear_program_space_solib_cache.
10254 (clear_program_space_solib_cache): New function.
10255 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10256 bpstat_stop_status. Use handle_solib_event.
10257 * breakpoint.c: Include gdb_regex.h.
10258 (print_solib_event): New function.
10259 (bpstat_print): Use print_solib_event.
10260 (bpstat_stop_status): Add special case for bp_shlib_event.
10261 (handle_solib_event): New function.
10262 (bpstat_what): Use handle_solib_event.
10263 (struct solib_catchpoint): New.
10264 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10265 (breakpoint_hit_catch_solib, check_status_catch_solib)
10266 (print_it_catch_solib, print_one_catch_solib)
10267 (print_mention_catch_solib, print_recreate_catch_solib): New
10269 (catch_solib_breakpoint_ops): New global.
10270 (catch_load_or_unload, catch_load_command_1)
10271 (catch_unload_command_1): New functions.
10272 (internal_bkpt_check_status): Add special case for
10274 (internal_bkpt_print_it): Use print_solib_event.
10275 (initialize_breakpoint_ops): Initialize
10276 catch_solib_breakpoint_ops.
10277 (_initialize_breakpoint): Register "catch load" and "catch
10279 * breakpoint.h (handle_solib_event): Declare.
10280 * NEWS: Add entry for "catch load" and "catch unload".
10282 2012-01-24 Tom Tromey <tromey@redhat.com>
10284 * ada-lang.c: Include gdb_vecs.h.
10285 * charset.c: Include gdb_vecs.h.
10286 * tracepoint.h: Include gdb_vecs.h.
10287 * gdb_vecs.h: New file.
10289 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10291 * breakpoint.c (breakpoint_hit_catch_fork)
10292 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10293 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10294 * infrun.c (inferior_has_forked, inferior_has_vforked)
10295 (inferior_has_execd, inferior_has_called_syscall): Delete.
10296 (handle_syscall_event): Get syscall_number from the execution
10297 control state's wait status.
10298 (wait_for_inferior): Don't clear syscall_number.
10300 2012-01-24 Pedro Alves <palves@redhat.com>
10302 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10303 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10304 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10305 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10307 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10308 false for events other than TARGET_SIGNAL_TRAP.
10309 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10310 Add `ws' parameter.
10311 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10312 events other than TARGET_SIGNAL_TRAP.
10313 (tracepoint_breakpoint_hit): Add `ws' parameter.
10314 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10316 (bpstat_stop_status): Same.
10317 (pc_at_non_inline_function): Same.
10318 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10319 to pass the current event's waitstatus to bpstat_stop_status
10320 and pc_at_non_inline_function.
10322 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10325 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10326 Update the function comment for it.
10327 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10328 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10331 2012-01-24 Pedro Alves <palves@redhat.com>
10333 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10334 outside `bs->stop' block.
10335 (bpstat_what): Rework bp_shlib_event handling.
10336 (internal_bkpt_check_status): If the breakpoint is a
10337 bp_shlib_event, then set bs->stop and bs->print if
10338 stop_on_solib_events is set.
10340 2012-01-24 Gary Benson <gbenson@redhat.com>
10342 Delete #if 0'd out code.
10343 * stack.c (print_frame_label_vars): Remove.
10344 (catch_info): Likewise.
10345 (_initialize_stack): Remove "info catch" command.
10346 * NEWS: Mention the above.
10348 2012-01-24 Pedro Alves <palves@redhat.com>
10350 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10352 (remote_notice_new_inferior): If the remote end doesn't support
10353 the multiprocess extensions, then the PID is fake.
10354 (add_current_inferior_and_thread): New.
10355 (remote_start_remote): Use it.
10356 (extended_remote_attach_1): Adjust.
10357 (extended_remote_create_inferior_1): Use
10358 add_current_inferior_and_thread.
10360 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10362 Fix watchpoints to be specific for each inferior.
10363 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10364 current_program_space.
10365 * i386-nat.c (i386_inferior_data_cleanup): New.
10366 (i386_inferior_data_get): Replace variable inf_data_local by an
10367 inferior_data call.
10368 (i386_use_watchpoints): Initialize i386_inferior_data.
10369 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10370 specific iterate_over_lwps.
10372 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10374 Fix watchpoints across inferior fork.
10375 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10376 comment for linux_nat_iterate_watchpoint_lwps.
10377 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10378 linux_nat_iterate_watchpoint_lwps.
10379 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10380 * i386-linux-nat.c (update_debug_registers_callback): Update the
10381 comment for linux_nat_iterate_watchpoint_lwps.
10382 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10383 linux_nat_iterate_watchpoint_lwps.
10384 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10385 * i386-nat.c: Include inferior.h.
10386 (dr_mirror): Remove.
10387 (i386_inferior_data, struct i386_inferior_data)
10388 (i386_inferior_data_get): New.
10389 (i386_debug_reg_state): Use i386_inferior_data_get.
10390 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10391 (i386_insert_watchpoint, i386_remove_watchpoint)
10392 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10393 (i386_remove_hw_breakpoint): New variable state, use
10394 i386_debug_reg_state instead of DR_MIRROR.
10395 * linux-nat.c (delete_lwp): New declaration.
10396 (num_lwps): Move here from downwards.
10397 (delete_lwp_cleanup): New.
10398 (linux_child_follow_fork): Create new child_lp, call
10399 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10401 (num_lwps): Move upwards.
10402 (linux_nat_iterate_watchpoint_lwps): New.
10403 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10404 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10406 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10410 2012-01-23 Pedro Alves <palves@redhat.com>
10412 * top.c (caution): Rename to ...
10413 (confirm): ... this.
10414 (show_caution): Rename to ...
10415 (show_confirm): ... this.
10416 (quit_cover): Adjust.
10417 (init_main): Adjust.
10418 * top.h (caution): Rename to ...
10419 (confirm): ... this.
10420 * utils.c (internal_vproblem, defaulted_query): Adjust.
10422 2012-01-23 Pedro Alves <palves@redhat.com>
10424 * top.c (caution): Update comment.
10425 (execute_command): Don't consider the current value of `caution'.
10427 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10429 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10431 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10433 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10434 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10435 * target.c (target_fileio_pwrite): Remove buffer address from
10437 (target_fileio_pread): Likewise.
10439 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10441 * NEWS: Document remote "info proc" and "generate-core-file".
10443 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10445 * gdbarch.sh (find_memory_regions): New callback.
10446 * gdbarch.c, gdbarch.h: Regenerate.
10448 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10449 callback before falling back to target method.
10451 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10452 (linux_target_install_ops): No longer install it.
10454 * linux-tdep.c (linux_find_memory_regions): New function.
10455 (linux_init_abi): Install it.
10457 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10459 * gdbarch.sh (make_corefile_notes): New architecture callback.
10460 * gdbarch.c: Regenerate.
10461 * gdbarch.h: Likewise.
10463 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10464 before target_make_corefile_notes. If NULL is returned, the
10465 target does not support core file generation.
10467 * linux-nat.c: Include "linux-tdep.h".
10468 (find_signalled_thread, find_stop_signal): Remove.
10469 (linux_nat_do_thread_registers): Likewise.
10470 (struct linux_nat_corefile_thread_data): Likewise.
10471 (linux_nat_corefile_thread_callback): Likewise.
10472 (iterate_over_spus): Likewise.
10473 (struct linux_spu_corefile_data): Likewise.
10474 (linux_spu_corefile_callback): Likewise.
10475 (linux_spu_make_corefile_notes): Likewise.
10476 (linux_nat_collect_thread_registers): New function.
10477 (linux_nat_make_corefile_notes): Replace contents by call to
10478 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10479 as native-only callback.
10481 * linux-tdep.h: Include "bfd.h".
10482 (struct regcache): Add forward declaration.
10483 (linux_collect_thread_registers_ftype): New typedef.
10484 (linux_make_corefile_notes): Add prototype.
10485 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10486 "regset.h", and "elf-bfd.h".
10487 (find_signalled_thread, find_stop_signal): New functions.
10488 (linux_spu_make_corefile_notes): Likewise.
10489 (linux_collect_thread_registers): Likewise.
10490 (struct linux_corefile_thread_data): New data structure.
10491 (linux_corefile_thread_callback): New funcion.
10492 (linux_make_corefile_notes): Likewise.
10493 (linux_make_corefile_notes_1): Likewise.
10494 (linux_init_abi): Install it.
10496 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10498 * gdbarch.sh (info_proc): New callback.
10499 * gdbarch.c, gdbarch.h: Regenerate.
10501 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10502 before falling back to the target info_proc callback.
10504 * linux-nat.c: Do not include "cli/cli-utils.h".
10505 (linux_nat_info_proc): Remove.
10506 (linux_target_install_ops): No longer install it.
10508 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10509 (read_mapping): New function.
10510 (linux_info_proc): Likewise.
10511 (linux_init_abi): Install it.
10513 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10515 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10516 * infcmd.c: (info_proc_cmd_1): New function.
10517 (info_proc_cmd): New function, moved here from equivalent routine
10518 orignally in linux-nat.c.
10519 (info_proc_cmd_mappings): Likewise.
10520 (info_proc_cmd_stat): Likewise.
10521 (info_proc_cmd_status): Likewise.
10522 (info_proc_cmd_cwd): Likewise.
10523 (info_proc_cmd_cmdline): Likewise.
10524 (info_proc_cmd_exe): Likewise.
10525 (info_proc_cmd_all): Likewise.
10526 (_initialize_infcmd): Install "info proc" command and subcommands.
10528 * target.h (struct target_ops): Add to_info_proc.
10529 (target_info_proc): Add prototype.
10530 * target.c (target_info_proc): New function.
10532 * procfs.c (procfs_info_proc): Add prototype.
10533 (info_proc_cmd): Rename into ...
10534 (procfs_info_proc): ... this. Update argument types as appropriate
10535 for a to_info_proc implementation. Handle "what" argument.
10536 (procfs_target): Install procfs_info_proc.
10537 (_initialize_procfs): No longer install "info proc" command.
10539 * linux-nat.c: (enum info_proc_what): Remove.
10540 (linux_nat_info_proc_cmd_1): Rename into ...
10541 (linux_nat_info_proc): ... this. Update argument types as appropriate
10542 for a to_info_proc implementation.
10543 (linux_nat_info_proc_cmd): Remove.
10544 (linux_nat_info_proc_cmd_mappings): Likewise.
10545 (linux_nat_info_proc_cmd_stat): Likewise.
10546 (linux_nat_info_proc_cmd_status): Likewise.
10547 (linux_nat_info_proc_cmd_cwd): Likewise.
10548 (linux_nat_info_proc_cmd_cmdline): Likewise.
10549 (linux_nat_info_proc_cmd_exe): Likewise.
10550 (linux_nat_info_proc_cmd_all): Likewise.
10551 (linux_target_install_ops): Install linux_nat_info_proc.
10552 (_initialize_linux_nat): No longer install "info proc" command
10555 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10557 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10558 * config.in, configure: Regenerate.
10560 * target.h (struct target_ops): Add to_fileio_readlink.
10561 (target_fileio_readlink): Add prototype.
10562 * target.c (target_fileio_readlink): New function.
10564 * inf-child.c: Conditionally include <sys/param.h>.
10565 (inf_child_fileio_readlink): New function.
10566 (inf_child_target): Install it.
10568 * remote.c (PACKET_vFile_readlink): New enum value.
10569 (remote_hostio_readlink): New function.
10570 (init_remote_ops): Install it.
10571 (_initialize_remote): Handle vFile:readlink packet type.
10573 2012-01-20 Pedro Alves <palves@redhat.com>
10574 Ulrich Weigand <ulrich.weigand@linaro.org>
10576 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10577 * config.in, configure: Regenerate.
10579 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10580 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10581 (target_fileio_open): Add prototype.
10582 (target_fileio_pwrite): Likewise.
10583 (target_fileio_pread): Likewise.
10584 (target_fileio_close): Likewise.
10585 (target_fileio_unlink): Likewise.
10586 (target_fileio_read_alloc): Likewise.
10587 (target_fileio_read_stralloc): Likewise.
10589 * target.c: Include "gdb/fileio.h".
10590 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10591 (default_fileio_target): New function.
10592 (target_fileio_open): Likewise.
10593 (target_fileio_pwrite): Likewise.
10594 (target_fileio_pread): Likewise.
10595 (target_fileio_close): Likewise.
10596 (target_fileio_unlink): Likewise.
10597 (target_fileio_close_cleanup): Likewise.
10598 (target_fileio_read_alloc_1): Likewise.
10599 (target_fileio_read_alloc): Likewise.
10600 (target_fileio_read_stralloc): Likewise.
10602 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10603 <fcntl.h>, and <unistd.h>.
10604 (inf_child_fileio_open_flags_to_host): New function.
10605 (inf_child_errno_to_fileio_error): Likewise.
10606 (inf_child_fileio_open): Likewise.
10607 (inf_child_fileio_pwrite): Likewise.
10608 (inf_child_fileio_pread): Likewise.
10609 (inf_child_fileio_close): Likewise.
10610 (inf_child_fileio_unlink): Likewise.
10611 (inf_child_target): Install to_fileio routines.
10613 * remote.c (init_remote_ops): Install to_fileio routines.
10615 2012-01-20 Pedro Alves <palves@redhat.com>
10616 Ulrich Weigand <ulrich.weigand@linaro.org>
10618 * remote.c (remote_multi_process_p): Only check for multi-process
10619 protocol feature, do not check for extended protocol.
10620 (remote_supports_multi_process): Check for extended protocol here.
10621 (set_general_process): Likewise.
10622 (extended_remote_kill): Likewise.
10623 (remote_pid_to_str): Likewise.
10624 (remote_query_supported): Always query multiprocess mode.
10626 2012-01-20 Pedro Alves <palves@redhat.com>
10627 Ulrich Weigand <ulrich.weigand@linaro.org>
10629 * inferior.h (struct inferior): Add fake_pid_p.
10630 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10631 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10632 magic_null_ptid since the remote side doesn't provide a real PID.
10634 2012-01-19 Tom Tromey <tromey@redhat.com>
10636 * NEWS: Combine the two Python sections.
10638 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10640 * target.h (target_close): Update comment on the target's unpush state.
10642 2012-01-19 Pedro Alves <palves@redhat.com>
10644 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10645 linux_nat_async directly instead of going through the target
10647 * target.c (unpush_target): Close target after unpushing it, not
10650 2012-01-19 Gary Benson <gbenson@redhat.com>
10652 * mdebugread.c (sort_blocks): Replace integer constants with ones
10653 derived from FIRST_LOCAL_BLOCK.
10655 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10656 Jan Kratochvil <jan.kratochvil@redhat.com>
10659 * symfile.c (find_separate_debug_file): New function.
10660 (terminate_after_last_dir_separator): Likewise.
10661 (find_separate_debug_file_by_debuglink): Also try realpath.
10662 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10663 * configure: Regenerate.
10664 * config.in: Regenerate.
10666 2012-01-18 Doug Evans <dje@google.com>
10668 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10669 (main.o): Remove rule.
10670 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10671 (--with-sysroot): Rewrite.
10672 * configure: Regenerate.
10673 * config.in: Regenerate.
10675 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10677 * parse.c (initialize_expout): New function.
10678 (reallocate_expout): Likewise.
10679 (parse_exp_in_context): Use `initialize_expout' and
10680 `reallocate_expout' when appropriate.
10682 2012-01-18 Pedro Alves <palves@redhat.com>
10684 * record.c (struct record_breakpoint, record_breakpoint_p)
10685 (record_breakpoints): New.
10686 (record_insert_breakpoint, record_remove_breakpoint): Manage
10687 record breakpoints list. Only remove breakpoints from the
10688 inferior if they had been inserted there in the first place.
10690 2012-01-17 Doug Evans <dje@google.com>
10692 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10693 if we know we don't have a file name to look for.
10695 2012-01-17 Pedro Alves <palves@redhat.com>
10697 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10698 the frame's stop reason is UNWIND_UNAVAILABLE.
10700 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10702 Fix compilation error.
10703 * m2-exp.y (yyerror): Use ANSI C prototype.
10705 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10707 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10708 (growbuf_by_size): Likewise.
10709 (yyerror): Likewise.
10710 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10711 (modblock): Remove variable (was #if 0'ed).
10712 (parse_number): Convert prototype from K&R to ANSI C.
10713 (yyerror): Likewise.
10714 * objc-exp.y (parse_number): Likewise.
10715 (yyerror): Likewise.
10716 (yylex): Remove #if 0'ed code.
10717 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10718 (yyerror): Likewise.
10720 2012-01-16 Tom Tromey <tromey@redhat.com>
10723 * symtab.h (compare_filenames_for_search): Declare.
10724 * symtab.c (compare_filenames_for_search): New function.
10725 (iterate_over_some_symtabs): Use it.
10726 * symfile.h (struct quick_symbol_functions)
10727 <map_symtabs_matching_filename>: Change spec.
10728 * psymtab.c (partial_map_symtabs_matching_filename): Use
10729 compare_filenames_for_search. Update for new spec.
10730 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10731 compare_filenames_for_search. Update for new spec.
10732 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10734 2012-01-16 Tom Tromey <tromey@redhat.com>
10737 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10738 (struct main_type) <flag_flag_enum>: New field.
10739 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10740 * NEWS: Add entries.
10741 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10743 * python/lib/gdb/printing.py (_EnumInstance): New class.
10744 (FlagEnumerationPrinter): Likewise.
10746 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10748 * breakpoint.c (create_sals_from_address_default): New function.
10749 (create_breakpoints_sal_default): Likewise.
10750 (decode_linespec_default): Likewise.
10751 (is_marker_spec): Removed.
10752 (strace_marker_p): New function.
10753 (init_breakpoint_sal): Using `strace_marker_p' instead of
10755 (create_breakpoint): Call method `create_sals_from_address' from
10756 breakpoint_ops, replacing code that created SALs conditionally
10757 on the type of the breakpoint. Call method `create_breakpoints_sal',
10758 replacing code that created breakpoints conditionally on the type
10760 (base_breakpoint_create_sals_from_address): New function.
10761 (base_breakpoint_create_breakpoints_sal): Likewise.
10762 (base_breakpoint_decode_linespec): Likewise.
10763 (base_breakpoint_ops): Add methods
10764 `base_breakpoint_create_sals_from_address',
10765 `base_breakpoint_create_breakpoints_sal' and
10766 `base_breakpoint_decode_linespec'.
10767 (bkpt_create_sals_from_address): New function.
10768 (bkpt_create_breakpoints_sal): Likewise.
10769 (bkpt_decode_linespec): Likewise.
10770 (tracepoint_create_sals_from_address): Likewise.
10771 (tracepoint_create_breakpoints_sal): Likewise.
10772 (tracepoint_decode_linespec): Likewise.
10773 (strace_marker_create_sals_from_address): Likewise.
10774 (strace_marker_create_breakpoints_sal): Likewise.
10775 (strace_marker_decode_linespec): Likewise.
10776 (strace_marker_breakpoint_ops): New variable.
10777 (addr_string_to_sals): Remove `marker_spec'. Call method
10778 `decode_linespec' from breakpoint_ops, replacing code that decoded
10779 an address string into a SAL. Use `strace_marker_p' instead of
10781 (strace_command): Decide whether we are dealing with a static
10782 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10783 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10784 * breakpoint.h (linespec_result, linespec_sals): New forward
10786 (breakpoint_ops) <create_sals_from_address>,
10787 <create_breakpoints_sal>, <decode_linespec>: New methods.
10789 2012-01-14 Doug Evans <dje@google.com>
10791 * NEWS: Update text for "maint set python print-stack".
10792 It is deprecated in gdb 7.4 and deleted in 7.5.
10794 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10796 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10797 including curses.h.
10799 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10801 * configure: Regenerate.
10802 * config.in: Regenerate.
10804 2012-01-12 Keith Seitz <keiths@redhat.com>
10807 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10808 (ANONYMOUS_UNION_NAME): Define.
10809 (is_path_expr_parent): New function.
10810 (get_path_expr_parent): New function.
10811 (is_anonymous_child): New function.
10812 (create_child_with_value): If the child is anonymous and without
10813 a name, assign an object name to it.
10814 (c_describe_child): Use get_path_expr_parent to determine
10815 the parent expression.
10816 If there field represents an anonymous struct or union and
10817 has no name, set an appropriate display name and expression.
10818 (cplus_describe_child): Likewise.
10820 2012-01-12 Pedro Alves <palves@redhat.com>
10822 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10823 available when %ebp is found to be zero (outermost).
10825 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10827 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10828 an internal gdb_static_assert.
10829 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10831 2012-01-11 Tom Tromey <tromey@redhat.com>
10834 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10835 catch" and "catch throw".
10837 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10839 * blockframe.c (block_innermost_frame): Start search from selected
10840 frame, if present, or otherwise the current frame.
10842 * c-exp.y (variable): Update innermost_block for
10843 'block COLONCOLON NAME' clause.
10844 * m2-exp.y (variable): Ditto.
10845 * objc-exp.y (variable): Ditto.
10847 2012-01-10 Tom Tromey <tromey@redhat.com>
10850 * python/python.c (finish_python_initialization): Set sys.argv.
10852 2012-01-10 Doug Evans <dje@google.com>
10854 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10855 "want_line_info". All callers updated.
10856 (dwarf_decode_lines_1): New function.
10857 (handle_DW_AT_stmt_list): Add function comment.
10858 New arg "want_line_info". All callers updated.
10859 (read_file_scope,read_type_unit_scope): Move comment from
10860 handle_DW_AT_stmt_list to here.
10862 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10864 Fix regression after libiberty/ update for GCC PR 6057 and others.
10865 * c-exp.y (operator) <OPERATOR DELETE>
10866 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10867 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10868 (make_builtin_type, make_name): New variable i, add gdb_assert.
10869 (operator) <OPERATOR NEW>: Update ARGS to 3.
10870 (operator) <OPERATOR DELETE>: Add trailing space.
10871 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10872 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10873 * cp-support.c (cp_canonicalize_string): Check NULL from
10874 cp_comp_to_string, call warning and return.
10876 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10878 Fix duplicate .o files after omitting libbfd.a.
10879 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10880 (SFILES): Add corelow.c.
10881 (COMMON_OBS): Add corelow.o.
10882 (ALLDEPFILES): Remove corelow.c.
10883 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10884 * config/alpha/alpha-osf3.mh: Likewise.
10885 * config/alpha/fbsd.mh: Likewise.
10886 * config/arm/nbsdaout.mh: Likewise.
10887 * config/arm/nbsdelf.mh: Likewise.
10888 * config/i386/i386gnu.mh: Likewise.
10889 * config/ia64/hpux.mh: Likewise.
10890 * config/ia64/linux.mh: Likewise.
10891 * config/m32r/linux.mh: Likewise.
10892 * config/m68k/linux.mh: Likewise.
10893 * config/mips/irix5.mh: Likewise.
10894 * config/mips/irix6.mh: Likewise.
10895 * config/pa/hpux.mh: Likewise.
10896 * config/pa/linux.mh: Likewise.
10897 * config/powerpc/aix.mh: Likewise.
10898 * config/sparc/linux.mh: Likewise.
10899 * config/sparc/linux64.mh: Likewise.
10900 * config/sparc/sol2.mh: Likewise.
10901 * config/vax/vax.mh: Likewise.
10902 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10903 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10904 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10905 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10906 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10907 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10908 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10909 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10910 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10911 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10912 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10913 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10914 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10915 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10916 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10917 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10918 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10919 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10920 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10921 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10922 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10923 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10924 corelow.o from gdb_target_obs.
10925 * corefile.c (core_target): Update the comment on NULL value.
10926 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10927 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10928 MATCHES. Drop YUMMY set on NULL.
10929 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10930 reclaim CORE_DATA if it is already NULL.
10932 2012-01-09 Doug Evans <dje@google.com>
10934 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10935 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10937 2012-01-09 Keith Seitz <keiths@redhat.com>
10939 * breakpoint.c (wrapper.h): Don't include.
10941 2012-01-09 Keith Seitz <keiths@redhat.com>
10943 * Makefile.in (SFILES): Remove wrapper.c.
10944 (HFILES_NO_SRCDIR): Remove wrapper.h.
10945 (COMMON_OBS): Remove wrapper.o.
10946 * cli/cli-interp.c: Don't inlude wrapper.h.
10947 * corelow.c: Likewise.
10948 (core_open): Replace gdb_target_find_new_threads with
10949 TRY_CATCH around target_find_new_threads.
10950 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10951 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10952 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10953 evaluate_expression.
10954 (varobj_set_value): Likewise for evaluate_expression and
10956 (install_new_variable): Likewise for value_fetch_lazy.
10957 (adjust_value_for_child_access): Likewise for value_ind.
10958 (c_describe_child): Likewise for value_subscript and
10960 (c_value_of_root): Likewise for evaluate_expression.
10961 * wrapper.c: Remove.
10962 * wrapper.h: Remove.
10964 2012-01-09 Doug Evans <dje@google.com>
10966 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10967 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10968 "abfd" args with "section". All callers updated.
10969 Error checking code moved ...
10970 (error_check_comp_unit_head): ... here. New function.
10971 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10972 Delete arg "abfd". New arg "type_offset". All callers updated.
10973 (create_debug_types_hash_table): Simplify by using
10974 read_and_check_type_unit_head.
10976 * parser-defs.h (namecopy): Delete.
10977 * parse.c (namecopy, namecopy_size): Move into copy_name.
10979 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10981 Partially fix duplicate .o files after omitting libbfd.a.
10982 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10983 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10984 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10985 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10986 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10987 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10988 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10990 2012-01-09 Pedro Alves <palves@redhat.com>
10992 * MAINTAINERS: Update my email address.
10994 2012-01-08 Doug Evans <dje@google.com>
10996 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10997 n_type_units. Rename type_comp_units to all_type_units.
10999 (add_signatured_type_cu_to_table): Renamed from
11000 add_signatured_type_cu_to_list. All callers updated.
11002 * gdbtypes.h (struct cplus_struct_type): Delete member
11003 nfn_fields_total. All uses removed.
11005 2012-01-06 Doug Evans <dje@google.com>
11007 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11009 (dwarf2_find_comp_unit): Delete.
11010 (process_psymtab_comp_unit): Make result "void".
11011 Delete args buffer, info_ptr, buffer_size, and replace with
11012 "section". All callers updated.
11013 (dwarf2_build_psymtabs_hard): Simplify.
11015 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11016 Thiago Jung Bauermann <bauerman@br.ibm.com>
11018 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11019 before `struct gdb_exception'.
11020 * breakpoint.c (update_global_location_list_nothrow)
11021 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11022 * cp-abi.c (value_rtti_type): Likewise.
11023 * cp-support.c (cp_validate_operator): Likewise.
11024 * infrun.c (insert_exception_resume_breakpoint)
11025 (check_exception_resume, keep_going): Likewise.
11026 * mi-interp.c (mi_breakpoint_created)
11027 (mi_breakpoint_modified): Likewise.
11028 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11029 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11030 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11032 2012-01-05 Doug Evans <dje@google.com>
11034 * dwarf2read.c (statement_prologue): Delete, unused.
11036 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11037 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11039 * dwarf2read.c (comp_unit_header): Delete, unused.
11041 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11043 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11044 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11046 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11048 * infrun.c (normal_stop): Don't skip calling the normal_stop
11049 observers if the thread was doing a multi-step, but stopped for
11050 some reason other than stepping.
11052 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11054 * cli/cli-decode.h: Add comments.
11055 (CMD_LIST_AMBIGUOUS): Moved to command.h
11056 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11057 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11058 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11059 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11060 (add_com, add_com_alias, add_info, add_info_alias)
11061 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11063 * command.h: Add and adjust comments.
11064 (CMD_LIST_AMBIGUOUS): Moved here.
11065 (help_cmd, help_cmd_list): Delete declarations.
11067 2012-01-04 Doug Evans <dje@google.com>
11069 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11070 All callers updated.
11071 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11072 Replace all arguments with "per_cu". All callers updated.
11074 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11076 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11077 New arg "per_cu". All callers updated.
11079 Delete #if 0'd out code.
11080 * language.c (binop_result_type): Delete.
11081 (simple_type, ordered_type, same_type, integral_type): Delete.
11082 (numeric_type, character_type, string_type, boolean_type): Delete.
11083 (float_type, structured_type): Delete.
11084 * language.h: Update.
11086 2012-01-04 Tom Tromey <tromey@redhat.com>
11088 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11090 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11092 * corefile.c (close_exec_file): Delete.
11093 (reopen_exec_file): Remove commented out code that seems related
11094 to close_exec_file, which is being deleted here.
11095 * inferior.h (close_exec_file): Delete.
11096 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11098 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11100 * ada-lang.c: #include "cli/cli-utils.h".
11101 (get_selections): Use skip_spaces.
11102 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11103 (catch_ada_exception_command_split): Use skip_spaces.
11104 (ada_decode_assert_location): Likewise.
11106 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11108 * linespec.c (decode_line_internal): Check for C++ or Java
11109 compound constructs only if the current language is C, C++
11112 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11115 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11116 Joel Brobecker <brobecker@adacore.com>
11117 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11118 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11120 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11121 fall through into AT_ENTRY_POINT.
11122 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11123 DUMMY_ADDR with it.
11124 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11125 PPC_INSN_SIZE skip to 3 times.
11127 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11129 * linespec.c (add_minsym): Preserve function descriptors.
11131 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11133 * breakpoint.c (all_locations_are_pending): Consider locations
11134 in program spaces executing during startup pending as well.
11136 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11138 Copyright year update in most files of the GDB Project.
11140 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11142 * copyright.sh: Delete.
11143 * copyright.py: Rewrite.
11145 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11147 * gnulib/extra/update-copyright: New file, imported from gnulib.
11149 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11151 * README (Copyright and License Notices): New section.
11153 2012-01-03 Tom Tromey <tromey@redhat.com>
11156 * python/py-value.c (valpy_dereference, valpy_get_address
11157 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11158 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11159 (valpy_absolute, valpy_richcompare): Free intermediate values.
11161 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11163 * ada-lang.c: Reformat the copyright notice.
11165 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11167 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11168 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11169 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11170 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11171 Revert this part of:
11172 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11173 Build gdb directly from *.o files not using libgdb.a.
11174 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11176 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11178 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11179 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11180 Reformat the copyright header.
11182 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11184 Revert this part of:
11185 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11186 Remove the gdbtui binary.
11187 * gdb.c (main): Remove args.interpreter_p initialization.
11188 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11189 * main.h (struct captured_main_args): Remove interpreter_p.
11191 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11193 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11195 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11197 * top.c (print_gdb_version): Update copyright year.
11199 2012-01-02 Yao Qi <yao@codesourcery.com>
11201 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11203 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11204 Joel Brobecker <brobecker@adacore.com>
11206 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11207 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11209 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11210 fall through into AT_ENTRY_POINT.
11211 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11212 DUMMY_ADDR with it.
11213 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11214 PPC_INSN_SIZE skip to 3 times.
11216 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11218 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11220 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11222 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11224 Build gdb directly from *.o files not using libgdb.a.
11225 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11226 (COMMON_OBS): Remove solib-target.o.
11227 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11228 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11229 (LIBGDB_OBS, libgdb.a): Move it above.
11230 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11231 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11232 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11233 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11234 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11235 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11236 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11237 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11238 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11239 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11240 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11241 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11242 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11243 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11244 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11245 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11246 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11247 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11248 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11249 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11250 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11251 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11252 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11253 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11254 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11255 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11256 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11258 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11260 Remove the gdbtui binary.
11261 * .gitignore (/gdbtui): Remove.
11262 * Makefile.in (TUI): Remove.
11263 (SUBDIR_TUI_OBS): Remove tui-main.o.
11264 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11265 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11266 (tui-main.o): Remove.
11267 (all_object_files): Remove tui-main.o.
11268 * NEWS: New note for the gdbtui removal.
11269 * configure: Rebuilt.
11270 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11271 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11272 CONFIG_UNINSTALL respectively.
11273 * gdb.c (main): Remove args.interpreter_p initialization.
11274 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11275 * main.h (struct captured_main_args): Remove interpreter_p.
11276 * tui/tui-main.c: Remove.
11278 2012-01-01 Doug Evans <dje@google.com>
11280 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11281 (dwarf2_physname, read_import_statement): Ditto.
11282 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11283 (process_structure_scope read_subroutine_type): Ditto.
11284 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11285 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11286 (dwarf2_fetch_die_location_block): Ditto.
11287 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11289 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11290 All callers updated.
11291 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11292 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11293 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11295 * dwarf2read.c (load_cu): Move assert to more useful location.
11297 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11298 All callers updated.
11300 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11301 (dwarf2_elf_names): Minor reformat.
11302 (dwarf2_per_cu_data): Tweak comment.
11303 (dwarf2_read_section): Fix comment.
11304 (create_all_comp_units): Fix comment.
11305 (load_full_comp_unit): Fix comment.
11306 (process_full_comp_unit): Fix comment.
11307 (read_signatured_type): Fix comment.
11309 For older changes see ChangeLog-2011.
11315 version-control: never