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