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