1 2012-08-08 Doug Evans <dje@google.com>
3 * eval.c (evaluate_subexp_standard): Fix thinko in handling
5 * expprint.c (print_subexp_standard, case OP_TYPE): New.
6 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
7 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
8 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
9 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
10 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
12 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
13 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
14 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
15 (dump_prefix_expression): Handle OP_TYPE.
17 2012-08-08 Keith Seitz <keiths@redhat.com>
19 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
22 2012-08-08 Doug Evans <dje@google.com>
24 * linux-thread-db.c: #include "gdb_vecs.h".
25 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
27 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
28 (thread_db_load_search): Use a vector to iterate over path elements.
29 Handle text appearing after "$pdir".
31 * gdb_string.h: Moved to ...
32 * common/gdb_string.h: ... here.
33 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
34 gdb_string.h and gdb_assert.h.
36 2012-08-08 Yao Qi <yao@codesourcery.com>
38 * tic6x-tdep.c (tic6x_register_to_value): Remove.
39 (tic6x_value_to_register): Likewise.
40 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
41 and set_gdbarch_value_to_register.
43 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
44 Jean-Marc Saffroy <saffroy@gmail.com>
47 * defs.h (find_memory_region_ftype): New comment. New arg modified.
48 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
49 * gcore.c (gcore_create_callback): New function comment. Add modified
50 parameter. Only write modified regions. Set SEC_READONLY exactly
51 according to MODIFIED.
52 (objfile_find_memory_regions): Ignore separate debug info files. Ass
53 the passed modified value to FUNC.
54 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
55 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
56 first. New variables modified and has_anonymous. Parse the lines of
57 smaps file. Add the passed MODIFIED value to FUNC.
58 * procfs.c (find_memory_regions_callback): Add the passed modified
61 2012-08-06 Tom Tromey <tromey@redhat.com>
63 * dwarf2-frame.c (clear_pointer_cleanup): New function.
64 (dwarf2_frame_cache): Use it.
65 * frame-unwind.h (frame_sniffer_ftype): Document prologue
66 cache initialization constraint.
68 2012-08-06 Tom Tromey <tromey@redhat.com>
71 * varobj.c (update_dynamic_varobj_children): Don't call
74 2012-08-06 Tom Tromey <tromey@redhat.com>
77 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
79 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
81 * NEWS: New entry for 'cd' default parameters.
82 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
84 2012-08-03 Tom Tromey <tromey@redhat.com>
86 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
89 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
91 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
92 to attempting lseek/write.
93 (inf_child_fileio_pread): Likewise for pread.
95 2012-08-02 Yao Qi <yao@codesourcery.com>
97 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
98 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
99 add_setshow_zinteger_cmd.
100 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
101 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
102 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
103 instead of add_setshow_zinteger_cmd.
104 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
105 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
106 instead of add_setshow_zinteger_cmd.
107 * frame.c (frame_debug): Add 'unsigned'.
108 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
109 add_setshow_zinteger_cmd.
110 * frame.h: Update the declaration of 'frame_debug'.
111 * gdbtypes.c (overload_debug): Add 'unsigned'.
112 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
113 add_setshow_zinteger_cmd.
114 * inferior.h: Update declaration of 'debug_infrun'.
115 * infrun.c (debug_infrun): Add 'unsigned'.
116 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
117 add_setshow_zinteger_cmd.
118 * jit.c (jit_debug): Add 'unsigned'.
119 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
120 add_setshow_zinteger_cmd.
121 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
122 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
123 instead of add_setshow_zinteger_cmd.
124 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
125 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
126 add_setshow_zinteger_cmd.
127 * machoread.c (mach_o_debug_level): Add 'unsigned'.
128 (_initialize_machoread): Call add_setshow_zuinteger_cmd
129 instead of add_setshow_zinteger_cmd.
130 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
131 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
132 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
133 intead of add_setshow_zinteger_cmd.
134 * mips-tdep.c (mips_debug): Add 'unsigned'.
135 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
136 instead of add_setshow_zinteger_cmd.
137 * monitor.c (monitor_debug): Add 'unsigned'.
138 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
139 add_setshow_zinteger_cmd.
140 * observer.c (observer_debug): Add 'unsigned'.
141 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
142 add_setshow_zinteger_cmd.
143 * parse.c (expressiondebug): Add 'unsigned'.
144 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
145 add_setshow_zinteger_cmd.
146 * record.c (record_debug): Add 'unsigned'.
147 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
148 add_setshow_zinteger_cmd.
149 * record.h: Update the declaration of 'record_debug'.
150 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
151 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
152 add_setshow_zinteger_cmd.
153 * serial.c (global_serial_debug_p): Add 'unsigned'.
154 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
155 add_setshow_zinteger_cmd.
156 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
157 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
158 add_setshow_zinteger_cmd.
159 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
160 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
161 add_setshow_zinteger_cmd.
162 * target.c (targetdebug): Add 'unsigned'.
163 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
164 add_setshow_zinteger_cmd.
165 * valops.c (overload_debug): Add 'unsigned'.
166 * varobj.c (varobjdebug): Add 'unsigned'.
167 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
168 add_setshow_zinteger_cmd.
169 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
170 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
171 instead of add_setshow_zinteger_cmd.
173 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
174 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
175 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
176 instead of add_setshow_zinteger_cmd.
177 * gdbarch.c, gdbarch.h: Re-generated.
179 2012-08-02 Yao Qi <yao@codesourcery.com>
181 * nto-tdep.c: Don't include cli/cli-decode.h and
183 (_initialize_nto_tdep): Remove.
184 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
186 Remove macro nto_internal_debugging.
188 2012-08-01 Richard Henderson <rth@redhat.com>
190 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
191 (mep-*-*) [gdb_target_obs]: Likewise.
193 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
195 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
196 linux_get_siginfo_type.
198 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
200 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
202 (call_function_by_hand) <ON_STACK>: Call write_memory with
203 gdbarch_breakpoint_from_pc, if possible.
204 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
207 2012-07-31 Yao Qi <yao@codesourcery.com>
209 * tracepoint.c: Add 'static' for some variables.
211 2012-07-31 Yao Qi <yao@codesourcery.com>
213 * go32-nat.c: Declare _initialize_go32_nat.
214 * ser-go32.c: Declare _initialize_ser_dos.
215 * top.c (do_chdir_cleanup): Add 'static'.
217 2012-07-30 Keith Seitz <keiths@redhat.com>
219 * linespec.c (linespec_lex_number): A number followed
220 by quotes is a valid number, too.
222 2012-07-30 Tom Tromey <tromey@redhat.com>
224 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
226 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
228 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
229 attempt to 4-byte-align HW breakpoint addresses for Thumb.
231 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
233 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
234 invalid or reevaluated to prevent prevent references to possibly
235 delete'd type objects being left in the varobj.
237 2012-07-27 Tom Tromey <tromey@redhat.com>
238 Jan Kratochvil <jan.kratochvil@redhat.com>
240 * copying.awk: Print buffer-read-only and vi ro markers.
241 * copying.c: Rebuild.
242 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
243 * gdbarch.c, gdbarch.h: Rebuild.
244 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
245 buffer-read-only and vi ro markers.
246 * features/arm-with-iwmmxt.c: Rebuild.
247 * features/arm-with-m-fpa-layout.c: Rebuild.
248 * features/arm-with-m-vfp-d16.c: Rebuild.
249 * features/arm-with-m.c: Rebuild.
250 * features/arm-with-neon.c: Rebuild.
251 * features/arm-with-vfpv2.c: Rebuild.
252 * features/arm-with-vfpv3.c: Rebuild.
253 * features/i386/amd64-avx-linux.c: Rebuild.
254 * features/i386/amd64-avx.c: Rebuild.
255 * features/i386/amd64-linux.c: Rebuild.
256 * features/i386/amd64.c: Rebuild.
257 * features/i386/i386-avx-linux.c: Rebuild.
258 * features/i386/i386-avx.c: Rebuild.
259 * features/i386/i386-linux.c: Rebuild.
260 * features/i386/i386-mmx-linux.c: Rebuild.
261 * features/i386/i386-mmx.c: Rebuild.
262 * features/i386/i386.c: Rebuild.
263 * features/i386/x32-avx-linux.c: Rebuild.
264 * features/i386/x32-avx.c: Rebuild.
265 * features/i386/x32-linux.c: Rebuild.
266 * features/i386/x32.c: Rebuild.
267 * features/mips-dsp-linux.c: Rebuild.
268 * features/mips-linux.c: Rebuild.
269 * features/mips64-dsp-linux.c: Rebuild.
270 * features/mips64-linux.c: Rebuild.
271 * features/rs6000/powerpc-32.c: Rebuild.
272 * features/rs6000/powerpc-32l.c: Rebuild.
273 * features/rs6000/powerpc-403.c: Rebuild.
274 * features/rs6000/powerpc-403gc.c: Rebuild.
275 * features/rs6000/powerpc-405.c: Rebuild.
276 * features/rs6000/powerpc-505.c: Rebuild.
277 * features/rs6000/powerpc-601.c: Rebuild.
278 * features/rs6000/powerpc-602.c: Rebuild.
279 * features/rs6000/powerpc-603.c: Rebuild.
280 * features/rs6000/powerpc-604.c: Rebuild.
281 * features/rs6000/powerpc-64.c: Rebuild.
282 * features/rs6000/powerpc-64l.c: Rebuild.
283 * features/rs6000/powerpc-7400.c: Rebuild.
284 * features/rs6000/powerpc-750.c: Rebuild.
285 * features/rs6000/powerpc-860.c: Rebuild.
286 * features/rs6000/powerpc-altivec32.c: Rebuild.
287 * features/rs6000/powerpc-altivec32l.c: Rebuild.
288 * features/rs6000/powerpc-altivec64.c: Rebuild.
289 * features/rs6000/powerpc-altivec64l.c: Rebuild.
290 * features/rs6000/powerpc-cell32l.c: Rebuild.
291 * features/rs6000/powerpc-cell64l.c: Rebuild.
292 * features/rs6000/powerpc-e500.c: Rebuild.
293 * features/rs6000/powerpc-e500l.c: Rebuild.
294 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
295 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
296 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
297 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
298 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
299 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
300 * features/rs6000/powerpc-vsx32.c: Rebuild.
301 * features/rs6000/powerpc-vsx32l.c: Rebuild.
302 * features/rs6000/powerpc-vsx64.c: Rebuild.
303 * features/rs6000/powerpc-vsx64l.c: Rebuild.
304 * features/rs6000/rs6000.c: Rebuild.
305 * features/s390-linux32.c: Rebuild.
306 * features/s390-linux32v1.c: Rebuild.
307 * features/s390-linux32v2.c: Rebuild.
308 * features/s390-linux64.c: Rebuild.
309 * features/s390-linux64v1.c: Rebuild.
310 * features/s390-linux64v2.c: Rebuild.
311 * features/s390x-linux64.c: Rebuild.
312 * features/s390x-linux64v1.c: Rebuild.
313 * features/s390x-linux64v2.c: Rebuild.
314 * features/tic6x-c62x-linux.c: Rebuild.
315 * features/tic6x-c62x.c: Rebuild.
316 * features/tic6x-c64x-linux.c: Rebuild.
317 * features/tic6x-c64x.c: Rebuild.
318 * features/tic6x-c64xp-linux.c: Rebuild.
319 * features/tic6x-c64xp.c: Rebuild.
321 2012-07-27 Tom Tromey <tromey@redhat.com>
323 * c-exp.y (classify_name): Avoid assignment in condition.
325 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
327 * amd64-windows-tdep.c: Include "frame.h".
328 (amd64_windows_skip_trampoline_code): New function.
329 (amd64_windows_init_abi): Add trampoline registration.
331 2012-07-27 Yao Qi <yao@codesourcery.com>
333 * tracepoint.c (cur_traceframe_number): Remove.
334 (set_tfile_traceframe): Remove.
335 (tfile_trace_find, tfile_fetch_registers): Update callers.
336 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
337 (tfile_open, tfile_trace_find): Likewise.
339 2012-07-27 Yao Qi <yao@codesourcery.com>
341 * thread.c (switch_to_thread): Don't call registers_changed.
343 2012-07-26 Tom Tromey <tromey@redhat.com>
345 * Makefile.in (SFILES): Remove objc-exp.y.
346 (YYFILES): Remove objc-exp.c.
347 (YYOBJ): Remove objc-exp.o.
348 (local-maintainer-clean): Don't mention objc-exp.c.
349 * c-exp.y: Include objc-lang.h.
350 (%union) <class>: New field.
351 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
352 (exp): Clone subscript production for OBJC_LBRAC. Add various
353 Objective C productions.
354 (msglist, msgarglist, msgarg): New productions.
355 (array_mod, func_mod, operator): Clone productions for
357 (parse_string_or_char): Handle '@' strings.
358 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
359 (classify_name): Check la_name_of_this. Recognize ObjC class
361 * objc-exp.y: Remove.
362 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
363 * objc-lang.h (objc_parse, objc_error): Don't declare.
365 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
367 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
369 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
371 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
374 2012-07-26 Tom Tromey <tromey@redhat.com>
376 * copying.c: Rebuild.
377 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
380 2012-07-26 Tom Tromey <tromey@redhat.com>
382 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
384 (print_objfile_statistics): Likewise.
385 (maintenance_print_symbols): Likewise.
386 (maintenance_print_msymbols): Likewise.
387 (maintenance_print_objfiles): Likewise.
388 * psymtab.c (print_partial_symbols): Call QUIT.
389 (maintenance_print_psymbols): Likewise. Don't modify
391 * copying.c (show_copying_command): Don't modify immediate_quit.
392 (show_warranty_command): Likewise.
393 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
395 2012-07-26 Keith Seitz <keiths@redhat.com>
397 * linespec.c (linespec_lexer_lex_number): The input
398 is also a valid number if the next character is a comma
401 2012-07-26 Joel Brobecker <brobecker@adacore.com>
403 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
406 2012-07-26 Tristan Gingold <gingold@adacore.com>
408 * machoread.c: Include gdb_bfd.h.
410 2012-07-26 Tristan Gingold <gingold@adacore.com>
412 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
415 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
417 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
419 (dwarf2_evaluate_loc_desc): Likewise.
420 (dwarf2_loc_desc_needs_frame): Likewise.
421 (locexpr_describe_location_1): Likewise.
422 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
424 (struct dwarf2_loclist_baton): Likewise.
425 * dwarf2read.c (struct dwarf_block): Likewise.
426 (dump_die_shallow): Use pulongest to print dwarf_block.size.
427 (decode_locdesc): Expand SIZE and I to size_t.
429 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
431 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
433 2012-07-25 Joel Brobecker <brobecker@adacore.com>
435 * doublest.c (convert_doublest_to_floatformat): If the exponent
436 is too small, treat the value as zero. If the exponent is too
437 large, treat the value as infinity.
439 2012-07-25 Joel Brobecker <brobecker@adacore.com>
441 * configure.ac: Add --enable-lmcheck configure option.
442 * configure: Regenerate.
444 2012-07-25 Tom Tromey <tromey@redhat.com>
446 * NEWS: Mention maint info bfds.
447 * gdb_bfd.c (all_bfds): New global.
448 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
449 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
452 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
454 * configure.tgt: Add v850*-*-rtems*.
456 2012-07-25 Tom Tromey <tromey@redhat.com>
458 * macrotab.c (macro_bcache_str): Remove cast.
460 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
462 * linespec.c (linespec_lexer_lex_number): Update comments,
463 change the return and add check to make sure the input is
465 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
466 false, call linespec_lexer_lex_string.
468 2012-07-24 Tom Tromey <tromey@redhat.com>
470 * symfile.c (symbol_file_add): Don't open BFD twice.
472 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
474 * breakpoint.c (create_breakpoint): Store condition for pending
477 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
479 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
480 (m68k_return_value): Handle complex types like structures.
481 (m68k_svr4_return_value): Likewise.
483 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
485 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
486 parameters to bfd_get_section_name.
488 2012-07-24 Yao Qi <yao@codesourcery.com>
490 * cli/cli-setshow.c: Handle case 'var_uinteger'
491 and 'var_zuninteger' together. Handle case 'var_integer' and
492 'var_zinteger' together.
494 2012-07-23 Keith Seitz <keiths@redhat.com>
496 * linespec.c (convert_linespec_to_sal): Don't add
497 any symbols to the result vector if symbol_to_sal
500 2012-07-23 Keith Seitz <keiths@redhat.com>
502 * linespec.c (decode_objc): Record the function name
505 2012-07-23 Tom Tromey <tromey@redhat.com>
507 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
509 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
510 (map_vmap): Acquire a reference to the BFD.
512 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
514 * p-valprint.c (pascal_object_print_value): Replace potentially
515 unsafe alloca with xmalloc/xfree.
516 * valops.c (search_struct_method): Likewise.
518 2012-07-23 Tom Tromey <tromey@redhat.com>
520 * solib-svr4.c (enable_break): Update.
521 * bfd-target.h (target_bfd_reopen): Update documentation.
523 2012-07-23 Tom Tromey <tromey@redhat.com>
525 * symfile.c (separate_debug_file_exists): Update.
526 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
527 (reread_symbols): Update.
528 * elfread.c (build_id_verify): Update.
529 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
530 bfd_open_maybe_remote.
532 2012-07-23 Tom Tromey <tromey@redhat.com>
534 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
536 2012-07-23 Tom Tromey <tromey@redhat.com>
538 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
540 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
542 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
543 * machoread.c (macho_add_oso_symfile): Make a cleanup for
545 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
546 * objfiles.c (allocate_objfile): Acquire a new reference.
547 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
548 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
549 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
550 a cleanup for 'nbfd'.
551 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
553 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
554 make a cleanup for 'abfd'.
555 (symbol_file_add): Make a BFD cleanup.
557 2012-07-23 Tom Tromey <tromey@redhat.com>
559 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
560 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
561 * corelow.c (core_open): Use gdb_bfd_fopen.
562 * dsrec.c (load_srec): Use gdb_bfd_openr.
563 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
564 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
565 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
566 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
567 (gdb_bfd_fdopenr): New functions.
568 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
569 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
570 (gdb_bfd_fdopenr): Declare.
571 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
572 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
573 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
574 gdb_bfd_openr_next_archived_file.
575 (macho_check_dsym): Use gdb_bfd_openr.
576 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
577 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
578 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
579 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
581 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
582 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
583 gdb_bfd_openr_next_archived_file.
584 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
586 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
588 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
589 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
590 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
591 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
592 (symfile_bfd_open): Use gdb_bfd_fopen.
593 (generic_load): Use gdb_bfd_openr.
594 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
596 2012-07-23 Tom Tromey <tromey@redhat.com>
598 * bfd-target.c (target_bfd_reopen): Update.
599 * cli/cli-dump.c (bfd_openr_with_cleanup)
600 (bfd_openw_with_cleanup): Update.
601 * corelow.c (core_open): Update.
602 * dsrec.c (load_srec): Update.
603 * exec.c (exec_file_attach): Update.
604 * gcore.c (create_gcore_bfd): Update.
605 * gdb_bfd.c (gdb_bfd_ref): Return void.
606 (gdb_bfd_open): Update.
607 * gdb_bfd.h (gdb_bfd_ref): Return void.
609 * jit.c (jit_bfd_try_read_symtab): Update.
610 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
611 * machoread.c (macho_symfile_read_all_oso): Update.
612 (macho_check_dsym): Update.
613 * procfs.c (insert_dbx_link_bpt_in_file): Update.
614 * remote-m32r-sdi.c (m32r_load): Update.
615 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
616 * rs6000-nat.c (add_vmap): Update.
617 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
619 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
620 * solib-spu.c (spu_bfd_open): Update.
621 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
622 * spu-linux-nat.c (spu_bfd_open): Update.
623 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
624 (generic_load): Update.
625 * windows-nat.c (windows_make_so): Update.
627 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
629 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
631 2012-07-20 Jeff Kenton <jkenton@tilera.com>
633 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
634 SIGTRAMP_FRAME unwinding.
636 2012-07-20 Doug Evans <dje@google.com>
638 * NEWS: Document new options "set/show use-deprecated-index-sections",
639 and delete reference to --use-deprecated-index-sections.
640 * symfile.h (use_deprecated_index_sections): Delete.
641 * dwarf2read.c (use_deprecated_index_sections): Make static.
642 (read_index_from_section): Update wording of how to load
643 deprecated index sections.
644 (_initialize_dwarf2_read): New options
645 "set/show use-deprecated-index-sections".
646 * main.c (captured_main): Delete --use-deprecated-index-sections.
648 2012-07-20 Pedro Alves <palves@redhat.com>
653 * infrun.c (handle_inferior_event) <new thread>: Don't special
655 <TARGET_WAITKIND_SPURIOUS>: Ditto.
656 * linux-thread-db.c (thread_get_info_callback): Don't return early
657 if the thread is zombie.
658 (thread_from_lwp): Change return type to void. Rewrite stale
660 (attach_thread): Don't return early if the thread is zombie,
661 instead set its "dying" flag.
662 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
663 (find_new_threads_callback): Don't return early if the thread is
666 2012-07-20 Pedro Alves <palves@redhat.com>
668 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
669 * target.c (target_wait): Likewise.
670 (str_comma_list_concat_elem, do_option, target_options_to_string):
672 * target.h (target_options_to_string): Declare.
674 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
675 Tom Tromey <tromey@redhat.com>
677 * dwarf2read.c (dwarf_decode_macros)
678 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
679 DW_MACRO_GNU_transparent_include_alt>: New cases.
680 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
681 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
683 2012-07-20 Tom Tromey <tromey@redhat.com>
685 * dwarf2read.c (try_open_dwo_file): Don't call
686 gdb_bfd_stash_filename.
688 2012-07-20 Pedro Alves <palves@redhat.com>
690 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
691 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
692 (i386_process_record): Tweak description comments.
694 2012-07-20 Pedro Alves <palves@redhat.com>
696 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
697 (i386_process_record): Use record_read_memory.
698 * record.c (record_read_memory): New function.
699 (record_arch_list_add_mem, record_exec_insn): Use
701 * record.h (record_read_memory): Declare.
703 2012-07-20 Yao Qi <yao@codesourcery.com>
705 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
708 2012-07-19 Pedro Alves <palves@redhat.com>
710 * record.c (record_resume): Ask the target beneath to report all
713 2012-07-19 Doug Evans <dje@google.com>
715 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
716 there's no section at address zero.
717 (dwarf2_record_block_ranges): Ditto.
719 2012-07-19 Yao Qi <yao@codesourcery.com>
721 * command.h, remote.c: Fix a typo in comment.
723 2012-07-19 Tom Tromey <tromey@redhat.com>
726 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
727 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
728 OP_DECLTYPE>: New cases.
729 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
730 (type_exp): Add new productions.
731 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
733 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
735 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
736 OP_DECLTYPE>: New case.
737 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
739 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
740 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
742 2012-07-19 Tom Tromey <tromey@redhat.com>
744 * c-exp.y (enum token_flags): New.
745 (struct token) <cxx_only>: Remove.
747 (tokentab3, tokentab2, ident_tokens): Update.
748 (lex_one_token): Update. Handle FLAG_SHADOW.
750 2012-07-19 Tom Tromey <tromey@redhat.com>
752 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
753 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
754 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
755 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
756 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
757 type_exp production where appropriate.
758 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
759 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
760 <UNOP_MEMVAL_TYPE>: New case.
761 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
762 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
763 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
764 <UNOP_MEMVAL_TYPE>: New case.
765 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
766 UNOP_REINTERPRET_CAST>: Update.
767 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
768 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
769 UNOP_REINTERPRET_CAST>: Update.
770 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
771 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
772 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
775 2012-07-19 Yao Qi <yao@codesourcery.com>
776 Jan Kratochvil <jan.kratochvil@redhat.com>
778 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
779 and case 'var_optional_filename' together.
780 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
781 instead of add_setshow_optional_filename_cmd for setshow command
782 'args'. Set completer for 'set args'.
784 2012-07-18 Doug Evans <dje@google.com>
786 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
787 * common/gdb_vecs.c: New file, contents from utils.c.
788 * common/host-defs.h: New file, contents from defs.h.
789 * utils.h: New file, contents from defs.h.
790 * defs.h: Move all declarations of objects defined in utils.c
791 to utils.h (except QUIT() and related).
792 #include "utils.h", "host-defs.h".
793 * probe.h (probe_p): Move here from gdb_vecs.h.
794 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
795 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
796 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
797 * Makefile.in (SFILES): Add common/gdb_vecs.c.
798 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
799 (COMMON_OBS): Add gdb_vecs.o.
800 (gdb_vecs.o): New rule.
802 2012-07-18 Keith Seitz <keiths@redhat.com>
804 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
805 parameter. If non-zero, use SYMNAME as the canonical name
808 (convert_linespec_to_sals): Use add_sal_to_sals for
810 (decode_line_full): No need to "fill in missing canonical names"
811 anymore. Simply make cleanups for the allocated names.
813 2012-07-18 Keith Seitz <keiths@redhat.com>
815 * linespec.c (struct linespec): Constify expression,
816 source_filename, function_name, and label_name.
817 (symbol_not_found_error): Make all parameters const.
818 (linespec_parser_delete): No need to check for NULL
819 when using xfree. Cast const char * to char * for xfree.
821 2012-07-18 Keith Seitz <keiths@redhat.com>
823 * breakpoint.c (invalid_thread_id_error): New function.
824 (find_condition_and_thread): Use invalid_thread_id_error.
825 (watch_command_1): Likewise.
827 2012-07-18 Tom Tromey <tromey@redhat.com>
829 * cc-with-index.sh, cc-with-dwz.sh: Remove.
830 * contrib/cc-with-tweaks.sh: New file.
832 2012-07-18 Tom Tromey <tromey@redhat.com>
834 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
835 (locate_dwz_sections): Recognize .gdb_index.
836 (create_cus_from_index_list): New function.
837 (create_cus_from_index): Use it. Handle .dwz data.
838 (read_index_from_section): New function, extracted from
840 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
843 2012-07-18 Tom Tromey <tromey@redhat.com>
845 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
846 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
848 (struct dwz_file): New.
849 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
850 (locate_dwz_sections, dwarf2_get_dwz_file)
851 (get_abbrev_section_for_cu): New functions.
852 (error_check_comp_unit_head, read_and_check_comp_unit_head)
853 (read_and_check_type_unit_head): Add abbrev_section argument.
854 (create_debug_types_hash_table): Update.
855 (init_cutu_and_read_dies): Use proper abbrev section.
856 (init_cutu_and_read_dies_no_follow): Likewise.
857 (set_partial_user): Do nothing if PST==NULL.
858 (read_comp_units_from_section): New function.
859 (create_all_comp_units): Use it.
860 (scan_partial_symbols, partial_die_parent_scope): Update.
861 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
862 (process_imported_unit_die, read_partial_die): Handle .dwz files.
863 (find_partial_die): Add offset_in_dwz argument. Update.
864 (guess_partial_die_structure_name, fixup_partial_die): Update.
865 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
866 DW_FORM_GNU_strp_alt.
867 (read_indirect_string_from_dwz): New function.
868 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
869 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
870 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
871 (follow_die_offset): Add offset_in_dwz argument.
872 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
873 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
874 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
875 Handle new macro forms.
876 (dwarf_decode_macros): Update.
877 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
878 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
879 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
880 (create_debug_types_hash_table): Use correct abbrev section.
881 (get_debug_line_section): New function.
882 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
883 (process_full_comp_unit): Pass 'required' argument to
884 end_symtab_get_static_block.
885 * buildsym.h (end_symtab_get_static_block): Update.
886 * buildsym.c (end_symtab_get_static_block): Add 'required'
888 (end_symtab, end_expandable_symtab): Update.
890 2012-07-18 Tom Tromey <tromey@redhat.com>
892 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
894 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
895 (zlib_decompress_section): Remove.
896 (dwarf2_read_section): Use gdb_bfd_map_section.
897 (munmap_section_buffer): Remove.
898 (free_dwo_file, dwarf2_per_objfile_free): Don't use
899 munmap_section_buffer.
900 * gdb_bfd.c: Include zlib.h, sys/mman.h.
901 (struct gdb_bfd_section_data): New.
902 (free_one_bfd_section): New function.
903 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
904 (get_section_descriptor, zlib_decompress_section)
905 (gdb_bfd_map_section): New functions.
906 * gdb_bfd.h (gdb_bfd_map_section): Declare.
908 2012-07-18 Tom Tromey <tromey@redhat.com>
910 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
912 2012-07-18 Tom Tromey <tromey@redhat.com>
914 * gdb_bfd.c (struct gdb_bfd_data): New.
915 (gdb_bfd_cache): New global.
916 (struct gdb_bfd_cache_search): New.
917 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
918 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
919 * gdb_bfd.h (gdb_bfd_open): Declare.
921 2012-07-18 Tom Tromey <tromey@redhat.com>
923 * utils.c (make_cleanup_bfd_unref): Rename from
924 make_cleanup_bfd_close.
925 * defs.h (make_cleanup_bfd_unref): Rename from
926 make_cleanup_bfd_close.
927 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
928 (bfd_openw_with_cleanup): Update.
929 * corelow.c (core_open): Update.
930 * dsrec.c (load_srec): Update.
931 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
932 * remote-m32r-sdi.c (m32r_load): Update.
933 * remote-mips.c (mips_load_srec): Update.
934 (pmon_load_fast): Update.
935 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
937 (darwin_bfd_open): Update.
938 * solib.c (solib_bfd_fopen): Update.
939 * symfile-mem.c (symbol_file_add_from_memory): Update.
940 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
941 (symfile_bfd_open): Update.
942 (generic_load): Update.
944 2012-07-18 Tom Tromey <tromey@redhat.com>
946 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
947 (pmon_load_fast): Likewise.
948 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
949 (m32r_upload_command): Likewise.
950 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
951 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
952 Use make_cleanup_bfd_close.
954 2012-07-18 Tom Tromey <tromey@redhat.com>
956 * symfile.c (symfile_bfd_open): Don't copy name. Call
957 gdb_bfd_stash_filename.
958 (load_command): Open the new BFD before freeing the old.
959 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
960 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
961 Call gdb_bfd_stash_filename.
962 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
963 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
964 gdb_bfd_stash_filename.
965 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
967 * rs6000-nat.c (add_vmap): Don't copy filename. Call
968 gdb_bfd_stash_filename.
969 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
970 * machoread.c (macho_add_oso_symfile): Call
971 gdb_bfd_stash_filename.
972 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
973 gdb_bfd_stash_filename.
974 (macho_check_dsym): Don't copy filename. Call
975 gdb_bfd_stash_filename.
976 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
977 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
978 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
979 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
980 * exec.c (exec_close): Don't free the BFD's filename.
981 (exec_file_attach): Don't copy the filename. Call
982 gdb_bfd_stash_filename.
983 * corelow.c (core_close): Don't free the BFD's filename.
984 (core_open): Call gdb_bfd_stash_filename.
985 * corefile.c (reopen_exec_file): Remove #if 0 code.
986 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
988 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
990 2012-07-18 Tom Tromey <tromey@redhat.com>
992 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
994 (free_dwo_file): Use gdb_bfd_unref.
995 * cli/cli-dump.c: Include gdb_bfd.h.
996 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
997 (bfd_openr_with_cleanup): Likewise.
998 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1000 * utils.c: Include gdb_bfd.h.
1001 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1002 * symfile.c: Include gdb_bfd.h.
1003 (separate_debug_file_exists): Use gdb_bfd_unref.
1004 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1005 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1006 (generic_load): Use gdb_bfd_ref.
1007 (reread_symbols): Use gdb_bfd_unref.
1008 * symfile-mem.c: Include gdb_bfd.h.
1009 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1010 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1011 * solib.c: Include gdb_bfd.h.
1012 (solib_bfd_fopen): Use gdb_bfd_ref.
1013 (solib_bfd_open): Use gdb_bfd_unref.
1014 (free_so_symbols): Use gdb_bfd_unref.
1015 (reload_shared_libraries_1): Use gdb_bfd_unref.
1016 * solib-spu.c: Include gdb_bfd.h.
1017 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1018 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1020 * solib-frv.c: Include gdb_bfd.h.
1021 (enable_break2): Use gdb_bfd_unref.
1022 * solib-dsbt.c: Include gdb_bfd.h.
1023 (enable_break2): Use gdb_bfd_unref.
1024 * solib-darwin.c: Include gdb_bfd.h.
1025 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1027 (darwin_bfd_open): Use gdb_bfd_unref.
1028 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1029 * remote-mips.c: Include gdb_bfd.h.
1030 (mips_load_srec): Use gdb_bfd_ref.
1031 (pmon_load_fast): Use gdb_bfd_ref.
1032 * remote-m32r-sdi.c: Include gdb_bfd.h.
1033 (m32r_load): Use gdb_bfd_ref.
1034 * record.c: Include gdb_bfd.h.
1035 (record_save_cleanups): Use gdb_bfd_unref.
1036 (cmd_record_save): Use gdb_bfd_unref.
1037 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1039 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1040 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1041 * objfiles.c: Include gdb_bfd.h.
1042 (free_objfile): Use gdb_bfd_unref.
1043 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1045 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1046 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1047 (macho_check_dsym): Likewise.
1048 * m32r-rom.c: Include gdb_bfd.h.
1049 (m32r_load): Use gdb_bfd_ref.
1050 (m32r_upload_command): Use gdb_bfd_ref.
1051 * jit.c: Include gdb_bfd.h.
1052 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1053 * gdb_bfd.h: New file.
1054 * gdb_bfd.c: New file.
1055 * gcore.c: Include gdb_bfd.h.
1056 (create_gcore_bfd): Use gdb_bfd_ref.
1057 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1058 (gcore_command): Use gdb_bfd_unref.
1059 * exec.c: Include gdb_bfd.h.
1060 (exec_close): Use gdb_bfd_unref.
1061 (exec_close_1): Use gdb_bfd_unref.
1062 (exec_file_attach): Use gdb_bfd_ref.
1063 * elfread.c: Include gdb_bfd.h.
1064 (build_id_verify): Use gdb_bfd_unref.
1065 * dsrec.c: Include gdb_bfd.h.
1066 (load_srec): Use gdb_bfd_ref.
1067 * corelow.c: Include gdb_bfd.h.
1068 (core_close): Use gdb_bfd_unref.
1069 (core_open): Use gdb_bfd_ref.
1070 * bfd-target.c: Include gdb_bfd.h.
1071 (target_bfd_xclose): Use gdb_bfd_unref.
1072 (target_bfd_reopen): Use gdb_bfd_ref.
1073 * Makefile.in (SFILES): Add gdb_bfd.c.
1074 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1075 (COMMON_OBS): Add gdb_bfd.o.
1077 2012-07-18 Keith Seitz <keiths@redhat.com>
1079 * breakpoint.c (find_condition_and_thread): Initialize
1081 (create_breakpiont): find_condition_and_thread will now
1082 initialize COND_STRING, THREAD, and REST (and TASK).
1083 (addr_string_to_sals): Likewise.
1085 2012-07-18 Pedro Alves <palves@redhat.com>
1087 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1088 Pull the single step breakpoints out of the target.
1090 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1092 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1093 * stap-probe.c (compile_probe_arg): Likewise.
1095 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1097 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1098 (elf_compile_to_ax): Likewise.
1099 * infrun.c (insert_exception_resume_from_probe): Likewise.
1100 (check_exception_resume): Remove `objfile' variable.
1101 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1102 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1103 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1104 (compare_entries): Rename to...
1105 (compare_probes): ...this. Adjust function to work with
1106 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1108 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1110 (print_ui_out_info): Adjust argument to be `struct probe *'.
1111 (info_probes_for_ops): Adjust internal computations to use
1113 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1114 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1115 gen_info_probes_table_values>: Remove `objfile' argument.
1116 (struct probe) <objfile>: New field.
1117 (find_probe_by_pc): Remove `objfile' argument.
1118 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1119 (stap_get_probe_argument_count): Likewise.
1120 (stap_get_arg): Likewise.
1121 (stap_evaluate_probe_argument): Likewise.
1122 (stap_compile_to_ax): Likewise.
1123 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1124 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1125 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1126 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1127 sym_compile_to_ax>: Likewise.
1129 2012-07-18 Terry Guo <terry.guo@arm.com>
1132 * defs.h (GDB_MI_MSG_WIDTH): New.
1133 * ser_base (ser_base_read_error_fd): New function.
1134 (do_ser_base_readchar): Poll error file descriptor as well as
1136 (generic_readchar): Refactor error handling.
1138 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1140 * NEWS: Create a new section for the next release branch.
1141 Rename the section of the current branch, now that it has
1144 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1146 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1147 * version.in: Bump version to 7.5.50.20120718-cvs.
1149 2012-07-17 Keith Seitz <keiths@redhat.com>
1151 * linespec.c (linespec_parse_line_offset): Make parameter
1154 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1157 * f-valprint.c (info_common_command): New variable frame_id.
1158 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1159 * printcmd.c (print_variable_and_value): Extend function comment.
1160 Add comment for invalidated FRAME.
1161 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1162 FI form FRAME_ID after each print_frame_local_vars.
1163 (struct print_variable_and_value_data): Change frame to frame_id.
1164 (do_print_variable_and_value): New variable frame, initialize it from
1165 p->frame_id. Add comment for invalidated FRAME.
1166 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1167 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1168 for invalidated FRAME.
1170 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1171 Pedro Alves <palves@redhat.com>
1173 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1176 2012-07-16 Tom Tromey <tromey@redhat.com>
1178 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1180 2012-07-15 Doug Evans <dje@google.com>
1182 * dwarf2read.c (stmt_list_hash): New struct.
1183 (type_unit_group): Embed "per_cu" member, remove pointer.
1184 New union member "t", move member "tus" into it, all uses updated.
1185 New member "hash", replaces member "line_offset, all uses updated.
1186 (quick_file_names): Replace member "offset" with "hash", all uses
1188 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1189 (hash_file_name_entry, eq_file_name_entry): Call them.
1190 (hash_type_unit_group, eq_type_unit_group): Ditto.
1191 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1192 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1193 (dw2_get_file_names): Update.
1194 (create_type_unit_group): Replace "per_cu" arg with "cu".
1195 All callers updated. Fix "quick" (.gdb_index) handling.
1196 (get_type_unit_group): Replace "per_cu" arg with "cu".
1197 All callers updated.
1198 (build_type_unit_groups): Don't reset tu_stats.
1200 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1201 "tab_cur_size". Change member "tab" to be a htab_t.
1202 (create_filename_seen_cache): Update.
1203 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1204 (filename_seen): Update.
1206 2012-07-13 Doug Evans <dje@google.com>
1208 * symtab.c (filename_seen): Update comment.
1210 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1211 Doug Evans <dje@google.com>
1213 * buildsym.c (end_symtab_1): Split it to ...
1214 (end_symtab_get_static_block): ... this ...
1215 (end_symtab_from_static_block): ... and this function.
1216 (end_symtab, end_expandable_symtab): Call them.
1217 * buildsym.h (end_symtab_get_static_block)
1218 (end_symtab_from_static_block): New declarations.
1219 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1220 Set its valid CU ranges.
1222 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1224 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1225 DW_OP_GNU_parameter_ref.
1227 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1229 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1230 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1232 2012-07-13 Doug Evans <dje@google.com>
1234 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1235 (filename_seen_cache): New struct.
1236 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1237 (create_filename_seen_cache): New function.
1238 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1239 (filename_seen): Delete arg "first". New arg "cache". All callers
1241 (output_source_filename_data): New struct.
1242 (output_source_filename): Delete arg "first". New arg "data".
1243 All callers updated.
1244 (sources_info): Delete local "first". New locals "data", "cleanups".
1245 Rewrite to use filename_seen_cache.
1246 (add_partial_filename_data): Delete member "first". New member
1247 "filename_seen_cache". All uses updated.
1248 (make_source_files_completion_list): Rewrite to use
1249 filename_seen_cache.
1251 2012-07-12 Doug Evans <dje@google.com>
1253 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1255 2012-07-10 Doug Evans <dje@google.com>
1258 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1259 all_type_unit_groups, type_unit_groups, tu_stats.
1260 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1261 All uses updated. Add type_unit_group to union "s".
1262 (type_unit_group): New struct.
1263 (IS_TYPE_UNIT_GROUP): New macro.
1264 (abbrev_table): Delete unused member "section".
1265 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1266 (dw2_get_cu): Assert not used with type_unit_group.
1267 (dw2_get_primary_cu): New function.
1268 (dw2_build_type_unit_groups_reader): New function.
1269 (dw2_build_type_unit_groups): New function.
1270 (dw2_get_file_names): Assert not called on type units.
1271 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1272 Redo loop to iterate over type unit groups instead of type units.
1273 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1274 (read_abbrev_offset): New function.
1275 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1277 (create_partial_symtab): New function.
1278 (process_psymtab_comp_unit_reader): Assert not used with type units.
1279 Call create_partial_symtab.
1280 (process_psymtab_type_unit): Delete.
1281 (hash_type_unit_group, eq_type_unit_group): New functions.
1282 (allocate_type_unit_groups_table): New function.
1283 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1284 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1285 (create_type_unit_group, get_type_unit_group): New functions.
1286 (tu_abbrev_offset): New struct.
1287 (sort_tu_by_abbrev_offset): New function.
1288 (add_type_unit_group_to_table): New function.
1289 (build_type_unit_groups): New function.
1290 (build_type_psymtabs_reader): New function.
1291 (build_type_psymtab_dependencies): New function.
1292 (build_type_psymtabs): Rewrite.
1293 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1294 is seen in a type unit.
1295 (process_queue): Move symtab expansion debugging printfs here.
1296 Call process_full_type_unit for type units.
1297 (compute_symtab_includes): Assert not called for type units.
1298 (process_cu_includes): Don't call compute_symtab_includes for
1300 (process_full_type_unit): New function.
1301 (process_imported_unit_die): Flag an error if called for type units.
1302 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1303 updated. Assert not called for type units.
1304 (read_file_scope): Call dwarf2_start_symtab.
1305 (setup_type_unit_groups): New function.
1306 (read_type_unit_scope): Rewrite.
1307 (abbrev_table_read_table): Initialize abbrev_table->offset.
1308 (abbrev_table_free_cleanup): New function.
1309 (dwarf2_start_symtab): New function.
1310 (load_full_type_unit): Assert not called for type unit groups.
1311 * buildsym.c (finish_block_internal): New arg "expandable".
1312 All callers updated.
1313 (start_symtab): Move most contents to ...
1314 (restart_symtab): ... here. New function.
1315 (reset_symtab_globals): New function.
1316 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1317 Call reset_symtab_globals.
1318 (end_symtab, end_expandable_symtab): New functions.
1319 (set_missing_symtab, augment_type_symtab): New functions.
1320 * buildsym.h (end_expandable_symtab): Declare.
1321 (augment_type_symtab, restart_symtab): Declare.
1322 * psympriv.h (struct partial_symtab): New member "anonymous".
1323 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1325 (read_psymtabs_with_filename): Ditto.
1326 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1327 (expand_symtabs_matching_via_partial): Ditto.
1328 (dump_psymtab): Update.
1329 * dictionary.c (dict_add_pending): New function.
1330 * dictionary.h (dict_add_pending): Declare.
1332 2012-07-09 Doug Evans <dje@google.com>
1334 * buildsym.c (start_subfile): Remove unnecessary check for
1337 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1339 * dwarf2read.c (load_full_type_unit): Simplify.
1341 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1342 to struct signatured_type **. All uses updated.
1344 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1345 All callers updated.
1347 2012-07-09 Tom Tromey <tromey@redhat.com>
1349 * c-exp.y (check_parameter_typelist): New function.
1350 (parameter_typelist): Call it.
1351 * eval.c (make_params): Handle '(void)' case.
1352 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1355 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1357 * common/linux-ptrace.c: Include gdb_assert.h.
1358 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1359 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1361 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1363 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1364 * linux-nat.c (linux_child_post_attach)
1365 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1367 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1369 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1370 nptl <2.7 bug workaround for core files.
1372 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1374 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1376 (save_siginfo): Remove.
1377 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1379 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1380 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1381 * linux-nat.h (struct lwp_info): Remove field siginfo.
1383 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1385 Code cleanup for the next patch.
1386 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1387 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1389 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1390 (ia64_linux_stopped_data_address):
1391 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1393 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1394 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1395 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1398 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1401 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1402 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1404 2012-07-06 Tom Tromey <tromey@redhat.com>
1406 * c-exp.y (DOTDOTDOT): New token.
1407 (func_mod, exp): Use parameter_typelist.
1408 (parameter_typelist): New production.
1409 (tokentab3): Add "..." token.
1410 * eval.c (make_params): Handle varargs.
1411 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1414 2012-07-06 Tom Tromey <tromey@redhat.com>
1417 * c-exp.y (%union) <tvec>: Change type.
1418 (func_mod): Now uses <tvec> type.
1419 (exp): Update for tvec change.
1420 (direct_abs_decl): Push the typelist.
1421 (func_mod): Return a typelist.
1422 (nonempty_typelist): Update for tvec change.
1423 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1424 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1425 * parse.c (pop_type_list): New function.
1426 (push_typelist): New function.
1427 (follow_types): Handle tp_function_with_arguments.
1428 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1429 (enum type_pieces) <tp_function_with_arguments>: New constant.
1430 (union type_stack_elt) <typelist_val>: New field.
1431 (push_typelist): Declare.
1433 2012-07-06 Tom Tromey <tromey@redhat.com>
1435 * c-exp.y (%union) <type_stack>: New field.
1436 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1437 (ptr_operator_ts): New production.
1439 * parse.c (type_stack_reserve): New function.
1440 (check_type_stack_depth): Use it.
1441 (pop_type_stack, append_type_stack, push_type_stack)
1442 (get_type_stack, type_stack_cleanup): New functions.
1443 (follow_types): Handle tp_type_stack.
1444 (_initialize_parse): Simplify initialization.
1445 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1447 (union type_stack_elt) <stack_val>: New field.
1448 (get_type_stack, append_type_stack, push_type_stack)
1449 (type_stack_cleanup): Declare.
1451 2012-07-06 Tom Tromey <tromey@redhat.com>
1453 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1455 (struct type_stack): New.
1456 * parse.c (type_stack, type_stack_size, type_stack_depth):
1458 (type_stack): New global.
1459 (parse_exp_in_context, check_type_stack_depth)
1460 (insert_into_type_stack, insert_type, push_type, push_type_int)
1461 (insert_type_address_space, pop_type, pop_type_int)
1462 (_initialize_parse): Update.
1464 2012-07-06 Tom Tromey <tromey@redhat.com>
1466 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1469 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1471 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1473 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1474 Jan Kratochvil <jan.kratochvil@redhat.com>
1476 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1477 alloca with xmalloc/xfree.
1479 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1481 * MAINTAINERS (Write After Approval): Add myself to the list.
1483 2012-07-05 Doug Evans <dje@google.com>
1485 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1487 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1489 * ax-gdb.c (cli/cli-utils.h): New include.
1490 (linespec.h): Ditto.
1491 (agent_eval_command_one): New function.
1492 (agent_command_1): Ditto.
1493 (agent_command): Call function agent_command_1.
1494 (agent_eval_command): Ditto.
1495 (_initialize_ax_gdb): Change help for "maint agent"
1496 and "maint agent-eval".
1498 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1500 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1501 * cli/cli-utils.c (check_for_argument): New function.
1502 * cli/cli-utils.h (check_for_argument): Ditto.
1504 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1506 * NEWS: Mention x32 ABI support.
1508 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1510 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1511 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1513 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1514 and pc_regnum_from_eax to -1. Update SP regnum from
1515 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1518 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1521 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1523 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1524 * dwarf2expr.h: Include gdbtypes.h.
1525 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1526 these forward declarations.
1527 (cu_offset, sect_offset): Move these ...
1528 * gdbtypes.h: Remove include dwarf2expr.h.
1529 (cu_offset, sect_offset): ... here.
1531 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1533 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1534 (amd64_linux_sigtramp_code): This.
1535 (amd64_x32_linux_sigtramp_code): New.
1536 (LINUX_SIGTRAMP_LEN): Updated.
1537 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1539 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1541 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1543 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 * config.in: Regenerate.
1546 * configure: Regenerate.
1547 * configure.ac: Remove check for gnu/libc-version.h.
1548 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1550 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1551 variables libc_version, libc_major and libc_minor. Replace sscanf by
1552 inferior_has_bug. Extend the comment.
1554 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1556 * linux-thread-db.c (inferior_has_bug): New function.
1557 (thread_db_find_new_threads_silently): Return boolean as checked by
1558 inferior_has_bug, describe it in the comments.
1559 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1560 earlier. Abort the initialization if it returned non-zero.
1561 (thread_db_new_objfile): Exclude debug files.
1562 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1565 2012-07-02 Doug Evans <dje@google.com>
1567 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1568 related to queue management.
1570 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1571 instead of "debug dwarf2-die" in debugging printfs.
1572 (create_debug_info_hash_table_reader): Ditto.
1573 (create_debug_info_hash_table): Ditto.
1574 (init_dwo_file): Ditto.
1575 (init_cutu_and_read_dies): Add debugging printf.
1576 (init_cutu_and_read_dies_no_follow): Ditto.
1577 (process_psymtab_comp_unit_reader): Ditto.
1579 2012-07-02 Stan Shebs <stan@codesourcery.com>
1581 Add target-side support for dynamic printf.
1582 * NEWS: Mention the additional style.
1583 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1584 (struct bp_location): New field cmd_bytecode.
1585 * breakpoint.c: Include format.h.
1586 (disconnected_dprintf): New global.
1587 (parse_cmd_to_aexpr): New function.
1588 (build_target_command_list): New function.
1589 (insert_bp_location): Call it.
1590 (remove_breakpoints_pid): Skip dprintf breakpoints.
1591 (print_one_breakpoint_location): Ditto.
1592 (dprintf_style_agent): New global.
1593 (dprintf_style_enums): Add dprintf_style_agent.
1594 (update_dprintf_command_list): Add agent case.
1595 (agent_printf_command): New function.
1596 (_initialize_breakpoint): Add new commands.
1597 * common/ax.def (printf): New bytecode.
1598 * ax.h (ax_string): Declare.
1599 * ax-gdb.h (gen_printf): Declare.
1600 * ax-gdb.c: Include cli-utils.h, format.h.
1601 (gen_printf): New function.
1602 (maint_agent_print_command): New function.
1603 (_initialize_ax_gdb): Add maint agent-printf command.
1604 * ax-general.c (ax_string): New function.
1605 (ax_print): Add printf disassembly.
1606 * Makefile.in (SFILES): Add format.c
1607 (COMMON_OBS): Add format.o.
1608 * common/format.h: New file.
1609 * common/format.c: New file.
1610 * printcmd.c: Include format.h.
1611 (ui_printf): Call parse_format_string.
1612 * remote.c (remote_state): New field breakpoint_commands.
1613 (PACKET_BreakpointCommands): New enum.
1614 (remote_breakpoint_commands_feature): New function.
1615 (remote_protocol_features): Add new BreakpointCommands entry.
1616 (remote_can_run_breakpoint_commands): New function.
1617 (remote_add_target_side_commands): New function.
1618 (remote_insert_breakpoint): Call it.
1619 (remote_insert_hw_breakpoint): Ditto.
1620 (_initialize_remote): Add new packet configuration for
1621 target-side breakpoint commands.
1622 * target.h (struct target_ops): New field
1623 to_can_run_breakpoint_commands.
1624 (target_can_run_breakpoint_commands): New macro.
1625 * target.c (update_current_target): Handle
1626 to_can_run_breakpoint_commands.
1628 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1630 Execute -ix and -iex only after system and user gdbinit files.
1631 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1632 processing down after gdbinit files.
1634 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1636 Add fnmatch-gnu module.
1637 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1638 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1639 * gnulib/aclocal.m4: Regenerate.
1640 * gnulib/config.in: Regenerate.
1641 * gnulib/configure: Regenerate.
1642 * gnulib/import/dummy.c: Remove.
1643 * gnulib/import/Makefile.am: Regenerate.
1644 * gnulib/import/Makefile.in: Likewise.
1645 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1646 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1647 * gnulib/import/alloca.c: New file.
1648 * gnulib/import/alloca.in.h: Likewise.
1649 * gnulib/import/config.charset: Likewise.
1650 * gnulib/import/fnmatch.c: Likewise.
1651 * gnulib/import/fnmatch.in.h: Likewise.
1652 * gnulib/import/fnmatch_loop.c: Likewise.
1653 * gnulib/import/localcharset.c: Likewise.
1654 * gnulib/import/localcharset.h: Likewise.
1655 * gnulib/import/m4/alloca.m4: Likewise.
1656 * gnulib/import/m4/codeset.m4: Likewise.
1657 * gnulib/import/m4/configmake.m4: Likewise.
1658 * gnulib/import/m4/fcntl-o.m4: Likewise.
1659 * gnulib/import/m4/fnmatch.m4: Likewise.
1660 * gnulib/import/m4/glibc21.m4: Likewise.
1661 * gnulib/import/m4/localcharset.m4: Likewise.
1662 * gnulib/import/m4/locale-fr.m4: Likewise.
1663 * gnulib/import/m4/locale-ja.m4: Likewise.
1664 * gnulib/import/m4/locale-zh.m4: Likewise.
1665 * gnulib/import/m4/mbrtowc.m4: Likewise.
1666 * gnulib/import/m4/mbsinit.m4: Likewise.
1667 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1668 * gnulib/import/m4/mbstate_t.m4: Likewise.
1669 * gnulib/import/m4/stdbool.m4: Likewise.
1670 * gnulib/import/m4/wchar_h.m4: Likewise.
1671 * gnulib/import/m4/wctype_h.m4: Likewise.
1672 * gnulib/import/m4/wint_t.m4: Likewise.
1673 * gnulib/import/mbrtowc.c: Likewise.
1674 * gnulib/import/mbsinit.c: Likewise.
1675 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1676 * gnulib/import/mbsrtowcs-state.c: Likewise.
1677 * gnulib/import/mbsrtowcs.c: Likewise.
1678 * gnulib/import/ref-add.sin: Likewise.
1679 * gnulib/import/ref-del.sin: Likewise.
1680 * gnulib/import/stdbool.in.h: Likewise.
1681 * gnulib/import/streq.h: Likewise.
1682 * gnulib/import/strnlen1.c: Likewise.
1683 * gnulib/import/strnlen1.h: Likewise.
1684 * gnulib/import/verify.h: Likewise.
1685 * gnulib/import/wchar.in.h: Likewise.
1686 * gnulib/import/wctype.in.h: Likewise.
1688 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1690 Support shell wildcards for 'set auto-load safe-path'.
1691 * auto-load.c: Include fnmatch.h.
1692 (filename_is_in_dir): Rename to ...
1693 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1694 it. Update function comment. Rename dir_len to pattern_len. New
1695 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1696 messages. Use gdb_filename_fnmatch.
1697 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1699 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1700 * defs.h (gdb_filename_fnmatch): New declaration.
1701 * utils.c: Include fnmatch.h.
1702 (gdb_filename_fnmatch): New function.
1704 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1706 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1707 `-probe' and `-probe-stap' options.
1709 2012-07-01 Yao Qi <yao@codesourcery.com>
1711 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1712 always_inserted_off, and always_inserted_enums.
1713 Change always_inserted_mode's type to 'enum auto_boolean'.
1714 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1716 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1717 of add_setshow_enum_cmd.
1718 * infrun.c: Remove can_use_displaced_stepping_auto,
1719 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1720 can_use_displaced_stepping_enum.
1721 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1722 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1723 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1724 add_setshow_enum_cmd.
1726 2012-06-30 Doug Evans <dje@google.com>
1728 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1729 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1730 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1732 2012-06-29 Doug Evans <dje@google.com>
1734 * linespec.c: #include "stack.h".
1735 (decode_line_with_current_source): Moved here from symtab.c and
1736 renamed from decode_line_spec. All callers updated.
1737 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1738 renamed from decode_line_spec_1. All callers updated.
1739 * linespec.h (decode_line_with_current_source): Move declaration here
1740 from symtab.h and renamed from decode_line_spec.
1741 (decode_line_with_last_displayed): Move declaration here from symtab.h
1742 and renamed from decode_line_spec_1.
1743 * macrocmd.c: #include "linespec.h".
1744 * symtab.c: Remove #include "linespec.h".
1746 2012-06-28 Doug Evans <dje@google.com>
1748 * dwarf2read.c (get_cu_length): New function.
1749 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1750 (create_debug_types_hash_table): Ditto.
1751 (init_cutu_and_read_dies): Ditto.
1752 (init_cutu_and_read_dies_no_follow): Ditto.
1754 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1756 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1757 (struct abbrev_table): Define.
1758 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1760 (init_cutu_and_read_dies): Update.
1761 (abbrev_table_alloc_abbrev): New function. Replaces
1762 dwarf_alloc_abbrev. All callers updated.
1763 (abbrev_table_add_abbrev): New function.
1764 (abbrev_table_lookup_abbrev): New function. Replaces
1765 dwarf2_lookup_abbrev. All callers updated.
1766 (abbrev_table_read_table): New function. Contents moved here from
1767 dwarf2_read_abbrevs.
1768 (dwarf2_read_abbrevs): Call it.
1769 (abbrev_table_free): New function.
1770 (dwarf2_free_abbrev_table): Call it.
1772 2012-06-28 Stan Shebs <stan@codesourcery.com>
1774 * osdata.c (info_osdata_command): Filter out "Title" columns
1776 * common/linux-osdata.c (struct osdata_type): Add title field.
1777 (osdata_table): Add titles to each entry.
1778 (linux_command_xfer_osdata): Add a column for title data.
1780 2012-06-28 Stan Shebs <stan@codesourcery.com>
1782 Make logging work for MI.
1784 * interps.h (interp_set_logging_ftype): New typedef.
1785 (struct interp_procs): New field set_logging_proc.
1786 (current_interp_set_logging): Declare.
1787 * interps.c (current_interp_set_logging): New function.
1788 * cli/cli-logging.c: Include interps.h.
1789 (set_logging_redirect): Call current_interp_set_logging.
1790 (pop_output_files): Ditto.
1791 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1792 * mi/mi-console.h (mi_console_set_raw): Declare.
1793 * mi/mi-console.c (mi_console_set_raw): New function.
1794 * mi/mi-interp.c (saved_raw_stdout): New global.
1795 (mi_set_logging): New function.
1796 (_initialize_mi_interp): Add it to interp procs.
1798 2012-06-28 Doug Evans <dje@google.com>
1800 * symtab.c (lookup_symbol_aux_objfile): Use
1801 ALL_OBJFILE_PRIMARY_SYMTABS.
1803 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1805 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1807 * common/buffer.c: Include inttypes.h and stdint.h.
1808 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1810 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 Pedro Alves <palves@redhat.com>
1813 * gdbthread.h (ALL_THREADS): New macro.
1814 (thread_list): Declare.
1815 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1816 going, but instead fall through to the stepping handling.
1817 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1818 the passed in signal. Adjust debug output.
1819 (resume_callback): Rename to ...
1820 (linux_nat_resume_callback): ... this. Pass the thread's last
1821 stop signal, if in "pass" state.
1822 (linux_nat_resume): Adjust to rename.
1823 (stop_wait_callback): New assertion. Don't respawn signals;
1824 instead let the LWP remain with SIGNALLED set.
1825 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1826 * remote.c (append_pending_thread_resumptions): New.
1827 (remote_vcont_resume): Call it.
1828 * target.h (target_resume): Extend comment.
1830 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1832 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1834 2012-06-27 Doug Evans <dje@google.com>
1836 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1837 Delete have_addr_base, unused. All uses updated.
1838 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1839 (dwarf2_get_pc_bounds): Add ranges_base.
1840 (dwarf2_record_block_ranges): Ditto.
1842 2012-06-27 Tom Tromey <tromey@redhat.com>
1845 * varobj.c (varobj_create): Update.
1846 (varobj_set_value): Update.
1847 * tracepoint.c (validate_actionline): Update.
1848 (encode_actions_1): Update.
1849 * parse.c (parse_exp_1): Add 'pc' argument.
1850 (parse_exp_in_context): Add 'pc' argument. Change how
1851 expression_context_pc is set.
1852 (parse_expression): Update.
1853 (parse_field_expression): Update.
1854 * expression.h (parse_exp_1): Update.
1855 * eval.c (parse_to_comma_and_eval): Update.
1856 * breakpoint.c (set_breakpoint_condition): Update.
1857 (update_watchpoint): Update.
1858 (init_breakpoint_sal): Update
1859 (find_condition_and_thread): Update.
1860 (watch_command_1): Update.
1861 (update_breakpoint_locations): Update.
1862 * ada-lang.c (ada_read_renaming_var_value): Update.
1863 (create_excep_cond_exprs): Update.
1865 2012-06-27 Doug Evans <dje@google.com>
1867 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1870 2012-06-26 Doug Evans <dje@google.com>
1872 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1874 (error_check_comp_unit_head): New arg abbrev_section. All callers
1876 (read_and_check_comp_unit_head): Ditto.
1877 (read_and_check_type_unit_head): Ditto.
1879 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1881 New attribute 'last' for gdb.Symtab_and_line.
1882 * NEWS (Python Scripting): Add entry about the new attribute.
1883 * python/py-symtab.c (salpy_get_last): New function which
1884 implements the get method for the 'last' attribute of
1885 gdb.Symtab_and_line.
1886 (sal_object_getset): Add entry for the 'last' attribute.
1888 2012-06-26 Doug Evans <dje@google.com>
1890 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1891 (dwo_sections): Add macinfo, macro.
1892 (dwarf2_locate_dwo_sections): Watch for macro sections.
1893 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1894 All callers updated. Handle DWO files.
1896 * NEWS: Mention new options "set debug dwarf2-read" and
1897 "set debug symtab-create".
1898 * dwarf2read.c (dwarf2_read_debug): New static global.
1899 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1900 (process_queue): Ditto.
1901 (process_full_comp_unit): Ditto.
1902 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1903 * elfread.c (elf_symfile_read): Add debugging printf.
1904 * minsyms.c (install_minimal_symbols): Ditto.
1905 * psymtab.c (allocate_psymtab): Ditto.
1906 * symfile.c (allocate_symtab): Ditto.
1907 * symtab.c (symtab_create_debug): New global.
1908 (_initialize_symtab): Add new option "set debug symtab-create".
1909 * symtab.h (symtab_create_debug): Declare.
1911 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1912 (lookup_dwo_type_unit): Ditto.
1914 2012-06-26 Roland McGrath <roland@hack.frob.com>
1915 H.J. Lu <hongjiu.lu@intel.com>
1917 * amd64-linux-nat.c: Include <sys/user.h>.
1918 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1919 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1920 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1922 * configure.ac: Check if the fs_base and gs_base members of
1923 `struct user_regs_struct' exist.
1924 * config.in: Regenerated.
1925 * configure: Likewise.
1927 2012-06-25 Michael Eager <eager@eagercon.com>
1930 * python/python.c (gdbpy_write): Check for interrupted output.
1932 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1934 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1935 register as a stack alignment in ARM mode.
1937 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1939 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1940 * gnulib/config.in: Regenerate.
1941 * gnulib/configure: Likewise.
1942 * gnulib/import/m4/extensions.m4: Update it.
1943 * gnulib/import/m4/gnulib-common.m4: Likewise.
1944 * gnulib/import/m4/memmem.m4: Likewise.
1945 * gnulib/import/m4/mmap-anon.m4: Likewise.
1946 * gnulib/import/m4/multiarch.m4: Likewise.
1947 * gnulib/import/stdint.in.h: Likewise.
1949 2012-06-24 Yao Qi <yao@codesourcery.com>
1951 * corefile.c (write_memory_with_notification): New.
1952 * gdbcore.h: Declare write_memory_with_notification.
1953 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1954 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1955 * valops.c (value_assign): Likewise.
1956 * python/py-inferior.c (infpy_write_memory): Call
1957 'write_memory_with_notification'.
1959 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1961 * cc-with-index.sh: Use also -ex "set auto-load no".
1963 2012-06-23 Doug Evans <dje@google.com>
1966 * NEWS: Document additions to .gdb_index.
1967 * dwarf2read.c: #include "gdb/gdb-index.h".
1968 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1969 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1970 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1971 (dwarf2_read_index): Recognize version 7.
1972 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1973 block_kind, domain): All callers updated.
1974 (dw2_find_symbol_file): Handle new index CU values.
1975 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1976 (add_index_entry): New args is_static, kind. All callers updated.
1977 (offset_type_compare, uniquify_cu_indices): New functions
1978 (symbol_kind): New function.
1979 (write_psymtabs_to_index): Remove duplicate CU values.
1980 (write_psymtabs_to_index): Write .gdb_index version 7.
1982 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1984 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1985 * configure: Regenerate.
1987 2012-06-20 Yao Qi <yao@codesourcery.com>
1989 * python/py-inferior.c: Update comments of infpy_read_memory
1990 and infpy_write_memory.
1992 2012-06-19 Tom Tromey <tromey@redhat.com>
1995 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1996 (push_type_address_space): Remove.
1997 * parse.c (insert_into_type_stack): New function.
1998 (insert_type): Likewise.
1999 (insert_type_address_space): Rename from push_type_address_space.
2000 Insert tp_space_identifier.
2001 * c-exp.y (ptr_operator): New production.
2002 (abs_decl): Use ptr_operator.
2003 (space_identifier): Call insert_type_address_space.
2004 (ptype): Don't use const_or_volatile_or_space_identifier.
2005 (const_or_volatile_noopt): Call insert_type.
2006 (conversion_type_id, conversion_declarator): New productions.
2007 (operator): Use conversion_type_id.
2009 2012-06-18 Doug Evans <dje@google.com>
2011 * symtab.h (minimal_symbol): New member created_by_gdb.
2012 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2014 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2015 (search_symbols): Call it instead of lookup_symbol.
2016 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2018 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2019 Adjust address for DW_OP_GNU_addr_index.
2020 * dwarf2expr.h (dwarf_expr_context): Update comment.
2021 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2022 all callers updated. Handle TLS vars described with
2023 DW_OP_GNU_const_index.
2024 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2025 and DW_OP_GNU_const_index.
2026 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2028 * block.c (find_block_in_blockvector): Make explicit the fact that we
2029 ignore GLOBAL_BLOCK.
2031 2012-06-18 Tom Tromey <tromey@redhat.com>
2033 * c-exp.y (operator): Remove trailing space after "delete" and
2036 2012-06-18 Mark Kettenis <kettenis@gnu.org>
2037 Jan Kratochvil <jan.kratochvil@redhat.com>
2039 Switch i386 and derived targets to ON_STACK.
2040 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2041 (amd64_dicos_init_abi): Remove its installment.
2042 * dicos-tdep.c (dicos_init_abi): Remove the
2043 set_gdbarch_call_dummy_location call. Update the comment here.
2044 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2045 (i386_dicos_init_abi): Remove its installment.
2046 * i386-tdep.c (i386_push_dummy_code): New function.
2047 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2048 i386_push_dummy_code.
2050 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 Remove stale dummy frames.
2053 * breakpoint.c: Include dummy-frame.h.
2054 (longjmp_breakpoint_ops): New variable.
2055 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2056 bp_longjmp_call_dummy.
2057 (bpstat_what, bptype_string, print_one_breakpoint_location)
2058 (init_bp_location): Support bp_longjmp_call_dummy.
2059 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2060 (set_longjmp_breakpoint_for_call_dummy)
2061 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2063 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2064 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2065 FIXME comment and extend the other comment for bp_call_dummy.
2066 (set_longjmp_breakpoint_for_call_dummy)
2067 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2068 * dummy-frame.c: Include gdbthread.h.
2069 (pop_dummy_frame_bpt): New function.
2070 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2071 (dummy_frame_discard): New function.
2072 (cleanup_dummy_frames): Update the comment about longjmps.
2073 * dummy-frame.h (dummy_frame_discard): New declaration.
2074 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2075 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2076 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2077 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2078 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2079 keep_going if IS_LONGJMP and there is no other reason to stop.
2081 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2083 * remote-sim.c (sim_command_completer): Initialize
2086 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2089 * dwarf2loc.c (call_site_parameter_matches): Support
2090 CALL_SITE_PARAMETER_PARAM_OFFSET.
2091 (needs_dwarf_reg_entry_value): Push stub value.
2092 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2093 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2094 * gdbtypes.h (enum call_site_parameter_kind): New item
2095 CALL_SITE_PARAMETER_PARAM_OFFSET.
2096 (struct call_site.parameter.u): New field param_offset.
2098 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2100 Code cleanup: Generalize call_site.parameter key.
2101 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2102 variable dwarf_reg. New variable kind_u. Update parameters to
2103 push_dwarf_reg_entry_value.
2104 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2105 * dwarf2expr.h (enum call_site_parameter_kind)
2106 (union call_site_parameter_u): Forward declarations.
2107 (struct dwarf_expr_context_funcs): Update parameters and their
2108 description for push_dwarf_reg_entry_value.
2109 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2110 * dwarf2loc.c (call_site_parameter_matches): New function.
2111 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2112 description. Use call_site_parameter_matches.
2113 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2114 Update parameters and their description.
2115 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2116 New variable kind_u. Adjust the caller for updated parameters.
2117 (needs_dwarf_reg_entry_value): Update parameters.
2118 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2119 instead of attr. Update for the changed fields of struct
2120 call_site_parameter.
2121 * gdbtypes.h: Include dwarf2expr.h.
2122 (enum call_site_parameter_kind): New.
2123 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2124 fb_offset into new union u.
2126 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2128 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2129 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2132 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2134 * amd64-linux-nat.c (compat_x32_clock_t): New.
2135 (compat_x32_siginfo_t): Likewise.
2136 (compat_x32_siginfo_from_siginfo): Likewise.
2137 (siginfo_from_compat_x32_siginfo): Likewise.
2138 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2139 and siginfo_from_compat_x32_siginfo for x32.
2141 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
2143 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2145 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2147 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2148 instead of gdbarch_ptr_bit.
2149 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2150 (amd64_supply_native_gregset): Likewise.
2151 (amd64_collect_native_gregset): Likewise.
2152 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2153 (amd64_supply_xsave): Likewise.
2154 (amd64_collect_fxsave): Likewise.
2155 (amd64_collect_xsave): Likewise.
2157 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2159 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2160 (amd64_linux_read_description): Check DS segment register for
2163 2012-06-15 Tom Tromey <tromey@redhat.com>
2165 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2166 init_cutu_and_read_dies.
2168 2012-06-15 Iain Sandoe <iain@codesourcery.com>
2170 * MAINTAINERS (Write After Approval): Add myself to the list.
2172 2012-06-15 Tom Tromey <tromey@redhat.com>
2174 * valops.c (value_find_oload_method_list): Now static.
2175 * value.h (value_find_oload_method_list): Don't declare.
2177 2012-06-15 Tom Tromey <tromey@redhat.com>
2179 * valops.c (find_overload_match): Use value_ind.
2181 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2183 * infrun.c (handle_inferior_event): Correct indentation.
2185 2012-06-14 Doug Evans <dje@google.com>
2187 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2188 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2190 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2191 updated. Handle DEBUG_LOC_START_LENGTH.
2192 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2193 (loclist_describe_location): Ditto.
2195 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2198 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2199 after hiding inline functions.
2201 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2203 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2204 _initialize_inf_ttrace.
2206 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2208 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2209 _initialize_hppa_hpux_nat.
2211 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2213 * remote-sim.c (sim_command_completer): Change type of return
2214 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2216 2012-06-13 Mark Kettenis <kettenis@gnu.org>
2217 Jan Kratochvil <jan.kratochvil@redhat.com>
2220 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2221 stack on a 16-byte boundary.
2223 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2225 * jit.c (finalize_symtab): Set function's return type to 'void' by
2228 2012-06-13 Mark Kettenis <kettenis@gnu.org>
2229 H.J. Lu <hongjiu.lu@intel.com>
2231 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2232 Move bits common to both the classic LP64 and the new x32 ILP32
2234 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2235 (amd64_x32_linux_init_abi): New function.
2236 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2239 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2240 * i386-tdep.c (i386_pseudo_register_name): Make public.
2241 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2242 * amd64-tdep.c (amd64_dword_names): Add "eip".
2243 (amd64_x32_pseudo_register_type): New function
2244 (amd64_x32_init_abi): New function.
2246 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2249 * inferior.h (struct inferior_suspend_state): Comment out.
2250 (struct inferior): Comment out the field suspend.
2251 * infrun.c (struct infcall_suspend_state): Comment out the field
2253 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2256 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2259 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2260 function comment. Return ERROR for unresolved cases. Implement
2261 returning proper NAME.
2262 (yylex): Accept also NAME from classify_inner_name.
2263 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2264 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2266 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2268 2012-06-13 Tom Tromey <tromey@redhat.com>
2270 * breakpoint.c (condition_completer): New function.
2271 (_initialize_breakpoint): Use it.
2272 * value.c (complete_internalvar): New function.
2273 * value.h (complete_internalvar): Declare.
2275 2012-06-13 Tom Tromey <tromey@redhat.com>
2277 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2278 * breakpoint.c (catch_syscall_completer): Return a VEC.
2279 * cli/cli-cmds.c (complete_command): Update.
2280 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2281 (complete_on_enum): Likewise.
2282 * command.h: Include gdb_vecs.h.
2283 (completer_ftype): Change return type.
2284 (complete_on_cmdlist, complete_on_enum): Likewise.
2285 * completer.c (noop_completer, filename_completer)
2286 (location_completer): Return a VEC.
2287 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2289 (expression_completer, complete_line_internal, complete_line)
2290 (command_completer): Return a VEC.
2291 (gdb_completion_word_break_characters, line_completion_function):
2293 * completer.h: Include gdb_vecs.h.
2294 (complete_line, noop_completer, filename_completer)
2295 (expression_completer, location_completer, command_completer):
2297 * f-lang.c (f_word_break_characters): Return a VEC.
2298 * interps.c (interpreter_completer): Return a VEC.
2299 * language.h (struct language_defn)
2300 <la_make_symbol_completion_list>: Return a VEC.
2301 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2302 * symtab.c (free_completion_list): Take a VEC.
2303 (return_val_size, return_val_index): Remove.
2304 (return_val): Now a VEC.
2305 (completion_list_add_name): Update.
2306 (default_make_symbol_completion_list_break_on)
2307 (default_make_symbol_completion_list, make_symbol_completion_list)
2308 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2310 (add_filename_to_list): Update.
2311 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2313 (maybe_add_partial_symtab_filename): Update.
2314 (make_source_files_completion_list): Return a VEC.
2315 * symtab.h (default_make_symbol_completion_list_break_on)
2316 (default_make_symbol_completion_list, make_symbol_completion_list)
2317 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2318 (make_source_files_completion_list): Update.
2320 2012-06-13 Tom Tromey <tromey@redhat.com>
2322 * breakpoint.c (add_catch_command): Use completer_ftype.
2323 * breakpoint.h: Include command.h.
2324 (add_catch_command): Use completer_ftype.
2325 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2326 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2327 Use completer_ftype.
2328 * command.h (completer_ftype): New typedef.
2329 (set_cmd_completer): Use it.
2330 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2333 2012-06-13 Pedro Alves <palves@redhat.com>
2335 Partial revert of previous change.
2337 * serial.c (scb_base): New global.
2338 (serial_for_fd): New.
2339 (serial_open, serial_fdopen_ops): Link new serial in open serials
2341 (do_serial_close): Unlink serial from the open serials chain.
2343 2012-06-12 Pedro Alves <palves@redhat.com>
2345 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2347 (prepare_for_detach): No longer context switch here in non-stop
2349 (fetch_inferior_event): Ditto.
2350 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2351 to the event thread before removing breakpoints. Switch to the
2352 event thread before inserting breakpoints and resuming.
2353 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2354 event thread before resuming.
2355 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2356 Switch to the event thread before removing breakpoints.
2358 2012-06-12 Eli Zaretskii <eliz@gnu.org>
2360 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2361 special characters correctly for the Windows shells. See
2362 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2364 [!__MINGW32__]: Remove extra double quote character from special
2367 2012-06-11 Stan Shebs <stan@codesourcery.com>
2369 * ui-out.h: Remove #if 0 declarations.
2370 * ui-out.c: Remove #if 0 functions.
2372 2012-06-11 Pedro Alves <palves@redhat.com>
2374 * ser-base.c (run_async_handler_and_reschedule): New.
2375 (fd_event, push_event): Use it.
2376 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2377 reference count to 1.
2378 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2380 (serial_is_open, serial_ref, serial_unref): New.
2381 * serial.h (serial_open): Adjust comment.
2382 (serial_is_open): Declare.
2383 (serial_close): Adjust comment.
2384 (serial_ref, serial_unref) Declare.
2385 (struct serial): New field 'refcnt'.
2387 2012-06-11 Pedro Alves <palves@redhat.com>
2389 Remove #if 0'd "connect" command, and unnecessary associated
2390 refcounting and serial reuse bits.
2392 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2393 * serial.c (last_serial_opened): Delete.
2395 (serial_open): Adjust.
2396 (serial_for_fd): Delete.
2397 (serial_fdopen_ops, do_serial_close): Adjust.
2398 (serial_fdopen_ops): Adjust.
2400 2012-06-11 Pedro Alves <palves@redhat.com>
2402 * serial.c (do_serial_close): Remove early return when SCB is
2405 2012-06-11 Tom Tromey <tromey@redhat.com>
2407 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2409 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2411 Fix regression by the "ambiguous linespec" series.
2412 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2413 get_last_displayed_symtab and get_last_displayed_line and depending
2416 2012-06-11 Tom Tromey <tromey@redhat.com>
2418 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2419 (dw2_find_symbol_file): Use it.
2421 2012-06-11 Michael Eager <eager@eagercon.com>
2423 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2424 * mips-linux-tdep.h (mips_signals): New
2426 2012-06-11 Tom Tromey <tromey@redhat.com>
2428 * infrun.c (handle_inferior_event)
2429 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2431 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2432 exception logic in all cases. Update comments.
2433 (insert_longjmp_resume_breakpoint): Set the exception resume
2436 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2438 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2440 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2442 * valarith.c (binop_types_user_defined_p): Fix a typo.
2444 2012-06-08 Yao Qi <yao@codesourcery.com>
2445 Chung-Lin Tang <cltang@codesourcery.com>
2447 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2448 * arch-utils.h: Declare.
2449 * gdbarch.sh: Add return_in_first_hidden_param_p.
2450 * gdbarch.c, gdbarch.h: Regenerated.
2451 * infcall.c (call_function_by_hand): Call
2452 gdbarch_return_in_first_hidden_param_p instead of
2453 language_pass_by_reference.
2455 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2456 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2457 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2458 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2459 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2460 `cplus_return_struct_by_reference'.
2461 (tic6x_return_value): Handle language cplusplus.
2462 (tic6x_return_in_first_hidden_param_p): New.
2463 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2465 2012-06-07 Doug Evans <dje@google.com>
2467 * dwarf2read.c (dwarf2_cu): Add comment.
2469 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2471 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2473 (mips_eabi_push_dummy_call): Likewise.
2474 (mips_n32n64_push_dummy_call): Likewise.
2475 (mips_o32_push_dummy_call): Likewise.
2476 (mips_o64_push_dummy_call): Likewise.
2478 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2480 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2482 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2484 * mips-tdep.c (mips_pseudo_register_type): Use
2485 mips_float_register_p.
2487 2012-06-06 Pedro Alves <palves@redhat.com>
2489 * infrun.c (handle_inferior_event): Remove calls to
2490 reinit_frame_cache that follow a context_switch call.
2492 2012-06-06 Pedro Alves <palves@redhat.com>
2494 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2495 context_switch and remove stale comment.
2497 2012-06-06 Pedro Alves <palves@redhat.com>
2499 * infrun.c (struct execution_control_state): Remove
2500 `new_thread_event' field.
2501 (handle_inferior_event): Simplify new threads handling; don't
2502 resume the inferior if we find a new thread.
2504 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2506 * NEWS: Document the deprecation of SH's 'regs' command.
2507 * inferior.h (all_registers_info): Add function declaration.
2508 * sh-tdep.c (sh_show_regs): Remove variable.
2509 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2510 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2511 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2512 (sh_show_regs_command): Remove functions.
2513 (sh_gdbarch_init): Don't set sh_show_regs.
2514 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2515 'info all-registers'.
2516 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2517 (sh64_show_regs): Remove functions.
2518 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2520 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2522 * configure.ac: Move development=true below AC_INIT.
2523 * configure: Regenerate.
2525 2012-06-05 Stan Shebs <stan@codesourcery.com>
2527 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2530 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2532 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2533 argument as ssize_t.
2534 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2535 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2536 * target.c (target_read_stack, target_write_memory)
2537 (target_write_raw_memory): Likewise.
2538 * target.h (target_read_stack, target_write_memory)
2539 (target_write_raw_memory): Likewise.
2541 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2543 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2544 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2545 * target.c (target_read_memory): Change LEN to ssize_t.
2546 * target.h (target_read_memory): Change LEN to ssize_t.
2548 2012-06-05 Pedro Alves <palves@redhat.com>
2552 * breakpoint.c (until_break_command): Only fetch the selected
2553 frame after decode_line_1.
2555 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2557 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2558 event breakpoint at _start, __start or main if a program
2559 interpreter is not found.
2561 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2563 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2565 * windows-tdep.c: #include "objfiles.h".
2566 (windows_iterate_over_objfiles_in_search_order): New function.
2567 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2568 iterate_over_objfiles_in_search_order gdbarch method to
2569 windows_iterate_over_objfiles_in_search_order.
2570 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2572 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2574 * gdbarch.sh: Add generation of
2575 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2576 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2577 (iterate_over_objfiles_in_search_order): New gdbarch method.
2578 * gdbarch.h, gdbarch.c: Regenerate.
2579 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2581 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2583 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2584 out of lookup_symbol_aux_symtabs.
2585 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2586 call to lookup_symbol_aux_objfile.
2587 (struct global_sym_lookup_data): New type.
2588 (lookup_symbol_global_iterator_cb): New function.
2589 (lookup_symbol_global): Search for symbol using
2590 gdbarch_iterate_over_objfiles_in_search_order and
2591 lookup_symbol_global_iterator_cb.
2592 * findvar.c (struct minsym_lookup_data): New type.
2593 (minsym_lookup_iterator_cb): New function.
2594 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2595 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2596 and minsym_lookup_iterator_cb.
2598 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2600 Revert the following patch:
2601 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2602 try locating the symbol in the symbol's own objfile first, before
2603 extending the search to all objfiles.
2604 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2605 out of lookup_symbol_aux_symtabs.
2606 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2607 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2608 Do not search EXCLUDE_OBJFILE.
2609 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2610 (lookup_symbol_global): Search for matches in the block's objfile
2611 first, before searching all other objfiles.
2613 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2615 * breakpoint.c (find_condition_and_thread): Stop parsing
2616 as soon as the first invalid keyword is found.
2618 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2620 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2622 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2624 * config/djgpp/djcheck.sh: Add copyright header.
2626 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2628 * copyright.py (update_files, main): Fix path to update-copyright
2631 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2633 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2634 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2635 for which a reminder to update by hand is printed.
2637 2012-06-04 Doug Evans <dje@google.com>
2639 * buildsym.c (make_blockvector): Add comment.
2641 2012-06-04 Pedro Alves <palves@redhat.com>
2643 * arch-utils.c (default_gdb_signal_from_target): Delete.
2644 * arch-utils.h (default_gdb_signal_from_target): Delete.
2645 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2646 gdbarch_gdb_signal_from_target_p.
2647 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2649 * gdbarch.h: Regenerate.
2650 * gdbarch.c: Regenerate.
2652 2012-06-04 Pedro Alves <palves@redhat.com>
2654 * gdbarch.sh (gdb_signal_from_target): Mention that the
2655 implementation of the method must be host independent.
2656 * gdbarch.h: Regenerate.
2658 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2662 (target_read_memory_bfd): New function.
2663 (symbol_file_add_from_memory): Use it.
2665 2012-06-03 Doug Evans <dje@google.com>
2667 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2669 (basic_lookup_transparent_type): Ditto.
2671 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2672 (ALL_PRIMARY_SYMTABS): Use it.
2673 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2674 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2675 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2676 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2677 (basic_lookup_transparent_type): Ditto.
2679 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2681 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2682 it to optimize resolution of demangled name.
2684 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2686 * configure.ac (development): Define new variable.
2687 Call AC_CHECK_LIB for mcheck if $development.
2688 (ERROR_ON_WARNING): Enable it by default only if $development.
2689 * config.in: Regenerate.
2690 * configure: Regenerate.
2692 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2694 * target.c (target_read_memory): Make LEN argument as size_t.
2695 * target.h (target_read_memory): Likewise.
2697 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2699 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2701 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2703 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2704 BookE interface for PowerPC server processors if not available
2705 in the Linux Kernel.
2707 2012-05-31 Keith Seitz <keiths@redhat.com>
2709 * linespec.c (decode_objc): Add cleanup to free
2711 (find_linespec_symbols): Add cleanup to free CLASSES.
2712 * symfile.c (find_separate_debug_file_by_debuglink): Add
2713 cleanup to free DEBUGLINK.
2714 * ui-out.c (clear_header_list): No need to check if
2715 HEADER_NEXT.COLHDR is NULL.
2716 Free HEADER_NEXT.COL_NAME.
2718 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2720 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2723 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2725 * configure.host (gdb_host_cpu): Handle tilegx*.
2726 (gdb_host): Handle tilegx-*-linux*.
2727 * tilegx-linux-nat.c: New file.
2728 * config/tilegx/linux.mh: New file.
2730 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2732 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2733 tilegx-linux-tdep.o.
2734 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2735 tilegx-linux-tdep.c.
2736 * configure.tgt: Handle tilegx-*-linux*.
2737 * tilegx-tdep.h: New file.
2738 * tilegx-tdep.c: New file.
2739 * tilegx-linux-tdep.c: New file.
2740 * regformats/reg-tilegx.dat: New file.
2742 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2744 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2745 accounting of hw watchpoints on ppc.
2747 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2749 * source.c (openp): Expand tilde in path entries.
2751 2012-05-29 Doug Evans <dje@google.com>
2753 * buildsym.c (block_compar): Fix comment.
2754 (end_symtab): Fix and clarify some comments.
2756 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2757 cleanup_undefined_types.
2758 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2759 All callers updated.
2761 2012-05-29 Tom Tromey <tromey@redhat.com>
2763 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2765 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2766 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2768 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2771 2012-05-29 Tristan Gingold <gingold@adacore.com>
2773 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2774 (struct darwin_info): ... New struct.
2775 (solib_darwin_pspace_data): New variable.
2776 (darwin_pspace_data_cleanup): New function.
2777 (get_darwin_info): Likewise.
2778 (darwin_dyld_version_ok, darwin_load_image_infos)
2779 (darwin_solib_get_all_image_info_addr_at_init)
2780 (darwin_solib_read_all_image_info_addr): Add info argument.
2782 (darwin_current_sos): Use per pspace structure.
2783 (darwin_solib_create_inferior_hook): Likewise.
2784 (darwin_clear_solib): Likewise.
2785 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2787 2012-05-28 Pedro Alves <palves@redhat.com>
2789 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2790 block that uses them. Clear ecss before handling each event.
2792 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2794 * solib-svr4.c (svr4_current_sos): New comment on
2795 svr4_current_sos_via_xfer_libraries fall back.
2797 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2799 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2800 it as a fallback for TYPE_IS_OPAQUE.
2801 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2802 symbols for lookup_symbol.
2804 2012-05-24 John Steele Scott <toojays@toojays.net>
2806 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2807 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2808 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2809 (check_producer): ... this new function, which also checks for ICC
2810 and caches the result.
2811 (producer_is_icc): New function.
2812 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2815 2012-05-24 Pedro Alves <palves@redhat.com>
2819 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2820 (default_gdb_signal_to_target): ... this. Add comment.
2821 (default_gdb_signal_from_host): Rename to ...
2822 (default_gdb_signal_from_target): ... this. Add comment.
2823 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2824 (default_gdb_signal_to_target): ... this.
2825 (default_gdb_signal_from_host): Rename to ...
2826 (default_gdb_signal_from_target): ... this.
2827 * corelow.c (core_open): Adjust to naming change. Replace comment.
2828 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2829 (gdb_signal_from_target): ... this. Adjust to
2830 default_gdb_signal_from_host naming change. Extend comment.
2831 (gdb_signal_to_host): Rename to ...
2832 (gdb_signal_to_target): ... this. Adjust to
2833 default_gdb_signal_to_host naming change.
2834 * gdbarch.h, gdbarch.c: Renegerate.
2836 2012-05-24 Pedro Alves <palves@redhat.com>
2840 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2842 2012-05-24 Pedro Alves <palves@redhat.com>
2846 Replace target_signal with gdb_signal throughout.
2848 2012-05-24 Pedro Alves <palves@redhat.com>
2852 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2853 string, instead of reusing the va_list argument.
2855 2012-05-24 Tom Tromey <tromey@redhat.com>
2857 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2860 2012-05-23 Doug Evans <dje@google.com>
2862 * symtab.c (search_symbols): Formatting fixes.
2863 (print_symbol_info): Formatting fixes.
2865 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2866 int64_t change to leb128 API.
2867 (read_encoded_value, decode_frame_entry_1): Ditto.
2868 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2869 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2870 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2871 (execute_stack_op): Ditto.
2872 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2873 (safe_read_uleb128, safe_read_sleb128): Ditto.
2874 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2875 (dwarf2_compile_expr_to_ax): Ditto.
2876 (locexpr_describe_location_piece): Ditto.
2877 (disassemble_dwarf_expression): Ditto.
2878 (locexpr_describe_location_1): Ditto.
2880 2012-05-23 Stan Shebs <stan@codesourcery.com>
2881 Kwok Cheung Yeung <kcy@codesourcery.com>
2883 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2884 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2885 (mi-cmd-info.o): New rule.
2886 * osdata.h (info_osdata_command): New declaration.
2887 * osdata.c (info_osdata_command): Change to non-static.
2888 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2889 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2890 * mi/mi-cmd-info.c: New file.
2892 2012-05-23 Doug Evans <dje@google.com>
2894 * symtab.c (search_symbols): Pass NULL for file_matcher to
2895 expand_symtabs_matching if there are no files to match.
2897 * gdbtypes.c (lookup_typename): Simplify.
2899 2012-05-23 Pedro Alves <palves@redhat.com>
2901 * arch-utils.h (default_target_signal_to_host): Delete.
2902 * arch-utils.c (default_target_signal_to_host): Delete.
2903 * gdbarch.sh (target_signal_to_host): Remove.
2904 * gdbarch.h, gdbarch.c: Regenerate.
2906 2012-05-22 Doug Evans <dje@google.com>
2908 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2910 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2911 (execute_cfa_program): Update to match API of leb128 functions.
2912 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2914 (read_unsigned_leb128, read_signed_leb128): Delete.
2915 (read_initial_length): Change type of buf argument to
2917 (read_encoded_value): Update to match API of leb128 functions.
2918 (decode_frame_entry): Change result to "const gdb_byte *", and
2919 similarly for "start" parameter.
2920 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2921 (dwarf2_build_frame_info): Change local frame_ptr to
2923 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2924 read_uleb128, read_sleb128. All callers updated.
2925 (safe_skip_leb128): New function.
2926 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2927 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2928 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2929 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2930 read_uleb128, read_sleb128.
2931 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2932 (execute_stack_op): Update to match API of leb128 functions.
2933 * dwarf2expr.h: #include "leb128.h".
2934 (read_uleb128, read_sleb128): Delete.
2935 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2936 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2937 * dwarf2loc.c (debug_loc_kind): New enum.
2938 (decode_debug_loc_addresses): New function.
2939 (decode_debug_loc_dwo_addresses): New function.
2940 (dwarf2_find_location_expression): Rewrite.
2941 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2942 (locexpr_describe_location_piece): Ditto.
2943 (disassemble_dwarf_expression): Ditto.
2944 (locexpr_describe_location_1): Ditto.
2945 (loclist_describe_location): Rewrite.
2946 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2947 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2948 (dwarf2_section_buffer_overflow_complaint): Renamed from
2949 dwarf2_macros_too_long_complaint. All callers updated.
2950 (skip_leb128): Delete.
2951 (init_cu_die_reader): Initialize reader->buffer_end.
2952 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2953 (skip_form_bytes): New arg buffer_end. All callers updated.
2954 Replace call to skip_leb128 with gdb_skip_leb128.
2955 (skip_unknown_opcode): New arg mac_end. All callers updated.
2956 (fill_in_loclist_baton): Initialize baton->from_dwo.
2958 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2960 * mips-linux-nat.c (mips_linux_read_description): Use a more
2961 verbose error message.
2963 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2965 * NEWS: Add MIPS/Linux DSP support.
2966 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2967 (SIGCONTEXT_DSPCTL): New macro.
2968 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2969 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2970 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2971 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2972 (N64_SIGCONTEXT_HI3): Likewise.
2973 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2974 (N64_SIGCONTEXT_LO3): Likewise.
2975 (N64_SIGCONTEXT_DSPCTL): Likewise.
2976 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2977 (mips_linux_o32_sigframe_init): Handle DSP registers.
2978 (mips_linux_n32n64_sigframe_init): Likewise.
2980 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2982 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2985 2012-05-22 Pedro Alves <palves@redhat.com>
2987 * target.h (store_waitstatus): Move declaration ...
2988 * inf-child.h (store_waitstatus): ... here.
2989 * target.c: Move inclusion of gdb_wait.h, and ...
2990 (store_waitstatus): ... this ...
2991 * inf-child.c: ... here.
2992 * linux-nat.c: Include inf-child.h.
2993 * rs6000-nat.c: Include inf-child.h.
2994 * spu-linux-nat.c: Include inf-child.h.
2996 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2998 * tracepoint.c (start_tracing): Add missing i18n markup.
2999 (stop_tracing, set_trace_user): Ditto.
3000 (set_trace_notes, set_trace_stop_notes): Ditto.
3002 2012-05-21 Tom Tromey <tromey@redhat.com>
3005 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3007 * value.h (value_cast_pointers): Update.
3008 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3009 (value_cast): Update.
3010 (update_search_result): New function.
3011 (do_search_struct_field): New, from search_struct_field. Check
3012 for ambiguous results.
3013 (search_struct_field): Rewrite.
3014 * infcall.c (value_arg_coerce): Update.
3015 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3016 value_cast_pointers.
3017 * ada-lang.c (ada_convert_actual): Update.
3019 2012-05-21 Tom Tromey <tromey@redhat.com>
3021 * macroexp.c (macro_stringify): Terminate the string.
3023 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3027 * auto-load.c (auto_load_expand_dir_vars): New function.
3028 (auto_load_safe_path_vec_update): Use it, remove the
3029 substitute_path_component call thanks to it.
3030 (auto_load_objfile_script): Remove the debug_file_directory processing.
3031 Use auto_load_expand_dir_vars, remove the substitute_path_component
3033 * configure: Regenerate.
3034 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3035 path. Escape $ also for $debugdir.
3036 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3037 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3039 2012-05-20 Doug Evans <dje@google.com>
3041 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3042 before use. Check for symtab->includes == NULL before scanning it.
3044 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3046 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3048 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3050 * NEWS: Add microMIPS support and "set mips compression",
3051 "show mips compression" commands.
3052 * mips-tdep.h (mips_isa): New enum.
3053 (gdbarch_tdep): Add mips_isa.
3054 (mips_pc_is_mips16): Update prototype.
3055 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3056 * mips-tdep.c (mips_compression_mips16): New variable.
3057 (mips_compression_micromips): Likewise.
3058 (mips_compression_strings): Likewise.
3059 (mips_compression_string): Likewise.
3060 (is_mips16_isa, is_micromips_isa): New functions.
3061 (is_mips16_addr): Rename to...
3062 (is_compact_addr): ... this.
3063 (unmake_mips16_addr): Likewise to...
3064 (unmake_compact_addr): ... this.
3065 (make_mips16_addr): Likewise to...
3066 (make_compact_addr): ... this.
3067 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3069 (mips_elf_make_msymbol_special): Handle microMIPS code.
3070 (msymbol_is_special): Rename to...
3071 (msymbol_is_mips16): ... this.
3072 (mips_make_symbol_special, mips_pc_is_mips16): Update
3074 (msymbol_is_mips, msymbol_is_micromips): New functions.
3075 (mips16_to_32_reg): Rename to...
3076 (mips_reg3_to_reg): ... this.
3077 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3078 (mips_pc_isa): Likewise.
3079 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3081 (mips_fetch_instruction): Pass return status instead of printing
3082 an error message if requested. Handle microMIPS code. Bail out
3084 (micromips_op): New macro.
3085 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3086 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3087 (b6s4_op, b7s3_reg): Likewise.
3088 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3089 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3090 (mips_insn_size): New function.
3091 (mips32_next_pc): Update mips_fetch_instruction call.
3092 (micromips_relative_offset7): New function.
3093 (micromips_relative_offset10): Likewise.
3094 (micromips_relative_offset16): Likewise.
3095 (micromips_pc_insn_size): Likewise.
3096 (micromips_bc1_pc): Likewise.
3097 (micromips_next_pc): Likewise.
3098 (unpack_mips16): Update mips_fetch_instruction call.
3099 (extended_mips16_next_pc): Update according to change to
3101 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3103 (mips16_scan_prologue): Update mips_fetch_instruction call.
3104 Update according to change to mips16_to_32_reg.
3105 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3106 (mips_insn16_frame_base_sniffer): Likewise.
3107 (micromips_decode_imm9): New function.
3108 (micromips_scan_prologue): Likewise.
3109 (mips_micro_frame_cache): Likewise.
3110 (mips_micro_frame_this_id): Likewise.
3111 (mips_micro_frame_prev_register): Likewise.
3112 (mips_micro_frame_sniffer): Likewise.
3113 (mips_micro_frame_unwind): New variable.
3114 (mips_micro_frame_base_address): New function.
3115 (mips_micro_frame_base): New variable.
3116 (mips_micro_frame_base_sniffer): New function.
3117 (mips32_scan_prologue): Update mips_fetch_instruction call.
3118 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3119 rather than for MIPS16.
3120 (mips_insn32_frame_base_sniffer): Likewise.
3121 (mips_addr_bits_remove): Handle microMIPS code.
3122 (deal_with_atomic_sequence): Rename to...
3123 (mips_deal_with_atomic_sequence): ... this. Update the type
3124 of the variable used to hold an instruction. Remove the ISA bit
3125 check. Update mips_fetch_instruction call.
3126 (micromips_deal_with_atomic_sequence): New function.
3127 (deal_with_atomic_sequence): Likewise.
3128 (mips_about_to_return): Handle microMIPS code. Update
3129 mips_fetch_instruction call.
3130 (heuristic_proc_start): Check for the standard MIPS ISA rather
3131 than for MIPS16. Update mips_pc_is_mips16 and
3132 mips_fetch_instruction calls. Handle microMIPS code.
3133 (mips_push_dummy_code): Handle microMIPS code.
3134 (mips_eabi_push_dummy_call): Likewise.
3135 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3136 (mips_o64_push_dummy_call): Handle microMIPS code.
3137 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3138 (is_delayed): Remove function.
3139 (mips_single_step_through_delay): Replace the call to is_delayed
3140 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3141 Handle microMIPS code.
3142 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3144 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3146 (micromips_in_function_epilogue_p): New function.
3147 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3149 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3151 (gdb_print_insn_mips): Likewise.
3152 (mips_breakpoint_from_pc): Likewise.
3153 (mips_remote_breakpoint_from_pc): New function.
3154 (mips32_instruction_has_delay_slot): Simplify making use of the
3155 updated mips_fetch_instruction interface.
3156 (micromips_instruction_has_delay_slot): New function.
3157 (mips16_instruction_has_delay_slot): Simplify making use of the
3158 updated mips_fetch_instruction interface.
3159 (mips_adjust_breakpoint_address): Check for the standard MIPS
3160 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
3161 calls. Handle microMIPS code.
3162 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3163 (mips_skip_trampoline_code): Handle microMIPS code.
3164 (global_mips_compression): New function.
3165 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3166 file flags. Register the microMIPS remote breakpoint handler
3167 and heuristic frame unwinder.
3168 (show_mips_compression): New function.
3169 (_initialize_mips_tdep): Add the "set mips compression" and
3170 "show mips compression" commands.
3172 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3177 * amd64-darwin-tdep.c:
3178 * arm-symbian-tdep.c:
3182 * bfin-linux-tdep.c:
3189 * dwarf2-frame-tailcall.c:
3218 * microblaze-tdep.c:
3219 * mips-linux-tdep.c:
3227 * python/py-finishbreakpoint.c:
3228 * python/py-inferior.c:
3229 * python/py-infthread.c:
3233 * remote-m32r-sdi.c:
3237 * rs6000-aix-tdep.c:
3263 * amd64-darwin-tdep.c:
3264 * arm-symbian-tdep.c:
3265 * arm-tdep.c: Delete unused variables.
3267 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3269 Rename $ddir to $datadir.
3270 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3271 * auto-load.c (auto_load_safe_path_vec_update)
3272 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3273 * configure: Regenerate.
3274 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3275 Likewise. Remove the 'use $ddir' help string.
3277 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3279 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3280 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3282 2012-05-18 Tom Tromey <tromey@redhat.com>
3285 * valprint.h (struct value_print_options) <symbol_print>: New
3287 * valprint.c (user_print_options): Add default for symbol_print.
3288 (show_symbol_print): New function.
3289 (generic_val_print): Respect symbol_print.
3290 (_initialize_valprint): Add "print symbol" setting.
3291 * f-valprint.c (f_val_print): Respect symbol_print.
3292 * c-valprint.c (c_val_print): Respect symbol_print.
3294 * printcmd.c (print_address_symbolic): Return int. Ignore some
3296 (print_address_demangle): Return int.
3297 * defs.h: (print_address_symbolic): Return int.
3298 * value.h (print_address_demangle): Return int.
3300 2012-05-18 Tom Tromey <tromey@redhat.com>
3302 * valprint.c (val_print_string): Don't print leading space.
3303 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3304 print space before string or vtbl.
3305 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3307 * jv-valprint.c (java_value_print): Print space before string.
3308 * go-valprint.c (print_go_string): Print space before string.
3309 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3310 space before string.
3311 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3312 space before string or vtbl.
3313 * auxv.c (fprint_target_auxv): Print space after address.
3315 2012-05-18 Tom Tromey <tromey@redhat.com>
3317 * printcmd.c (print_address_demangle): Remove special case for 0.
3319 2012-05-18 Tom Tromey <tromey@redhat.com>
3321 * printcmd.c (print_address_demangle): Add 'opts' argument.
3322 * p-valprint.c (pascal_val_print): Update.
3323 * jv-valprint.c (java_val_print): Update.
3325 * valprint.c (generic_val_print): Update.
3326 (print_function_pointer_address): Add 'options' argument. Remove
3327 'addressprint' argument. Update.
3328 * m2-valprint.c (print_unpacked_pointer): Update.
3329 * gnu-v3-abi.c (print_one_vtable): Update.
3330 (gnuv3_print_method_ptr): Update.
3331 * f-valprint.c (f_val_print): Update.
3332 * cp-valprint.c (cp_print_value_fields): Update.
3333 * valprint.h (print_function_pointer_address): Update.
3334 * c-valprint.c (c_val_print): Update.
3336 2012-05-18 Tom Tromey <tromey@redhat.com>
3338 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3339 directly corresponding to the found psymtab.
3340 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3341 (dw2_find_pc_sect_symtab): Use it.
3342 * block.h (blockvector_contains_pc): Declare.
3343 * block.c (find_block_in_blockvector): New function.
3344 (blockvector_for_pc_sect): Use it.
3345 (blockvector_contains_pc): New function.
3347 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3349 * mips-tdep.h (mips_write_pc): New prototype.
3350 * mips-tdep.c (mips_write_pc): Make external, add description.
3351 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3354 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3356 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3358 (mips_unwind_pc, mips_write_pc): Likewise.
3359 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3362 2012-05-17 Joel Brobecker <brobecker@adacore.com>
3364 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3365 proc_warn, proc_error, proc_get_status, proc_flags,
3366 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3367 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3368 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3369 proc_stop_process, proc_wait_for_stop, proc_run_process,
3370 proc_set_traced_signals, proc_set_traced_faults,
3371 proc_set_traced_sysentry, proc_set_traced_sysexit,
3372 proc_set_held_signals, proc_get_held_signals,
3373 proc_get_traced_signals, proc_get_traced_faults,
3374 proc_get_traced_sysentry, proc_get_traced_sysexit,
3375 proc_clear_current_fault, proc_set_current_signal,
3376 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3377 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3378 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3379 proc_get_current_thread, proc_get_current_thread,
3380 proc_get_current_thread, proc_update_threads,
3381 proc_update_threads, proc_update_threads, proc_update_threads,
3382 proc_iterate_over_threads, procfs_find_new_threads,
3383 procfs_pid_to_str): Make static. Remove advance declaration.
3384 (proc_cursig): Make static. Conditionalized defintion on
3385 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3386 (proc_syscall, proc_set_kill_on_last_close,
3387 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3388 proc_get_pending_signals, proc_get_signal_actions,
3389 proc_trace_signal, proc_ignore_signal): Delete.
3391 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3393 * coffread.c (cs_section_address): Passing proper argument for
3394 `bfd_get_section_vma'.
3395 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3396 `bfd_get_section_flags'.
3397 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3398 `bfd_get_section_vma'.
3400 2012-05-16 Tom Tromey <tromey@redhat.com>
3403 * macrotab.h: (macro_define_special): Declare.
3404 (enum macro_special_kind): New.
3405 (struct macro_definition) <argc, replacement>: Update comments.
3406 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3407 (macro_define_object_internal): New function.
3408 (macro_define_object): Use it.
3409 (macro_define_special): New function.
3410 (fixup_definition): New function.
3411 (macro_lookup_definition, foreach_macro_in_scope)
3412 (foreach_macro): Use fixup_definition.
3413 * macroexp.h (macro_stringify): Declare.
3414 * macroexp.c (free_buffer_return_text): New function.
3415 (stringify): Constify "arg".
3416 (macro_stringify): New function.
3417 * dwarf2read.c (macro_start_file): Call macro_define_special.
3419 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
3420 Maciej W. Rozycki <macro@mips.com>
3422 * breakpoint.h (bp_location): Add related_address member.
3423 * inferior.h (get_return_value): Take a pointer to struct value
3424 instead of struct type for the function requested.
3425 * value.h (using_struct_return): Likewise.
3426 * gdbarch.sh (return_value): Take a pointer to struct value
3427 instead of struct type for the function requested.
3428 * breakpoint.c (set_breakpoint_location_function): Initialize
3429 related_address for bp_gnu_ifunc_resolver breakpoints.
3430 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3431 requested function's address to gdbarch_return_value.
3432 * eval.c (evaluate_subexp_standard): Pass the requested
3433 function's address to using_struct_return.
3434 * infcall.c (call_function_by_hand): Pass the requested
3435 function's address to using_struct_return and
3436 gdbarch_return_value.
3437 * infcmd.c (get_return_value): Take a pointer to struct value
3438 instead of struct type for the function requested.
3439 (print_return_value): Update accordingly.
3440 (finish_command_continuation): Likewise.
3441 * stack.c (return_command): Pass the requested function's
3442 address to using_struct_return and gdbarch_return_value.
3443 * value.c (using_struct_return): Take a pointer to struct value
3444 instead of struct type for the function requested. Pass the
3445 requested function's address to gdbarch_return_value.
3446 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3447 New function_value member, replacing function_type.
3448 (bpfinishpy_dealloc): Update accordingly.
3449 (bpfinishpy_pre_stop_hook): Likewise.
3450 (bpfinishpy_init): Likewise. Record the requested function's
3452 * mips-tdep.c (mips_fval_reg): New enum.
3453 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3454 words put in GP registers.
3455 (mips_o64_push_dummy_call): Update a comment.
3456 (mips_o32_return_value): Take a pointer to struct value instead
3457 of struct type for the function requested and use it to check if
3458 using the MIPS16 calling convention. Return the designated
3459 general purpose registers for floating-point values returned in
3461 (mips_o64_return_value): Likewise.
3462 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3463 (ppc_sysv_abi_broken_return_value): Likewise.
3464 (ppc64_sysv_abi_return_value): Likewise.
3465 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3466 value instead of struct type for the function requested.
3467 * amd64-tdep.c (amd64_return_value): Likewise.
3468 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3469 * arm-tdep.c (arm_return_value): Likewise.
3470 * avr-tdep.c (avr_return_value): Likewise.
3471 * bfin-tdep.c (bfin_return_value): Likewise.
3472 * cris-tdep.c (cris_return_value): Likewise.
3473 * frv-tdep.c (frv_return_value): Likewise.
3474 * h8300-tdep.c (h8300_return_value): Likewise.
3475 (h8300h_return_value): Likewise.
3476 * hppa-tdep.c (hppa32_return_value): Likewise.
3477 (hppa64_return_value): Likewise.
3478 * i386-tdep.c (i386_return_value): Likewise.
3479 * ia64-tdep.c (ia64_return_value): Likewise.
3480 * iq2000-tdep.c (iq2000_return_value): Likewise.
3481 * lm32-tdep.c (lm32_return_value): Likewise.
3482 * m32c-tdep.c (m32c_return_value): Likewise.
3483 * m32r-tdep.c (m32r_return_value): Likewise.
3484 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3485 * m68k-tdep.c (m68k_return_value): Likewise.
3486 (m68k_svr4_return_value): Likewise.
3487 * m88k-tdep.c (m88k_return_value): Likewise.
3488 * mep-tdep.c (mep_return_value): Likewise.
3489 * microblaze-tdep.c (microblaze_return_value): Likewise.
3490 * mn10300-tdep.c (mn10300_return_value): Likewise.
3491 * moxie-tdep.c (moxie_return_value): Likewise.
3492 * mt-tdep.c (mt_return_value): Likewise.
3493 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3494 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3495 (ppc_sysv_abi_broken_return_value): Likewise.
3496 (ppc64_sysv_abi_return_value): Likewise.
3497 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3498 * rl78-tdep.c (rl78_return_value): Likewise.
3499 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3500 * rx-tdep.c (rx_return_value): Likewise.
3501 * s390-tdep.c (s390_return_value): Likewise.
3502 * score-tdep.c (score_return_value): Likewise.
3503 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3504 (sh_return_value_fpu): Likewise.
3505 * sh64-tdep.c (sh64_return_value): Likewise.
3506 * sparc-tdep.c (sparc32_return_value): Likewise.
3507 * sparc64-tdep.c (sparc64_return_value): Likewise.
3508 * spu-tdep.c (spu_return_value): Likewise.
3509 * tic6x-tdep.c (tic6x_return_value): Likewise.
3510 * v850-tdep.c (v850_return_value): Likewise.
3511 * vax-tdep.c (vax_return_value): Likewise.
3512 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3513 * xtensa-tdep.c (xtensa_return_value): Likewise.
3514 * gdbarch.c: Regenerate.
3515 * gdbarch.h: Regenerate.
3517 2012-05-15 Tom Tromey <tromey@redhat.com>
3519 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3521 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3523 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3524 of command in two error message.
3526 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3528 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3530 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3532 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3534 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 * NEWS (show auto-load scripts-directory): Add forgotten command.
3538 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3540 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3543 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3545 * amd64-tdep.c: Include features/i386/x32.c and
3546 features/i386/x32-avx.c.
3547 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3548 initialize_tdesc_x32_avx.
3550 2012-05-14 Stan Shebs <stan@codesourcery.com>
3553 * breakpoint.h (enum bptype): New type bp_dprintf.
3554 (struct breakpoint): New field extra_string.
3555 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3556 (create_breakpoint): Add extra_string arg.
3557 * breakpoint.c (dprintf_breakpoint_ops): New.
3558 (is_breakpoint): Add bp_dprintf.
3559 (bpstat_what): Add dprintf case.
3560 (bptype_string): Ditto.
3561 (print_one_breakpoint_location): Ditto.
3562 (init_bp_location): Ditto.
3563 (bkpt_print_mention): Ditto.
3564 (dprintf_style_enums): New array.
3565 (dprintf_style): New global.
3566 (dprintf_function): New global.
3567 (dprintf_channel): New global.
3568 (update_dprintf_command_list): New function.
3569 (update_dprintf_commands): New function.
3570 (init_breakpoint_sal): Add extra_string argument, handle it.
3571 (create_breakpoint_sal): Add extra_string argument.
3572 (create_breakpoints_sal): Add extra_string argument, update callers.
3573 (find_condition_and_thread): Add extra argument.
3574 (create_breakpoint): Add extra_string argument, record it.
3575 (dprintf_command): New function.
3576 (break_command_1): Add arg to create_breakpoint call.
3577 (handle_gnu_v3_exceptions): Ditto.
3578 (trace_command): Ditto.
3579 (ftrace_command): Ditto.
3580 (strace_command): Ditto.
3581 (bkpt_print_mention): Add dprintf case.
3582 (create_breakpoint_sal_default): Add extra_string argument.
3583 (_initialize_breakpoint): Add new commands.
3584 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3585 * python/py-breakpoint.c (bppy_init): Ditto.
3586 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3588 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3590 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3592 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3594 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3597 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3599 Add a new function gdb.find_pc_line to the Python API.
3600 * NEWS (Python Scripting): Add entry about the new function.
3601 * python/python.c (gdbpy_find_pc_line): New function which
3602 implements gdb.find_pc_line.
3603 (GdbMethods): Add entry for the new function.
3605 2012-05-12 Pedro Alves <palves@redhat.com>
3607 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3608 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3610 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3612 * inferior.c: Include completer.h
3613 (initialize_inferiors): Set completer of add-inferior to
3616 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3618 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3619 gdbarch_ptr_bit for x32 core dump.
3621 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3623 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3624 and features/i386/x32-avx-linux.c.
3626 2012-05-11 Stan Shebs <stan@codesourcery.com>
3627 Kwok Cheung Yeung <kcy@codesourcery.com>
3629 * NEWS: Describe new info os commands.
3630 * common/linux-osdata.c (PID_T, TIME_T): Define.
3631 (MAX_PID_T_STRLEN): New.
3632 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3634 (command_from_pid): Add comment. Change to use PID_T.
3635 (commandline_from_pid): Change to use PID_T.
3636 (user_from_pid): Add comment.
3637 (get_process_owner): Add comment. Change to use PID_T and
3639 (get_number_of_cpu_cores): Add comment.
3640 (get_cores_used_by_process): Add comment. Change to use PID_T and
3642 (linux_xfer_osdata_processes): Change to use PID_T and
3644 (compare_processes): New function.
3645 (linux_xfer_osdata_processgroups): New function.
3646 (linux_xfer_osdata_threads): Change to use PID_T.
3647 (linux_xfer_osdata_fds): New function.
3648 (format_socket_state, print_sockets): New functions.
3649 (union socket_addr): New union.
3650 (linux_xfer_osdata_isockets): New function.
3651 (time_from_time_t, group_from_gid): New functions.
3652 (linux_xfer_osdata_shm): New function.
3653 (linux_xfer_osdata_sem): New function.
3654 (linux_xfer_osdata_msg): New function.
3655 (linux_xfer_osdata_modules): New function.
3656 (osdata_table): Add new entries.
3657 * common/buffer.c (buffer_xml_printf): Add support for long and
3658 long long format specifiers.
3660 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3662 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3663 (tdesc_x32_avx_linux): Likewise.
3665 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 Implement multi-component --with-auto-load-dir.
3668 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3670 (--with-auto-load-safe-path): Update the default value description.
3671 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3673 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3674 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3675 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3676 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3677 "set auto-load scripts-directory".
3678 * config.in: Regenerate.
3679 * configure: Regenerate.
3680 * configure.ac (--with-auto-load-dir): New configure option.
3681 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3683 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3685 Provide $ddir substitution for --with-auto-load-safe-path.
3686 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3688 * auto-load.c: Include observer.h.
3689 (auto_load_safe_path_vec_update): Call substitute_path_component for
3690 each component. New variable ddir_subst.
3691 (auto_load_gdb_datadir_changed): New function.
3692 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3693 AUTO_LOAD_SAFE_PATH. New comment.
3694 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3695 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3696 * config.in: Regenerate.
3697 * configure: Regenerate.
3698 * configure.ac (--auto-load-safe-path): Rename
3699 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3700 GDB_DATADIR/auto-load.
3701 * defs.h (substitute_path_component): New declaration.
3702 * top.c: Include observer.h.
3703 (set_gdb_datadir): New function.
3704 (init_main): Install it for "set data-directory".
3705 * utils.c (substitute_path_component): New function.
3707 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3710 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3711 DEBUG_FILE_DIRECTORY. Handle multiple components of
3712 DEBUG_FILE_DIRECTORY.
3714 2012-05-10 Tom Tromey <tromey@redhat.com>
3716 * dwarf2read.c (recursively_write_psymbols): New function.
3717 (write_psymtabs_to_index): Use it.
3719 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3721 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3722 (load_partial_comp_unit): Update.
3723 (queue_comp_unit): Add argument 'pretend_language'.
3724 (process_queue): Update.
3725 (psymtab_to_symtab_1): Skip dependencies that have a user.
3726 (load_partial_comp_unit_reader): Give meaning to the 'data'
3728 (load_full_comp_unit): Add 'pretend_language' argument.
3729 (process_full_comp_unit): Add 'pretend_language' argument. Set
3731 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3733 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3734 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3736 (prepare_one_comp_unit): Add 'pretend_language' argument.
3738 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3739 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3740 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3741 (dw2_do_instantiate_symtab): Check whether symtab was read in
3743 (dw2_instantiate_symtab): Add assertion. Call
3744 process_cu_includes.
3745 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3746 (partial_symtab_p): New typedef.
3747 (set_partial_user): New function.
3748 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3749 (scan_partial_symbols): Add imported CU to imported_symtabs.
3750 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3751 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3752 (get_symtab, recursively_compute_inclusions)
3753 (compute_symtab_includes, process_cu_includes)
3754 (process_imported_unit_die): New functions.
3755 (process_die) <DW_TAG_imported_unit>: New case.
3756 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3758 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3760 (struct partial_die_info) <locdesc>: Remove.
3762 (process_psymtab_comp_unit): Add 'read_partial' argument.
3764 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3765 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3766 (add_partial_symbol): Update.
3767 (process_die): Handle DW_TAG_partial_unit.
3768 (read_file_scope): Update comment.
3769 (load_partial_dies): Handle DW_TAG_imported_unit.
3770 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3771 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3773 2012-05-10 Tom Tromey <tromey@redhat.com>
3775 * cc-with-dwz.sh: New file.
3777 2012-05-10 Tom Tromey <tromey@redhat.com>
3779 * symtab.h (struct symtab) <includes, user>: New fields.
3780 * block.h (struct block_iterator) <d, idx, which>: New fields.
3781 * block.c (initialize_block_iterator, find_iterator_symtab)
3782 (block_iterator_step, block_iter_name_step)
3783 (block_iter_match_step): New functions.
3784 (block_iterator_first, block_iterator_next)
3785 (block_iter_name_first, block_iter_name_next)
3786 (block_iter_match_first, block_iter_match_next): Rewrite.
3787 (get_block_symtab): New function.
3789 2012-05-10 Tom Tromey <tromey@redhat.com>
3791 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3793 * jit.c (finalize_symtab): Use allocate_global_block,
3795 * buildsym.c (finish_block_internal): New function, from old
3797 (finish_block): Rewrite.
3798 (end_symtab): Use finish_block_internal, set_block_symtab.
3799 * block.h (struct global_block): New.
3800 (allocate_global_block, set_block_symtab): Declare.
3801 * block.c (allocate_global_block, set_block_symtab): New
3804 2012-05-10 Tom Tromey <tromey@redhat.com>
3806 * psymtab.c (partial_map_expand_apply): Add assertion.
3807 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3808 (psymtab_to_symtab): Find unshared psymtab.
3809 (dump_psymtab): Print including psymtabs.
3810 (recursively_search_psymtabs): New function.
3811 (expand_symtabs_matching_via_partial): Use it.
3812 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3814 (enum psymtab_search_status): New.
3816 2012-05-10 Tom Tromey <tromey@redhat.com>
3818 * tracepoint.c (scope_info): Update.
3819 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3820 (find_pc_sect_symtab, search_symbols)
3821 (default_make_symbol_completion_list_break_on)
3822 (make_file_symbol_completion_list): Update.
3823 * symmisc.c (dump_symtab_1): Update.
3824 * stack.c (print_frame_args, iterate_over_block_locals)
3825 (print_frame_labels, iterate_over_block_arg_vars): Update.
3826 * python/py-block.c (block_object) <dict>: Remove.
3828 <iter>: Change type.
3829 (blpy_iter): Update.
3830 (blpy_block_syms_iternext): Update.
3831 * psymtab.c (map_block): Use block iterators.
3832 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3833 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3834 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3835 * infrun.c (check_exception_resume): Update.
3836 * cp-support.c (make_symbol_overload_list_block): Update.
3837 * coffread.c (patch_opaque_types): Update.
3838 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3839 * block.h (struct block_iterator): New.
3840 (block_iterator_first, block_iterator_next, block_iter_name_first)
3841 (block_iter_name_next, block_iter_match_first)
3842 (block_iter_match_next): Declare.
3843 (ALL_BLOCK_SYMBOLS): Redefine.
3844 * block.c (block_iterator_first, block_iterator_next)
3845 (block_iter_name_first, block_iter_name_next)
3846 (block_iter_match_first, block_iter_match_next): New functions.
3847 * ada-lang.c (ada_add_block_symbols)
3848 (ada_make_symbol_completion_list): Use block iterator.
3850 2012-05-10 Tom Tromey <tromey@redhat.com>
3852 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3853 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3854 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3855 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3856 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3859 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3861 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3862 print-file-var-lib2.c, print-file-var-main.c and
3863 print-file-var.exp (located in gdb/testsuite/gdb.base).
3865 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3867 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3868 try locating the symbol in the symbol's own objfile first, before
3869 extending the search to all objfiles.
3870 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3871 out of lookup_symbol_aux_symtabs.
3872 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3873 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3874 Do not search EXCLUDE_OBJFILE.
3875 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3876 (lookup_symbol_global): Search for matches in the block's objfile
3877 first, before searching all other objfiles.
3879 2012-05-10 Tristan Gingold <gingold@adacore.com>
3881 * printcmd.c (set_command): Add pre/post inc/dec.
3883 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3885 * gdb.1: Document -ex option.
3887 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3889 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3890 * inferior.h (AT_SYMBOL): Delete.
3892 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3894 * mips-tdep.c (mips_push_dummy_code): New function.
3895 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3896 ON_STACK and install mips_push_dummy_code as our gdbarch
3897 push_dummy_code routine.
3899 2012-05-09 Pedro Alves <palves@redhat.com>
3901 * target.c (set_maintenance_target_async_permitted): Rename to ...
3902 (set_target_async_command): ... this.
3903 (show_maintenance_target_async_permitted): Rename to ...
3904 (show_target_async_command): ... this.
3905 (initialize_targets): Adjust.
3907 2012-05-08 Doug Evans <dje@google.com>
3909 * go-exp.y (classify_name): Add missing assignment of fields of
3912 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3914 Display the ">" prompt in interactive mode while reading canned
3915 commands, even when the current interpreter is MI.
3917 * interps.c (interp_set_temp): New function.
3919 * interps.h (interp_set_temp): Add prototype.
3921 * cli/cli-script.c (restore_interp): New cleanup function.
3922 (read_command_lines): Temporarily override the current interpreter
3923 with CLI and arrange for restoring the original one.
3925 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3927 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3929 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3931 * probe.c (parse_probes): Move conditional to check for
3932 debuginfo files from here...
3933 * stap-probe.c (stap_get_probes): ... to here.
3935 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3936 H.J. Lu <hongjiu.lu@intel.com>
3938 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3939 `movl %esp, %ebp' for the X32 ABI.
3941 2012-05-07 Tom Tromey <tromey@redhat.com>
3943 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3945 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3946 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3947 (dwarf_stack_op_name): Remove.
3948 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3949 (decode_locdesc): Use get_DW_OP_name.
3950 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3951 (dwarf2_compile_expr_to_ax): Likewise.
3952 (disassemble_dwarf_expression): Likewise.
3953 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3955 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3957 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3958 (sh_linux_sigtramp_cache): New function.
3959 (sh_linux_sigreturn_init): New function.
3960 (sh_linux_rt_sigreturn_init): New function.
3961 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3963 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3965 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3966 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3967 (sh_linux_init_abi): Add init calls to register new tramp_frame
3968 definitions under 32-bit SH, update comments.
3970 2012-05-07 Pedro Alves <palves@redhat.com>
3974 * amd64-linux-tdep.c: Include glibc-tdep.h.
3975 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3976 gdbarch_skip_solib_resolver callback.
3978 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3981 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3982 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3983 (add_auto_load_safe_path): Change the error message.
3984 (_initialize_auto_load): Change the "safe-path" help text.
3985 * configure: Regenerate
3986 * configure.ac (--without-auto-load-safe-path): Set
3987 WITH_AUTO_LOAD_SAFE_PATH to /.
3989 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3991 * stap-probe.h: Do not include unecessary `probe.h'.
3993 2012-05-05 Alan Modra <amodra@gmail.com>
3995 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3996 bfd_und_section_ptr.
3997 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3998 and bfd_com_section_ptr.
4000 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4002 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
4004 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4006 * windows-nat.h (segment_register_p_ftype): New typedef.
4007 (windows_set_segment_register_p): Add declaration.
4008 * windows-nat.c (segment_register_p): New static global.
4009 (windows_set_segment_register_p): New function.
4010 (do_windows_fetch_inferior_registers): Add special handling
4011 for segment registers.
4012 * amd64-windows-nat.c: #include "amd64-tdep.h".
4013 (amd64_windows_segment_register_p): New function.
4014 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4015 * i386-windows-nat.c: #include "i386-tdep.h".
4016 (i386_windows_segment_register_p): New function.
4017 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4019 2012-05-04 Tristan Gingold <gingold@adacore.com>
4021 * printcmd.c (set_command): Emit a warning if the expression is not
4024 2012-05-03 Joel Brobecker <brobecker@adacore.com>
4026 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4029 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4031 * stap-probe.c (stap_is_operator): Change declaration.
4032 (stap_get_opcode): Change return value.
4033 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4034 `stap_parse_argument_1'.
4036 2012-05-03 Pedro Alves <pedro@codesourcery.com>
4038 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4041 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4043 Add two new methods global_block and static_block to gdb.Symtab
4045 * NEWS (Python scripting): Add entry about the new methods.
4046 * python/py-symtab.c (stpy_global_block): New function which
4047 implements the gdb.Symtab.global_block() method.
4048 (stpy_static_block): New function which implements the
4049 gdb.Symtab.static_block() method.
4050 (symtab_object_methods): Add entries for the two new methods.
4052 2012-05-03 Doug Evans <dje@google.com>
4054 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4057 2012-05-03 Yao Qi <yao@codesourcery.com>
4059 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4061 (i386_process_record): Ditto.
4063 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4065 * infcall.c (unwind_on_signal_p): Make static.
4067 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4069 * sol-thread.c (solaris_pid_to_str): Make static.
4070 (_initialize_sol_thread): Add prototype.
4072 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4074 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4076 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4078 * MAINTAINERS: Remove myself.
4080 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4082 Fix --without-auto-load-safe-path for MS-Windows host platform.
4083 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4085 2012-05-02 Eli Zaretskii <eliz@gnu.org>
4087 * gdb_curses.h: Undefine KEY_EVENT before including curses
4088 headers. Move "#undef MOUSE_MOVED" before any curses header
4091 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4093 * features/i386/i386-mmx-linux.c: Regenerate.
4094 * features/rs6000/powerpc-32.c: Likewise.
4095 * features/rs6000/powerpc-32l.c: Likewise.
4096 * features/rs6000/powerpc-403.c: Likewise.
4097 * features/rs6000/powerpc-403gc.c: Likewise.
4098 * features/rs6000/powerpc-405.c: Likewise.
4099 * features/rs6000/powerpc-505.c: Likewise.
4100 * features/rs6000/powerpc-601.c: Likewise.
4101 * features/rs6000/powerpc-602.c: Likewise.
4102 * features/rs6000/powerpc-603.c: Likewise.
4103 * features/rs6000/powerpc-604.c: Likewise.
4104 * features/rs6000/powerpc-64.c: Likewise.
4105 * features/rs6000/powerpc-64l.c: Likewise.
4106 * features/rs6000/powerpc-750.c: Likewise.
4107 * features/rs6000/powerpc-860.c: Likewise.
4108 * features/rs6000/powerpc-e500.c: Likewise.
4109 * features/rs6000/powerpc-e500l.c: Likewise.
4110 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4111 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4112 * features/rs6000/rs6000.c: Likewise.
4114 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4116 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4118 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4119 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4120 (stap_parse_argument) <e>: Likewise.
4121 (handle_stap_probe) <byte_order>: Likewise.
4123 2012-04-30 Doug Evans <dje@google.com>
4125 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4126 init_and_read_dies_worker. All callers updated.
4127 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4128 replaced with init_cutu_and_read_dies.
4129 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4130 (find_partial_die): Remove FIXME. Don't free current CU.
4132 2012-04-30 Sterling Augustine <saugustine@google.com>
4134 * contrib: New directory.
4135 * contrib/test_pubnames_and_indexes.py: New file.
4137 2012-04-30 Doug Evans <dje@google.com>
4139 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4140 All callers updated.
4141 (init_cu_die_reader): Verify the section is non-empty.
4142 (dwarf_decode_line_header): Don't dereference section->asection
4143 until we know the section is present.
4145 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4147 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4150 2012-04-29 Yao Qi <yao@codesourcery.com>
4152 * gdb-code-style.el: New hook gdb-markup-hook
4153 and gdb-comment-hook.
4155 2012-04-28 Doug Evans <dje@google.com>
4157 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4158 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4160 * symfile.h (dwarf2_debug_sections): New member addr.
4161 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4162 (ctx_no_get_addr_index): New function.
4163 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4164 (ctx_no_get_addr_index): Declare.
4165 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4166 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4167 (dwarf_expr_ctx_funcs): Update.
4168 (needs_get_addr_index): New function.
4169 (needs_frame_ctx_funcs): Update.
4170 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4171 * dwarf2read.c: #include "gdbcore.h".
4172 (dwarf2_per_objfile): New members addr, dwo_files.
4173 (dwarf2_elf_names): Add entry for addr.
4174 (struct dwo_section_names): New type.
4175 (dwo_section_names): New static global.
4176 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4177 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4178 old debug_types_section member updated to use this.
4179 Rename member debug_types_section to info_or_types_section,
4181 (signatured_type): Rename member type_offset to type_offset_in_tu,
4182 all uses updated. New member type_offset_in_section.
4183 (struct dwo_sections): New type.
4184 (struct dwo_unit): New type.
4185 (struct dwo_file): New type.
4186 (die_reader_specs): New member dwo_file.
4187 (dwarf2_locate_sections): Watch for .debug_addr.
4188 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4189 (dwarf2_read_section): Get bfd of section from bfd's asection,
4191 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4192 (create_signatured_type_table_from_index): Initialize
4193 sig_type->info_or_types_section.
4194 (dw2_get_file_names): Statement lists for type units with DWO files
4195 live in the DWO file.
4196 (create_debug_types_hash_table): New function.
4197 (create_all_type_units): Rewrite.
4198 (init_cu_die_reader): New arg dwo_file, all callers updated.
4199 (init_and_read_dies_worker): Get section from
4200 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4201 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4202 continue reading the CU/TU from there.
4203 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4204 updated. Get section from this_cu->info_or_types_section.
4205 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4206 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4207 DW_FORM_GNU_str_index.
4208 (hash_dwo_file, eq_dwo_file): New functions.
4209 (allocate_dwo_file_hash_table): New function.
4210 (hash_dwo_unit, eq_dwo_unit): New functions.
4211 (allocate_dwo_unit_table): New function.
4212 (dwarf2_locate_dwo_sections): New function.
4213 (struct create_dwo_info_table_data): New type.
4214 (create_debug_info_hash_table_reader): New function.
4215 (create_debug_info_hash_table): New function.
4216 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4217 (lookup_dwo_file): New function.
4218 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4219 (free_dwo_file, free_dwo_file_cleanup): New functions.
4220 (free_dwo_file_from_slot, free_dwo_files): New functions.
4221 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4222 (dwarf2_record_block_ranges): Ditto.
4223 (read_partial_die): Ditto.
4224 (process_enumeration_scope): Update to use type_offset_in_section.
4225 (read_full_die_1): New function.
4226 (read_full_die): Rewrite.
4227 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4228 DW_FORM_GNU_str_index.
4229 (read_addr_index_1, read_addr_index): New functions.
4230 (read_addr_index_from_leb128): New function.
4231 (struct dwarf2_read_addr_index_data): New type.
4232 (dwarf2_read_addr_index_reader): New function.
4233 (dwarf2_read_addr_index): New function.
4234 (read_str_index): New function.
4235 (leb128_size): New function.
4236 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4237 If processing a type unit from a DWO file, get the line section
4239 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4240 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4241 DW_FORM_GNU_str_index.
4242 (lookup_die_type): Check whether section offset of type's die is
4243 known before looking it up. Remove assert. Condition can
4244 legimately happen for inter-cu type references.
4245 (dwarf_attr_name): Handle Fission attributes.
4246 (dwarf_form_name): Handle Fission forms.
4247 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4248 DW_FORM_GNU_str_index.
4249 (follow_die_sig): Update to use type_offset_in_section.
4250 (decode_locdesc): New case DW_OP_GNU_addr_index.
4251 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4252 DW_FORM_GNU_str_index.
4253 (cu_debug_loc_section): New function.
4254 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4255 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4256 Free DWO files if present.
4257 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4259 Refactor DIE reading.
4260 * dwarf2read.c (dwarf2_per_objfile): Replace members
4261 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4262 (die_reader_specs): New member "die_section". Temporarily make
4263 member "buffer" non-const, pending constifying all info_ptr uses.
4264 (die_reader_func_ftype): New typedef.
4265 (dw2_get_file_names_reader): New function.
4266 (dw2_get_file_names): Rewrite.
4267 (read_and_check_type_unit_head): Rename arg type_offset to
4269 (create_all_type_units): Improve debugging message.
4270 Improve dummy type unit check.
4271 (init_cu_die_reader): New arg "section". All callers updated.
4272 (init_and_read_dies_worker): New function.
4273 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4274 (init_cutu_and_read_dies_no_follow): New function.
4275 (init_cutu_and_read_dies_simple): New function.
4276 (process_psymtab_comp_unit_reader): New function.
4277 (process_psymtab_comp_unit): Delete args section,
4278 is_debug_types_section. Rewrite. All callers updated.
4279 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4280 All callers updated. Rewrite.
4281 (load_partial_comp_unit_reader): New function.
4282 (load_partial_comp_unit): Rewrite.
4283 (skip_children): New arg reader. Delete args buffer, cu.
4284 All callers updated.
4285 (skip_one_die): New arg reader. Delete args buffer, cu.
4286 All callers updated.
4287 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4288 All callers updated.
4289 (load_full_comp_unit_reader): New function.
4290 (load_full_comp_unit): Rewrite.
4291 (read_comp_unit): Delete.
4292 (read_die_and_children_1): Delete, contents moved ...
4293 (read_die_and_children): ... here.
4294 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4295 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4296 All callers updated.
4297 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4298 All callers updated.
4299 (find_partial_die): Rewrite load_all_dies support.
4300 (read_attribute_value): New arg reader. Delete args abfd, cu.
4301 All callers updated.
4302 (read_attribute): New arg reader. Delete args abfd, cu.
4303 All callers updated.
4304 (load_full_type_unit): Add assert.
4305 (read_signatured_type_reader): New function.
4306 (read_signatured_type): Rewrite.
4307 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4308 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4309 All callers updated. Set per_cu->cu = NULL after freeing it.
4310 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4311 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4312 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4313 (set_die_type): Update.
4314 (get_die_type_at_offset): Update.
4315 (read_file_scope): Call prepare_one_comp_unit.
4316 (read_type_unit_scope): Ditto.
4317 (prepare_one_comp_unit): Set producer if present.
4319 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4321 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4322 gettext function on `error'.
4324 2012-04-27 Doug Evans <dje@google.com>
4326 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4329 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4330 Tom Tromey <tromey@redhat.com>
4332 * breakpoint.c (struct breakpoint_objfile_data)
4333 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4334 <exception_probes>: New fields.
4335 (free_breakpoint_probes): New function.
4336 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4337 `_Unwind_DebugHook'.
4338 (create_exception_master_breakpoint): Likewise.
4339 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4340 * infrun.c: Including necessary header files for handling SystemTap
4342 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4343 via SystemTap probes.
4344 (check_exception_resume): Remove `func' argument. Handle exception
4345 unwinding breakpoint set via a SystemTap probe.
4346 (insert_exception_resume_from_probe): New function.
4348 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4349 Tom Tromey <tromey@redhat.com>
4350 Jan Kratochvil <jan.kratochvil@redhat.com>
4352 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4353 (COMMON_OBS): Likewise.
4354 (HFILES_NO_SRCDIR): Add `probe'.
4355 * NEWS: Mention support for static and SystemTap probes.
4356 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4357 SystemTap probes' arguments parser.
4358 * arm-linux-tdep.c: Including headers needed to perform the parsing
4359 of SystemTap probes' arguments.
4360 (arm_stap_is_single_operand): New function.
4361 (arm_stap_parse_special_token): Likewise.
4362 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4363 probes' arguments parser.
4364 * ax-gdb.c (require_rvalue): Removing static declaration.
4365 (gen_expr): Likewise.
4366 * ax-gdb.h (gen_expr): Declaring function.
4367 (require_rvalue): Likewise.
4368 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4369 (bkpt_probe_breakpoint_ops): New variable.
4370 (momentary_breakpoint_from_master): Set the `probe' value.
4371 (add_location_to_breakpoint): Likewise.
4372 (break_command_1): Using proper breakpoint_ops according to the
4373 argument passed by the user in the command line.
4374 (bkpt_probe_insert_location): New function.
4375 (bkpt_probe_remove_location): Likewise.
4376 (bkpt_probe_create_sals_from_address): Likewise.
4377 (bkpt_probe_decode_linespec): Likewise.
4378 (tracepoint_probe_create_sals_from_address): Likewise.
4379 (tracepoint_probe_decode_linespec): Likewise.
4380 (tracepoint_probe_breakpoint_ops): New variable.
4381 (trace_command): Using proper breakpoint_ops according to the
4382 argument passed by the user in the command line.
4383 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4384 static probes on breakpoints and tracepoints.
4385 * breakpoint.h (struct bp_location) <probe>: New field.
4386 * cli-utils.c (skip_spaces_const): New function.
4387 (extract_arg): Likewise.
4388 * cli-utils.h (skip_spaces_const): Likewise.
4389 (extract_arg): Likewise.
4390 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4391 * configure.ac: Append `stap-probe.o' to be generated when ELF
4393 * configure: Regenerate.
4394 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4395 * elfread.c: Include `probe.h' and `arch-utils.h'.
4396 (probe_key): New variable.
4397 (elf_get_probes): New function.
4398 (elf_get_probe_argument_count): Likewise.
4399 (elf_evaluate_probe_argument): Likewise.
4400 (elf_compile_to_ax): Likewise.
4401 (elf_symfile_relocate_probe): Likewise.
4402 (stap_probe_key_free): Likewise.
4403 (elf_probe_fns): New variable.
4404 (elf_sym_fns): Add `sym_probe_fns' value.
4405 (elf_sym_fns_lazy_psyms): Likewise.
4406 (elf_sym_fns_gdb_index): Likewise.
4407 (_initialize_elfread): Initialize objfile cache for static
4409 * gdb_vecs.h (struct probe): New forward declaration.
4410 (probe_p): New VEC declaration.
4411 * gdbarch.c: Regenerate.
4412 * gdbarch.h: Regenerate.
4413 * gdbarch.sh (stap_integer_prefix): New variable.
4414 (stap_integer_suffix): Likewise.
4415 (stap_register_prefix): Likewise.
4416 (stap_register_suffix): Likewise.
4417 (stap_register_indirection_prefix): Likewise.
4418 (stap_register_indirection_suffix): Likewise.
4419 (stap_gdb_register_prefix): Likewise.
4420 (stap_gdb_register_suffix): Likewise.
4421 (stap_is_single_operand): New function.
4422 (stap_parse_special_token): Likewise.
4423 (struct stap_parse_info): Forward declaration.
4424 * i386-tdep.c: Including headers needed to perform the parsing
4425 of SystemTap probes' arguments.
4426 (i386_stap_is_single_operand): New function.
4427 (i386_stap_parse_special_token): Likewise.
4428 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4429 probes' arguments parser.
4430 * i386-tdep.h (i386_stap_is_single_operand): New function.
4431 (i386_stap_parse_special_token): Likewise.
4432 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4433 * mipsread.c (ecoff_sym_fns): Likewise.
4434 * objfiles.c (objfile_relocate1): Support relocation for static
4436 * parse.c (prefixify_expression): Remove static declaration.
4437 (initialize_expout): Likewise.
4438 (reallocate_expout): Likewise.
4439 * parser-defs.h (initialize_expout): Declare function.
4440 (reallocate_expout): Likewise.
4441 (prefixify_expression): Likewise.
4442 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4443 of SystemTap probes' arguments.
4444 (ppc_stap_is_single_operand): New function.
4445 (ppc_stap_parse_special_token): Likewise.
4446 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4447 probes' arguments parser.
4448 * probe.c: New file, for generic statically defined probe support.
4449 * probe.h: Likewise.
4450 * s390-tdep.c: Including headers needed to perform the parsing of
4451 SystemTap probes' arguments.
4452 (s390_stap_is_single_operand): New function.
4453 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4454 probes' arguments parser.
4455 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4456 * stap-probe.c: New file, for SystemTap probe support.
4457 * stap-probe.h: Likewise.
4458 * symfile.h: Include `gdb_vecs.h'.
4459 (struct sym_probe_fns): New struct.
4460 (struct sym_fns) <sym_probe_fns>: New field.
4461 * symtab.c (init_sal): Initialize `probe' field.
4462 * symtab.h (struct probe): Forward declaration.
4463 (struct symtab_and_line) <probe>: New field.
4464 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4466 (stop_tracing): Likewise.
4467 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4469 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4470 Tom Tromey <tromey@redhat.com>
4472 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4473 and to compile agent expressions.
4474 * infrun.c (siginfo_make_value): New argument `ignore'.
4475 (siginfo_funcs): New struct.
4476 (_initialize_infrun): New argument when calling
4477 `create_internalvar_type_lazy'.
4478 * thread.c (thread_id_make_value): New argument `ignore'.
4479 (thread_funcs): New struct.
4480 (_initialize_thread): New argument when calling
4481 `create_internalvar_type_lazy'.
4482 * tracepoint.c (sdata_make_value): New argument `ignore'.
4483 (sdata_funcs): New struct.
4484 (_initialize_tracepoint): New argument when calling
4485 `create_internalvar_type_lazy'.
4486 * value.c (make_value): New struct.
4487 (create_internalvar_type_lazy): New argument `data'.
4488 (compile_internalvar_to_ax): New function.
4489 (value_of_internalvar): Properly handling `make_value' case.
4490 (clear_internalvar): Likewise.
4491 (show_convenience): Adding `TRY_CATCH' block.
4492 * value.h (internalvar_make_value): Delete, replace by...
4493 (struct internalvar_funcs): ... this.
4494 (create_internalvar_type_lazy) <fun>: Delete argument.
4495 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4496 (compile_internalvar_to_ax): New function.
4497 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4498 (tlb_funcs): New struct.
4499 (_initialize_windows_tdep): New argument when calling
4500 `create_internalvar_type_lazy'.
4502 2012-04-27 Mark Wielaard <mjw@redhat.com>
4504 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4505 see whether it is an address or a constant offset from DW_AT_low_pc.
4506 (dwarf2_record_block_ranges): Likewise.
4507 (read_partial_die): Likewise.
4509 2012-04-26 Mark Wielaard <mjw@redhat.com>
4511 * MAINTAINERS (Write After Approval): Add myself to the list.
4513 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4515 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4516 (proc_prettyprint_signal): Likewise.
4517 (proc_prettyprint_faultset): Likewise.
4518 (proc_prettyprint_fault): Likewise.
4519 (proc_prettyprint_actionset): Likewise.
4520 (proc_prettyprint_flags): Move to new proc-flags.c section.
4521 (proc_prettyfprint_flags): New prototype.
4522 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4523 (proc_syscall, proc_cursig): Likewise.
4524 (proc_set_kill_on_last_close): Likewise.
4525 (proc_unset_kill_on_last_close): Likewise.
4526 (proc_set_watchpoint): Make static.
4527 (proc_delete_dead_threads): Likewise.
4528 (procfs_set_watchpoint): Likewise.
4529 (_initialize_procfs): Add prototype.
4530 * proc-events.c: Include proc-utils.h.
4531 (init_syscall_table): Make static.
4532 * proc-api.c (_initialize_proc_api): Add prototype.
4533 * proc-flags.c: Include proc-utils.h.
4535 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4537 * configure.ac: Add AC_ARG_PROGRAM.
4538 * configure: Regenerate.
4540 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4542 Fix DW_AT_lower_bound defaults for DWARF-4+.
4543 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4544 high. New variable low_default_is_valid. Implement DWARF-4+
4545 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4546 no default by the DWARF standard.
4548 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4549 Maciej W. Rozycki <macro@codesourcery.com>
4551 * infrun.c (handle_inferior_event): Move the check for return
4552 trampolines ahead of the check for function trampolines.
4553 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4554 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4555 (mips_str_mips16_ret_stub): Likewise.
4556 (mips_str_call_fp_stub): Likewise.
4557 (mips_str_call_stub): Likewise.
4558 (mips_str_fn_stub): Likewise.
4559 (mips_str_pic): Likewise.
4560 (mips_in_frame_stub): New function.
4561 (mips_unwind_pc): Return the return address rather than the PC
4562 if the PC of an intermediate frame is inside a call thunk.
4563 (mips_is_stub_suffix): New function.
4564 (mips_is_stub_mode): Likewise.
4565 (mips_get_mips16_fn_stub_pc): Likewise.
4566 (mips_skip_mips16_trampoline_code): Update to handle all the
4567 currently generated stub types. Don't recurse into __fn_stub
4568 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4569 Use cooked register accesses.
4570 (mips_in_return_stub): Reintroduce function.
4571 (mips_skip_trampoline_code): Traverse trampolines recursively.
4572 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4574 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4578 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4580 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4581 * features/arm-with-m-vfp-d16.xml: New file. Describes
4582 Cortex-M with VFPv4-sp-d16 FPU register layout.
4583 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4584 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4585 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4586 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4587 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4589 2012-04-25 Doug Evans <dje@google.com>
4591 * cli/cli-decode.c (print_doc_line): Use stream instead of
4594 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4596 * features/arm-with-iwmmxt.c: Regenerate.
4597 * features/arm-with-m-fpa-layout.c: Likewise.
4598 * features/arm-with-m.c: Likewise.
4599 * features/arm-with-neon.c: Likewise.
4600 * features/arm-with-vfpv2.c: Likewise.
4601 * features/arm-with-vfpv3.c: Likewise.
4602 * features/mips-dsp-linux.c: Likewise.
4603 * features/mips-linux.c: Likewise.
4604 * features/mips64-dsp-linux.c: Likewise.
4605 * features/mips64-linux.c: Likewise.
4606 * features/s390-linux32.c: Likewise.
4607 * features/s390-linux32v1.c: Likewise.
4608 * features/s390-linux32v2.c: Likewise.
4609 * features/s390-linux64.c: Likewise.
4610 * features/s390-linux64v1.c: Likewise.
4611 * features/s390-linux64v2.c: Likewise.
4612 * features/s390x-linux64.c: Likewise.
4613 * features/s390x-linux64v1.c: Likewise.
4614 * features/s390x-linux64v2.c: Likewise.
4615 * features/tic6x-c62x-linux.c: Likewise.
4616 * features/tic6x-c62x.c: Likewise.
4617 * features/tic6x-c64x-linux.c: Likewise.
4618 * features/tic6x-c64x.c: Likewise.
4619 * features/tic6x-c64xp-linux.c: Likewise.
4620 * features/tic6x-c64xp.c: Likewise.
4621 * target-descriptions.c: Only generate `field_type' and `type'
4622 variables when needed.
4624 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4626 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4628 2012-04-25 Doug Evans <dje@google.com>
4630 Initial pass at Go language support.
4632 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4634 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4635 (YYFILES): Add go-exp.c.
4636 (YYOBJ): Add go-exp.o.
4637 (local-maintainer-clean): Delete go-exp.c.
4638 * defs.h (enum language): Add language_go.
4639 * dwarf2read.c: #include "go-lang.h".
4640 (fixup_go_packaging): New function.
4641 (process_full_comp_unit): Call it when processing Go CUs.
4642 (dwarf2_physname): Add Go support.
4643 (read_file_scope): Handle missing language spec for GNU Go.
4644 (set_cu_language): Handle DW_LANG_Go.
4645 * go-exp.y: New file.
4646 * go-lang.h: New file.
4647 * go-lang.c: New file.
4648 * go-typeprint.c: New file.
4649 * go-valprint.c: New file.
4650 * symtab.c: #include "go-lang.h".
4651 (symbol_set_language): Handle language_go.
4652 (symbol_find_demangled_name, symbol_set_names): Ditto.
4653 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4655 2012-04-24 Jim Meyering <meyering@redhat.com>
4657 avoid a few strncpy-induced buffer overruns
4658 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4659 fname and psargs before trying to concatenate.
4660 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4661 "name" before applying strchr.
4663 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4665 * CONTRIBUTE: Use unified diff instead of context diff when
4668 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4670 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4671 code. Handle JR.HB correctly.
4673 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4676 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4677 with the other MIPS16 helpers.
4679 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4681 * observer.sh: Conditionally declare `args', thus cleaning up
4682 unused instances of this variable.
4684 2012-04-24 Yao Qi <yao@codesourcery.com>
4686 Revert this patch to allow breakpoint always-inserted
4688 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4689 * breakpoint.c: Include record.h.
4690 (breakpoints_always_inserted_mode): Return false when the record
4693 * breakpoint.c (iterate_over_bp_locations): New.
4694 * breakpoint.h: Declare.
4695 New typedef walk_bp_location_callback.
4696 * record.c (record_open): Call record_init_record_breakpoints.
4697 (record_sync_record_breakpoints): New.
4698 (record_init_record_breakpoints): New.
4699 * NEWS: Mention supporting breakpoint always-inserted mode in
4702 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4704 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4707 2012-04-24 Yao Qi <yao@codesourcery.com>
4709 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4710 (is_catchpoint): ... it.
4711 (print_one_breakpoint_location): Caller update.
4712 * breakpoint.h: Update declaration.
4714 2012-04-23 David S. Miller <davem@davemloft.net>
4716 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4718 2012-04-23 Tom Tromey <tromey@redhat.com>
4720 * buildsym.c (add_free_pendings): Remove.
4721 * buildsym.h (add_free_pendings): Remove.
4723 2012-04-23 Doug Evans <dje@google.com>
4725 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4726 attr.u.unsnd instead of attr.u.addr.
4727 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4728 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4730 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4731 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4733 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4735 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4737 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4738 (mips_o32_return_value): Likewise.
4739 (mips_o64_return_value): Likewise.
4741 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4743 * ada-lang.c (ada_evaluate_subexp): Add cases for
4744 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4745 their treatment in eval.c.
4747 2012-04-21 David S. Miller <davem@davemloft.net>
4749 * sparc-tdep.c (X_DISP10): Define.
4750 (sparc_analyze_control_transfer): Handle compare-and-branch.
4752 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4754 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4755 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4757 2012-04-20 Nigel Stephens <nigel@mips.com>
4758 Maciej W. Rozycki <macro@codesourcery.com>
4760 * mips-tdep.c (mips_float_register_p): New function.
4761 (mips_convert_register_float_case_p): Use mips_float_register_p.
4762 (mips_register_type): Likewise.
4763 (mips_print_register): Likewise.
4764 (print_gp_register_row): Likewise.
4765 (mips_print_registers_info): Likewise.
4767 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4769 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4772 2012-04-20 Andrew Pinski <apinski@cavium.com>
4774 * MAINTAINERS (Write After Approval): Add myself to the list.
4776 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4778 * MAINTAINERS: Update my e-mail address.
4780 2012-04-20 Pedro Alves <palves@redhat.com>
4782 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4784 * configure: Regenerate.
4786 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4788 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4790 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4792 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4794 Fix compilation compatibility with python-2.4
4795 * python/py-type.c (convert_field): Cast ADDRSTRING for
4796 PyObject_SetAttrString as non-const. New comment.
4798 2012-04-19 Tom Tromey <tromey@redhat.com>
4800 * top.c (quit_target): Use all_cleanups.
4801 * main.c (captured_command_loop): Use all_cleanups.
4802 * exceptions.c (throw_exception): Use all_cleanups.
4804 2012-04-19 Pedro Alves <palves@redhat.com>
4806 * Makefile.in (GNULIB_BUILDDIR): New.
4807 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4808 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4809 (CLEANDIRS). Remove gnulib/import.
4810 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4812 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4813 (gnulib/import/Makefile): Replace gnulib/import with
4814 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4815 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4816 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4817 acx_configure_dir.m4.
4818 * acinclude.m4: Include acx_configure_dir.m4.
4819 * acx_configure_dir.m4: New file.
4820 * aclocal.m4: Regenerate.
4821 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4822 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4823 (GNULIB): New variable.
4824 (GNULIB_STDINT_H): Adjust.
4825 (AC_OUTPUT): Don't output gnulib/Makefile.
4826 * gdb/defs.h: Include build-gnulib/config.h.
4827 * aclocal.m4: Regenerate.
4828 * config.in: Regenerate.
4829 * configure: Regenerate.
4831 * gnulib/Makefile.in: New file.
4832 * gnulib/configure.ac: New file.
4833 * gnulib/aclocal.m4: New file.
4834 * gnulib/config.in: New file.
4835 * gnulib/configure: New file.
4836 * gnulib/: Re-run gnulib-tool to adjust.
4838 2012-04-19 Doug Evans <dje@google.com>
4840 * cleanups.h (struct cleanup): Move to cleanups.c.
4841 (make_cleanup_dtor_ftype): New typedef.
4842 (make_cleanup_dtor): Use it.
4843 (ALL_CLEANUPS): Replace with ...
4844 (all_cleanups): ... this. Declare. All uses updated.
4845 * cleanups.c: #include "gdb_assert.h".
4846 (sentinel_cleanup): New static global.
4847 (SENTINEL_CLEANUP): Define.
4848 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4849 (make_my_cleanup2): Assert result is non-NULL.
4850 (all_cleanups): New function.
4851 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4854 2012-04-19 Pedro Alves <palves@redhat.com>
4856 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4857 Adjust paths to gnulib imported files.
4859 2012-04-19 Pedro Alves <palves@redhat.com>
4861 * gnulib/: Move whole directory ...
4862 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4863 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4864 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4865 (aclocal_m4_deps): Adjust.
4866 * aclocal.m4: Regenerate.
4867 * configure: Regenerate.
4868 * configure.ac: Adjust AC_OUTPUT output.
4870 2012-04-19 Yao Qi <yao@codesourcery.com>
4872 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4874 * vec.c: Move it ...
4875 * common/vec.c: ... here.
4876 * vec.h: Move it ...
4877 * common/vec.h: ... here.
4879 2012-04-19 Yao Qi <yao@codesourcery.com>
4881 * gdb-code-style.el: New.
4883 2012-04-18 Pedro Alves <palves@redhat.com>
4885 Update gnulib from latest git.
4886 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4888 * gnulib/Makefile.am: Update.
4889 * gnulib/dummy.c: Update.
4890 * gnulib/extra/arg-nonnull.h: Update.
4891 * gnulib/extra/c++defs.h: Update.
4892 * gnulib/extra/update-copyright: Update.
4893 * gnulib/extra/warn-on-use.h: Update.
4894 * gnulib/inttypes.in.h: Update.
4895 * gnulib/m4/00gnulib.m4: Update.
4896 * gnulib/m4/extensions.m4: Update.
4897 * gnulib/m4/gnulib-cache.m4: Update.
4898 * gnulib/m4/gnulib-common.m4: Update.
4899 * gnulib/m4/gnulib-comp.m4: Update.
4900 * gnulib/m4/gnulib-tool.m4: Update.
4901 * gnulib/m4/include_next.m4: Update.
4902 * gnulib/m4/inttypes-pri.m4: Update.
4903 * gnulib/m4/inttypes.m4: Update.
4904 * gnulib/m4/longlong.m4: Update.
4905 * gnulib/m4/memchr.m4: Update.
4906 * gnulib/m4/memmem.m4: Update.
4907 * gnulib/m4/mmap-anon.m4: Update.
4908 * gnulib/m4/multiarch.m4: Update.
4909 * gnulib/m4/onceonly.m4: Update.
4910 * gnulib/m4/stddef_h.m4: Update.
4911 * gnulib/m4/stdint.m4: Update.
4912 * gnulib/m4/string_h.m4: Update.
4913 * gnulib/m4/warn-on-use.m4: Update.
4914 * gnulib/m4/wchar_h.m4: Update.
4915 * gnulib/m4/wchar_t.m4: Update.
4916 * gnulib/m4/wint_t.m4: Update.
4917 * gnulib/memchr.c: Update.
4918 * gnulib/memmem.c: Update.
4919 * gnulib/stddef.in.h: Update.
4920 * gnulib/stdint.in.h: Update.
4921 * gnulib/str-two-way.h: Update.
4922 * gnulib/string.in.h: Update.
4923 * gnulib/wchar.in.h: Update.
4925 * gnulib/extra/arg-nonnull.h: Delete.
4926 * gnulib/extra/c++defs.h: Delete.
4927 * gnulib/extra/warn-on-use.h: Delete.
4928 * gnulib/m4/wchar_h.m4: Delete.
4929 * gnulib/m4/wint_t.m4: Delete.
4930 * gnulib/wchar.in.h: Delete.
4932 * gnulib/extra/snippets/arg-nonnull.h: New.
4933 * gnulib/extra/snippets/c++defs.h: New.
4934 * gnulib/extra/snippets/warn-on-use.h: New.
4936 * aclocal.m4: Regenerate.
4937 * config.in: Regenerate.
4938 * configure: Regenerate.
4939 * gnulib/Makefile.in: Regenerate.
4941 2012-04-18 Pedro Alves <palves@redhat.com>
4943 Reimport the update-copyright module from gnulib
4944 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4946 * configure: Regenerate.
4947 * gnulib/Makefile.am: Update.
4948 * gnulib/Makefile.in: Regenerate.
4949 * gnulib/extra/update-copyright: Update.
4950 * gnulib/m4/gnulib-cache.m4: Update.
4951 * gnulib/m4/gnulib-comp.m4: Update.
4953 2012-04-18 Tristan Gingold <gingold@adacore.com>
4955 * configure.ac (aix): Put -lpthread into libs.
4956 * configure: Regenerate.
4958 2012-04-18 Tom Tromey <tromey@redhat.com>
4960 * linespec.c (convert_linespec_to_sals): Don't use
4962 (compare_msymbols): Arguments are minsym_and_objfile, not
4963 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4965 2012-04-18 Pedro Alves <palves@redhat.com>
4967 Revert gnulib/ part of:
4968 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4969 Copyright year update in most files (performed by copyright.sh).
4971 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4973 Fix 64-bit constants on 32-bit hosts.
4974 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4975 from unsigned long to ULONGEST.
4976 (read_signed_leb128): Change declaration return type from long to
4978 (dwarf2_const_value_attr): Change declaration parameter value from long
4980 (dwarf2_compute_name): Change variable value from long to LONGEST.
4981 (read_unsigned_leb128): Change return type, variable result and some
4982 casts from unsigned long to ULONGEST.
4983 (read_signed_leb128): Change return type, variable result and some
4984 casts from long to LONGEST.
4985 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4986 value from long to LONGEST.
4987 (dwarf2_const_value): Change variable value from long to LONGEST.
4988 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4989 plongest and hex_string.
4990 * symtab.h (struct general_symbol_info): Change ivalue from long to
4991 LONGEST, remove the comment.
4992 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4993 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4995 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4998 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4999 * ada-lang.c (ada_discrete_type_high_bound)
5000 (ada_discrete_type_low_bound): Fix function comment. Use
5001 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5002 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5003 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5004 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5005 Use TYPE_FIELD_ENUMVAL.
5006 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5007 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5008 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5009 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5011 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5012 * dwarf2read.c (process_enumeration_scope): Likewise.
5013 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5015 (class StructMainTypePrettyPrinter): Support also
5016 FIELD_LOC_KIND_ENUMVAL.
5017 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5019 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5020 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5021 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5022 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5024 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5025 accommodate enumval.
5026 (struct call_site): Adjust loc_kind to accommodate enumval.
5027 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5028 (TYPE_FIELD_ENUMVAL): New macros.
5029 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5030 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5032 * p-typeprint.c (pascal_type_print_base): Likewise.
5033 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5035 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5036 * python/py-type.c (convert_field): New variable addrstring. Use
5037 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5038 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5039 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5040 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5042 * valprint.c (generic_val_print): Likewise.
5044 2012-04-17 Doug Evans <dje@google.com>
5046 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5048 * dwarf2read.c: Whitespace fixes.
5049 (lookup_signatured_type): Tweak comment.
5050 (get_die_type_at_offset): Fix comment.
5052 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5054 * xcoffread.c (xcoff_secnum_to_sections): New function.
5055 (secnum_to_section, secnum_to_bfd_section): Reimplement
5056 using xcoff_secnum_to_sections. Rename "secnum" parameter
5058 (RECORD_MINIMAL_SYMBOL): Delete.
5059 (record_minimal_symbol): New function.
5060 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5061 by call to record_minimal_symbol and set misc_func_recorded
5062 to 1. Set last_csect_sec to the XCOFF section index instead
5063 of GDB's section_offset index. Update calls to
5064 prim_record_minimal_symbol_and_info to pass the BFD section
5067 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5069 * xcoffread.c (read_xcoff_symtab): Delete variables
5070 last_csect_val and last_csect_sec and associated code.
5072 2012-04-17 Doug Evans <dje@google.com>
5074 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5075 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5076 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5077 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5079 * cleanups.h: New file.
5080 * cleanups.c: New file.
5081 * Makefile.in (SFILES): Add cleanups.c.
5082 (HFILES_NO_SRCDIR): Add cleanups.h.
5083 (COMMON_OBS): Add cleanups.o.
5084 * defs.h (struct cleanup): Moved to cleanups.h.
5085 (do_cleanups,do_final_cleanups): Ditto.
5086 (discard_cleanups,discard_final_cleanups): Ditto
5087 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5088 (save_cleanups,save_final_cleanups): Ditto.
5089 (restore_cleanups,restore_final_cleanups): Ditto.
5090 (null_cleanup): Ditto.
5091 (make_my_cleanup,make_my_cleanup2): Ditto.
5092 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5093 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5094 (do_cleanups,do_final_cleanups): Ditto.
5095 (discard_cleanups,discard_final_cleanups): Ditto
5096 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5097 (save_cleanups,save_final_cleanups): Ditto.
5098 (restore_cleanups,restore_final_cleanups): Ditto.
5099 (null_cleanup): Ditto.
5100 (make_my_cleanup,make_my_cleanup2): Ditto.
5101 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5103 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5105 (make_cleanup_dyn_string_delete): Ditto.
5106 (make_cleanup_ui_file_delete): Ditto.
5107 (make_cleanup_ui_out_redirect_pop): Ditto.
5108 (make_cleanup_free_section_addr_info): Ditto.
5109 (make_cleanup_restore_integer): Ditto.
5110 (make_cleanup_unpush_target): Ditto.
5111 (make_cleanup_value_free_to_mark): Ditto.
5112 (make_cleanup_value_free): Ditto.
5113 (make_cleanup_free_so): Ditto.
5115 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5117 New option "set debug auto-load".
5118 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5119 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5120 (auto_load_safe_path_vec_update)
5121 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5123 (file_is_auto_load_safe): New parameters debug_fmt and ....
5124 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5125 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5126 caller by explanatory string.
5127 (_initialize_auto_load): Register "set debug auto-load".
5128 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5130 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5131 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5132 by explanatory string.
5133 * main.c (captured_main): Likewise.
5134 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5135 (source_section_scripts): Likewise.
5137 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5139 New option "set auto-load safe-path".
5140 * NEWS: New commands "set auto-load safe-path"
5141 and "show auto-load safe-path".
5142 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5143 (auto_load_safe_path, auto_load_safe_path_vec)
5144 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5145 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5146 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5147 (source_gdb_script_for_objfile): New variable is_safe. Call
5148 file_is_auto_load_safe. Return if it is not.
5149 (struct loaded_script): New field loaded.
5150 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5151 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5152 output "Missing" to "No".
5153 (_initialize_auto_load): New variable cmd. Initialize
5154 auto_load_safe_path. Register "set auto-load safe-path",
5155 "show auto-load safe-path" and "add-auto-load-safe-path".
5156 * auto-load.h (maybe_add_script): Add parameter loaded.
5157 (file_is_auto_load_safe): New declaration.
5158 * config.in: Regenerate.
5159 * configure: Regenerate.
5160 * configure.ac: New parameters --with-auto-load-safe-path
5161 and --without-auto-load-safe-path.
5162 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5163 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5164 * main.c (captured_main): Check file_is_auto_load_safe for
5166 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5167 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5168 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5171 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5173 auto-load: Implementation.
5174 * NEWS: New descriptions for "info auto-load",
5175 "info auto-load gdb-scripts", "info auto-load python-scripts",
5176 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5177 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5178 and "show auto-load-scripts". New description for "set auto-load",
5179 "show auto-load", "set auto-load gdb-scripts",
5180 "show auto-load gdb-scripts", "set auto-load python-scripts",
5181 "show auto-load python-scripts", "set auto-load local-gdbinit",
5182 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5183 "show auto-load libthread-db".
5184 * auto-load.c: Remove include python/python-internal.h. Add includes
5185 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5187 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5188 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5189 (gdbpy_global_auto_load): Rename to ...
5190 (global_auto_load): ... here.
5191 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5192 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5193 (script_language_gdb, source_gdb_script_for_objfile): New.
5194 (struct loaded_script): New field language.
5195 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5197 (maybe_add_script): Add parameter language. Drop redundant
5198 entry.full_path initialization. Initialize entry.language and
5200 (auto_load_objfile_script): Change parameter suffix to language.
5201 Remove the call of maybe_add_script.
5202 Call language->source_script_for_objfile.
5203 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5205 (collect_matching_scripts): Adjust it for
5206 struct collect_matching_scripts_data.
5207 (auto_load_info_scripts_pattern_nl): New variable.
5208 (info_auto_load_scripts): Rename to ...
5209 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5210 for struct collect_matching_scripts_data.
5211 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5212 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5213 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5214 (auto_load_info_cmdlist_get): New.
5215 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5216 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5217 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5218 "info auto-load local-gdbinit".
5219 * auto-load.h (struct script_language): New.
5220 (gdbpy_global_auto_load): Rename to ...
5221 (global_auto_load): ... here.
5222 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5223 (auto_load_local_gdbinit_loaded): New declarations.
5224 (maybe_add_script): New parameter language.
5225 (auto_load_objfile_script): Change parameter suffix to language.
5226 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5227 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5228 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5230 * linux-thread-db.c: Include auto-load.h and ctype.h.
5231 (auto_load_thread_db, show_auto_load_thread_db): New.
5232 (struct thread_db_info): New field filename.
5233 (delete_thread_db_info): Call xfree for FILENAME.
5234 (try_thread_db_load): Initialize FILENAME.
5235 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5236 if !AUTO_LOAD_THREAD_DB.
5237 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5238 (_initialize_thread_db): Install auto_load_thread_db
5239 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5240 as "info auto-load libthread-db".
5241 * main.c (captured_main): Rename gdbpy_global_auto_load to
5242 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5243 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5244 (print_gdb_help): Extend the help for 'local init file'.
5245 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5246 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5247 (auto_load_scripts): Rename to ...
5248 (auto_load_python_scripts): ... here, update the comment.
5249 (gdbpy_load_auto_script_for_objfile): New declaration.
5250 (show_auto_load_python_scripts, script_language_python)
5251 (gdbpy_load_auto_script_for_objfile): New.
5252 (source_section_scripts): Refactor the code.
5253 (load_auto_scripts_for_objfile): Rename to ...
5254 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5255 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5256 (info_auto_load_python_scripts): New.
5257 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5258 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5259 Register "set auto-load-scripts" as its deprecated alias. Register
5260 "info auto-load python-scripts". Register "info auto-load-scripts" as
5261 its deprecated alias.
5262 (load_auto_scripts_for_objfile): Rename to ...
5263 (gdbpy_load_auto_scripts_for_objfile): ... here.
5264 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5265 (gdbpy_load_auto_scripts_for_objfile): ... here.
5267 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5269 auto-load: Move files.
5270 * Makefile.in (SFILES): Add auto-load.c.
5271 (HFILES_NO_SRCDIR): Add auto-load.h.
5272 (COMMON_OBS): Add auto-load.o.
5273 (distclean): Change .gdbinit for gdb-gdb.gdb.
5274 * auto-load.c: New file, with parts from python/py-auto-load.c.
5275 * auto-load.h: New file, with parts from python/python.h.
5276 * configure: Regenerate.
5277 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5278 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5279 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5280 * main.c: Include auto-load.h.
5281 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5282 command.h, observer.h and progspace.h to auto-load.c. Add include
5284 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5285 (struct loaded_script, auto_load_pspace_data)
5286 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5287 (hash_loaded_script_entry, eq_loaded_script_entry)
5288 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5289 (maybe_add_script): Move to auto-load.c.
5290 (source_section_scripts): Change maybe_add_script parameters passing,
5291 use script_not_found_warning_print.
5292 (clear_section_scripts, auto_load_objfile_script)
5293 (auto_load_new_objfile, loaded_script_ptr)
5294 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5295 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5296 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5297 auto_load_new_objfile and info_auto_load_scripts initizations to
5299 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5301 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5304 * charset.c (find_charset_names): Remove variables ix and elt.
5305 Use free_char_ptr_vec.
5306 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5307 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5308 debugdir_end. New variable debugdir_len.
5309 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5310 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5312 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5313 and elt. Use free_char_ptr_vec.
5314 * source.c (add_path): Remove variables argv, arg and argv_index.
5315 New variables dir_vec, back_to, ix and name.
5316 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5317 make_cleanup_freeargv. Remove variable separator. Simplify the code
5318 no longer expecting DIRNAME_SEPARATOR.
5319 (openp): Remove variable p, p1 and len. New variables dir_vec,
5320 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5321 no longer expecting DIRNAME_SEPARATOR.
5322 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5323 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5325 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5326 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5327 (dirnames_to_char_ptr_vec): New functions.
5329 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5332 * source.c (add_path): Remove always true conditional 'p == 0' and
5333 unindent its code block.
5335 2012-04-17 Pedro Alves <palves@redhat.com>
5337 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5338 (FIELD_BITPOS_LVAL): ... this.
5339 (FIELD_BITPOS): New.
5340 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5341 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5342 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5344 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5346 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5347 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5348 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5351 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5353 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5354 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5355 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5356 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5357 * jv-lang.c (java_link_class_type): Likewise, once.
5358 * stabsread.c (read_enum_type): Likewise.
5360 2012-04-16 Yao Qi <yao@codesourcery.com>
5362 * common/agent.c (agent_run_command): Add one more parameter `len'.
5364 * common/agent.h: Update declaration.
5365 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5367 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5369 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5372 * value.c (value_actual_type): New function.
5373 * value.h (value_actual_type): New declaration.
5374 * varobj.c (update_type_if_necessary): New function.
5375 (varobj_create): Call value_actual_type instead of
5377 (install_dynamic_child): distinct changed and type changed MI variable
5379 (update_dynamic_varobj_children): Updated for install_dynamic_child
5380 change. All callers updated.
5381 (varobj_update): Support for MI variable object type change if
5382 the value changed and RTTI is used to determine the type.
5383 (create_child_with_value): Call value_actual_type instead of
5385 (adjust_value_for_child_access): Extended with a new parameter which
5386 specify whether the given value should be casted to enclosing type.
5387 All callers updated.
5389 2012-04-14 Yao Qi <yao@codesourcery.com>
5391 Import gnulib module inttypes from git
5392 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5393 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
5394 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5395 gnulib/m4/inttypes-pri.m4
5396 * aclocal.m4, config.in, configure: Regenerated.
5397 * gnulib/Makefile.am: Update.
5398 * gnulib/Makefile.in: Update.
5399 * gnulib/m4/gnulib-cache.m4: Update.
5400 * gnulib/m4/gnulib-comp.m4: Update.
5401 * gnulib/inttypes.in.h: New.
5402 * gnulib/m4/inttypes-pri.m4: New.
5403 * gnulib/m4/inttypes.m4: New.
5405 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
5407 * infrun.c (resume): Update PC address to the real PC after
5408 preparing to do displaced stepping.
5410 2012-04-12 Doug Evans <dje@google.com>
5412 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5413 All callers updated.
5415 2012-04-12 Mark Kettenis <kettenis@gnu.org>
5417 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5419 2012-04-12 Doug Evans <dje@google.com>
5421 * dwarf2read.c (create_all_type_units): Renamed from
5422 create_debug_types_hash_table. All callers updated.
5424 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5425 local type_sig to sig_type, type_offset to type_offset_in_tu.
5426 (hash_signatured_type): Renamed from hash_type_signature,
5427 all callers updated.
5428 (eq_signatured_type): Renamed from eq_type_signature,
5429 all callers updated.
5430 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5431 (process_enumeration_scope): Ditto.
5432 (lookup_signatured_type_at_offset): Ditto.
5433 (load_full_type_unit, read_signatured_type): Ditto.
5435 2012-04-12 Yao Qi <yao@codesourcery.com>
5437 * remote.c (async_remote_interrupt): Correct function name in
5439 (async_remote_interrupt_twice): Ditto.
5441 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5443 * source.c (find_and_open_source): Consistently pass resulting
5444 full path through xfullpath.
5446 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5448 Provide more specific displaced-stepping memory error message.
5449 * infrun.c (displaced_step_prepare): New variable status. Call
5450 target_read_memory instead of read_memory, provide more specific
5453 2012-04-11 Tristan Gingold <gingold@adacore.com>
5456 * darwin-nat.c (darwin_execvp): Revert previous patch.
5458 2012-04-11 Tristan Gingold <gingold@adacore.com>
5461 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5464 2012-04-11 Tristan Gingold <gingold@adacore.com>
5466 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5469 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5471 New command 'explore' which helps explore values and types in
5473 * NEWS: Add an entry about the new 'explore' command.
5474 * data-directory/Makefile.in: Add gdb/command/explore.py
5475 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5476 command using the GDB Python API.
5478 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5480 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5481 extension in jump target calculation.
5483 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5485 * mips-tdep.c (mips32_next_pc): Handle JALX.
5487 2012-04-10 Yao Qi <yao@codesourcery.com>
5489 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5491 2012-04-10 Yao Qi <yao@codesourcery.com>
5493 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5494 and gnulib/m4/gnulib-tool.m4.
5496 2012-04-10 Doug Evans <dje@google.com>
5498 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5499 (load_partial_dies): Clarify comment.
5500 (find_partial_die): Support rereading type units.
5501 Clarify CU handling, if we know offset is in CU, don't search for the
5502 containing CU. Add comment regarding memory waste.
5504 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5506 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5507 i386/x32-avx and i386/x32-avx-linux.
5508 (i386/x32-expedite): New.
5509 (i386/x32-linux-expedite): Likewise.
5510 (i386/x32-avx-expedite): Likewise.
5511 (i386/x32-avx-linux-expedite): Likewise.
5512 ($(outdir)/i386/x32.dat): Likewise.
5513 ($(outdir)/i386/x32-linux.dat): Likewise.
5514 ($(outdir)/i386/x32-avx.dat): Likewise.
5515 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5517 * features/i386/x32-avx-linux.xml: New file.
5518 * features/i386/x32-avx.xml: Likewise.
5519 * features/i386/x32-core.xml: Likewise.
5520 * features/i386/x32-linux.xml: Likewise.
5521 * features/i386/x32.xml: Likewise.
5523 * features/i386/x32-avx-linux.c: New. Generated.
5524 * features/i386/x32-avx.c: Likewise.
5525 * features/i386/x32-linux.c: Likewise.
5526 * features/i386/x32.c: Likewise.
5527 * regformats/i386/x32-avx-linux.dat: Likewise.
5528 * regformats/i386/x32-avx.dat: Likewise.
5529 * regformats/i386/x32-linux.dat: Likewise.
5530 * regformats/i386/x32.dat: Likewise.
5532 2012-04-10 Tristan Gingold <gingold@adacore.com>
5534 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5535 code to kill the inferior.
5537 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5539 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5541 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5543 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5544 (yyvsp): New defines.
5545 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5547 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5549 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5551 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5553 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5556 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5558 * sparc64-tdep.c (sparc64_store_arguments)
5559 (sparc64_store_arguments): Fix coding style.
5561 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5563 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5564 complex floats, adjust some related comments and tighten a related
5566 (sparc64_extract_return_value): Handle complex floats.
5568 2012-04-07 Doug Evans <dje@google.com>
5570 * dwarf2read.c (load_partial_dies): Change condition to assert.
5572 2012-04-06 Doug Evans <dje@google.com>
5574 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5577 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5579 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5581 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5582 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5585 2012-04-05 Keith Seitz <keiths@redhat.com>
5587 * linespec.c (decode_compound): Remove.
5588 (enum offset_relative_sign): New enum.
5589 (struct line_offset): New struct.
5590 (struct linespec): New struct.
5591 (struct linespec_state): Move file_symtabs,
5592 user_filename, and user_function into struct linespec.
5593 Make result an anonymous struct holding vectors of
5594 symbolp and minsym_and_objfile_d.
5595 Add language member.
5596 (enum ls_token_type): New enum.
5597 (linespec_keywords): New array.
5598 (struct ls_token): New struct.
5599 (struct ls_parser): New struct.
5600 (linespec_lexer_lex_number): New function.
5601 (linespec_lexer_lex_keyword): New function.
5602 (is_ada_operator): New function.
5603 (skip_quote_char): New function.
5604 (copy_token_string): New function.
5605 (is_closing_quote_enclosed): New function.
5606 (find_parameter_list_end): New function.
5607 (linespec_lexer_lex_string): New function.
5608 (linespec_lexer_lex_one): New function.
5609 (linespec_lexer_consume_token): New function.
5610 (linespec_lexer_peek_token): New function.
5611 (cplusplus_error): Remove unused function.
5612 (find_methods): Update comment.
5613 (find_toplevel_char): Return const.
5614 (is_objc_method_format): Remove unused function.
5615 (find_toplevel_string): New function.
5616 (is_linespec_boundary): Remove.
5617 (symbol_not_found_error): New function.
5618 (find_method_overload_end): Remove function.
5619 (unexpected_linespec_error): New function.
5620 (keep_name_info): Remove.
5621 (linespec_parse_line_offset): New function.
5622 (linespec_parse_basic): New function.
5623 (canonicalize_linespec): New function.
5624 (decode_line_internal): Remove.
5625 (create_sals_line_offset): New function adapted from
5627 (convert_linespec_to_sals): New function.
5628 (parse_linespec): New function.
5629 (linespec_parser_new): New function.
5630 (linespec_state_destructor): Change parameter type to
5631 struct linespec_state *.
5632 Add language parameter.
5633 Remove freeing of moved members.
5634 (linespec_parser_delete): New function.
5635 (decode_line_full): Use parse_linespec and linespec_parser_new.
5636 (decode_line_1): Likewise.
5637 (decode_indirect): Rename to ...
5638 (linespec_expression_to_pc): ... this and rewrite
5639 to simply find CORE_ADDR, storing this result for later
5641 (locate_first_half): Remove.
5642 (deocde_objc): Add parameter LS.
5643 Initialize new struct collect_info members.
5644 Handle minimal symbols, too.
5645 (decode_compound): Delete.
5646 (lookup_prefix_sym): Rewrite.
5647 (compare_msymbols): New function.
5648 (find_method): Rewrite.
5649 Do not call cplusplus_error.
5650 (symtabs_from_filename): Rewrite.
5651 (collect_function_symbols): Delete.
5652 (find_function_symbols): Rewrite without ARGPTR-style
5654 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5655 (decode_dollar): Adapted and renamed to ...
5656 (linespec_parse_variable): ... this.
5657 (find_linespec_symbols): New function.
5658 (decode_label): Adapted and renamed to ...
5659 (find_label_symbols): ... this.
5660 (decode_digits_list_mode): Add and use LS argument.
5661 (decode_digits_ordinary): Likewise.
5662 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5663 If in list mode, allow any symbol class. Otherwise, only
5664 permit LOC_BLOCK symbols.
5665 (minsym_found): Update comments.
5666 (search_minsyms_for_name): Do not convert the matching symbol
5667 into a SAL. Simply push the symbol and objfile into the
5669 (decode_variable): Delete. Contents adapted into
5670 find_linespec_symbols.
5672 * cp-support.c (SKIP_SPACE): Remove.
5673 (operator_tokens): Remove unused global.
5674 (cp_validate_operator): Remove.
5675 * cp-support.h (cp_validate_operator): Remove declaration.
5677 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5679 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5680 for TYPE_VPTR_FIELDNO.
5681 * valprint.c (valprint_check_validity): Make it global, move the
5682 function comment ...
5683 * value.h (valprint_check_validity): ... to this new declaration.
5685 2012-04-02 Tristan Gingold <gingold@adacore.com>
5687 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5688 the STATE32 api for i386 state.
5689 (i386_darwin_store_inferior_registers): Likewise.
5691 2012-04-02 Tristan Gingold <gingold@adacore.com>
5693 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5695 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5698 2012-04-02 Tristan Gingold <gingold@adacore.com>
5701 * darwin-nat.c (darwin_execvp): Set binary preference.
5703 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5705 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5707 2012-03-30 Tom Tromey <tromey@redhat.com>
5709 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5710 of TRY_CATCH. Fix error handling.
5711 * python/py-value.c (convert_value_from_python): Move 'old'
5712 declaration to innermost scope.
5714 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5715 Andrey Smirnov <andrew.smirnov@gmail.com>
5717 -Wshadow warning fix.
5718 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5719 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5720 Adjust code accordingly.
5722 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5724 * ada-lang.c (symbol_completion_add): Rename parameter
5725 "encoded" into "encoded_p". Ajust code and documentation
5728 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5729 Andrey Smirnov <andrew.smirnov@gmail.com>
5731 -Wshadow warning fix.
5732 * ada-lang.c (symbol_completion_add): Rename parameter
5733 "wild_match" into wild_match_p. Update code and documentation
5736 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5738 * ada-lang.c (symbol_completion_match): Rename parameter
5739 "encoded" into "encoded_p". Ajust code and documentation
5742 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5743 Andrey Smirnov <andrew.smirnov@gmail.com>
5745 -Wshadow warning fix.
5746 * ada-lang.c (symbol_completion_match): Rename parameter
5747 "wild_match" into "wild_match_p". Adjust code and function
5748 documentation accordingly.
5750 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5751 Andrey Smirnov <andrew.smirnov@gmail.com>
5753 -Wshadow warning fix.
5754 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5755 "symbol_info" into "info". Adjust code accordingly.
5756 (ada_lookup_symbol): Likewise.
5758 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5760 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5761 of this function's documentation.
5763 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5764 Andrey Smirnov <andrew.smirnov@gmail.com>
5766 -Wshadow warning fix.
5767 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5768 variable into "wild_match_p". Adjust code accordingly.
5770 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5771 Andrey Smirnov <andrew.smirnov@gmail.com>
5773 -Wshadow warning fix.
5774 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5775 parameter into "wild_match_p". Adjust code accordingly.
5776 Document this parameter in the function description.
5778 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5779 Andrey Smirnov <andrew.smirnov@gmail.com>
5781 -Wshadow warning fix.
5782 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5783 "wild_match" parameter to "wild_match_p" (-Wshadow).
5785 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5787 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5788 in function documentation.
5790 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5791 Andrey Smirnov <andrew.smirnov@gmail.com>
5793 -Wshadow warning fix.
5794 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5795 variable into wild_match_p. Adjust code accordingly.
5797 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5798 Andrey Smirnov <andrew.smirnov@gmail.com>
5800 * ada-valprint.c (ada_val_print_1): Move the code handling
5801 TYPE_CODE_ENUM inside its own lexical block. Declare
5802 variables len and val there, instead of in the function's
5803 top level block. Avoid declaring deref_val again in a way
5804 that shadows another variable of the same name declared
5805 in one of the up-level blocks. Just re-use the up-level
5808 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5810 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5811 Replace block_found argument by symbol_info. Adjust
5812 implementation accordingly. Add function documentation.
5813 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5815 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5816 * ada-exp.y (write_object_renaming): Adjust to new
5817 ada_lookup_encoded_symbol API.
5819 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5821 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5824 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5826 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5827 (v850_register_name): Add the mpu and fpu register names.
5828 (v850e_register_name): Add the mpu and fpu register names.
5829 (v850e2_register_name): New function.
5830 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5833 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5835 * NEWS: Add entry for Ada varobj support.
5837 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5839 * varobj.c (default_value_is_changeable_p): New function,
5840 extracted from varobj_value_is_changeable_p. Add declaration.
5841 (ada_value_is_changeable_p): New function, extracted from
5842 varobj_value_is_changeable_p. Add declaration.
5843 (struct language_specific): New field "value_is_changeable_p".
5844 (languages): Add entries for new field.
5845 (varobj_create): Set language before calling install_new_value.
5846 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5847 "value_is_changeable_p" language callback.
5849 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5851 * ada-varobj.h, ada-varobj.c: New files.
5852 * Makefile.in (SFILES): Add ada-varobj.c.
5853 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5854 (COMMON_OBS): Add ada-varobj.o.
5856 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5858 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5859 (struct language_specific): New field "value_has_mutated".
5860 (languages): Set field "value_has_mutated" in each entry of array.
5861 (varobj_value_has_mutated): New function.
5862 (varobj_udpdate): Add handling of type mutation.
5863 (value_of_root): Add handling of type mutation.
5864 (ada_value_has_mutated): New function.
5866 2012-03-28 Pedro Alves <palves@redhat.com>
5868 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5869 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5871 2012-03-28 Tom Tromey <tromey@redhat.com>
5873 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5874 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5877 2012-03-28 Tom Tromey <tromey@redhat.com>
5879 * .dir-locals.el: New file.
5881 2012-03-28 Pedro Alves <palves@redhat.com>
5883 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5885 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5887 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5890 2012-03-27 Pedro Alves <palves@redhat.com>
5892 Eliminate struct ui_stream.
5894 * ui-out.h (struct ui_stream): Delete.
5895 (ui_out_field_stream): Adjust prototype.
5896 (ui_out_stream_new, ui_out_stream_delete)
5897 (make_cleanup_ui_out_stream_delete): Delete declarations.
5898 * ui-out.c (ui_out_field_stream): Change prototype to take a
5899 ui_file instead of a ui_stream. Adjust.
5900 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5901 (make_cleanup_ui_out_stream_delete): Delete.
5902 * breakpoint.c (print_breakpoint_location)
5903 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5904 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5905 * disasm.c (dump_insns): Ditto.
5906 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5908 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5909 ui_stream/ui_out_stream_new.
5910 * infcmd.c (print_return_value): Ditto.
5911 * osdata.c (info_osdata_command): Don't allocate a local
5913 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5914 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5915 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5916 allocate a local ui_stream.
5917 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5918 instead of ui_stream/ui_out_stream_new.
5919 (list_args_or_locals): Don't allocate a local ui_stream.
5920 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5921 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5922 ui_stream/ui_out_stream_new.
5923 * cli/cli-setshow.c (do_setshow_command): Ditto.
5925 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5927 * arm-linux-tdep.c (arm_linux_init_abi): Call
5928 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5929 * arm-tdep.c (arm_process_record): New function.
5930 (deallocate_reg_mem): New function.
5931 (decode_insn): New function.
5932 (thumb_record_branch): New function.
5933 (thumb_record_ldm_stm_swi(): New function.
5934 (thumb_record_misc): New function.
5935 (thumb_record_ld_st_stack): New function.
5936 (thumb_record_ld_st_imm_offset): New function.
5937 (thumb_record_ld_st_reg_offset(): New function.
5938 (thumb_record_add_sub_cmp_mov): New function.
5939 (thumb_record_shift_add_sub): New function.
5940 (arm_record_coproc_data_proc): New function.
5941 (arm_record_coproc): New function.
5942 (arm_record_b_bl): New function.
5943 (arm_record_ld_st_multiple): New function.
5944 (arm_record_ld_st_reg_offset): New function.
5945 (arm_record_ld_st_imm_offset): New function.
5946 (arm_record_data_proc_imm): New function.
5947 (arm_record_data_proc_misc_ld_str): New function.
5948 (arm_record_extension_space): New function.
5949 (arm_record_strx): New function.
5950 (sbo_sbz): New function.
5951 (struct insn_decode_record): New structure for arm insn record.
5952 (REG_ALLOC): New macro for reg allocations.
5953 (MEM_ALLOC): New macro for memory allocations.
5954 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5956 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5958 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5959 (store_register): Likewise.
5961 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5963 * MAINTAINERS (Write After Approval): Add myself to the list.
5965 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5967 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5968 Describe also the option "auto".
5970 2012-03-22 Richard Henderson <rth@redhat.com>
5972 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5973 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5975 2012-03-22 Richard Henderson <rth@redhat.com>
5977 * jit.c (jit_read_code_entry): Compute alignment and offset of
5978 int64_t member before computing entry_size.
5980 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5982 Python scripting: Add new method Value.referenced_value to
5983 gdb.Value which can dereference pointer as well as reference
5985 * NEWS: Add entry under 'Python scripting' about the new method
5986 Value.referenced_value on gdb.Value objects.
5987 * python/py-value.c (valpy_referenced_value): New function
5988 defining a new method on gdb.Value objects which can dereference
5989 pointer and reference values.
5991 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5993 * MAINTAINERS (Write After Approval): Add myself to the list.
5995 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5997 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5998 in addition to "main".
6000 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6002 * expression.h (op_name): Add declaration.
6003 * expprint.c (op_name): Remove declaration. Make non-static.
6004 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6006 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6008 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6010 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6011 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6012 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6013 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6014 (linux_nat_get_siginfo): Likewise.
6015 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6016 (linux_nat_get_siginfo): Likewise.
6017 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6018 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6019 * procfs.c (gdb_siginfo_t): Likewise.
6021 2012-03-21 Mike Frysinger <vapier@gentoo.org>
6023 * .gitignore: Ignore more files.
6025 2012-03-20 Pedro Alves <palves@redhat.com>
6027 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6030 2012-03-20 Yao Qi <yao@codesourcery.com>
6032 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6035 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6037 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6038 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6039 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6041 * dwarf2expr.h (cu_offset, sect_offset): New types.
6042 (struct dwarf_expr_context_funcs) <dwarf_call>
6043 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6045 (struct dwarf_expr_context) <len>: Improve the comment.
6046 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6047 cu_offset and sect_offset.
6048 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6049 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6050 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6051 * dwarf2loc.h: Include dwarf2expr.h.
6052 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6054 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6055 Improve the comment.
6056 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6057 (struct signatured_type, struct line_header, struct partial_die_info)
6058 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6059 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6060 (get_die_type_at_offset, create_cus_from_index)
6061 (create_signatured_type_table_from_index, dw2_get_file_names)
6062 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6063 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6064 (create_debug_types_hash_table, process_psymtab_comp_unit)
6065 (load_partial_comp_unit, create_all_comp_units)
6066 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6067 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6068 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6069 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6070 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6071 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6072 (find_partial_die, read_attribute_value, lookup_die_type)
6073 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6074 (is_ref_attr): New function comment.
6075 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6076 Use cu_offset and sect_offset.
6077 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6078 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6079 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6080 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6081 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6082 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6083 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6086 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6089 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6090 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6092 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6094 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6096 * NEWS: Describe new options --init-command=FILE, -ix and
6097 --init-eval-command=COMMAND, -iex.
6098 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6099 CMDARG_INIT_COMMAND.
6100 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6101 "init-command", "init-eval-command", "ix" and "iex" to the variable
6102 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6103 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6104 (print_gdb_help): Describe --init-command=FILE, -ix and
6105 --init-eval-command=COMMAND, -iex.
6107 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6110 * main.c (struct cmdarg): Move it here from main. Add more comments.
6111 (cmdarg_s, VEC (cmdarg_s)): New.
6112 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6113 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6114 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6115 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6118 2012-03-19 Tom Tromey <tromey@redhat.com>
6120 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6122 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6125 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6128 2012-03-16 Chris January <chris.january@allinea.com>
6130 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6133 2012-03-16 Chris January <chris.january@allinea.com>
6135 * source.c (add_path): Use memmove instead of strcpy because the
6138 2012-03-16 Joel Brobecker <brobecker@adacore.com>
6140 * value.h (set_value_parent): Add declaration.
6141 * value.c (set_value_parent): New function.
6142 (value_address): If VALUE->PARENT is not NULL, then use it as
6143 the base address instead of VALUE->LOCATION.address.
6144 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6145 the same as OBJ's address. Adjust V's offset accordingly.
6148 2012-03-16 Gary Benson <gbenson@redhat.com>
6150 PR breakpoints/10738
6151 * dwarf2read.c (use_deprecated_index_sections): New global.
6152 (struct partial_die_info): New member may_be_inlined.
6153 (read_partial_die): Set may_be_inlined where appropriate.
6154 (add_partial_subprogram): Add partial symbols for partial
6155 DIEs that may be inlined.
6156 (new_symbol_full): Add inlined subroutines to the current
6158 (write_psymtabs_to_index): Bump version number.
6159 (dwarf2_read_index): Read only version 6 indices unless
6160 use_deprecated_index_sections is set.
6161 * linespec.c (symbol_and_data_callback): New structure.
6162 (iterate_inline_only): New function.
6163 (iterate_over_all_matching_symtabs): New argument
6164 "include_inline". If nonzero, also call the callback for
6165 symbols representing inlined subroutines.
6166 (lookup_prefix_sym): Pass extra argument to the above.
6167 (find_function_symbols): Likewise.
6168 (add_matching_symbols_to_info): Likewise.
6169 * NEWS: Mention that GDB can now set breakpoints on inlined
6172 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6174 * p-typeprint.c (pascal_type_print_method_args):
6175 Fix display of parameter of methods.
6177 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6179 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6180 Add missing prototype.
6182 2012-03-16 Yao Qi <yao@codesourcery.com>
6183 Jan Kratochvil <jan.kratochvil@redhat.com>
6185 Fix false compilation warning.
6186 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6188 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6189 Pedro Alves <pedro@codesourcery.com>
6191 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6192 (arm_register_g_packet_guesses): New function.
6193 (arm_gdbarch_init): Don't force a target description with
6194 registers when the executable is detected as M-profile. Instead
6195 set gdbarch->tdep->is_m. Register `g' packet guesses.
6196 (_initialize_arm_tdep): Initialize the new target description.
6197 * features/arm-with-m-fpa-layout.xml: New description.
6198 * features/arm-with-m-fpa-layout.c: New, generated.
6200 2012-03-15 Joel Brobecker <brobecker@adacore.com>
6202 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6203 Update function description.
6204 (insert_bp_location): Do not wipe bl->target_info out.
6205 * mem-break.c: #include "gdb_string.h".
6206 (default_memory_insert_breakpoint): Do not call target_read_memory
6207 with a pointer to the breakpoint's shadow_contents buffer. Use
6208 a local buffer instead.
6209 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6211 2012-03-15 Tom Tromey <tromey@redhat.com>
6213 * NEWS: Mention "info vtbl", not "info vtable".
6214 * cp-support.c (info_vtbl_command): Fix comment.
6215 (_initialize_cp_support): Fix text.
6217 2012-03-15 Tom Tromey <tromey@redhat.com>
6219 * cp-valprint.c (cp_print_value_fields): Use
6220 print_function_pointer_address for vtable slot.
6222 2012-03-15 Tom Tromey <tromey@redhat.com>
6224 * gnu-v3-abi.c (struct value_and_voffset): New.
6225 (hash_value_and_voffset, eq_value_and_voffset)
6226 (compare_value_and_voffset, compute_vtable_size)
6227 (print_one_vtable, gnuv3_print_vtable): New functions.
6228 (init_gnuv3_ops): Initialize 'print_vtable' field.
6229 * cp-support.c (info_vtbl_command): New function.
6230 (_initialize_cp_support): Add "info vtbl".
6231 * cp-abi.h (cplus_print_vtable): Declare.
6232 (struct cp_abi_ops) <print_vtable>: New field.
6233 * cp-abi.c (cplus_print_vtable): New function.
6236 2012-03-15 Tom Tromey <tromey@redhat.com>
6238 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6239 iterate_over_symbols.
6241 2012-03-14 Doug Evans <dje@google.com>
6243 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6244 DW_OP_GNU_parameter_ref.
6246 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6248 Fix double prompt of 'interpreter-exec mi'.
6249 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6250 (mi_interpreter_resume): use it.
6251 (mi_execute_command_input_handler): New function.
6252 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6253 mi_execute_command_input_handler.
6255 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
6257 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6259 (darwin_debug_port_info): Make static.
6260 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6261 * machoread.c (_initialize_machoread): Add prototype.
6262 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6263 (i386_darwin_set_control, i386_darwin_get_control)
6264 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6265 i386_darwin_get_status, i386_darwin_get_control):
6266 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6268 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6270 * ax-gdb.c (gen_usual_unary): Remove special handling of
6271 enum and bool types.
6273 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6275 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6277 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6279 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6281 2012-03-13 Chris January <chris.january@allinea.com>
6283 * aix-thread.c (fill_sprs): Store the floating point registers
6284 at the correct offsets into vals.
6286 2012-03-13 Doug Evans <dje@google.com>
6288 * NEWS: Mention symbol-reloading has been deleted.
6289 * symfile.c (symbol_reloading): Delete.
6290 (show_symbol_reloading): Delete.
6291 (_initialize_symfile): Delete set/show symbol-reloading.
6293 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6294 read_in_chain until we have successfully read it in.
6295 (load_full_comp_unit): Ditto.
6296 (read_signatured_type): Add comment.
6298 2012-03-13 Chris January <chris.january@allinea.com>
6300 * stabsread.c (fix_common_block): Change type of valu argument
6303 2012-03-13 Chris January <chris.january@allinea.com>
6305 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6308 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6310 * common/linux-procfs.c (linux_proc_get_int): New, from
6311 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6313 (linux_proc_get_tgid): Only call linux_proc_get_int.
6314 (linux_proc_get_tracerpid): New.
6315 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6316 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6317 linux_proc_pid_has_state.
6318 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6319 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6320 (linux_ptrace_attach_warnings): New.
6321 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6323 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6324 (linux_nat_attach): New variables ex, buffer, message and message_s.
6325 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6327 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6329 * Makefile.in (linux-ptrace.o): New.
6330 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6332 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6333 * common/linux-ptrace.c: New file.
6334 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6335 * config/arm/linux.mh: Likewise.
6336 * config/i386/linux.mh: Likewise.
6337 * config/i386/linux64.mh: Likewise.
6338 * config/ia64/linux.mh: Likewise.
6339 * config/m32r/linux.mh: Likewise.
6340 * config/m68k/linux.mh: Likewise.
6341 * config/mips/linux.mh: Likewise.
6342 * config/pa/linux.mh: Likewise.
6343 * config/powerpc/linux.mh: Likewise.
6344 * config/powerpc/ppc64-linux.mh: Likewise.
6345 * config/powerpc/spu-linux.mh: Likewise.
6346 * config/s390/s390.mh: Likewise.
6347 * config/sparc/linux.mh: Likewise.
6348 * config/sparc/linux64.mh: Likewise.
6349 * config/xtensa/linux.mh: Likewise.
6350 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6351 common/linux-procfs.c.
6352 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6354 2012-03-13 Hui Zhu <teawater@gmail.com>
6355 Pedro Alves <palves@redhat.com>
6357 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6358 CREATE_BREAKPOINT_FLAGS_INSERTED.
6359 (create_breakpoint_sal, create_breakpoints_sal)
6360 (base_breakpoint_create_breakpoints_sal)
6361 (tracepoint_create_breakpoints_sal)
6362 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6364 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6365 (ftrace_command, strace_command): Adjust.
6366 (create_tracepoint_from_upload): Pass
6367 CREATE_BREAKPOINT_FLAGS_INSERTED.
6368 * breakpoint.h (enum breakpoint_create_flags): New.
6369 (create_breakpoint): New flags parameter.
6370 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6371 * python/py-breakpoint.c (bppy_init): Adjust.
6372 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6373 * spu-tdep.c (spu_catch_start): Adjust.
6375 2012-03-13 Pedro Alves <palves@redhat.com>
6376 Hui Zhu <teawater@gmail.com>
6377 Yao Qi <yao@codesourcery.com>
6379 * remote.c (struct remote_state): New field `starting_up'.
6380 (remote_start_remote): Set and clear it.
6381 (remote_can_download_tracepoint): If starting up, return false.
6383 2012-03-13 Yao Qi <yao@codesourcery.com>
6385 * inferior.h (struct inferior): Remove fields any_syscall_count,
6386 syscalls_counts and total_syscalls_count. Move them to new
6387 struct catch_syscall_inferior_data in breakpoint.c.
6388 * breakpoint.c: Call DEF_VEC_I(int).
6389 (struct catch_syscall_inferior_data): New.
6390 (get_catch_syscall_inferior_data): New.
6391 (catch_syscall_inferior_data_cleanup): New.
6392 (insert_catch_syscall): Update to access data in
6393 struct catch_syscall_inferior_data.
6394 (insert_catch_syscall): Likewise.
6395 (remove_catch_syscall): Likewise.
6396 (remove_catch_syscall): Likewise.
6397 (is_syscall_catchpoint_enabled): Likewise.
6398 (add_catch_command): Likewise.
6399 (_initialize_breakpoint): Register cleanup.
6400 * breakpoint.h: Removed DEF_VEC_I(int).
6401 * dwarf2loc.c: Call DEF_VEC_I(int).
6402 * mi/mi-main.c: Likewise.
6404 2012-03-12 Mark Kettenis <kettenis@gnu.org>
6406 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6408 2012-03-12 Chris January <chris.january@allinea.com>
6410 * aix-thread.c (_initialize_aix_thread): Add prototype.
6411 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6412 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6414 2012-03-12 Joel Brobecker <brobecker@adacore.com>
6416 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6417 include of "amd64-nat.h".
6419 2012-03-12 Tom Tromey <tromey@redhat.com>
6421 * buildsym.c (record_pending_block): Now static.
6422 * buildsym.h: (record_pending_block): Remove.
6424 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
6426 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6428 2012-03-09 Tom Tromey <tromey@redhat.com>
6430 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6431 producer_is_gxx_lt_4_6>: New fields.
6432 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6434 2012-03-09 Tom Tromey <tromey@redhat.com>
6436 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6438 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6440 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6443 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6445 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6447 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6449 Fix -Wmissing-prototypes build.
6450 * arm-linux-nat.c (get_thread_id): Make it static.
6451 * xtensa-linux-nat.c (get_thread_id): Likewise.
6453 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6455 * server.c (process_point_options): If a conditional expression
6456 is found, only print a message if remote_debug is nonzero.
6458 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6460 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6461 of internal error for unknown/unsupported types.
6463 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6465 Fix CU relative vs. absolute DIE offsets.
6466 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6467 offset to offset_in_cu.
6468 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6470 (dwarf2_fetch_die_location_block): Rename parameter offset to
6471 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6473 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6475 * libunwind-frame.c: Rename to ...
6476 * ia64-libunwind-tdep.c: ... here.
6477 * libunwind-frame.h: Rename to ...
6478 * ia64-libunwind-tdep.h: ... here.
6479 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6480 ia64-libunwind-tdep.h.
6481 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6482 * README (--with-libunwind): Rename to ...
6483 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6484 * config.in: Regenerate.
6485 * configure: Regenerate.
6486 * configure.ac: New option --with-libunwind-ia64, make the
6487 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6488 Remove AC_DEFINE for HAVE_LIBUNWIND.
6489 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6490 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6491 Rename libunwind-frame in the general comment.
6492 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6493 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6494 Move forward declarations inside #ifndef. Rename libunwind-frame in
6495 the general comment.
6496 * ia64-tdep.c: Rename libunwind-frame.h #include to
6497 ia64-libunwind-tdep.h.
6498 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6499 (ia64_libunwind_descr): Rename libunwind-frame to
6500 ia64-libunwind-tdep in these function comments.
6501 * ia64-tdep.h: Rename libunwind-frame.h #include to
6502 ia64-libunwind-tdep.h.
6503 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6504 ia64-libunwind-tdep in that data comment.
6506 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6508 * libunwind-frame.h (struct frame_unwind): New declaration.
6510 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6512 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6513 "set breakpoint condition-evaluation" command.
6515 2012-03-08 Tristan Gingold <gingold@adacore.com>
6517 * sparc-stub.c: Move to stubs/
6518 * sh-stub.c: Likewise.
6519 * m68k-stub.c: Likewise.
6520 * m32r-stub.c: Likewise.
6521 * i386-stub.c: Likewise.
6523 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6525 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6526 linux_get_siginfo_type.
6528 * m68klinux-nat.c: Include "gdb_proc_service.h".
6529 (PTRACE_GET_THREAD_AREA): Define.
6530 (ps_get_thread_area): New function.
6532 2012-03-08 Yao Qi <yao@codesourcery.com>
6534 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6536 (remote_query_attached): Likewise.
6537 (remote_static_tracepoint_marker_at): Likewise.
6538 (remote_set_permissions): Likewise.
6539 (remote_detach_1, extended_remote_attach_1): Likewise.
6540 (send_g_packet, remote_vkill): Likewise.
6541 (extended_remote_disable_randomization): Likewise.
6542 (remote_add_target_side_condition): Likewise.
6543 (remote_insert_breakpoint): Likewise.
6544 (remote_remove_breakpoint): Likewise.
6545 (remote_insert_watchpoint): Likewise.
6546 (remote_remove_watchpoint): Likewise.
6547 (remote_insert_hw_breakpoint): Likewise.
6548 (remote_insert_hw_breakpoint): Likewise.
6549 (remote_remove_hw_breakpoint): Likewise.
6550 (remote_download_command_source): Likewise.
6551 (remote_download_tracepoint): Likewise.
6552 (remote_download_trace_state_variable): Likewise.
6553 (remote_disable_tracepoint): Likewise.
6554 (remote_trace_set_readonly_regions): Likewise.
6555 (remote_get_tracepoint_status): Likewise.
6556 (remote_trace_find): Likewise.
6557 (remote_get_trace_state_variable_value): Likewise.
6558 (remote_set_disconnected_tracing): Likewise.
6559 (remote_set_circular_trace_buffer): Likewise.
6560 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6561 (remote_use_agent): Likewise.
6562 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6565 2012-03-07 Pedro Alves <palves@redhat.com>
6567 * NEWS: Mention QProgramSignals.
6568 * inferior.h (update_signals_program_target): Declare.
6569 * infrun.c: (update_signals_program_target): New.
6570 (handle_command): Update the target of the new program signals
6572 * remote.c (PACKET_QProgramSignals): New enum.
6573 (last_program_signals_packet): New global.
6574 (remote_program_signals): New.
6575 (remote_start_remote): Update the target with the program signals
6577 (remote_protocol_features): Add entry for QPassSignals.
6578 (remote_open_1): Free anc clear last_program_signals_packet.
6579 (init_remote_ops): Install remote_program_signals.
6580 * target.c (update_current_target): Adjust.
6581 (target_program_signals): New.
6582 * target.h (struct target_ops) <to_program_signals>: New field.
6583 (target_program_signals): Declare.
6585 2012-03-07 Pedro Alves <palves@redhat.com>
6587 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6590 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6592 * m68klinux-nat.c (getregs_supplies): Make static.
6593 (getfpregs_supplies): Likewise.
6594 (have_ptrace_getregs): Likewise.
6596 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6598 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6599 in call to get_die_type_at_offset.
6601 2012-03-06 Stan Shebs <stan@codesourcery.com>
6603 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6604 * mi/mi-cmd-disas.c: Ditto.
6605 * mi/mi-cmd-env.c: Ditto.
6606 * mi/mi-cmd-file.c: Ditto.
6607 * mi/mi-cmd-stack.c: Ditto.
6608 * mi/mi-cmd-target.c: Ditto.
6609 * mi/mi-cmd-var.c: Ditto.
6610 * mi/mi-cmds.c: Ditto.
6611 * mi/mi-cmds.h: Ditto.
6612 * mi/mi-console.c: Ditto.
6613 * mi/mi-getopt.c: Ditto.
6614 * mi/mi-getopt.h: Ditto.
6615 * mi/mi-interp.c: Ditto.
6616 * mi/mi-main.c: Ditto.
6617 * mi/mi-out.c: Ditto.
6618 * mi/mi-parse.c: Ditto.
6619 * mi/mi-parse.h: Ditto.
6620 * mi/mi-symbol-cmds.c: Ditto.
6622 * mi/mi-getopt.h: Move mi_opt struct up.
6623 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6625 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6627 2012-03-06 Tom Tromey <tromey@redhat.com>
6629 * proc-service.c (ps_pglobal_lookup): Set the current program
6632 2012-03-06 Pedro Alves <palves@redhat.com>
6634 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6636 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6638 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6640 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6643 * common/linux-osdata.c (linux_common_core_of_thread): New function
6645 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6646 call by linux_common_core_of_thread.
6647 (linux_nat_core_of_thread_1): Remove.
6648 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6649 * linux-thread-db.c: Include linux-osdata.h.
6650 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6651 linux_common_core_of_thread.
6653 2012-03-05 Tom Tromey <tromey@redhat.com>
6655 * value.c (value_primitive_field): Don't fetch contents for
6658 2012-03-05 Tom Tromey <tromey@redhat.com>
6660 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6662 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6664 * s390-nat.c: Include "gregset.h".
6666 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6668 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6669 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6670 (libunwind_load): New variable so_error, use it for dlerror. Try to
6671 load also LIBUNWIND_SO_7.
6673 2012-03-05 Pedro Alves <palves@redhat.com>
6675 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6676 is not NULL, and remove resulting dead code.
6678 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6680 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6681 prologue to sh_analyze_prologue.
6682 (sh_analyze_prologue): Make better use of such an upper limit, and
6683 generally be more cautious about accessing memory.
6685 2012-03-05 Tom Tromey <tromey@redhat.com>
6687 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6688 _initialize_ia64_hpux_tdep.
6690 2012-03-05 Pedro Alves <palves@redhat.com>
6694 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6695 the register state is clear, supply explicit zero, instead of
6696 marking the register unavailable.
6698 2012-03-05 Tristan Gingold <gingold@adacore.com>
6700 * NEWS: Mention OpenVMS ia64 new target.
6702 2012-03-05 Tristan Gingold <gingold@adacore.com>
6704 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6705 (ia64_unw_accessors, ia64_unw_rse_accessors)
6706 (ia64_libunwind_descr): Declare.
6707 * ia64-vms-tdep.c: New file.
6708 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6709 (ia64_libunwind_descr): Make them public.
6710 * configure.tgt: Add ia64-*-*vms*.
6711 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6712 (ALLDEPFILES): Add ia64-vms-tdep.c
6714 2012-03-05 Tristan Gingold <gingold@adacore.com>
6716 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6717 * remote.c (PACKET_qXfer_uib): New enum value.
6718 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6719 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6720 (_initialize_remote): Call add_packet_config_cmd for
6723 2012-03-05 Tristan Gingold <gingold@adacore.com>
6725 * osabi.c (gdb_osabi_names): Add OpenVMS.
6726 (generic_elf_osabi_sniffer): Likewise.
6727 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6729 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6731 Removed unused code.
6732 * libunwind-frame.c (libunwind_frame_unwind)
6733 (libunwind_frame_base_address): Remove.
6734 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6736 2012-03-04 Yao Qi <yao@codesourcery.com>
6738 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6739 remove trailing new line.
6740 (agent_run_command, agent_run_command): Add _ markup.
6741 (agent_capability_check): Likewise.
6743 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6745 * breakpoint.c (set_condition_evaluation_mode): Set
6746 CONDITION_EVALUATION_MODE unconditionally.
6748 2012-03-03 Yao Qi <yao@codesourcery.com>
6750 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6751 * common/agent.h: Update declaration.
6752 * inf-child.c (inf_child_use_agent): New.
6753 (inf_child_can_use_agent): New.
6754 (inf_child_target): Initialize fields `to_use_agent'
6755 and `to_can_use_agent'.
6756 * agent.c (agent_new_objfile): New.
6757 (_initialize_agent): Add agent_new_objfile to new_objfile
6760 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6762 (linux_target_install_ops): Initialize field
6763 `to_static_tracepoint_markers_by_strid'.
6764 * remote.c (free_current_marker): Move it to ...
6765 * tracepoint.c (free_current_marker): ... here. New.
6766 (cleanup_target_stop): New.
6767 * tracepoint.h: Declare free_current_marker.
6768 * NEWS: Add one entry about `info static-tracepoint-marker'.
6770 2012-03-03 Yao Qi <yao@codesourcery.com>
6772 * common/agent.c (agent_loaded_p): New.
6773 (agent_look_up_symbols): New global.
6774 * common/agent.h: Declare agent_loaded_p.
6776 2012-03-03 Yao Qi <yao@codesourcery.com>
6778 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6779 (agent_capability_check, agent_capability_invalidate): New.
6780 (symbol_list): New array element.
6781 * common/agent.h (enum agent_capa): New.
6782 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6784 2012-03-03 Yao Qi <yao@codesourcery.com>
6786 * target.h (struct target_ops) <to_use_agent>: New field.
6787 (struct target_ops) <to_can_use_agent>: New field.
6788 (target_use_agent, target_can_use_agent): New macro.
6789 * target.c (update_current_target): Update.
6790 * remote.c: New enum `PACKET_QAgent'.
6791 (remote_protocol_features): Add a new element.
6792 (remote_use_agent, remote_can_use_agent): New.
6793 (init_remote_ops): Initialize field `can_use_agent' with
6794 remote_can_use_agent. Intiailize field `use_agent' with
6796 * common/agent.c (use_agent): New global.
6797 * common/agent.h: Declare it.
6798 * tracepoint.c (info_static_tracepoint_markers_command): Add
6800 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6801 (COMMON_OBS): Add common/agent.o and agent.o
6802 (common-agent.o): New rule.
6805 2012-03-03 Yao Qi <yao@codesourcery.com>
6807 * common/agent.c: New.
6808 * common/agent.h: New.
6809 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6811 * configure, configh.in: Regenerated.
6813 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6815 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6816 unless it exists for this architecture.
6818 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6820 * language.h (struct language_defn): New "method" la_read_var_value.
6821 * findvar.c: #include "language.h".
6822 (default_read_var_value): Renames read_var_value. Rewrite
6823 function description.
6824 (read_var_value): New function.
6825 * value.h (default_read_var_value): Add prototype.
6826 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6828 (ada_language_defn): Add entry for la_read_var_value.
6829 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6830 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6831 language_defn structures to add entry for new la_read_var_value
6834 2012-03-02 Tom Tromey <tromey@redhat.com>
6835 Pedro Alves <palves@redhat.com>
6837 PR breakpoints/13776:
6838 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6840 (delete_longjmp_breakpoint_at_next_stop): New.
6841 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6842 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6843 before deleting the inferior. Add comments.
6844 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6845 breakpoints immediately, but only on next stop. Move that code
6846 next to where we mark other breakpoints for deletion.
6848 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6850 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6852 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6855 2012-03-02 Pedro Alves <palves@redhat.com>
6857 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6859 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6861 Fix -Wmissing-prototypes build.
6862 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6863 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6864 (gdbsim_has_memory): Likewise.
6866 2012-03-02 Yao Qi <yao@codesourcery.com>
6868 Fix -Wmissing-prototypes build.
6869 * charset.c (phony_iconv_open): Make static.
6870 (phony_iconv_close, phony_iconv): Likewise.
6871 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6872 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6874 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6875 * ser-mingw.c (create_select_thread): Make static.
6876 * windows-termcap.c (tgetent): New prototype.
6877 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6879 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6881 Fix -Wmissing-prototypes build.
6882 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6883 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6884 (_initialize_loadable): New prototypes.
6886 2012-03-02 Doug Evans <dje@google.com>
6888 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6889 abbrev table, read_comp_unit will do it.
6891 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6893 Fix -Wmissing-prototypes build.
6894 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6895 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6896 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6897 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6898 (_initialize_arm_symbian_tdep): New prototype.
6899 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6900 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6901 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6903 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6904 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6906 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6907 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6908 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6910 * moxie-tdep.c (moxie_process_record): Likewise.
6911 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6912 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6913 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6914 (_initialize_rl78_tdep): New prototype.
6915 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6916 (_initialize_rx_tdep): New prototype.
6917 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6918 (_initialize_darwin_solib): New prototype.
6919 * solib-spu.c: Include solib-spu.h.
6920 (_initialize_spu_solib): New prototype.
6921 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6922 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6923 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6924 (tic6x_software_single_step): Make it static.
6925 (_initialize_tic6x_tdep): New prototype.
6927 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6929 Fix -Wmissing-prototypes build.
6930 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6931 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6933 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6935 Fix -Wmissing-prototypes build.
6936 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6937 (frv_have_stopped_data_address): Remove.
6939 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6941 Fix -Wmissing-prototypes build.
6942 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6943 * sh-tdep.c: Include sh64-tdep.h.
6944 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6945 * sh64-tdep.c: Include sh64-tdep.h.
6946 * sh64-tdep.h: New file.
6948 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6950 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6952 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6954 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6955 sp_regnum once the gdbarch_init_osabi hook has been called.
6957 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6959 * mips-tdep.c (mips32_bc1_pc): New function.
6960 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6961 BPOSGE32 and BPOSGE64 instructions.
6962 (deal_with_atomic_sequence): Likewise.
6963 (mips32_instruction_has_delay_slot): Likewise.
6965 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6966 Chris Dearman <chris@mips.com>
6967 Maciej W. Rozycki <macro@codesourcery.com>
6968 Joseph Myers <joseph@codesourcery.com>
6970 * features/mips-dsp.xml: New file.
6971 * features/mips64-dsp.xml: New file.
6972 * features/mips-dsp-linux.xml: New file.
6973 * features/mips64-dsp-linux.xml: New file.
6974 * features/Makefile (WHICH): Add mips-dsp-linux and
6976 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6977 * features/mips-dsp-linux.c: New file.
6978 * features/mips64-dsp-linux.c: New file.
6979 * regformats/mips-dsp-linux.dat: New file.
6980 * regformats/mips64-dsp-linux.dat: New file.
6981 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6983 (mips64_linux_register_addr): Likewise.
6984 (mips64_linux_regsets_fetch_registers): Likewise.
6985 (mips64_linux_regsets_store_registers): Likewise.
6986 (mips64_linux_fetch_registers): Update call to
6987 mips64_linux_regsets_fetch_registers.
6988 (mips64_linux_store_registers): Update call to
6989 mips64_linux_regsets_store_registers.
6990 (mips_linux_read_description): Probe for DSP registers.
6991 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6992 and initialize_tdesc_mips64_dsp_linux.
6993 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6994 Remove padding of no longer used embedded register slots.
6995 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6996 (MIPS_RESTART_REGNUM): Redefine enum value.
6997 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6999 (mips_tx39_reg_names): Likewise.
7000 (mips_linux_reg_names): New array of register names for Linux
7002 (mips_register_name): Check for a null pointer in
7003 mips_processor_reg_names and return an empty string.
7004 (mips_register_type): Exclude embedded registers for the IRIX
7006 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7007 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7009 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7010 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7011 (mips_gdbarch_init): Likewise. Initialize internal register
7012 indices for the Linux ABI. Use dynamic numbers to refer to
7013 registers, as applicable, while parsing the target description.
7014 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7016 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7018 * frame.h (read_frame_register_unsigned): Fix typo in function
7021 2012-03-01 Pedro Alves <palves@redhat.com>
7023 * jit-reader.in [!__cplusplus]
7024 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7026 2012-03-01 Pedro Alves <palves@redhat.com>
7028 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7029 * configure: Regenerate.
7031 2012-03-01 Pedro Alves <palves@redhat.com>
7033 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7034 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7035 (ftrace_command, strace_command): Make static.
7036 * d-lang.c (_initialize_d_language): Declare.
7037 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7038 * dwarf2loc.c (_initialize_dwarf2loc):
7039 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7040 * exec.c (exec_get_section_table): Make static.
7041 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7042 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7043 * inferior.c (remove_inferior_command, add_inferior_command)
7044 (clone_inferior_command): Make static.
7045 * linux-nat.c (linux_nat_thread_address_space)
7046 (linux_nat_core_of_thread): Make static.
7047 * linux-tdep.c (_initialize_linux_tdep): Declare.
7048 * objc-lang.c (_initialize_objc_lang): Declare.
7049 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7051 (_initialize_opencl_language): Declare.
7052 * record.c (_initialize_record): Declare.
7053 * remote.c (demand_private_info, remote_get_tib_address)
7054 (remote_supports_cond_tracepoints)
7055 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7057 * skip.c (_initialize_step_skip): Declare.
7058 * symtab.c (skip_prologue_using_lineinfo): Make static.
7059 * tracepoint.c (delete_trace_state_variable)
7060 (trace_variable_command, delete_trace_variable_command)
7061 (get_uploaded_tsv, find_matching_tracepoint_location)
7062 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7064 * value.c (pack_unsigned_long): Make static.
7065 * varobj.c (varobj_ensure_python_env): Make static.
7066 * windows-tdep.c (_initialize_windows_tdep): Declare.
7067 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7069 2012-03-01 Pedro Alves <palves@redhat.com>
7071 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7073 (linux_init_abi): Install it as has_shared_address_space gdbarch
7076 2012-03-01 Pedro Alves <palves@redhat.com>
7078 * observer.c (observer_test_first_notification_function)
7079 (observer_test_second_notification_function)
7080 (observer_test_third_notification_function): Add declarations.
7082 2012-03-01 Pedro Alves <palves@redhat.com>
7084 * common/signals.c (default_target_signal_to_host)
7085 (default_target_signal_from_host): Move ...
7086 * arch-utils.c: ... here.
7087 * arch-utils.h (default_target_signal_to_host)
7088 (default_target_signal_from_host): Declare.
7090 * common/signals.c (target_signal_from_command): Move ...
7091 * infrun.c: ... here.
7092 * inferior.h (target_signal_from_command): Declare.
7093 * target.h (target_signal_from_command)
7094 (default_target_signal_from_host, default_target_signal_to_host):
7095 Delete declarations.
7097 * common/signals.c (_initialize_signals): Delete.
7099 2012-03-01 Pedro Alves <palves@redhat.com>
7101 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7102 both __cplusplus and !__cplusplus.
7104 2012-03-01 Pedro Alves <palves@redhat.com>
7106 * psymtab.c (find_and_open_source): Delete declaration.
7107 * source.c (find_and_open_source): Move comment ...
7108 * source.h (find_and_open_source): ... to this new declaration.
7110 2012-03-01 Pedro Alves <palves@redhat.com>
7112 * inline-frame.c: Include inline-frame.h.
7114 2012-03-01 Pedro Alves <palves@redhat.com>
7116 * tui/tui-data.c (set_gen_win_origin): Delete.
7117 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7118 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7120 2012-03-01 Pedro Alves <palves@redhat.com>
7122 * remote.c (encode_actions): Delete declaration.
7123 * tracepoint.c (encode_actions): Make extern.
7124 * tracepoint.h (encode_actions): Declare.
7126 2012-03-01 Pedro Alves <palves@redhat.com>
7128 * python/py-breakpoint.c: Include python.h.
7129 * python/py-continueevent.c (create_continue_event_object): Make
7131 * python/py-lazy-string.c (stpy_get_type): Make static.
7132 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7134 * python/py-utils.c (unicode_to_target_python_string): Make
7136 * python/py-value.c: Include python.h.
7138 2012-03-01 Pedro Alves <palves@redhat.com>
7140 * inferior.c (delete_threads_of_inferior): Delete.
7142 2012-03-01 Pedro Alves <palves@redhat.com>
7144 Import fallback definitions from glibc.
7146 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7147 ps_prochandle): Forward declare.
7148 (ps_err_e): Use glibc's comments.
7149 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7150 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7151 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7152 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7153 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7154 (struct ps_prochandle): Adjust comment.
7156 2012-03-01 Pedro Alves <palves@redhat.com>
7158 * ada-lang.c (ada_modulus_from_name): Delete.
7159 * ada-lex.l (lexer_init): Make static.
7161 2012-03-01 Pedro Alves <palves@redhat.com>
7165 * frame.c (read_frame_register_unsigned): New.
7166 * frame.h (read_frame_register_unsigned): Declare.
7167 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7169 (print_i387_control_word): New parameter `control_p'. Handle it.
7170 (i387_print_float_info): Handle unavailable float registers.
7172 2012-03-01 Keith Seitz <keiths@redhat.com>
7174 * linespec.c (decode_line_2): Sort the list of methods
7175 alphabetically before presenting the user with a selection
7178 2012-03-01 Doug Evans <dje@google.com>
7180 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7182 (dwarf2_read_abbrevs): Remove corresponding initialization.
7184 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
7186 * NEWS: Mention new python command class gdb.COMMAND_USER.
7187 * cli/cli-cmds.c (show_user): Print error when used on a python
7189 (init_cli_cmds): Update documentation strings for "show user" and
7190 "set/show max-user-call-depth" to clarify that it does not apply to
7192 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7194 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7196 * top.c (execute_command): Only execute a user-defined command as a
7197 legacy macro if c->user_commands is set.
7199 2012-03-01 Tom Tromey <tromey@redhat.com>
7201 * valprint.h (struct generic_val_print_decorations): New.
7202 (generic_val_print): Declare.
7203 * valprint.c (generic_val_print): New function.
7204 * p-valprint.c (p_decorations): New global.
7205 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7206 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7207 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7208 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7209 * m2-valprint.c (m2_decorations): New global.
7210 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7211 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7212 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7213 TYPE_CODE_ERROR>: Call generic_val_print.
7214 * f-valprint.c (f_decorations): New global.
7215 (f_val_print): Use print_function_pointer_address.
7216 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7217 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7218 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7220 * c-valprint.c (c_decorations): New global.
7221 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7222 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7223 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7224 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7225 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7226 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7229 2012-03-01 Tom Tromey <tromey@redhat.com>
7231 * valprint.c (val_print): Update.
7232 * p-valprint (pascal_val_print): Return void.
7233 * p-lang.h (pascal_val_print): Return void.
7234 * m2-valprint.c (m2_val_print): Return void.
7235 * m2-lang.h (m2_val_print): Return void.
7236 * language.h (struct language_defn) <la_val_print>: Return void.
7237 * language.c (unk_lang_val_print): Return void.
7238 * jv-valprint.c (java_val_print): Return void.
7239 * jv-lang.h (java_val_print): Return void.
7240 * f-valprint.c (f_val_print): Return void.
7241 * f-lang.h (f_val_print): Return void.
7242 * d-valprint.c (d_val_print): Return void.
7243 (dynamic_array_type): Update.
7244 * d-lang.h (d_val_print): Return void.
7245 * c-valprint.c (c_val_print): Return void.
7246 * c-lang.h (c_val_print): Return void.
7247 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7249 * ada-lang.h (ada_val_print): Return void.
7251 2012-03-01 Tom Tromey <tromey@redhat.com>
7253 * value.h (val_print): Return void.
7254 * valprint.c (val_print): Return void.
7256 2012-03-01 Tom Tromey <tromey@redhat.com>
7258 * value.h (common_val_print): Return void.
7259 * valprint.c (common_val_print): Return void.
7261 2012-03-01 Tom Tromey <tromey@redhat.com>
7263 * value.h (value_print): Return void.
7264 * valprint.c (value_print): Return void.
7265 * p-valprint.c (pascal_value_print): Return void.
7266 * p-lang.h (pascal_value_print): Return void.
7267 * language.h (struct language_defn) <la_value_print>: Return
7269 * language.c (unk_lang_value_print): Return void.
7270 * jv-valprint.c (java_value_print): Return void.
7271 * jv-lang.h (java_value_print): Return void.
7272 * f-valprint.c (c_value_print): Don't declare.
7274 * c-valprint.c (c_value_print): Return void.
7275 * c-lang.h (c_value_print): Return void.
7276 * ada-valprint.c (ada_value_print): Return void.
7277 * ada-lang.h (ada_value_print): Return void.
7279 2012-03-01 Tom Tromey <tromey@redhat.com>
7281 * value.c (value_primitive_field): Handle virtual base classes.
7283 2012-03-01 Tom Tromey <tromey@redhat.com>
7285 * gdbtypes.h (struct vbase): Remove.
7287 2012-03-01 Tom Tromey <tromey@redhat.com>
7289 * c-valprint.c (print_function_pointer_address): Move...
7290 * valprint.c: ... here. Make non-static.
7291 * m2-valprint.c (print_function_pointer_address): Remove.
7292 * valprint.h (print_function_pointer_address): Declare.
7294 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7296 * NEWS: Document the fact that one can provide a condition when
7297 creating an Ada exception catchpoint.
7299 2012-03-01 Tom Tromey <tromey@redhat.com>
7301 * valprint.c (val_print_type_code_flags): Fix placement of
7304 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7306 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7307 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7308 environment variable before calling update-copyright.
7310 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7312 * gnulib/extra/update-copyright: Update to the latest from
7313 gnulib's git repository.
7314 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7315 variable to 2 instead of 1.
7317 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7319 * varobj.c (c_value_of_variable): Remove dead code.
7321 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7323 * ada-lex.p (processId): Do not modify already encoded IDs.
7324 Update function documentation.
7326 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7328 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7329 "name" with "struct symbol *name_sym".
7330 * ada-exp.y (write_var_or_type): Update call to
7331 ada_find_renaming_symbol.
7332 "name" with "struct symbol *name_sym". Adjust Implementation
7333 accordingly. Adjust the function documentation.
7335 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7337 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7338 * ada-lang.c (ada_find_any_type): Add advance declaration.
7339 Make static. Replace ada_find_any_symbol by
7340 ada_find_any_type_symbol.
7341 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7342 Improve function description. Make static.
7343 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7344 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7346 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7348 * ada-lang.c (struct tag_args): Delete.
7349 (ada_get_tsd_type): Function body moved up in source file.
7350 (ada_tag_name_1, ada_tag_name_2): Delete.
7351 (ada_get_tsd_from_tag): New function.
7352 (ada_tag_name_from_tsd): New function.
7353 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7354 to determine the tag name.
7356 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7358 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7360 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7363 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7365 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7367 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7369 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7372 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7374 * ada-lang.c (constrained_packed_array_type): If there is a
7375 parallel XA type, use it to determine the array index type.
7377 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7379 * ada-valprint.c (ada_val_print_1): If our value is a reference
7380 to an array descriptor, dereference it before converting it
7383 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7385 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7386 creating fixed value.
7387 (ada_value_ind, ada_coerce_ref, assign_component)
7388 (ada_evaluate_subexp): Remove call to unwrap_value before
7389 call to ada_to_fixed_value.
7391 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7393 * ada-lang.c (to_fixed_array_type): Set result's type name.
7395 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7397 * ada-lang.c (catch_ada_exception_command_split): Add new
7398 argument cond_string. Add support for condition at end of
7399 "catch exception" commands.
7400 (ada_decode_exception_location): Add new argument cond_string.
7401 Update call to catch_ada_exception_command_split.
7402 (create_ada_exception_catchpoint): Add new argument cond_string.
7403 Set the breakpoint condition if needed.
7404 (catch_ada_exception_command): Update call to
7405 ada_decode_exception_location.
7406 (ada_decode_assert_location): Add function documentation.
7407 Add support for condition at end of "catch assert" command.
7408 (catch_assert_command): Update calls to ada_decode_assert_location
7409 and create_ada_exception_catchpoint.
7411 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7413 Fix disp-step-syscall.exp: fork: single step over fork.
7414 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7415 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7416 comment, change parameters gdbarch and ptid to regcache. Remove
7417 parameter regcache, initialize gdbarch from regcache here.
7418 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7420 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7422 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7423 'syscall'. Make the 'int' check more strict.
7425 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7427 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7428 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7429 (i386_linux_intx80_sysenter_syscall_record): ... here.
7430 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7431 Use the renamed function name.
7433 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7435 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7436 * breakpoint.c (until_break_command): Likewise.
7437 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7438 * infcall.c (call_function_by_hand): Likewise.
7439 * infcmd.c (finish_forward): Likewise.
7440 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7442 2012-02-28 Tristan Gingold <gingold@adacore.com>
7444 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7445 avoid variable assignments inside condition.
7447 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7449 Fix static analysis issue found by cppcheck.
7450 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7451 uninitialized BUF for size 2.
7453 2012-02-27 Chris Dearman <chris@mips.com>
7454 Nathan Froyd <froydnj@codesourcery.com>
7455 Maciej W. Rozycki <macro@codesourcery.com>
7457 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7458 (mips16_instruction_has_delay_slot): Likewise.
7459 (mips_segment_boundary): Likewise.
7460 (mips_adjust_breakpoint_address): Likewise.
7461 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7463 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7464 Maciej W. Rozycki <macro@codesourcery.com>
7466 * infrun.c (handle_inferior_event): Don't proceed through
7467 shared library trampolines if stepping at the machine
7470 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7472 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7475 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7477 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7478 (sh_stub_unwind_sniffer): New functions.
7479 (sh_stub_unwind): New variable.
7480 (sh_gdbarch_init): Wire everything.
7482 2012-02-27 Pedro Alves <palves@redhat.com>
7484 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7485 (linux_nat_post_attach_wait): Adjust to use
7486 linux_proc_pid_is_stopped.
7487 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7488 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7489 based on pid_is_stopped from both linux-nat.c and
7490 gdbserver/linux-low.c, and renamed.
7492 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7494 * remote.c (remote_watchpoint_addr_within_range): New function.
7495 (init_remote_ops): Use it.
7497 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7499 * target.h (target_watchpoint_addr_within_range): Document macro.
7501 2012-02-24 Pedro Alves <palves@redhat.com>
7503 * stack.c (set_last_displayed_sal): Issue internal_error instead
7504 of warning, and issue it after clearing the last displayed sal.
7506 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7507 Pedro Alves <palves@redhat.com>
7509 * breakpoint.c (until_break_command): Install breakpoints after
7510 all frame manipulations.
7512 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7514 * remote.c (remote_supports_cond_breakpoints): New forward
7516 (remote_add_target_side_condition): New function.
7517 (remote_insert_breakpoint): Add target-side breakpoint
7518 conditional if supported.
7519 (remote_insert_hw_breakpoint): Likewise.
7520 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7523 * target.c (update_current_target): Inherit
7524 to_supports_evaluation_of_breakpoint_conditions.
7525 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7527 * target.h (struct target_ops)
7528 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7529 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7531 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7532 (condition_evaluation_both, condition_evaluation_auto,
7533 condition_evaluation_host, condition_evaluation_target,
7534 condition_evaluation_enums, condition_evaluation_mode_1,
7535 condition_evaluation_mode): New static globals.
7536 (translate_condition_evaluation_mode): New function.
7537 (breakpoint_condition_evaluation_mode): New function.
7538 (gdb_evaluates_breakpoint_condition_p): New function.
7539 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7540 (mark_breakpoint_modified): New function.
7541 (mark_breakpoint_location_modified): New function.
7542 (set_condition_evaluation_mode): New function.
7543 (show_condition_evaluation_mode): New function.
7544 (bp_location_compare_addrs): New function.
7545 (get_first_location_gte_addr): New helper function.
7546 (set_breakpoint_condition): Free condition bytecode if locations
7547 has become unconditional. Call mark_breakpoint_modified (...).
7548 (condition_command): Call update_global_location_list (1) for
7550 (breakpoint_xfer_memory): Use is_breakpoint (...).
7551 (is_breakpoint): New function.
7552 (parse_cond_to_aexpr): New function.
7553 (build_target_condition_list): New function.
7554 (insert_bp_location): Handle target-side conditional
7555 breakpoints and call build_target_condition_list (...).
7556 (update_inserted_breakpoint_locations): New function.
7557 (insert_breakpoint_locations): Handle target-side conditional
7559 (bpstat_check_breakpoint_conditions): Add comment.
7560 (bp_condition_evaluator): New function.
7561 (bp_location_condition_evaluator): New function.
7562 (print_breakpoint_location): Print information on where the condition
7564 (print_one_breakpoint_location): Likewise.
7565 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7566 breakpoint location.
7567 (force_breakpoint_reinsertion): New functions.
7568 (update_global_location_list): Handle target-side breakpoint
7570 Reinsert locations that are already inserted if conditions have
7572 (bp_location_dtor): Free agent expression bytecode.
7573 (disable_breakpoint): Call mark_breakpoint_modified (...).
7574 Call update_global_location_list (...) with parameter 1 for breakpoints.
7575 (disable_command): Call mark_breakpoint_location_modified (...).
7576 Call update_global_location_list (...) with parameter 1 for breakpoints.
7577 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7578 (enable_command): mark_breakpoint_location_modified (...).
7579 (_initialize_breakpoint): Update documentation and add
7580 condition-evaluation breakpoint subcommand.
7582 * breakpoint.h: Include ax.h.
7583 (condition_list): New data structure.
7584 (condition_status): New enum.
7585 (bp_target_info) <cond_list>: New field.
7586 (bp_location) <condition_changed, cond_bytecode>: New fields.
7587 (is_breakpoint): New prototype.
7589 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7591 * remote.c (remote_state) <cond_breakpoints>: New field.
7592 (PACKET_ConditionalBreakpoints): New enum.
7593 (remote_cond_breakpoint_feature): New function.
7594 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7595 (remote_supports_cond_breakpoints): New function.
7596 (_initialize_remote): Add new packet configuration for
7597 target-side conditional breakpoints.
7599 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7601 * NEWS: Mention target-side conditional breakpoint support,
7602 new condition-evaluation breakpoint subcommand and remote
7605 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7607 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7610 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7612 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7613 (after_prologue): Remove.
7615 2012-02-23 Tom Tromey <tromey@redhat.com>
7617 * jv-valprint.c (java_val_print): Remove dead code.
7619 2012-02-23 Tristan Gingold <gingold@adacore.com>
7621 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7622 known_tasks_element and known_tasks_length fields.
7623 (read_known_tasks_array): Change argument type. Use pointer type
7624 and number of elements from DATA. Adjust.
7625 (read_known_tasks_list): Likewise.
7626 (get_known_tasks_addr): Remove.
7627 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7628 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7629 type and array length. Merge former get_known_tasks_addr code.
7631 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7634 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7635 it after set_momentary_breakpoint.
7637 2012-02-22 Sterling Augustine <saugustine@google.com>
7640 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7642 2012-02-22 Gary Benson <gbenson@redhat.com>
7644 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7645 (find_slot_in_mapped_hash): Likewise.
7647 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7650 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7651 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7652 * configure: Regenerate.
7654 2012-02-21 Tristan Gingold <gingold@adacore.com>
7655 Pedro Alves <palves@redhat.com>
7657 * ia64-tdep.c: Do not include libunwind-ia64.h.
7658 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7659 Include libunwind-ia64.h instead of libunwind.h.
7660 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7661 for libunwind.h existence.
7662 * configure, config.in: Regenerate.
7664 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7666 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7667 instead of value_rtti_target_type.
7668 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7669 instead of value_rtti_target_type.
7670 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7671 value_rtti_target_type.
7672 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7673 (value_rtti_target_type): Rename to ...
7674 (value_rtti_indirect_type): ... here and make it indirect. Update
7676 * value.c (readjust_indirect_value_type): New function.
7677 (coerce_ref): Support for enclosing type setting for references
7678 with readjust_indirect_value_type.
7679 * value.h (readjust_value_type): New declaration.
7680 (value_rtti_target_type): Rename to ...
7681 (value_rtti_indirect_type): ... here.
7683 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7685 * MAINTAINERS (Write After Approval): Add myself to the list.
7687 2012-02-20 Doug Evans <dje@google.com>
7689 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7690 Rename objfile_p_char parameter to objfilep.
7691 (build_objfile_section_table): Result is now void. All callers
7693 * objfiles.h (struct objfile): Tweak comments, whitespace.
7694 (build_objfile_section_table): Update.
7696 * elfread.c (elf_symfile_segments): Fix warning text.
7698 2012-02-20 Tom Tromey <tromey@redhat.com>
7701 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7702 particular set of file names once.
7703 (dw2_map_symbol_filenames): Likewise.
7705 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7708 * main.c (write_files): Remove the declaration.
7709 (external_editor_command): Move the declaration ...
7710 [GDBTK] (external_editor_command): ... here. Fix the comment.
7712 2012-02-20 Tom Tromey <tromey@redhat.com>
7714 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7717 2012-02-20 Tristan Gingold <gingold@adacore.com>
7719 * darwin-nat.h (enum darwin_msg_state): Add comments.
7721 2012-02-20 Tristan Gingold <gingold@adacore.com>
7723 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7726 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7728 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7729 between function description and implementation.
7731 2012-02-17 Tom Tromey <tromey@redhat.com>
7734 * python/py-event.c (event_object_getset): New global.
7735 (event_object_type): Reference it.
7736 * python/py-type.c (field_object_getset): New global.
7737 (field_object_type): Reference it.
7738 * python/python-internal.h (gdb_py_generic_dict): Declare.
7739 * python/py-utils.c (gdb_py_generic_dict): New function.
7741 2012-02-17 Tristan Gingold <gingold@adacore.com>
7743 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7745 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7747 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7748 TYPE_CALLING_CONVENTION annotation.
7750 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7752 * MAINTAINERS: Add rx to target ISA section.
7753 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7754 (ALLDEPFILES): Add rx-tdep.c.
7756 2012-02-16 Tom Tromey <tromey@redhat.com>
7758 * symfile.c (symbol_file_add_main_1): Use inferior's
7760 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7761 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7763 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7765 (follow_exec): Use inferior's symfile_flags.
7766 * inferior.h (struct inferior) <symfile_flags>: New field.
7768 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7771 * remote-sim.c (gdbsim_create_inferior): Call error() when
7772 sim_create_inferior() fails.
7774 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7776 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7778 2012-02-16 Tom Tromey <tromey@redhat.com>
7781 * thread.c (struct current_thread_cleanup) <was_removable>: New
7783 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7784 (make_cleanup_restore_current_thread): Initialize new field.
7786 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7788 * MAINTAINERS: Add rl78 to target ISA section.
7789 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7790 (ALLDEPFILES): Add rl78-tdep.c.
7791 * NEWS: Mention rl78 as a new target.
7793 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7795 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7797 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7799 2012-02-15 Tom Tromey <tromey@redhat.com>
7802 * infcmd.c (registers_info): Print just the current register's
7805 2012-02-15 Tom Tromey <tromey@redhat.com>
7807 * python/py-symbol.c (sympy_value): Use _().
7809 2012-02-15 Pedro Alves <palves@redhat.com>
7811 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7812 output to be like native targets'.
7813 (remote_pid_to_str): Special case the null ptid.
7815 2012-02-14 Stan Shebs <stan@codesourcery.com>
7817 * NEWS: Mention enable count command.
7818 * breakpoint.h (struct breakpoint): New field enable_count.
7819 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7820 (enable_breakpoint): Add arg to call.
7821 (struct disp_data): New struct.
7822 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7823 (do_map_enable_once_breakpoint): Create a struct and pass it.
7824 (do_map_enable_delete_breakpoint): Ditto.
7825 (do_map_enable_count_breakpoint): New function.
7826 (enable_count_command): New function.
7827 (bpstat_stop_status): Decrement enable_count.
7828 (print_one_breakpoint_location): Report enable count.
7829 (_initialize_breakpoint): Add enable count command.
7831 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7833 * rl78-tdep.c (reggroups.h): Include.
7834 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7835 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7836 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7837 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7838 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7839 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7840 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7841 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7842 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7843 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7844 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7845 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7846 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7847 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7848 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7849 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7850 beginning of register list.
7851 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7852 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7853 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7854 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7855 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7856 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7857 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7858 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7859 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7860 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7861 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7862 the pseudo registers. Rearrange other pseudo registers too so
7863 that the bank registers appear at the end.
7864 (rl78_register_type): Account for the fact that the byte sized
7865 bank registers are now pseudo-registers.
7866 (rl78_register_name): Rearrange the register name array. Make
7867 initial set of raw banked registers inaccessible.
7868 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7869 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7870 case for copying bytes back and forth between raw and pseudo
7871 versions of the banked registers. Update other cases to reflect
7873 (rl78_return_value): Update to account for changed names of
7875 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7876 rl78_register_sim_regno().
7878 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7880 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7881 the name parameter being passed to find_pc_partial_function().
7883 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7885 * MAINTAINERS: Step down from being ia64 target maintainer.
7887 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7889 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7890 compilation warning.
7892 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7894 Fix crash on loaded shlibs without loaded exec_bfd.
7895 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7896 (set_section_command): Replace exec_bfd by p->bfd.
7898 2012-02-10 Tom Tromey <tromey@redhat.com>
7900 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7901 when we have a C++ qualified name.
7903 2012-02-10 Pedro Alves <palves@redhat.com>
7905 * inferior.c (inferior_pid_to_str): New.
7906 (print_inferior, inferior_command): Use it.
7908 2012-02-10 Pedro Alves <palves@redhat.com>
7910 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7912 * configure: Regenerate.
7914 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7916 * linespec.c (decode_line_internal): Fix comment correctness.
7918 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7921 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7922 * amd64bsd-nat.c: Add support for debug registers (adapted from
7924 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7925 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7926 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7927 (amd64bsd_dr_get_control): New functions.
7928 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7929 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7930 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7931 watchpoints initialization.
7932 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7934 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7936 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7938 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7940 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7942 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7944 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7946 * language.h (symbol_name_cmp_ftype): Renames
7947 symbol_name_match_p_ftype.
7948 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7949 la_get_symbol_name_match_p.
7950 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7951 ada_get_symbol_name_match_p. Update comment.
7952 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7953 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7954 Renames symbol_name_match_p. Update field type.
7955 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7956 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7957 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7958 "la_get_symbol_name_cmp" in comments.
7959 * language.c: Likewise.
7961 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7963 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7965 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7966 (amd64_sol2_gregset32_reg_offs): Likewise.
7968 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7970 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7971 of the returned BFD is allocated by GDB.
7973 2012-02-07 Tom Tromey <tromey@redhat.com>
7976 * python/python-internal.h (frame_object_type): Declare.
7977 * python/py-symbol.c (sympy_needs_frame): New function.
7978 (sympy_value): New function.
7979 (symbol_object_getset): Add "needs_frame".
7980 (symbol_object_methods): Add "value".
7981 * python/py-frame.c (frame_object_type): No longer static.
7983 2012-02-07 Tom Tromey <tromey@redhat.com>
7986 * python/py-symbol.c (sympy_line): New function.
7987 (symbol_object_getset): Add "line".
7989 2012-02-07 Tom Tromey <tromey@redhat.com>
7991 * charset.c (find_charset_names): Check 'in' against NULL.
7993 2012-02-06 Doug Evans <dje@google.com>
7995 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7996 and fields.name members from char * to const char *. All uses updated.
7997 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7998 from char * to const char *. All uses updated.
7999 (type_name_no_tag): Update.
8000 (lookup_unsigned_typename, lookup_signed_typename): Update.
8001 * gdbtypes.c (type_name_no_tag): Change result type
8002 from char * to const char *. All callers updated.
8003 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8004 name parameter from char * to const char *.
8005 * symtab.h (struct cplus_specific): Change type of demangled_name
8006 member from char * to const char *. All uses updated.
8007 (struct general_symbol_info): Change type of name and
8008 mangled_lang.demangled_name members from char * to const char *.
8010 (symbol_get_demangled_name, symbol_natural_name): Update.
8011 (symbol_demangled_name, symbol_search_name): Update.
8012 * symtab.c (symbol_get_demangled_name): Change result type
8013 from char * to const char *. All callers updated.
8014 (symbol_natural_name, symbol_demangled_name): Ditto.
8015 (symbol_search_name): Ditto.
8016 (completion_list_add_name): Change type of symname,sym_text,
8017 text,word parameters from char * to const char *.
8018 (completion_list_objc_symbol): Change type of sym_text,
8019 text,word parameters from char * to const char *.
8020 * ada-lang.c (find_struct_field): Change type of name parameter
8021 from char * to const char *.
8022 (encoded_ordered_before): Similarly for N0,N1 parameters.
8023 (old_renaming_is_invisible): Similarly for function_name parameter.
8024 (ada_type_name): Change result type from char * to const char *.
8025 All callers updated.
8026 * ada-lang.h (ada_type_name): Update.
8027 * buildsym.c (hashname): Change type of name parameter
8028 from char * to const char *.
8029 * buildsym.h (hashname): Update.
8030 * dbxread.c (end_psymtab): Change type of include_list parameter
8031 from char ** to const char **.
8032 * dwarf2read.c (determine_prefix): Change result type
8033 from char * to const char *. All callers updated.
8034 * f-lang.c (find_common_for_function): Change type of name, funcname
8035 parameters from char * to const char *.
8036 * f-lang.c (find_common_for_function): Update.
8037 * f-valprint.c (list_all_visible_commons): Change type of funcname
8038 parameters from char * to const char *.
8039 * gdbarch.sh (static_transform_name): Change type of name parameter
8040 and result from char * to const char *.
8041 * gdbarch.c: Regenerate.
8042 * gdbarch.h: Regenerate.
8043 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8044 of name parameter from char * to const char *.
8045 * jv-lang.c (java_primitive_type_from_name): Ditto.
8046 (java_demangled_signature_length): Similarly for signature parameter.
8047 (java_demangled_signature_copy): Ditto.
8048 (java_demangle_type_signature): Ditto.
8049 * jv-lang.h (java_primitive_type_from_name): Update.
8050 (java_demangle_type_signature): Update.
8051 * objc-lang.c (specialcmp): Change type of a,b parameters
8052 from char * to const char *.
8053 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8054 from char * to const char *. All callers updated.
8055 * p-lang.h (is_pascal_string_type): Update.
8056 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8057 of name parameter from char * to const char *.
8058 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8059 * utils.c (fprintf_symbol_filtered): Ditto.
8060 * defs.h (fprintf_symbol_filtered): Update.
8061 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8062 * stabsread.h (end_psymtab): Update.
8063 * stack.c (find_frame_funname): Change type of funname parameter
8064 from char ** to const char **.
8065 * stack.h (find_frame_funname): Update.
8066 * typeprint.c (type_print): Change type of varstring parameter
8067 from char * to const char *.
8068 * value.h (type_print): Update.
8069 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8070 from char * to const char *. All callers updated.
8071 (xcoff_end_psymtab): Change type of include_list parameter
8072 from char ** to const char **. All callers updated.
8073 (swap_sym): Similarly for name parameter. All callers updated.
8074 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8076 (process_coff_symbol): Use xstrdup.
8077 * stabsread.c (stabs_method_name_from_physname): Renamed from
8078 update_method_name_from_physname. Change result type from void
8079 to char *. All callers updated.
8080 (read_member_functions): In has_destructor case, store name in objfile
8081 obstack instead of malloc space. In !has_stub case, fix mem leak.
8083 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8085 * configure: Rebuild.
8086 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8089 2012-02-03 Kevin Buettner <kevinb@redhat.com>
8091 * configure.tgt (rl78-*-elf): New target.
8092 * rl78-tdep.c: New file.
8094 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8096 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8097 and continue the loop. Add QUIT statement.
8099 2012-02-03 Tom Tromey <tromey@redhat.com>
8102 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8103 bfd_lookup_symbol_from_symtab.
8104 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8105 gdb_bfd_lookup_symbol_from_symtab.
8107 2012-02-03 Joel Brobecker <brobecker@adacore.com>
8109 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8110 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8111 symbol. Add assertion that sym2 is never NULL.
8113 2012-02-02 Doug Evans <dje@google.com>
8115 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8116 "name" parameter to const char ** from char **. All callers updated.
8117 (find_pc_partial_function): Ditto.
8118 (cache_pc_function_name): Change type to const char * from char *.
8119 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8120 (find_pc_partial_function): Update.
8121 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8122 type of "name" parameter to const char * from char *.
8124 * arch-utils.c (generic_in_solib_return_trampoline): Change
8125 type of "name" parameter to const char * from char *.
8126 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8127 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8128 type of "name" parameter to const char * from char *.
8129 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8130 * gdbarch.c: Regenerate.
8131 * gdbarch.h: Regenerate.
8132 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8133 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8134 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8135 type of "name" parameter to const char * from char *.
8136 * skip.c (skip_function_pc): Ditto.
8137 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8138 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8139 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8140 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8141 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8142 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8143 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8144 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8145 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8147 2012-02-02 Pedro Alves <palves@redhat.com>
8149 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8150 the current inferior has no execution. Make sure the current
8151 remote process matches gdb's current inferior.
8153 2012-02-02 Tom Tromey <tromey@redhat.com>
8156 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8159 2012-02-02 Tom Tromey <tromey@redhat.com>
8162 * symtab.c (lookup_language_this): Set block_found.
8164 2012-02-01 Tom Tromey <tromey@redhat.com>
8167 * jit.c (struct jit_inferior_data): Rewrite.
8168 (struct jit_objfile_data): New.
8169 (get_jit_objfile_data): New function.
8170 (add_objfile_entry): Update.
8171 (jit_read_descriptor): Return int. Replace descriptor_addr
8172 argument with inf_data. Update. Don't call error.
8173 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8175 (jit_inferior_init): Don't look up descriptor. Don't call error.
8176 (jit_reset_inferior_data_and_breakpoints)
8177 (jit_inferior_created_observer): Remove.
8178 (jit_inferior_exit_hook): Update.
8179 (jit_executable_changed_observer): Remove.
8180 (jit_event_handler): Update.
8181 (free_objfile_data): Reset inferior data if needed.
8182 (_initialize_jit): Update.
8184 2012-02-01 Tom Tromey <tromey@redhat.com>
8186 * jit.c (bfd_open_from_target_memory): Move higher in file.
8188 2012-02-01 Tristan Gingold <gingold@adacore.com>
8190 * libunwind-frame.c (libunwind_load): Display message if dlopen
8193 2012-02-01 Gary Benson <gbenson@redhat.com>
8195 * symtab.h (symbol_found_callback_ftype): New typedef.
8196 (iterate_over_symbols): Use the above.
8197 * symtab.c (iterate_over_symbols): Likewise.
8198 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8199 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8200 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8201 (iterate_name_matcher): Document return values.
8202 (collect_one_symbol): Likewise.
8203 (collect_function_symbols): Likewise.
8204 (collect_symbols): Likewise.
8206 2012-02-01 Tom Tromey <tromey@redhat.com>
8208 * ada-lang.c (resolve_subexp): Update.
8209 (ada_lookup_symbol_list): Add 'full_search' argument.
8210 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8211 ada_lookup_symbol_list.
8212 (ada_lookup_encoded_symbol): Update.
8213 (get_var_value): Update.
8214 * ada-exp.y (block_lookup): Update.
8215 (write_var_or_type): Update.
8216 (write_name_assoc): Update.
8217 * ada-lang.h (ada_lookup_symbol_list): Update.
8219 2012-01-31 Tom Tromey <tromey@redhat.com>
8221 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8224 2012-01-31 Doug Evans <dje@google.com>
8226 * symtab.h: Remove outdated comment.
8227 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
8229 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8231 Fix build error in Darwin port.
8232 * i386-darwin-nat.c: Include i386-nat.h.
8234 2012-01-30 Tom Tromey <tromey@redhat.com>
8236 PR breakpoints/13568:
8237 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8238 argument. Check for recursive includes.
8239 (dwarf_decode_macros): Create an include hash.
8241 2012-01-30 Michael Eager <eager@eagercon.com>
8243 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8244 * ppc-linux-tdep.c: Include glibc-tdep.h.
8245 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
8246 (powerpc_linux_in_plt_stub): New function.
8247 (powerpc_linux_in_dynsym_resolve_code): New function.
8248 (ppc_skip_trampoline_code): New function.
8249 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8250 Use glibc_skip_solib_resolver.
8252 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8254 Code cleanup: Make 1440 bytes of data segment read-only.
8255 * arch-utils.c (endian_enum): Make it const char *const [].
8256 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8258 * breakpoint.c (always_inserted_enums): Likewise.
8259 * cli/cli-cmds.c (script_ext_enums): Likewise.
8260 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8261 enumlist parameter const char *const *.
8262 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8263 const char *const *.
8264 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8265 parameter const char *const *.
8266 * cris-tdep.c (cris_modes): Make it const char *const [].
8267 * filesystem.c (target_file_system_kinds): Likewise.
8268 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8269 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8270 (can_use_displaced_stepping_enum, scheduler_enums)
8271 (exec_direction_names): Likewise.
8272 * language.c (_initialize_language): Make the type_or_range_names and
8273 case_sensitive_names variables const char *const [].
8274 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8275 * python/python.c (python_excp_enums): Likewise.
8276 * remote.c (interrupt_sequence_modes): Likewise.
8277 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8278 * serial.c (logbase_enums): Likewise.
8279 * sh-tdep.c (sh_cc_enum): Likewise.
8280 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8282 * symtab.c (multiple_symbols_modes): Likewise.
8283 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8285 * utils.c (internal_problem_modes): Likewise.
8287 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8289 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8290 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8293 2012-01-27 Doug Evans <dje@google.com>
8295 * configure.ac (with_python): Fix absolute path handling for win32.
8296 * configure: Regenerate.
8298 2012-01-26 Doug Evans <dje@google.com>
8300 * symtab.c: Whitespace cleanup, no code changes.
8302 * symtab.c (lookup_symbol_in_language): Improve comment.
8303 (lookup_symbol_aux): Fix comment.
8305 * psymtab.c (add_psymbol_to_list): Result is now "void".
8306 * psympriv.h (add_psymbol_to_list): Update.
8308 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8310 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8312 Do not open script filenames twice.
8313 * cli/cli-cmds.c (source_script_from_stream): Pass to
8314 source_python_script also STREAM.
8315 * python/py-auto-load.c (source_section_scripts): Pass to
8316 source_python_script_for_objfile also STREAM.
8317 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8319 * python/python-internal.h (source_python_script_for_objfile): New
8320 parameter file, rename parameter file to filename.
8321 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8322 instead if !_WIN32. Update the function comment.
8323 (source_python_script, source_python_script_for_objfile)
8324 (source_python_script): New parameter file, rename parameter file to
8325 filename. Pass FILENAME to python_run_simple_file.
8326 * python/python.h (source_python_script): New parameter file, rename
8327 parameter file to filename.
8329 2012-01-26 Pedro Alves <palves@redhat.com>
8331 * corelow.c (core_has_fake_pid): Delete.
8332 (core_close): Delete references to `core_has_fake_pid'.
8333 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8334 (core_open): Delete references to `core_has_fake_pid'.
8335 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8338 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8340 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8341 Remove language parameter from name_matcher. Adjust the comment.
8342 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8343 Remove language parameter.
8344 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8345 * linespec.c (iterate_name_matcher): Likewise.
8346 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8347 name_matcher. Adjust call accordingly.
8348 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8349 (maintenance_check_symtabs): Adjust type of parameter "fun".
8350 * psymtab.h (maintenance_check_symtabs): Likewise.
8352 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8354 * language.h (symbol_name_match_p_ftype): New typedef.
8355 (struct language_defn): Replace field la_symbol_name_compare
8356 by la_get_symbol_name_match_p.
8357 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8358 (ada_language_defn): Use it.
8359 * linespec.c (struct symbol_matcher_data): New type.
8360 (iterate_name_matcher): Rewrite.
8361 (iterate_over_all_matching_symtabs): Pass a pointer to
8362 a symbol_matcher_data struct to expand_symtabs_matching
8363 instead of just the lookup name.
8364 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8365 opencl-lang.c, p-lang.c, language.c: Delete field
8366 la_symbol_name_compare, and replace by NULL for new field
8367 la_get_symbol_name_match_p.
8368 * symfile.h (struct quick_symbol_functions): Update comment.
8370 2012-01-25 Tom Tromey <tromey@redhat.com>
8372 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8375 2012-01-24 Tom Tromey <tromey@redhat.com>
8378 * solib.c (update_solib_list): Update the program space's
8379 added_solibs and deleted_solibs fields.
8380 * progspace.h (struct program_space) <added_solibs,
8381 deleted_solibs>: New fields.
8382 (clear_program_space_solib_cache): Declare.
8383 * progspace.c (release_program_space): Call
8384 clear_program_space_solib_cache.
8385 (clear_program_space_solib_cache): New function.
8386 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8387 bpstat_stop_status. Use handle_solib_event.
8388 * breakpoint.c: Include gdb_regex.h.
8389 (print_solib_event): New function.
8390 (bpstat_print): Use print_solib_event.
8391 (bpstat_stop_status): Add special case for bp_shlib_event.
8392 (handle_solib_event): New function.
8393 (bpstat_what): Use handle_solib_event.
8394 (struct solib_catchpoint): New.
8395 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8396 (breakpoint_hit_catch_solib, check_status_catch_solib)
8397 (print_it_catch_solib, print_one_catch_solib)
8398 (print_mention_catch_solib, print_recreate_catch_solib): New
8400 (catch_solib_breakpoint_ops): New global.
8401 (catch_load_or_unload, catch_load_command_1)
8402 (catch_unload_command_1): New functions.
8403 (internal_bkpt_check_status): Add special case for
8405 (internal_bkpt_print_it): Use print_solib_event.
8406 (initialize_breakpoint_ops): Initialize
8407 catch_solib_breakpoint_ops.
8408 (_initialize_breakpoint): Register "catch load" and "catch
8410 * breakpoint.h (handle_solib_event): Declare.
8411 * NEWS: Add entry for "catch load" and "catch unload".
8413 2012-01-24 Tom Tromey <tromey@redhat.com>
8415 * ada-lang.c: Include gdb_vecs.h.
8416 * charset.c: Include gdb_vecs.h.
8417 * tracepoint.h: Include gdb_vecs.h.
8418 * gdb_vecs.h: New file.
8420 2012-01-24 Pedro Alves <pedro@codesourcery.com>
8422 * breakpoint.c (breakpoint_hit_catch_fork)
8423 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8424 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8425 * infrun.c (inferior_has_forked, inferior_has_vforked)
8426 (inferior_has_execd, inferior_has_called_syscall): Delete.
8427 (handle_syscall_event): Get syscall_number from the execution
8428 control state's wait status.
8429 (wait_for_inferior): Don't clear syscall_number.
8431 2012-01-24 Pedro Alves <palves@redhat.com>
8433 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8434 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8435 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8436 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8438 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8439 false for events other than TARGET_SIGNAL_TRAP.
8440 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8442 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8443 events other than TARGET_SIGNAL_TRAP.
8444 (tracepoint_breakpoint_hit): Add `ws' parameter.
8445 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8447 (bpstat_stop_status): Same.
8448 (pc_at_non_inline_function): Same.
8449 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8450 to pass the current event's waitstatus to bpstat_stop_status
8451 and pc_at_non_inline_function.
8453 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8456 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8457 Update the function comment for it.
8458 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8459 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8462 2012-01-24 Pedro Alves <palves@redhat.com>
8464 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8465 outside `bs->stop' block.
8466 (bpstat_what): Rework bp_shlib_event handling.
8467 (internal_bkpt_check_status): If the breakpoint is a
8468 bp_shlib_event, then set bs->stop and bs->print if
8469 stop_on_solib_events is set.
8471 2012-01-24 Gary Benson <gbenson@redhat.com>
8473 Delete #if 0'd out code.
8474 * stack.c (print_frame_label_vars): Remove.
8475 (catch_info): Likewise.
8476 (_initialize_stack): Remove "info catch" command.
8477 * NEWS: Mention the above.
8479 2012-01-24 Pedro Alves <palves@redhat.com>
8481 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8483 (remote_notice_new_inferior): If the remote end doesn't support
8484 the multiprocess extensions, then the PID is fake.
8485 (add_current_inferior_and_thread): New.
8486 (remote_start_remote): Use it.
8487 (extended_remote_attach_1): Adjust.
8488 (extended_remote_create_inferior_1): Use
8489 add_current_inferior_and_thread.
8491 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8493 Fix watchpoints to be specific for each inferior.
8494 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8495 current_program_space.
8496 * i386-nat.c (i386_inferior_data_cleanup): New.
8497 (i386_inferior_data_get): Replace variable inf_data_local by an
8499 (i386_use_watchpoints): Initialize i386_inferior_data.
8500 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8501 specific iterate_over_lwps.
8503 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8505 Fix watchpoints across inferior fork.
8506 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8507 comment for linux_nat_iterate_watchpoint_lwps.
8508 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8509 linux_nat_iterate_watchpoint_lwps.
8510 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8511 * i386-linux-nat.c (update_debug_registers_callback): Update the
8512 comment for linux_nat_iterate_watchpoint_lwps.
8513 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8514 linux_nat_iterate_watchpoint_lwps.
8515 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8516 * i386-nat.c: Include inferior.h.
8517 (dr_mirror): Remove.
8518 (i386_inferior_data, struct i386_inferior_data)
8519 (i386_inferior_data_get): New.
8520 (i386_debug_reg_state): Use i386_inferior_data_get.
8521 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8522 (i386_insert_watchpoint, i386_remove_watchpoint)
8523 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8524 (i386_remove_hw_breakpoint): New variable state, use
8525 i386_debug_reg_state instead of DR_MIRROR.
8526 * linux-nat.c (delete_lwp): New declaration.
8527 (num_lwps): Move here from downwards.
8528 (delete_lwp_cleanup): New.
8529 (linux_child_follow_fork): Create new child_lp, call
8530 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8532 (num_lwps): Move upwards.
8533 (linux_nat_iterate_watchpoint_lwps): New.
8534 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8535 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8537 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8541 2012-01-23 Pedro Alves <palves@redhat.com>
8543 * top.c (caution): Rename to ...
8544 (confirm): ... this.
8545 (show_caution): Rename to ...
8546 (show_confirm): ... this.
8547 (quit_cover): Adjust.
8548 (init_main): Adjust.
8549 * top.h (caution): Rename to ...
8550 (confirm): ... this.
8551 * utils.c (internal_vproblem, defaulted_query): Adjust.
8553 2012-01-23 Pedro Alves <palves@redhat.com>
8555 * top.c (caution): Update comment.
8556 (execute_command): Don't consider the current value of `caution'.
8558 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8560 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8562 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8564 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8565 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8566 * target.c (target_fileio_pwrite): Remove buffer address from
8568 (target_fileio_pread): Likewise.
8570 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8572 * NEWS: Document remote "info proc" and "generate-core-file".
8574 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8576 * gdbarch.sh (find_memory_regions): New callback.
8577 * gdbarch.c, gdbarch.h: Regenerate.
8579 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8580 callback before falling back to target method.
8582 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8583 (linux_target_install_ops): No longer install it.
8585 * linux-tdep.c (linux_find_memory_regions): New function.
8586 (linux_init_abi): Install it.
8588 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8590 * gdbarch.sh (make_corefile_notes): New architecture callback.
8591 * gdbarch.c: Regenerate.
8592 * gdbarch.h: Likewise.
8594 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8595 before target_make_corefile_notes. If NULL is returned, the
8596 target does not support core file generation.
8598 * linux-nat.c: Include "linux-tdep.h".
8599 (find_signalled_thread, find_stop_signal): Remove.
8600 (linux_nat_do_thread_registers): Likewise.
8601 (struct linux_nat_corefile_thread_data): Likewise.
8602 (linux_nat_corefile_thread_callback): Likewise.
8603 (iterate_over_spus): Likewise.
8604 (struct linux_spu_corefile_data): Likewise.
8605 (linux_spu_corefile_callback): Likewise.
8606 (linux_spu_make_corefile_notes): Likewise.
8607 (linux_nat_collect_thread_registers): New function.
8608 (linux_nat_make_corefile_notes): Replace contents by call to
8609 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8610 as native-only callback.
8612 * linux-tdep.h: Include "bfd.h".
8613 (struct regcache): Add forward declaration.
8614 (linux_collect_thread_registers_ftype): New typedef.
8615 (linux_make_corefile_notes): Add prototype.
8616 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8617 "regset.h", and "elf-bfd.h".
8618 (find_signalled_thread, find_stop_signal): New functions.
8619 (linux_spu_make_corefile_notes): Likewise.
8620 (linux_collect_thread_registers): Likewise.
8621 (struct linux_corefile_thread_data): New data structure.
8622 (linux_corefile_thread_callback): New funcion.
8623 (linux_make_corefile_notes): Likewise.
8624 (linux_make_corefile_notes_1): Likewise.
8625 (linux_init_abi): Install it.
8627 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8629 * gdbarch.sh (info_proc): New callback.
8630 * gdbarch.c, gdbarch.h: Regenerate.
8632 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8633 before falling back to the target info_proc callback.
8635 * linux-nat.c: Do not include "cli/cli-utils.h".
8636 (linux_nat_info_proc): Remove.
8637 (linux_target_install_ops): No longer install it.
8639 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8640 (read_mapping): New function.
8641 (linux_info_proc): Likewise.
8642 (linux_init_abi): Install it.
8644 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8646 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8647 * infcmd.c: (info_proc_cmd_1): New function.
8648 (info_proc_cmd): New function, moved here from equivalent routine
8649 orignally in linux-nat.c.
8650 (info_proc_cmd_mappings): Likewise.
8651 (info_proc_cmd_stat): Likewise.
8652 (info_proc_cmd_status): Likewise.
8653 (info_proc_cmd_cwd): Likewise.
8654 (info_proc_cmd_cmdline): Likewise.
8655 (info_proc_cmd_exe): Likewise.
8656 (info_proc_cmd_all): Likewise.
8657 (_initialize_infcmd): Install "info proc" command and subcommands.
8659 * target.h (struct target_ops): Add to_info_proc.
8660 (target_info_proc): Add prototype.
8661 * target.c (target_info_proc): New function.
8663 * procfs.c (procfs_info_proc): Add prototype.
8664 (info_proc_cmd): Rename into ...
8665 (procfs_info_proc): ... this. Update argument types as appropriate
8666 for a to_info_proc implementation. Handle "what" argument.
8667 (procfs_target): Install procfs_info_proc.
8668 (_initialize_procfs): No longer install "info proc" command.
8670 * linux-nat.c: (enum info_proc_what): Remove.
8671 (linux_nat_info_proc_cmd_1): Rename into ...
8672 (linux_nat_info_proc): ... this. Update argument types as appropriate
8673 for a to_info_proc implementation.
8674 (linux_nat_info_proc_cmd): Remove.
8675 (linux_nat_info_proc_cmd_mappings): Likewise.
8676 (linux_nat_info_proc_cmd_stat): Likewise.
8677 (linux_nat_info_proc_cmd_status): Likewise.
8678 (linux_nat_info_proc_cmd_cwd): Likewise.
8679 (linux_nat_info_proc_cmd_cmdline): Likewise.
8680 (linux_nat_info_proc_cmd_exe): Likewise.
8681 (linux_nat_info_proc_cmd_all): Likewise.
8682 (linux_target_install_ops): Install linux_nat_info_proc.
8683 (_initialize_linux_nat): No longer install "info proc" command
8686 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8688 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8689 * config.in, configure: Regenerate.
8691 * target.h (struct target_ops): Add to_fileio_readlink.
8692 (target_fileio_readlink): Add prototype.
8693 * target.c (target_fileio_readlink): New function.
8695 * inf-child.c: Conditionally include <sys/param.h>.
8696 (inf_child_fileio_readlink): New function.
8697 (inf_child_target): Install it.
8699 * remote.c (PACKET_vFile_readlink): New enum value.
8700 (remote_hostio_readlink): New function.
8701 (init_remote_ops): Install it.
8702 (_initialize_remote): Handle vFile:readlink packet type.
8704 2012-01-20 Pedro Alves <palves@redhat.com>
8705 Ulrich Weigand <ulrich.weigand@linaro.org>
8707 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8708 * config.in, configure: Regenerate.
8710 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8711 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8712 (target_fileio_open): Add prototype.
8713 (target_fileio_pwrite): Likewise.
8714 (target_fileio_pread): Likewise.
8715 (target_fileio_close): Likewise.
8716 (target_fileio_unlink): Likewise.
8717 (target_fileio_read_alloc): Likewise.
8718 (target_fileio_read_stralloc): Likewise.
8720 * target.c: Include "gdb/fileio.h".
8721 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8722 (default_fileio_target): New function.
8723 (target_fileio_open): Likewise.
8724 (target_fileio_pwrite): Likewise.
8725 (target_fileio_pread): Likewise.
8726 (target_fileio_close): Likewise.
8727 (target_fileio_unlink): Likewise.
8728 (target_fileio_close_cleanup): Likewise.
8729 (target_fileio_read_alloc_1): Likewise.
8730 (target_fileio_read_alloc): Likewise.
8731 (target_fileio_read_stralloc): Likewise.
8733 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8734 <fcntl.h>, and <unistd.h>.
8735 (inf_child_fileio_open_flags_to_host): New function.
8736 (inf_child_errno_to_fileio_error): Likewise.
8737 (inf_child_fileio_open): Likewise.
8738 (inf_child_fileio_pwrite): Likewise.
8739 (inf_child_fileio_pread): Likewise.
8740 (inf_child_fileio_close): Likewise.
8741 (inf_child_fileio_unlink): Likewise.
8742 (inf_child_target): Install to_fileio routines.
8744 * remote.c (init_remote_ops): Install to_fileio routines.
8746 2012-01-20 Pedro Alves <palves@redhat.com>
8747 Ulrich Weigand <ulrich.weigand@linaro.org>
8749 * remote.c (remote_multi_process_p): Only check for multi-process
8750 protocol feature, do not check for extended protocol.
8751 (remote_supports_multi_process): Check for extended protocol here.
8752 (set_general_process): Likewise.
8753 (extended_remote_kill): Likewise.
8754 (remote_pid_to_str): Likewise.
8755 (remote_query_supported): Always query multiprocess mode.
8757 2012-01-20 Pedro Alves <palves@redhat.com>
8758 Ulrich Weigand <ulrich.weigand@linaro.org>
8760 * inferior.h (struct inferior): Add fake_pid_p.
8761 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8762 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8763 magic_null_ptid since the remote side doesn't provide a real PID.
8765 2012-01-19 Tom Tromey <tromey@redhat.com>
8767 * NEWS: Combine the two Python sections.
8769 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8771 * target.h (target_close): Update comment on the target's unpush state.
8773 2012-01-19 Pedro Alves <palves@redhat.com>
8775 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8776 linux_nat_async directly instead of going through the target
8778 * target.c (unpush_target): Close target after unpushing it, not
8781 2012-01-19 Gary Benson <gbenson@redhat.com>
8783 * mdebugread.c (sort_blocks): Replace integer constants with ones
8784 derived from FIRST_LOCAL_BLOCK.
8786 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8787 Jan Kratochvil <jan.kratochvil@redhat.com>
8790 * symfile.c (find_separate_debug_file): New function.
8791 (terminate_after_last_dir_separator): Likewise.
8792 (find_separate_debug_file_by_debuglink): Also try realpath.
8793 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8794 * configure: Regenerate.
8795 * config.in: Regenerate.
8797 2012-01-18 Doug Evans <dje@google.com>
8799 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8800 (main.o): Remove rule.
8801 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8802 (--with-sysroot): Rewrite.
8803 * configure: Regenerate.
8804 * config.in: Regenerate.
8806 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8808 * parse.c (initialize_expout): New function.
8809 (reallocate_expout): Likewise.
8810 (parse_exp_in_context): Use `initialize_expout' and
8811 `reallocate_expout' when appropriate.
8813 2012-01-18 Pedro Alves <palves@redhat.com>
8815 * record.c (struct record_breakpoint, record_breakpoint_p)
8816 (record_breakpoints): New.
8817 (record_insert_breakpoint, record_remove_breakpoint): Manage
8818 record breakpoints list. Only remove breakpoints from the
8819 inferior if they had been inserted there in the first place.
8821 2012-01-17 Doug Evans <dje@google.com>
8823 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8824 if we know we don't have a file name to look for.
8826 2012-01-17 Pedro Alves <palves@redhat.com>
8828 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8829 the frame's stop reason is UNWIND_UNAVAILABLE.
8831 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8833 Fix compilation error.
8834 * m2-exp.y (yyerror): Use ANSI C prototype.
8836 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8838 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8839 (growbuf_by_size): Likewise.
8840 (yyerror): Likewise.
8841 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8842 (modblock): Remove variable (was #if 0'ed).
8843 (parse_number): Convert prototype from K&R to ANSI C.
8844 (yyerror): Likewise.
8845 * objc-exp.y (parse_number): Likewise.
8846 (yyerror): Likewise.
8847 (yylex): Remove #if 0'ed code.
8848 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8849 (yyerror): Likewise.
8851 2012-01-16 Tom Tromey <tromey@redhat.com>
8854 * symtab.h (compare_filenames_for_search): Declare.
8855 * symtab.c (compare_filenames_for_search): New function.
8856 (iterate_over_some_symtabs): Use it.
8857 * symfile.h (struct quick_symbol_functions)
8858 <map_symtabs_matching_filename>: Change spec.
8859 * psymtab.c (partial_map_symtabs_matching_filename): Use
8860 compare_filenames_for_search. Update for new spec.
8861 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8862 compare_filenames_for_search. Update for new spec.
8863 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8865 2012-01-16 Tom Tromey <tromey@redhat.com>
8868 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8869 (struct main_type) <flag_flag_enum>: New field.
8870 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8871 * NEWS: Add entries.
8872 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8874 * python/lib/gdb/printing.py (_EnumInstance): New class.
8875 (FlagEnumerationPrinter): Likewise.
8877 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8879 * breakpoint.c (create_sals_from_address_default): New function.
8880 (create_breakpoints_sal_default): Likewise.
8881 (decode_linespec_default): Likewise.
8882 (is_marker_spec): Removed.
8883 (strace_marker_p): New function.
8884 (init_breakpoint_sal): Using `strace_marker_p' instead of
8886 (create_breakpoint): Call method `create_sals_from_address' from
8887 breakpoint_ops, replacing code that created SALs conditionally
8888 on the type of the breakpoint. Call method `create_breakpoints_sal',
8889 replacing code that created breakpoints conditionally on the type
8891 (base_breakpoint_create_sals_from_address): New function.
8892 (base_breakpoint_create_breakpoints_sal): Likewise.
8893 (base_breakpoint_decode_linespec): Likewise.
8894 (base_breakpoint_ops): Add methods
8895 `base_breakpoint_create_sals_from_address',
8896 `base_breakpoint_create_breakpoints_sal' and
8897 `base_breakpoint_decode_linespec'.
8898 (bkpt_create_sals_from_address): New function.
8899 (bkpt_create_breakpoints_sal): Likewise.
8900 (bkpt_decode_linespec): Likewise.
8901 (tracepoint_create_sals_from_address): Likewise.
8902 (tracepoint_create_breakpoints_sal): Likewise.
8903 (tracepoint_decode_linespec): Likewise.
8904 (strace_marker_create_sals_from_address): Likewise.
8905 (strace_marker_create_breakpoints_sal): Likewise.
8906 (strace_marker_decode_linespec): Likewise.
8907 (strace_marker_breakpoint_ops): New variable.
8908 (addr_string_to_sals): Remove `marker_spec'. Call method
8909 `decode_linespec' from breakpoint_ops, replacing code that decoded
8910 an address string into a SAL. Use `strace_marker_p' instead of
8912 (strace_command): Decide whether we are dealing with a static
8913 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8914 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8915 * breakpoint.h (linespec_result, linespec_sals): New forward
8917 (breakpoint_ops) <create_sals_from_address>,
8918 <create_breakpoints_sal>, <decode_linespec>: New methods.
8920 2012-01-14 Doug Evans <dje@google.com>
8922 * NEWS: Update text for "maint set python print-stack".
8923 It is deprecated in gdb 7.4 and deleted in 7.5.
8925 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8927 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8930 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8932 * configure: Regenerate.
8933 * config.in: Regenerate.
8935 2012-01-12 Keith Seitz <keiths@redhat.com>
8938 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8939 (ANONYMOUS_UNION_NAME): Define.
8940 (is_path_expr_parent): New function.
8941 (get_path_expr_parent): New function.
8942 (is_anonymous_child): New function.
8943 (create_child_with_value): If the child is anonymous and without
8944 a name, assign an object name to it.
8945 (c_describe_child): Use get_path_expr_parent to determine
8946 the parent expression.
8947 If there field represents an anonymous struct or union and
8948 has no name, set an appropriate display name and expression.
8949 (cplus_describe_child): Likewise.
8951 2012-01-12 Pedro Alves <palves@redhat.com>
8953 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8954 available when %ebp is found to be zero (outermost).
8956 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8958 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8959 an internal gdb_static_assert.
8960 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8962 2012-01-11 Tom Tromey <tromey@redhat.com>
8965 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8966 catch" and "catch throw".
8968 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8970 * blockframe.c (block_innermost_frame): Start search from selected
8971 frame, if present, or otherwise the current frame.
8973 * c-exp.y (variable): Update innermost_block for
8974 'block COLONCOLON NAME' clause.
8975 * m2-exp.y (variable): Ditto.
8976 * objc-exp.y (variable): Ditto.
8978 2012-01-10 Tom Tromey <tromey@redhat.com>
8981 * python/python.c (finish_python_initialization): Set sys.argv.
8983 2012-01-10 Doug Evans <dje@google.com>
8985 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8986 "want_line_info". All callers updated.
8987 (dwarf_decode_lines_1): New function.
8988 (handle_DW_AT_stmt_list): Add function comment.
8989 New arg "want_line_info". All callers updated.
8990 (read_file_scope,read_type_unit_scope): Move comment from
8991 handle_DW_AT_stmt_list to here.
8993 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8995 Fix regression after libiberty/ update for GCC PR 6057 and others.
8996 * c-exp.y (operator) <OPERATOR DELETE>
8997 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8998 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8999 (make_builtin_type, make_name): New variable i, add gdb_assert.
9000 (operator) <OPERATOR NEW>: Update ARGS to 3.
9001 (operator) <OPERATOR DELETE>: Add trailing space.
9002 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9003 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9004 * cp-support.c (cp_canonicalize_string): Check NULL from
9005 cp_comp_to_string, call warning and return.
9007 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9009 Fix duplicate .o files after omitting libbfd.a.
9010 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9011 (SFILES): Add corelow.c.
9012 (COMMON_OBS): Add corelow.o.
9013 (ALLDEPFILES): Remove corelow.c.
9014 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9015 * config/alpha/alpha-osf3.mh: Likewise.
9016 * config/alpha/fbsd.mh: Likewise.
9017 * config/arm/nbsdaout.mh: Likewise.
9018 * config/arm/nbsdelf.mh: Likewise.
9019 * config/i386/i386gnu.mh: Likewise.
9020 * config/ia64/hpux.mh: Likewise.
9021 * config/ia64/linux.mh: Likewise.
9022 * config/m32r/linux.mh: Likewise.
9023 * config/m68k/linux.mh: Likewise.
9024 * config/mips/irix5.mh: Likewise.
9025 * config/mips/irix6.mh: Likewise.
9026 * config/pa/hpux.mh: Likewise.
9027 * config/pa/linux.mh: Likewise.
9028 * config/powerpc/aix.mh: Likewise.
9029 * config/sparc/linux.mh: Likewise.
9030 * config/sparc/linux64.mh: Likewise.
9031 * config/sparc/sol2.mh: Likewise.
9032 * config/vax/vax.mh: Likewise.
9033 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9034 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9035 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9036 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9037 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9038 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9039 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9040 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9041 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9042 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9043 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9044 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9045 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9046 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9047 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9048 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9049 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9050 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9051 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9052 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9053 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9054 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9055 corelow.o from gdb_target_obs.
9056 * corefile.c (core_target): Update the comment on NULL value.
9057 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9058 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9059 MATCHES. Drop YUMMY set on NULL.
9060 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9061 reclaim CORE_DATA if it is already NULL.
9063 2012-01-09 Doug Evans <dje@google.com>
9065 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9066 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9068 2012-01-09 Keith Seitz <keiths@redhat.com>
9070 * breakpoint.c (wrapper.h): Don't include.
9072 2012-01-09 Keith Seitz <keiths@redhat.com>
9074 * Makefile.in (SFILES): Remove wrapper.c.
9075 (HFILES_NO_SRCDIR): Remove wrapper.h.
9076 (COMMON_OBS): Remove wrapper.o.
9077 * cli/cli-interp.c: Don't inlude wrapper.h.
9078 * corelow.c: Likewise.
9079 (core_open): Replace gdb_target_find_new_threads with
9080 TRY_CATCH around target_find_new_threads.
9081 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9082 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9083 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9084 evaluate_expression.
9085 (varobj_set_value): Likewise for evaluate_expression and
9087 (install_new_variable): Likewise for value_fetch_lazy.
9088 (adjust_value_for_child_access): Likewise for value_ind.
9089 (c_describe_child): Likewise for value_subscript and
9091 (c_value_of_root): Likewise for evaluate_expression.
9092 * wrapper.c: Remove.
9093 * wrapper.h: Remove.
9095 2012-01-09 Doug Evans <dje@google.com>
9097 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9098 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9099 "abfd" args with "section". All callers updated.
9100 Error checking code moved ...
9101 (error_check_comp_unit_head): ... here. New function.
9102 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9103 Delete arg "abfd". New arg "type_offset". All callers updated.
9104 (create_debug_types_hash_table): Simplify by using
9105 read_and_check_type_unit_head.
9107 * parser-defs.h (namecopy): Delete.
9108 * parse.c (namecopy, namecopy_size): Move into copy_name.
9110 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9112 Partially fix duplicate .o files after omitting libbfd.a.
9113 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9114 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9115 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9116 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9117 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9118 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9119 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9121 2012-01-09 Pedro Alves <palves@redhat.com>
9123 * MAINTAINERS: Update my email address.
9125 2012-01-08 Doug Evans <dje@google.com>
9127 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9128 n_type_units. Rename type_comp_units to all_type_units.
9130 (add_signatured_type_cu_to_table): Renamed from
9131 add_signatured_type_cu_to_list. All callers updated.
9133 * gdbtypes.h (struct cplus_struct_type): Delete member
9134 nfn_fields_total. All uses removed.
9136 2012-01-06 Doug Evans <dje@google.com>
9138 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9140 (dwarf2_find_comp_unit): Delete.
9141 (process_psymtab_comp_unit): Make result "void".
9142 Delete args buffer, info_ptr, buffer_size, and replace with
9143 "section". All callers updated.
9144 (dwarf2_build_psymtabs_hard): Simplify.
9146 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9147 Thiago Jung Bauermann <bauerman@br.ibm.com>
9149 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9150 before `struct gdb_exception'.
9151 * breakpoint.c (update_global_location_list_nothrow)
9152 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9153 * cp-abi.c (value_rtti_type): Likewise.
9154 * cp-support.c (cp_validate_operator): Likewise.
9155 * infrun.c (insert_exception_resume_breakpoint)
9156 (check_exception_resume, keep_going): Likewise.
9157 * mi-interp.c (mi_breakpoint_created)
9158 (mi_breakpoint_modified): Likewise.
9159 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9160 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9161 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9163 2012-01-05 Doug Evans <dje@google.com>
9165 * dwarf2read.c (statement_prologue): Delete, unused.
9167 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9168 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9170 * dwarf2read.c (comp_unit_header): Delete, unused.
9172 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9174 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9175 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9177 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9179 * infrun.c (normal_stop): Don't skip calling the normal_stop
9180 observers if the thread was doing a multi-step, but stopped for
9181 some reason other than stepping.
9183 2012-01-05 Pedro Alves <alves.ped@gmail.com>
9185 * cli/cli-decode.h: Add comments.
9186 (CMD_LIST_AMBIGUOUS): Moved to command.h
9187 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9188 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9189 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9190 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9191 (add_com, add_com_alias, add_info, add_info_alias)
9192 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9194 * command.h: Add and adjust comments.
9195 (CMD_LIST_AMBIGUOUS): Moved here.
9196 (help_cmd, help_cmd_list): Delete declarations.
9198 2012-01-04 Doug Evans <dje@google.com>
9200 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9201 All callers updated.
9202 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9203 Replace all arguments with "per_cu". All callers updated.
9205 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9207 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9208 New arg "per_cu". All callers updated.
9210 Delete #if 0'd out code.
9211 * language.c (binop_result_type): Delete.
9212 (simple_type, ordered_type, same_type, integral_type): Delete.
9213 (numeric_type, character_type, string_type, boolean_type): Delete.
9214 (float_type, structured_type): Delete.
9215 * language.h: Update.
9217 2012-01-04 Tom Tromey <tromey@redhat.com>
9219 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9221 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9223 * corefile.c (close_exec_file): Delete.
9224 (reopen_exec_file): Remove commented out code that seems related
9225 to close_exec_file, which is being deleted here.
9226 * inferior.h (close_exec_file): Delete.
9227 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9229 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9231 * ada-lang.c: #include "cli/cli-utils.h".
9232 (get_selections): Use skip_spaces.
9233 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9234 (catch_ada_exception_command_split): Use skip_spaces.
9235 (ada_decode_assert_location): Likewise.
9237 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9239 * linespec.c (decode_line_internal): Check for C++ or Java
9240 compound constructs only if the current language is C, C++
9243 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9246 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9247 Joel Brobecker <brobecker@adacore.com>
9248 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9249 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9251 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9252 fall through into AT_ENTRY_POINT.
9253 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9255 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9256 PPC_INSN_SIZE skip to 3 times.
9258 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9260 * linespec.c (add_minsym): Preserve function descriptors.
9262 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9264 * breakpoint.c (all_locations_are_pending): Consider locations
9265 in program spaces executing during startup pending as well.
9267 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9269 Copyright year update in most files of the GDB Project.
9271 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9273 * copyright.sh: Delete.
9274 * copyright.py: Rewrite.
9276 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9278 * gnulib/extra/update-copyright: New file, imported from gnulib.
9280 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9282 * README (Copyright and License Notices): New section.
9284 2012-01-03 Tom Tromey <tromey@redhat.com>
9287 * python/py-value.c (valpy_dereference, valpy_get_address
9288 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9289 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9290 (valpy_absolute, valpy_richcompare): Free intermediate values.
9292 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9294 * ada-lang.c: Reformat the copyright notice.
9296 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9298 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9299 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9300 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9301 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9302 Revert this part of:
9303 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9304 Build gdb directly from *.o files not using libgdb.a.
9305 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9307 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9309 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9310 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9311 Reformat the copyright header.
9313 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9315 Revert this part of:
9316 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9317 Remove the gdbtui binary.
9318 * gdb.c (main): Remove args.interpreter_p initialization.
9319 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9320 * main.h (struct captured_main_args): Remove interpreter_p.
9322 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9324 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9326 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9328 * top.c (print_gdb_version): Update copyright year.
9330 2012-01-02 Yao Qi <yao@codesourcery.com>
9332 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9334 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9335 Joel Brobecker <brobecker@adacore.com>
9337 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9338 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9340 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9341 fall through into AT_ENTRY_POINT.
9342 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9344 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9345 PPC_INSN_SIZE skip to 3 times.
9347 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9349 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9351 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9353 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9355 Build gdb directly from *.o files not using libgdb.a.
9356 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9357 (COMMON_OBS): Remove solib-target.o.
9358 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9359 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9360 (LIBGDB_OBS, libgdb.a): Move it above.
9361 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9362 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9363 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9364 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9365 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9366 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9367 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9368 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9369 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9370 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9371 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9372 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9373 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9374 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9375 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9376 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9377 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9378 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9379 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9380 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9381 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9382 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9383 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9384 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9385 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9386 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9387 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9389 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9391 Remove the gdbtui binary.
9392 * .gitignore (/gdbtui): Remove.
9393 * Makefile.in (TUI): Remove.
9394 (SUBDIR_TUI_OBS): Remove tui-main.o.
9395 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9396 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9397 (tui-main.o): Remove.
9398 (all_object_files): Remove tui-main.o.
9399 * NEWS: New note for the gdbtui removal.
9400 * configure: Rebuilt.
9401 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9402 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9403 CONFIG_UNINSTALL respectively.
9404 * gdb.c (main): Remove args.interpreter_p initialization.
9405 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9406 * main.h (struct captured_main_args): Remove interpreter_p.
9407 * tui/tui-main.c: Remove.
9409 2012-01-01 Doug Evans <dje@google.com>
9411 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9412 (dwarf2_physname, read_import_statement): Ditto.
9413 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9414 (process_structure_scope read_subroutine_type): Ditto.
9415 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9416 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9417 (dwarf2_fetch_die_location_block): Ditto.
9418 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9420 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9421 All callers updated.
9422 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9423 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9424 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9426 * dwarf2read.c (load_cu): Move assert to more useful location.
9428 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9429 All callers updated.
9431 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9432 (dwarf2_elf_names): Minor reformat.
9433 (dwarf2_per_cu_data): Tweak comment.
9434 (dwarf2_read_section): Fix comment.
9435 (create_all_comp_units): Fix comment.
9436 (load_full_comp_unit): Fix comment.
9437 (process_full_comp_unit): Fix comment.
9438 (read_signatured_type): Fix comment.
9440 For older changes see ChangeLog-2011.
9446 version-control: never