1 2012-08-06 Tom Tromey <tromey@redhat.com>
3 * dwarf2-frame.c (clear_pointer_cleanup): New function.
4 (dwarf2_frame_cache): Use it.
5 * frame-unwind.h (frame_sniffer_ftype): Document prologue
6 cache initialization constraint.
8 2012-08-06 Tom Tromey <tromey@redhat.com>
11 * varobj.c (update_dynamic_varobj_children): Don't call
14 2012-08-06 Tom Tromey <tromey@redhat.com>
17 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
19 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
21 * NEWS: New entry for 'cd' default parameters.
22 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
24 2012-08-03 Tom Tromey <tromey@redhat.com>
26 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
29 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
31 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
32 to attempting lseek/write.
33 (inf_child_fileio_pread): Likewise for pread.
35 2012-08-02 Yao Qi <yao@codesourcery.com>
37 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
38 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
39 add_setshow_zinteger_cmd.
40 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
41 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
42 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
43 instead of add_setshow_zinteger_cmd.
44 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
45 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
46 instead of add_setshow_zinteger_cmd.
47 * frame.c (frame_debug): Add 'unsigned'.
48 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
49 add_setshow_zinteger_cmd.
50 * frame.h: Update the declaration of 'frame_debug'.
51 * gdbtypes.c (overload_debug): Add 'unsigned'.
52 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
53 add_setshow_zinteger_cmd.
54 * inferior.h: Update declaration of 'debug_infrun'.
55 * infrun.c (debug_infrun): Add 'unsigned'.
56 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
57 add_setshow_zinteger_cmd.
58 * jit.c (jit_debug): Add 'unsigned'.
59 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
60 add_setshow_zinteger_cmd.
61 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
62 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
63 instead of add_setshow_zinteger_cmd.
64 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
65 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
66 add_setshow_zinteger_cmd.
67 * machoread.c (mach_o_debug_level): Add 'unsigned'.
68 (_initialize_machoread): Call add_setshow_zuinteger_cmd
69 instead of add_setshow_zinteger_cmd.
70 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
71 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
72 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
73 intead of add_setshow_zinteger_cmd.
74 * mips-tdep.c (mips_debug): Add 'unsigned'.
75 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
76 instead of add_setshow_zinteger_cmd.
77 * monitor.c (monitor_debug): Add 'unsigned'.
78 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
79 add_setshow_zinteger_cmd.
80 * observer.c (observer_debug): Add 'unsigned'.
81 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
82 add_setshow_zinteger_cmd.
83 * parse.c (expressiondebug): Add 'unsigned'.
84 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
85 add_setshow_zinteger_cmd.
86 * record.c (record_debug): Add 'unsigned'.
87 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
88 add_setshow_zinteger_cmd.
89 * record.h: Update the declaration of 'record_debug'.
90 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
91 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
92 add_setshow_zinteger_cmd.
93 * serial.c (global_serial_debug_p): Add 'unsigned'.
94 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
95 add_setshow_zinteger_cmd.
96 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
97 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
98 add_setshow_zinteger_cmd.
99 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
100 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
101 add_setshow_zinteger_cmd.
102 * target.c (targetdebug): Add 'unsigned'.
103 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
104 add_setshow_zinteger_cmd.
105 * valops.c (overload_debug): Add 'unsigned'.
106 * varobj.c (varobjdebug): Add 'unsigned'.
107 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
108 add_setshow_zinteger_cmd.
109 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
110 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
111 instead of add_setshow_zinteger_cmd.
113 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
114 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
115 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
116 instead of add_setshow_zinteger_cmd.
117 * gdbarch.c, gdbarch.h: Re-generated.
119 2012-08-02 Yao Qi <yao@codesourcery.com>
121 * nto-tdep.c: Don't include cli/cli-decode.h and
123 (_initialize_nto_tdep): Remove.
124 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
126 Remove macro nto_internal_debugging.
128 2012-08-01 Richard Henderson <rth@redhat.com>
130 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
131 (mep-*-*) [gdb_target_obs]: Likewise.
133 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
135 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
136 linux_get_siginfo_type.
138 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
140 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
142 (call_function_by_hand) <ON_STACK>: Call write_memory with
143 gdbarch_breakpoint_from_pc, if possible.
144 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
147 2012-07-31 Yao Qi <yao@codesourcery.com>
149 * tracepoint.c: Add 'static' for some variables.
151 2012-07-31 Yao Qi <yao@codesourcery.com>
153 * go32-nat.c: Declare _initialize_go32_nat.
154 * ser-go32.c: Declare _initialize_ser_dos.
155 * top.c (do_chdir_cleanup): Add 'static'.
157 2012-07-30 Keith Seitz <keiths@redhat.com>
159 * linespec.c (linespec_lex_number): A number followed
160 by quotes is a valid number, too.
162 2012-07-30 Tom Tromey <tromey@redhat.com>
164 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
166 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
168 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
169 attempt to 4-byte-align HW breakpoint addresses for Thumb.
171 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
173 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
174 invalid or reevaluated to prevent prevent references to possibly
175 delete'd type objects being left in the varobj.
177 2012-07-27 Tom Tromey <tromey@redhat.com>
178 Jan Kratochvil <jan.kratochvil@redhat.com>
180 * copying.awk: Print buffer-read-only and vi ro markers.
181 * copying.c: Rebuild.
182 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
183 * gdbarch.c, gdbarch.h: Rebuild.
184 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
185 buffer-read-only and vi ro markers.
186 * features/arm-with-iwmmxt.c: Rebuild.
187 * features/arm-with-m-fpa-layout.c: Rebuild.
188 * features/arm-with-m-vfp-d16.c: Rebuild.
189 * features/arm-with-m.c: Rebuild.
190 * features/arm-with-neon.c: Rebuild.
191 * features/arm-with-vfpv2.c: Rebuild.
192 * features/arm-with-vfpv3.c: Rebuild.
193 * features/i386/amd64-avx-linux.c: Rebuild.
194 * features/i386/amd64-avx.c: Rebuild.
195 * features/i386/amd64-linux.c: Rebuild.
196 * features/i386/amd64.c: Rebuild.
197 * features/i386/i386-avx-linux.c: Rebuild.
198 * features/i386/i386-avx.c: Rebuild.
199 * features/i386/i386-linux.c: Rebuild.
200 * features/i386/i386-mmx-linux.c: Rebuild.
201 * features/i386/i386-mmx.c: Rebuild.
202 * features/i386/i386.c: Rebuild.
203 * features/i386/x32-avx-linux.c: Rebuild.
204 * features/i386/x32-avx.c: Rebuild.
205 * features/i386/x32-linux.c: Rebuild.
206 * features/i386/x32.c: Rebuild.
207 * features/mips-dsp-linux.c: Rebuild.
208 * features/mips-linux.c: Rebuild.
209 * features/mips64-dsp-linux.c: Rebuild.
210 * features/mips64-linux.c: Rebuild.
211 * features/rs6000/powerpc-32.c: Rebuild.
212 * features/rs6000/powerpc-32l.c: Rebuild.
213 * features/rs6000/powerpc-403.c: Rebuild.
214 * features/rs6000/powerpc-403gc.c: Rebuild.
215 * features/rs6000/powerpc-405.c: Rebuild.
216 * features/rs6000/powerpc-505.c: Rebuild.
217 * features/rs6000/powerpc-601.c: Rebuild.
218 * features/rs6000/powerpc-602.c: Rebuild.
219 * features/rs6000/powerpc-603.c: Rebuild.
220 * features/rs6000/powerpc-604.c: Rebuild.
221 * features/rs6000/powerpc-64.c: Rebuild.
222 * features/rs6000/powerpc-64l.c: Rebuild.
223 * features/rs6000/powerpc-7400.c: Rebuild.
224 * features/rs6000/powerpc-750.c: Rebuild.
225 * features/rs6000/powerpc-860.c: Rebuild.
226 * features/rs6000/powerpc-altivec32.c: Rebuild.
227 * features/rs6000/powerpc-altivec32l.c: Rebuild.
228 * features/rs6000/powerpc-altivec64.c: Rebuild.
229 * features/rs6000/powerpc-altivec64l.c: Rebuild.
230 * features/rs6000/powerpc-cell32l.c: Rebuild.
231 * features/rs6000/powerpc-cell64l.c: Rebuild.
232 * features/rs6000/powerpc-e500.c: Rebuild.
233 * features/rs6000/powerpc-e500l.c: Rebuild.
234 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
235 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
236 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
237 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
238 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
239 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
240 * features/rs6000/powerpc-vsx32.c: Rebuild.
241 * features/rs6000/powerpc-vsx32l.c: Rebuild.
242 * features/rs6000/powerpc-vsx64.c: Rebuild.
243 * features/rs6000/powerpc-vsx64l.c: Rebuild.
244 * features/rs6000/rs6000.c: Rebuild.
245 * features/s390-linux32.c: Rebuild.
246 * features/s390-linux32v1.c: Rebuild.
247 * features/s390-linux32v2.c: Rebuild.
248 * features/s390-linux64.c: Rebuild.
249 * features/s390-linux64v1.c: Rebuild.
250 * features/s390-linux64v2.c: Rebuild.
251 * features/s390x-linux64.c: Rebuild.
252 * features/s390x-linux64v1.c: Rebuild.
253 * features/s390x-linux64v2.c: Rebuild.
254 * features/tic6x-c62x-linux.c: Rebuild.
255 * features/tic6x-c62x.c: Rebuild.
256 * features/tic6x-c64x-linux.c: Rebuild.
257 * features/tic6x-c64x.c: Rebuild.
258 * features/tic6x-c64xp-linux.c: Rebuild.
259 * features/tic6x-c64xp.c: Rebuild.
261 2012-07-27 Tom Tromey <tromey@redhat.com>
263 * c-exp.y (classify_name): Avoid assignment in condition.
265 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
267 * amd64-windows-tdep.c: Include "frame.h".
268 (amd64_windows_skip_trampoline_code): New function.
269 (amd64_windows_init_abi): Add trampoline registration.
271 2012-07-27 Yao Qi <yao@codesourcery.com>
273 * tracepoint.c (cur_traceframe_number): Remove.
274 (set_tfile_traceframe): Remove.
275 (tfile_trace_find, tfile_fetch_registers): Update callers.
276 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
277 (tfile_open, tfile_trace_find): Likewise.
279 2012-07-27 Yao Qi <yao@codesourcery.com>
281 * thread.c (switch_to_thread): Don't call registers_changed.
283 2012-07-26 Tom Tromey <tromey@redhat.com>
285 * Makefile.in (SFILES): Remove objc-exp.y.
286 (YYFILES): Remove objc-exp.c.
287 (YYOBJ): Remove objc-exp.o.
288 (local-maintainer-clean): Don't mention objc-exp.c.
289 * c-exp.y: Include objc-lang.h.
290 (%union) <class>: New field.
291 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
292 (exp): Clone subscript production for OBJC_LBRAC. Add various
293 Objective C productions.
294 (msglist, msgarglist, msgarg): New productions.
295 (array_mod, func_mod, operator): Clone productions for
297 (parse_string_or_char): Handle '@' strings.
298 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
299 (classify_name): Check la_name_of_this. Recognize ObjC class
301 * objc-exp.y: Remove.
302 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
303 * objc-lang.h (objc_parse, objc_error): Don't declare.
305 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
307 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
309 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
311 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
314 2012-07-26 Tom Tromey <tromey@redhat.com>
316 * copying.c: Rebuild.
317 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
320 2012-07-26 Tom Tromey <tromey@redhat.com>
322 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
324 (print_objfile_statistics): Likewise.
325 (maintenance_print_symbols): Likewise.
326 (maintenance_print_msymbols): Likewise.
327 (maintenance_print_objfiles): Likewise.
328 * psymtab.c (print_partial_symbols): Call QUIT.
329 (maintenance_print_psymbols): Likewise. Don't modify
331 * copying.c (show_copying_command): Don't modify immediate_quit.
332 (show_warranty_command): Likewise.
333 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
335 2012-07-26 Keith Seitz <keiths@redhat.com>
337 * linespec.c (linespec_lexer_lex_number): The input
338 is also a valid number if the next character is a comma
341 2012-07-26 Joel Brobecker <brobecker@adacore.com>
343 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
346 2012-07-26 Tristan Gingold <gingold@adacore.com>
348 * machoread.c: Include gdb_bfd.h.
350 2012-07-26 Tristan Gingold <gingold@adacore.com>
352 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
355 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
357 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
359 (dwarf2_evaluate_loc_desc): Likewise.
360 (dwarf2_loc_desc_needs_frame): Likewise.
361 (locexpr_describe_location_1): Likewise.
362 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
364 (struct dwarf2_loclist_baton): Likewise.
365 * dwarf2read.c (struct dwarf_block): Likewise.
366 (dump_die_shallow): Use pulongest to print dwarf_block.size.
367 (decode_locdesc): Expand SIZE and I to size_t.
369 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
371 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
373 2012-07-25 Joel Brobecker <brobecker@adacore.com>
375 * doublest.c (convert_doublest_to_floatformat): If the exponent
376 is too small, treat the value as zero. If the exponent is too
377 large, treat the value as infinity.
379 2012-07-25 Joel Brobecker <brobecker@adacore.com>
381 * configure.ac: Add --enable-lmcheck configure option.
382 * configure: Regenerate.
384 2012-07-25 Tom Tromey <tromey@redhat.com>
386 * NEWS: Mention maint info bfds.
387 * gdb_bfd.c (all_bfds): New global.
388 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
389 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
392 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
394 * configure.tgt: Add v850*-*-rtems*.
396 2012-07-25 Tom Tromey <tromey@redhat.com>
398 * macrotab.c (macro_bcache_str): Remove cast.
400 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
402 * linespec.c (linespec_lexer_lex_number): Update comments,
403 change the return and add check to make sure the input is
405 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
406 false, call linespec_lexer_lex_string.
408 2012-07-24 Tom Tromey <tromey@redhat.com>
410 * symfile.c (symbol_file_add): Don't open BFD twice.
412 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
414 * breakpoint.c (create_breakpoint): Store condition for pending
417 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
419 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
420 (m68k_return_value): Handle complex types like structures.
421 (m68k_svr4_return_value): Likewise.
423 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
425 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
426 parameters to bfd_get_section_name.
428 2012-07-24 Yao Qi <yao@codesourcery.com>
430 * cli/cli-setshow.c: Handle case 'var_uinteger'
431 and 'var_zuninteger' together. Handle case 'var_integer' and
432 'var_zinteger' together.
434 2012-07-23 Keith Seitz <keiths@redhat.com>
436 * linespec.c (convert_linespec_to_sal): Don't add
437 any symbols to the result vector if symbol_to_sal
440 2012-07-23 Keith Seitz <keiths@redhat.com>
442 * linespec.c (decode_objc): Record the function name
445 2012-07-23 Tom Tromey <tromey@redhat.com>
447 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
449 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
450 (map_vmap): Acquire a reference to the BFD.
452 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
454 * p-valprint.c (pascal_object_print_value): Replace potentially
455 unsafe alloca with xmalloc/xfree.
456 * valops.c (search_struct_method): Likewise.
458 2012-07-23 Tom Tromey <tromey@redhat.com>
460 * solib-svr4.c (enable_break): Update.
461 * bfd-target.h (target_bfd_reopen): Update documentation.
463 2012-07-23 Tom Tromey <tromey@redhat.com>
465 * symfile.c (separate_debug_file_exists): Update.
466 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
467 (reread_symbols): Update.
468 * elfread.c (build_id_verify): Update.
469 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
470 bfd_open_maybe_remote.
472 2012-07-23 Tom Tromey <tromey@redhat.com>
474 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
476 2012-07-23 Tom Tromey <tromey@redhat.com>
478 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
480 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
482 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
483 * machoread.c (macho_add_oso_symfile): Make a cleanup for
485 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
486 * objfiles.c (allocate_objfile): Acquire a new reference.
487 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
488 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
489 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
490 a cleanup for 'nbfd'.
491 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
493 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
494 make a cleanup for 'abfd'.
495 (symbol_file_add): Make a BFD cleanup.
497 2012-07-23 Tom Tromey <tromey@redhat.com>
499 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
500 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
501 * corelow.c (core_open): Use gdb_bfd_fopen.
502 * dsrec.c (load_srec): Use gdb_bfd_openr.
503 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
504 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
505 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
506 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
507 (gdb_bfd_fdopenr): New functions.
508 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
509 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
510 (gdb_bfd_fdopenr): Declare.
511 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
512 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
513 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
514 gdb_bfd_openr_next_archived_file.
515 (macho_check_dsym): Use gdb_bfd_openr.
516 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
517 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
518 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
519 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
521 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
522 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
523 gdb_bfd_openr_next_archived_file.
524 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
526 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
528 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
529 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
530 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
531 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
532 (symfile_bfd_open): Use gdb_bfd_fopen.
533 (generic_load): Use gdb_bfd_openr.
534 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
536 2012-07-23 Tom Tromey <tromey@redhat.com>
538 * bfd-target.c (target_bfd_reopen): Update.
539 * cli/cli-dump.c (bfd_openr_with_cleanup)
540 (bfd_openw_with_cleanup): Update.
541 * corelow.c (core_open): Update.
542 * dsrec.c (load_srec): Update.
543 * exec.c (exec_file_attach): Update.
544 * gcore.c (create_gcore_bfd): Update.
545 * gdb_bfd.c (gdb_bfd_ref): Return void.
546 (gdb_bfd_open): Update.
547 * gdb_bfd.h (gdb_bfd_ref): Return void.
549 * jit.c (jit_bfd_try_read_symtab): Update.
550 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
551 * machoread.c (macho_symfile_read_all_oso): Update.
552 (macho_check_dsym): Update.
553 * procfs.c (insert_dbx_link_bpt_in_file): Update.
554 * remote-m32r-sdi.c (m32r_load): Update.
555 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
556 * rs6000-nat.c (add_vmap): Update.
557 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
559 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
560 * solib-spu.c (spu_bfd_open): Update.
561 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
562 * spu-linux-nat.c (spu_bfd_open): Update.
563 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
564 (generic_load): Update.
565 * windows-nat.c (windows_make_so): Update.
567 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
569 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
571 2012-07-20 Jeff Kenton <jkenton@tilera.com>
573 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
574 SIGTRAMP_FRAME unwinding.
576 2012-07-20 Doug Evans <dje@google.com>
578 * NEWS: Document new options "set/show use-deprecated-index-sections",
579 and delete reference to --use-deprecated-index-sections.
580 * symfile.h (use_deprecated_index_sections): Delete.
581 * dwarf2read.c (use_deprecated_index_sections): Make static.
582 (read_index_from_section): Update wording of how to load
583 deprecated index sections.
584 (_initialize_dwarf2_read): New options
585 "set/show use-deprecated-index-sections".
586 * main.c (captured_main): Delete --use-deprecated-index-sections.
588 2012-07-20 Pedro Alves <palves@redhat.com>
593 * infrun.c (handle_inferior_event) <new thread>: Don't special
595 <TARGET_WAITKIND_SPURIOUS>: Ditto.
596 * linux-thread-db.c (thread_get_info_callback): Don't return early
597 if the thread is zombie.
598 (thread_from_lwp): Change return type to void. Rewrite stale
600 (attach_thread): Don't return early if the thread is zombie,
601 instead set its "dying" flag.
602 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
603 (find_new_threads_callback): Don't return early if the thread is
606 2012-07-20 Pedro Alves <palves@redhat.com>
608 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
609 * target.c (target_wait): Likewise.
610 (str_comma_list_concat_elem, do_option, target_options_to_string):
612 * target.h (target_options_to_string): Declare.
614 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
615 Tom Tromey <tromey@redhat.com>
617 * dwarf2read.c (dwarf_decode_macros)
618 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
619 DW_MACRO_GNU_transparent_include_alt>: New cases.
620 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
621 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
623 2012-07-20 Tom Tromey <tromey@redhat.com>
625 * dwarf2read.c (try_open_dwo_file): Don't call
626 gdb_bfd_stash_filename.
628 2012-07-20 Pedro Alves <palves@redhat.com>
630 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
631 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
632 (i386_process_record): Tweak description comments.
634 2012-07-20 Pedro Alves <palves@redhat.com>
636 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
637 (i386_process_record): Use record_read_memory.
638 * record.c (record_read_memory): New function.
639 (record_arch_list_add_mem, record_exec_insn): Use
641 * record.h (record_read_memory): Declare.
643 2012-07-20 Yao Qi <yao@codesourcery.com>
645 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
648 2012-07-19 Pedro Alves <palves@redhat.com>
650 * record.c (record_resume): Ask the target beneath to report all
653 2012-07-19 Doug Evans <dje@google.com>
655 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
656 there's no section at address zero.
657 (dwarf2_record_block_ranges): Ditto.
659 2012-07-19 Yao Qi <yao@codesourcery.com>
661 * command.h, remote.c: Fix a typo in comment.
663 2012-07-19 Tom Tromey <tromey@redhat.com>
666 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
667 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
668 OP_DECLTYPE>: New cases.
669 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
670 (type_exp): Add new productions.
671 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
673 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
675 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
676 OP_DECLTYPE>: New case.
677 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
679 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
680 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
682 2012-07-19 Tom Tromey <tromey@redhat.com>
684 * c-exp.y (enum token_flags): New.
685 (struct token) <cxx_only>: Remove.
687 (tokentab3, tokentab2, ident_tokens): Update.
688 (lex_one_token): Update. Handle FLAG_SHADOW.
690 2012-07-19 Tom Tromey <tromey@redhat.com>
692 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
693 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
694 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
695 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
696 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
697 type_exp production where appropriate.
698 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
699 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
700 <UNOP_MEMVAL_TYPE>: New case.
701 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
702 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
703 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
704 <UNOP_MEMVAL_TYPE>: New case.
705 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
706 UNOP_REINTERPRET_CAST>: Update.
707 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
708 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
709 UNOP_REINTERPRET_CAST>: Update.
710 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
711 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
712 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
715 2012-07-19 Yao Qi <yao@codesourcery.com>
716 Jan Kratochvil <jan.kratochvil@redhat.com>
718 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
719 and case 'var_optional_filename' together.
720 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
721 instead of add_setshow_optional_filename_cmd for setshow command
722 'args'. Set completer for 'set args'.
724 2012-07-18 Doug Evans <dje@google.com>
726 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
727 * common/gdb_vecs.c: New file, contents from utils.c.
728 * common/host-defs.h: New file, contents from defs.h.
729 * utils.h: New file, contents from defs.h.
730 * defs.h: Move all declarations of objects defined in utils.c
731 to utils.h (except QUIT() and related).
732 #include "utils.h", "host-defs.h".
733 * probe.h (probe_p): Move here from gdb_vecs.h.
734 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
735 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
736 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
737 * Makefile.in (SFILES): Add common/gdb_vecs.c.
738 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
739 (COMMON_OBS): Add gdb_vecs.o.
740 (gdb_vecs.o): New rule.
742 2012-07-18 Keith Seitz <keiths@redhat.com>
744 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
745 parameter. If non-zero, use SYMNAME as the canonical name
748 (convert_linespec_to_sals): Use add_sal_to_sals for
750 (decode_line_full): No need to "fill in missing canonical names"
751 anymore. Simply make cleanups for the allocated names.
753 2012-07-18 Keith Seitz <keiths@redhat.com>
755 * linespec.c (struct linespec): Constify expression,
756 source_filename, function_name, and label_name.
757 (symbol_not_found_error): Make all parameters const.
758 (linespec_parser_delete): No need to check for NULL
759 when using xfree. Cast const char * to char * for xfree.
761 2012-07-18 Keith Seitz <keiths@redhat.com>
763 * breakpoint.c (invalid_thread_id_error): New function.
764 (find_condition_and_thread): Use invalid_thread_id_error.
765 (watch_command_1): Likewise.
767 2012-07-18 Tom Tromey <tromey@redhat.com>
769 * cc-with-index.sh, cc-with-dwz.sh: Remove.
770 * contrib/cc-with-tweaks.sh: New file.
772 2012-07-18 Tom Tromey <tromey@redhat.com>
774 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
775 (locate_dwz_sections): Recognize .gdb_index.
776 (create_cus_from_index_list): New function.
777 (create_cus_from_index): Use it. Handle .dwz data.
778 (read_index_from_section): New function, extracted from
780 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
783 2012-07-18 Tom Tromey <tromey@redhat.com>
785 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
786 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
788 (struct dwz_file): New.
789 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
790 (locate_dwz_sections, dwarf2_get_dwz_file)
791 (get_abbrev_section_for_cu): New functions.
792 (error_check_comp_unit_head, read_and_check_comp_unit_head)
793 (read_and_check_type_unit_head): Add abbrev_section argument.
794 (create_debug_types_hash_table): Update.
795 (init_cutu_and_read_dies): Use proper abbrev section.
796 (init_cutu_and_read_dies_no_follow): Likewise.
797 (set_partial_user): Do nothing if PST==NULL.
798 (read_comp_units_from_section): New function.
799 (create_all_comp_units): Use it.
800 (scan_partial_symbols, partial_die_parent_scope): Update.
801 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
802 (process_imported_unit_die, read_partial_die): Handle .dwz files.
803 (find_partial_die): Add offset_in_dwz argument. Update.
804 (guess_partial_die_structure_name, fixup_partial_die): Update.
805 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
806 DW_FORM_GNU_strp_alt.
807 (read_indirect_string_from_dwz): New function.
808 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
809 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
810 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
811 (follow_die_offset): Add offset_in_dwz argument.
812 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
813 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
814 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
815 Handle new macro forms.
816 (dwarf_decode_macros): Update.
817 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
818 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
819 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
820 (create_debug_types_hash_table): Use correct abbrev section.
821 (get_debug_line_section): New function.
822 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
823 (process_full_comp_unit): Pass 'required' argument to
824 end_symtab_get_static_block.
825 * buildsym.h (end_symtab_get_static_block): Update.
826 * buildsym.c (end_symtab_get_static_block): Add 'required'
828 (end_symtab, end_expandable_symtab): Update.
830 2012-07-18 Tom Tromey <tromey@redhat.com>
832 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
834 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
835 (zlib_decompress_section): Remove.
836 (dwarf2_read_section): Use gdb_bfd_map_section.
837 (munmap_section_buffer): Remove.
838 (free_dwo_file, dwarf2_per_objfile_free): Don't use
839 munmap_section_buffer.
840 * gdb_bfd.c: Include zlib.h, sys/mman.h.
841 (struct gdb_bfd_section_data): New.
842 (free_one_bfd_section): New function.
843 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
844 (get_section_descriptor, zlib_decompress_section)
845 (gdb_bfd_map_section): New functions.
846 * gdb_bfd.h (gdb_bfd_map_section): Declare.
848 2012-07-18 Tom Tromey <tromey@redhat.com>
850 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
852 2012-07-18 Tom Tromey <tromey@redhat.com>
854 * gdb_bfd.c (struct gdb_bfd_data): New.
855 (gdb_bfd_cache): New global.
856 (struct gdb_bfd_cache_search): New.
857 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
858 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
859 * gdb_bfd.h (gdb_bfd_open): Declare.
861 2012-07-18 Tom Tromey <tromey@redhat.com>
863 * utils.c (make_cleanup_bfd_unref): Rename from
864 make_cleanup_bfd_close.
865 * defs.h (make_cleanup_bfd_unref): Rename from
866 make_cleanup_bfd_close.
867 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
868 (bfd_openw_with_cleanup): Update.
869 * corelow.c (core_open): Update.
870 * dsrec.c (load_srec): Update.
871 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
872 * remote-m32r-sdi.c (m32r_load): Update.
873 * remote-mips.c (mips_load_srec): Update.
874 (pmon_load_fast): Update.
875 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
877 (darwin_bfd_open): Update.
878 * solib.c (solib_bfd_fopen): Update.
879 * symfile-mem.c (symbol_file_add_from_memory): Update.
880 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
881 (symfile_bfd_open): Update.
882 (generic_load): Update.
884 2012-07-18 Tom Tromey <tromey@redhat.com>
886 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
887 (pmon_load_fast): Likewise.
888 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
889 (m32r_upload_command): Likewise.
890 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
891 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
892 Use make_cleanup_bfd_close.
894 2012-07-18 Tom Tromey <tromey@redhat.com>
896 * symfile.c (symfile_bfd_open): Don't copy name. Call
897 gdb_bfd_stash_filename.
898 (load_command): Open the new BFD before freeing the old.
899 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
900 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
901 Call gdb_bfd_stash_filename.
902 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
903 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
904 gdb_bfd_stash_filename.
905 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
907 * rs6000-nat.c (add_vmap): Don't copy filename. Call
908 gdb_bfd_stash_filename.
909 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
910 * machoread.c (macho_add_oso_symfile): Call
911 gdb_bfd_stash_filename.
912 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
913 gdb_bfd_stash_filename.
914 (macho_check_dsym): Don't copy filename. Call
915 gdb_bfd_stash_filename.
916 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
917 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
918 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
919 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
920 * exec.c (exec_close): Don't free the BFD's filename.
921 (exec_file_attach): Don't copy the filename. Call
922 gdb_bfd_stash_filename.
923 * corelow.c (core_close): Don't free the BFD's filename.
924 (core_open): Call gdb_bfd_stash_filename.
925 * corefile.c (reopen_exec_file): Remove #if 0 code.
926 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
928 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
930 2012-07-18 Tom Tromey <tromey@redhat.com>
932 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
934 (free_dwo_file): Use gdb_bfd_unref.
935 * cli/cli-dump.c: Include gdb_bfd.h.
936 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
937 (bfd_openr_with_cleanup): Likewise.
938 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
940 * utils.c: Include gdb_bfd.h.
941 (do_bfd_close_cleanup): Use gdb_bfd_unref.
942 * symfile.c: Include gdb_bfd.h.
943 (separate_debug_file_exists): Use gdb_bfd_unref.
944 (bfd_open_maybe_remote): Use gdb_bfd_ref.
945 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
946 (generic_load): Use gdb_bfd_ref.
947 (reread_symbols): Use gdb_bfd_unref.
948 * symfile-mem.c: Include gdb_bfd.h.
949 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
950 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
951 * solib.c: Include gdb_bfd.h.
952 (solib_bfd_fopen): Use gdb_bfd_ref.
953 (solib_bfd_open): Use gdb_bfd_unref.
954 (free_so_symbols): Use gdb_bfd_unref.
955 (reload_shared_libraries_1): Use gdb_bfd_unref.
956 * solib-spu.c: Include gdb_bfd.h.
957 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
958 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
960 * solib-frv.c: Include gdb_bfd.h.
961 (enable_break2): Use gdb_bfd_unref.
962 * solib-dsbt.c: Include gdb_bfd.h.
963 (enable_break2): Use gdb_bfd_unref.
964 * solib-darwin.c: Include gdb_bfd.h.
965 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
967 (darwin_bfd_open): Use gdb_bfd_unref.
968 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
969 * remote-mips.c: Include gdb_bfd.h.
970 (mips_load_srec): Use gdb_bfd_ref.
971 (pmon_load_fast): Use gdb_bfd_ref.
972 * remote-m32r-sdi.c: Include gdb_bfd.h.
973 (m32r_load): Use gdb_bfd_ref.
974 * record.c: Include gdb_bfd.h.
975 (record_save_cleanups): Use gdb_bfd_unref.
976 (cmd_record_save): Use gdb_bfd_unref.
977 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
979 * objfiles.h (gdb_bfd_close_or_warn): Remove.
980 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
981 * objfiles.c: Include gdb_bfd.h.
982 (free_objfile): Use gdb_bfd_unref.
983 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
985 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
986 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
987 (macho_check_dsym): Likewise.
988 * m32r-rom.c: Include gdb_bfd.h.
989 (m32r_load): Use gdb_bfd_ref.
990 (m32r_upload_command): Use gdb_bfd_ref.
991 * jit.c: Include gdb_bfd.h.
992 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
993 * gdb_bfd.h: New file.
994 * gdb_bfd.c: New file.
995 * gcore.c: Include gdb_bfd.h.
996 (create_gcore_bfd): Use gdb_bfd_ref.
997 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
998 (gcore_command): Use gdb_bfd_unref.
999 * exec.c: Include gdb_bfd.h.
1000 (exec_close): Use gdb_bfd_unref.
1001 (exec_close_1): Use gdb_bfd_unref.
1002 (exec_file_attach): Use gdb_bfd_ref.
1003 * elfread.c: Include gdb_bfd.h.
1004 (build_id_verify): Use gdb_bfd_unref.
1005 * dsrec.c: Include gdb_bfd.h.
1006 (load_srec): Use gdb_bfd_ref.
1007 * corelow.c: Include gdb_bfd.h.
1008 (core_close): Use gdb_bfd_unref.
1009 (core_open): Use gdb_bfd_ref.
1010 * bfd-target.c: Include gdb_bfd.h.
1011 (target_bfd_xclose): Use gdb_bfd_unref.
1012 (target_bfd_reopen): Use gdb_bfd_ref.
1013 * Makefile.in (SFILES): Add gdb_bfd.c.
1014 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1015 (COMMON_OBS): Add gdb_bfd.o.
1017 2012-07-18 Keith Seitz <keiths@redhat.com>
1019 * breakpoint.c (find_condition_and_thread): Initialize
1021 (create_breakpiont): find_condition_and_thread will now
1022 initialize COND_STRING, THREAD, and REST (and TASK).
1023 (addr_string_to_sals): Likewise.
1025 2012-07-18 Pedro Alves <palves@redhat.com>
1027 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1028 Pull the single step breakpoints out of the target.
1030 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1032 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1033 * stap-probe.c (compile_probe_arg): Likewise.
1035 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1037 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1038 (elf_compile_to_ax): Likewise.
1039 * infrun.c (insert_exception_resume_from_probe): Likewise.
1040 (check_exception_resume): Remove `objfile' variable.
1041 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1042 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1043 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1044 (compare_entries): Rename to...
1045 (compare_probes): ...this. Adjust function to work with
1046 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1048 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1050 (print_ui_out_info): Adjust argument to be `struct probe *'.
1051 (info_probes_for_ops): Adjust internal computations to use
1053 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1054 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1055 gen_info_probes_table_values>: Remove `objfile' argument.
1056 (struct probe) <objfile>: New field.
1057 (find_probe_by_pc): Remove `objfile' argument.
1058 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1059 (stap_get_probe_argument_count): Likewise.
1060 (stap_get_arg): Likewise.
1061 (stap_evaluate_probe_argument): Likewise.
1062 (stap_compile_to_ax): Likewise.
1063 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1064 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1065 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1066 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1067 sym_compile_to_ax>: Likewise.
1069 2012-07-18 Terry Guo <terry.guo@arm.com>
1072 * defs.h (GDB_MI_MSG_WIDTH): New.
1073 * ser_base (ser_base_read_error_fd): New function.
1074 (do_ser_base_readchar): Poll error file descriptor as well as
1076 (generic_readchar): Refactor error handling.
1078 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1080 * NEWS: Create a new section for the next release branch.
1081 Rename the section of the current branch, now that it has
1084 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1086 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1087 * version.in: Bump version to 7.5.50.20120718-cvs.
1089 2012-07-17 Keith Seitz <keiths@redhat.com>
1091 * linespec.c (linespec_parse_line_offset): Make parameter
1094 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 * f-valprint.c (info_common_command): New variable frame_id.
1098 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1099 * printcmd.c (print_variable_and_value): Extend function comment.
1100 Add comment for invalidated FRAME.
1101 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1102 FI form FRAME_ID after each print_frame_local_vars.
1103 (struct print_variable_and_value_data): Change frame to frame_id.
1104 (do_print_variable_and_value): New variable frame, initialize it from
1105 p->frame_id. Add comment for invalidated FRAME.
1106 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1107 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1108 for invalidated FRAME.
1110 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1111 Pedro Alves <palves@redhat.com>
1113 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1116 2012-07-16 Tom Tromey <tromey@redhat.com>
1118 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1120 2012-07-15 Doug Evans <dje@google.com>
1122 * dwarf2read.c (stmt_list_hash): New struct.
1123 (type_unit_group): Embed "per_cu" member, remove pointer.
1124 New union member "t", move member "tus" into it, all uses updated.
1125 New member "hash", replaces member "line_offset, all uses updated.
1126 (quick_file_names): Replace member "offset" with "hash", all uses
1128 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1129 (hash_file_name_entry, eq_file_name_entry): Call them.
1130 (hash_type_unit_group, eq_type_unit_group): Ditto.
1131 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1132 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1133 (dw2_get_file_names): Update.
1134 (create_type_unit_group): Replace "per_cu" arg with "cu".
1135 All callers updated. Fix "quick" (.gdb_index) handling.
1136 (get_type_unit_group): Replace "per_cu" arg with "cu".
1137 All callers updated.
1138 (build_type_unit_groups): Don't reset tu_stats.
1140 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1141 "tab_cur_size". Change member "tab" to be a htab_t.
1142 (create_filename_seen_cache): Update.
1143 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1144 (filename_seen): Update.
1146 2012-07-13 Doug Evans <dje@google.com>
1148 * symtab.c (filename_seen): Update comment.
1150 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 Doug Evans <dje@google.com>
1153 * buildsym.c (end_symtab_1): Split it to ...
1154 (end_symtab_get_static_block): ... this ...
1155 (end_symtab_from_static_block): ... and this function.
1156 (end_symtab, end_expandable_symtab): Call them.
1157 * buildsym.h (end_symtab_get_static_block)
1158 (end_symtab_from_static_block): New declarations.
1159 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1160 Set its valid CU ranges.
1162 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1164 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1165 DW_OP_GNU_parameter_ref.
1167 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1169 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1170 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1172 2012-07-13 Doug Evans <dje@google.com>
1174 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1175 (filename_seen_cache): New struct.
1176 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1177 (create_filename_seen_cache): New function.
1178 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1179 (filename_seen): Delete arg "first". New arg "cache". All callers
1181 (output_source_filename_data): New struct.
1182 (output_source_filename): Delete arg "first". New arg "data".
1183 All callers updated.
1184 (sources_info): Delete local "first". New locals "data", "cleanups".
1185 Rewrite to use filename_seen_cache.
1186 (add_partial_filename_data): Delete member "first". New member
1187 "filename_seen_cache". All uses updated.
1188 (make_source_files_completion_list): Rewrite to use
1189 filename_seen_cache.
1191 2012-07-12 Doug Evans <dje@google.com>
1193 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1195 2012-07-10 Doug Evans <dje@google.com>
1198 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1199 all_type_unit_groups, type_unit_groups, tu_stats.
1200 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1201 All uses updated. Add type_unit_group to union "s".
1202 (type_unit_group): New struct.
1203 (IS_TYPE_UNIT_GROUP): New macro.
1204 (abbrev_table): Delete unused member "section".
1205 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1206 (dw2_get_cu): Assert not used with type_unit_group.
1207 (dw2_get_primary_cu): New function.
1208 (dw2_build_type_unit_groups_reader): New function.
1209 (dw2_build_type_unit_groups): New function.
1210 (dw2_get_file_names): Assert not called on type units.
1211 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1212 Redo loop to iterate over type unit groups instead of type units.
1213 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1214 (read_abbrev_offset): New function.
1215 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1217 (create_partial_symtab): New function.
1218 (process_psymtab_comp_unit_reader): Assert not used with type units.
1219 Call create_partial_symtab.
1220 (process_psymtab_type_unit): Delete.
1221 (hash_type_unit_group, eq_type_unit_group): New functions.
1222 (allocate_type_unit_groups_table): New function.
1223 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1224 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1225 (create_type_unit_group, get_type_unit_group): New functions.
1226 (tu_abbrev_offset): New struct.
1227 (sort_tu_by_abbrev_offset): New function.
1228 (add_type_unit_group_to_table): New function.
1229 (build_type_unit_groups): New function.
1230 (build_type_psymtabs_reader): New function.
1231 (build_type_psymtab_dependencies): New function.
1232 (build_type_psymtabs): Rewrite.
1233 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1234 is seen in a type unit.
1235 (process_queue): Move symtab expansion debugging printfs here.
1236 Call process_full_type_unit for type units.
1237 (compute_symtab_includes): Assert not called for type units.
1238 (process_cu_includes): Don't call compute_symtab_includes for
1240 (process_full_type_unit): New function.
1241 (process_imported_unit_die): Flag an error if called for type units.
1242 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1243 updated. Assert not called for type units.
1244 (read_file_scope): Call dwarf2_start_symtab.
1245 (setup_type_unit_groups): New function.
1246 (read_type_unit_scope): Rewrite.
1247 (abbrev_table_read_table): Initialize abbrev_table->offset.
1248 (abbrev_table_free_cleanup): New function.
1249 (dwarf2_start_symtab): New function.
1250 (load_full_type_unit): Assert not called for type unit groups.
1251 * buildsym.c (finish_block_internal): New arg "expandable".
1252 All callers updated.
1253 (start_symtab): Move most contents to ...
1254 (restart_symtab): ... here. New function.
1255 (reset_symtab_globals): New function.
1256 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1257 Call reset_symtab_globals.
1258 (end_symtab, end_expandable_symtab): New functions.
1259 (set_missing_symtab, augment_type_symtab): New functions.
1260 * buildsym.h (end_expandable_symtab): Declare.
1261 (augment_type_symtab, restart_symtab): Declare.
1262 * psympriv.h (struct partial_symtab): New member "anonymous".
1263 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1265 (read_psymtabs_with_filename): Ditto.
1266 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1267 (expand_symtabs_matching_via_partial): Ditto.
1268 (dump_psymtab): Update.
1269 * dictionary.c (dict_add_pending): New function.
1270 * dictionary.h (dict_add_pending): Declare.
1272 2012-07-09 Doug Evans <dje@google.com>
1274 * buildsym.c (start_subfile): Remove unnecessary check for
1277 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1279 * dwarf2read.c (load_full_type_unit): Simplify.
1281 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1282 to struct signatured_type **. All uses updated.
1284 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1285 All callers updated.
1287 2012-07-09 Tom Tromey <tromey@redhat.com>
1289 * c-exp.y (check_parameter_typelist): New function.
1290 (parameter_typelist): Call it.
1291 * eval.c (make_params): Handle '(void)' case.
1292 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1295 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1297 * common/linux-ptrace.c: Include gdb_assert.h.
1298 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1299 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1301 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1303 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1304 * linux-nat.c (linux_child_post_attach)
1305 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1307 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1309 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1310 nptl <2.7 bug workaround for core files.
1312 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1316 (save_siginfo): Remove.
1317 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1319 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1320 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1321 * linux-nat.h (struct lwp_info): Remove field siginfo.
1323 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1325 Code cleanup for the next patch.
1326 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1327 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1329 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1330 (ia64_linux_stopped_data_address):
1331 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1333 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1334 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1335 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1338 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1341 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1342 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1344 2012-07-06 Tom Tromey <tromey@redhat.com>
1346 * c-exp.y (DOTDOTDOT): New token.
1347 (func_mod, exp): Use parameter_typelist.
1348 (parameter_typelist): New production.
1349 (tokentab3): Add "..." token.
1350 * eval.c (make_params): Handle varargs.
1351 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1354 2012-07-06 Tom Tromey <tromey@redhat.com>
1357 * c-exp.y (%union) <tvec>: Change type.
1358 (func_mod): Now uses <tvec> type.
1359 (exp): Update for tvec change.
1360 (direct_abs_decl): Push the typelist.
1361 (func_mod): Return a typelist.
1362 (nonempty_typelist): Update for tvec change.
1363 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1364 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1365 * parse.c (pop_type_list): New function.
1366 (push_typelist): New function.
1367 (follow_types): Handle tp_function_with_arguments.
1368 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1369 (enum type_pieces) <tp_function_with_arguments>: New constant.
1370 (union type_stack_elt) <typelist_val>: New field.
1371 (push_typelist): Declare.
1373 2012-07-06 Tom Tromey <tromey@redhat.com>
1375 * c-exp.y (%union) <type_stack>: New field.
1376 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1377 (ptr_operator_ts): New production.
1379 * parse.c (type_stack_reserve): New function.
1380 (check_type_stack_depth): Use it.
1381 (pop_type_stack, append_type_stack, push_type_stack)
1382 (get_type_stack, type_stack_cleanup): New functions.
1383 (follow_types): Handle tp_type_stack.
1384 (_initialize_parse): Simplify initialization.
1385 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1387 (union type_stack_elt) <stack_val>: New field.
1388 (get_type_stack, append_type_stack, push_type_stack)
1389 (type_stack_cleanup): Declare.
1391 2012-07-06 Tom Tromey <tromey@redhat.com>
1393 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1395 (struct type_stack): New.
1396 * parse.c (type_stack, type_stack_size, type_stack_depth):
1398 (type_stack): New global.
1399 (parse_exp_in_context, check_type_stack_depth)
1400 (insert_into_type_stack, insert_type, push_type, push_type_int)
1401 (insert_type_address_space, pop_type, pop_type_int)
1402 (_initialize_parse): Update.
1404 2012-07-06 Tom Tromey <tromey@redhat.com>
1406 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1409 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1411 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1413 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1414 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1417 alloca with xmalloc/xfree.
1419 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1421 * MAINTAINERS (Write After Approval): Add myself to the list.
1423 2012-07-05 Doug Evans <dje@google.com>
1425 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1427 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1429 * ax-gdb.c (cli/cli-utils.h): New include.
1430 (linespec.h): Ditto.
1431 (agent_eval_command_one): New function.
1432 (agent_command_1): Ditto.
1433 (agent_command): Call function agent_command_1.
1434 (agent_eval_command): Ditto.
1435 (_initialize_ax_gdb): Change help for "maint agent"
1436 and "maint agent-eval".
1438 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1440 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1441 * cli/cli-utils.c (check_for_argument): New function.
1442 * cli/cli-utils.h (check_for_argument): Ditto.
1444 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1446 * NEWS: Mention x32 ABI support.
1448 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1450 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1451 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1453 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1454 and pc_regnum_from_eax to -1. Update SP regnum from
1455 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1458 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1461 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1463 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1464 * dwarf2expr.h: Include gdbtypes.h.
1465 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1466 these forward declarations.
1467 (cu_offset, sect_offset): Move these ...
1468 * gdbtypes.h: Remove include dwarf2expr.h.
1469 (cu_offset, sect_offset): ... here.
1471 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1473 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1474 (amd64_linux_sigtramp_code): This.
1475 (amd64_x32_linux_sigtramp_code): New.
1476 (LINUX_SIGTRAMP_LEN): Updated.
1477 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1479 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1481 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1483 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1485 * config.in: Regenerate.
1486 * configure: Regenerate.
1487 * configure.ac: Remove check for gnu/libc-version.h.
1488 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1490 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1491 variables libc_version, libc_major and libc_minor. Replace sscanf by
1492 inferior_has_bug. Extend the comment.
1494 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1496 * linux-thread-db.c (inferior_has_bug): New function.
1497 (thread_db_find_new_threads_silently): Return boolean as checked by
1498 inferior_has_bug, describe it in the comments.
1499 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1500 earlier. Abort the initialization if it returned non-zero.
1501 (thread_db_new_objfile): Exclude debug files.
1502 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1505 2012-07-02 Doug Evans <dje@google.com>
1507 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1508 related to queue management.
1510 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1511 instead of "debug dwarf2-die" in debugging printfs.
1512 (create_debug_info_hash_table_reader): Ditto.
1513 (create_debug_info_hash_table): Ditto.
1514 (init_dwo_file): Ditto.
1515 (init_cutu_and_read_dies): Add debugging printf.
1516 (init_cutu_and_read_dies_no_follow): Ditto.
1517 (process_psymtab_comp_unit_reader): Ditto.
1519 2012-07-02 Stan Shebs <stan@codesourcery.com>
1521 Add target-side support for dynamic printf.
1522 * NEWS: Mention the additional style.
1523 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1524 (struct bp_location): New field cmd_bytecode.
1525 * breakpoint.c: Include format.h.
1526 (disconnected_dprintf): New global.
1527 (parse_cmd_to_aexpr): New function.
1528 (build_target_command_list): New function.
1529 (insert_bp_location): Call it.
1530 (remove_breakpoints_pid): Skip dprintf breakpoints.
1531 (print_one_breakpoint_location): Ditto.
1532 (dprintf_style_agent): New global.
1533 (dprintf_style_enums): Add dprintf_style_agent.
1534 (update_dprintf_command_list): Add agent case.
1535 (agent_printf_command): New function.
1536 (_initialize_breakpoint): Add new commands.
1537 * common/ax.def (printf): New bytecode.
1538 * ax.h (ax_string): Declare.
1539 * ax-gdb.h (gen_printf): Declare.
1540 * ax-gdb.c: Include cli-utils.h, format.h.
1541 (gen_printf): New function.
1542 (maint_agent_print_command): New function.
1543 (_initialize_ax_gdb): Add maint agent-printf command.
1544 * ax-general.c (ax_string): New function.
1545 (ax_print): Add printf disassembly.
1546 * Makefile.in (SFILES): Add format.c
1547 (COMMON_OBS): Add format.o.
1548 * common/format.h: New file.
1549 * common/format.c: New file.
1550 * printcmd.c: Include format.h.
1551 (ui_printf): Call parse_format_string.
1552 * remote.c (remote_state): New field breakpoint_commands.
1553 (PACKET_BreakpointCommands): New enum.
1554 (remote_breakpoint_commands_feature): New function.
1555 (remote_protocol_features): Add new BreakpointCommands entry.
1556 (remote_can_run_breakpoint_commands): New function.
1557 (remote_add_target_side_commands): New function.
1558 (remote_insert_breakpoint): Call it.
1559 (remote_insert_hw_breakpoint): Ditto.
1560 (_initialize_remote): Add new packet configuration for
1561 target-side breakpoint commands.
1562 * target.h (struct target_ops): New field
1563 to_can_run_breakpoint_commands.
1564 (target_can_run_breakpoint_commands): New macro.
1565 * target.c (update_current_target): Handle
1566 to_can_run_breakpoint_commands.
1568 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1570 Execute -ix and -iex only after system and user gdbinit files.
1571 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1572 processing down after gdbinit files.
1574 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 Add fnmatch-gnu module.
1577 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1578 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1579 * gnulib/aclocal.m4: Regenerate.
1580 * gnulib/config.in: Regenerate.
1581 * gnulib/configure: Regenerate.
1582 * gnulib/import/dummy.c: Remove.
1583 * gnulib/import/Makefile.am: Regenerate.
1584 * gnulib/import/Makefile.in: Likewise.
1585 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1586 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1587 * gnulib/import/alloca.c: New file.
1588 * gnulib/import/alloca.in.h: Likewise.
1589 * gnulib/import/config.charset: Likewise.
1590 * gnulib/import/fnmatch.c: Likewise.
1591 * gnulib/import/fnmatch.in.h: Likewise.
1592 * gnulib/import/fnmatch_loop.c: Likewise.
1593 * gnulib/import/localcharset.c: Likewise.
1594 * gnulib/import/localcharset.h: Likewise.
1595 * gnulib/import/m4/alloca.m4: Likewise.
1596 * gnulib/import/m4/codeset.m4: Likewise.
1597 * gnulib/import/m4/configmake.m4: Likewise.
1598 * gnulib/import/m4/fcntl-o.m4: Likewise.
1599 * gnulib/import/m4/fnmatch.m4: Likewise.
1600 * gnulib/import/m4/glibc21.m4: Likewise.
1601 * gnulib/import/m4/localcharset.m4: Likewise.
1602 * gnulib/import/m4/locale-fr.m4: Likewise.
1603 * gnulib/import/m4/locale-ja.m4: Likewise.
1604 * gnulib/import/m4/locale-zh.m4: Likewise.
1605 * gnulib/import/m4/mbrtowc.m4: Likewise.
1606 * gnulib/import/m4/mbsinit.m4: Likewise.
1607 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1608 * gnulib/import/m4/mbstate_t.m4: Likewise.
1609 * gnulib/import/m4/stdbool.m4: Likewise.
1610 * gnulib/import/m4/wchar_h.m4: Likewise.
1611 * gnulib/import/m4/wctype_h.m4: Likewise.
1612 * gnulib/import/m4/wint_t.m4: Likewise.
1613 * gnulib/import/mbrtowc.c: Likewise.
1614 * gnulib/import/mbsinit.c: Likewise.
1615 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1616 * gnulib/import/mbsrtowcs-state.c: Likewise.
1617 * gnulib/import/mbsrtowcs.c: Likewise.
1618 * gnulib/import/ref-add.sin: Likewise.
1619 * gnulib/import/ref-del.sin: Likewise.
1620 * gnulib/import/stdbool.in.h: Likewise.
1621 * gnulib/import/streq.h: Likewise.
1622 * gnulib/import/strnlen1.c: Likewise.
1623 * gnulib/import/strnlen1.h: Likewise.
1624 * gnulib/import/verify.h: Likewise.
1625 * gnulib/import/wchar.in.h: Likewise.
1626 * gnulib/import/wctype.in.h: Likewise.
1628 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1630 Support shell wildcards for 'set auto-load safe-path'.
1631 * auto-load.c: Include fnmatch.h.
1632 (filename_is_in_dir): Rename to ...
1633 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1634 it. Update function comment. Rename dir_len to pattern_len. New
1635 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1636 messages. Use gdb_filename_fnmatch.
1637 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1639 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1640 * defs.h (gdb_filename_fnmatch): New declaration.
1641 * utils.c: Include fnmatch.h.
1642 (gdb_filename_fnmatch): New function.
1644 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1646 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1647 `-probe' and `-probe-stap' options.
1649 2012-07-01 Yao Qi <yao@codesourcery.com>
1651 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1652 always_inserted_off, and always_inserted_enums.
1653 Change always_inserted_mode's type to 'enum auto_boolean'.
1654 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1656 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1657 of add_setshow_enum_cmd.
1658 * infrun.c: Remove can_use_displaced_stepping_auto,
1659 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1660 can_use_displaced_stepping_enum.
1661 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1662 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1663 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1664 add_setshow_enum_cmd.
1666 2012-06-30 Doug Evans <dje@google.com>
1668 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1669 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1670 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1672 2012-06-29 Doug Evans <dje@google.com>
1674 * linespec.c: #include "stack.h".
1675 (decode_line_with_current_source): Moved here from symtab.c and
1676 renamed from decode_line_spec. All callers updated.
1677 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1678 renamed from decode_line_spec_1. All callers updated.
1679 * linespec.h (decode_line_with_current_source): Move declaration here
1680 from symtab.h and renamed from decode_line_spec.
1681 (decode_line_with_last_displayed): Move declaration here from symtab.h
1682 and renamed from decode_line_spec_1.
1683 * macrocmd.c: #include "linespec.h".
1684 * symtab.c: Remove #include "linespec.h".
1686 2012-06-28 Doug Evans <dje@google.com>
1688 * dwarf2read.c (get_cu_length): New function.
1689 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1690 (create_debug_types_hash_table): Ditto.
1691 (init_cutu_and_read_dies): Ditto.
1692 (init_cutu_and_read_dies_no_follow): Ditto.
1694 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1696 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1697 (struct abbrev_table): Define.
1698 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1700 (init_cutu_and_read_dies): Update.
1701 (abbrev_table_alloc_abbrev): New function. Replaces
1702 dwarf_alloc_abbrev. All callers updated.
1703 (abbrev_table_add_abbrev): New function.
1704 (abbrev_table_lookup_abbrev): New function. Replaces
1705 dwarf2_lookup_abbrev. All callers updated.
1706 (abbrev_table_read_table): New function. Contents moved here from
1707 dwarf2_read_abbrevs.
1708 (dwarf2_read_abbrevs): Call it.
1709 (abbrev_table_free): New function.
1710 (dwarf2_free_abbrev_table): Call it.
1712 2012-06-28 Stan Shebs <stan@codesourcery.com>
1714 * osdata.c (info_osdata_command): Filter out "Title" columns
1716 * common/linux-osdata.c (struct osdata_type): Add title field.
1717 (osdata_table): Add titles to each entry.
1718 (linux_command_xfer_osdata): Add a column for title data.
1720 2012-06-28 Stan Shebs <stan@codesourcery.com>
1722 Make logging work for MI.
1724 * interps.h (interp_set_logging_ftype): New typedef.
1725 (struct interp_procs): New field set_logging_proc.
1726 (current_interp_set_logging): Declare.
1727 * interps.c (current_interp_set_logging): New function.
1728 * cli/cli-logging.c: Include interps.h.
1729 (set_logging_redirect): Call current_interp_set_logging.
1730 (pop_output_files): Ditto.
1731 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1732 * mi/mi-console.h (mi_console_set_raw): Declare.
1733 * mi/mi-console.c (mi_console_set_raw): New function.
1734 * mi/mi-interp.c (saved_raw_stdout): New global.
1735 (mi_set_logging): New function.
1736 (_initialize_mi_interp): Add it to interp procs.
1738 2012-06-28 Doug Evans <dje@google.com>
1740 * symtab.c (lookup_symbol_aux_objfile): Use
1741 ALL_OBJFILE_PRIMARY_SYMTABS.
1743 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1745 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1747 * common/buffer.c: Include inttypes.h and stdint.h.
1748 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1750 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1751 Pedro Alves <palves@redhat.com>
1753 * gdbthread.h (ALL_THREADS): New macro.
1754 (thread_list): Declare.
1755 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1756 going, but instead fall through to the stepping handling.
1757 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1758 the passed in signal. Adjust debug output.
1759 (resume_callback): Rename to ...
1760 (linux_nat_resume_callback): ... this. Pass the thread's last
1761 stop signal, if in "pass" state.
1762 (linux_nat_resume): Adjust to rename.
1763 (stop_wait_callback): New assertion. Don't respawn signals;
1764 instead let the LWP remain with SIGNALLED set.
1765 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1766 * remote.c (append_pending_thread_resumptions): New.
1767 (remote_vcont_resume): Call it.
1768 * target.h (target_resume): Extend comment.
1770 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1772 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1774 2012-06-27 Doug Evans <dje@google.com>
1776 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1777 Delete have_addr_base, unused. All uses updated.
1778 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1779 (dwarf2_get_pc_bounds): Add ranges_base.
1780 (dwarf2_record_block_ranges): Ditto.
1782 2012-06-27 Tom Tromey <tromey@redhat.com>
1785 * varobj.c (varobj_create): Update.
1786 (varobj_set_value): Update.
1787 * tracepoint.c (validate_actionline): Update.
1788 (encode_actions_1): Update.
1789 * parse.c (parse_exp_1): Add 'pc' argument.
1790 (parse_exp_in_context): Add 'pc' argument. Change how
1791 expression_context_pc is set.
1792 (parse_expression): Update.
1793 (parse_field_expression): Update.
1794 * expression.h (parse_exp_1): Update.
1795 * eval.c (parse_to_comma_and_eval): Update.
1796 * breakpoint.c (set_breakpoint_condition): Update.
1797 (update_watchpoint): Update.
1798 (init_breakpoint_sal): Update
1799 (find_condition_and_thread): Update.
1800 (watch_command_1): Update.
1801 (update_breakpoint_locations): Update.
1802 * ada-lang.c (ada_read_renaming_var_value): Update.
1803 (create_excep_cond_exprs): Update.
1805 2012-06-27 Doug Evans <dje@google.com>
1807 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1810 2012-06-26 Doug Evans <dje@google.com>
1812 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1814 (error_check_comp_unit_head): New arg abbrev_section. All callers
1816 (read_and_check_comp_unit_head): Ditto.
1817 (read_and_check_type_unit_head): Ditto.
1819 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1821 New attribute 'last' for gdb.Symtab_and_line.
1822 * NEWS (Python Scripting): Add entry about the new attribute.
1823 * python/py-symtab.c (salpy_get_last): New function which
1824 implements the get method for the 'last' attribute of
1825 gdb.Symtab_and_line.
1826 (sal_object_getset): Add entry for the 'last' attribute.
1828 2012-06-26 Doug Evans <dje@google.com>
1830 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1831 (dwo_sections): Add macinfo, macro.
1832 (dwarf2_locate_dwo_sections): Watch for macro sections.
1833 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1834 All callers updated. Handle DWO files.
1836 * NEWS: Mention new options "set debug dwarf2-read" and
1837 "set debug symtab-create".
1838 * dwarf2read.c (dwarf2_read_debug): New static global.
1839 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1840 (process_queue): Ditto.
1841 (process_full_comp_unit): Ditto.
1842 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1843 * elfread.c (elf_symfile_read): Add debugging printf.
1844 * minsyms.c (install_minimal_symbols): Ditto.
1845 * psymtab.c (allocate_psymtab): Ditto.
1846 * symfile.c (allocate_symtab): Ditto.
1847 * symtab.c (symtab_create_debug): New global.
1848 (_initialize_symtab): Add new option "set debug symtab-create".
1849 * symtab.h (symtab_create_debug): Declare.
1851 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1852 (lookup_dwo_type_unit): Ditto.
1854 2012-06-26 Roland McGrath <roland@hack.frob.com>
1855 H.J. Lu <hongjiu.lu@intel.com>
1857 * amd64-linux-nat.c: Include <sys/user.h>.
1858 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1859 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1860 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1862 * configure.ac: Check if the fs_base and gs_base members of
1863 `struct user_regs_struct' exist.
1864 * config.in: Regenerated.
1865 * configure: Likewise.
1867 2012-06-25 Michael Eager <eager@eagercon.com>
1870 * python/python.c (gdbpy_write): Check for interrupted output.
1872 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1874 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1875 register as a stack alignment in ARM mode.
1877 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1879 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1880 * gnulib/config.in: Regenerate.
1881 * gnulib/configure: Likewise.
1882 * gnulib/import/m4/extensions.m4: Update it.
1883 * gnulib/import/m4/gnulib-common.m4: Likewise.
1884 * gnulib/import/m4/memmem.m4: Likewise.
1885 * gnulib/import/m4/mmap-anon.m4: Likewise.
1886 * gnulib/import/m4/multiarch.m4: Likewise.
1887 * gnulib/import/stdint.in.h: Likewise.
1889 2012-06-24 Yao Qi <yao@codesourcery.com>
1891 * corefile.c (write_memory_with_notification): New.
1892 * gdbcore.h: Declare write_memory_with_notification.
1893 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1894 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1895 * valops.c (value_assign): Likewise.
1896 * python/py-inferior.c (infpy_write_memory): Call
1897 'write_memory_with_notification'.
1899 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1901 * cc-with-index.sh: Use also -ex "set auto-load no".
1903 2012-06-23 Doug Evans <dje@google.com>
1906 * NEWS: Document additions to .gdb_index.
1907 * dwarf2read.c: #include "gdb/gdb-index.h".
1908 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1909 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1910 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1911 (dwarf2_read_index): Recognize version 7.
1912 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1913 block_kind, domain): All callers updated.
1914 (dw2_find_symbol_file): Handle new index CU values.
1915 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1916 (add_index_entry): New args is_static, kind. All callers updated.
1917 (offset_type_compare, uniquify_cu_indices): New functions
1918 (symbol_kind): New function.
1919 (write_psymtabs_to_index): Remove duplicate CU values.
1920 (write_psymtabs_to_index): Write .gdb_index version 7.
1922 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1924 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1925 * configure: Regenerate.
1927 2012-06-20 Yao Qi <yao@codesourcery.com>
1929 * python/py-inferior.c: Update comments of infpy_read_memory
1930 and infpy_write_memory.
1932 2012-06-19 Tom Tromey <tromey@redhat.com>
1935 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1936 (push_type_address_space): Remove.
1937 * parse.c (insert_into_type_stack): New function.
1938 (insert_type): Likewise.
1939 (insert_type_address_space): Rename from push_type_address_space.
1940 Insert tp_space_identifier.
1941 * c-exp.y (ptr_operator): New production.
1942 (abs_decl): Use ptr_operator.
1943 (space_identifier): Call insert_type_address_space.
1944 (ptype): Don't use const_or_volatile_or_space_identifier.
1945 (const_or_volatile_noopt): Call insert_type.
1946 (conversion_type_id, conversion_declarator): New productions.
1947 (operator): Use conversion_type_id.
1949 2012-06-18 Doug Evans <dje@google.com>
1951 * symtab.h (minimal_symbol): New member created_by_gdb.
1952 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1954 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1955 (search_symbols): Call it instead of lookup_symbol.
1956 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1958 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1959 Adjust address for DW_OP_GNU_addr_index.
1960 * dwarf2expr.h (dwarf_expr_context): Update comment.
1961 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1962 all callers updated. Handle TLS vars described with
1963 DW_OP_GNU_const_index.
1964 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1965 and DW_OP_GNU_const_index.
1966 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1968 * block.c (find_block_in_blockvector): Make explicit the fact that we
1969 ignore GLOBAL_BLOCK.
1971 2012-06-18 Tom Tromey <tromey@redhat.com>
1973 * c-exp.y (operator): Remove trailing space after "delete" and
1976 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1977 Jan Kratochvil <jan.kratochvil@redhat.com>
1979 Switch i386 and derived targets to ON_STACK.
1980 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1981 (amd64_dicos_init_abi): Remove its installment.
1982 * dicos-tdep.c (dicos_init_abi): Remove the
1983 set_gdbarch_call_dummy_location call. Update the comment here.
1984 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1985 (i386_dicos_init_abi): Remove its installment.
1986 * i386-tdep.c (i386_push_dummy_code): New function.
1987 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1988 i386_push_dummy_code.
1990 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 Remove stale dummy frames.
1993 * breakpoint.c: Include dummy-frame.h.
1994 (longjmp_breakpoint_ops): New variable.
1995 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1996 bp_longjmp_call_dummy.
1997 (bpstat_what, bptype_string, print_one_breakpoint_location)
1998 (init_bp_location): Support bp_longjmp_call_dummy.
1999 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2000 (set_longjmp_breakpoint_for_call_dummy)
2001 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2003 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2004 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2005 FIXME comment and extend the other comment for bp_call_dummy.
2006 (set_longjmp_breakpoint_for_call_dummy)
2007 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2008 * dummy-frame.c: Include gdbthread.h.
2009 (pop_dummy_frame_bpt): New function.
2010 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2011 (dummy_frame_discard): New function.
2012 (cleanup_dummy_frames): Update the comment about longjmps.
2013 * dummy-frame.h (dummy_frame_discard): New declaration.
2014 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2015 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2016 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2017 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2018 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2019 keep_going if IS_LONGJMP and there is no other reason to stop.
2021 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2023 * remote-sim.c (sim_command_completer): Initialize
2026 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2028 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2029 * dwarf2loc.c (call_site_parameter_matches): Support
2030 CALL_SITE_PARAMETER_PARAM_OFFSET.
2031 (needs_dwarf_reg_entry_value): Push stub value.
2032 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2033 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2034 * gdbtypes.h (enum call_site_parameter_kind): New item
2035 CALL_SITE_PARAMETER_PARAM_OFFSET.
2036 (struct call_site.parameter.u): New field param_offset.
2038 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2040 Code cleanup: Generalize call_site.parameter key.
2041 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2042 variable dwarf_reg. New variable kind_u. Update parameters to
2043 push_dwarf_reg_entry_value.
2044 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2045 * dwarf2expr.h (enum call_site_parameter_kind)
2046 (union call_site_parameter_u): Forward declarations.
2047 (struct dwarf_expr_context_funcs): Update parameters and their
2048 description for push_dwarf_reg_entry_value.
2049 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2050 * dwarf2loc.c (call_site_parameter_matches): New function.
2051 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2052 description. Use call_site_parameter_matches.
2053 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2054 Update parameters and their description.
2055 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2056 New variable kind_u. Adjust the caller for updated parameters.
2057 (needs_dwarf_reg_entry_value): Update parameters.
2058 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2059 instead of attr. Update for the changed fields of struct
2060 call_site_parameter.
2061 * gdbtypes.h: Include dwarf2expr.h.
2062 (enum call_site_parameter_kind): New.
2063 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2064 fb_offset into new union u.
2066 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2068 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2069 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2072 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2074 * amd64-linux-nat.c (compat_x32_clock_t): New.
2075 (compat_x32_siginfo_t): Likewise.
2076 (compat_x32_siginfo_from_siginfo): Likewise.
2077 (siginfo_from_compat_x32_siginfo): Likewise.
2078 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2079 and siginfo_from_compat_x32_siginfo for x32.
2081 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
2083 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2085 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2087 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2088 instead of gdbarch_ptr_bit.
2089 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2090 (amd64_supply_native_gregset): Likewise.
2091 (amd64_collect_native_gregset): Likewise.
2092 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2093 (amd64_supply_xsave): Likewise.
2094 (amd64_collect_fxsave): Likewise.
2095 (amd64_collect_xsave): Likewise.
2097 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2099 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2100 (amd64_linux_read_description): Check DS segment register for
2103 2012-06-15 Tom Tromey <tromey@redhat.com>
2105 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2106 init_cutu_and_read_dies.
2108 2012-06-15 Iain Sandoe <iain@codesourcery.com>
2110 * MAINTAINERS (Write After Approval): Add myself to the list.
2112 2012-06-15 Tom Tromey <tromey@redhat.com>
2114 * valops.c (value_find_oload_method_list): Now static.
2115 * value.h (value_find_oload_method_list): Don't declare.
2117 2012-06-15 Tom Tromey <tromey@redhat.com>
2119 * valops.c (find_overload_match): Use value_ind.
2121 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2123 * infrun.c (handle_inferior_event): Correct indentation.
2125 2012-06-14 Doug Evans <dje@google.com>
2127 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2128 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2130 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2131 updated. Handle DEBUG_LOC_START_LENGTH.
2132 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2133 (loclist_describe_location): Ditto.
2135 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2138 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2139 after hiding inline functions.
2141 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2143 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2144 _initialize_inf_ttrace.
2146 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2148 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2149 _initialize_hppa_hpux_nat.
2151 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2153 * remote-sim.c (sim_command_completer): Change type of return
2154 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2156 2012-06-13 Mark Kettenis <kettenis@gnu.org>
2157 Jan Kratochvil <jan.kratochvil@redhat.com>
2160 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2161 stack on a 16-byte boundary.
2163 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2165 * jit.c (finalize_symtab): Set function's return type to 'void' by
2168 2012-06-13 Mark Kettenis <kettenis@gnu.org>
2169 H.J. Lu <hongjiu.lu@intel.com>
2171 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2172 Move bits common to both the classic LP64 and the new x32 ILP32
2174 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2175 (amd64_x32_linux_init_abi): New function.
2176 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2179 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2180 * i386-tdep.c (i386_pseudo_register_name): Make public.
2181 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2182 * amd64-tdep.c (amd64_dword_names): Add "eip".
2183 (amd64_x32_pseudo_register_type): New function
2184 (amd64_x32_init_abi): New function.
2186 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 * inferior.h (struct inferior_suspend_state): Comment out.
2190 (struct inferior): Comment out the field suspend.
2191 * infrun.c (struct infcall_suspend_state): Comment out the field
2193 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2196 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2198 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2199 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2200 function comment. Return ERROR for unresolved cases. Implement
2201 returning proper NAME.
2202 (yylex): Accept also NAME from classify_inner_name.
2203 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2204 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2206 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2208 2012-06-13 Tom Tromey <tromey@redhat.com>
2210 * breakpoint.c (condition_completer): New function.
2211 (_initialize_breakpoint): Use it.
2212 * value.c (complete_internalvar): New function.
2213 * value.h (complete_internalvar): Declare.
2215 2012-06-13 Tom Tromey <tromey@redhat.com>
2217 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2218 * breakpoint.c (catch_syscall_completer): Return a VEC.
2219 * cli/cli-cmds.c (complete_command): Update.
2220 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2221 (complete_on_enum): Likewise.
2222 * command.h: Include gdb_vecs.h.
2223 (completer_ftype): Change return type.
2224 (complete_on_cmdlist, complete_on_enum): Likewise.
2225 * completer.c (noop_completer, filename_completer)
2226 (location_completer): Return a VEC.
2227 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2229 (expression_completer, complete_line_internal, complete_line)
2230 (command_completer): Return a VEC.
2231 (gdb_completion_word_break_characters, line_completion_function):
2233 * completer.h: Include gdb_vecs.h.
2234 (complete_line, noop_completer, filename_completer)
2235 (expression_completer, location_completer, command_completer):
2237 * f-lang.c (f_word_break_characters): Return a VEC.
2238 * interps.c (interpreter_completer): Return a VEC.
2239 * language.h (struct language_defn)
2240 <la_make_symbol_completion_list>: Return a VEC.
2241 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2242 * symtab.c (free_completion_list): Take a VEC.
2243 (return_val_size, return_val_index): Remove.
2244 (return_val): Now a VEC.
2245 (completion_list_add_name): Update.
2246 (default_make_symbol_completion_list_break_on)
2247 (default_make_symbol_completion_list, make_symbol_completion_list)
2248 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2250 (add_filename_to_list): Update.
2251 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2253 (maybe_add_partial_symtab_filename): Update.
2254 (make_source_files_completion_list): Return a VEC.
2255 * symtab.h (default_make_symbol_completion_list_break_on)
2256 (default_make_symbol_completion_list, make_symbol_completion_list)
2257 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2258 (make_source_files_completion_list): Update.
2260 2012-06-13 Tom Tromey <tromey@redhat.com>
2262 * breakpoint.c (add_catch_command): Use completer_ftype.
2263 * breakpoint.h: Include command.h.
2264 (add_catch_command): Use completer_ftype.
2265 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2266 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2267 Use completer_ftype.
2268 * command.h (completer_ftype): New typedef.
2269 (set_cmd_completer): Use it.
2270 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2273 2012-06-13 Pedro Alves <palves@redhat.com>
2275 Partial revert of previous change.
2277 * serial.c (scb_base): New global.
2278 (serial_for_fd): New.
2279 (serial_open, serial_fdopen_ops): Link new serial in open serials
2281 (do_serial_close): Unlink serial from the open serials chain.
2283 2012-06-12 Pedro Alves <palves@redhat.com>
2285 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2287 (prepare_for_detach): No longer context switch here in non-stop
2289 (fetch_inferior_event): Ditto.
2290 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2291 to the event thread before removing breakpoints. Switch to the
2292 event thread before inserting breakpoints and resuming.
2293 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2294 event thread before resuming.
2295 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2296 Switch to the event thread before removing breakpoints.
2298 2012-06-12 Eli Zaretskii <eliz@gnu.org>
2300 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2301 special characters correctly for the Windows shells. See
2302 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2304 [!__MINGW32__]: Remove extra double quote character from special
2307 2012-06-11 Stan Shebs <stan@codesourcery.com>
2309 * ui-out.h: Remove #if 0 declarations.
2310 * ui-out.c: Remove #if 0 functions.
2312 2012-06-11 Pedro Alves <palves@redhat.com>
2314 * ser-base.c (run_async_handler_and_reschedule): New.
2315 (fd_event, push_event): Use it.
2316 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2317 reference count to 1.
2318 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2320 (serial_is_open, serial_ref, serial_unref): New.
2321 * serial.h (serial_open): Adjust comment.
2322 (serial_is_open): Declare.
2323 (serial_close): Adjust comment.
2324 (serial_ref, serial_unref) Declare.
2325 (struct serial): New field 'refcnt'.
2327 2012-06-11 Pedro Alves <palves@redhat.com>
2329 Remove #if 0'd "connect" command, and unnecessary associated
2330 refcounting and serial reuse bits.
2332 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2333 * serial.c (last_serial_opened): Delete.
2335 (serial_open): Adjust.
2336 (serial_for_fd): Delete.
2337 (serial_fdopen_ops, do_serial_close): Adjust.
2338 (serial_fdopen_ops): Adjust.
2340 2012-06-11 Pedro Alves <palves@redhat.com>
2342 * serial.c (do_serial_close): Remove early return when SCB is
2345 2012-06-11 Tom Tromey <tromey@redhat.com>
2347 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2349 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2351 Fix regression by the "ambiguous linespec" series.
2352 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2353 get_last_displayed_symtab and get_last_displayed_line and depending
2356 2012-06-11 Tom Tromey <tromey@redhat.com>
2358 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2359 (dw2_find_symbol_file): Use it.
2361 2012-06-11 Michael Eager <eager@eagercon.com>
2363 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2364 * mips-linux-tdep.h (mips_signals): New
2366 2012-06-11 Tom Tromey <tromey@redhat.com>
2368 * infrun.c (handle_inferior_event)
2369 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2371 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2372 exception logic in all cases. Update comments.
2373 (insert_longjmp_resume_breakpoint): Set the exception resume
2376 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2378 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2380 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2382 * valarith.c (binop_types_user_defined_p): Fix a typo.
2384 2012-06-08 Yao Qi <yao@codesourcery.com>
2385 Chung-Lin Tang <cltang@codesourcery.com>
2387 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2388 * arch-utils.h: Declare.
2389 * gdbarch.sh: Add return_in_first_hidden_param_p.
2390 * gdbarch.c, gdbarch.h: Regenerated.
2391 * infcall.c (call_function_by_hand): Call
2392 gdbarch_return_in_first_hidden_param_p instead of
2393 language_pass_by_reference.
2395 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2396 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2397 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2398 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2399 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2400 `cplus_return_struct_by_reference'.
2401 (tic6x_return_value): Handle language cplusplus.
2402 (tic6x_return_in_first_hidden_param_p): New.
2403 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2405 2012-06-07 Doug Evans <dje@google.com>
2407 * dwarf2read.c (dwarf2_cu): Add comment.
2409 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2411 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2413 (mips_eabi_push_dummy_call): Likewise.
2414 (mips_n32n64_push_dummy_call): Likewise.
2415 (mips_o32_push_dummy_call): Likewise.
2416 (mips_o64_push_dummy_call): Likewise.
2418 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2420 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2422 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2424 * mips-tdep.c (mips_pseudo_register_type): Use
2425 mips_float_register_p.
2427 2012-06-06 Pedro Alves <palves@redhat.com>
2429 * infrun.c (handle_inferior_event): Remove calls to
2430 reinit_frame_cache that follow a context_switch call.
2432 2012-06-06 Pedro Alves <palves@redhat.com>
2434 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2435 context_switch and remove stale comment.
2437 2012-06-06 Pedro Alves <palves@redhat.com>
2439 * infrun.c (struct execution_control_state): Remove
2440 `new_thread_event' field.
2441 (handle_inferior_event): Simplify new threads handling; don't
2442 resume the inferior if we find a new thread.
2444 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2446 * NEWS: Document the deprecation of SH's 'regs' command.
2447 * inferior.h (all_registers_info): Add function declaration.
2448 * sh-tdep.c (sh_show_regs): Remove variable.
2449 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2450 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2451 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2452 (sh_show_regs_command): Remove functions.
2453 (sh_gdbarch_init): Don't set sh_show_regs.
2454 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2455 'info all-registers'.
2456 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2457 (sh64_show_regs): Remove functions.
2458 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2460 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2462 * configure.ac: Move development=true below AC_INIT.
2463 * configure: Regenerate.
2465 2012-06-05 Stan Shebs <stan@codesourcery.com>
2467 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2470 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2472 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2473 argument as ssize_t.
2474 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2475 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2476 * target.c (target_read_stack, target_write_memory)
2477 (target_write_raw_memory): Likewise.
2478 * target.h (target_read_stack, target_write_memory)
2479 (target_write_raw_memory): Likewise.
2481 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2484 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2485 * target.c (target_read_memory): Change LEN to ssize_t.
2486 * target.h (target_read_memory): Change LEN to ssize_t.
2488 2012-06-05 Pedro Alves <palves@redhat.com>
2492 * breakpoint.c (until_break_command): Only fetch the selected
2493 frame after decode_line_1.
2495 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2497 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2498 event breakpoint at _start, __start or main if a program
2499 interpreter is not found.
2501 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2503 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2505 * windows-tdep.c: #include "objfiles.h".
2506 (windows_iterate_over_objfiles_in_search_order): New function.
2507 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2508 iterate_over_objfiles_in_search_order gdbarch method to
2509 windows_iterate_over_objfiles_in_search_order.
2510 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2512 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2514 * gdbarch.sh: Add generation of
2515 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2516 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2517 (iterate_over_objfiles_in_search_order): New gdbarch method.
2518 * gdbarch.h, gdbarch.c: Regenerate.
2519 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2521 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2523 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2524 out of lookup_symbol_aux_symtabs.
2525 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2526 call to lookup_symbol_aux_objfile.
2527 (struct global_sym_lookup_data): New type.
2528 (lookup_symbol_global_iterator_cb): New function.
2529 (lookup_symbol_global): Search for symbol using
2530 gdbarch_iterate_over_objfiles_in_search_order and
2531 lookup_symbol_global_iterator_cb.
2532 * findvar.c (struct minsym_lookup_data): New type.
2533 (minsym_lookup_iterator_cb): New function.
2534 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2535 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2536 and minsym_lookup_iterator_cb.
2538 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2540 Revert the following patch:
2541 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2542 try locating the symbol in the symbol's own objfile first, before
2543 extending the search to all objfiles.
2544 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2545 out of lookup_symbol_aux_symtabs.
2546 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2547 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2548 Do not search EXCLUDE_OBJFILE.
2549 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2550 (lookup_symbol_global): Search for matches in the block's objfile
2551 first, before searching all other objfiles.
2553 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2555 * breakpoint.c (find_condition_and_thread): Stop parsing
2556 as soon as the first invalid keyword is found.
2558 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2560 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2562 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2564 * config/djgpp/djcheck.sh: Add copyright header.
2566 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2568 * copyright.py (update_files, main): Fix path to update-copyright
2571 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2573 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2574 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2575 for which a reminder to update by hand is printed.
2577 2012-06-04 Doug Evans <dje@google.com>
2579 * buildsym.c (make_blockvector): Add comment.
2581 2012-06-04 Pedro Alves <palves@redhat.com>
2583 * arch-utils.c (default_gdb_signal_from_target): Delete.
2584 * arch-utils.h (default_gdb_signal_from_target): Delete.
2585 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2586 gdbarch_gdb_signal_from_target_p.
2587 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2589 * gdbarch.h: Regenerate.
2590 * gdbarch.c: Regenerate.
2592 2012-06-04 Pedro Alves <palves@redhat.com>
2594 * gdbarch.sh (gdb_signal_from_target): Mention that the
2595 implementation of the method must be host independent.
2596 * gdbarch.h: Regenerate.
2598 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2600 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2602 (target_read_memory_bfd): New function.
2603 (symbol_file_add_from_memory): Use it.
2605 2012-06-03 Doug Evans <dje@google.com>
2607 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2609 (basic_lookup_transparent_type): Ditto.
2611 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2612 (ALL_PRIMARY_SYMTABS): Use it.
2613 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2614 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2615 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2616 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2617 (basic_lookup_transparent_type): Ditto.
2619 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2621 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2622 it to optimize resolution of demangled name.
2624 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2626 * configure.ac (development): Define new variable.
2627 Call AC_CHECK_LIB for mcheck if $development.
2628 (ERROR_ON_WARNING): Enable it by default only if $development.
2629 * config.in: Regenerate.
2630 * configure: Regenerate.
2632 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2634 * target.c (target_read_memory): Make LEN argument as size_t.
2635 * target.h (target_read_memory): Likewise.
2637 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2639 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2641 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2643 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2644 BookE interface for PowerPC server processors if not available
2645 in the Linux Kernel.
2647 2012-05-31 Keith Seitz <keiths@redhat.com>
2649 * linespec.c (decode_objc): Add cleanup to free
2651 (find_linespec_symbols): Add cleanup to free CLASSES.
2652 * symfile.c (find_separate_debug_file_by_debuglink): Add
2653 cleanup to free DEBUGLINK.
2654 * ui-out.c (clear_header_list): No need to check if
2655 HEADER_NEXT.COLHDR is NULL.
2656 Free HEADER_NEXT.COL_NAME.
2658 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2660 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2663 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2665 * configure.host (gdb_host_cpu): Handle tilegx*.
2666 (gdb_host): Handle tilegx-*-linux*.
2667 * tilegx-linux-nat.c: New file.
2668 * config/tilegx/linux.mh: New file.
2670 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2672 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2673 tilegx-linux-tdep.o.
2674 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2675 tilegx-linux-tdep.c.
2676 * configure.tgt: Handle tilegx-*-linux*.
2677 * tilegx-tdep.h: New file.
2678 * tilegx-tdep.c: New file.
2679 * tilegx-linux-tdep.c: New file.
2680 * regformats/reg-tilegx.dat: New file.
2682 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2684 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2685 accounting of hw watchpoints on ppc.
2687 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2689 * source.c (openp): Expand tilde in path entries.
2691 2012-05-29 Doug Evans <dje@google.com>
2693 * buildsym.c (block_compar): Fix comment.
2694 (end_symtab): Fix and clarify some comments.
2696 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2697 cleanup_undefined_types.
2698 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2699 All callers updated.
2701 2012-05-29 Tom Tromey <tromey@redhat.com>
2703 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2705 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2706 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2708 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2711 2012-05-29 Tristan Gingold <gingold@adacore.com>
2713 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2714 (struct darwin_info): ... New struct.
2715 (solib_darwin_pspace_data): New variable.
2716 (darwin_pspace_data_cleanup): New function.
2717 (get_darwin_info): Likewise.
2718 (darwin_dyld_version_ok, darwin_load_image_infos)
2719 (darwin_solib_get_all_image_info_addr_at_init)
2720 (darwin_solib_read_all_image_info_addr): Add info argument.
2722 (darwin_current_sos): Use per pspace structure.
2723 (darwin_solib_create_inferior_hook): Likewise.
2724 (darwin_clear_solib): Likewise.
2725 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2727 2012-05-28 Pedro Alves <palves@redhat.com>
2729 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2730 block that uses them. Clear ecss before handling each event.
2732 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 * solib-svr4.c (svr4_current_sos): New comment on
2735 svr4_current_sos_via_xfer_libraries fall back.
2737 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2739 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2740 it as a fallback for TYPE_IS_OPAQUE.
2741 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2742 symbols for lookup_symbol.
2744 2012-05-24 John Steele Scott <toojays@toojays.net>
2746 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2747 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2748 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2749 (check_producer): ... this new function, which also checks for ICC
2750 and caches the result.
2751 (producer_is_icc): New function.
2752 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2755 2012-05-24 Pedro Alves <palves@redhat.com>
2759 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2760 (default_gdb_signal_to_target): ... this. Add comment.
2761 (default_gdb_signal_from_host): Rename to ...
2762 (default_gdb_signal_from_target): ... this. Add comment.
2763 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2764 (default_gdb_signal_to_target): ... this.
2765 (default_gdb_signal_from_host): Rename to ...
2766 (default_gdb_signal_from_target): ... this.
2767 * corelow.c (core_open): Adjust to naming change. Replace comment.
2768 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2769 (gdb_signal_from_target): ... this. Adjust to
2770 default_gdb_signal_from_host naming change. Extend comment.
2771 (gdb_signal_to_host): Rename to ...
2772 (gdb_signal_to_target): ... this. Adjust to
2773 default_gdb_signal_to_host naming change.
2774 * gdbarch.h, gdbarch.c: Renegerate.
2776 2012-05-24 Pedro Alves <palves@redhat.com>
2780 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2782 2012-05-24 Pedro Alves <palves@redhat.com>
2786 Replace target_signal with gdb_signal throughout.
2788 2012-05-24 Pedro Alves <palves@redhat.com>
2792 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2793 string, instead of reusing the va_list argument.
2795 2012-05-24 Tom Tromey <tromey@redhat.com>
2797 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2800 2012-05-23 Doug Evans <dje@google.com>
2802 * symtab.c (search_symbols): Formatting fixes.
2803 (print_symbol_info): Formatting fixes.
2805 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2806 int64_t change to leb128 API.
2807 (read_encoded_value, decode_frame_entry_1): Ditto.
2808 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2809 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2810 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2811 (execute_stack_op): Ditto.
2812 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2813 (safe_read_uleb128, safe_read_sleb128): Ditto.
2814 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2815 (dwarf2_compile_expr_to_ax): Ditto.
2816 (locexpr_describe_location_piece): Ditto.
2817 (disassemble_dwarf_expression): Ditto.
2818 (locexpr_describe_location_1): Ditto.
2820 2012-05-23 Stan Shebs <stan@codesourcery.com>
2821 Kwok Cheung Yeung <kcy@codesourcery.com>
2823 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2824 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2825 (mi-cmd-info.o): New rule.
2826 * osdata.h (info_osdata_command): New declaration.
2827 * osdata.c (info_osdata_command): Change to non-static.
2828 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2829 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2830 * mi/mi-cmd-info.c: New file.
2832 2012-05-23 Doug Evans <dje@google.com>
2834 * symtab.c (search_symbols): Pass NULL for file_matcher to
2835 expand_symtabs_matching if there are no files to match.
2837 * gdbtypes.c (lookup_typename): Simplify.
2839 2012-05-23 Pedro Alves <palves@redhat.com>
2841 * arch-utils.h (default_target_signal_to_host): Delete.
2842 * arch-utils.c (default_target_signal_to_host): Delete.
2843 * gdbarch.sh (target_signal_to_host): Remove.
2844 * gdbarch.h, gdbarch.c: Regenerate.
2846 2012-05-22 Doug Evans <dje@google.com>
2848 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2850 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2851 (execute_cfa_program): Update to match API of leb128 functions.
2852 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2854 (read_unsigned_leb128, read_signed_leb128): Delete.
2855 (read_initial_length): Change type of buf argument to
2857 (read_encoded_value): Update to match API of leb128 functions.
2858 (decode_frame_entry): Change result to "const gdb_byte *", and
2859 similarly for "start" parameter.
2860 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2861 (dwarf2_build_frame_info): Change local frame_ptr to
2863 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2864 read_uleb128, read_sleb128. All callers updated.
2865 (safe_skip_leb128): New function.
2866 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2867 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2868 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2869 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2870 read_uleb128, read_sleb128.
2871 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2872 (execute_stack_op): Update to match API of leb128 functions.
2873 * dwarf2expr.h: #include "leb128.h".
2874 (read_uleb128, read_sleb128): Delete.
2875 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2876 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2877 * dwarf2loc.c (debug_loc_kind): New enum.
2878 (decode_debug_loc_addresses): New function.
2879 (decode_debug_loc_dwo_addresses): New function.
2880 (dwarf2_find_location_expression): Rewrite.
2881 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2882 (locexpr_describe_location_piece): Ditto.
2883 (disassemble_dwarf_expression): Ditto.
2884 (locexpr_describe_location_1): Ditto.
2885 (loclist_describe_location): Rewrite.
2886 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2887 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2888 (dwarf2_section_buffer_overflow_complaint): Renamed from
2889 dwarf2_macros_too_long_complaint. All callers updated.
2890 (skip_leb128): Delete.
2891 (init_cu_die_reader): Initialize reader->buffer_end.
2892 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2893 (skip_form_bytes): New arg buffer_end. All callers updated.
2894 Replace call to skip_leb128 with gdb_skip_leb128.
2895 (skip_unknown_opcode): New arg mac_end. All callers updated.
2896 (fill_in_loclist_baton): Initialize baton->from_dwo.
2898 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2900 * mips-linux-nat.c (mips_linux_read_description): Use a more
2901 verbose error message.
2903 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2905 * NEWS: Add MIPS/Linux DSP support.
2906 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2907 (SIGCONTEXT_DSPCTL): New macro.
2908 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2909 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2910 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2911 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2912 (N64_SIGCONTEXT_HI3): Likewise.
2913 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2914 (N64_SIGCONTEXT_LO3): Likewise.
2915 (N64_SIGCONTEXT_DSPCTL): Likewise.
2916 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2917 (mips_linux_o32_sigframe_init): Handle DSP registers.
2918 (mips_linux_n32n64_sigframe_init): Likewise.
2920 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2922 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2925 2012-05-22 Pedro Alves <palves@redhat.com>
2927 * target.h (store_waitstatus): Move declaration ...
2928 * inf-child.h (store_waitstatus): ... here.
2929 * target.c: Move inclusion of gdb_wait.h, and ...
2930 (store_waitstatus): ... this ...
2931 * inf-child.c: ... here.
2932 * linux-nat.c: Include inf-child.h.
2933 * rs6000-nat.c: Include inf-child.h.
2934 * spu-linux-nat.c: Include inf-child.h.
2936 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2938 * tracepoint.c (start_tracing): Add missing i18n markup.
2939 (stop_tracing, set_trace_user): Ditto.
2940 (set_trace_notes, set_trace_stop_notes): Ditto.
2942 2012-05-21 Tom Tromey <tromey@redhat.com>
2945 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2947 * value.h (value_cast_pointers): Update.
2948 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2949 (value_cast): Update.
2950 (update_search_result): New function.
2951 (do_search_struct_field): New, from search_struct_field. Check
2952 for ambiguous results.
2953 (search_struct_field): Rewrite.
2954 * infcall.c (value_arg_coerce): Update.
2955 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2956 value_cast_pointers.
2957 * ada-lang.c (ada_convert_actual): Update.
2959 2012-05-21 Tom Tromey <tromey@redhat.com>
2961 * macroexp.c (macro_stringify): Terminate the string.
2963 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2965 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2967 * auto-load.c (auto_load_expand_dir_vars): New function.
2968 (auto_load_safe_path_vec_update): Use it, remove the
2969 substitute_path_component call thanks to it.
2970 (auto_load_objfile_script): Remove the debug_file_directory processing.
2971 Use auto_load_expand_dir_vars, remove the substitute_path_component
2973 * configure: Regenerate.
2974 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2975 path. Escape $ also for $debugdir.
2976 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2977 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2979 2012-05-20 Doug Evans <dje@google.com>
2981 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2982 before use. Check for symtab->includes == NULL before scanning it.
2984 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2986 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2988 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2990 * NEWS: Add microMIPS support and "set mips compression",
2991 "show mips compression" commands.
2992 * mips-tdep.h (mips_isa): New enum.
2993 (gdbarch_tdep): Add mips_isa.
2994 (mips_pc_is_mips16): Update prototype.
2995 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2996 * mips-tdep.c (mips_compression_mips16): New variable.
2997 (mips_compression_micromips): Likewise.
2998 (mips_compression_strings): Likewise.
2999 (mips_compression_string): Likewise.
3000 (is_mips16_isa, is_micromips_isa): New functions.
3001 (is_mips16_addr): Rename to...
3002 (is_compact_addr): ... this.
3003 (unmake_mips16_addr): Likewise to...
3004 (unmake_compact_addr): ... this.
3005 (make_mips16_addr): Likewise to...
3006 (make_compact_addr): ... this.
3007 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3009 (mips_elf_make_msymbol_special): Handle microMIPS code.
3010 (msymbol_is_special): Rename to...
3011 (msymbol_is_mips16): ... this.
3012 (mips_make_symbol_special, mips_pc_is_mips16): Update
3014 (msymbol_is_mips, msymbol_is_micromips): New functions.
3015 (mips16_to_32_reg): Rename to...
3016 (mips_reg3_to_reg): ... this.
3017 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3018 (mips_pc_isa): Likewise.
3019 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3021 (mips_fetch_instruction): Pass return status instead of printing
3022 an error message if requested. Handle microMIPS code. Bail out
3024 (micromips_op): New macro.
3025 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3026 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3027 (b6s4_op, b7s3_reg): Likewise.
3028 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3029 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3030 (mips_insn_size): New function.
3031 (mips32_next_pc): Update mips_fetch_instruction call.
3032 (micromips_relative_offset7): New function.
3033 (micromips_relative_offset10): Likewise.
3034 (micromips_relative_offset16): Likewise.
3035 (micromips_pc_insn_size): Likewise.
3036 (micromips_bc1_pc): Likewise.
3037 (micromips_next_pc): Likewise.
3038 (unpack_mips16): Update mips_fetch_instruction call.
3039 (extended_mips16_next_pc): Update according to change to
3041 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3043 (mips16_scan_prologue): Update mips_fetch_instruction call.
3044 Update according to change to mips16_to_32_reg.
3045 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3046 (mips_insn16_frame_base_sniffer): Likewise.
3047 (micromips_decode_imm9): New function.
3048 (micromips_scan_prologue): Likewise.
3049 (mips_micro_frame_cache): Likewise.
3050 (mips_micro_frame_this_id): Likewise.
3051 (mips_micro_frame_prev_register): Likewise.
3052 (mips_micro_frame_sniffer): Likewise.
3053 (mips_micro_frame_unwind): New variable.
3054 (mips_micro_frame_base_address): New function.
3055 (mips_micro_frame_base): New variable.
3056 (mips_micro_frame_base_sniffer): New function.
3057 (mips32_scan_prologue): Update mips_fetch_instruction call.
3058 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3059 rather than for MIPS16.
3060 (mips_insn32_frame_base_sniffer): Likewise.
3061 (mips_addr_bits_remove): Handle microMIPS code.
3062 (deal_with_atomic_sequence): Rename to...
3063 (mips_deal_with_atomic_sequence): ... this. Update the type
3064 of the variable used to hold an instruction. Remove the ISA bit
3065 check. Update mips_fetch_instruction call.
3066 (micromips_deal_with_atomic_sequence): New function.
3067 (deal_with_atomic_sequence): Likewise.
3068 (mips_about_to_return): Handle microMIPS code. Update
3069 mips_fetch_instruction call.
3070 (heuristic_proc_start): Check for the standard MIPS ISA rather
3071 than for MIPS16. Update mips_pc_is_mips16 and
3072 mips_fetch_instruction calls. Handle microMIPS code.
3073 (mips_push_dummy_code): Handle microMIPS code.
3074 (mips_eabi_push_dummy_call): Likewise.
3075 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3076 (mips_o64_push_dummy_call): Handle microMIPS code.
3077 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3078 (is_delayed): Remove function.
3079 (mips_single_step_through_delay): Replace the call to is_delayed
3080 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3081 Handle microMIPS code.
3082 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3084 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3086 (micromips_in_function_epilogue_p): New function.
3087 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3089 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3091 (gdb_print_insn_mips): Likewise.
3092 (mips_breakpoint_from_pc): Likewise.
3093 (mips_remote_breakpoint_from_pc): New function.
3094 (mips32_instruction_has_delay_slot): Simplify making use of the
3095 updated mips_fetch_instruction interface.
3096 (micromips_instruction_has_delay_slot): New function.
3097 (mips16_instruction_has_delay_slot): Simplify making use of the
3098 updated mips_fetch_instruction interface.
3099 (mips_adjust_breakpoint_address): Check for the standard MIPS
3100 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
3101 calls. Handle microMIPS code.
3102 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3103 (mips_skip_trampoline_code): Handle microMIPS code.
3104 (global_mips_compression): New function.
3105 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3106 file flags. Register the microMIPS remote breakpoint handler
3107 and heuristic frame unwinder.
3108 (show_mips_compression): New function.
3109 (_initialize_mips_tdep): Add the "set mips compression" and
3110 "show mips compression" commands.
3112 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3117 * amd64-darwin-tdep.c:
3118 * arm-symbian-tdep.c:
3122 * bfin-linux-tdep.c:
3129 * dwarf2-frame-tailcall.c:
3158 * microblaze-tdep.c:
3159 * mips-linux-tdep.c:
3167 * python/py-finishbreakpoint.c:
3168 * python/py-inferior.c:
3169 * python/py-infthread.c:
3173 * remote-m32r-sdi.c:
3177 * rs6000-aix-tdep.c:
3203 * amd64-darwin-tdep.c:
3204 * arm-symbian-tdep.c:
3205 * arm-tdep.c: Delete unused variables.
3207 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3209 Rename $ddir to $datadir.
3210 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3211 * auto-load.c (auto_load_safe_path_vec_update)
3212 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3213 * configure: Regenerate.
3214 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3215 Likewise. Remove the 'use $ddir' help string.
3217 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3219 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3220 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3222 2012-05-18 Tom Tromey <tromey@redhat.com>
3225 * valprint.h (struct value_print_options) <symbol_print>: New
3227 * valprint.c (user_print_options): Add default for symbol_print.
3228 (show_symbol_print): New function.
3229 (generic_val_print): Respect symbol_print.
3230 (_initialize_valprint): Add "print symbol" setting.
3231 * f-valprint.c (f_val_print): Respect symbol_print.
3232 * c-valprint.c (c_val_print): Respect symbol_print.
3234 * printcmd.c (print_address_symbolic): Return int. Ignore some
3236 (print_address_demangle): Return int.
3237 * defs.h: (print_address_symbolic): Return int.
3238 * value.h (print_address_demangle): Return int.
3240 2012-05-18 Tom Tromey <tromey@redhat.com>
3242 * valprint.c (val_print_string): Don't print leading space.
3243 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3244 print space before string or vtbl.
3245 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3247 * jv-valprint.c (java_value_print): Print space before string.
3248 * go-valprint.c (print_go_string): Print space before string.
3249 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3250 space before string.
3251 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3252 space before string or vtbl.
3253 * auxv.c (fprint_target_auxv): Print space after address.
3255 2012-05-18 Tom Tromey <tromey@redhat.com>
3257 * printcmd.c (print_address_demangle): Remove special case for 0.
3259 2012-05-18 Tom Tromey <tromey@redhat.com>
3261 * printcmd.c (print_address_demangle): Add 'opts' argument.
3262 * p-valprint.c (pascal_val_print): Update.
3263 * jv-valprint.c (java_val_print): Update.
3265 * valprint.c (generic_val_print): Update.
3266 (print_function_pointer_address): Add 'options' argument. Remove
3267 'addressprint' argument. Update.
3268 * m2-valprint.c (print_unpacked_pointer): Update.
3269 * gnu-v3-abi.c (print_one_vtable): Update.
3270 (gnuv3_print_method_ptr): Update.
3271 * f-valprint.c (f_val_print): Update.
3272 * cp-valprint.c (cp_print_value_fields): Update.
3273 * valprint.h (print_function_pointer_address): Update.
3274 * c-valprint.c (c_val_print): Update.
3276 2012-05-18 Tom Tromey <tromey@redhat.com>
3278 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3279 directly corresponding to the found psymtab.
3280 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3281 (dw2_find_pc_sect_symtab): Use it.
3282 * block.h (blockvector_contains_pc): Declare.
3283 * block.c (find_block_in_blockvector): New function.
3284 (blockvector_for_pc_sect): Use it.
3285 (blockvector_contains_pc): New function.
3287 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3289 * mips-tdep.h (mips_write_pc): New prototype.
3290 * mips-tdep.c (mips_write_pc): Make external, add description.
3291 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3294 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3296 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3298 (mips_unwind_pc, mips_write_pc): Likewise.
3299 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3302 2012-05-17 Joel Brobecker <brobecker@adacore.com>
3304 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3305 proc_warn, proc_error, proc_get_status, proc_flags,
3306 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3307 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3308 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3309 proc_stop_process, proc_wait_for_stop, proc_run_process,
3310 proc_set_traced_signals, proc_set_traced_faults,
3311 proc_set_traced_sysentry, proc_set_traced_sysexit,
3312 proc_set_held_signals, proc_get_held_signals,
3313 proc_get_traced_signals, proc_get_traced_faults,
3314 proc_get_traced_sysentry, proc_get_traced_sysexit,
3315 proc_clear_current_fault, proc_set_current_signal,
3316 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3317 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3318 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3319 proc_get_current_thread, proc_get_current_thread,
3320 proc_get_current_thread, proc_update_threads,
3321 proc_update_threads, proc_update_threads, proc_update_threads,
3322 proc_iterate_over_threads, procfs_find_new_threads,
3323 procfs_pid_to_str): Make static. Remove advance declaration.
3324 (proc_cursig): Make static. Conditionalized defintion on
3325 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3326 (proc_syscall, proc_set_kill_on_last_close,
3327 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3328 proc_get_pending_signals, proc_get_signal_actions,
3329 proc_trace_signal, proc_ignore_signal): Delete.
3331 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3333 * coffread.c (cs_section_address): Passing proper argument for
3334 `bfd_get_section_vma'.
3335 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3336 `bfd_get_section_flags'.
3337 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3338 `bfd_get_section_vma'.
3340 2012-05-16 Tom Tromey <tromey@redhat.com>
3343 * macrotab.h: (macro_define_special): Declare.
3344 (enum macro_special_kind): New.
3345 (struct macro_definition) <argc, replacement>: Update comments.
3346 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3347 (macro_define_object_internal): New function.
3348 (macro_define_object): Use it.
3349 (macro_define_special): New function.
3350 (fixup_definition): New function.
3351 (macro_lookup_definition, foreach_macro_in_scope)
3352 (foreach_macro): Use fixup_definition.
3353 * macroexp.h (macro_stringify): Declare.
3354 * macroexp.c (free_buffer_return_text): New function.
3355 (stringify): Constify "arg".
3356 (macro_stringify): New function.
3357 * dwarf2read.c (macro_start_file): Call macro_define_special.
3359 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
3360 Maciej W. Rozycki <macro@mips.com>
3362 * breakpoint.h (bp_location): Add related_address member.
3363 * inferior.h (get_return_value): Take a pointer to struct value
3364 instead of struct type for the function requested.
3365 * value.h (using_struct_return): Likewise.
3366 * gdbarch.sh (return_value): Take a pointer to struct value
3367 instead of struct type for the function requested.
3368 * breakpoint.c (set_breakpoint_location_function): Initialize
3369 related_address for bp_gnu_ifunc_resolver breakpoints.
3370 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3371 requested function's address to gdbarch_return_value.
3372 * eval.c (evaluate_subexp_standard): Pass the requested
3373 function's address to using_struct_return.
3374 * infcall.c (call_function_by_hand): Pass the requested
3375 function's address to using_struct_return and
3376 gdbarch_return_value.
3377 * infcmd.c (get_return_value): Take a pointer to struct value
3378 instead of struct type for the function requested.
3379 (print_return_value): Update accordingly.
3380 (finish_command_continuation): Likewise.
3381 * stack.c (return_command): Pass the requested function's
3382 address to using_struct_return and gdbarch_return_value.
3383 * value.c (using_struct_return): Take a pointer to struct value
3384 instead of struct type for the function requested. Pass the
3385 requested function's address to gdbarch_return_value.
3386 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3387 New function_value member, replacing function_type.
3388 (bpfinishpy_dealloc): Update accordingly.
3389 (bpfinishpy_pre_stop_hook): Likewise.
3390 (bpfinishpy_init): Likewise. Record the requested function's
3392 * mips-tdep.c (mips_fval_reg): New enum.
3393 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3394 words put in GP registers.
3395 (mips_o64_push_dummy_call): Update a comment.
3396 (mips_o32_return_value): Take a pointer to struct value instead
3397 of struct type for the function requested and use it to check if
3398 using the MIPS16 calling convention. Return the designated
3399 general purpose registers for floating-point values returned in
3401 (mips_o64_return_value): Likewise.
3402 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3403 (ppc_sysv_abi_broken_return_value): Likewise.
3404 (ppc64_sysv_abi_return_value): Likewise.
3405 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3406 value instead of struct type for the function requested.
3407 * amd64-tdep.c (amd64_return_value): Likewise.
3408 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3409 * arm-tdep.c (arm_return_value): Likewise.
3410 * avr-tdep.c (avr_return_value): Likewise.
3411 * bfin-tdep.c (bfin_return_value): Likewise.
3412 * cris-tdep.c (cris_return_value): Likewise.
3413 * frv-tdep.c (frv_return_value): Likewise.
3414 * h8300-tdep.c (h8300_return_value): Likewise.
3415 (h8300h_return_value): Likewise.
3416 * hppa-tdep.c (hppa32_return_value): Likewise.
3417 (hppa64_return_value): Likewise.
3418 * i386-tdep.c (i386_return_value): Likewise.
3419 * ia64-tdep.c (ia64_return_value): Likewise.
3420 * iq2000-tdep.c (iq2000_return_value): Likewise.
3421 * lm32-tdep.c (lm32_return_value): Likewise.
3422 * m32c-tdep.c (m32c_return_value): Likewise.
3423 * m32r-tdep.c (m32r_return_value): Likewise.
3424 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3425 * m68k-tdep.c (m68k_return_value): Likewise.
3426 (m68k_svr4_return_value): Likewise.
3427 * m88k-tdep.c (m88k_return_value): Likewise.
3428 * mep-tdep.c (mep_return_value): Likewise.
3429 * microblaze-tdep.c (microblaze_return_value): Likewise.
3430 * mn10300-tdep.c (mn10300_return_value): Likewise.
3431 * moxie-tdep.c (moxie_return_value): Likewise.
3432 * mt-tdep.c (mt_return_value): Likewise.
3433 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3434 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3435 (ppc_sysv_abi_broken_return_value): Likewise.
3436 (ppc64_sysv_abi_return_value): Likewise.
3437 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3438 * rl78-tdep.c (rl78_return_value): Likewise.
3439 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3440 * rx-tdep.c (rx_return_value): Likewise.
3441 * s390-tdep.c (s390_return_value): Likewise.
3442 * score-tdep.c (score_return_value): Likewise.
3443 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3444 (sh_return_value_fpu): Likewise.
3445 * sh64-tdep.c (sh64_return_value): Likewise.
3446 * sparc-tdep.c (sparc32_return_value): Likewise.
3447 * sparc64-tdep.c (sparc64_return_value): Likewise.
3448 * spu-tdep.c (spu_return_value): Likewise.
3449 * tic6x-tdep.c (tic6x_return_value): Likewise.
3450 * v850-tdep.c (v850_return_value): Likewise.
3451 * vax-tdep.c (vax_return_value): Likewise.
3452 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3453 * xtensa-tdep.c (xtensa_return_value): Likewise.
3454 * gdbarch.c: Regenerate.
3455 * gdbarch.h: Regenerate.
3457 2012-05-15 Tom Tromey <tromey@redhat.com>
3459 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3461 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3463 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3464 of command in two error message.
3466 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3468 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3470 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3472 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3474 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3476 * NEWS (show auto-load scripts-directory): Add forgotten command.
3478 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3480 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3483 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3485 * amd64-tdep.c: Include features/i386/x32.c and
3486 features/i386/x32-avx.c.
3487 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3488 initialize_tdesc_x32_avx.
3490 2012-05-14 Stan Shebs <stan@codesourcery.com>
3493 * breakpoint.h (enum bptype): New type bp_dprintf.
3494 (struct breakpoint): New field extra_string.
3495 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3496 (create_breakpoint): Add extra_string arg.
3497 * breakpoint.c (dprintf_breakpoint_ops): New.
3498 (is_breakpoint): Add bp_dprintf.
3499 (bpstat_what): Add dprintf case.
3500 (bptype_string): Ditto.
3501 (print_one_breakpoint_location): Ditto.
3502 (init_bp_location): Ditto.
3503 (bkpt_print_mention): Ditto.
3504 (dprintf_style_enums): New array.
3505 (dprintf_style): New global.
3506 (dprintf_function): New global.
3507 (dprintf_channel): New global.
3508 (update_dprintf_command_list): New function.
3509 (update_dprintf_commands): New function.
3510 (init_breakpoint_sal): Add extra_string argument, handle it.
3511 (create_breakpoint_sal): Add extra_string argument.
3512 (create_breakpoints_sal): Add extra_string argument, update callers.
3513 (find_condition_and_thread): Add extra argument.
3514 (create_breakpoint): Add extra_string argument, record it.
3515 (dprintf_command): New function.
3516 (break_command_1): Add arg to create_breakpoint call.
3517 (handle_gnu_v3_exceptions): Ditto.
3518 (trace_command): Ditto.
3519 (ftrace_command): Ditto.
3520 (strace_command): Ditto.
3521 (bkpt_print_mention): Add dprintf case.
3522 (create_breakpoint_sal_default): Add extra_string argument.
3523 (_initialize_breakpoint): Add new commands.
3524 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3525 * python/py-breakpoint.c (bppy_init): Ditto.
3526 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3528 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3530 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3532 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3534 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3537 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3539 Add a new function gdb.find_pc_line to the Python API.
3540 * NEWS (Python Scripting): Add entry about the new function.
3541 * python/python.c (gdbpy_find_pc_line): New function which
3542 implements gdb.find_pc_line.
3543 (GdbMethods): Add entry for the new function.
3545 2012-05-12 Pedro Alves <palves@redhat.com>
3547 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3548 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3550 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3552 * inferior.c: Include completer.h
3553 (initialize_inferiors): Set completer of add-inferior to
3556 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3558 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3559 gdbarch_ptr_bit for x32 core dump.
3561 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3563 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3564 and features/i386/x32-avx-linux.c.
3566 2012-05-11 Stan Shebs <stan@codesourcery.com>
3567 Kwok Cheung Yeung <kcy@codesourcery.com>
3569 * NEWS: Describe new info os commands.
3570 * common/linux-osdata.c (PID_T, TIME_T): Define.
3571 (MAX_PID_T_STRLEN): New.
3572 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3574 (command_from_pid): Add comment. Change to use PID_T.
3575 (commandline_from_pid): Change to use PID_T.
3576 (user_from_pid): Add comment.
3577 (get_process_owner): Add comment. Change to use PID_T and
3579 (get_number_of_cpu_cores): Add comment.
3580 (get_cores_used_by_process): Add comment. Change to use PID_T and
3582 (linux_xfer_osdata_processes): Change to use PID_T and
3584 (compare_processes): New function.
3585 (linux_xfer_osdata_processgroups): New function.
3586 (linux_xfer_osdata_threads): Change to use PID_T.
3587 (linux_xfer_osdata_fds): New function.
3588 (format_socket_state, print_sockets): New functions.
3589 (union socket_addr): New union.
3590 (linux_xfer_osdata_isockets): New function.
3591 (time_from_time_t, group_from_gid): New functions.
3592 (linux_xfer_osdata_shm): New function.
3593 (linux_xfer_osdata_sem): New function.
3594 (linux_xfer_osdata_msg): New function.
3595 (linux_xfer_osdata_modules): New function.
3596 (osdata_table): Add new entries.
3597 * common/buffer.c (buffer_xml_printf): Add support for long and
3598 long long format specifiers.
3600 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3602 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3603 (tdesc_x32_avx_linux): Likewise.
3605 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3607 Implement multi-component --with-auto-load-dir.
3608 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3610 (--with-auto-load-safe-path): Update the default value description.
3611 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3613 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3614 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3615 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3616 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3617 "set auto-load scripts-directory".
3618 * config.in: Regenerate.
3619 * configure: Regenerate.
3620 * configure.ac (--with-auto-load-dir): New configure option.
3621 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3623 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3625 Provide $ddir substitution for --with-auto-load-safe-path.
3626 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3628 * auto-load.c: Include observer.h.
3629 (auto_load_safe_path_vec_update): Call substitute_path_component for
3630 each component. New variable ddir_subst.
3631 (auto_load_gdb_datadir_changed): New function.
3632 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3633 AUTO_LOAD_SAFE_PATH. New comment.
3634 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3635 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3636 * config.in: Regenerate.
3637 * configure: Regenerate.
3638 * configure.ac (--auto-load-safe-path): Rename
3639 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3640 GDB_DATADIR/auto-load.
3641 * defs.h (substitute_path_component): New declaration.
3642 * top.c: Include observer.h.
3643 (set_gdb_datadir): New function.
3644 (init_main): Install it for "set data-directory".
3645 * utils.c (substitute_path_component): New function.
3647 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3650 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3651 DEBUG_FILE_DIRECTORY. Handle multiple components of
3652 DEBUG_FILE_DIRECTORY.
3654 2012-05-10 Tom Tromey <tromey@redhat.com>
3656 * dwarf2read.c (recursively_write_psymbols): New function.
3657 (write_psymtabs_to_index): Use it.
3659 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3661 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3662 (load_partial_comp_unit): Update.
3663 (queue_comp_unit): Add argument 'pretend_language'.
3664 (process_queue): Update.
3665 (psymtab_to_symtab_1): Skip dependencies that have a user.
3666 (load_partial_comp_unit_reader): Give meaning to the 'data'
3668 (load_full_comp_unit): Add 'pretend_language' argument.
3669 (process_full_comp_unit): Add 'pretend_language' argument. Set
3671 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3673 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3674 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3676 (prepare_one_comp_unit): Add 'pretend_language' argument.
3678 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3679 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3680 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3681 (dw2_do_instantiate_symtab): Check whether symtab was read in
3683 (dw2_instantiate_symtab): Add assertion. Call
3684 process_cu_includes.
3685 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3686 (partial_symtab_p): New typedef.
3687 (set_partial_user): New function.
3688 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3689 (scan_partial_symbols): Add imported CU to imported_symtabs.
3690 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3691 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3692 (get_symtab, recursively_compute_inclusions)
3693 (compute_symtab_includes, process_cu_includes)
3694 (process_imported_unit_die): New functions.
3695 (process_die) <DW_TAG_imported_unit>: New case.
3696 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3698 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3700 (struct partial_die_info) <locdesc>: Remove.
3702 (process_psymtab_comp_unit): Add 'read_partial' argument.
3704 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3705 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3706 (add_partial_symbol): Update.
3707 (process_die): Handle DW_TAG_partial_unit.
3708 (read_file_scope): Update comment.
3709 (load_partial_dies): Handle DW_TAG_imported_unit.
3710 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3711 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3713 2012-05-10 Tom Tromey <tromey@redhat.com>
3715 * cc-with-dwz.sh: New file.
3717 2012-05-10 Tom Tromey <tromey@redhat.com>
3719 * symtab.h (struct symtab) <includes, user>: New fields.
3720 * block.h (struct block_iterator) <d, idx, which>: New fields.
3721 * block.c (initialize_block_iterator, find_iterator_symtab)
3722 (block_iterator_step, block_iter_name_step)
3723 (block_iter_match_step): New functions.
3724 (block_iterator_first, block_iterator_next)
3725 (block_iter_name_first, block_iter_name_next)
3726 (block_iter_match_first, block_iter_match_next): Rewrite.
3727 (get_block_symtab): New function.
3729 2012-05-10 Tom Tromey <tromey@redhat.com>
3731 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3733 * jit.c (finalize_symtab): Use allocate_global_block,
3735 * buildsym.c (finish_block_internal): New function, from old
3737 (finish_block): Rewrite.
3738 (end_symtab): Use finish_block_internal, set_block_symtab.
3739 * block.h (struct global_block): New.
3740 (allocate_global_block, set_block_symtab): Declare.
3741 * block.c (allocate_global_block, set_block_symtab): New
3744 2012-05-10 Tom Tromey <tromey@redhat.com>
3746 * psymtab.c (partial_map_expand_apply): Add assertion.
3747 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3748 (psymtab_to_symtab): Find unshared psymtab.
3749 (dump_psymtab): Print including psymtabs.
3750 (recursively_search_psymtabs): New function.
3751 (expand_symtabs_matching_via_partial): Use it.
3752 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3754 (enum psymtab_search_status): New.
3756 2012-05-10 Tom Tromey <tromey@redhat.com>
3758 * tracepoint.c (scope_info): Update.
3759 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3760 (find_pc_sect_symtab, search_symbols)
3761 (default_make_symbol_completion_list_break_on)
3762 (make_file_symbol_completion_list): Update.
3763 * symmisc.c (dump_symtab_1): Update.
3764 * stack.c (print_frame_args, iterate_over_block_locals)
3765 (print_frame_labels, iterate_over_block_arg_vars): Update.
3766 * python/py-block.c (block_object) <dict>: Remove.
3768 <iter>: Change type.
3769 (blpy_iter): Update.
3770 (blpy_block_syms_iternext): Update.
3771 * psymtab.c (map_block): Use block iterators.
3772 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3773 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3774 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3775 * infrun.c (check_exception_resume): Update.
3776 * cp-support.c (make_symbol_overload_list_block): Update.
3777 * coffread.c (patch_opaque_types): Update.
3778 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3779 * block.h (struct block_iterator): New.
3780 (block_iterator_first, block_iterator_next, block_iter_name_first)
3781 (block_iter_name_next, block_iter_match_first)
3782 (block_iter_match_next): Declare.
3783 (ALL_BLOCK_SYMBOLS): Redefine.
3784 * block.c (block_iterator_first, block_iterator_next)
3785 (block_iter_name_first, block_iter_name_next)
3786 (block_iter_match_first, block_iter_match_next): New functions.
3787 * ada-lang.c (ada_add_block_symbols)
3788 (ada_make_symbol_completion_list): Use block iterator.
3790 2012-05-10 Tom Tromey <tromey@redhat.com>
3792 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3793 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3794 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3795 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3796 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3799 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3801 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3802 print-file-var-lib2.c, print-file-var-main.c and
3803 print-file-var.exp (located in gdb/testsuite/gdb.base).
3805 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3807 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3808 try locating the symbol in the symbol's own objfile first, before
3809 extending the search to all objfiles.
3810 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3811 out of lookup_symbol_aux_symtabs.
3812 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3813 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3814 Do not search EXCLUDE_OBJFILE.
3815 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3816 (lookup_symbol_global): Search for matches in the block's objfile
3817 first, before searching all other objfiles.
3819 2012-05-10 Tristan Gingold <gingold@adacore.com>
3821 * printcmd.c (set_command): Add pre/post inc/dec.
3823 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3825 * gdb.1: Document -ex option.
3827 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3829 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3830 * inferior.h (AT_SYMBOL): Delete.
3832 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3834 * mips-tdep.c (mips_push_dummy_code): New function.
3835 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3836 ON_STACK and install mips_push_dummy_code as our gdbarch
3837 push_dummy_code routine.
3839 2012-05-09 Pedro Alves <palves@redhat.com>
3841 * target.c (set_maintenance_target_async_permitted): Rename to ...
3842 (set_target_async_command): ... this.
3843 (show_maintenance_target_async_permitted): Rename to ...
3844 (show_target_async_command): ... this.
3845 (initialize_targets): Adjust.
3847 2012-05-08 Doug Evans <dje@google.com>
3849 * go-exp.y (classify_name): Add missing assignment of fields of
3852 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3854 Display the ">" prompt in interactive mode while reading canned
3855 commands, even when the current interpreter is MI.
3857 * interps.c (interp_set_temp): New function.
3859 * interps.h (interp_set_temp): Add prototype.
3861 * cli/cli-script.c (restore_interp): New cleanup function.
3862 (read_command_lines): Temporarily override the current interpreter
3863 with CLI and arrange for restoring the original one.
3865 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3867 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3869 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3871 * probe.c (parse_probes): Move conditional to check for
3872 debuginfo files from here...
3873 * stap-probe.c (stap_get_probes): ... to here.
3875 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3876 H.J. Lu <hongjiu.lu@intel.com>
3878 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3879 `movl %esp, %ebp' for the X32 ABI.
3881 2012-05-07 Tom Tromey <tromey@redhat.com>
3883 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3885 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3886 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3887 (dwarf_stack_op_name): Remove.
3888 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3889 (decode_locdesc): Use get_DW_OP_name.
3890 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3891 (dwarf2_compile_expr_to_ax): Likewise.
3892 (disassemble_dwarf_expression): Likewise.
3893 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3895 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3897 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3898 (sh_linux_sigtramp_cache): New function.
3899 (sh_linux_sigreturn_init): New function.
3900 (sh_linux_rt_sigreturn_init): New function.
3901 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3903 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3905 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3906 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3907 (sh_linux_init_abi): Add init calls to register new tramp_frame
3908 definitions under 32-bit SH, update comments.
3910 2012-05-07 Pedro Alves <palves@redhat.com>
3914 * amd64-linux-tdep.c: Include glibc-tdep.h.
3915 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3916 gdbarch_skip_solib_resolver callback.
3918 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3920 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3921 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3922 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3923 (add_auto_load_safe_path): Change the error message.
3924 (_initialize_auto_load): Change the "safe-path" help text.
3925 * configure: Regenerate
3926 * configure.ac (--without-auto-load-safe-path): Set
3927 WITH_AUTO_LOAD_SAFE_PATH to /.
3929 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3931 * stap-probe.h: Do not include unecessary `probe.h'.
3933 2012-05-05 Alan Modra <amodra@gmail.com>
3935 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3936 bfd_und_section_ptr.
3937 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3938 and bfd_com_section_ptr.
3940 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3942 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3944 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3946 * windows-nat.h (segment_register_p_ftype): New typedef.
3947 (windows_set_segment_register_p): Add declaration.
3948 * windows-nat.c (segment_register_p): New static global.
3949 (windows_set_segment_register_p): New function.
3950 (do_windows_fetch_inferior_registers): Add special handling
3951 for segment registers.
3952 * amd64-windows-nat.c: #include "amd64-tdep.h".
3953 (amd64_windows_segment_register_p): New function.
3954 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3955 * i386-windows-nat.c: #include "i386-tdep.h".
3956 (i386_windows_segment_register_p): New function.
3957 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3959 2012-05-04 Tristan Gingold <gingold@adacore.com>
3961 * printcmd.c (set_command): Emit a warning if the expression is not
3964 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3966 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3969 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3971 * stap-probe.c (stap_is_operator): Change declaration.
3972 (stap_get_opcode): Change return value.
3973 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3974 `stap_parse_argument_1'.
3976 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3978 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3981 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3983 Add two new methods global_block and static_block to gdb.Symtab
3985 * NEWS (Python scripting): Add entry about the new methods.
3986 * python/py-symtab.c (stpy_global_block): New function which
3987 implements the gdb.Symtab.global_block() method.
3988 (stpy_static_block): New function which implements the
3989 gdb.Symtab.static_block() method.
3990 (symtab_object_methods): Add entries for the two new methods.
3992 2012-05-03 Doug Evans <dje@google.com>
3994 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3997 2012-05-03 Yao Qi <yao@codesourcery.com>
3999 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4001 (i386_process_record): Ditto.
4003 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4005 * infcall.c (unwind_on_signal_p): Make static.
4007 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4009 * sol-thread.c (solaris_pid_to_str): Make static.
4010 (_initialize_sol_thread): Add prototype.
4012 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4014 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4016 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4018 * MAINTAINERS: Remove myself.
4020 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4022 Fix --without-auto-load-safe-path for MS-Windows host platform.
4023 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4025 2012-05-02 Eli Zaretskii <eliz@gnu.org>
4027 * gdb_curses.h: Undefine KEY_EVENT before including curses
4028 headers. Move "#undef MOUSE_MOVED" before any curses header
4031 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4033 * features/i386/i386-mmx-linux.c: Regenerate.
4034 * features/rs6000/powerpc-32.c: Likewise.
4035 * features/rs6000/powerpc-32l.c: Likewise.
4036 * features/rs6000/powerpc-403.c: Likewise.
4037 * features/rs6000/powerpc-403gc.c: Likewise.
4038 * features/rs6000/powerpc-405.c: Likewise.
4039 * features/rs6000/powerpc-505.c: Likewise.
4040 * features/rs6000/powerpc-601.c: Likewise.
4041 * features/rs6000/powerpc-602.c: Likewise.
4042 * features/rs6000/powerpc-603.c: Likewise.
4043 * features/rs6000/powerpc-604.c: Likewise.
4044 * features/rs6000/powerpc-64.c: Likewise.
4045 * features/rs6000/powerpc-64l.c: Likewise.
4046 * features/rs6000/powerpc-750.c: Likewise.
4047 * features/rs6000/powerpc-860.c: Likewise.
4048 * features/rs6000/powerpc-e500.c: Likewise.
4049 * features/rs6000/powerpc-e500l.c: Likewise.
4050 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4051 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4052 * features/rs6000/rs6000.c: Likewise.
4054 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4056 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4058 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4059 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4060 (stap_parse_argument) <e>: Likewise.
4061 (handle_stap_probe) <byte_order>: Likewise.
4063 2012-04-30 Doug Evans <dje@google.com>
4065 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4066 init_and_read_dies_worker. All callers updated.
4067 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4068 replaced with init_cutu_and_read_dies.
4069 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4070 (find_partial_die): Remove FIXME. Don't free current CU.
4072 2012-04-30 Sterling Augustine <saugustine@google.com>
4074 * contrib: New directory.
4075 * contrib/test_pubnames_and_indexes.py: New file.
4077 2012-04-30 Doug Evans <dje@google.com>
4079 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4080 All callers updated.
4081 (init_cu_die_reader): Verify the section is non-empty.
4082 (dwarf_decode_line_header): Don't dereference section->asection
4083 until we know the section is present.
4085 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4087 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4090 2012-04-29 Yao Qi <yao@codesourcery.com>
4092 * gdb-code-style.el: New hook gdb-markup-hook
4093 and gdb-comment-hook.
4095 2012-04-28 Doug Evans <dje@google.com>
4097 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4098 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4100 * symfile.h (dwarf2_debug_sections): New member addr.
4101 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4102 (ctx_no_get_addr_index): New function.
4103 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4104 (ctx_no_get_addr_index): Declare.
4105 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4106 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4107 (dwarf_expr_ctx_funcs): Update.
4108 (needs_get_addr_index): New function.
4109 (needs_frame_ctx_funcs): Update.
4110 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4111 * dwarf2read.c: #include "gdbcore.h".
4112 (dwarf2_per_objfile): New members addr, dwo_files.
4113 (dwarf2_elf_names): Add entry for addr.
4114 (struct dwo_section_names): New type.
4115 (dwo_section_names): New static global.
4116 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4117 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4118 old debug_types_section member updated to use this.
4119 Rename member debug_types_section to info_or_types_section,
4121 (signatured_type): Rename member type_offset to type_offset_in_tu,
4122 all uses updated. New member type_offset_in_section.
4123 (struct dwo_sections): New type.
4124 (struct dwo_unit): New type.
4125 (struct dwo_file): New type.
4126 (die_reader_specs): New member dwo_file.
4127 (dwarf2_locate_sections): Watch for .debug_addr.
4128 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4129 (dwarf2_read_section): Get bfd of section from bfd's asection,
4131 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4132 (create_signatured_type_table_from_index): Initialize
4133 sig_type->info_or_types_section.
4134 (dw2_get_file_names): Statement lists for type units with DWO files
4135 live in the DWO file.
4136 (create_debug_types_hash_table): New function.
4137 (create_all_type_units): Rewrite.
4138 (init_cu_die_reader): New arg dwo_file, all callers updated.
4139 (init_and_read_dies_worker): Get section from
4140 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4141 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4142 continue reading the CU/TU from there.
4143 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4144 updated. Get section from this_cu->info_or_types_section.
4145 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4146 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4147 DW_FORM_GNU_str_index.
4148 (hash_dwo_file, eq_dwo_file): New functions.
4149 (allocate_dwo_file_hash_table): New function.
4150 (hash_dwo_unit, eq_dwo_unit): New functions.
4151 (allocate_dwo_unit_table): New function.
4152 (dwarf2_locate_dwo_sections): New function.
4153 (struct create_dwo_info_table_data): New type.
4154 (create_debug_info_hash_table_reader): New function.
4155 (create_debug_info_hash_table): New function.
4156 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4157 (lookup_dwo_file): New function.
4158 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4159 (free_dwo_file, free_dwo_file_cleanup): New functions.
4160 (free_dwo_file_from_slot, free_dwo_files): New functions.
4161 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4162 (dwarf2_record_block_ranges): Ditto.
4163 (read_partial_die): Ditto.
4164 (process_enumeration_scope): Update to use type_offset_in_section.
4165 (read_full_die_1): New function.
4166 (read_full_die): Rewrite.
4167 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4168 DW_FORM_GNU_str_index.
4169 (read_addr_index_1, read_addr_index): New functions.
4170 (read_addr_index_from_leb128): New function.
4171 (struct dwarf2_read_addr_index_data): New type.
4172 (dwarf2_read_addr_index_reader): New function.
4173 (dwarf2_read_addr_index): New function.
4174 (read_str_index): New function.
4175 (leb128_size): New function.
4176 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4177 If processing a type unit from a DWO file, get the line section
4179 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4180 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4181 DW_FORM_GNU_str_index.
4182 (lookup_die_type): Check whether section offset of type's die is
4183 known before looking it up. Remove assert. Condition can
4184 legimately happen for inter-cu type references.
4185 (dwarf_attr_name): Handle Fission attributes.
4186 (dwarf_form_name): Handle Fission forms.
4187 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4188 DW_FORM_GNU_str_index.
4189 (follow_die_sig): Update to use type_offset_in_section.
4190 (decode_locdesc): New case DW_OP_GNU_addr_index.
4191 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4192 DW_FORM_GNU_str_index.
4193 (cu_debug_loc_section): New function.
4194 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4195 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4196 Free DWO files if present.
4197 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4199 Refactor DIE reading.
4200 * dwarf2read.c (dwarf2_per_objfile): Replace members
4201 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4202 (die_reader_specs): New member "die_section". Temporarily make
4203 member "buffer" non-const, pending constifying all info_ptr uses.
4204 (die_reader_func_ftype): New typedef.
4205 (dw2_get_file_names_reader): New function.
4206 (dw2_get_file_names): Rewrite.
4207 (read_and_check_type_unit_head): Rename arg type_offset to
4209 (create_all_type_units): Improve debugging message.
4210 Improve dummy type unit check.
4211 (init_cu_die_reader): New arg "section". All callers updated.
4212 (init_and_read_dies_worker): New function.
4213 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4214 (init_cutu_and_read_dies_no_follow): New function.
4215 (init_cutu_and_read_dies_simple): New function.
4216 (process_psymtab_comp_unit_reader): New function.
4217 (process_psymtab_comp_unit): Delete args section,
4218 is_debug_types_section. Rewrite. All callers updated.
4219 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4220 All callers updated. Rewrite.
4221 (load_partial_comp_unit_reader): New function.
4222 (load_partial_comp_unit): Rewrite.
4223 (skip_children): New arg reader. Delete args buffer, cu.
4224 All callers updated.
4225 (skip_one_die): New arg reader. Delete args buffer, cu.
4226 All callers updated.
4227 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4228 All callers updated.
4229 (load_full_comp_unit_reader): New function.
4230 (load_full_comp_unit): Rewrite.
4231 (read_comp_unit): Delete.
4232 (read_die_and_children_1): Delete, contents moved ...
4233 (read_die_and_children): ... here.
4234 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4235 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4236 All callers updated.
4237 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4238 All callers updated.
4239 (find_partial_die): Rewrite load_all_dies support.
4240 (read_attribute_value): New arg reader. Delete args abfd, cu.
4241 All callers updated.
4242 (read_attribute): New arg reader. Delete args abfd, cu.
4243 All callers updated.
4244 (load_full_type_unit): Add assert.
4245 (read_signatured_type_reader): New function.
4246 (read_signatured_type): Rewrite.
4247 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4248 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4249 All callers updated. Set per_cu->cu = NULL after freeing it.
4250 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4251 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4252 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4253 (set_die_type): Update.
4254 (get_die_type_at_offset): Update.
4255 (read_file_scope): Call prepare_one_comp_unit.
4256 (read_type_unit_scope): Ditto.
4257 (prepare_one_comp_unit): Set producer if present.
4259 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4261 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4262 gettext function on `error'.
4264 2012-04-27 Doug Evans <dje@google.com>
4266 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4269 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4270 Tom Tromey <tromey@redhat.com>
4272 * breakpoint.c (struct breakpoint_objfile_data)
4273 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4274 <exception_probes>: New fields.
4275 (free_breakpoint_probes): New function.
4276 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4277 `_Unwind_DebugHook'.
4278 (create_exception_master_breakpoint): Likewise.
4279 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4280 * infrun.c: Including necessary header files for handling SystemTap
4282 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4283 via SystemTap probes.
4284 (check_exception_resume): Remove `func' argument. Handle exception
4285 unwinding breakpoint set via a SystemTap probe.
4286 (insert_exception_resume_from_probe): New function.
4288 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4289 Tom Tromey <tromey@redhat.com>
4290 Jan Kratochvil <jan.kratochvil@redhat.com>
4292 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4293 (COMMON_OBS): Likewise.
4294 (HFILES_NO_SRCDIR): Add `probe'.
4295 * NEWS: Mention support for static and SystemTap probes.
4296 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4297 SystemTap probes' arguments parser.
4298 * arm-linux-tdep.c: Including headers needed to perform the parsing
4299 of SystemTap probes' arguments.
4300 (arm_stap_is_single_operand): New function.
4301 (arm_stap_parse_special_token): Likewise.
4302 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4303 probes' arguments parser.
4304 * ax-gdb.c (require_rvalue): Removing static declaration.
4305 (gen_expr): Likewise.
4306 * ax-gdb.h (gen_expr): Declaring function.
4307 (require_rvalue): Likewise.
4308 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4309 (bkpt_probe_breakpoint_ops): New variable.
4310 (momentary_breakpoint_from_master): Set the `probe' value.
4311 (add_location_to_breakpoint): Likewise.
4312 (break_command_1): Using proper breakpoint_ops according to the
4313 argument passed by the user in the command line.
4314 (bkpt_probe_insert_location): New function.
4315 (bkpt_probe_remove_location): Likewise.
4316 (bkpt_probe_create_sals_from_address): Likewise.
4317 (bkpt_probe_decode_linespec): Likewise.
4318 (tracepoint_probe_create_sals_from_address): Likewise.
4319 (tracepoint_probe_decode_linespec): Likewise.
4320 (tracepoint_probe_breakpoint_ops): New variable.
4321 (trace_command): Using proper breakpoint_ops according to the
4322 argument passed by the user in the command line.
4323 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4324 static probes on breakpoints and tracepoints.
4325 * breakpoint.h (struct bp_location) <probe>: New field.
4326 * cli-utils.c (skip_spaces_const): New function.
4327 (extract_arg): Likewise.
4328 * cli-utils.h (skip_spaces_const): Likewise.
4329 (extract_arg): Likewise.
4330 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4331 * configure.ac: Append `stap-probe.o' to be generated when ELF
4333 * configure: Regenerate.
4334 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4335 * elfread.c: Include `probe.h' and `arch-utils.h'.
4336 (probe_key): New variable.
4337 (elf_get_probes): New function.
4338 (elf_get_probe_argument_count): Likewise.
4339 (elf_evaluate_probe_argument): Likewise.
4340 (elf_compile_to_ax): Likewise.
4341 (elf_symfile_relocate_probe): Likewise.
4342 (stap_probe_key_free): Likewise.
4343 (elf_probe_fns): New variable.
4344 (elf_sym_fns): Add `sym_probe_fns' value.
4345 (elf_sym_fns_lazy_psyms): Likewise.
4346 (elf_sym_fns_gdb_index): Likewise.
4347 (_initialize_elfread): Initialize objfile cache for static
4349 * gdb_vecs.h (struct probe): New forward declaration.
4350 (probe_p): New VEC declaration.
4351 * gdbarch.c: Regenerate.
4352 * gdbarch.h: Regenerate.
4353 * gdbarch.sh (stap_integer_prefix): New variable.
4354 (stap_integer_suffix): Likewise.
4355 (stap_register_prefix): Likewise.
4356 (stap_register_suffix): Likewise.
4357 (stap_register_indirection_prefix): Likewise.
4358 (stap_register_indirection_suffix): Likewise.
4359 (stap_gdb_register_prefix): Likewise.
4360 (stap_gdb_register_suffix): Likewise.
4361 (stap_is_single_operand): New function.
4362 (stap_parse_special_token): Likewise.
4363 (struct stap_parse_info): Forward declaration.
4364 * i386-tdep.c: Including headers needed to perform the parsing
4365 of SystemTap probes' arguments.
4366 (i386_stap_is_single_operand): New function.
4367 (i386_stap_parse_special_token): Likewise.
4368 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4369 probes' arguments parser.
4370 * i386-tdep.h (i386_stap_is_single_operand): New function.
4371 (i386_stap_parse_special_token): Likewise.
4372 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4373 * mipsread.c (ecoff_sym_fns): Likewise.
4374 * objfiles.c (objfile_relocate1): Support relocation for static
4376 * parse.c (prefixify_expression): Remove static declaration.
4377 (initialize_expout): Likewise.
4378 (reallocate_expout): Likewise.
4379 * parser-defs.h (initialize_expout): Declare function.
4380 (reallocate_expout): Likewise.
4381 (prefixify_expression): Likewise.
4382 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4383 of SystemTap probes' arguments.
4384 (ppc_stap_is_single_operand): New function.
4385 (ppc_stap_parse_special_token): Likewise.
4386 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4387 probes' arguments parser.
4388 * probe.c: New file, for generic statically defined probe support.
4389 * probe.h: Likewise.
4390 * s390-tdep.c: Including headers needed to perform the parsing of
4391 SystemTap probes' arguments.
4392 (s390_stap_is_single_operand): New function.
4393 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4394 probes' arguments parser.
4395 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4396 * stap-probe.c: New file, for SystemTap probe support.
4397 * stap-probe.h: Likewise.
4398 * symfile.h: Include `gdb_vecs.h'.
4399 (struct sym_probe_fns): New struct.
4400 (struct sym_fns) <sym_probe_fns>: New field.
4401 * symtab.c (init_sal): Initialize `probe' field.
4402 * symtab.h (struct probe): Forward declaration.
4403 (struct symtab_and_line) <probe>: New field.
4404 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4406 (stop_tracing): Likewise.
4407 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4409 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4410 Tom Tromey <tromey@redhat.com>
4412 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4413 and to compile agent expressions.
4414 * infrun.c (siginfo_make_value): New argument `ignore'.
4415 (siginfo_funcs): New struct.
4416 (_initialize_infrun): New argument when calling
4417 `create_internalvar_type_lazy'.
4418 * thread.c (thread_id_make_value): New argument `ignore'.
4419 (thread_funcs): New struct.
4420 (_initialize_thread): New argument when calling
4421 `create_internalvar_type_lazy'.
4422 * tracepoint.c (sdata_make_value): New argument `ignore'.
4423 (sdata_funcs): New struct.
4424 (_initialize_tracepoint): New argument when calling
4425 `create_internalvar_type_lazy'.
4426 * value.c (make_value): New struct.
4427 (create_internalvar_type_lazy): New argument `data'.
4428 (compile_internalvar_to_ax): New function.
4429 (value_of_internalvar): Properly handling `make_value' case.
4430 (clear_internalvar): Likewise.
4431 (show_convenience): Adding `TRY_CATCH' block.
4432 * value.h (internalvar_make_value): Delete, replace by...
4433 (struct internalvar_funcs): ... this.
4434 (create_internalvar_type_lazy) <fun>: Delete argument.
4435 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4436 (compile_internalvar_to_ax): New function.
4437 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4438 (tlb_funcs): New struct.
4439 (_initialize_windows_tdep): New argument when calling
4440 `create_internalvar_type_lazy'.
4442 2012-04-27 Mark Wielaard <mjw@redhat.com>
4444 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4445 see whether it is an address or a constant offset from DW_AT_low_pc.
4446 (dwarf2_record_block_ranges): Likewise.
4447 (read_partial_die): Likewise.
4449 2012-04-26 Mark Wielaard <mjw@redhat.com>
4451 * MAINTAINERS (Write After Approval): Add myself to the list.
4453 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4455 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4456 (proc_prettyprint_signal): Likewise.
4457 (proc_prettyprint_faultset): Likewise.
4458 (proc_prettyprint_fault): Likewise.
4459 (proc_prettyprint_actionset): Likewise.
4460 (proc_prettyprint_flags): Move to new proc-flags.c section.
4461 (proc_prettyfprint_flags): New prototype.
4462 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4463 (proc_syscall, proc_cursig): Likewise.
4464 (proc_set_kill_on_last_close): Likewise.
4465 (proc_unset_kill_on_last_close): Likewise.
4466 (proc_set_watchpoint): Make static.
4467 (proc_delete_dead_threads): Likewise.
4468 (procfs_set_watchpoint): Likewise.
4469 (_initialize_procfs): Add prototype.
4470 * proc-events.c: Include proc-utils.h.
4471 (init_syscall_table): Make static.
4472 * proc-api.c (_initialize_proc_api): Add prototype.
4473 * proc-flags.c: Include proc-utils.h.
4475 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4477 * configure.ac: Add AC_ARG_PROGRAM.
4478 * configure: Regenerate.
4480 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4482 Fix DW_AT_lower_bound defaults for DWARF-4+.
4483 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4484 high. New variable low_default_is_valid. Implement DWARF-4+
4485 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4486 no default by the DWARF standard.
4488 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4489 Maciej W. Rozycki <macro@codesourcery.com>
4491 * infrun.c (handle_inferior_event): Move the check for return
4492 trampolines ahead of the check for function trampolines.
4493 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4494 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4495 (mips_str_mips16_ret_stub): Likewise.
4496 (mips_str_call_fp_stub): Likewise.
4497 (mips_str_call_stub): Likewise.
4498 (mips_str_fn_stub): Likewise.
4499 (mips_str_pic): Likewise.
4500 (mips_in_frame_stub): New function.
4501 (mips_unwind_pc): Return the return address rather than the PC
4502 if the PC of an intermediate frame is inside a call thunk.
4503 (mips_is_stub_suffix): New function.
4504 (mips_is_stub_mode): Likewise.
4505 (mips_get_mips16_fn_stub_pc): Likewise.
4506 (mips_skip_mips16_trampoline_code): Update to handle all the
4507 currently generated stub types. Don't recurse into __fn_stub
4508 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4509 Use cooked register accesses.
4510 (mips_in_return_stub): Reintroduce function.
4511 (mips_skip_trampoline_code): Traverse trampolines recursively.
4512 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4514 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4518 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4520 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4521 * features/arm-with-m-vfp-d16.xml: New file. Describes
4522 Cortex-M with VFPv4-sp-d16 FPU register layout.
4523 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4524 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4525 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4526 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4527 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4529 2012-04-25 Doug Evans <dje@google.com>
4531 * cli/cli-decode.c (print_doc_line): Use stream instead of
4534 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4536 * features/arm-with-iwmmxt.c: Regenerate.
4537 * features/arm-with-m-fpa-layout.c: Likewise.
4538 * features/arm-with-m.c: Likewise.
4539 * features/arm-with-neon.c: Likewise.
4540 * features/arm-with-vfpv2.c: Likewise.
4541 * features/arm-with-vfpv3.c: Likewise.
4542 * features/mips-dsp-linux.c: Likewise.
4543 * features/mips-linux.c: Likewise.
4544 * features/mips64-dsp-linux.c: Likewise.
4545 * features/mips64-linux.c: Likewise.
4546 * features/s390-linux32.c: Likewise.
4547 * features/s390-linux32v1.c: Likewise.
4548 * features/s390-linux32v2.c: Likewise.
4549 * features/s390-linux64.c: Likewise.
4550 * features/s390-linux64v1.c: Likewise.
4551 * features/s390-linux64v2.c: Likewise.
4552 * features/s390x-linux64.c: Likewise.
4553 * features/s390x-linux64v1.c: Likewise.
4554 * features/s390x-linux64v2.c: Likewise.
4555 * features/tic6x-c62x-linux.c: Likewise.
4556 * features/tic6x-c62x.c: Likewise.
4557 * features/tic6x-c64x-linux.c: Likewise.
4558 * features/tic6x-c64x.c: Likewise.
4559 * features/tic6x-c64xp-linux.c: Likewise.
4560 * features/tic6x-c64xp.c: Likewise.
4561 * target-descriptions.c: Only generate `field_type' and `type'
4562 variables when needed.
4564 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4566 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4568 2012-04-25 Doug Evans <dje@google.com>
4570 Initial pass at Go language support.
4572 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4574 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4575 (YYFILES): Add go-exp.c.
4576 (YYOBJ): Add go-exp.o.
4577 (local-maintainer-clean): Delete go-exp.c.
4578 * defs.h (enum language): Add language_go.
4579 * dwarf2read.c: #include "go-lang.h".
4580 (fixup_go_packaging): New function.
4581 (process_full_comp_unit): Call it when processing Go CUs.
4582 (dwarf2_physname): Add Go support.
4583 (read_file_scope): Handle missing language spec for GNU Go.
4584 (set_cu_language): Handle DW_LANG_Go.
4585 * go-exp.y: New file.
4586 * go-lang.h: New file.
4587 * go-lang.c: New file.
4588 * go-typeprint.c: New file.
4589 * go-valprint.c: New file.
4590 * symtab.c: #include "go-lang.h".
4591 (symbol_set_language): Handle language_go.
4592 (symbol_find_demangled_name, symbol_set_names): Ditto.
4593 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4595 2012-04-24 Jim Meyering <meyering@redhat.com>
4597 avoid a few strncpy-induced buffer overruns
4598 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4599 fname and psargs before trying to concatenate.
4600 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4601 "name" before applying strchr.
4603 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4605 * CONTRIBUTE: Use unified diff instead of context diff when
4608 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4610 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4611 code. Handle JR.HB correctly.
4613 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4616 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4617 with the other MIPS16 helpers.
4619 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4621 * observer.sh: Conditionally declare `args', thus cleaning up
4622 unused instances of this variable.
4624 2012-04-24 Yao Qi <yao@codesourcery.com>
4626 Revert this patch to allow breakpoint always-inserted
4628 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4629 * breakpoint.c: Include record.h.
4630 (breakpoints_always_inserted_mode): Return false when the record
4633 * breakpoint.c (iterate_over_bp_locations): New.
4634 * breakpoint.h: Declare.
4635 New typedef walk_bp_location_callback.
4636 * record.c (record_open): Call record_init_record_breakpoints.
4637 (record_sync_record_breakpoints): New.
4638 (record_init_record_breakpoints): New.
4639 * NEWS: Mention supporting breakpoint always-inserted mode in
4642 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4644 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4647 2012-04-24 Yao Qi <yao@codesourcery.com>
4649 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4650 (is_catchpoint): ... it.
4651 (print_one_breakpoint_location): Caller update.
4652 * breakpoint.h: Update declaration.
4654 2012-04-23 David S. Miller <davem@davemloft.net>
4656 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4658 2012-04-23 Tom Tromey <tromey@redhat.com>
4660 * buildsym.c (add_free_pendings): Remove.
4661 * buildsym.h (add_free_pendings): Remove.
4663 2012-04-23 Doug Evans <dje@google.com>
4665 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4666 attr.u.unsnd instead of attr.u.addr.
4667 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4668 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4670 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4671 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4673 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4675 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4677 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4678 (mips_o32_return_value): Likewise.
4679 (mips_o64_return_value): Likewise.
4681 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4683 * ada-lang.c (ada_evaluate_subexp): Add cases for
4684 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4685 their treatment in eval.c.
4687 2012-04-21 David S. Miller <davem@davemloft.net>
4689 * sparc-tdep.c (X_DISP10): Define.
4690 (sparc_analyze_control_transfer): Handle compare-and-branch.
4692 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4694 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4695 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4697 2012-04-20 Nigel Stephens <nigel@mips.com>
4698 Maciej W. Rozycki <macro@codesourcery.com>
4700 * mips-tdep.c (mips_float_register_p): New function.
4701 (mips_convert_register_float_case_p): Use mips_float_register_p.
4702 (mips_register_type): Likewise.
4703 (mips_print_register): Likewise.
4704 (print_gp_register_row): Likewise.
4705 (mips_print_registers_info): Likewise.
4707 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4709 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4712 2012-04-20 Andrew Pinski <apinski@cavium.com>
4714 * MAINTAINERS (Write After Approval): Add myself to the list.
4716 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4718 * MAINTAINERS: Update my e-mail address.
4720 2012-04-20 Pedro Alves <palves@redhat.com>
4722 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4724 * configure: Regenerate.
4726 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4728 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4730 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4732 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4734 Fix compilation compatibility with python-2.4
4735 * python/py-type.c (convert_field): Cast ADDRSTRING for
4736 PyObject_SetAttrString as non-const. New comment.
4738 2012-04-19 Tom Tromey <tromey@redhat.com>
4740 * top.c (quit_target): Use all_cleanups.
4741 * main.c (captured_command_loop): Use all_cleanups.
4742 * exceptions.c (throw_exception): Use all_cleanups.
4744 2012-04-19 Pedro Alves <palves@redhat.com>
4746 * Makefile.in (GNULIB_BUILDDIR): New.
4747 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4748 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4749 (CLEANDIRS). Remove gnulib/import.
4750 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4752 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4753 (gnulib/import/Makefile): Replace gnulib/import with
4754 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4755 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4756 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4757 acx_configure_dir.m4.
4758 * acinclude.m4: Include acx_configure_dir.m4.
4759 * acx_configure_dir.m4: New file.
4760 * aclocal.m4: Regenerate.
4761 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4762 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4763 (GNULIB): New variable.
4764 (GNULIB_STDINT_H): Adjust.
4765 (AC_OUTPUT): Don't output gnulib/Makefile.
4766 * gdb/defs.h: Include build-gnulib/config.h.
4767 * aclocal.m4: Regenerate.
4768 * config.in: Regenerate.
4769 * configure: Regenerate.
4771 * gnulib/Makefile.in: New file.
4772 * gnulib/configure.ac: New file.
4773 * gnulib/aclocal.m4: New file.
4774 * gnulib/config.in: New file.
4775 * gnulib/configure: New file.
4776 * gnulib/: Re-run gnulib-tool to adjust.
4778 2012-04-19 Doug Evans <dje@google.com>
4780 * cleanups.h (struct cleanup): Move to cleanups.c.
4781 (make_cleanup_dtor_ftype): New typedef.
4782 (make_cleanup_dtor): Use it.
4783 (ALL_CLEANUPS): Replace with ...
4784 (all_cleanups): ... this. Declare. All uses updated.
4785 * cleanups.c: #include "gdb_assert.h".
4786 (sentinel_cleanup): New static global.
4787 (SENTINEL_CLEANUP): Define.
4788 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4789 (make_my_cleanup2): Assert result is non-NULL.
4790 (all_cleanups): New function.
4791 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4794 2012-04-19 Pedro Alves <palves@redhat.com>
4796 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4797 Adjust paths to gnulib imported files.
4799 2012-04-19 Pedro Alves <palves@redhat.com>
4801 * gnulib/: Move whole directory ...
4802 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4803 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4804 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4805 (aclocal_m4_deps): Adjust.
4806 * aclocal.m4: Regenerate.
4807 * configure: Regenerate.
4808 * configure.ac: Adjust AC_OUTPUT output.
4810 2012-04-19 Yao Qi <yao@codesourcery.com>
4812 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4814 * vec.c: Move it ...
4815 * common/vec.c: ... here.
4816 * vec.h: Move it ...
4817 * common/vec.h: ... here.
4819 2012-04-19 Yao Qi <yao@codesourcery.com>
4821 * gdb-code-style.el: New.
4823 2012-04-18 Pedro Alves <palves@redhat.com>
4825 Update gnulib from latest git.
4826 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4828 * gnulib/Makefile.am: Update.
4829 * gnulib/dummy.c: Update.
4830 * gnulib/extra/arg-nonnull.h: Update.
4831 * gnulib/extra/c++defs.h: Update.
4832 * gnulib/extra/update-copyright: Update.
4833 * gnulib/extra/warn-on-use.h: Update.
4834 * gnulib/inttypes.in.h: Update.
4835 * gnulib/m4/00gnulib.m4: Update.
4836 * gnulib/m4/extensions.m4: Update.
4837 * gnulib/m4/gnulib-cache.m4: Update.
4838 * gnulib/m4/gnulib-common.m4: Update.
4839 * gnulib/m4/gnulib-comp.m4: Update.
4840 * gnulib/m4/gnulib-tool.m4: Update.
4841 * gnulib/m4/include_next.m4: Update.
4842 * gnulib/m4/inttypes-pri.m4: Update.
4843 * gnulib/m4/inttypes.m4: Update.
4844 * gnulib/m4/longlong.m4: Update.
4845 * gnulib/m4/memchr.m4: Update.
4846 * gnulib/m4/memmem.m4: Update.
4847 * gnulib/m4/mmap-anon.m4: Update.
4848 * gnulib/m4/multiarch.m4: Update.
4849 * gnulib/m4/onceonly.m4: Update.
4850 * gnulib/m4/stddef_h.m4: Update.
4851 * gnulib/m4/stdint.m4: Update.
4852 * gnulib/m4/string_h.m4: Update.
4853 * gnulib/m4/warn-on-use.m4: Update.
4854 * gnulib/m4/wchar_h.m4: Update.
4855 * gnulib/m4/wchar_t.m4: Update.
4856 * gnulib/m4/wint_t.m4: Update.
4857 * gnulib/memchr.c: Update.
4858 * gnulib/memmem.c: Update.
4859 * gnulib/stddef.in.h: Update.
4860 * gnulib/stdint.in.h: Update.
4861 * gnulib/str-two-way.h: Update.
4862 * gnulib/string.in.h: Update.
4863 * gnulib/wchar.in.h: Update.
4865 * gnulib/extra/arg-nonnull.h: Delete.
4866 * gnulib/extra/c++defs.h: Delete.
4867 * gnulib/extra/warn-on-use.h: Delete.
4868 * gnulib/m4/wchar_h.m4: Delete.
4869 * gnulib/m4/wint_t.m4: Delete.
4870 * gnulib/wchar.in.h: Delete.
4872 * gnulib/extra/snippets/arg-nonnull.h: New.
4873 * gnulib/extra/snippets/c++defs.h: New.
4874 * gnulib/extra/snippets/warn-on-use.h: New.
4876 * aclocal.m4: Regenerate.
4877 * config.in: Regenerate.
4878 * configure: Regenerate.
4879 * gnulib/Makefile.in: Regenerate.
4881 2012-04-18 Pedro Alves <palves@redhat.com>
4883 Reimport the update-copyright module from gnulib
4884 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4886 * configure: Regenerate.
4887 * gnulib/Makefile.am: Update.
4888 * gnulib/Makefile.in: Regenerate.
4889 * gnulib/extra/update-copyright: Update.
4890 * gnulib/m4/gnulib-cache.m4: Update.
4891 * gnulib/m4/gnulib-comp.m4: Update.
4893 2012-04-18 Tristan Gingold <gingold@adacore.com>
4895 * configure.ac (aix): Put -lpthread into libs.
4896 * configure: Regenerate.
4898 2012-04-18 Tom Tromey <tromey@redhat.com>
4900 * linespec.c (convert_linespec_to_sals): Don't use
4902 (compare_msymbols): Arguments are minsym_and_objfile, not
4903 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4905 2012-04-18 Pedro Alves <palves@redhat.com>
4907 Revert gnulib/ part of:
4908 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4909 Copyright year update in most files (performed by copyright.sh).
4911 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4913 Fix 64-bit constants on 32-bit hosts.
4914 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4915 from unsigned long to ULONGEST.
4916 (read_signed_leb128): Change declaration return type from long to
4918 (dwarf2_const_value_attr): Change declaration parameter value from long
4920 (dwarf2_compute_name): Change variable value from long to LONGEST.
4921 (read_unsigned_leb128): Change return type, variable result and some
4922 casts from unsigned long to ULONGEST.
4923 (read_signed_leb128): Change return type, variable result and some
4924 casts from long to LONGEST.
4925 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4926 value from long to LONGEST.
4927 (dwarf2_const_value): Change variable value from long to LONGEST.
4928 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4929 plongest and hex_string.
4930 * symtab.h (struct general_symbol_info): Change ivalue from long to
4931 LONGEST, remove the comment.
4932 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4933 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4935 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4938 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4939 * ada-lang.c (ada_discrete_type_high_bound)
4940 (ada_discrete_type_low_bound): Fix function comment. Use
4941 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4942 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4943 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4944 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4945 Use TYPE_FIELD_ENUMVAL.
4946 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4947 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4948 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4949 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4951 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4952 * dwarf2read.c (process_enumeration_scope): Likewise.
4953 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4955 (class StructMainTypePrettyPrinter): Support also
4956 FIELD_LOC_KIND_ENUMVAL.
4957 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4959 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4960 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4961 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4962 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4964 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4965 accommodate enumval.
4966 (struct call_site): Adjust loc_kind to accommodate enumval.
4967 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4968 (TYPE_FIELD_ENUMVAL): New macros.
4969 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4970 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4972 * p-typeprint.c (pascal_type_print_base): Likewise.
4973 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4975 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4976 * python/py-type.c (convert_field): New variable addrstring. Use
4977 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4978 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4979 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4980 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4982 * valprint.c (generic_val_print): Likewise.
4984 2012-04-17 Doug Evans <dje@google.com>
4986 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4988 * dwarf2read.c: Whitespace fixes.
4989 (lookup_signatured_type): Tweak comment.
4990 (get_die_type_at_offset): Fix comment.
4992 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4994 * xcoffread.c (xcoff_secnum_to_sections): New function.
4995 (secnum_to_section, secnum_to_bfd_section): Reimplement
4996 using xcoff_secnum_to_sections. Rename "secnum" parameter
4998 (RECORD_MINIMAL_SYMBOL): Delete.
4999 (record_minimal_symbol): New function.
5000 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5001 by call to record_minimal_symbol and set misc_func_recorded
5002 to 1. Set last_csect_sec to the XCOFF section index instead
5003 of GDB's section_offset index. Update calls to
5004 prim_record_minimal_symbol_and_info to pass the BFD section
5007 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5009 * xcoffread.c (read_xcoff_symtab): Delete variables
5010 last_csect_val and last_csect_sec and associated code.
5012 2012-04-17 Doug Evans <dje@google.com>
5014 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5015 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5016 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5017 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5019 * cleanups.h: New file.
5020 * cleanups.c: New file.
5021 * Makefile.in (SFILES): Add cleanups.c.
5022 (HFILES_NO_SRCDIR): Add cleanups.h.
5023 (COMMON_OBS): Add cleanups.o.
5024 * defs.h (struct cleanup): Moved to cleanups.h.
5025 (do_cleanups,do_final_cleanups): Ditto.
5026 (discard_cleanups,discard_final_cleanups): Ditto
5027 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5028 (save_cleanups,save_final_cleanups): Ditto.
5029 (restore_cleanups,restore_final_cleanups): Ditto.
5030 (null_cleanup): Ditto.
5031 (make_my_cleanup,make_my_cleanup2): Ditto.
5032 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5033 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5034 (do_cleanups,do_final_cleanups): Ditto.
5035 (discard_cleanups,discard_final_cleanups): Ditto
5036 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5037 (save_cleanups,save_final_cleanups): Ditto.
5038 (restore_cleanups,restore_final_cleanups): Ditto.
5039 (null_cleanup): Ditto.
5040 (make_my_cleanup,make_my_cleanup2): Ditto.
5041 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5043 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5045 (make_cleanup_dyn_string_delete): Ditto.
5046 (make_cleanup_ui_file_delete): Ditto.
5047 (make_cleanup_ui_out_redirect_pop): Ditto.
5048 (make_cleanup_free_section_addr_info): Ditto.
5049 (make_cleanup_restore_integer): Ditto.
5050 (make_cleanup_unpush_target): Ditto.
5051 (make_cleanup_value_free_to_mark): Ditto.
5052 (make_cleanup_value_free): Ditto.
5053 (make_cleanup_free_so): Ditto.
5055 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5057 New option "set debug auto-load".
5058 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5059 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5060 (auto_load_safe_path_vec_update)
5061 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5063 (file_is_auto_load_safe): New parameters debug_fmt and ....
5064 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5065 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5066 caller by explanatory string.
5067 (_initialize_auto_load): Register "set debug auto-load".
5068 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5070 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5071 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5072 by explanatory string.
5073 * main.c (captured_main): Likewise.
5074 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5075 (source_section_scripts): Likewise.
5077 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 New option "set auto-load safe-path".
5080 * NEWS: New commands "set auto-load safe-path"
5081 and "show auto-load safe-path".
5082 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5083 (auto_load_safe_path, auto_load_safe_path_vec)
5084 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5085 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5086 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5087 (source_gdb_script_for_objfile): New variable is_safe. Call
5088 file_is_auto_load_safe. Return if it is not.
5089 (struct loaded_script): New field loaded.
5090 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5091 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5092 output "Missing" to "No".
5093 (_initialize_auto_load): New variable cmd. Initialize
5094 auto_load_safe_path. Register "set auto-load safe-path",
5095 "show auto-load safe-path" and "add-auto-load-safe-path".
5096 * auto-load.h (maybe_add_script): Add parameter loaded.
5097 (file_is_auto_load_safe): New declaration.
5098 * config.in: Regenerate.
5099 * configure: Regenerate.
5100 * configure.ac: New parameters --with-auto-load-safe-path
5101 and --without-auto-load-safe-path.
5102 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5103 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5104 * main.c (captured_main): Check file_is_auto_load_safe for
5106 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5107 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5108 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5111 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5113 auto-load: Implementation.
5114 * NEWS: New descriptions for "info auto-load",
5115 "info auto-load gdb-scripts", "info auto-load python-scripts",
5116 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5117 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5118 and "show auto-load-scripts". New description for "set auto-load",
5119 "show auto-load", "set auto-load gdb-scripts",
5120 "show auto-load gdb-scripts", "set auto-load python-scripts",
5121 "show auto-load python-scripts", "set auto-load local-gdbinit",
5122 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5123 "show auto-load libthread-db".
5124 * auto-load.c: Remove include python/python-internal.h. Add includes
5125 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5127 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5128 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5129 (gdbpy_global_auto_load): Rename to ...
5130 (global_auto_load): ... here.
5131 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5132 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5133 (script_language_gdb, source_gdb_script_for_objfile): New.
5134 (struct loaded_script): New field language.
5135 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5137 (maybe_add_script): Add parameter language. Drop redundant
5138 entry.full_path initialization. Initialize entry.language and
5140 (auto_load_objfile_script): Change parameter suffix to language.
5141 Remove the call of maybe_add_script.
5142 Call language->source_script_for_objfile.
5143 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5145 (collect_matching_scripts): Adjust it for
5146 struct collect_matching_scripts_data.
5147 (auto_load_info_scripts_pattern_nl): New variable.
5148 (info_auto_load_scripts): Rename to ...
5149 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5150 for struct collect_matching_scripts_data.
5151 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5152 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5153 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5154 (auto_load_info_cmdlist_get): New.
5155 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5156 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5157 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5158 "info auto-load local-gdbinit".
5159 * auto-load.h (struct script_language): New.
5160 (gdbpy_global_auto_load): Rename to ...
5161 (global_auto_load): ... here.
5162 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5163 (auto_load_local_gdbinit_loaded): New declarations.
5164 (maybe_add_script): New parameter language.
5165 (auto_load_objfile_script): Change parameter suffix to language.
5166 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5167 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5168 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5170 * linux-thread-db.c: Include auto-load.h and ctype.h.
5171 (auto_load_thread_db, show_auto_load_thread_db): New.
5172 (struct thread_db_info): New field filename.
5173 (delete_thread_db_info): Call xfree for FILENAME.
5174 (try_thread_db_load): Initialize FILENAME.
5175 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5176 if !AUTO_LOAD_THREAD_DB.
5177 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5178 (_initialize_thread_db): Install auto_load_thread_db
5179 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5180 as "info auto-load libthread-db".
5181 * main.c (captured_main): Rename gdbpy_global_auto_load to
5182 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5183 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5184 (print_gdb_help): Extend the help for 'local init file'.
5185 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5186 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5187 (auto_load_scripts): Rename to ...
5188 (auto_load_python_scripts): ... here, update the comment.
5189 (gdbpy_load_auto_script_for_objfile): New declaration.
5190 (show_auto_load_python_scripts, script_language_python)
5191 (gdbpy_load_auto_script_for_objfile): New.
5192 (source_section_scripts): Refactor the code.
5193 (load_auto_scripts_for_objfile): Rename to ...
5194 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5195 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5196 (info_auto_load_python_scripts): New.
5197 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5198 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5199 Register "set auto-load-scripts" as its deprecated alias. Register
5200 "info auto-load python-scripts". Register "info auto-load-scripts" as
5201 its deprecated alias.
5202 (load_auto_scripts_for_objfile): Rename to ...
5203 (gdbpy_load_auto_scripts_for_objfile): ... here.
5204 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5205 (gdbpy_load_auto_scripts_for_objfile): ... here.
5207 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5209 auto-load: Move files.
5210 * Makefile.in (SFILES): Add auto-load.c.
5211 (HFILES_NO_SRCDIR): Add auto-load.h.
5212 (COMMON_OBS): Add auto-load.o.
5213 (distclean): Change .gdbinit for gdb-gdb.gdb.
5214 * auto-load.c: New file, with parts from python/py-auto-load.c.
5215 * auto-load.h: New file, with parts from python/python.h.
5216 * configure: Regenerate.
5217 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5218 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5219 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5220 * main.c: Include auto-load.h.
5221 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5222 command.h, observer.h and progspace.h to auto-load.c. Add include
5224 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5225 (struct loaded_script, auto_load_pspace_data)
5226 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5227 (hash_loaded_script_entry, eq_loaded_script_entry)
5228 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5229 (maybe_add_script): Move to auto-load.c.
5230 (source_section_scripts): Change maybe_add_script parameters passing,
5231 use script_not_found_warning_print.
5232 (clear_section_scripts, auto_load_objfile_script)
5233 (auto_load_new_objfile, loaded_script_ptr)
5234 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5235 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5236 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5237 auto_load_new_objfile and info_auto_load_scripts initizations to
5239 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5241 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5244 * charset.c (find_charset_names): Remove variables ix and elt.
5245 Use free_char_ptr_vec.
5246 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5247 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5248 debugdir_end. New variable debugdir_len.
5249 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5250 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5252 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5253 and elt. Use free_char_ptr_vec.
5254 * source.c (add_path): Remove variables argv, arg and argv_index.
5255 New variables dir_vec, back_to, ix and name.
5256 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5257 make_cleanup_freeargv. Remove variable separator. Simplify the code
5258 no longer expecting DIRNAME_SEPARATOR.
5259 (openp): Remove variable p, p1 and len. New variables dir_vec,
5260 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5261 no longer expecting DIRNAME_SEPARATOR.
5262 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5263 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5265 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5266 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5267 (dirnames_to_char_ptr_vec): New functions.
5269 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5272 * source.c (add_path): Remove always true conditional 'p == 0' and
5273 unindent its code block.
5275 2012-04-17 Pedro Alves <palves@redhat.com>
5277 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5278 (FIELD_BITPOS_LVAL): ... this.
5279 (FIELD_BITPOS): New.
5280 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5281 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5282 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5284 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5286 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5287 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5288 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5291 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5293 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5294 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5295 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5296 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5297 * jv-lang.c (java_link_class_type): Likewise, once.
5298 * stabsread.c (read_enum_type): Likewise.
5300 2012-04-16 Yao Qi <yao@codesourcery.com>
5302 * common/agent.c (agent_run_command): Add one more parameter `len'.
5304 * common/agent.h: Update declaration.
5305 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5307 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5309 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5312 * value.c (value_actual_type): New function.
5313 * value.h (value_actual_type): New declaration.
5314 * varobj.c (update_type_if_necessary): New function.
5315 (varobj_create): Call value_actual_type instead of
5317 (install_dynamic_child): distinct changed and type changed MI variable
5319 (update_dynamic_varobj_children): Updated for install_dynamic_child
5320 change. All callers updated.
5321 (varobj_update): Support for MI variable object type change if
5322 the value changed and RTTI is used to determine the type.
5323 (create_child_with_value): Call value_actual_type instead of
5325 (adjust_value_for_child_access): Extended with a new parameter which
5326 specify whether the given value should be casted to enclosing type.
5327 All callers updated.
5329 2012-04-14 Yao Qi <yao@codesourcery.com>
5331 Import gnulib module inttypes from git
5332 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5333 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
5334 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5335 gnulib/m4/inttypes-pri.m4
5336 * aclocal.m4, config.in, configure: Regenerated.
5337 * gnulib/Makefile.am: Update.
5338 * gnulib/Makefile.in: Update.
5339 * gnulib/m4/gnulib-cache.m4: Update.
5340 * gnulib/m4/gnulib-comp.m4: Update.
5341 * gnulib/inttypes.in.h: New.
5342 * gnulib/m4/inttypes-pri.m4: New.
5343 * gnulib/m4/inttypes.m4: New.
5345 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
5347 * infrun.c (resume): Update PC address to the real PC after
5348 preparing to do displaced stepping.
5350 2012-04-12 Doug Evans <dje@google.com>
5352 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5353 All callers updated.
5355 2012-04-12 Mark Kettenis <kettenis@gnu.org>
5357 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5359 2012-04-12 Doug Evans <dje@google.com>
5361 * dwarf2read.c (create_all_type_units): Renamed from
5362 create_debug_types_hash_table. All callers updated.
5364 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5365 local type_sig to sig_type, type_offset to type_offset_in_tu.
5366 (hash_signatured_type): Renamed from hash_type_signature,
5367 all callers updated.
5368 (eq_signatured_type): Renamed from eq_type_signature,
5369 all callers updated.
5370 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5371 (process_enumeration_scope): Ditto.
5372 (lookup_signatured_type_at_offset): Ditto.
5373 (load_full_type_unit, read_signatured_type): Ditto.
5375 2012-04-12 Yao Qi <yao@codesourcery.com>
5377 * remote.c (async_remote_interrupt): Correct function name in
5379 (async_remote_interrupt_twice): Ditto.
5381 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5383 * source.c (find_and_open_source): Consistently pass resulting
5384 full path through xfullpath.
5386 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5388 Provide more specific displaced-stepping memory error message.
5389 * infrun.c (displaced_step_prepare): New variable status. Call
5390 target_read_memory instead of read_memory, provide more specific
5393 2012-04-11 Tristan Gingold <gingold@adacore.com>
5396 * darwin-nat.c (darwin_execvp): Revert previous patch.
5398 2012-04-11 Tristan Gingold <gingold@adacore.com>
5401 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5404 2012-04-11 Tristan Gingold <gingold@adacore.com>
5406 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5409 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5411 New command 'explore' which helps explore values and types in
5413 * NEWS: Add an entry about the new 'explore' command.
5414 * data-directory/Makefile.in: Add gdb/command/explore.py
5415 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5416 command using the GDB Python API.
5418 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5420 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5421 extension in jump target calculation.
5423 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5425 * mips-tdep.c (mips32_next_pc): Handle JALX.
5427 2012-04-10 Yao Qi <yao@codesourcery.com>
5429 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5431 2012-04-10 Yao Qi <yao@codesourcery.com>
5433 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5434 and gnulib/m4/gnulib-tool.m4.
5436 2012-04-10 Doug Evans <dje@google.com>
5438 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5439 (load_partial_dies): Clarify comment.
5440 (find_partial_die): Support rereading type units.
5441 Clarify CU handling, if we know offset is in CU, don't search for the
5442 containing CU. Add comment regarding memory waste.
5444 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5446 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5447 i386/x32-avx and i386/x32-avx-linux.
5448 (i386/x32-expedite): New.
5449 (i386/x32-linux-expedite): Likewise.
5450 (i386/x32-avx-expedite): Likewise.
5451 (i386/x32-avx-linux-expedite): Likewise.
5452 ($(outdir)/i386/x32.dat): Likewise.
5453 ($(outdir)/i386/x32-linux.dat): Likewise.
5454 ($(outdir)/i386/x32-avx.dat): Likewise.
5455 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5457 * features/i386/x32-avx-linux.xml: New file.
5458 * features/i386/x32-avx.xml: Likewise.
5459 * features/i386/x32-core.xml: Likewise.
5460 * features/i386/x32-linux.xml: Likewise.
5461 * features/i386/x32.xml: Likewise.
5463 * features/i386/x32-avx-linux.c: New. Generated.
5464 * features/i386/x32-avx.c: Likewise.
5465 * features/i386/x32-linux.c: Likewise.
5466 * features/i386/x32.c: Likewise.
5467 * regformats/i386/x32-avx-linux.dat: Likewise.
5468 * regformats/i386/x32-avx.dat: Likewise.
5469 * regformats/i386/x32-linux.dat: Likewise.
5470 * regformats/i386/x32.dat: Likewise.
5472 2012-04-10 Tristan Gingold <gingold@adacore.com>
5474 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5475 code to kill the inferior.
5477 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5479 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5481 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5483 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5484 (yyvsp): New defines.
5485 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5487 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5489 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5491 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5493 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5496 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5498 * sparc64-tdep.c (sparc64_store_arguments)
5499 (sparc64_store_arguments): Fix coding style.
5501 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5503 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5504 complex floats, adjust some related comments and tighten a related
5506 (sparc64_extract_return_value): Handle complex floats.
5508 2012-04-07 Doug Evans <dje@google.com>
5510 * dwarf2read.c (load_partial_dies): Change condition to assert.
5512 2012-04-06 Doug Evans <dje@google.com>
5514 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5517 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5519 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5521 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5522 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5525 2012-04-05 Keith Seitz <keiths@redhat.com>
5527 * linespec.c (decode_compound): Remove.
5528 (enum offset_relative_sign): New enum.
5529 (struct line_offset): New struct.
5530 (struct linespec): New struct.
5531 (struct linespec_state): Move file_symtabs,
5532 user_filename, and user_function into struct linespec.
5533 Make result an anonymous struct holding vectors of
5534 symbolp and minsym_and_objfile_d.
5535 Add language member.
5536 (enum ls_token_type): New enum.
5537 (linespec_keywords): New array.
5538 (struct ls_token): New struct.
5539 (struct ls_parser): New struct.
5540 (linespec_lexer_lex_number): New function.
5541 (linespec_lexer_lex_keyword): New function.
5542 (is_ada_operator): New function.
5543 (skip_quote_char): New function.
5544 (copy_token_string): New function.
5545 (is_closing_quote_enclosed): New function.
5546 (find_parameter_list_end): New function.
5547 (linespec_lexer_lex_string): New function.
5548 (linespec_lexer_lex_one): New function.
5549 (linespec_lexer_consume_token): New function.
5550 (linespec_lexer_peek_token): New function.
5551 (cplusplus_error): Remove unused function.
5552 (find_methods): Update comment.
5553 (find_toplevel_char): Return const.
5554 (is_objc_method_format): Remove unused function.
5555 (find_toplevel_string): New function.
5556 (is_linespec_boundary): Remove.
5557 (symbol_not_found_error): New function.
5558 (find_method_overload_end): Remove function.
5559 (unexpected_linespec_error): New function.
5560 (keep_name_info): Remove.
5561 (linespec_parse_line_offset): New function.
5562 (linespec_parse_basic): New function.
5563 (canonicalize_linespec): New function.
5564 (decode_line_internal): Remove.
5565 (create_sals_line_offset): New function adapted from
5567 (convert_linespec_to_sals): New function.
5568 (parse_linespec): New function.
5569 (linespec_parser_new): New function.
5570 (linespec_state_destructor): Change parameter type to
5571 struct linespec_state *.
5572 Add language parameter.
5573 Remove freeing of moved members.
5574 (linespec_parser_delete): New function.
5575 (decode_line_full): Use parse_linespec and linespec_parser_new.
5576 (decode_line_1): Likewise.
5577 (decode_indirect): Rename to ...
5578 (linespec_expression_to_pc): ... this and rewrite
5579 to simply find CORE_ADDR, storing this result for later
5581 (locate_first_half): Remove.
5582 (deocde_objc): Add parameter LS.
5583 Initialize new struct collect_info members.
5584 Handle minimal symbols, too.
5585 (decode_compound): Delete.
5586 (lookup_prefix_sym): Rewrite.
5587 (compare_msymbols): New function.
5588 (find_method): Rewrite.
5589 Do not call cplusplus_error.
5590 (symtabs_from_filename): Rewrite.
5591 (collect_function_symbols): Delete.
5592 (find_function_symbols): Rewrite without ARGPTR-style
5594 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5595 (decode_dollar): Adapted and renamed to ...
5596 (linespec_parse_variable): ... this.
5597 (find_linespec_symbols): New function.
5598 (decode_label): Adapted and renamed to ...
5599 (find_label_symbols): ... this.
5600 (decode_digits_list_mode): Add and use LS argument.
5601 (decode_digits_ordinary): Likewise.
5602 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5603 If in list mode, allow any symbol class. Otherwise, only
5604 permit LOC_BLOCK symbols.
5605 (minsym_found): Update comments.
5606 (search_minsyms_for_name): Do not convert the matching symbol
5607 into a SAL. Simply push the symbol and objfile into the
5609 (decode_variable): Delete. Contents adapted into
5610 find_linespec_symbols.
5612 * cp-support.c (SKIP_SPACE): Remove.
5613 (operator_tokens): Remove unused global.
5614 (cp_validate_operator): Remove.
5615 * cp-support.h (cp_validate_operator): Remove declaration.
5617 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5619 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5620 for TYPE_VPTR_FIELDNO.
5621 * valprint.c (valprint_check_validity): Make it global, move the
5622 function comment ...
5623 * value.h (valprint_check_validity): ... to this new declaration.
5625 2012-04-02 Tristan Gingold <gingold@adacore.com>
5627 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5628 the STATE32 api for i386 state.
5629 (i386_darwin_store_inferior_registers): Likewise.
5631 2012-04-02 Tristan Gingold <gingold@adacore.com>
5633 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5635 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5638 2012-04-02 Tristan Gingold <gingold@adacore.com>
5641 * darwin-nat.c (darwin_execvp): Set binary preference.
5643 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5645 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5647 2012-03-30 Tom Tromey <tromey@redhat.com>
5649 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5650 of TRY_CATCH. Fix error handling.
5651 * python/py-value.c (convert_value_from_python): Move 'old'
5652 declaration to innermost scope.
5654 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5655 Andrey Smirnov <andrew.smirnov@gmail.com>
5657 -Wshadow warning fix.
5658 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5659 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5660 Adjust code accordingly.
5662 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5664 * ada-lang.c (symbol_completion_add): Rename parameter
5665 "encoded" into "encoded_p". Ajust code and documentation
5668 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5669 Andrey Smirnov <andrew.smirnov@gmail.com>
5671 -Wshadow warning fix.
5672 * ada-lang.c (symbol_completion_add): Rename parameter
5673 "wild_match" into wild_match_p. Update code and documentation
5676 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5678 * ada-lang.c (symbol_completion_match): Rename parameter
5679 "encoded" into "encoded_p". Ajust code and documentation
5682 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5683 Andrey Smirnov <andrew.smirnov@gmail.com>
5685 -Wshadow warning fix.
5686 * ada-lang.c (symbol_completion_match): Rename parameter
5687 "wild_match" into "wild_match_p". Adjust code and function
5688 documentation accordingly.
5690 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5691 Andrey Smirnov <andrew.smirnov@gmail.com>
5693 -Wshadow warning fix.
5694 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5695 "symbol_info" into "info". Adjust code accordingly.
5696 (ada_lookup_symbol): Likewise.
5698 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5700 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5701 of this function's documentation.
5703 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5704 Andrey Smirnov <andrew.smirnov@gmail.com>
5706 -Wshadow warning fix.
5707 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5708 variable into "wild_match_p". Adjust code accordingly.
5710 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5711 Andrey Smirnov <andrew.smirnov@gmail.com>
5713 -Wshadow warning fix.
5714 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5715 parameter into "wild_match_p". Adjust code accordingly.
5716 Document this parameter in the function description.
5718 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5719 Andrey Smirnov <andrew.smirnov@gmail.com>
5721 -Wshadow warning fix.
5722 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5723 "wild_match" parameter to "wild_match_p" (-Wshadow).
5725 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5727 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5728 in function documentation.
5730 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5731 Andrey Smirnov <andrew.smirnov@gmail.com>
5733 -Wshadow warning fix.
5734 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5735 variable into wild_match_p. Adjust code accordingly.
5737 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5738 Andrey Smirnov <andrew.smirnov@gmail.com>
5740 * ada-valprint.c (ada_val_print_1): Move the code handling
5741 TYPE_CODE_ENUM inside its own lexical block. Declare
5742 variables len and val there, instead of in the function's
5743 top level block. Avoid declaring deref_val again in a way
5744 that shadows another variable of the same name declared
5745 in one of the up-level blocks. Just re-use the up-level
5748 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5750 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5751 Replace block_found argument by symbol_info. Adjust
5752 implementation accordingly. Add function documentation.
5753 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5755 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5756 * ada-exp.y (write_object_renaming): Adjust to new
5757 ada_lookup_encoded_symbol API.
5759 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5761 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5764 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5766 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5767 (v850_register_name): Add the mpu and fpu register names.
5768 (v850e_register_name): Add the mpu and fpu register names.
5769 (v850e2_register_name): New function.
5770 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5773 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5775 * NEWS: Add entry for Ada varobj support.
5777 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5779 * varobj.c (default_value_is_changeable_p): New function,
5780 extracted from varobj_value_is_changeable_p. Add declaration.
5781 (ada_value_is_changeable_p): New function, extracted from
5782 varobj_value_is_changeable_p. Add declaration.
5783 (struct language_specific): New field "value_is_changeable_p".
5784 (languages): Add entries for new field.
5785 (varobj_create): Set language before calling install_new_value.
5786 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5787 "value_is_changeable_p" language callback.
5789 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5791 * ada-varobj.h, ada-varobj.c: New files.
5792 * Makefile.in (SFILES): Add ada-varobj.c.
5793 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5794 (COMMON_OBS): Add ada-varobj.o.
5796 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5798 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5799 (struct language_specific): New field "value_has_mutated".
5800 (languages): Set field "value_has_mutated" in each entry of array.
5801 (varobj_value_has_mutated): New function.
5802 (varobj_udpdate): Add handling of type mutation.
5803 (value_of_root): Add handling of type mutation.
5804 (ada_value_has_mutated): New function.
5806 2012-03-28 Pedro Alves <palves@redhat.com>
5808 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5809 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5811 2012-03-28 Tom Tromey <tromey@redhat.com>
5813 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5814 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5817 2012-03-28 Tom Tromey <tromey@redhat.com>
5819 * .dir-locals.el: New file.
5821 2012-03-28 Pedro Alves <palves@redhat.com>
5823 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5825 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5827 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5830 2012-03-27 Pedro Alves <palves@redhat.com>
5832 Eliminate struct ui_stream.
5834 * ui-out.h (struct ui_stream): Delete.
5835 (ui_out_field_stream): Adjust prototype.
5836 (ui_out_stream_new, ui_out_stream_delete)
5837 (make_cleanup_ui_out_stream_delete): Delete declarations.
5838 * ui-out.c (ui_out_field_stream): Change prototype to take a
5839 ui_file instead of a ui_stream. Adjust.
5840 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5841 (make_cleanup_ui_out_stream_delete): Delete.
5842 * breakpoint.c (print_breakpoint_location)
5843 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5844 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5845 * disasm.c (dump_insns): Ditto.
5846 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5848 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5849 ui_stream/ui_out_stream_new.
5850 * infcmd.c (print_return_value): Ditto.
5851 * osdata.c (info_osdata_command): Don't allocate a local
5853 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5854 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5855 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5856 allocate a local ui_stream.
5857 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5858 instead of ui_stream/ui_out_stream_new.
5859 (list_args_or_locals): Don't allocate a local ui_stream.
5860 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5861 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5862 ui_stream/ui_out_stream_new.
5863 * cli/cli-setshow.c (do_setshow_command): Ditto.
5865 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5867 * arm-linux-tdep.c (arm_linux_init_abi): Call
5868 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5869 * arm-tdep.c (arm_process_record): New function.
5870 (deallocate_reg_mem): New function.
5871 (decode_insn): New function.
5872 (thumb_record_branch): New function.
5873 (thumb_record_ldm_stm_swi(): New function.
5874 (thumb_record_misc): New function.
5875 (thumb_record_ld_st_stack): New function.
5876 (thumb_record_ld_st_imm_offset): New function.
5877 (thumb_record_ld_st_reg_offset(): New function.
5878 (thumb_record_add_sub_cmp_mov): New function.
5879 (thumb_record_shift_add_sub): New function.
5880 (arm_record_coproc_data_proc): New function.
5881 (arm_record_coproc): New function.
5882 (arm_record_b_bl): New function.
5883 (arm_record_ld_st_multiple): New function.
5884 (arm_record_ld_st_reg_offset): New function.
5885 (arm_record_ld_st_imm_offset): New function.
5886 (arm_record_data_proc_imm): New function.
5887 (arm_record_data_proc_misc_ld_str): New function.
5888 (arm_record_extension_space): New function.
5889 (arm_record_strx): New function.
5890 (sbo_sbz): New function.
5891 (struct insn_decode_record): New structure for arm insn record.
5892 (REG_ALLOC): New macro for reg allocations.
5893 (MEM_ALLOC): New macro for memory allocations.
5894 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5896 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5898 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5899 (store_register): Likewise.
5901 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5903 * MAINTAINERS (Write After Approval): Add myself to the list.
5905 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5907 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5908 Describe also the option "auto".
5910 2012-03-22 Richard Henderson <rth@redhat.com>
5912 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5913 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5915 2012-03-22 Richard Henderson <rth@redhat.com>
5917 * jit.c (jit_read_code_entry): Compute alignment and offset of
5918 int64_t member before computing entry_size.
5920 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5922 Python scripting: Add new method Value.referenced_value to
5923 gdb.Value which can dereference pointer as well as reference
5925 * NEWS: Add entry under 'Python scripting' about the new method
5926 Value.referenced_value on gdb.Value objects.
5927 * python/py-value.c (valpy_referenced_value): New function
5928 defining a new method on gdb.Value objects which can dereference
5929 pointer and reference values.
5931 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5933 * MAINTAINERS (Write After Approval): Add myself to the list.
5935 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5937 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5938 in addition to "main".
5940 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5942 * expression.h (op_name): Add declaration.
5943 * expprint.c (op_name): Remove declaration. Make non-static.
5944 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5946 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5948 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5950 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5951 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5952 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5953 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5954 (linux_nat_get_siginfo): Likewise.
5955 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5956 (linux_nat_get_siginfo): Likewise.
5957 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5958 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5959 * procfs.c (gdb_siginfo_t): Likewise.
5961 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5963 * .gitignore: Ignore more files.
5965 2012-03-20 Pedro Alves <palves@redhat.com>
5967 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5970 2012-03-20 Yao Qi <yao@codesourcery.com>
5972 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5975 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5977 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5978 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5979 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5981 * dwarf2expr.h (cu_offset, sect_offset): New types.
5982 (struct dwarf_expr_context_funcs) <dwarf_call>
5983 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5985 (struct dwarf_expr_context) <len>: Improve the comment.
5986 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5987 cu_offset and sect_offset.
5988 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5989 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5990 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5991 * dwarf2loc.h: Include dwarf2expr.h.
5992 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5994 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5995 Improve the comment.
5996 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5997 (struct signatured_type, struct line_header, struct partial_die_info)
5998 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5999 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6000 (get_die_type_at_offset, create_cus_from_index)
6001 (create_signatured_type_table_from_index, dw2_get_file_names)
6002 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6003 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6004 (create_debug_types_hash_table, process_psymtab_comp_unit)
6005 (load_partial_comp_unit, create_all_comp_units)
6006 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6007 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6008 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6009 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6010 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6011 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6012 (find_partial_die, read_attribute_value, lookup_die_type)
6013 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6014 (is_ref_attr): New function comment.
6015 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6016 Use cu_offset and sect_offset.
6017 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6018 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6019 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6020 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6021 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6022 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6023 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6026 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6029 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6030 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6032 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6034 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6036 * NEWS: Describe new options --init-command=FILE, -ix and
6037 --init-eval-command=COMMAND, -iex.
6038 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6039 CMDARG_INIT_COMMAND.
6040 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6041 "init-command", "init-eval-command", "ix" and "iex" to the variable
6042 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6043 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6044 (print_gdb_help): Describe --init-command=FILE, -ix and
6045 --init-eval-command=COMMAND, -iex.
6047 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6050 * main.c (struct cmdarg): Move it here from main. Add more comments.
6051 (cmdarg_s, VEC (cmdarg_s)): New.
6052 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6053 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6054 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6055 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6058 2012-03-19 Tom Tromey <tromey@redhat.com>
6060 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6062 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6065 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6068 2012-03-16 Chris January <chris.january@allinea.com>
6070 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6073 2012-03-16 Chris January <chris.january@allinea.com>
6075 * source.c (add_path): Use memmove instead of strcpy because the
6078 2012-03-16 Joel Brobecker <brobecker@adacore.com>
6080 * value.h (set_value_parent): Add declaration.
6081 * value.c (set_value_parent): New function.
6082 (value_address): If VALUE->PARENT is not NULL, then use it as
6083 the base address instead of VALUE->LOCATION.address.
6084 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6085 the same as OBJ's address. Adjust V's offset accordingly.
6088 2012-03-16 Gary Benson <gbenson@redhat.com>
6090 PR breakpoints/10738
6091 * dwarf2read.c (use_deprecated_index_sections): New global.
6092 (struct partial_die_info): New member may_be_inlined.
6093 (read_partial_die): Set may_be_inlined where appropriate.
6094 (add_partial_subprogram): Add partial symbols for partial
6095 DIEs that may be inlined.
6096 (new_symbol_full): Add inlined subroutines to the current
6098 (write_psymtabs_to_index): Bump version number.
6099 (dwarf2_read_index): Read only version 6 indices unless
6100 use_deprecated_index_sections is set.
6101 * linespec.c (symbol_and_data_callback): New structure.
6102 (iterate_inline_only): New function.
6103 (iterate_over_all_matching_symtabs): New argument
6104 "include_inline". If nonzero, also call the callback for
6105 symbols representing inlined subroutines.
6106 (lookup_prefix_sym): Pass extra argument to the above.
6107 (find_function_symbols): Likewise.
6108 (add_matching_symbols_to_info): Likewise.
6109 * NEWS: Mention that GDB can now set breakpoints on inlined
6112 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6114 * p-typeprint.c (pascal_type_print_method_args):
6115 Fix display of parameter of methods.
6117 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6119 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6120 Add missing prototype.
6122 2012-03-16 Yao Qi <yao@codesourcery.com>
6123 Jan Kratochvil <jan.kratochvil@redhat.com>
6125 Fix false compilation warning.
6126 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6128 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6129 Pedro Alves <pedro@codesourcery.com>
6131 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6132 (arm_register_g_packet_guesses): New function.
6133 (arm_gdbarch_init): Don't force a target description with
6134 registers when the executable is detected as M-profile. Instead
6135 set gdbarch->tdep->is_m. Register `g' packet guesses.
6136 (_initialize_arm_tdep): Initialize the new target description.
6137 * features/arm-with-m-fpa-layout.xml: New description.
6138 * features/arm-with-m-fpa-layout.c: New, generated.
6140 2012-03-15 Joel Brobecker <brobecker@adacore.com>
6142 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6143 Update function description.
6144 (insert_bp_location): Do not wipe bl->target_info out.
6145 * mem-break.c: #include "gdb_string.h".
6146 (default_memory_insert_breakpoint): Do not call target_read_memory
6147 with a pointer to the breakpoint's shadow_contents buffer. Use
6148 a local buffer instead.
6149 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6151 2012-03-15 Tom Tromey <tromey@redhat.com>
6153 * NEWS: Mention "info vtbl", not "info vtable".
6154 * cp-support.c (info_vtbl_command): Fix comment.
6155 (_initialize_cp_support): Fix text.
6157 2012-03-15 Tom Tromey <tromey@redhat.com>
6159 * cp-valprint.c (cp_print_value_fields): Use
6160 print_function_pointer_address for vtable slot.
6162 2012-03-15 Tom Tromey <tromey@redhat.com>
6164 * gnu-v3-abi.c (struct value_and_voffset): New.
6165 (hash_value_and_voffset, eq_value_and_voffset)
6166 (compare_value_and_voffset, compute_vtable_size)
6167 (print_one_vtable, gnuv3_print_vtable): New functions.
6168 (init_gnuv3_ops): Initialize 'print_vtable' field.
6169 * cp-support.c (info_vtbl_command): New function.
6170 (_initialize_cp_support): Add "info vtbl".
6171 * cp-abi.h (cplus_print_vtable): Declare.
6172 (struct cp_abi_ops) <print_vtable>: New field.
6173 * cp-abi.c (cplus_print_vtable): New function.
6176 2012-03-15 Tom Tromey <tromey@redhat.com>
6178 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6179 iterate_over_symbols.
6181 2012-03-14 Doug Evans <dje@google.com>
6183 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6184 DW_OP_GNU_parameter_ref.
6186 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6188 Fix double prompt of 'interpreter-exec mi'.
6189 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6190 (mi_interpreter_resume): use it.
6191 (mi_execute_command_input_handler): New function.
6192 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6193 mi_execute_command_input_handler.
6195 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
6197 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6199 (darwin_debug_port_info): Make static.
6200 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6201 * machoread.c (_initialize_machoread): Add prototype.
6202 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6203 (i386_darwin_set_control, i386_darwin_get_control)
6204 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6205 i386_darwin_get_status, i386_darwin_get_control):
6206 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6208 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6210 * ax-gdb.c (gen_usual_unary): Remove special handling of
6211 enum and bool types.
6213 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6215 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6217 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6219 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6221 2012-03-13 Chris January <chris.january@allinea.com>
6223 * aix-thread.c (fill_sprs): Store the floating point registers
6224 at the correct offsets into vals.
6226 2012-03-13 Doug Evans <dje@google.com>
6228 * NEWS: Mention symbol-reloading has been deleted.
6229 * symfile.c (symbol_reloading): Delete.
6230 (show_symbol_reloading): Delete.
6231 (_initialize_symfile): Delete set/show symbol-reloading.
6233 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6234 read_in_chain until we have successfully read it in.
6235 (load_full_comp_unit): Ditto.
6236 (read_signatured_type): Add comment.
6238 2012-03-13 Chris January <chris.january@allinea.com>
6240 * stabsread.c (fix_common_block): Change type of valu argument
6243 2012-03-13 Chris January <chris.january@allinea.com>
6245 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6248 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6250 * common/linux-procfs.c (linux_proc_get_int): New, from
6251 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6253 (linux_proc_get_tgid): Only call linux_proc_get_int.
6254 (linux_proc_get_tracerpid): New.
6255 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6256 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6257 linux_proc_pid_has_state.
6258 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6259 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6260 (linux_ptrace_attach_warnings): New.
6261 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6263 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6264 (linux_nat_attach): New variables ex, buffer, message and message_s.
6265 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6267 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6269 * Makefile.in (linux-ptrace.o): New.
6270 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6272 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6273 * common/linux-ptrace.c: New file.
6274 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6275 * config/arm/linux.mh: Likewise.
6276 * config/i386/linux.mh: Likewise.
6277 * config/i386/linux64.mh: Likewise.
6278 * config/ia64/linux.mh: Likewise.
6279 * config/m32r/linux.mh: Likewise.
6280 * config/m68k/linux.mh: Likewise.
6281 * config/mips/linux.mh: Likewise.
6282 * config/pa/linux.mh: Likewise.
6283 * config/powerpc/linux.mh: Likewise.
6284 * config/powerpc/ppc64-linux.mh: Likewise.
6285 * config/powerpc/spu-linux.mh: Likewise.
6286 * config/s390/s390.mh: Likewise.
6287 * config/sparc/linux.mh: Likewise.
6288 * config/sparc/linux64.mh: Likewise.
6289 * config/xtensa/linux.mh: Likewise.
6290 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6291 common/linux-procfs.c.
6292 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6294 2012-03-13 Hui Zhu <teawater@gmail.com>
6295 Pedro Alves <palves@redhat.com>
6297 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6298 CREATE_BREAKPOINT_FLAGS_INSERTED.
6299 (create_breakpoint_sal, create_breakpoints_sal)
6300 (base_breakpoint_create_breakpoints_sal)
6301 (tracepoint_create_breakpoints_sal)
6302 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6304 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6305 (ftrace_command, strace_command): Adjust.
6306 (create_tracepoint_from_upload): Pass
6307 CREATE_BREAKPOINT_FLAGS_INSERTED.
6308 * breakpoint.h (enum breakpoint_create_flags): New.
6309 (create_breakpoint): New flags parameter.
6310 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6311 * python/py-breakpoint.c (bppy_init): Adjust.
6312 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6313 * spu-tdep.c (spu_catch_start): Adjust.
6315 2012-03-13 Pedro Alves <palves@redhat.com>
6316 Hui Zhu <teawater@gmail.com>
6317 Yao Qi <yao@codesourcery.com>
6319 * remote.c (struct remote_state): New field `starting_up'.
6320 (remote_start_remote): Set and clear it.
6321 (remote_can_download_tracepoint): If starting up, return false.
6323 2012-03-13 Yao Qi <yao@codesourcery.com>
6325 * inferior.h (struct inferior): Remove fields any_syscall_count,
6326 syscalls_counts and total_syscalls_count. Move them to new
6327 struct catch_syscall_inferior_data in breakpoint.c.
6328 * breakpoint.c: Call DEF_VEC_I(int).
6329 (struct catch_syscall_inferior_data): New.
6330 (get_catch_syscall_inferior_data): New.
6331 (catch_syscall_inferior_data_cleanup): New.
6332 (insert_catch_syscall): Update to access data in
6333 struct catch_syscall_inferior_data.
6334 (insert_catch_syscall): Likewise.
6335 (remove_catch_syscall): Likewise.
6336 (remove_catch_syscall): Likewise.
6337 (is_syscall_catchpoint_enabled): Likewise.
6338 (add_catch_command): Likewise.
6339 (_initialize_breakpoint): Register cleanup.
6340 * breakpoint.h: Removed DEF_VEC_I(int).
6341 * dwarf2loc.c: Call DEF_VEC_I(int).
6342 * mi/mi-main.c: Likewise.
6344 2012-03-12 Mark Kettenis <kettenis@gnu.org>
6346 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6348 2012-03-12 Chris January <chris.january@allinea.com>
6350 * aix-thread.c (_initialize_aix_thread): Add prototype.
6351 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6352 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6354 2012-03-12 Joel Brobecker <brobecker@adacore.com>
6356 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6357 include of "amd64-nat.h".
6359 2012-03-12 Tom Tromey <tromey@redhat.com>
6361 * buildsym.c (record_pending_block): Now static.
6362 * buildsym.h: (record_pending_block): Remove.
6364 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
6366 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6368 2012-03-09 Tom Tromey <tromey@redhat.com>
6370 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6371 producer_is_gxx_lt_4_6>: New fields.
6372 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6374 2012-03-09 Tom Tromey <tromey@redhat.com>
6376 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6378 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6380 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6383 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6385 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6387 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6389 Fix -Wmissing-prototypes build.
6390 * arm-linux-nat.c (get_thread_id): Make it static.
6391 * xtensa-linux-nat.c (get_thread_id): Likewise.
6393 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6395 * server.c (process_point_options): If a conditional expression
6396 is found, only print a message if remote_debug is nonzero.
6398 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6400 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6401 of internal error for unknown/unsupported types.
6403 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6405 Fix CU relative vs. absolute DIE offsets.
6406 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6407 offset to offset_in_cu.
6408 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6410 (dwarf2_fetch_die_location_block): Rename parameter offset to
6411 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6413 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6415 * libunwind-frame.c: Rename to ...
6416 * ia64-libunwind-tdep.c: ... here.
6417 * libunwind-frame.h: Rename to ...
6418 * ia64-libunwind-tdep.h: ... here.
6419 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6420 ia64-libunwind-tdep.h.
6421 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6422 * README (--with-libunwind): Rename to ...
6423 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6424 * config.in: Regenerate.
6425 * configure: Regenerate.
6426 * configure.ac: New option --with-libunwind-ia64, make the
6427 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6428 Remove AC_DEFINE for HAVE_LIBUNWIND.
6429 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6430 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6431 Rename libunwind-frame in the general comment.
6432 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6433 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6434 Move forward declarations inside #ifndef. Rename libunwind-frame in
6435 the general comment.
6436 * ia64-tdep.c: Rename libunwind-frame.h #include to
6437 ia64-libunwind-tdep.h.
6438 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6439 (ia64_libunwind_descr): Rename libunwind-frame to
6440 ia64-libunwind-tdep in these function comments.
6441 * ia64-tdep.h: Rename libunwind-frame.h #include to
6442 ia64-libunwind-tdep.h.
6443 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6444 ia64-libunwind-tdep in that data comment.
6446 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6448 * libunwind-frame.h (struct frame_unwind): New declaration.
6450 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6452 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6453 "set breakpoint condition-evaluation" command.
6455 2012-03-08 Tristan Gingold <gingold@adacore.com>
6457 * sparc-stub.c: Move to stubs/
6458 * sh-stub.c: Likewise.
6459 * m68k-stub.c: Likewise.
6460 * m32r-stub.c: Likewise.
6461 * i386-stub.c: Likewise.
6463 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6465 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6466 linux_get_siginfo_type.
6468 * m68klinux-nat.c: Include "gdb_proc_service.h".
6469 (PTRACE_GET_THREAD_AREA): Define.
6470 (ps_get_thread_area): New function.
6472 2012-03-08 Yao Qi <yao@codesourcery.com>
6474 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6476 (remote_query_attached): Likewise.
6477 (remote_static_tracepoint_marker_at): Likewise.
6478 (remote_set_permissions): Likewise.
6479 (remote_detach_1, extended_remote_attach_1): Likewise.
6480 (send_g_packet, remote_vkill): Likewise.
6481 (extended_remote_disable_randomization): Likewise.
6482 (remote_add_target_side_condition): Likewise.
6483 (remote_insert_breakpoint): Likewise.
6484 (remote_remove_breakpoint): Likewise.
6485 (remote_insert_watchpoint): Likewise.
6486 (remote_remove_watchpoint): Likewise.
6487 (remote_insert_hw_breakpoint): Likewise.
6488 (remote_insert_hw_breakpoint): Likewise.
6489 (remote_remove_hw_breakpoint): Likewise.
6490 (remote_download_command_source): Likewise.
6491 (remote_download_tracepoint): Likewise.
6492 (remote_download_trace_state_variable): Likewise.
6493 (remote_disable_tracepoint): Likewise.
6494 (remote_trace_set_readonly_regions): Likewise.
6495 (remote_get_tracepoint_status): Likewise.
6496 (remote_trace_find): Likewise.
6497 (remote_get_trace_state_variable_value): Likewise.
6498 (remote_set_disconnected_tracing): Likewise.
6499 (remote_set_circular_trace_buffer): Likewise.
6500 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6501 (remote_use_agent): Likewise.
6502 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6505 2012-03-07 Pedro Alves <palves@redhat.com>
6507 * NEWS: Mention QProgramSignals.
6508 * inferior.h (update_signals_program_target): Declare.
6509 * infrun.c: (update_signals_program_target): New.
6510 (handle_command): Update the target of the new program signals
6512 * remote.c (PACKET_QProgramSignals): New enum.
6513 (last_program_signals_packet): New global.
6514 (remote_program_signals): New.
6515 (remote_start_remote): Update the target with the program signals
6517 (remote_protocol_features): Add entry for QPassSignals.
6518 (remote_open_1): Free anc clear last_program_signals_packet.
6519 (init_remote_ops): Install remote_program_signals.
6520 * target.c (update_current_target): Adjust.
6521 (target_program_signals): New.
6522 * target.h (struct target_ops) <to_program_signals>: New field.
6523 (target_program_signals): Declare.
6525 2012-03-07 Pedro Alves <palves@redhat.com>
6527 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6530 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6532 * m68klinux-nat.c (getregs_supplies): Make static.
6533 (getfpregs_supplies): Likewise.
6534 (have_ptrace_getregs): Likewise.
6536 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6538 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6539 in call to get_die_type_at_offset.
6541 2012-03-06 Stan Shebs <stan@codesourcery.com>
6543 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6544 * mi/mi-cmd-disas.c: Ditto.
6545 * mi/mi-cmd-env.c: Ditto.
6546 * mi/mi-cmd-file.c: Ditto.
6547 * mi/mi-cmd-stack.c: Ditto.
6548 * mi/mi-cmd-target.c: Ditto.
6549 * mi/mi-cmd-var.c: Ditto.
6550 * mi/mi-cmds.c: Ditto.
6551 * mi/mi-cmds.h: Ditto.
6552 * mi/mi-console.c: Ditto.
6553 * mi/mi-getopt.c: Ditto.
6554 * mi/mi-getopt.h: Ditto.
6555 * mi/mi-interp.c: Ditto.
6556 * mi/mi-main.c: Ditto.
6557 * mi/mi-out.c: Ditto.
6558 * mi/mi-parse.c: Ditto.
6559 * mi/mi-parse.h: Ditto.
6560 * mi/mi-symbol-cmds.c: Ditto.
6562 * mi/mi-getopt.h: Move mi_opt struct up.
6563 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6565 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6567 2012-03-06 Tom Tromey <tromey@redhat.com>
6569 * proc-service.c (ps_pglobal_lookup): Set the current program
6572 2012-03-06 Pedro Alves <palves@redhat.com>
6574 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6576 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6578 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6580 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6583 * common/linux-osdata.c (linux_common_core_of_thread): New function
6585 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6586 call by linux_common_core_of_thread.
6587 (linux_nat_core_of_thread_1): Remove.
6588 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6589 * linux-thread-db.c: Include linux-osdata.h.
6590 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6591 linux_common_core_of_thread.
6593 2012-03-05 Tom Tromey <tromey@redhat.com>
6595 * value.c (value_primitive_field): Don't fetch contents for
6598 2012-03-05 Tom Tromey <tromey@redhat.com>
6600 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6602 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6604 * s390-nat.c: Include "gregset.h".
6606 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6608 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6609 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6610 (libunwind_load): New variable so_error, use it for dlerror. Try to
6611 load also LIBUNWIND_SO_7.
6613 2012-03-05 Pedro Alves <palves@redhat.com>
6615 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6616 is not NULL, and remove resulting dead code.
6618 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6620 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6621 prologue to sh_analyze_prologue.
6622 (sh_analyze_prologue): Make better use of such an upper limit, and
6623 generally be more cautious about accessing memory.
6625 2012-03-05 Tom Tromey <tromey@redhat.com>
6627 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6628 _initialize_ia64_hpux_tdep.
6630 2012-03-05 Pedro Alves <palves@redhat.com>
6634 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6635 the register state is clear, supply explicit zero, instead of
6636 marking the register unavailable.
6638 2012-03-05 Tristan Gingold <gingold@adacore.com>
6640 * NEWS: Mention OpenVMS ia64 new target.
6642 2012-03-05 Tristan Gingold <gingold@adacore.com>
6644 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6645 (ia64_unw_accessors, ia64_unw_rse_accessors)
6646 (ia64_libunwind_descr): Declare.
6647 * ia64-vms-tdep.c: New file.
6648 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6649 (ia64_libunwind_descr): Make them public.
6650 * configure.tgt: Add ia64-*-*vms*.
6651 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6652 (ALLDEPFILES): Add ia64-vms-tdep.c
6654 2012-03-05 Tristan Gingold <gingold@adacore.com>
6656 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6657 * remote.c (PACKET_qXfer_uib): New enum value.
6658 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6659 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6660 (_initialize_remote): Call add_packet_config_cmd for
6663 2012-03-05 Tristan Gingold <gingold@adacore.com>
6665 * osabi.c (gdb_osabi_names): Add OpenVMS.
6666 (generic_elf_osabi_sniffer): Likewise.
6667 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6669 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6671 Removed unused code.
6672 * libunwind-frame.c (libunwind_frame_unwind)
6673 (libunwind_frame_base_address): Remove.
6674 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6676 2012-03-04 Yao Qi <yao@codesourcery.com>
6678 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6679 remove trailing new line.
6680 (agent_run_command, agent_run_command): Add _ markup.
6681 (agent_capability_check): Likewise.
6683 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6685 * breakpoint.c (set_condition_evaluation_mode): Set
6686 CONDITION_EVALUATION_MODE unconditionally.
6688 2012-03-03 Yao Qi <yao@codesourcery.com>
6690 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6691 * common/agent.h: Update declaration.
6692 * inf-child.c (inf_child_use_agent): New.
6693 (inf_child_can_use_agent): New.
6694 (inf_child_target): Initialize fields `to_use_agent'
6695 and `to_can_use_agent'.
6696 * agent.c (agent_new_objfile): New.
6697 (_initialize_agent): Add agent_new_objfile to new_objfile
6700 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6702 (linux_target_install_ops): Initialize field
6703 `to_static_tracepoint_markers_by_strid'.
6704 * remote.c (free_current_marker): Move it to ...
6705 * tracepoint.c (free_current_marker): ... here. New.
6706 (cleanup_target_stop): New.
6707 * tracepoint.h: Declare free_current_marker.
6708 * NEWS: Add one entry about `info static-tracepoint-marker'.
6710 2012-03-03 Yao Qi <yao@codesourcery.com>
6712 * common/agent.c (agent_loaded_p): New.
6713 (agent_look_up_symbols): New global.
6714 * common/agent.h: Declare agent_loaded_p.
6716 2012-03-03 Yao Qi <yao@codesourcery.com>
6718 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6719 (agent_capability_check, agent_capability_invalidate): New.
6720 (symbol_list): New array element.
6721 * common/agent.h (enum agent_capa): New.
6722 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6724 2012-03-03 Yao Qi <yao@codesourcery.com>
6726 * target.h (struct target_ops) <to_use_agent>: New field.
6727 (struct target_ops) <to_can_use_agent>: New field.
6728 (target_use_agent, target_can_use_agent): New macro.
6729 * target.c (update_current_target): Update.
6730 * remote.c: New enum `PACKET_QAgent'.
6731 (remote_protocol_features): Add a new element.
6732 (remote_use_agent, remote_can_use_agent): New.
6733 (init_remote_ops): Initialize field `can_use_agent' with
6734 remote_can_use_agent. Intiailize field `use_agent' with
6736 * common/agent.c (use_agent): New global.
6737 * common/agent.h: Declare it.
6738 * tracepoint.c (info_static_tracepoint_markers_command): Add
6740 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6741 (COMMON_OBS): Add common/agent.o and agent.o
6742 (common-agent.o): New rule.
6745 2012-03-03 Yao Qi <yao@codesourcery.com>
6747 * common/agent.c: New.
6748 * common/agent.h: New.
6749 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6751 * configure, configh.in: Regenerated.
6753 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6755 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6756 unless it exists for this architecture.
6758 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6760 * language.h (struct language_defn): New "method" la_read_var_value.
6761 * findvar.c: #include "language.h".
6762 (default_read_var_value): Renames read_var_value. Rewrite
6763 function description.
6764 (read_var_value): New function.
6765 * value.h (default_read_var_value): Add prototype.
6766 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6768 (ada_language_defn): Add entry for la_read_var_value.
6769 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6770 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6771 language_defn structures to add entry for new la_read_var_value
6774 2012-03-02 Tom Tromey <tromey@redhat.com>
6775 Pedro Alves <palves@redhat.com>
6777 PR breakpoints/13776:
6778 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6780 (delete_longjmp_breakpoint_at_next_stop): New.
6781 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6782 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6783 before deleting the inferior. Add comments.
6784 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6785 breakpoints immediately, but only on next stop. Move that code
6786 next to where we mark other breakpoints for deletion.
6788 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6790 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6792 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6795 2012-03-02 Pedro Alves <palves@redhat.com>
6797 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6799 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6801 Fix -Wmissing-prototypes build.
6802 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6803 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6804 (gdbsim_has_memory): Likewise.
6806 2012-03-02 Yao Qi <yao@codesourcery.com>
6808 Fix -Wmissing-prototypes build.
6809 * charset.c (phony_iconv_open): Make static.
6810 (phony_iconv_close, phony_iconv): Likewise.
6811 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6812 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6814 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6815 * ser-mingw.c (create_select_thread): Make static.
6816 * windows-termcap.c (tgetent): New prototype.
6817 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6819 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6821 Fix -Wmissing-prototypes build.
6822 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6823 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6824 (_initialize_loadable): New prototypes.
6826 2012-03-02 Doug Evans <dje@google.com>
6828 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6829 abbrev table, read_comp_unit will do it.
6831 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6833 Fix -Wmissing-prototypes build.
6834 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6835 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6836 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6837 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6838 (_initialize_arm_symbian_tdep): New prototype.
6839 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6840 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6841 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6843 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6844 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6846 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6847 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6848 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6850 * moxie-tdep.c (moxie_process_record): Likewise.
6851 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6852 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6853 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6854 (_initialize_rl78_tdep): New prototype.
6855 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6856 (_initialize_rx_tdep): New prototype.
6857 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6858 (_initialize_darwin_solib): New prototype.
6859 * solib-spu.c: Include solib-spu.h.
6860 (_initialize_spu_solib): New prototype.
6861 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6862 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6863 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6864 (tic6x_software_single_step): Make it static.
6865 (_initialize_tic6x_tdep): New prototype.
6867 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6869 Fix -Wmissing-prototypes build.
6870 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6871 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6873 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6875 Fix -Wmissing-prototypes build.
6876 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6877 (frv_have_stopped_data_address): Remove.
6879 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6881 Fix -Wmissing-prototypes build.
6882 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6883 * sh-tdep.c: Include sh64-tdep.h.
6884 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6885 * sh64-tdep.c: Include sh64-tdep.h.
6886 * sh64-tdep.h: New file.
6888 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6890 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6892 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6894 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6895 sp_regnum once the gdbarch_init_osabi hook has been called.
6897 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6899 * mips-tdep.c (mips32_bc1_pc): New function.
6900 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6901 BPOSGE32 and BPOSGE64 instructions.
6902 (deal_with_atomic_sequence): Likewise.
6903 (mips32_instruction_has_delay_slot): Likewise.
6905 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6906 Chris Dearman <chris@mips.com>
6907 Maciej W. Rozycki <macro@codesourcery.com>
6908 Joseph Myers <joseph@codesourcery.com>
6910 * features/mips-dsp.xml: New file.
6911 * features/mips64-dsp.xml: New file.
6912 * features/mips-dsp-linux.xml: New file.
6913 * features/mips64-dsp-linux.xml: New file.
6914 * features/Makefile (WHICH): Add mips-dsp-linux and
6916 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6917 * features/mips-dsp-linux.c: New file.
6918 * features/mips64-dsp-linux.c: New file.
6919 * regformats/mips-dsp-linux.dat: New file.
6920 * regformats/mips64-dsp-linux.dat: New file.
6921 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6923 (mips64_linux_register_addr): Likewise.
6924 (mips64_linux_regsets_fetch_registers): Likewise.
6925 (mips64_linux_regsets_store_registers): Likewise.
6926 (mips64_linux_fetch_registers): Update call to
6927 mips64_linux_regsets_fetch_registers.
6928 (mips64_linux_store_registers): Update call to
6929 mips64_linux_regsets_store_registers.
6930 (mips_linux_read_description): Probe for DSP registers.
6931 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6932 and initialize_tdesc_mips64_dsp_linux.
6933 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6934 Remove padding of no longer used embedded register slots.
6935 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6936 (MIPS_RESTART_REGNUM): Redefine enum value.
6937 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6939 (mips_tx39_reg_names): Likewise.
6940 (mips_linux_reg_names): New array of register names for Linux
6942 (mips_register_name): Check for a null pointer in
6943 mips_processor_reg_names and return an empty string.
6944 (mips_register_type): Exclude embedded registers for the IRIX
6946 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6947 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6949 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6950 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6951 (mips_gdbarch_init): Likewise. Initialize internal register
6952 indices for the Linux ABI. Use dynamic numbers to refer to
6953 registers, as applicable, while parsing the target description.
6954 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6956 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6958 * frame.h (read_frame_register_unsigned): Fix typo in function
6961 2012-03-01 Pedro Alves <palves@redhat.com>
6963 * jit-reader.in [!__cplusplus]
6964 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6966 2012-03-01 Pedro Alves <palves@redhat.com>
6968 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6969 * configure: Regenerate.
6971 2012-03-01 Pedro Alves <palves@redhat.com>
6973 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6974 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6975 (ftrace_command, strace_command): Make static.
6976 * d-lang.c (_initialize_d_language): Declare.
6977 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6978 * dwarf2loc.c (_initialize_dwarf2loc):
6979 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6980 * exec.c (exec_get_section_table): Make static.
6981 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6982 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6983 * inferior.c (remove_inferior_command, add_inferior_command)
6984 (clone_inferior_command): Make static.
6985 * linux-nat.c (linux_nat_thread_address_space)
6986 (linux_nat_core_of_thread): Make static.
6987 * linux-tdep.c (_initialize_linux_tdep): Declare.
6988 * objc-lang.c (_initialize_objc_lang): Declare.
6989 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6991 (_initialize_opencl_language): Declare.
6992 * record.c (_initialize_record): Declare.
6993 * remote.c (demand_private_info, remote_get_tib_address)
6994 (remote_supports_cond_tracepoints)
6995 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6997 * skip.c (_initialize_step_skip): Declare.
6998 * symtab.c (skip_prologue_using_lineinfo): Make static.
6999 * tracepoint.c (delete_trace_state_variable)
7000 (trace_variable_command, delete_trace_variable_command)
7001 (get_uploaded_tsv, find_matching_tracepoint_location)
7002 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7004 * value.c (pack_unsigned_long): Make static.
7005 * varobj.c (varobj_ensure_python_env): Make static.
7006 * windows-tdep.c (_initialize_windows_tdep): Declare.
7007 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7009 2012-03-01 Pedro Alves <palves@redhat.com>
7011 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7013 (linux_init_abi): Install it as has_shared_address_space gdbarch
7016 2012-03-01 Pedro Alves <palves@redhat.com>
7018 * observer.c (observer_test_first_notification_function)
7019 (observer_test_second_notification_function)
7020 (observer_test_third_notification_function): Add declarations.
7022 2012-03-01 Pedro Alves <palves@redhat.com>
7024 * common/signals.c (default_target_signal_to_host)
7025 (default_target_signal_from_host): Move ...
7026 * arch-utils.c: ... here.
7027 * arch-utils.h (default_target_signal_to_host)
7028 (default_target_signal_from_host): Declare.
7030 * common/signals.c (target_signal_from_command): Move ...
7031 * infrun.c: ... here.
7032 * inferior.h (target_signal_from_command): Declare.
7033 * target.h (target_signal_from_command)
7034 (default_target_signal_from_host, default_target_signal_to_host):
7035 Delete declarations.
7037 * common/signals.c (_initialize_signals): Delete.
7039 2012-03-01 Pedro Alves <palves@redhat.com>
7041 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7042 both __cplusplus and !__cplusplus.
7044 2012-03-01 Pedro Alves <palves@redhat.com>
7046 * psymtab.c (find_and_open_source): Delete declaration.
7047 * source.c (find_and_open_source): Move comment ...
7048 * source.h (find_and_open_source): ... to this new declaration.
7050 2012-03-01 Pedro Alves <palves@redhat.com>
7052 * inline-frame.c: Include inline-frame.h.
7054 2012-03-01 Pedro Alves <palves@redhat.com>
7056 * tui/tui-data.c (set_gen_win_origin): Delete.
7057 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7058 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7060 2012-03-01 Pedro Alves <palves@redhat.com>
7062 * remote.c (encode_actions): Delete declaration.
7063 * tracepoint.c (encode_actions): Make extern.
7064 * tracepoint.h (encode_actions): Declare.
7066 2012-03-01 Pedro Alves <palves@redhat.com>
7068 * python/py-breakpoint.c: Include python.h.
7069 * python/py-continueevent.c (create_continue_event_object): Make
7071 * python/py-lazy-string.c (stpy_get_type): Make static.
7072 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7074 * python/py-utils.c (unicode_to_target_python_string): Make
7076 * python/py-value.c: Include python.h.
7078 2012-03-01 Pedro Alves <palves@redhat.com>
7080 * inferior.c (delete_threads_of_inferior): Delete.
7082 2012-03-01 Pedro Alves <palves@redhat.com>
7084 Import fallback definitions from glibc.
7086 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7087 ps_prochandle): Forward declare.
7088 (ps_err_e): Use glibc's comments.
7089 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7090 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7091 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7092 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7093 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7094 (struct ps_prochandle): Adjust comment.
7096 2012-03-01 Pedro Alves <palves@redhat.com>
7098 * ada-lang.c (ada_modulus_from_name): Delete.
7099 * ada-lex.l (lexer_init): Make static.
7101 2012-03-01 Pedro Alves <palves@redhat.com>
7105 * frame.c (read_frame_register_unsigned): New.
7106 * frame.h (read_frame_register_unsigned): Declare.
7107 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7109 (print_i387_control_word): New parameter `control_p'. Handle it.
7110 (i387_print_float_info): Handle unavailable float registers.
7112 2012-03-01 Keith Seitz <keiths@redhat.com>
7114 * linespec.c (decode_line_2): Sort the list of methods
7115 alphabetically before presenting the user with a selection
7118 2012-03-01 Doug Evans <dje@google.com>
7120 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7122 (dwarf2_read_abbrevs): Remove corresponding initialization.
7124 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
7126 * NEWS: Mention new python command class gdb.COMMAND_USER.
7127 * cli/cli-cmds.c (show_user): Print error when used on a python
7129 (init_cli_cmds): Update documentation strings for "show user" and
7130 "set/show max-user-call-depth" to clarify that it does not apply to
7132 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7134 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7136 * top.c (execute_command): Only execute a user-defined command as a
7137 legacy macro if c->user_commands is set.
7139 2012-03-01 Tom Tromey <tromey@redhat.com>
7141 * valprint.h (struct generic_val_print_decorations): New.
7142 (generic_val_print): Declare.
7143 * valprint.c (generic_val_print): New function.
7144 * p-valprint.c (p_decorations): New global.
7145 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7146 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7147 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7148 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7149 * m2-valprint.c (m2_decorations): New global.
7150 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7151 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7152 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7153 TYPE_CODE_ERROR>: Call generic_val_print.
7154 * f-valprint.c (f_decorations): New global.
7155 (f_val_print): Use print_function_pointer_address.
7156 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7157 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7158 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7160 * c-valprint.c (c_decorations): New global.
7161 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7162 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7163 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7164 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7165 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7166 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7169 2012-03-01 Tom Tromey <tromey@redhat.com>
7171 * valprint.c (val_print): Update.
7172 * p-valprint (pascal_val_print): Return void.
7173 * p-lang.h (pascal_val_print): Return void.
7174 * m2-valprint.c (m2_val_print): Return void.
7175 * m2-lang.h (m2_val_print): Return void.
7176 * language.h (struct language_defn) <la_val_print>: Return void.
7177 * language.c (unk_lang_val_print): Return void.
7178 * jv-valprint.c (java_val_print): Return void.
7179 * jv-lang.h (java_val_print): Return void.
7180 * f-valprint.c (f_val_print): Return void.
7181 * f-lang.h (f_val_print): Return void.
7182 * d-valprint.c (d_val_print): Return void.
7183 (dynamic_array_type): Update.
7184 * d-lang.h (d_val_print): Return void.
7185 * c-valprint.c (c_val_print): Return void.
7186 * c-lang.h (c_val_print): Return void.
7187 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7189 * ada-lang.h (ada_val_print): Return void.
7191 2012-03-01 Tom Tromey <tromey@redhat.com>
7193 * value.h (val_print): Return void.
7194 * valprint.c (val_print): Return void.
7196 2012-03-01 Tom Tromey <tromey@redhat.com>
7198 * value.h (common_val_print): Return void.
7199 * valprint.c (common_val_print): Return void.
7201 2012-03-01 Tom Tromey <tromey@redhat.com>
7203 * value.h (value_print): Return void.
7204 * valprint.c (value_print): Return void.
7205 * p-valprint.c (pascal_value_print): Return void.
7206 * p-lang.h (pascal_value_print): Return void.
7207 * language.h (struct language_defn) <la_value_print>: Return
7209 * language.c (unk_lang_value_print): Return void.
7210 * jv-valprint.c (java_value_print): Return void.
7211 * jv-lang.h (java_value_print): Return void.
7212 * f-valprint.c (c_value_print): Don't declare.
7214 * c-valprint.c (c_value_print): Return void.
7215 * c-lang.h (c_value_print): Return void.
7216 * ada-valprint.c (ada_value_print): Return void.
7217 * ada-lang.h (ada_value_print): Return void.
7219 2012-03-01 Tom Tromey <tromey@redhat.com>
7221 * value.c (value_primitive_field): Handle virtual base classes.
7223 2012-03-01 Tom Tromey <tromey@redhat.com>
7225 * gdbtypes.h (struct vbase): Remove.
7227 2012-03-01 Tom Tromey <tromey@redhat.com>
7229 * c-valprint.c (print_function_pointer_address): Move...
7230 * valprint.c: ... here. Make non-static.
7231 * m2-valprint.c (print_function_pointer_address): Remove.
7232 * valprint.h (print_function_pointer_address): Declare.
7234 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7236 * NEWS: Document the fact that one can provide a condition when
7237 creating an Ada exception catchpoint.
7239 2012-03-01 Tom Tromey <tromey@redhat.com>
7241 * valprint.c (val_print_type_code_flags): Fix placement of
7244 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7246 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7247 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7248 environment variable before calling update-copyright.
7250 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7252 * gnulib/extra/update-copyright: Update to the latest from
7253 gnulib's git repository.
7254 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7255 variable to 2 instead of 1.
7257 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7259 * varobj.c (c_value_of_variable): Remove dead code.
7261 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7263 * ada-lex.p (processId): Do not modify already encoded IDs.
7264 Update function documentation.
7266 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7268 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7269 "name" with "struct symbol *name_sym".
7270 * ada-exp.y (write_var_or_type): Update call to
7271 ada_find_renaming_symbol.
7272 "name" with "struct symbol *name_sym". Adjust Implementation
7273 accordingly. Adjust the function documentation.
7275 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7277 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7278 * ada-lang.c (ada_find_any_type): Add advance declaration.
7279 Make static. Replace ada_find_any_symbol by
7280 ada_find_any_type_symbol.
7281 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7282 Improve function description. Make static.
7283 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7284 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7286 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7288 * ada-lang.c (struct tag_args): Delete.
7289 (ada_get_tsd_type): Function body moved up in source file.
7290 (ada_tag_name_1, ada_tag_name_2): Delete.
7291 (ada_get_tsd_from_tag): New function.
7292 (ada_tag_name_from_tsd): New function.
7293 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7294 to determine the tag name.
7296 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7298 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7300 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7303 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7305 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7307 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7309 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7312 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7314 * ada-lang.c (constrained_packed_array_type): If there is a
7315 parallel XA type, use it to determine the array index type.
7317 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7319 * ada-valprint.c (ada_val_print_1): If our value is a reference
7320 to an array descriptor, dereference it before converting it
7323 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7325 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7326 creating fixed value.
7327 (ada_value_ind, ada_coerce_ref, assign_component)
7328 (ada_evaluate_subexp): Remove call to unwrap_value before
7329 call to ada_to_fixed_value.
7331 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7333 * ada-lang.c (to_fixed_array_type): Set result's type name.
7335 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7337 * ada-lang.c (catch_ada_exception_command_split): Add new
7338 argument cond_string. Add support for condition at end of
7339 "catch exception" commands.
7340 (ada_decode_exception_location): Add new argument cond_string.
7341 Update call to catch_ada_exception_command_split.
7342 (create_ada_exception_catchpoint): Add new argument cond_string.
7343 Set the breakpoint condition if needed.
7344 (catch_ada_exception_command): Update call to
7345 ada_decode_exception_location.
7346 (ada_decode_assert_location): Add function documentation.
7347 Add support for condition at end of "catch assert" command.
7348 (catch_assert_command): Update calls to ada_decode_assert_location
7349 and create_ada_exception_catchpoint.
7351 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7353 Fix disp-step-syscall.exp: fork: single step over fork.
7354 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7355 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7356 comment, change parameters gdbarch and ptid to regcache. Remove
7357 parameter regcache, initialize gdbarch from regcache here.
7358 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7360 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7362 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7363 'syscall'. Make the 'int' check more strict.
7365 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7367 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7368 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7369 (i386_linux_intx80_sysenter_syscall_record): ... here.
7370 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7371 Use the renamed function name.
7373 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7375 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7376 * breakpoint.c (until_break_command): Likewise.
7377 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7378 * infcall.c (call_function_by_hand): Likewise.
7379 * infcmd.c (finish_forward): Likewise.
7380 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7382 2012-02-28 Tristan Gingold <gingold@adacore.com>
7384 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7385 avoid variable assignments inside condition.
7387 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7389 Fix static analysis issue found by cppcheck.
7390 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7391 uninitialized BUF for size 2.
7393 2012-02-27 Chris Dearman <chris@mips.com>
7394 Nathan Froyd <froydnj@codesourcery.com>
7395 Maciej W. Rozycki <macro@codesourcery.com>
7397 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7398 (mips16_instruction_has_delay_slot): Likewise.
7399 (mips_segment_boundary): Likewise.
7400 (mips_adjust_breakpoint_address): Likewise.
7401 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7403 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7404 Maciej W. Rozycki <macro@codesourcery.com>
7406 * infrun.c (handle_inferior_event): Don't proceed through
7407 shared library trampolines if stepping at the machine
7410 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7412 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7415 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7417 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7418 (sh_stub_unwind_sniffer): New functions.
7419 (sh_stub_unwind): New variable.
7420 (sh_gdbarch_init): Wire everything.
7422 2012-02-27 Pedro Alves <palves@redhat.com>
7424 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7425 (linux_nat_post_attach_wait): Adjust to use
7426 linux_proc_pid_is_stopped.
7427 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7428 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7429 based on pid_is_stopped from both linux-nat.c and
7430 gdbserver/linux-low.c, and renamed.
7432 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7434 * remote.c (remote_watchpoint_addr_within_range): New function.
7435 (init_remote_ops): Use it.
7437 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7439 * target.h (target_watchpoint_addr_within_range): Document macro.
7441 2012-02-24 Pedro Alves <palves@redhat.com>
7443 * stack.c (set_last_displayed_sal): Issue internal_error instead
7444 of warning, and issue it after clearing the last displayed sal.
7446 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7447 Pedro Alves <palves@redhat.com>
7449 * breakpoint.c (until_break_command): Install breakpoints after
7450 all frame manipulations.
7452 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7454 * remote.c (remote_supports_cond_breakpoints): New forward
7456 (remote_add_target_side_condition): New function.
7457 (remote_insert_breakpoint): Add target-side breakpoint
7458 conditional if supported.
7459 (remote_insert_hw_breakpoint): Likewise.
7460 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7463 * target.c (update_current_target): Inherit
7464 to_supports_evaluation_of_breakpoint_conditions.
7465 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7467 * target.h (struct target_ops)
7468 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7469 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7471 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7472 (condition_evaluation_both, condition_evaluation_auto,
7473 condition_evaluation_host, condition_evaluation_target,
7474 condition_evaluation_enums, condition_evaluation_mode_1,
7475 condition_evaluation_mode): New static globals.
7476 (translate_condition_evaluation_mode): New function.
7477 (breakpoint_condition_evaluation_mode): New function.
7478 (gdb_evaluates_breakpoint_condition_p): New function.
7479 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7480 (mark_breakpoint_modified): New function.
7481 (mark_breakpoint_location_modified): New function.
7482 (set_condition_evaluation_mode): New function.
7483 (show_condition_evaluation_mode): New function.
7484 (bp_location_compare_addrs): New function.
7485 (get_first_location_gte_addr): New helper function.
7486 (set_breakpoint_condition): Free condition bytecode if locations
7487 has become unconditional. Call mark_breakpoint_modified (...).
7488 (condition_command): Call update_global_location_list (1) for
7490 (breakpoint_xfer_memory): Use is_breakpoint (...).
7491 (is_breakpoint): New function.
7492 (parse_cond_to_aexpr): New function.
7493 (build_target_condition_list): New function.
7494 (insert_bp_location): Handle target-side conditional
7495 breakpoints and call build_target_condition_list (...).
7496 (update_inserted_breakpoint_locations): New function.
7497 (insert_breakpoint_locations): Handle target-side conditional
7499 (bpstat_check_breakpoint_conditions): Add comment.
7500 (bp_condition_evaluator): New function.
7501 (bp_location_condition_evaluator): New function.
7502 (print_breakpoint_location): Print information on where the condition
7504 (print_one_breakpoint_location): Likewise.
7505 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7506 breakpoint location.
7507 (force_breakpoint_reinsertion): New functions.
7508 (update_global_location_list): Handle target-side breakpoint
7510 Reinsert locations that are already inserted if conditions have
7512 (bp_location_dtor): Free agent expression bytecode.
7513 (disable_breakpoint): Call mark_breakpoint_modified (...).
7514 Call update_global_location_list (...) with parameter 1 for breakpoints.
7515 (disable_command): Call mark_breakpoint_location_modified (...).
7516 Call update_global_location_list (...) with parameter 1 for breakpoints.
7517 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7518 (enable_command): mark_breakpoint_location_modified (...).
7519 (_initialize_breakpoint): Update documentation and add
7520 condition-evaluation breakpoint subcommand.
7522 * breakpoint.h: Include ax.h.
7523 (condition_list): New data structure.
7524 (condition_status): New enum.
7525 (bp_target_info) <cond_list>: New field.
7526 (bp_location) <condition_changed, cond_bytecode>: New fields.
7527 (is_breakpoint): New prototype.
7529 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7531 * remote.c (remote_state) <cond_breakpoints>: New field.
7532 (PACKET_ConditionalBreakpoints): New enum.
7533 (remote_cond_breakpoint_feature): New function.
7534 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7535 (remote_supports_cond_breakpoints): New function.
7536 (_initialize_remote): Add new packet configuration for
7537 target-side conditional breakpoints.
7539 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7541 * NEWS: Mention target-side conditional breakpoint support,
7542 new condition-evaluation breakpoint subcommand and remote
7545 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7547 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7550 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7552 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7553 (after_prologue): Remove.
7555 2012-02-23 Tom Tromey <tromey@redhat.com>
7557 * jv-valprint.c (java_val_print): Remove dead code.
7559 2012-02-23 Tristan Gingold <gingold@adacore.com>
7561 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7562 known_tasks_element and known_tasks_length fields.
7563 (read_known_tasks_array): Change argument type. Use pointer type
7564 and number of elements from DATA. Adjust.
7565 (read_known_tasks_list): Likewise.
7566 (get_known_tasks_addr): Remove.
7567 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7568 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7569 type and array length. Merge former get_known_tasks_addr code.
7571 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7574 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7575 it after set_momentary_breakpoint.
7577 2012-02-22 Sterling Augustine <saugustine@google.com>
7580 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7582 2012-02-22 Gary Benson <gbenson@redhat.com>
7584 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7585 (find_slot_in_mapped_hash): Likewise.
7587 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7590 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7591 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7592 * configure: Regenerate.
7594 2012-02-21 Tristan Gingold <gingold@adacore.com>
7595 Pedro Alves <palves@redhat.com>
7597 * ia64-tdep.c: Do not include libunwind-ia64.h.
7598 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7599 Include libunwind-ia64.h instead of libunwind.h.
7600 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7601 for libunwind.h existence.
7602 * configure, config.in: Regenerate.
7604 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7606 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7607 instead of value_rtti_target_type.
7608 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7609 instead of value_rtti_target_type.
7610 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7611 value_rtti_target_type.
7612 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7613 (value_rtti_target_type): Rename to ...
7614 (value_rtti_indirect_type): ... here and make it indirect. Update
7616 * value.c (readjust_indirect_value_type): New function.
7617 (coerce_ref): Support for enclosing type setting for references
7618 with readjust_indirect_value_type.
7619 * value.h (readjust_value_type): New declaration.
7620 (value_rtti_target_type): Rename to ...
7621 (value_rtti_indirect_type): ... here.
7623 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7625 * MAINTAINERS (Write After Approval): Add myself to the list.
7627 2012-02-20 Doug Evans <dje@google.com>
7629 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7630 Rename objfile_p_char parameter to objfilep.
7631 (build_objfile_section_table): Result is now void. All callers
7633 * objfiles.h (struct objfile): Tweak comments, whitespace.
7634 (build_objfile_section_table): Update.
7636 * elfread.c (elf_symfile_segments): Fix warning text.
7638 2012-02-20 Tom Tromey <tromey@redhat.com>
7641 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7642 particular set of file names once.
7643 (dw2_map_symbol_filenames): Likewise.
7645 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7648 * main.c (write_files): Remove the declaration.
7649 (external_editor_command): Move the declaration ...
7650 [GDBTK] (external_editor_command): ... here. Fix the comment.
7652 2012-02-20 Tom Tromey <tromey@redhat.com>
7654 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7657 2012-02-20 Tristan Gingold <gingold@adacore.com>
7659 * darwin-nat.h (enum darwin_msg_state): Add comments.
7661 2012-02-20 Tristan Gingold <gingold@adacore.com>
7663 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7666 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7668 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7669 between function description and implementation.
7671 2012-02-17 Tom Tromey <tromey@redhat.com>
7674 * python/py-event.c (event_object_getset): New global.
7675 (event_object_type): Reference it.
7676 * python/py-type.c (field_object_getset): New global.
7677 (field_object_type): Reference it.
7678 * python/python-internal.h (gdb_py_generic_dict): Declare.
7679 * python/py-utils.c (gdb_py_generic_dict): New function.
7681 2012-02-17 Tristan Gingold <gingold@adacore.com>
7683 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7685 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7687 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7688 TYPE_CALLING_CONVENTION annotation.
7690 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7692 * MAINTAINERS: Add rx to target ISA section.
7693 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7694 (ALLDEPFILES): Add rx-tdep.c.
7696 2012-02-16 Tom Tromey <tromey@redhat.com>
7698 * symfile.c (symbol_file_add_main_1): Use inferior's
7700 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7701 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7703 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7705 (follow_exec): Use inferior's symfile_flags.
7706 * inferior.h (struct inferior) <symfile_flags>: New field.
7708 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7711 * remote-sim.c (gdbsim_create_inferior): Call error() when
7712 sim_create_inferior() fails.
7714 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7716 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7718 2012-02-16 Tom Tromey <tromey@redhat.com>
7721 * thread.c (struct current_thread_cleanup) <was_removable>: New
7723 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7724 (make_cleanup_restore_current_thread): Initialize new field.
7726 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7728 * MAINTAINERS: Add rl78 to target ISA section.
7729 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7730 (ALLDEPFILES): Add rl78-tdep.c.
7731 * NEWS: Mention rl78 as a new target.
7733 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7735 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7737 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7739 2012-02-15 Tom Tromey <tromey@redhat.com>
7742 * infcmd.c (registers_info): Print just the current register's
7745 2012-02-15 Tom Tromey <tromey@redhat.com>
7747 * python/py-symbol.c (sympy_value): Use _().
7749 2012-02-15 Pedro Alves <palves@redhat.com>
7751 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7752 output to be like native targets'.
7753 (remote_pid_to_str): Special case the null ptid.
7755 2012-02-14 Stan Shebs <stan@codesourcery.com>
7757 * NEWS: Mention enable count command.
7758 * breakpoint.h (struct breakpoint): New field enable_count.
7759 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7760 (enable_breakpoint): Add arg to call.
7761 (struct disp_data): New struct.
7762 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7763 (do_map_enable_once_breakpoint): Create a struct and pass it.
7764 (do_map_enable_delete_breakpoint): Ditto.
7765 (do_map_enable_count_breakpoint): New function.
7766 (enable_count_command): New function.
7767 (bpstat_stop_status): Decrement enable_count.
7768 (print_one_breakpoint_location): Report enable count.
7769 (_initialize_breakpoint): Add enable count command.
7771 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7773 * rl78-tdep.c (reggroups.h): Include.
7774 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7775 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7776 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7777 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7778 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7779 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7780 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7781 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7782 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7783 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7784 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7785 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7786 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7787 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7788 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7789 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7790 beginning of register list.
7791 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7792 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7793 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7794 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7795 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7796 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7797 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7798 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7799 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7800 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7801 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7802 the pseudo registers. Rearrange other pseudo registers too so
7803 that the bank registers appear at the end.
7804 (rl78_register_type): Account for the fact that the byte sized
7805 bank registers are now pseudo-registers.
7806 (rl78_register_name): Rearrange the register name array. Make
7807 initial set of raw banked registers inaccessible.
7808 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7809 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7810 case for copying bytes back and forth between raw and pseudo
7811 versions of the banked registers. Update other cases to reflect
7813 (rl78_return_value): Update to account for changed names of
7815 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7816 rl78_register_sim_regno().
7818 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7820 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7821 the name parameter being passed to find_pc_partial_function().
7823 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7825 * MAINTAINERS: Step down from being ia64 target maintainer.
7827 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7829 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7830 compilation warning.
7832 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7834 Fix crash on loaded shlibs without loaded exec_bfd.
7835 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7836 (set_section_command): Replace exec_bfd by p->bfd.
7838 2012-02-10 Tom Tromey <tromey@redhat.com>
7840 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7841 when we have a C++ qualified name.
7843 2012-02-10 Pedro Alves <palves@redhat.com>
7845 * inferior.c (inferior_pid_to_str): New.
7846 (print_inferior, inferior_command): Use it.
7848 2012-02-10 Pedro Alves <palves@redhat.com>
7850 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7852 * configure: Regenerate.
7854 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7856 * linespec.c (decode_line_internal): Fix comment correctness.
7858 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7861 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7862 * amd64bsd-nat.c: Add support for debug registers (adapted from
7864 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7865 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7866 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7867 (amd64bsd_dr_get_control): New functions.
7868 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7869 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7870 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7871 watchpoints initialization.
7872 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7874 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7876 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7878 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7880 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7882 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7884 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7886 * language.h (symbol_name_cmp_ftype): Renames
7887 symbol_name_match_p_ftype.
7888 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7889 la_get_symbol_name_match_p.
7890 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7891 ada_get_symbol_name_match_p. Update comment.
7892 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7893 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7894 Renames symbol_name_match_p. Update field type.
7895 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7896 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7897 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7898 "la_get_symbol_name_cmp" in comments.
7899 * language.c: Likewise.
7901 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7903 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7905 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7906 (amd64_sol2_gregset32_reg_offs): Likewise.
7908 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7910 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7911 of the returned BFD is allocated by GDB.
7913 2012-02-07 Tom Tromey <tromey@redhat.com>
7916 * python/python-internal.h (frame_object_type): Declare.
7917 * python/py-symbol.c (sympy_needs_frame): New function.
7918 (sympy_value): New function.
7919 (symbol_object_getset): Add "needs_frame".
7920 (symbol_object_methods): Add "value".
7921 * python/py-frame.c (frame_object_type): No longer static.
7923 2012-02-07 Tom Tromey <tromey@redhat.com>
7926 * python/py-symbol.c (sympy_line): New function.
7927 (symbol_object_getset): Add "line".
7929 2012-02-07 Tom Tromey <tromey@redhat.com>
7931 * charset.c (find_charset_names): Check 'in' against NULL.
7933 2012-02-06 Doug Evans <dje@google.com>
7935 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7936 and fields.name members from char * to const char *. All uses updated.
7937 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7938 from char * to const char *. All uses updated.
7939 (type_name_no_tag): Update.
7940 (lookup_unsigned_typename, lookup_signed_typename): Update.
7941 * gdbtypes.c (type_name_no_tag): Change result type
7942 from char * to const char *. All callers updated.
7943 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7944 name parameter from char * to const char *.
7945 * symtab.h (struct cplus_specific): Change type of demangled_name
7946 member from char * to const char *. All uses updated.
7947 (struct general_symbol_info): Change type of name and
7948 mangled_lang.demangled_name members from char * to const char *.
7950 (symbol_get_demangled_name, symbol_natural_name): Update.
7951 (symbol_demangled_name, symbol_search_name): Update.
7952 * symtab.c (symbol_get_demangled_name): Change result type
7953 from char * to const char *. All callers updated.
7954 (symbol_natural_name, symbol_demangled_name): Ditto.
7955 (symbol_search_name): Ditto.
7956 (completion_list_add_name): Change type of symname,sym_text,
7957 text,word parameters from char * to const char *.
7958 (completion_list_objc_symbol): Change type of sym_text,
7959 text,word parameters from char * to const char *.
7960 * ada-lang.c (find_struct_field): Change type of name parameter
7961 from char * to const char *.
7962 (encoded_ordered_before): Similarly for N0,N1 parameters.
7963 (old_renaming_is_invisible): Similarly for function_name parameter.
7964 (ada_type_name): Change result type from char * to const char *.
7965 All callers updated.
7966 * ada-lang.h (ada_type_name): Update.
7967 * buildsym.c (hashname): Change type of name parameter
7968 from char * to const char *.
7969 * buildsym.h (hashname): Update.
7970 * dbxread.c (end_psymtab): Change type of include_list parameter
7971 from char ** to const char **.
7972 * dwarf2read.c (determine_prefix): Change result type
7973 from char * to const char *. All callers updated.
7974 * f-lang.c (find_common_for_function): Change type of name, funcname
7975 parameters from char * to const char *.
7976 * f-lang.c (find_common_for_function): Update.
7977 * f-valprint.c (list_all_visible_commons): Change type of funcname
7978 parameters from char * to const char *.
7979 * gdbarch.sh (static_transform_name): Change type of name parameter
7980 and result from char * to const char *.
7981 * gdbarch.c: Regenerate.
7982 * gdbarch.h: Regenerate.
7983 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7984 of name parameter from char * to const char *.
7985 * jv-lang.c (java_primitive_type_from_name): Ditto.
7986 (java_demangled_signature_length): Similarly for signature parameter.
7987 (java_demangled_signature_copy): Ditto.
7988 (java_demangle_type_signature): Ditto.
7989 * jv-lang.h (java_primitive_type_from_name): Update.
7990 (java_demangle_type_signature): Update.
7991 * objc-lang.c (specialcmp): Change type of a,b parameters
7992 from char * to const char *.
7993 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7994 from char * to const char *. All callers updated.
7995 * p-lang.h (is_pascal_string_type): Update.
7996 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7997 of name parameter from char * to const char *.
7998 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7999 * utils.c (fprintf_symbol_filtered): Ditto.
8000 * defs.h (fprintf_symbol_filtered): Update.
8001 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8002 * stabsread.h (end_psymtab): Update.
8003 * stack.c (find_frame_funname): Change type of funname parameter
8004 from char ** to const char **.
8005 * stack.h (find_frame_funname): Update.
8006 * typeprint.c (type_print): Change type of varstring parameter
8007 from char * to const char *.
8008 * value.h (type_print): Update.
8009 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8010 from char * to const char *. All callers updated.
8011 (xcoff_end_psymtab): Change type of include_list parameter
8012 from char ** to const char **. All callers updated.
8013 (swap_sym): Similarly for name parameter. All callers updated.
8014 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8016 (process_coff_symbol): Use xstrdup.
8017 * stabsread.c (stabs_method_name_from_physname): Renamed from
8018 update_method_name_from_physname. Change result type from void
8019 to char *. All callers updated.
8020 (read_member_functions): In has_destructor case, store name in objfile
8021 obstack instead of malloc space. In !has_stub case, fix mem leak.
8023 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8025 * configure: Rebuild.
8026 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8029 2012-02-03 Kevin Buettner <kevinb@redhat.com>
8031 * configure.tgt (rl78-*-elf): New target.
8032 * rl78-tdep.c: New file.
8034 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8036 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8037 and continue the loop. Add QUIT statement.
8039 2012-02-03 Tom Tromey <tromey@redhat.com>
8042 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8043 bfd_lookup_symbol_from_symtab.
8044 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8045 gdb_bfd_lookup_symbol_from_symtab.
8047 2012-02-03 Joel Brobecker <brobecker@adacore.com>
8049 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8050 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8051 symbol. Add assertion that sym2 is never NULL.
8053 2012-02-02 Doug Evans <dje@google.com>
8055 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8056 "name" parameter to const char ** from char **. All callers updated.
8057 (find_pc_partial_function): Ditto.
8058 (cache_pc_function_name): Change type to const char * from char *.
8059 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8060 (find_pc_partial_function): Update.
8061 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8062 type of "name" parameter to const char * from char *.
8064 * arch-utils.c (generic_in_solib_return_trampoline): Change
8065 type of "name" parameter to const char * from char *.
8066 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8067 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8068 type of "name" parameter to const char * from char *.
8069 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8070 * gdbarch.c: Regenerate.
8071 * gdbarch.h: Regenerate.
8072 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8073 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8074 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8075 type of "name" parameter to const char * from char *.
8076 * skip.c (skip_function_pc): Ditto.
8077 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8078 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8079 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8080 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8081 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8082 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8083 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8084 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8085 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8087 2012-02-02 Pedro Alves <palves@redhat.com>
8089 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8090 the current inferior has no execution. Make sure the current
8091 remote process matches gdb's current inferior.
8093 2012-02-02 Tom Tromey <tromey@redhat.com>
8096 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8099 2012-02-02 Tom Tromey <tromey@redhat.com>
8102 * symtab.c (lookup_language_this): Set block_found.
8104 2012-02-01 Tom Tromey <tromey@redhat.com>
8107 * jit.c (struct jit_inferior_data): Rewrite.
8108 (struct jit_objfile_data): New.
8109 (get_jit_objfile_data): New function.
8110 (add_objfile_entry): Update.
8111 (jit_read_descriptor): Return int. Replace descriptor_addr
8112 argument with inf_data. Update. Don't call error.
8113 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8115 (jit_inferior_init): Don't look up descriptor. Don't call error.
8116 (jit_reset_inferior_data_and_breakpoints)
8117 (jit_inferior_created_observer): Remove.
8118 (jit_inferior_exit_hook): Update.
8119 (jit_executable_changed_observer): Remove.
8120 (jit_event_handler): Update.
8121 (free_objfile_data): Reset inferior data if needed.
8122 (_initialize_jit): Update.
8124 2012-02-01 Tom Tromey <tromey@redhat.com>
8126 * jit.c (bfd_open_from_target_memory): Move higher in file.
8128 2012-02-01 Tristan Gingold <gingold@adacore.com>
8130 * libunwind-frame.c (libunwind_load): Display message if dlopen
8133 2012-02-01 Gary Benson <gbenson@redhat.com>
8135 * symtab.h (symbol_found_callback_ftype): New typedef.
8136 (iterate_over_symbols): Use the above.
8137 * symtab.c (iterate_over_symbols): Likewise.
8138 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8139 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8140 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8141 (iterate_name_matcher): Document return values.
8142 (collect_one_symbol): Likewise.
8143 (collect_function_symbols): Likewise.
8144 (collect_symbols): Likewise.
8146 2012-02-01 Tom Tromey <tromey@redhat.com>
8148 * ada-lang.c (resolve_subexp): Update.
8149 (ada_lookup_symbol_list): Add 'full_search' argument.
8150 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8151 ada_lookup_symbol_list.
8152 (ada_lookup_encoded_symbol): Update.
8153 (get_var_value): Update.
8154 * ada-exp.y (block_lookup): Update.
8155 (write_var_or_type): Update.
8156 (write_name_assoc): Update.
8157 * ada-lang.h (ada_lookup_symbol_list): Update.
8159 2012-01-31 Tom Tromey <tromey@redhat.com>
8161 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8164 2012-01-31 Doug Evans <dje@google.com>
8166 * symtab.h: Remove outdated comment.
8167 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
8169 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8171 Fix build error in Darwin port.
8172 * i386-darwin-nat.c: Include i386-nat.h.
8174 2012-01-30 Tom Tromey <tromey@redhat.com>
8176 PR breakpoints/13568:
8177 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8178 argument. Check for recursive includes.
8179 (dwarf_decode_macros): Create an include hash.
8181 2012-01-30 Michael Eager <eager@eagercon.com>
8183 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8184 * ppc-linux-tdep.c: Include glibc-tdep.h.
8185 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
8186 (powerpc_linux_in_plt_stub): New function.
8187 (powerpc_linux_in_dynsym_resolve_code): New function.
8188 (ppc_skip_trampoline_code): New function.
8189 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8190 Use glibc_skip_solib_resolver.
8192 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8194 Code cleanup: Make 1440 bytes of data segment read-only.
8195 * arch-utils.c (endian_enum): Make it const char *const [].
8196 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8198 * breakpoint.c (always_inserted_enums): Likewise.
8199 * cli/cli-cmds.c (script_ext_enums): Likewise.
8200 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8201 enumlist parameter const char *const *.
8202 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8203 const char *const *.
8204 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8205 parameter const char *const *.
8206 * cris-tdep.c (cris_modes): Make it const char *const [].
8207 * filesystem.c (target_file_system_kinds): Likewise.
8208 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8209 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8210 (can_use_displaced_stepping_enum, scheduler_enums)
8211 (exec_direction_names): Likewise.
8212 * language.c (_initialize_language): Make the type_or_range_names and
8213 case_sensitive_names variables const char *const [].
8214 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8215 * python/python.c (python_excp_enums): Likewise.
8216 * remote.c (interrupt_sequence_modes): Likewise.
8217 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8218 * serial.c (logbase_enums): Likewise.
8219 * sh-tdep.c (sh_cc_enum): Likewise.
8220 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8222 * symtab.c (multiple_symbols_modes): Likewise.
8223 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8225 * utils.c (internal_problem_modes): Likewise.
8227 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8229 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8230 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8233 2012-01-27 Doug Evans <dje@google.com>
8235 * configure.ac (with_python): Fix absolute path handling for win32.
8236 * configure: Regenerate.
8238 2012-01-26 Doug Evans <dje@google.com>
8240 * symtab.c: Whitespace cleanup, no code changes.
8242 * symtab.c (lookup_symbol_in_language): Improve comment.
8243 (lookup_symbol_aux): Fix comment.
8245 * psymtab.c (add_psymbol_to_list): Result is now "void".
8246 * psympriv.h (add_psymbol_to_list): Update.
8248 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8250 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8252 Do not open script filenames twice.
8253 * cli/cli-cmds.c (source_script_from_stream): Pass to
8254 source_python_script also STREAM.
8255 * python/py-auto-load.c (source_section_scripts): Pass to
8256 source_python_script_for_objfile also STREAM.
8257 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8259 * python/python-internal.h (source_python_script_for_objfile): New
8260 parameter file, rename parameter file to filename.
8261 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8262 instead if !_WIN32. Update the function comment.
8263 (source_python_script, source_python_script_for_objfile)
8264 (source_python_script): New parameter file, rename parameter file to
8265 filename. Pass FILENAME to python_run_simple_file.
8266 * python/python.h (source_python_script): New parameter file, rename
8267 parameter file to filename.
8269 2012-01-26 Pedro Alves <palves@redhat.com>
8271 * corelow.c (core_has_fake_pid): Delete.
8272 (core_close): Delete references to `core_has_fake_pid'.
8273 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8274 (core_open): Delete references to `core_has_fake_pid'.
8275 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8278 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8280 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8281 Remove language parameter from name_matcher. Adjust the comment.
8282 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8283 Remove language parameter.
8284 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8285 * linespec.c (iterate_name_matcher): Likewise.
8286 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8287 name_matcher. Adjust call accordingly.
8288 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8289 (maintenance_check_symtabs): Adjust type of parameter "fun".
8290 * psymtab.h (maintenance_check_symtabs): Likewise.
8292 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8294 * language.h (symbol_name_match_p_ftype): New typedef.
8295 (struct language_defn): Replace field la_symbol_name_compare
8296 by la_get_symbol_name_match_p.
8297 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8298 (ada_language_defn): Use it.
8299 * linespec.c (struct symbol_matcher_data): New type.
8300 (iterate_name_matcher): Rewrite.
8301 (iterate_over_all_matching_symtabs): Pass a pointer to
8302 a symbol_matcher_data struct to expand_symtabs_matching
8303 instead of just the lookup name.
8304 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8305 opencl-lang.c, p-lang.c, language.c: Delete field
8306 la_symbol_name_compare, and replace by NULL for new field
8307 la_get_symbol_name_match_p.
8308 * symfile.h (struct quick_symbol_functions): Update comment.
8310 2012-01-25 Tom Tromey <tromey@redhat.com>
8312 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8315 2012-01-24 Tom Tromey <tromey@redhat.com>
8318 * solib.c (update_solib_list): Update the program space's
8319 added_solibs and deleted_solibs fields.
8320 * progspace.h (struct program_space) <added_solibs,
8321 deleted_solibs>: New fields.
8322 (clear_program_space_solib_cache): Declare.
8323 * progspace.c (release_program_space): Call
8324 clear_program_space_solib_cache.
8325 (clear_program_space_solib_cache): New function.
8326 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8327 bpstat_stop_status. Use handle_solib_event.
8328 * breakpoint.c: Include gdb_regex.h.
8329 (print_solib_event): New function.
8330 (bpstat_print): Use print_solib_event.
8331 (bpstat_stop_status): Add special case for bp_shlib_event.
8332 (handle_solib_event): New function.
8333 (bpstat_what): Use handle_solib_event.
8334 (struct solib_catchpoint): New.
8335 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8336 (breakpoint_hit_catch_solib, check_status_catch_solib)
8337 (print_it_catch_solib, print_one_catch_solib)
8338 (print_mention_catch_solib, print_recreate_catch_solib): New
8340 (catch_solib_breakpoint_ops): New global.
8341 (catch_load_or_unload, catch_load_command_1)
8342 (catch_unload_command_1): New functions.
8343 (internal_bkpt_check_status): Add special case for
8345 (internal_bkpt_print_it): Use print_solib_event.
8346 (initialize_breakpoint_ops): Initialize
8347 catch_solib_breakpoint_ops.
8348 (_initialize_breakpoint): Register "catch load" and "catch
8350 * breakpoint.h (handle_solib_event): Declare.
8351 * NEWS: Add entry for "catch load" and "catch unload".
8353 2012-01-24 Tom Tromey <tromey@redhat.com>
8355 * ada-lang.c: Include gdb_vecs.h.
8356 * charset.c: Include gdb_vecs.h.
8357 * tracepoint.h: Include gdb_vecs.h.
8358 * gdb_vecs.h: New file.
8360 2012-01-24 Pedro Alves <pedro@codesourcery.com>
8362 * breakpoint.c (breakpoint_hit_catch_fork)
8363 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8364 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8365 * infrun.c (inferior_has_forked, inferior_has_vforked)
8366 (inferior_has_execd, inferior_has_called_syscall): Delete.
8367 (handle_syscall_event): Get syscall_number from the execution
8368 control state's wait status.
8369 (wait_for_inferior): Don't clear syscall_number.
8371 2012-01-24 Pedro Alves <palves@redhat.com>
8373 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8374 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8375 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8376 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8378 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8379 false for events other than TARGET_SIGNAL_TRAP.
8380 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8382 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8383 events other than TARGET_SIGNAL_TRAP.
8384 (tracepoint_breakpoint_hit): Add `ws' parameter.
8385 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8387 (bpstat_stop_status): Same.
8388 (pc_at_non_inline_function): Same.
8389 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8390 to pass the current event's waitstatus to bpstat_stop_status
8391 and pc_at_non_inline_function.
8393 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8396 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8397 Update the function comment for it.
8398 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8399 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8402 2012-01-24 Pedro Alves <palves@redhat.com>
8404 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8405 outside `bs->stop' block.
8406 (bpstat_what): Rework bp_shlib_event handling.
8407 (internal_bkpt_check_status): If the breakpoint is a
8408 bp_shlib_event, then set bs->stop and bs->print if
8409 stop_on_solib_events is set.
8411 2012-01-24 Gary Benson <gbenson@redhat.com>
8413 Delete #if 0'd out code.
8414 * stack.c (print_frame_label_vars): Remove.
8415 (catch_info): Likewise.
8416 (_initialize_stack): Remove "info catch" command.
8417 * NEWS: Mention the above.
8419 2012-01-24 Pedro Alves <palves@redhat.com>
8421 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8423 (remote_notice_new_inferior): If the remote end doesn't support
8424 the multiprocess extensions, then the PID is fake.
8425 (add_current_inferior_and_thread): New.
8426 (remote_start_remote): Use it.
8427 (extended_remote_attach_1): Adjust.
8428 (extended_remote_create_inferior_1): Use
8429 add_current_inferior_and_thread.
8431 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8433 Fix watchpoints to be specific for each inferior.
8434 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8435 current_program_space.
8436 * i386-nat.c (i386_inferior_data_cleanup): New.
8437 (i386_inferior_data_get): Replace variable inf_data_local by an
8439 (i386_use_watchpoints): Initialize i386_inferior_data.
8440 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8441 specific iterate_over_lwps.
8443 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8445 Fix watchpoints across inferior fork.
8446 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8447 comment for linux_nat_iterate_watchpoint_lwps.
8448 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8449 linux_nat_iterate_watchpoint_lwps.
8450 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8451 * i386-linux-nat.c (update_debug_registers_callback): Update the
8452 comment for linux_nat_iterate_watchpoint_lwps.
8453 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8454 linux_nat_iterate_watchpoint_lwps.
8455 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8456 * i386-nat.c: Include inferior.h.
8457 (dr_mirror): Remove.
8458 (i386_inferior_data, struct i386_inferior_data)
8459 (i386_inferior_data_get): New.
8460 (i386_debug_reg_state): Use i386_inferior_data_get.
8461 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8462 (i386_insert_watchpoint, i386_remove_watchpoint)
8463 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8464 (i386_remove_hw_breakpoint): New variable state, use
8465 i386_debug_reg_state instead of DR_MIRROR.
8466 * linux-nat.c (delete_lwp): New declaration.
8467 (num_lwps): Move here from downwards.
8468 (delete_lwp_cleanup): New.
8469 (linux_child_follow_fork): Create new child_lp, call
8470 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8472 (num_lwps): Move upwards.
8473 (linux_nat_iterate_watchpoint_lwps): New.
8474 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8475 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8477 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8481 2012-01-23 Pedro Alves <palves@redhat.com>
8483 * top.c (caution): Rename to ...
8484 (confirm): ... this.
8485 (show_caution): Rename to ...
8486 (show_confirm): ... this.
8487 (quit_cover): Adjust.
8488 (init_main): Adjust.
8489 * top.h (caution): Rename to ...
8490 (confirm): ... this.
8491 * utils.c (internal_vproblem, defaulted_query): Adjust.
8493 2012-01-23 Pedro Alves <palves@redhat.com>
8495 * top.c (caution): Update comment.
8496 (execute_command): Don't consider the current value of `caution'.
8498 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8502 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8504 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8505 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8506 * target.c (target_fileio_pwrite): Remove buffer address from
8508 (target_fileio_pread): Likewise.
8510 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8512 * NEWS: Document remote "info proc" and "generate-core-file".
8514 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8516 * gdbarch.sh (find_memory_regions): New callback.
8517 * gdbarch.c, gdbarch.h: Regenerate.
8519 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8520 callback before falling back to target method.
8522 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8523 (linux_target_install_ops): No longer install it.
8525 * linux-tdep.c (linux_find_memory_regions): New function.
8526 (linux_init_abi): Install it.
8528 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8530 * gdbarch.sh (make_corefile_notes): New architecture callback.
8531 * gdbarch.c: Regenerate.
8532 * gdbarch.h: Likewise.
8534 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8535 before target_make_corefile_notes. If NULL is returned, the
8536 target does not support core file generation.
8538 * linux-nat.c: Include "linux-tdep.h".
8539 (find_signalled_thread, find_stop_signal): Remove.
8540 (linux_nat_do_thread_registers): Likewise.
8541 (struct linux_nat_corefile_thread_data): Likewise.
8542 (linux_nat_corefile_thread_callback): Likewise.
8543 (iterate_over_spus): Likewise.
8544 (struct linux_spu_corefile_data): Likewise.
8545 (linux_spu_corefile_callback): Likewise.
8546 (linux_spu_make_corefile_notes): Likewise.
8547 (linux_nat_collect_thread_registers): New function.
8548 (linux_nat_make_corefile_notes): Replace contents by call to
8549 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8550 as native-only callback.
8552 * linux-tdep.h: Include "bfd.h".
8553 (struct regcache): Add forward declaration.
8554 (linux_collect_thread_registers_ftype): New typedef.
8555 (linux_make_corefile_notes): Add prototype.
8556 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8557 "regset.h", and "elf-bfd.h".
8558 (find_signalled_thread, find_stop_signal): New functions.
8559 (linux_spu_make_corefile_notes): Likewise.
8560 (linux_collect_thread_registers): Likewise.
8561 (struct linux_corefile_thread_data): New data structure.
8562 (linux_corefile_thread_callback): New funcion.
8563 (linux_make_corefile_notes): Likewise.
8564 (linux_make_corefile_notes_1): Likewise.
8565 (linux_init_abi): Install it.
8567 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8569 * gdbarch.sh (info_proc): New callback.
8570 * gdbarch.c, gdbarch.h: Regenerate.
8572 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8573 before falling back to the target info_proc callback.
8575 * linux-nat.c: Do not include "cli/cli-utils.h".
8576 (linux_nat_info_proc): Remove.
8577 (linux_target_install_ops): No longer install it.
8579 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8580 (read_mapping): New function.
8581 (linux_info_proc): Likewise.
8582 (linux_init_abi): Install it.
8584 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8586 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8587 * infcmd.c: (info_proc_cmd_1): New function.
8588 (info_proc_cmd): New function, moved here from equivalent routine
8589 orignally in linux-nat.c.
8590 (info_proc_cmd_mappings): Likewise.
8591 (info_proc_cmd_stat): Likewise.
8592 (info_proc_cmd_status): Likewise.
8593 (info_proc_cmd_cwd): Likewise.
8594 (info_proc_cmd_cmdline): Likewise.
8595 (info_proc_cmd_exe): Likewise.
8596 (info_proc_cmd_all): Likewise.
8597 (_initialize_infcmd): Install "info proc" command and subcommands.
8599 * target.h (struct target_ops): Add to_info_proc.
8600 (target_info_proc): Add prototype.
8601 * target.c (target_info_proc): New function.
8603 * procfs.c (procfs_info_proc): Add prototype.
8604 (info_proc_cmd): Rename into ...
8605 (procfs_info_proc): ... this. Update argument types as appropriate
8606 for a to_info_proc implementation. Handle "what" argument.
8607 (procfs_target): Install procfs_info_proc.
8608 (_initialize_procfs): No longer install "info proc" command.
8610 * linux-nat.c: (enum info_proc_what): Remove.
8611 (linux_nat_info_proc_cmd_1): Rename into ...
8612 (linux_nat_info_proc): ... this. Update argument types as appropriate
8613 for a to_info_proc implementation.
8614 (linux_nat_info_proc_cmd): Remove.
8615 (linux_nat_info_proc_cmd_mappings): Likewise.
8616 (linux_nat_info_proc_cmd_stat): Likewise.
8617 (linux_nat_info_proc_cmd_status): Likewise.
8618 (linux_nat_info_proc_cmd_cwd): Likewise.
8619 (linux_nat_info_proc_cmd_cmdline): Likewise.
8620 (linux_nat_info_proc_cmd_exe): Likewise.
8621 (linux_nat_info_proc_cmd_all): Likewise.
8622 (linux_target_install_ops): Install linux_nat_info_proc.
8623 (_initialize_linux_nat): No longer install "info proc" command
8626 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8628 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8629 * config.in, configure: Regenerate.
8631 * target.h (struct target_ops): Add to_fileio_readlink.
8632 (target_fileio_readlink): Add prototype.
8633 * target.c (target_fileio_readlink): New function.
8635 * inf-child.c: Conditionally include <sys/param.h>.
8636 (inf_child_fileio_readlink): New function.
8637 (inf_child_target): Install it.
8639 * remote.c (PACKET_vFile_readlink): New enum value.
8640 (remote_hostio_readlink): New function.
8641 (init_remote_ops): Install it.
8642 (_initialize_remote): Handle vFile:readlink packet type.
8644 2012-01-20 Pedro Alves <palves@redhat.com>
8645 Ulrich Weigand <ulrich.weigand@linaro.org>
8647 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8648 * config.in, configure: Regenerate.
8650 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8651 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8652 (target_fileio_open): Add prototype.
8653 (target_fileio_pwrite): Likewise.
8654 (target_fileio_pread): Likewise.
8655 (target_fileio_close): Likewise.
8656 (target_fileio_unlink): Likewise.
8657 (target_fileio_read_alloc): Likewise.
8658 (target_fileio_read_stralloc): Likewise.
8660 * target.c: Include "gdb/fileio.h".
8661 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8662 (default_fileio_target): New function.
8663 (target_fileio_open): Likewise.
8664 (target_fileio_pwrite): Likewise.
8665 (target_fileio_pread): Likewise.
8666 (target_fileio_close): Likewise.
8667 (target_fileio_unlink): Likewise.
8668 (target_fileio_close_cleanup): Likewise.
8669 (target_fileio_read_alloc_1): Likewise.
8670 (target_fileio_read_alloc): Likewise.
8671 (target_fileio_read_stralloc): Likewise.
8673 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8674 <fcntl.h>, and <unistd.h>.
8675 (inf_child_fileio_open_flags_to_host): New function.
8676 (inf_child_errno_to_fileio_error): Likewise.
8677 (inf_child_fileio_open): Likewise.
8678 (inf_child_fileio_pwrite): Likewise.
8679 (inf_child_fileio_pread): Likewise.
8680 (inf_child_fileio_close): Likewise.
8681 (inf_child_fileio_unlink): Likewise.
8682 (inf_child_target): Install to_fileio routines.
8684 * remote.c (init_remote_ops): Install to_fileio routines.
8686 2012-01-20 Pedro Alves <palves@redhat.com>
8687 Ulrich Weigand <ulrich.weigand@linaro.org>
8689 * remote.c (remote_multi_process_p): Only check for multi-process
8690 protocol feature, do not check for extended protocol.
8691 (remote_supports_multi_process): Check for extended protocol here.
8692 (set_general_process): Likewise.
8693 (extended_remote_kill): Likewise.
8694 (remote_pid_to_str): Likewise.
8695 (remote_query_supported): Always query multiprocess mode.
8697 2012-01-20 Pedro Alves <palves@redhat.com>
8698 Ulrich Weigand <ulrich.weigand@linaro.org>
8700 * inferior.h (struct inferior): Add fake_pid_p.
8701 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8702 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8703 magic_null_ptid since the remote side doesn't provide a real PID.
8705 2012-01-19 Tom Tromey <tromey@redhat.com>
8707 * NEWS: Combine the two Python sections.
8709 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8711 * target.h (target_close): Update comment on the target's unpush state.
8713 2012-01-19 Pedro Alves <palves@redhat.com>
8715 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8716 linux_nat_async directly instead of going through the target
8718 * target.c (unpush_target): Close target after unpushing it, not
8721 2012-01-19 Gary Benson <gbenson@redhat.com>
8723 * mdebugread.c (sort_blocks): Replace integer constants with ones
8724 derived from FIRST_LOCAL_BLOCK.
8726 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8727 Jan Kratochvil <jan.kratochvil@redhat.com>
8730 * symfile.c (find_separate_debug_file): New function.
8731 (terminate_after_last_dir_separator): Likewise.
8732 (find_separate_debug_file_by_debuglink): Also try realpath.
8733 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8734 * configure: Regenerate.
8735 * config.in: Regenerate.
8737 2012-01-18 Doug Evans <dje@google.com>
8739 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8740 (main.o): Remove rule.
8741 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8742 (--with-sysroot): Rewrite.
8743 * configure: Regenerate.
8744 * config.in: Regenerate.
8746 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8748 * parse.c (initialize_expout): New function.
8749 (reallocate_expout): Likewise.
8750 (parse_exp_in_context): Use `initialize_expout' and
8751 `reallocate_expout' when appropriate.
8753 2012-01-18 Pedro Alves <palves@redhat.com>
8755 * record.c (struct record_breakpoint, record_breakpoint_p)
8756 (record_breakpoints): New.
8757 (record_insert_breakpoint, record_remove_breakpoint): Manage
8758 record breakpoints list. Only remove breakpoints from the
8759 inferior if they had been inserted there in the first place.
8761 2012-01-17 Doug Evans <dje@google.com>
8763 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8764 if we know we don't have a file name to look for.
8766 2012-01-17 Pedro Alves <palves@redhat.com>
8768 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8769 the frame's stop reason is UNWIND_UNAVAILABLE.
8771 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8773 Fix compilation error.
8774 * m2-exp.y (yyerror): Use ANSI C prototype.
8776 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8778 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8779 (growbuf_by_size): Likewise.
8780 (yyerror): Likewise.
8781 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8782 (modblock): Remove variable (was #if 0'ed).
8783 (parse_number): Convert prototype from K&R to ANSI C.
8784 (yyerror): Likewise.
8785 * objc-exp.y (parse_number): Likewise.
8786 (yyerror): Likewise.
8787 (yylex): Remove #if 0'ed code.
8788 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8789 (yyerror): Likewise.
8791 2012-01-16 Tom Tromey <tromey@redhat.com>
8794 * symtab.h (compare_filenames_for_search): Declare.
8795 * symtab.c (compare_filenames_for_search): New function.
8796 (iterate_over_some_symtabs): Use it.
8797 * symfile.h (struct quick_symbol_functions)
8798 <map_symtabs_matching_filename>: Change spec.
8799 * psymtab.c (partial_map_symtabs_matching_filename): Use
8800 compare_filenames_for_search. Update for new spec.
8801 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8802 compare_filenames_for_search. Update for new spec.
8803 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8805 2012-01-16 Tom Tromey <tromey@redhat.com>
8808 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8809 (struct main_type) <flag_flag_enum>: New field.
8810 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8811 * NEWS: Add entries.
8812 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8814 * python/lib/gdb/printing.py (_EnumInstance): New class.
8815 (FlagEnumerationPrinter): Likewise.
8817 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8819 * breakpoint.c (create_sals_from_address_default): New function.
8820 (create_breakpoints_sal_default): Likewise.
8821 (decode_linespec_default): Likewise.
8822 (is_marker_spec): Removed.
8823 (strace_marker_p): New function.
8824 (init_breakpoint_sal): Using `strace_marker_p' instead of
8826 (create_breakpoint): Call method `create_sals_from_address' from
8827 breakpoint_ops, replacing code that created SALs conditionally
8828 on the type of the breakpoint. Call method `create_breakpoints_sal',
8829 replacing code that created breakpoints conditionally on the type
8831 (base_breakpoint_create_sals_from_address): New function.
8832 (base_breakpoint_create_breakpoints_sal): Likewise.
8833 (base_breakpoint_decode_linespec): Likewise.
8834 (base_breakpoint_ops): Add methods
8835 `base_breakpoint_create_sals_from_address',
8836 `base_breakpoint_create_breakpoints_sal' and
8837 `base_breakpoint_decode_linespec'.
8838 (bkpt_create_sals_from_address): New function.
8839 (bkpt_create_breakpoints_sal): Likewise.
8840 (bkpt_decode_linespec): Likewise.
8841 (tracepoint_create_sals_from_address): Likewise.
8842 (tracepoint_create_breakpoints_sal): Likewise.
8843 (tracepoint_decode_linespec): Likewise.
8844 (strace_marker_create_sals_from_address): Likewise.
8845 (strace_marker_create_breakpoints_sal): Likewise.
8846 (strace_marker_decode_linespec): Likewise.
8847 (strace_marker_breakpoint_ops): New variable.
8848 (addr_string_to_sals): Remove `marker_spec'. Call method
8849 `decode_linespec' from breakpoint_ops, replacing code that decoded
8850 an address string into a SAL. Use `strace_marker_p' instead of
8852 (strace_command): Decide whether we are dealing with a static
8853 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8854 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8855 * breakpoint.h (linespec_result, linespec_sals): New forward
8857 (breakpoint_ops) <create_sals_from_address>,
8858 <create_breakpoints_sal>, <decode_linespec>: New methods.
8860 2012-01-14 Doug Evans <dje@google.com>
8862 * NEWS: Update text for "maint set python print-stack".
8863 It is deprecated in gdb 7.4 and deleted in 7.5.
8865 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8867 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8870 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8872 * configure: Regenerate.
8873 * config.in: Regenerate.
8875 2012-01-12 Keith Seitz <keiths@redhat.com>
8878 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8879 (ANONYMOUS_UNION_NAME): Define.
8880 (is_path_expr_parent): New function.
8881 (get_path_expr_parent): New function.
8882 (is_anonymous_child): New function.
8883 (create_child_with_value): If the child is anonymous and without
8884 a name, assign an object name to it.
8885 (c_describe_child): Use get_path_expr_parent to determine
8886 the parent expression.
8887 If there field represents an anonymous struct or union and
8888 has no name, set an appropriate display name and expression.
8889 (cplus_describe_child): Likewise.
8891 2012-01-12 Pedro Alves <palves@redhat.com>
8893 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8894 available when %ebp is found to be zero (outermost).
8896 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8898 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8899 an internal gdb_static_assert.
8900 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8902 2012-01-11 Tom Tromey <tromey@redhat.com>
8905 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8906 catch" and "catch throw".
8908 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8910 * blockframe.c (block_innermost_frame): Start search from selected
8911 frame, if present, or otherwise the current frame.
8913 * c-exp.y (variable): Update innermost_block for
8914 'block COLONCOLON NAME' clause.
8915 * m2-exp.y (variable): Ditto.
8916 * objc-exp.y (variable): Ditto.
8918 2012-01-10 Tom Tromey <tromey@redhat.com>
8921 * python/python.c (finish_python_initialization): Set sys.argv.
8923 2012-01-10 Doug Evans <dje@google.com>
8925 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8926 "want_line_info". All callers updated.
8927 (dwarf_decode_lines_1): New function.
8928 (handle_DW_AT_stmt_list): Add function comment.
8929 New arg "want_line_info". All callers updated.
8930 (read_file_scope,read_type_unit_scope): Move comment from
8931 handle_DW_AT_stmt_list to here.
8933 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8935 Fix regression after libiberty/ update for GCC PR 6057 and others.
8936 * c-exp.y (operator) <OPERATOR DELETE>
8937 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8938 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8939 (make_builtin_type, make_name): New variable i, add gdb_assert.
8940 (operator) <OPERATOR NEW>: Update ARGS to 3.
8941 (operator) <OPERATOR DELETE>: Add trailing space.
8942 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8943 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8944 * cp-support.c (cp_canonicalize_string): Check NULL from
8945 cp_comp_to_string, call warning and return.
8947 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8949 Fix duplicate .o files after omitting libbfd.a.
8950 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8951 (SFILES): Add corelow.c.
8952 (COMMON_OBS): Add corelow.o.
8953 (ALLDEPFILES): Remove corelow.c.
8954 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8955 * config/alpha/alpha-osf3.mh: Likewise.
8956 * config/alpha/fbsd.mh: Likewise.
8957 * config/arm/nbsdaout.mh: Likewise.
8958 * config/arm/nbsdelf.mh: Likewise.
8959 * config/i386/i386gnu.mh: Likewise.
8960 * config/ia64/hpux.mh: Likewise.
8961 * config/ia64/linux.mh: Likewise.
8962 * config/m32r/linux.mh: Likewise.
8963 * config/m68k/linux.mh: Likewise.
8964 * config/mips/irix5.mh: Likewise.
8965 * config/mips/irix6.mh: Likewise.
8966 * config/pa/hpux.mh: Likewise.
8967 * config/pa/linux.mh: Likewise.
8968 * config/powerpc/aix.mh: Likewise.
8969 * config/sparc/linux.mh: Likewise.
8970 * config/sparc/linux64.mh: Likewise.
8971 * config/sparc/sol2.mh: Likewise.
8972 * config/vax/vax.mh: Likewise.
8973 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8974 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8975 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8976 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8977 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8978 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8979 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8980 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8981 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8982 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8983 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8984 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8985 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8986 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8987 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8988 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8989 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8990 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8991 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8992 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8993 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8994 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8995 corelow.o from gdb_target_obs.
8996 * corefile.c (core_target): Update the comment on NULL value.
8997 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8998 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8999 MATCHES. Drop YUMMY set on NULL.
9000 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9001 reclaim CORE_DATA if it is already NULL.
9003 2012-01-09 Doug Evans <dje@google.com>
9005 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9006 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9008 2012-01-09 Keith Seitz <keiths@redhat.com>
9010 * breakpoint.c (wrapper.h): Don't include.
9012 2012-01-09 Keith Seitz <keiths@redhat.com>
9014 * Makefile.in (SFILES): Remove wrapper.c.
9015 (HFILES_NO_SRCDIR): Remove wrapper.h.
9016 (COMMON_OBS): Remove wrapper.o.
9017 * cli/cli-interp.c: Don't inlude wrapper.h.
9018 * corelow.c: Likewise.
9019 (core_open): Replace gdb_target_find_new_threads with
9020 TRY_CATCH around target_find_new_threads.
9021 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9022 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9023 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9024 evaluate_expression.
9025 (varobj_set_value): Likewise for evaluate_expression and
9027 (install_new_variable): Likewise for value_fetch_lazy.
9028 (adjust_value_for_child_access): Likewise for value_ind.
9029 (c_describe_child): Likewise for value_subscript and
9031 (c_value_of_root): Likewise for evaluate_expression.
9032 * wrapper.c: Remove.
9033 * wrapper.h: Remove.
9035 2012-01-09 Doug Evans <dje@google.com>
9037 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9038 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9039 "abfd" args with "section". All callers updated.
9040 Error checking code moved ...
9041 (error_check_comp_unit_head): ... here. New function.
9042 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9043 Delete arg "abfd". New arg "type_offset". All callers updated.
9044 (create_debug_types_hash_table): Simplify by using
9045 read_and_check_type_unit_head.
9047 * parser-defs.h (namecopy): Delete.
9048 * parse.c (namecopy, namecopy_size): Move into copy_name.
9050 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9052 Partially fix duplicate .o files after omitting libbfd.a.
9053 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9054 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9055 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9056 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9057 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9058 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9059 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9061 2012-01-09 Pedro Alves <palves@redhat.com>
9063 * MAINTAINERS: Update my email address.
9065 2012-01-08 Doug Evans <dje@google.com>
9067 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9068 n_type_units. Rename type_comp_units to all_type_units.
9070 (add_signatured_type_cu_to_table): Renamed from
9071 add_signatured_type_cu_to_list. All callers updated.
9073 * gdbtypes.h (struct cplus_struct_type): Delete member
9074 nfn_fields_total. All uses removed.
9076 2012-01-06 Doug Evans <dje@google.com>
9078 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9080 (dwarf2_find_comp_unit): Delete.
9081 (process_psymtab_comp_unit): Make result "void".
9082 Delete args buffer, info_ptr, buffer_size, and replace with
9083 "section". All callers updated.
9084 (dwarf2_build_psymtabs_hard): Simplify.
9086 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9087 Thiago Jung Bauermann <bauerman@br.ibm.com>
9089 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9090 before `struct gdb_exception'.
9091 * breakpoint.c (update_global_location_list_nothrow)
9092 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9093 * cp-abi.c (value_rtti_type): Likewise.
9094 * cp-support.c (cp_validate_operator): Likewise.
9095 * infrun.c (insert_exception_resume_breakpoint)
9096 (check_exception_resume, keep_going): Likewise.
9097 * mi-interp.c (mi_breakpoint_created)
9098 (mi_breakpoint_modified): Likewise.
9099 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9100 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9101 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9103 2012-01-05 Doug Evans <dje@google.com>
9105 * dwarf2read.c (statement_prologue): Delete, unused.
9107 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9108 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9110 * dwarf2read.c (comp_unit_header): Delete, unused.
9112 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9114 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9115 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9117 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9119 * infrun.c (normal_stop): Don't skip calling the normal_stop
9120 observers if the thread was doing a multi-step, but stopped for
9121 some reason other than stepping.
9123 2012-01-05 Pedro Alves <alves.ped@gmail.com>
9125 * cli/cli-decode.h: Add comments.
9126 (CMD_LIST_AMBIGUOUS): Moved to command.h
9127 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9128 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9129 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9130 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9131 (add_com, add_com_alias, add_info, add_info_alias)
9132 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9134 * command.h: Add and adjust comments.
9135 (CMD_LIST_AMBIGUOUS): Moved here.
9136 (help_cmd, help_cmd_list): Delete declarations.
9138 2012-01-04 Doug Evans <dje@google.com>
9140 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9141 All callers updated.
9142 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9143 Replace all arguments with "per_cu". All callers updated.
9145 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9147 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9148 New arg "per_cu". All callers updated.
9150 Delete #if 0'd out code.
9151 * language.c (binop_result_type): Delete.
9152 (simple_type, ordered_type, same_type, integral_type): Delete.
9153 (numeric_type, character_type, string_type, boolean_type): Delete.
9154 (float_type, structured_type): Delete.
9155 * language.h: Update.
9157 2012-01-04 Tom Tromey <tromey@redhat.com>
9159 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9161 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9163 * corefile.c (close_exec_file): Delete.
9164 (reopen_exec_file): Remove commented out code that seems related
9165 to close_exec_file, which is being deleted here.
9166 * inferior.h (close_exec_file): Delete.
9167 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9169 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9171 * ada-lang.c: #include "cli/cli-utils.h".
9172 (get_selections): Use skip_spaces.
9173 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9174 (catch_ada_exception_command_split): Use skip_spaces.
9175 (ada_decode_assert_location): Likewise.
9177 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9179 * linespec.c (decode_line_internal): Check for C++ or Java
9180 compound constructs only if the current language is C, C++
9183 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9186 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9187 Joel Brobecker <brobecker@adacore.com>
9188 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9189 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9191 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9192 fall through into AT_ENTRY_POINT.
9193 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9195 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9196 PPC_INSN_SIZE skip to 3 times.
9198 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9200 * linespec.c (add_minsym): Preserve function descriptors.
9202 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9204 * breakpoint.c (all_locations_are_pending): Consider locations
9205 in program spaces executing during startup pending as well.
9207 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9209 Copyright year update in most files of the GDB Project.
9211 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9213 * copyright.sh: Delete.
9214 * copyright.py: Rewrite.
9216 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9218 * gnulib/extra/update-copyright: New file, imported from gnulib.
9220 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9222 * README (Copyright and License Notices): New section.
9224 2012-01-03 Tom Tromey <tromey@redhat.com>
9227 * python/py-value.c (valpy_dereference, valpy_get_address
9228 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9229 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9230 (valpy_absolute, valpy_richcompare): Free intermediate values.
9232 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9234 * ada-lang.c: Reformat the copyright notice.
9236 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9238 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9239 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9240 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9241 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9242 Revert this part of:
9243 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9244 Build gdb directly from *.o files not using libgdb.a.
9245 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9247 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9249 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9250 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9251 Reformat the copyright header.
9253 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9255 Revert this part of:
9256 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9257 Remove the gdbtui binary.
9258 * gdb.c (main): Remove args.interpreter_p initialization.
9259 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9260 * main.h (struct captured_main_args): Remove interpreter_p.
9262 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9264 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9266 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9268 * top.c (print_gdb_version): Update copyright year.
9270 2012-01-02 Yao Qi <yao@codesourcery.com>
9272 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9274 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9275 Joel Brobecker <brobecker@adacore.com>
9277 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9278 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9280 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9281 fall through into AT_ENTRY_POINT.
9282 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9284 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9285 PPC_INSN_SIZE skip to 3 times.
9287 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9289 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9291 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9293 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9295 Build gdb directly from *.o files not using libgdb.a.
9296 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9297 (COMMON_OBS): Remove solib-target.o.
9298 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9299 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9300 (LIBGDB_OBS, libgdb.a): Move it above.
9301 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9302 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9303 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9304 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9305 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9306 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9307 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9308 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9309 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9310 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9311 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9312 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9313 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9314 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9315 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9316 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9317 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9318 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9319 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9320 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9321 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9322 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9323 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9324 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9325 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9326 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9327 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9329 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9331 Remove the gdbtui binary.
9332 * .gitignore (/gdbtui): Remove.
9333 * Makefile.in (TUI): Remove.
9334 (SUBDIR_TUI_OBS): Remove tui-main.o.
9335 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9336 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9337 (tui-main.o): Remove.
9338 (all_object_files): Remove tui-main.o.
9339 * NEWS: New note for the gdbtui removal.
9340 * configure: Rebuilt.
9341 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9342 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9343 CONFIG_UNINSTALL respectively.
9344 * gdb.c (main): Remove args.interpreter_p initialization.
9345 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9346 * main.h (struct captured_main_args): Remove interpreter_p.
9347 * tui/tui-main.c: Remove.
9349 2012-01-01 Doug Evans <dje@google.com>
9351 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9352 (dwarf2_physname, read_import_statement): Ditto.
9353 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9354 (process_structure_scope read_subroutine_type): Ditto.
9355 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9356 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9357 (dwarf2_fetch_die_location_block): Ditto.
9358 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9360 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9361 All callers updated.
9362 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9363 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9364 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9366 * dwarf2read.c (load_cu): Move assert to more useful location.
9368 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9369 All callers updated.
9371 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9372 (dwarf2_elf_names): Minor reformat.
9373 (dwarf2_per_cu_data): Tweak comment.
9374 (dwarf2_read_section): Fix comment.
9375 (create_all_comp_units): Fix comment.
9376 (load_full_comp_unit): Fix comment.
9377 (process_full_comp_unit): Fix comment.
9378 (read_signatured_type): Fix comment.
9380 For older changes see ChangeLog-2011.
9386 version-control: never