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