2012-06-05 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-06-05 Pedro Alves <palves@redhat.com>
2
3 PR backtrace/13866
4
5 * breakpoint.c (until_break_command): Only fetch the selected
6 frame after decode_line_1.
7
8 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
9
10 * solib-svr4.c (enable_break): Don't fallback to setting the solib
11 event breakpoint at _start, __start or main if a program
12 interpreter is not found.
13
14 2012-06-05 Joel Brobecker <brobecker@adacore.com>
15
16 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
17 Add declaration.
18 * windows-tdep.c: #include "objfiles.h".
19 (windows_iterate_over_objfiles_in_search_order): New function.
20 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
21 iterate_over_objfiles_in_search_order gdbarch method to
22 windows_iterate_over_objfiles_in_search_order.
23 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
24
25 2012-06-05 Joel Brobecker <brobecker@adacore.com>
26
27 * gdbarch.sh: Add generation of
28 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
29 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
30 (iterate_over_objfiles_in_search_order): New gdbarch method.
31 * gdbarch.h, gdbarch.c: Regenerate.
32 * objfiles.h (default_iterate_over_objfiles_in_search_order):
33 Add declaration.
34 * objfiles.c (default_iterate_over_objfiles_in_search_order):
35 New function.
36 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
37 out of lookup_symbol_aux_symtabs.
38 (lookup_symbol_aux_symtabs): Replace extracted-out code by
39 call to lookup_symbol_aux_objfile.
40 (struct global_sym_lookup_data): New type.
41 (lookup_symbol_global_iterator_cb): New function.
42 (lookup_symbol_global): Search for symbol using
43 gdbarch_iterate_over_objfiles_in_search_order and
44 lookup_symbol_global_iterator_cb.
45 * findvar.c (struct minsym_lookup_data): New type.
46 (minsym_lookup_iterator_cb): New function.
47 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
48 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
49 and minsym_lookup_iterator_cb.
50
51 2012-06-05 Joel Brobecker <brobecker@adacore.com>
52
53 Revert the following patch:
54 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
55 try locating the symbol in the symbol's own objfile first, before
56 extending the search to all objfiles.
57 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
58 out of lookup_symbol_aux_symtabs.
59 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
60 Replace extracted-out code by call to lookup_symbol_aux_objfile.
61 Do not search EXCLUDE_OBJFILE.
62 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
63 (lookup_symbol_global): Search for matches in the block's objfile
64 first, before searching all other objfiles.
65
66 2012-06-05 Joel Brobecker <brobecker@adacore.com>
67
68 * breakpoint.c (find_condition_and_thread): Stop parsing
69 as soon as the first invalid keyword is found.
70
71 2012-06-05 Joel Brobecker <brobecker@adacore.com>
72
73 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
74
75 2012-06-05 Joel Brobecker <brobecker@adacore.com>
76
77 * config/djgpp/djcheck.sh: Add copyright header.
78
79 2012-06-05 Joel Brobecker <brobecker@adacore.com>
80
81 * copyright.py (update_files, main): Fix path to update-copyright
82 script.
83
84 2012-06-05 Joel Brobecker <brobecker@adacore.com>
85
86 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
87 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
88 for which a reminder to update by hand is printed.
89
90 2012-06-04 Doug Evans <dje@google.com>
91
92 * buildsym.c (make_blockvector): Add comment.
93
94 2012-06-04 Pedro Alves <palves@redhat.com>
95
96 * arch-utils.c (default_gdb_signal_from_target): Delete.
97 * arch-utils.h (default_gdb_signal_from_target): Delete.
98 * corelow.c (core_open) <signal mapping>: Extended comment. Check
99 gdbarch_gdb_signal_from_target_p.
100 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
101 predicate).
102 * gdbarch.h: Regenerate.
103 * gdbarch.c: Regenerate.
104
105 2012-06-04 Pedro Alves <palves@redhat.com>
106
107 * gdbarch.sh (gdb_signal_from_target): Mention that the
108 implementation of the method must be host independent.
109 * gdbarch.h: Regenerate.
110
111 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
112
113 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
114 parameters.
115 (target_read_memory_bfd): New function.
116 (symbol_file_add_from_memory): Use it.
117
118 2012-06-03 Doug Evans <dje@google.com>
119
120 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
121 of primary symtab.
122 (basic_lookup_transparent_type): Ditto.
123
124 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
125 (ALL_PRIMARY_SYMTABS): Use it.
126 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
127 * dwarf2read.c (dw2_find_symbol_file): Ditto.
128 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
129 * symtab.c (lookup_symbol_aux_objfile): Ditto.
130 (basic_lookup_transparent_type): Ditto.
131
132 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
133
134 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
135 it to optimize resolution of demangled name.
136
137 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
138
139 * configure.ac (development): Define new variable.
140 Call AC_CHECK_LIB for mcheck if $development.
141 (ERROR_ON_WARNING): Enable it by default only if $development.
142 * config.in: Regenerate.
143 * configure: Regenerate.
144
145 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
146
147 * target.c (target_read_memory): Make LEN argument as size_t.
148 * target.h (target_read_memory): Likewise.
149
150 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
151
152 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
153
154 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
155
156 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
157 BookE interface for PowerPC server processors if not available
158 in the Linux Kernel.
159
160 2012-05-31 Keith Seitz <keiths@redhat.com>
161
162 * linespec.c (decode_objc): Add cleanup to free
163 INFO.FILE_SYMTABS.
164 (find_linespec_symbols): Add cleanup to free CLASSES.
165 * symfile.c (find_separate_debug_file_by_debuglink): Add
166 cleanup to free DEBUGLINK.
167 * ui-out.c (clear_header_list): No need to check if
168 HEADER_NEXT.COLHDR is NULL.
169 Free HEADER_NEXT.COL_NAME.
170
171 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
172
173 * ada-lang.c (standard_lookup): Prevent uninitialized variable
174 warning.
175
176 2012-05-30 Jeff Kenton <jkenton@tilera.com>
177
178 * configure.host (gdb_host_cpu): Handle tilegx*.
179 (gdb_host): Handle tilegx-*-linux*.
180 * tilegx-linux-nat.c: New file.
181 * config/tilegx/linux.mh: New file.
182
183 2012-05-30 Jeff Kenton <jkenton@tilera.com>
184
185 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
186 tilegx-linux-tdep.o.
187 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
188 tilegx-linux-tdep.c.
189 * configure.tgt: Handle tilegx-*-linux*.
190 * tilegx-tdep.h: New file.
191 * tilegx-tdep.c: New file.
192 * tilegx-linux-tdep.c: New file.
193 * regformats/reg-tilegx.dat: New file.
194
195 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
196
197 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
198 accounting of hw watchpoints on ppc.
199
200 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
201
202 * source.c (openp): Expand tilde in path entries.
203
204 2012-05-29 Doug Evans <dje@google.com>
205
206 * buildsym.c (block_compar): Fix comment.
207 (end_symtab): Fix and clarify some comments.
208
209 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
210 cleanup_undefined_types.
211 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
212 All callers updated.
213
214 2012-05-29 Tom Tromey <tromey@redhat.com>
215
216 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
217 fails.
218 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
219 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
220 fails.
221 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
222 fails.
223
224 2012-05-29 Tristan Gingold <gingold@adacore.com>
225
226 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
227 (struct darwin_info): ... New struct.
228 (solib_darwin_pspace_data): New variable.
229 (darwin_pspace_data_cleanup): New function.
230 (get_darwin_info): Likewise.
231 (darwin_dyld_version_ok, darwin_load_image_infos)
232 (darwin_solib_get_all_image_info_addr_at_init)
233 (darwin_solib_read_all_image_info_addr): Add info argument.
234 Adjust code.
235 (darwin_current_sos): Use per pspace structure.
236 (darwin_solib_create_inferior_hook): Likewise.
237 (darwin_clear_solib): Likewise.
238 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
239
240 2012-05-28 Pedro Alves <palves@redhat.com>
241
242 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
243 block that uses them. Clear ecss before handling each event.
244
245 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
246
247 * solib-svr4.c (svr4_current_sos): New comment on
248 svr4_current_sos_via_xfer_libraries fall back.
249
250 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
251
252 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
253 it as a fallback for TYPE_IS_OPAQUE.
254 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
255 symbols for lookup_symbol.
256
257 2012-05-24 John Steele Scott <toojays@toojays.net>
258
259 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
260 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
261 (producer_is_gxx_lt_4_6): Move the checking and caching to...
262 (check_producer): ... this new function, which also checks for ICC
263 and caches the result.
264 (producer_is_icc): New function.
265 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
266 producer was ICC.
267
268 2012-05-24 Pedro Alves <palves@redhat.com>
269
270 PR gdb/7205
271
272 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
273 (default_gdb_signal_to_target): ... this. Add comment.
274 (default_gdb_signal_from_host): Rename to ...
275 (default_gdb_signal_from_target): ... this. Add comment.
276 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
277 (default_gdb_signal_to_target): ... this.
278 (default_gdb_signal_from_host): Rename to ...
279 (default_gdb_signal_from_target): ... this.
280 * corelow.c (core_open): Adjust to naming change. Replace comment.
281 * gdbarch.sh (gdb_signal_from_host): Rename to ...
282 (gdb_signal_from_target): ... this. Adjust to
283 default_gdb_signal_from_host naming change. Extend comment.
284 (gdb_signal_to_host): Rename to ...
285 (gdb_signal_to_target): ... this. Adjust to
286 default_gdb_signal_to_host naming change.
287 * gdbarch.h, gdbarch.c: Renegerate.
288
289 2012-05-24 Pedro Alves <palves@redhat.com>
290
291 PR gdb/7205
292
293 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
294
295 2012-05-24 Pedro Alves <palves@redhat.com>
296
297 PR gdb/7205
298
299 Replace target_signal with gdb_signal throughout.
300
301 2012-05-24 Pedro Alves <palves@redhat.com>
302
303 PR tui/14159
304
305 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
306 string, instead of reusing the va_list argument.
307
308 2012-05-24 Tom Tromey <tromey@redhat.com>
309
310 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
311 Remove.
312
313 2012-05-23 Doug Evans <dje@google.com>
314
315 * symtab.c (search_symbols): Formatting fixes.
316 (print_symbol_info): Formatting fixes.
317
318 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
319 int64_t change to leb128 API.
320 (read_encoded_value, decode_frame_entry_1): Ditto.
321 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
322 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
323 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
324 (execute_stack_op): Ditto.
325 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
326 (safe_read_uleb128, safe_read_sleb128): Ditto.
327 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
328 (dwarf2_compile_expr_to_ax): Ditto.
329 (locexpr_describe_location_piece): Ditto.
330 (disassemble_dwarf_expression): Ditto.
331 (locexpr_describe_location_1): Ditto.
332
333 2012-05-23 Stan Shebs <stan@codesourcery.com>
334 Kwok Cheung Yeung <kcy@codesourcery.com>
335
336 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
337 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
338 (mi-cmd-info.o): New rule.
339 * osdata.h (info_osdata_command): New declaration.
340 * osdata.c (info_osdata_command): Change to non-static.
341 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
342 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
343 * mi/mi-cmd-info.c: New file.
344
345 2012-05-23 Doug Evans <dje@google.com>
346
347 * symtab.c (search_symbols): Pass NULL for file_matcher to
348 expand_symtabs_matching if there are no files to match.
349
350 * gdbtypes.c (lookup_typename): Simplify.
351
352 2012-05-23 Pedro Alves <palves@redhat.com>
353
354 * arch-utils.h (default_target_signal_to_host): Delete.
355 * arch-utils.c (default_target_signal_to_host): Delete.
356 * gdbarch.sh (target_signal_to_host): Remove.
357 * gdbarch.h, gdbarch.c: Regenerate.
358
359 2012-05-22 Doug Evans <dje@google.com>
360
361 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
362 "const gdb_byte *".
363 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
364 (execute_cfa_program): Update to match API of leb128 functions.
365 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
366 "const gdb_byte *".
367 (read_unsigned_leb128, read_signed_leb128): Delete.
368 (read_initial_length): Change type of buf argument to
369 "const gdb_byte *".
370 (read_encoded_value): Update to match API of leb128 functions.
371 (decode_frame_entry): Change result to "const gdb_byte *", and
372 similarly for "start" parameter.
373 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
374 (dwarf2_build_frame_info): Change local frame_ptr to
375 "const gdb_byte *".
376 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
377 read_uleb128, read_sleb128. All callers updated.
378 (safe_skip_leb128): New function.
379 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
380 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
381 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
382 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
383 read_uleb128, read_sleb128.
384 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
385 (execute_stack_op): Update to match API of leb128 functions.
386 * dwarf2expr.h: #include "leb128.h".
387 (read_uleb128, read_sleb128): Delete.
388 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
389 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
390 * dwarf2loc.c (debug_loc_kind): New enum.
391 (decode_debug_loc_addresses): New function.
392 (decode_debug_loc_dwo_addresses): New function.
393 (dwarf2_find_location_expression): Rewrite.
394 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
395 (locexpr_describe_location_piece): Ditto.
396 (disassemble_dwarf_expression): Ditto.
397 (locexpr_describe_location_1): Ditto.
398 (loclist_describe_location): Rewrite.
399 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
400 * dwarf2read.c (die_reader_specs): New member "buffer_end".
401 (dwarf2_section_buffer_overflow_complaint): Renamed from
402 dwarf2_macros_too_long_complaint. All callers updated.
403 (skip_leb128): Delete.
404 (init_cu_die_reader): Initialize reader->buffer_end.
405 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
406 (skip_form_bytes): New arg buffer_end. All callers updated.
407 Replace call to skip_leb128 with gdb_skip_leb128.
408 (skip_unknown_opcode): New arg mac_end. All callers updated.
409 (fill_in_loclist_baton): Initialize baton->from_dwo.
410
411 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
412
413 * mips-linux-nat.c (mips_linux_read_description): Use a more
414 verbose error message.
415
416 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
417
418 * NEWS: Add MIPS/Linux DSP support.
419 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
420 (SIGCONTEXT_DSPCTL): New macro.
421 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
422 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
423 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
424 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
425 (N64_SIGCONTEXT_HI3): Likewise.
426 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
427 (N64_SIGCONTEXT_LO3): Likewise.
428 (N64_SIGCONTEXT_DSPCTL): Likewise.
429 (N64_SIGCONTEXT_FPCSR): Clarify definition.
430 (mips_linux_o32_sigframe_init): Handle DSP registers.
431 (mips_linux_n32n64_sigframe_init): Likewise.
432
433 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
434
435 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
436 call to abort.
437
438 2012-05-22 Pedro Alves <palves@redhat.com>
439
440 * target.h (store_waitstatus): Move declaration ...
441 * inf-child.h (store_waitstatus): ... here.
442 * target.c: Move inclusion of gdb_wait.h, and ...
443 (store_waitstatus): ... this ...
444 * inf-child.c: ... here.
445 * linux-nat.c: Include inf-child.h.
446 * rs6000-nat.c: Include inf-child.h.
447 * spu-linux-nat.c: Include inf-child.h.
448
449 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
450
451 * tracepoint.c (start_tracing): Add missing i18n markup.
452 (stop_tracing, set_trace_user): Ditto.
453 (set_trace_notes, set_trace_stop_notes): Ditto.
454
455 2012-05-21 Tom Tromey <tromey@redhat.com>
456
457 PR c++/7173:
458 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
459 types.
460 * value.h (value_cast_pointers): Update.
461 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
462 (value_cast): Update.
463 (update_search_result): New function.
464 (do_search_struct_field): New, from search_struct_field. Check
465 for ambiguous results.
466 (search_struct_field): Rewrite.
467 * infcall.c (value_arg_coerce): Update.
468 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
469 value_cast_pointers.
470 * ada-lang.c (ada_convert_actual): Update.
471
472 2012-05-21 Tom Tromey <tromey@redhat.com>
473
474 * macroexp.c (macro_stringify): Terminate the string.
475
476 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
477
478 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
479 Describe it.
480 * auto-load.c (auto_load_expand_dir_vars): New function.
481 (auto_load_safe_path_vec_update): Use it, remove the
482 substitute_path_component call thanks to it.
483 (auto_load_objfile_script): Remove the debug_file_directory processing.
484 Use auto_load_expand_dir_vars, remove the substitute_path_component
485 call thanks to it.
486 * configure: Regenerate.
487 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
488 path. Escape $ also for $debugdir.
489 (--with_auto_load_safe_path): Escape $ also for $debugdir.
490 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
491
492 2012-05-20 Doug Evans <dje@google.com>
493
494 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
495 before use. Check for symtab->includes == NULL before scanning it.
496
497 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
498
499 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
500
501 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
502
503 * NEWS: Add microMIPS support and "set mips compression",
504 "show mips compression" commands.
505 * mips-tdep.h (mips_isa): New enum.
506 (gdbarch_tdep): Add mips_isa.
507 (mips_pc_is_mips16): Update prototype.
508 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
509 * mips-tdep.c (mips_compression_mips16): New variable.
510 (mips_compression_micromips): Likewise.
511 (mips_compression_strings): Likewise.
512 (mips_compression_string): Likewise.
513 (is_mips16_isa, is_micromips_isa): New functions.
514 (is_mips16_addr): Rename to...
515 (is_compact_addr): ... this.
516 (unmake_mips16_addr): Likewise to...
517 (unmake_compact_addr): ... this.
518 (make_mips16_addr): Likewise to...
519 (make_compact_addr): ... this.
520 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
521 functions.
522 (mips_elf_make_msymbol_special): Handle microMIPS code.
523 (msymbol_is_special): Rename to...
524 (msymbol_is_mips16): ... this.
525 (mips_make_symbol_special, mips_pc_is_mips16): Update
526 accordingly.
527 (msymbol_is_mips, msymbol_is_micromips): New functions.
528 (mips16_to_32_reg): Rename to...
529 (mips_reg3_to_reg): ... this.
530 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
531 (mips_pc_isa): Likewise.
532 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
533 code.
534 (mips_fetch_instruction): Pass return status instead of printing
535 an error message if requested. Handle microMIPS code. Bail out
536 on an invalid ISA.
537 (micromips_op): New macro.
538 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
539 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
540 (b6s4_op, b7s3_reg): Likewise.
541 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
542 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
543 (mips_insn_size): New function.
544 (mips32_next_pc): Update mips_fetch_instruction call.
545 (micromips_relative_offset7): New function.
546 (micromips_relative_offset10): Likewise.
547 (micromips_relative_offset16): Likewise.
548 (micromips_pc_insn_size): Likewise.
549 (micromips_bc1_pc): Likewise.
550 (micromips_next_pc): Likewise.
551 (unpack_mips16): Update mips_fetch_instruction call.
552 (extended_mips16_next_pc): Update according to change to
553 mips16_to_32_reg.
554 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
555 code.
556 (mips16_scan_prologue): Update mips_fetch_instruction call.
557 Update according to change to mips16_to_32_reg.
558 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
559 (mips_insn16_frame_base_sniffer): Likewise.
560 (micromips_decode_imm9): New function.
561 (micromips_scan_prologue): Likewise.
562 (mips_micro_frame_cache): Likewise.
563 (mips_micro_frame_this_id): Likewise.
564 (mips_micro_frame_prev_register): Likewise.
565 (mips_micro_frame_sniffer): Likewise.
566 (mips_micro_frame_unwind): New variable.
567 (mips_micro_frame_base_address): New function.
568 (mips_micro_frame_base): New variable.
569 (mips_micro_frame_base_sniffer): New function.
570 (mips32_scan_prologue): Update mips_fetch_instruction call.
571 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
572 rather than for MIPS16.
573 (mips_insn32_frame_base_sniffer): Likewise.
574 (mips_addr_bits_remove): Handle microMIPS code.
575 (deal_with_atomic_sequence): Rename to...
576 (mips_deal_with_atomic_sequence): ... this. Update the type
577 of the variable used to hold an instruction. Remove the ISA bit
578 check. Update mips_fetch_instruction call.
579 (micromips_deal_with_atomic_sequence): New function.
580 (deal_with_atomic_sequence): Likewise.
581 (mips_about_to_return): Handle microMIPS code. Update
582 mips_fetch_instruction call.
583 (heuristic_proc_start): Check for the standard MIPS ISA rather
584 than for MIPS16. Update mips_pc_is_mips16 and
585 mips_fetch_instruction calls. Handle microMIPS code.
586 (mips_push_dummy_code): Handle microMIPS code.
587 (mips_eabi_push_dummy_call): Likewise.
588 (mips_o32_return_value): Update mips_pc_is_mips16 call.
589 (mips_o64_push_dummy_call): Handle microMIPS code.
590 (mips_o64_return_value): Update mips_pc_is_mips16 call.
591 (is_delayed): Remove function.
592 (mips_single_step_through_delay): Replace the call to is_delayed
593 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
594 Handle microMIPS code.
595 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
596 microMIPS code.
597 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
598 call.
599 (micromips_in_function_epilogue_p): New function.
600 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
601 call.
602 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
603 Handle microMIPS.
604 (gdb_print_insn_mips): Likewise.
605 (mips_breakpoint_from_pc): Likewise.
606 (mips_remote_breakpoint_from_pc): New function.
607 (mips32_instruction_has_delay_slot): Simplify making use of the
608 updated mips_fetch_instruction interface.
609 (micromips_instruction_has_delay_slot): New function.
610 (mips16_instruction_has_delay_slot): Simplify making use of the
611 updated mips_fetch_instruction interface.
612 (mips_adjust_breakpoint_address): Check for the standard MIPS
613 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
614 calls. Handle microMIPS code.
615 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
616 (mips_skip_trampoline_code): Handle microMIPS code.
617 (global_mips_compression): New function.
618 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
619 file flags. Register the microMIPS remote breakpoint handler
620 and heuristic frame unwinder.
621 (show_mips_compression): New function.
622 (_initialize_mips_tdep): Add the "set mips compression" and
623 "show mips compression" commands.
624
625 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
626
627 * ada-lang.c:
628 * ada-tasks.c:
629 * ada-varobj.c:
630 * amd64-darwin-tdep.c:
631 * arm-symbian-tdep.c:
632 * arm-tdep.c:
633 * avr-tdep.c:
634 * ax-gdb.c:
635 * bfin-linux-tdep.c:
636 * breakpoint.c:
637 * c-valprint.c:
638 * cli/cli-cmds.c:
639 * coffread.c:
640 * cp-support.c:
641 * cris-tdep.c:
642 * dwarf2-frame-tailcall.c:
643 * dwarf2-frame.c:
644 * dwarf2expr.c:
645 * dwarf2loc.c:
646 * dwarf2read.c:
647 * elfread.c:
648 * eval.c:
649 * expprint.c:
650 * f-valprint.c:
651 * frv-tdep.c:
652 * h8300-tdep.c:
653 * hppa-hpux-tdep.c:
654 * hppa-tdep.c:
655 * hppanbsd-tdep.c:
656 * i386-nto-tdep.c:
657 * i386-tdep.c:
658 * i387-tdep.c:
659 * ia64-tdep.c:
660 * jit.c:
661 * linespec.c:
662 * linux-tdep.c:
663 * lm32-tdep.c:
664 * m2-valprint.c:
665 * m32c-tdep.c:
666 * m32r-rom.c:
667 * m32r-tdep.c:
668 * m68k-tdep.c:
669 * m68klinux-tdep.c:
670 * mi/mi-main.c:
671 * microblaze-tdep.c:
672 * mips-linux-tdep.c:
673 * mips-tdep.c:
674 * mn10300-tdep.c:
675 * p-valprint.c:
676 * parse.c:
677 * ppc-linux-tdep.c:
678 * ppc-sysv-tdep.c:
679 * printcmd.c:
680 * python/py-finishbreakpoint.c:
681 * python/py-inferior.c:
682 * python/py-infthread.c:
683 * python/py-type.c:
684 * python/python.c:
685 * remote-fileio.c:
686 * remote-m32r-sdi.c:
687 * remote-mips.c:
688 * reverse.c:
689 * rl78-tdep.c:
690 * rs6000-aix-tdep.c:
691 * rs6000-tdep.c:
692 * s390-tdep.c:
693 * score-tdep.c:
694 * sh64-tdep.c:
695 * skip.c:
696 * solib-darwin.c:
697 * solib-dsbt.c:
698 * solib-frv.c:
699 * sparc-tdep.c:
700 * spu-multiarch.c:
701 * spu-tdep.c:
702 * stack.c:
703 * symfile.c:
704 * symtab.c:
705 * tic6x-tdep.c:
706 * tracepoint.c:
707 * v850-tdep.c:
708 * valarith.c:
709 * valprint.c:
710 * value.c:
711 * xcoffread.c:
712 * xtensa-tdep.c:
713 * ada-lang.c:
714 * ada-tasks.c:
715 * ada-varobj.c:
716 * amd64-darwin-tdep.c:
717 * arm-symbian-tdep.c:
718 * arm-tdep.c: Delete unused variables.
719
720 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
721
722 Rename $ddir to $datadir.
723 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
724 * auto-load.c (auto_load_safe_path_vec_update)
725 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
726 * configure: Regenerate.
727 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
728 Likewise. Remove the 'use $ddir' help string.
729
730 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
731
732 * auto-load.c (show_auto_load_safe_path): Accept any combination of
733 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
734
735 2012-05-18 Tom Tromey <tromey@redhat.com>
736
737 PR exp/13907:
738 * valprint.h (struct value_print_options) <symbol_print>: New
739 field.
740 * valprint.c (user_print_options): Add default for symbol_print.
741 (show_symbol_print): New function.
742 (generic_val_print): Respect symbol_print.
743 (_initialize_valprint): Add "print symbol" setting.
744 * f-valprint.c (f_val_print): Respect symbol_print.
745 * c-valprint.c (c_val_print): Respect symbol_print.
746 * NEWS: Update.
747 * printcmd.c (print_address_symbolic): Return int. Ignore some
748 zero-size symbols.
749 (print_address_demangle): Return int.
750 * defs.h: (print_address_symbolic): Return int.
751 * value.h (print_address_demangle): Return int.
752
753 2012-05-18 Tom Tromey <tromey@redhat.com>
754
755 * valprint.c (val_print_string): Don't print leading space.
756 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
757 print space before string or vtbl.
758 * m2-valprint.c (print_unpacked_pointer): Optionally print space
759 before string.
760 * jv-valprint.c (java_value_print): Print space before string.
761 * go-valprint.c (print_go_string): Print space before string.
762 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
763 space before string.
764 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
765 space before string or vtbl.
766 * auxv.c (fprint_target_auxv): Print space after address.
767
768 2012-05-18 Tom Tromey <tromey@redhat.com>
769
770 * printcmd.c (print_address_demangle): Remove special case for 0.
771
772 2012-05-18 Tom Tromey <tromey@redhat.com>
773
774 * printcmd.c (print_address_demangle): Add 'opts' argument.
775 * p-valprint.c (pascal_val_print): Update.
776 * jv-valprint.c (java_val_print): Update.
777 * value.h: Update.
778 * valprint.c (generic_val_print): Update.
779 (print_function_pointer_address): Add 'options' argument. Remove
780 'addressprint' argument. Update.
781 * m2-valprint.c (print_unpacked_pointer): Update.
782 * gnu-v3-abi.c (print_one_vtable): Update.
783 (gnuv3_print_method_ptr): Update.
784 * f-valprint.c (f_val_print): Update.
785 * cp-valprint.c (cp_print_value_fields): Update.
786 * valprint.h (print_function_pointer_address): Update.
787 * c-valprint.c (c_val_print): Update.
788
789 2012-05-18 Tom Tromey <tromey@redhat.com>
790
791 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
792 directly corresponding to the found psymtab.
793 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
794 (dw2_find_pc_sect_symtab): Use it.
795 * block.h (blockvector_contains_pc): Declare.
796 * block.c (find_block_in_blockvector): New function.
797 (blockvector_for_pc_sect): Use it.
798 (blockvector_contains_pc): New function.
799
800 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
801
802 * mips-tdep.h (mips_write_pc): New prototype.
803 * mips-tdep.c (mips_write_pc): Make external, add description.
804 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
805 add description.
806
807 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
808
809 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
810 mips_regnum->pc.
811 (mips_unwind_pc, mips_write_pc): Likewise.
812 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
813 gdbarch_read_pc.
814
815 2012-05-17 Joel Brobecker <brobecker@adacore.com>
816
817 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
818 proc_warn, proc_error, proc_get_status, proc_flags,
819 proc_why, proc_what, proc_nsysarg, proc_sysargs,
820 proc_set_run_on_last_close, proc_unset_run_on_last_close,
821 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
822 proc_stop_process, proc_wait_for_stop, proc_run_process,
823 proc_set_traced_signals, proc_set_traced_faults,
824 proc_set_traced_sysentry, proc_set_traced_sysexit,
825 proc_set_held_signals, proc_get_held_signals,
826 proc_get_traced_signals, proc_get_traced_faults,
827 proc_get_traced_sysentry, proc_get_traced_sysexit,
828 proc_clear_current_fault, proc_set_current_signal,
829 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
830 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
831 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
832 proc_get_current_thread, proc_get_current_thread,
833 proc_get_current_thread, proc_update_threads,
834 proc_update_threads, proc_update_threads, proc_update_threads,
835 proc_iterate_over_threads, procfs_find_new_threads,
836 procfs_pid_to_str): Make static. Remove advance declaration.
837 (proc_cursig): Make static. Conditionalized defintion on
838 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
839 (proc_syscall, proc_set_kill_on_last_close,
840 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
841 proc_get_pending_signals, proc_get_signal_actions,
842 proc_trace_signal, proc_ignore_signal): Delete.
843
844 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
845
846 * coffread.c (cs_section_address): Passing proper argument for
847 `bfd_get_section_vma'.
848 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
849 `bfd_get_section_flags'.
850 * remote.c (remote_trace_set_readonly_regions): Likewise, for
851 `bfd_get_section_vma'.
852
853 2012-05-16 Tom Tromey <tromey@redhat.com>
854
855 PR macros/13205:
856 * macrotab.h: (macro_define_special): Declare.
857 (enum macro_special_kind): New.
858 (struct macro_definition) <argc, replacement>: Update comments.
859 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
860 (macro_define_object_internal): New function.
861 (macro_define_object): Use it.
862 (macro_define_special): New function.
863 (fixup_definition): New function.
864 (macro_lookup_definition, foreach_macro_in_scope)
865 (foreach_macro): Use fixup_definition.
866 * macroexp.h (macro_stringify): Declare.
867 * macroexp.c (free_buffer_return_text): New function.
868 (stringify): Constify "arg".
869 (macro_stringify): New function.
870 * dwarf2read.c (macro_start_file): Call macro_define_special.
871
872 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
873 Maciej W. Rozycki <macro@mips.com>
874
875 * breakpoint.h (bp_location): Add related_address member.
876 * inferior.h (get_return_value): Take a pointer to struct value
877 instead of struct type for the function requested.
878 * value.h (using_struct_return): Likewise.
879 * gdbarch.sh (return_value): Take a pointer to struct value
880 instead of struct type for the function requested.
881 * breakpoint.c (set_breakpoint_location_function): Initialize
882 related_address for bp_gnu_ifunc_resolver breakpoints.
883 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
884 requested function's address to gdbarch_return_value.
885 * eval.c (evaluate_subexp_standard): Pass the requested
886 function's address to using_struct_return.
887 * infcall.c (call_function_by_hand): Pass the requested
888 function's address to using_struct_return and
889 gdbarch_return_value.
890 * infcmd.c (get_return_value): Take a pointer to struct value
891 instead of struct type for the function requested.
892 (print_return_value): Update accordingly.
893 (finish_command_continuation): Likewise.
894 * stack.c (return_command): Pass the requested function's
895 address to using_struct_return and gdbarch_return_value.
896 * value.c (using_struct_return): Take a pointer to struct value
897 instead of struct type for the function requested. Pass the
898 requested function's address to gdbarch_return_value.
899 * python/py-finishbreakpoint.c (finish_breakpoint_object):
900 New function_value member, replacing function_type.
901 (bpfinishpy_dealloc): Update accordingly.
902 (bpfinishpy_pre_stop_hook): Likewise.
903 (bpfinishpy_init): Likewise. Record the requested function's
904 address.
905 * mips-tdep.c (mips_fval_reg): New enum.
906 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
907 words put in GP registers.
908 (mips_o64_push_dummy_call): Update a comment.
909 (mips_o32_return_value): Take a pointer to struct value instead
910 of struct type for the function requested and use it to check if
911 using the MIPS16 calling convention. Return the designated
912 general purpose registers for floating-point values returned in
913 MIPS16 mode.
914 (mips_o64_return_value): Likewise.
915 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
916 (ppc_sysv_abi_broken_return_value): Likewise.
917 (ppc64_sysv_abi_return_value): Likewise.
918 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
919 value instead of struct type for the function requested.
920 * amd64-tdep.c (amd64_return_value): Likewise.
921 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
922 * arm-tdep.c (arm_return_value): Likewise.
923 * avr-tdep.c (avr_return_value): Likewise.
924 * bfin-tdep.c (bfin_return_value): Likewise.
925 * cris-tdep.c (cris_return_value): Likewise.
926 * frv-tdep.c (frv_return_value): Likewise.
927 * h8300-tdep.c (h8300_return_value): Likewise.
928 (h8300h_return_value): Likewise.
929 * hppa-tdep.c (hppa32_return_value): Likewise.
930 (hppa64_return_value): Likewise.
931 * i386-tdep.c (i386_return_value): Likewise.
932 * ia64-tdep.c (ia64_return_value): Likewise.
933 * iq2000-tdep.c (iq2000_return_value): Likewise.
934 * lm32-tdep.c (lm32_return_value): Likewise.
935 * m32c-tdep.c (m32c_return_value): Likewise.
936 * m32r-tdep.c (m32r_return_value): Likewise.
937 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
938 * m68k-tdep.c (m68k_return_value): Likewise.
939 (m68k_svr4_return_value): Likewise.
940 * m88k-tdep.c (m88k_return_value): Likewise.
941 * mep-tdep.c (mep_return_value): Likewise.
942 * microblaze-tdep.c (microblaze_return_value): Likewise.
943 * mn10300-tdep.c (mn10300_return_value): Likewise.
944 * moxie-tdep.c (moxie_return_value): Likewise.
945 * mt-tdep.c (mt_return_value): Likewise.
946 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
947 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
948 (ppc_sysv_abi_broken_return_value): Likewise.
949 (ppc64_sysv_abi_return_value): Likewise.
950 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
951 * rl78-tdep.c (rl78_return_value): Likewise.
952 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
953 * rx-tdep.c (rx_return_value): Likewise.
954 * s390-tdep.c (s390_return_value): Likewise.
955 * score-tdep.c (score_return_value): Likewise.
956 * sh-tdep.c (sh_return_value_nofpu): Likewise.
957 (sh_return_value_fpu): Likewise.
958 * sh64-tdep.c (sh64_return_value): Likewise.
959 * sparc-tdep.c (sparc32_return_value): Likewise.
960 * sparc64-tdep.c (sparc64_return_value): Likewise.
961 * spu-tdep.c (spu_return_value): Likewise.
962 * tic6x-tdep.c (tic6x_return_value): Likewise.
963 * v850-tdep.c (v850_return_value): Likewise.
964 * vax-tdep.c (vax_return_value): Likewise.
965 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
966 * xtensa-tdep.c (xtensa_return_value): Likewise.
967 * gdbarch.c: Regenerate.
968 * gdbarch.h: Regenerate.
969
970 2012-05-15 Tom Tromey <tromey@redhat.com>
971
972 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
973
974 2012-05-15 Joel Brobecker <brobecker@adacore.com>
975
976 * breakpoint.c (init_breakpoint_sal): Add quotes around part
977 of command in two error message.
978
979 2012-05-15 Joel Brobecker <brobecker@adacore.com>
980
981 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
982
983 2012-05-15 Joel Brobecker <brobecker@adacore.com>
984
985 * breakpoint.c (find_condition_and_thread): Minor reformatting.
986
987 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
988
989 * NEWS (show auto-load scripts-directory): Add forgotten command.
990
991 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
992
993 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
994 parameters.
995
996 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
997
998 * amd64-tdep.c: Include features/i386/x32.c and
999 features/i386/x32-avx.c.
1000 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1001 initialize_tdesc_x32_avx.
1002
1003 2012-05-14 Stan Shebs <stan@codesourcery.com>
1004
1005 Add dynamic printf.
1006 * breakpoint.h (enum bptype): New type bp_dprintf.
1007 (struct breakpoint): New field extra_string.
1008 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1009 (create_breakpoint): Add extra_string arg.
1010 * breakpoint.c (dprintf_breakpoint_ops): New.
1011 (is_breakpoint): Add bp_dprintf.
1012 (bpstat_what): Add dprintf case.
1013 (bptype_string): Ditto.
1014 (print_one_breakpoint_location): Ditto.
1015 (init_bp_location): Ditto.
1016 (bkpt_print_mention): Ditto.
1017 (dprintf_style_enums): New array.
1018 (dprintf_style): New global.
1019 (dprintf_function): New global.
1020 (dprintf_channel): New global.
1021 (update_dprintf_command_list): New function.
1022 (update_dprintf_commands): New function.
1023 (init_breakpoint_sal): Add extra_string argument, handle it.
1024 (create_breakpoint_sal): Add extra_string argument.
1025 (create_breakpoints_sal): Add extra_string argument, update callers.
1026 (find_condition_and_thread): Add extra argument.
1027 (create_breakpoint): Add extra_string argument, record it.
1028 (dprintf_command): New function.
1029 (break_command_1): Add arg to create_breakpoint call.
1030 (handle_gnu_v3_exceptions): Ditto.
1031 (trace_command): Ditto.
1032 (ftrace_command): Ditto.
1033 (strace_command): Ditto.
1034 (bkpt_print_mention): Add dprintf case.
1035 (create_breakpoint_sal_default): Add extra_string argument.
1036 (_initialize_breakpoint): Add new commands.
1037 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1038 * python/py-breakpoint.c (bppy_init): Ditto.
1039 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1040
1041 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1042
1043 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1044
1045 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1046
1047 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1048 unsigned long long.
1049
1050 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1051
1052 Add a new function gdb.find_pc_line to the Python API.
1053 * NEWS (Python Scripting): Add entry about the new function.
1054 * python/python.c (gdbpy_find_pc_line): New function which
1055 implements gdb.find_pc_line.
1056 (GdbMethods): Add entry for the new function.
1057
1058 2012-05-12 Pedro Alves <palves@redhat.com>
1059
1060 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1061 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1062
1063 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1064
1065 * inferior.c: Include completer.h
1066 (initialize_inferiors): Set completer of add-inferior to
1067 filename_completer.
1068
1069 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1070
1071 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1072 gdbarch_ptr_bit for x32 core dump.
1073
1074 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1075
1076 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1077 and features/i386/x32-avx-linux.c.
1078
1079 2012-05-11 Stan Shebs <stan@codesourcery.com>
1080 Kwok Cheung Yeung <kcy@codesourcery.com>
1081
1082 * NEWS: Describe new info os commands.
1083 * common/linux-osdata.c (PID_T, TIME_T): Define.
1084 (MAX_PID_T_STRLEN): New.
1085 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1086 MAX_PID_T_STRLEN.
1087 (command_from_pid): Add comment. Change to use PID_T.
1088 (commandline_from_pid): Change to use PID_T.
1089 (user_from_pid): Add comment.
1090 (get_process_owner): Add comment. Change to use PID_T and
1091 MAX_PID_T_STRLEN.
1092 (get_number_of_cpu_cores): Add comment.
1093 (get_cores_used_by_process): Add comment. Change to use PID_T and
1094 MAX_PID_T_STRLEN.
1095 (linux_xfer_osdata_processes): Change to use PID_T and
1096 MAX_PID_T_STRLEN.
1097 (compare_processes): New function.
1098 (linux_xfer_osdata_processgroups): New function.
1099 (linux_xfer_osdata_threads): Change to use PID_T.
1100 (linux_xfer_osdata_fds): New function.
1101 (format_socket_state, print_sockets): New functions.
1102 (union socket_addr): New union.
1103 (linux_xfer_osdata_isockets): New function.
1104 (time_from_time_t, group_from_gid): New functions.
1105 (linux_xfer_osdata_shm): New function.
1106 (linux_xfer_osdata_sem): New function.
1107 (linux_xfer_osdata_msg): New function.
1108 (linux_xfer_osdata_modules): New function.
1109 (osdata_table): Add new entries.
1110 * common/buffer.c (buffer_xml_printf): Add support for long and
1111 long long format specifiers.
1112
1113 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1114
1115 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1116 (tdesc_x32_avx_linux): Likewise.
1117
1118 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 Implement multi-component --with-auto-load-dir.
1121 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1122 entries.
1123 (--with-auto-load-safe-path): Update the default value description.
1124 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1125 New.
1126 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1127 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1128 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1129 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1130 "set auto-load scripts-directory".
1131 * config.in: Regenerate.
1132 * configure: Regenerate.
1133 * configure.ac (--with-auto-load-dir): New configure option.
1134 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1135
1136 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 Provide $ddir substitution for --with-auto-load-safe-path.
1139 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1140 entries.
1141 * auto-load.c: Include observer.h.
1142 (auto_load_safe_path_vec_update): Call substitute_path_component for
1143 each component. New variable ddir_subst.
1144 (auto_load_gdb_datadir_changed): New function.
1145 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1146 AUTO_LOAD_SAFE_PATH. New comment.
1147 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1148 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1149 * config.in: Regenerate.
1150 * configure: Regenerate.
1151 * configure.ac (--auto-load-safe-path): Rename
1152 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1153 GDB_DATADIR/auto-load.
1154 * defs.h (substitute_path_component): New declaration.
1155 * top.c: Include observer.h.
1156 (set_gdb_datadir): New function.
1157 (init_main): Install it for "set data-directory".
1158 * utils.c (substitute_path_component): New function.
1159
1160 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1161
1162 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1163 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1164 DEBUG_FILE_DIRECTORY. Handle multiple components of
1165 DEBUG_FILE_DIRECTORY.
1166
1167 2012-05-10 Tom Tromey <tromey@redhat.com>
1168
1169 * dwarf2read.c (recursively_write_psymbols): New function.
1170 (write_psymtabs_to_index): Use it.
1171
1172 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1173 field.
1174 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1175 (load_partial_comp_unit): Update.
1176 (queue_comp_unit): Add argument 'pretend_language'.
1177 (process_queue): Update.
1178 (psymtab_to_symtab_1): Skip dependencies that have a user.
1179 (load_partial_comp_unit_reader): Give meaning to the 'data'
1180 argument.
1181 (load_full_comp_unit): Add 'pretend_language' argument.
1182 (process_full_comp_unit): Add 'pretend_language' argument. Set
1183 language on CU.
1184 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1185 Update.
1186 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1187 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1188 Update.
1189 (prepare_one_comp_unit): Add 'pretend_language' argument.
1190
1191 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1192 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1193 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1194 (dw2_do_instantiate_symtab): Check whether symtab was read in
1195 before queueing.
1196 (dw2_instantiate_symtab): Add assertion. Call
1197 process_cu_includes.
1198 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1199 (partial_symtab_p): New typedef.
1200 (set_partial_user): New function.
1201 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1202 (scan_partial_symbols): Add imported CU to imported_symtabs.
1203 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1204 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1205 (get_symtab, recursively_compute_inclusions)
1206 (compute_symtab_includes, process_cu_includes)
1207 (process_imported_unit_die): New functions.
1208 (process_die) <DW_TAG_imported_unit>: New case.
1209 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1210
1211 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1212 comment.
1213 (struct partial_die_info) <locdesc>: Remove.
1214 <d>: New field.
1215 (process_psymtab_comp_unit): Add 'read_partial' argument.
1216 Update.
1217 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1218 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1219 (add_partial_symbol): Update.
1220 (process_die): Handle DW_TAG_partial_unit.
1221 (read_file_scope): Update comment.
1222 (load_partial_dies): Handle DW_TAG_imported_unit.
1223 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1224 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1225
1226 2012-05-10 Tom Tromey <tromey@redhat.com>
1227
1228 * cc-with-dwz.sh: New file.
1229
1230 2012-05-10 Tom Tromey <tromey@redhat.com>
1231
1232 * symtab.h (struct symtab) <includes, user>: New fields.
1233 * block.h (struct block_iterator) <d, idx, which>: New fields.
1234 * block.c (initialize_block_iterator, find_iterator_symtab)
1235 (block_iterator_step, block_iter_name_step)
1236 (block_iter_match_step): New functions.
1237 (block_iterator_first, block_iterator_next)
1238 (block_iter_name_first, block_iter_name_next)
1239 (block_iter_match_first, block_iter_match_next): Rewrite.
1240 (get_block_symtab): New function.
1241
1242 2012-05-10 Tom Tromey <tromey@redhat.com>
1243
1244 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1245 set_block_symtab.
1246 * jit.c (finalize_symtab): Use allocate_global_block,
1247 set_block_symtab.
1248 * buildsym.c (finish_block_internal): New function, from old
1249 finish_block.
1250 (finish_block): Rewrite.
1251 (end_symtab): Use finish_block_internal, set_block_symtab.
1252 * block.h (struct global_block): New.
1253 (allocate_global_block, set_block_symtab): Declare.
1254 * block.c (allocate_global_block, set_block_symtab): New
1255 functions.
1256
1257 2012-05-10 Tom Tromey <tromey@redhat.com>
1258
1259 * psymtab.c (partial_map_expand_apply): Add assertion.
1260 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1261 (psymtab_to_symtab): Find unshared psymtab.
1262 (dump_psymtab): Print including psymtabs.
1263 (recursively_search_psymtabs): New function.
1264 (expand_symtabs_matching_via_partial): Use it.
1265 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1266 fields.
1267 (enum psymtab_search_status): New.
1268
1269 2012-05-10 Tom Tromey <tromey@redhat.com>
1270
1271 * tracepoint.c (scope_info): Update.
1272 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1273 (find_pc_sect_symtab, search_symbols)
1274 (default_make_symbol_completion_list_break_on)
1275 (make_file_symbol_completion_list): Update.
1276 * symmisc.c (dump_symtab_1): Update.
1277 * stack.c (print_frame_args, iterate_over_block_locals)
1278 (print_frame_labels, iterate_over_block_arg_vars): Update.
1279 * python/py-block.c (block_object) <dict>: Remove.
1280 <block>: New field.
1281 <iter>: Change type.
1282 (blpy_iter): Update.
1283 (blpy_block_syms_iternext): Update.
1284 * psymtab.c (map_block): Use block iterators.
1285 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1286 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1287 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1288 * infrun.c (check_exception_resume): Update.
1289 * cp-support.c (make_symbol_overload_list_block): Update.
1290 * coffread.c (patch_opaque_types): Update.
1291 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1292 * block.h (struct block_iterator): New.
1293 (block_iterator_first, block_iterator_next, block_iter_name_first)
1294 (block_iter_name_next, block_iter_match_first)
1295 (block_iter_match_next): Declare.
1296 (ALL_BLOCK_SYMBOLS): Redefine.
1297 * block.c (block_iterator_first, block_iterator_next)
1298 (block_iter_name_first, block_iter_name_next)
1299 (block_iter_match_first, block_iter_match_next): New functions.
1300 * ada-lang.c (ada_add_block_symbols)
1301 (ada_make_symbol_completion_list): Use block iterator.
1302
1303 2012-05-10 Tom Tromey <tromey@redhat.com>
1304
1305 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1306 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1307 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1308 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1309 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1310 Update.
1311
1312 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1313
1314 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1315 print-file-var-lib2.c, print-file-var-main.c and
1316 print-file-var.exp (located in gdb/testsuite/gdb.base).
1317
1318 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1319
1320 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1321 try locating the symbol in the symbol's own objfile first, before
1322 extending the search to all objfiles.
1323 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1324 out of lookup_symbol_aux_symtabs.
1325 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1326 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1327 Do not search EXCLUDE_OBJFILE.
1328 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1329 (lookup_symbol_global): Search for matches in the block's objfile
1330 first, before searching all other objfiles.
1331
1332 2012-05-10 Tristan Gingold <gingold@adacore.com>
1333
1334 * printcmd.c (set_command): Add pre/post inc/dec.
1335
1336 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1337
1338 * gdb.1: Document -ex option.
1339
1340 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1341
1342 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1343 * inferior.h (AT_SYMBOL): Delete.
1344
1345 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1346
1347 * mips-tdep.c (mips_push_dummy_code): New function.
1348 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1349 ON_STACK and install mips_push_dummy_code as our gdbarch
1350 push_dummy_code routine.
1351
1352 2012-05-09 Pedro Alves <palves@redhat.com>
1353
1354 * target.c (set_maintenance_target_async_permitted): Rename to ...
1355 (set_target_async_command): ... this.
1356 (show_maintenance_target_async_permitted): Rename to ...
1357 (show_target_async_command): ... this.
1358 (initialize_targets): Adjust.
1359
1360 2012-05-08 Doug Evans <dje@google.com>
1361
1362 * go-exp.y (classify_name): Add missing assignment of fields of
1363 yylval.ssym.
1364
1365 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1366
1367 Display the ">" prompt in interactive mode while reading canned
1368 commands, even when the current interpreter is MI.
1369
1370 * interps.c (interp_set_temp): New function.
1371
1372 * interps.h (interp_set_temp): Add prototype.
1373
1374 * cli/cli-script.c (restore_interp): New cleanup function.
1375 (read_command_lines): Temporarily override the current interpreter
1376 with CLI and arrange for restoring the original one.
1377
1378 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1379
1380 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1381
1382 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1383
1384 * probe.c (parse_probes): Move conditional to check for
1385 debuginfo files from here...
1386 * stap-probe.c (stap_get_probes): ... to here.
1387
1388 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1389 H.J. Lu <hongjiu.lu@intel.com>
1390
1391 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1392 `movl %esp, %ebp' for the X32 ABI.
1393
1394 2012-05-07 Tom Tromey <tromey@redhat.com>
1395
1396 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1397 get_DW_TAG_name.
1398 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1399 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1400 (dwarf_stack_op_name): Remove.
1401 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1402 (decode_locdesc): Use get_DW_OP_name.
1403 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1404 (dwarf2_compile_expr_to_ax): Likewise.
1405 (disassemble_dwarf_expression): Likewise.
1406 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1407
1408 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1409
1410 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1411 (sh_linux_sigtramp_cache): New function.
1412 (sh_linux_sigreturn_init): New function.
1413 (sh_linux_rt_sigreturn_init): New function.
1414 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1415 patterns.
1416 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1417 syscall codes.
1418 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1419 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1420 (sh_linux_init_abi): Add init calls to register new tramp_frame
1421 definitions under 32-bit SH, update comments.
1422
1423 2012-05-07 Pedro Alves <palves@redhat.com>
1424
1425 PR gdb/10952
1426
1427 * amd64-linux-tdep.c: Include glibc-tdep.h.
1428 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1429 gdbarch_skip_solib_resolver callback.
1430
1431 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1432
1433 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1434 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1435 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1436 (add_auto_load_safe_path): Change the error message.
1437 (_initialize_auto_load): Change the "safe-path" help text.
1438 * configure: Regenerate
1439 * configure.ac (--without-auto-load-safe-path): Set
1440 WITH_AUTO_LOAD_SAFE_PATH to /.
1441
1442 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1443
1444 * stap-probe.h: Do not include unecessary `probe.h'.
1445
1446 2012-05-05 Alan Modra <amodra@gmail.com>
1447
1448 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1449 bfd_und_section_ptr.
1450 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1451 and bfd_com_section_ptr.
1452
1453 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1454
1455 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1456
1457 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1458
1459 * windows-nat.h (segment_register_p_ftype): New typedef.
1460 (windows_set_segment_register_p): Add declaration.
1461 * windows-nat.c (segment_register_p): New static global.
1462 (windows_set_segment_register_p): New function.
1463 (do_windows_fetch_inferior_registers): Add special handling
1464 for segment registers.
1465 * amd64-windows-nat.c: #include "amd64-tdep.h".
1466 (amd64_windows_segment_register_p): New function.
1467 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1468 * i386-windows-nat.c: #include "i386-tdep.h".
1469 (i386_windows_segment_register_p): New function.
1470 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1471
1472 2012-05-04 Tristan Gingold <gingold@adacore.com>
1473
1474 * printcmd.c (set_command): Emit a warning if the expression is not
1475 an assignment.
1476
1477 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1478
1479 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1480 Make static.
1481
1482 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1483
1484 * stap-probe.c (stap_is_operator): Change declaration.
1485 (stap_get_opcode): Change return value.
1486 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1487 `stap_parse_argument_1'.
1488
1489 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1490
1491 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1492 debug log.
1493
1494 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1495
1496 Add two new methods global_block and static_block to gdb.Symtab
1497 objects.
1498 * NEWS (Python scripting): Add entry about the new methods.
1499 * python/py-symtab.c (stpy_global_block): New function which
1500 implements the gdb.Symtab.global_block() method.
1501 (stpy_static_block): New function which implements the
1502 gdb.Symtab.static_block() method.
1503 (symtab_object_methods): Add entries for the two new methods.
1504
1505 2012-05-03 Doug Evans <dje@google.com>
1506
1507 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1508 files.
1509
1510 2012-05-03 Yao Qi <yao@codesourcery.com>
1511
1512 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1513 space.
1514 (i386_process_record): Ditto.
1515
1516 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1517
1518 * infcall.c (unwind_on_signal_p): Make static.
1519
1520 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1521
1522 * sol-thread.c (solaris_pid_to_str): Make static.
1523 (_initialize_sol_thread): Add prototype.
1524
1525 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1526
1527 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1528
1529 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1530
1531 * MAINTAINERS: Remove myself.
1532
1533 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 Fix --without-auto-load-safe-path for MS-Windows host platform.
1536 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1537
1538 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1539
1540 * gdb_curses.h: Undefine KEY_EVENT before including curses
1541 headers. Move "#undef MOUSE_MOVED" before any curses header
1542 inclusion.
1543
1544 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1545
1546 * features/i386/i386-mmx-linux.c: Regenerate.
1547 * features/rs6000/powerpc-32.c: Likewise.
1548 * features/rs6000/powerpc-32l.c: Likewise.
1549 * features/rs6000/powerpc-403.c: Likewise.
1550 * features/rs6000/powerpc-403gc.c: Likewise.
1551 * features/rs6000/powerpc-405.c: Likewise.
1552 * features/rs6000/powerpc-505.c: Likewise.
1553 * features/rs6000/powerpc-601.c: Likewise.
1554 * features/rs6000/powerpc-602.c: Likewise.
1555 * features/rs6000/powerpc-603.c: Likewise.
1556 * features/rs6000/powerpc-604.c: Likewise.
1557 * features/rs6000/powerpc-64.c: Likewise.
1558 * features/rs6000/powerpc-64l.c: Likewise.
1559 * features/rs6000/powerpc-750.c: Likewise.
1560 * features/rs6000/powerpc-860.c: Likewise.
1561 * features/rs6000/powerpc-e500.c: Likewise.
1562 * features/rs6000/powerpc-e500l.c: Likewise.
1563 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1564 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1565 * features/rs6000/rs6000.c: Likewise.
1566
1567 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1568
1569 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1570 variable.
1571 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1572 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1573 (stap_parse_argument) <e>: Likewise.
1574 (handle_stap_probe) <byte_order>: Likewise.
1575
1576 2012-04-30 Doug Evans <dje@google.com>
1577
1578 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1579 init_and_read_dies_worker. All callers updated.
1580 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1581 replaced with init_cutu_and_read_dies.
1582 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1583 (find_partial_die): Remove FIXME. Don't free current CU.
1584
1585 2012-04-30 Sterling Augustine <saugustine@google.com>
1586
1587 * contrib: New directory.
1588 * contrib/test_pubnames_and_indexes.py: New file.
1589
1590 2012-04-30 Doug Evans <dje@google.com>
1591
1592 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1593 All callers updated.
1594 (init_cu_die_reader): Verify the section is non-empty.
1595 (dwarf_decode_line_header): Don't dereference section->asection
1596 until we know the section is present.
1597
1598 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1599
1600 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1601 probes.
1602
1603 2012-04-29 Yao Qi <yao@codesourcery.com>
1604
1605 * gdb-code-style.el: New hook gdb-markup-hook
1606 and gdb-comment-hook.
1607
1608 2012-04-28 Doug Evans <dje@google.com>
1609
1610 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1611 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1612 objfile->obfd.
1613 * symfile.h (dwarf2_debug_sections): New member addr.
1614 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1615 (ctx_no_get_addr_index): New function.
1616 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1617 (ctx_no_get_addr_index): Declare.
1618 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1619 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1620 (dwarf_expr_ctx_funcs): Update.
1621 (needs_get_addr_index): New function.
1622 (needs_frame_ctx_funcs): Update.
1623 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1624 * dwarf2read.c: #include "gdbcore.h".
1625 (dwarf2_per_objfile): New members addr, dwo_files.
1626 (dwarf2_elf_names): Add entry for addr.
1627 (struct dwo_section_names): New type.
1628 (dwo_section_names): New static global.
1629 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1630 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1631 old debug_types_section member updated to use this.
1632 Rename member debug_types_section to info_or_types_section,
1633 all uses updated.
1634 (signatured_type): Rename member type_offset to type_offset_in_tu,
1635 all uses updated. New member type_offset_in_section.
1636 (struct dwo_sections): New type.
1637 (struct dwo_unit): New type.
1638 (struct dwo_file): New type.
1639 (die_reader_specs): New member dwo_file.
1640 (dwarf2_locate_sections): Watch for .debug_addr.
1641 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1642 (dwarf2_read_section): Get bfd of section from bfd's asection,
1643 instead of objfile.
1644 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1645 (create_signatured_type_table_from_index): Initialize
1646 sig_type->info_or_types_section.
1647 (dw2_get_file_names): Statement lists for type units with DWO files
1648 live in the DWO file.
1649 (create_debug_types_hash_table): New function.
1650 (create_all_type_units): Rewrite.
1651 (init_cu_die_reader): New arg dwo_file, all callers updated.
1652 (init_and_read_dies_worker): Get section from
1653 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1654 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1655 continue reading the CU/TU from there.
1656 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1657 updated. Get section from this_cu->info_or_types_section.
1658 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1659 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1660 DW_FORM_GNU_str_index.
1661 (hash_dwo_file, eq_dwo_file): New functions.
1662 (allocate_dwo_file_hash_table): New function.
1663 (hash_dwo_unit, eq_dwo_unit): New functions.
1664 (allocate_dwo_unit_table): New function.
1665 (dwarf2_locate_dwo_sections): New function.
1666 (struct create_dwo_info_table_data): New type.
1667 (create_debug_info_hash_table_reader): New function.
1668 (create_debug_info_hash_table): New function.
1669 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1670 (lookup_dwo_file): New function.
1671 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1672 (free_dwo_file, free_dwo_file_cleanup): New functions.
1673 (free_dwo_file_from_slot, free_dwo_files): New functions.
1674 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1675 (dwarf2_record_block_ranges): Ditto.
1676 (read_partial_die): Ditto.
1677 (process_enumeration_scope): Update to use type_offset_in_section.
1678 (read_full_die_1): New function.
1679 (read_full_die): Rewrite.
1680 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1681 DW_FORM_GNU_str_index.
1682 (read_addr_index_1, read_addr_index): New functions.
1683 (read_addr_index_from_leb128): New function.
1684 (struct dwarf2_read_addr_index_data): New type.
1685 (dwarf2_read_addr_index_reader): New function.
1686 (dwarf2_read_addr_index): New function.
1687 (read_str_index): New function.
1688 (leb128_size): New function.
1689 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1690 If processing a type unit from a DWO file, get the line section
1691 from the DWO file.
1692 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1693 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1694 DW_FORM_GNU_str_index.
1695 (lookup_die_type): Check whether section offset of type's die is
1696 known before looking it up. Remove assert. Condition can
1697 legimately happen for inter-cu type references.
1698 (dwarf_attr_name): Handle Fission attributes.
1699 (dwarf_form_name): Handle Fission forms.
1700 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1701 DW_FORM_GNU_str_index.
1702 (follow_die_sig): Update to use type_offset_in_section.
1703 (decode_locdesc): New case DW_OP_GNU_addr_index.
1704 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1705 DW_FORM_GNU_str_index.
1706 (cu_debug_loc_section): New function.
1707 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1708 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1709 Free DWO files if present.
1710 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1711
1712 Refactor DIE reading.
1713 * dwarf2read.c (dwarf2_per_objfile): Replace members
1714 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1715 (die_reader_specs): New member "die_section". Temporarily make
1716 member "buffer" non-const, pending constifying all info_ptr uses.
1717 (die_reader_func_ftype): New typedef.
1718 (dw2_get_file_names_reader): New function.
1719 (dw2_get_file_names): Rewrite.
1720 (read_and_check_type_unit_head): Rename arg type_offset to
1721 type_offset_in_tu.
1722 (create_all_type_units): Improve debugging message.
1723 Improve dummy type unit check.
1724 (init_cu_die_reader): New arg "section". All callers updated.
1725 (init_and_read_dies_worker): New function.
1726 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1727 (init_cutu_and_read_dies_no_follow): New function.
1728 (init_cutu_and_read_dies_simple): New function.
1729 (process_psymtab_comp_unit_reader): New function.
1730 (process_psymtab_comp_unit): Delete args section,
1731 is_debug_types_section. Rewrite. All callers updated.
1732 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1733 All callers updated. Rewrite.
1734 (load_partial_comp_unit_reader): New function.
1735 (load_partial_comp_unit): Rewrite.
1736 (skip_children): New arg reader. Delete args buffer, cu.
1737 All callers updated.
1738 (skip_one_die): New arg reader. Delete args buffer, cu.
1739 All callers updated.
1740 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1741 All callers updated.
1742 (load_full_comp_unit_reader): New function.
1743 (load_full_comp_unit): Rewrite.
1744 (read_comp_unit): Delete.
1745 (read_die_and_children_1): Delete, contents moved ...
1746 (read_die_and_children): ... here.
1747 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1748 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1749 All callers updated.
1750 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1751 All callers updated.
1752 (find_partial_die): Rewrite load_all_dies support.
1753 (read_attribute_value): New arg reader. Delete args abfd, cu.
1754 All callers updated.
1755 (read_attribute): New arg reader. Delete args abfd, cu.
1756 All callers updated.
1757 (load_full_type_unit): Add assert.
1758 (read_signatured_type_reader): New function.
1759 (read_signatured_type): Rewrite.
1760 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1761 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1762 All callers updated. Set per_cu->cu = NULL after freeing it.
1763 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1764 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1765 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1766 (set_die_type): Update.
1767 (get_die_type_at_offset): Update.
1768 (read_file_scope): Call prepare_one_comp_unit.
1769 (read_type_unit_scope): Ditto.
1770 (prepare_one_comp_unit): Set producer if present.
1771
1772 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1773
1774 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1775 gettext function on `error'.
1776
1777 2012-04-27 Doug Evans <dje@google.com>
1778
1779 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1780 is empty.
1781
1782 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1783 Tom Tromey <tromey@redhat.com>
1784
1785 * breakpoint.c (struct breakpoint_objfile_data)
1786 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1787 <exception_probes>: New fields.
1788 (free_breakpoint_probes): New function.
1789 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1790 `_Unwind_DebugHook'.
1791 (create_exception_master_breakpoint): Likewise.
1792 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1793 * infrun.c: Including necessary header files for handling SystemTap
1794 probes.
1795 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1796 via SystemTap probes.
1797 (check_exception_resume): Remove `func' argument. Handle exception
1798 unwinding breakpoint set via a SystemTap probe.
1799 (insert_exception_resume_from_probe): New function.
1800
1801 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1802 Tom Tromey <tromey@redhat.com>
1803 Jan Kratochvil <jan.kratochvil@redhat.com>
1804
1805 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1806 (COMMON_OBS): Likewise.
1807 (HFILES_NO_SRCDIR): Add `probe'.
1808 * NEWS: Mention support for static and SystemTap probes.
1809 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
1810 SystemTap probes' arguments parser.
1811 * arm-linux-tdep.c: Including headers needed to perform the parsing
1812 of SystemTap probes' arguments.
1813 (arm_stap_is_single_operand): New function.
1814 (arm_stap_parse_special_token): Likewise.
1815 (arm_linux_init_abi): Initializing proper fields used by SystemTap
1816 probes' arguments parser.
1817 * ax-gdb.c (require_rvalue): Removing static declaration.
1818 (gen_expr): Likewise.
1819 * ax-gdb.h (gen_expr): Declaring function.
1820 (require_rvalue): Likewise.
1821 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
1822 (bkpt_probe_breakpoint_ops): New variable.
1823 (momentary_breakpoint_from_master): Set the `probe' value.
1824 (add_location_to_breakpoint): Likewise.
1825 (break_command_1): Using proper breakpoint_ops according to the
1826 argument passed by the user in the command line.
1827 (bkpt_probe_insert_location): New function.
1828 (bkpt_probe_remove_location): Likewise.
1829 (bkpt_probe_create_sals_from_address): Likewise.
1830 (bkpt_probe_decode_linespec): Likewise.
1831 (tracepoint_probe_create_sals_from_address): Likewise.
1832 (tracepoint_probe_decode_linespec): Likewise.
1833 (tracepoint_probe_breakpoint_ops): New variable.
1834 (trace_command): Using proper breakpoint_ops according to the
1835 argument passed by the user in the command line.
1836 (initialize_breakpoint_ops): Initializing breakpoint_ops for
1837 static probes on breakpoints and tracepoints.
1838 * breakpoint.h (struct bp_location) <probe>: New field.
1839 * cli-utils.c (skip_spaces_const): New function.
1840 (extract_arg): Likewise.
1841 * cli-utils.h (skip_spaces_const): Likewise.
1842 (extract_arg): Likewise.
1843 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
1844 * configure.ac: Append `stap-probe.o' to be generated when ELF
1845 support is present.
1846 * configure: Regenerate.
1847 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
1848 * elfread.c: Include `probe.h' and `arch-utils.h'.
1849 (probe_key): New variable.
1850 (elf_get_probes): New function.
1851 (elf_get_probe_argument_count): Likewise.
1852 (elf_evaluate_probe_argument): Likewise.
1853 (elf_compile_to_ax): Likewise.
1854 (elf_symfile_relocate_probe): Likewise.
1855 (stap_probe_key_free): Likewise.
1856 (elf_probe_fns): New variable.
1857 (elf_sym_fns): Add `sym_probe_fns' value.
1858 (elf_sym_fns_lazy_psyms): Likewise.
1859 (elf_sym_fns_gdb_index): Likewise.
1860 (_initialize_elfread): Initialize objfile cache for static
1861 probes.
1862 * gdb_vecs.h (struct probe): New forward declaration.
1863 (probe_p): New VEC declaration.
1864 * gdbarch.c: Regenerate.
1865 * gdbarch.h: Regenerate.
1866 * gdbarch.sh (stap_integer_prefix): New variable.
1867 (stap_integer_suffix): Likewise.
1868 (stap_register_prefix): Likewise.
1869 (stap_register_suffix): Likewise.
1870 (stap_register_indirection_prefix): Likewise.
1871 (stap_register_indirection_suffix): Likewise.
1872 (stap_gdb_register_prefix): Likewise.
1873 (stap_gdb_register_suffix): Likewise.
1874 (stap_is_single_operand): New function.
1875 (stap_parse_special_token): Likewise.
1876 (struct stap_parse_info): Forward declaration.
1877 * i386-tdep.c: Including headers needed to perform the parsing
1878 of SystemTap probes' arguments.
1879 (i386_stap_is_single_operand): New function.
1880 (i386_stap_parse_special_token): Likewise.
1881 (i386_elf_init_abi): Initializing proper fields used by SystemTap
1882 probes' arguments parser.
1883 * i386-tdep.h (i386_stap_is_single_operand): New function.
1884 (i386_stap_parse_special_token): Likewise.
1885 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
1886 * mipsread.c (ecoff_sym_fns): Likewise.
1887 * objfiles.c (objfile_relocate1): Support relocation for static
1888 probes.
1889 * parse.c (prefixify_expression): Remove static declaration.
1890 (initialize_expout): Likewise.
1891 (reallocate_expout): Likewise.
1892 * parser-defs.h (initialize_expout): Declare function.
1893 (reallocate_expout): Likewise.
1894 (prefixify_expression): Likewise.
1895 * ppc-linux-tdep.c: Including headers needed to perform the parsing
1896 of SystemTap probes' arguments.
1897 (ppc_stap_is_single_operand): New function.
1898 (ppc_stap_parse_special_token): Likewise.
1899 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
1900 probes' arguments parser.
1901 * probe.c: New file, for generic statically defined probe support.
1902 * probe.h: Likewise.
1903 * s390-tdep.c: Including headers needed to perform the parsing of
1904 SystemTap probes' arguments.
1905 (s390_stap_is_single_operand): New function.
1906 (s390_gdbarch_init): Initializing proper fields used by SystemTap
1907 probes' arguments parser.
1908 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
1909 * stap-probe.c: New file, for SystemTap probe support.
1910 * stap-probe.h: Likewise.
1911 * symfile.h: Include `gdb_vecs.h'.
1912 (struct sym_probe_fns): New struct.
1913 (struct sym_fns) <sym_probe_fns>: New field.
1914 * symtab.c (init_sal): Initialize `probe' field.
1915 * symtab.h (struct probe): Forward declaration.
1916 (struct symtab_and_line) <probe>: New field.
1917 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
1918 locations.
1919 (stop_tracing): Likewise.
1920 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
1921
1922 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1923 Tom Tromey <tromey@redhat.com>
1924
1925 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
1926 and to compile agent expressions.
1927 * infrun.c (siginfo_make_value): New argument `ignore'.
1928 (siginfo_funcs): New struct.
1929 (_initialize_infrun): New argument when calling
1930 `create_internalvar_type_lazy'.
1931 * thread.c (thread_id_make_value): New argument `ignore'.
1932 (thread_funcs): New struct.
1933 (_initialize_thread): New argument when calling
1934 `create_internalvar_type_lazy'.
1935 * tracepoint.c (sdata_make_value): New argument `ignore'.
1936 (sdata_funcs): New struct.
1937 (_initialize_tracepoint): New argument when calling
1938 `create_internalvar_type_lazy'.
1939 * value.c (make_value): New struct.
1940 (create_internalvar_type_lazy): New argument `data'.
1941 (compile_internalvar_to_ax): New function.
1942 (value_of_internalvar): Properly handling `make_value' case.
1943 (clear_internalvar): Likewise.
1944 (show_convenience): Adding `TRY_CATCH' block.
1945 * value.h (internalvar_make_value): Delete, replace by...
1946 (struct internalvar_funcs): ... this.
1947 (create_internalvar_type_lazy) <fun>: Delete argument.
1948 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
1949 (compile_internalvar_to_ax): New function.
1950 * windows-tdep.c (tlb_make_value): New argument `ignore'.
1951 (tlb_funcs): New struct.
1952 (_initialize_windows_tdep): New argument when calling
1953 `create_internalvar_type_lazy'.
1954
1955 2012-04-27 Mark Wielaard <mjw@redhat.com>
1956
1957 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
1958 see whether it is an address or a constant offset from DW_AT_low_pc.
1959 (dwarf2_record_block_ranges): Likewise.
1960 (read_partial_die): Likewise.
1961
1962 2012-04-26 Mark Wielaard <mjw@redhat.com>
1963
1964 * MAINTAINERS (Write After Approval): Add myself to the list.
1965
1966 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1967
1968 * proc-utils.h (proc_prettyprint_signalset): New prototype.
1969 (proc_prettyprint_signal): Likewise.
1970 (proc_prettyprint_faultset): Likewise.
1971 (proc_prettyprint_fault): Likewise.
1972 (proc_prettyprint_actionset): Likewise.
1973 (proc_prettyprint_flags): Move to new proc-flags.c section.
1974 (proc_prettyfprint_flags): New prototype.
1975 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
1976 (proc_syscall, proc_cursig): Likewise.
1977 (proc_set_kill_on_last_close): Likewise.
1978 (proc_unset_kill_on_last_close): Likewise.
1979 (proc_set_watchpoint): Make static.
1980 (proc_delete_dead_threads): Likewise.
1981 (procfs_set_watchpoint): Likewise.
1982 (_initialize_procfs): Add prototype.
1983 * proc-events.c: Include proc-utils.h.
1984 (init_syscall_table): Make static.
1985 * proc-api.c (_initialize_proc_api): Add prototype.
1986 * proc-flags.c: Include proc-utils.h.
1987
1988 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1989
1990 * configure.ac: Add AC_ARG_PROGRAM.
1991 * configure: Regenerate.
1992
1993 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1994
1995 Fix DW_AT_lower_bound defaults for DWARF-4+.
1996 * dwarf2read.c (read_subrange_type): Remove initialization of low and
1997 high. New variable low_default_is_valid. Implement DWARF-4+
1998 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
1999 no default by the DWARF standard.
2000
2001 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2002 Maciej W. Rozycki <macro@codesourcery.com>
2003
2004 * infrun.c (handle_inferior_event): Move the check for return
2005 trampolines ahead of the check for function trampolines.
2006 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2007 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2008 (mips_str_mips16_ret_stub): Likewise.
2009 (mips_str_call_fp_stub): Likewise.
2010 (mips_str_call_stub): Likewise.
2011 (mips_str_fn_stub): Likewise.
2012 (mips_str_pic): Likewise.
2013 (mips_in_frame_stub): New function.
2014 (mips_unwind_pc): Return the return address rather than the PC
2015 if the PC of an intermediate frame is inside a call thunk.
2016 (mips_is_stub_suffix): New function.
2017 (mips_is_stub_mode): Likewise.
2018 (mips_get_mips16_fn_stub_pc): Likewise.
2019 (mips_skip_mips16_trampoline_code): Update to handle all the
2020 currently generated stub types. Don't recurse into __fn_stub
2021 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2022 Use cooked register accesses.
2023 (mips_in_return_stub): Reintroduce function.
2024 (mips_skip_trampoline_code): Traverse trampolines recursively.
2025 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2026
2027 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2028
2029 GDB 7.4.1 released.
2030
2031 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2032
2033 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2034 * features/arm-with-m-vfp-d16.xml: New file. Describes
2035 Cortex-M with VFPv4-sp-d16 FPU register layout.
2036 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2037 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2038 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2039 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2040 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2041
2042 2012-04-25 Doug Evans <dje@google.com>
2043
2044 * cli/cli-decode.c (print_doc_line): Use stream instead of
2045 current_uiout.
2046
2047 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2048
2049 * features/arm-with-iwmmxt.c: Regenerate.
2050 * features/arm-with-m-fpa-layout.c: Likewise.
2051 * features/arm-with-m.c: Likewise.
2052 * features/arm-with-neon.c: Likewise.
2053 * features/arm-with-vfpv2.c: Likewise.
2054 * features/arm-with-vfpv3.c: Likewise.
2055 * features/mips-dsp-linux.c: Likewise.
2056 * features/mips-linux.c: Likewise.
2057 * features/mips64-dsp-linux.c: Likewise.
2058 * features/mips64-linux.c: Likewise.
2059 * features/s390-linux32.c: Likewise.
2060 * features/s390-linux32v1.c: Likewise.
2061 * features/s390-linux32v2.c: Likewise.
2062 * features/s390-linux64.c: Likewise.
2063 * features/s390-linux64v1.c: Likewise.
2064 * features/s390-linux64v2.c: Likewise.
2065 * features/s390x-linux64.c: Likewise.
2066 * features/s390x-linux64v1.c: Likewise.
2067 * features/s390x-linux64v2.c: Likewise.
2068 * features/tic6x-c62x-linux.c: Likewise.
2069 * features/tic6x-c62x.c: Likewise.
2070 * features/tic6x-c64x-linux.c: Likewise.
2071 * features/tic6x-c64x.c: Likewise.
2072 * features/tic6x-c64xp-linux.c: Likewise.
2073 * features/tic6x-c64xp.c: Likewise.
2074 * target-descriptions.c: Only generate `field_type' and `type'
2075 variables when needed.
2076
2077 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2078
2079 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2080
2081 2012-04-25 Doug Evans <dje@google.com>
2082
2083 Initial pass at Go language support.
2084 * NEWS: Mention Go.
2085 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2086 go-valprint.c.
2087 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2088 (YYFILES): Add go-exp.c.
2089 (YYOBJ): Add go-exp.o.
2090 (local-maintainer-clean): Delete go-exp.c.
2091 * defs.h (enum language): Add language_go.
2092 * dwarf2read.c: #include "go-lang.h".
2093 (fixup_go_packaging): New function.
2094 (process_full_comp_unit): Call it when processing Go CUs.
2095 (dwarf2_physname): Add Go support.
2096 (read_file_scope): Handle missing language spec for GNU Go.
2097 (set_cu_language): Handle DW_LANG_Go.
2098 * go-exp.y: New file.
2099 * go-lang.h: New file.
2100 * go-lang.c: New file.
2101 * go-typeprint.c: New file.
2102 * go-valprint.c: New file.
2103 * symtab.c: #include "go-lang.h".
2104 (symbol_set_language): Handle language_go.
2105 (symbol_find_demangled_name, symbol_set_names): Ditto.
2106 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2107
2108 2012-04-24 Jim Meyering <meyering@redhat.com>
2109
2110 avoid a few strncpy-induced buffer overruns
2111 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2112 fname and psargs before trying to concatenate.
2113 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2114 "name" before applying strchr.
2115
2116 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2117
2118 * CONTRIBUTE: Use unified diff instead of context diff when
2119 generating patches.
2120
2121 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2122
2123 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2124 code. Handle JR.HB correctly.
2125
2126 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2127
2128 * mips-tdep.c
2129 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2130 with the other MIPS16 helpers.
2131
2132 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2133
2134 * observer.sh: Conditionally declare `args', thus cleaning up
2135 unused instances of this variable.
2136
2137 2012-04-24 Yao Qi <yao@codesourcery.com>
2138
2139 Revert this patch to allow breakpoint always-inserted
2140 in record target.
2141 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2142 * breakpoint.c: Include record.h.
2143 (breakpoints_always_inserted_mode): Return false when the record
2144 target is in use.
2145
2146 * breakpoint.c (iterate_over_bp_locations): New.
2147 * breakpoint.h: Declare.
2148 New typedef walk_bp_location_callback.
2149 * record.c (record_open): Call record_init_record_breakpoints.
2150 (record_sync_record_breakpoints): New.
2151 (record_init_record_breakpoints): New.
2152 * NEWS: Mention supporting breakpoint always-inserted mode in
2153 record target.
2154
2155 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2156
2157 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2158 any thread.
2159
2160 2012-04-24 Yao Qi <yao@codesourcery.com>
2161
2162 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2163 (is_catchpoint): ... it.
2164 (print_one_breakpoint_location): Caller update.
2165 * breakpoint.h: Update declaration.
2166
2167 2012-04-23 David S. Miller <davem@davemloft.net>
2168
2169 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2170
2171 2012-04-23 Tom Tromey <tromey@redhat.com>
2172
2173 * buildsym.c (add_free_pendings): Remove.
2174 * buildsym.h (add_free_pendings): Remove.
2175
2176 2012-04-23 Doug Evans <dje@google.com>
2177
2178 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2179 attr.u.unsnd instead of attr.u.addr.
2180 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2181 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2182 DW_FORM_ref_udata.
2183 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2184 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2185 DW_FORM_ref_udata.
2186 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2187
2188 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2189
2190 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2191 (mips_o32_return_value): Likewise.
2192 (mips_o64_return_value): Likewise.
2193
2194 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2195
2196 * ada-lang.c (ada_evaluate_subexp): Add cases for
2197 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2198 their treatment in eval.c.
2199
2200 2012-04-21 David S. Miller <davem@davemloft.net>
2201
2202 * sparc-tdep.c (X_DISP10): Define.
2203 (sparc_analyze_control_transfer): Handle compare-and-branch.
2204
2205 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2206
2207 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2208 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2209
2210 2012-04-20 Nigel Stephens <nigel@mips.com>
2211 Maciej W. Rozycki <macro@codesourcery.com>
2212
2213 * mips-tdep.c (mips_float_register_p): New function.
2214 (mips_convert_register_float_case_p): Use mips_float_register_p.
2215 (mips_register_type): Likewise.
2216 (mips_print_register): Likewise.
2217 (print_gp_register_row): Likewise.
2218 (mips_print_registers_info): Likewise.
2219
2220 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2221
2222 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2223 of mips16 symbols.
2224
2225 2012-04-20 Andrew Pinski <apinski@cavium.com>
2226
2227 * MAINTAINERS (Write After Approval): Add myself to the list.
2228
2229 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2230
2231 * MAINTAINERS: Update my e-mail address.
2232
2233 2012-04-20 Pedro Alves <palves@redhat.com>
2234
2235 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2236 $srcdir.
2237 * configure: Regenerate.
2238
2239 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2240
2241 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2242 declaration.
2243 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2244
2245 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2246
2247 Fix compilation compatibility with python-2.4
2248 * python/py-type.c (convert_field): Cast ADDRSTRING for
2249 PyObject_SetAttrString as non-const. New comment.
2250
2251 2012-04-19 Tom Tromey <tromey@redhat.com>
2252
2253 * top.c (quit_target): Use all_cleanups.
2254 * main.c (captured_command_loop): Use all_cleanups.
2255 * exceptions.c (throw_exception): Use all_cleanups.
2256
2257 2012-04-19 Pedro Alves <palves@redhat.com>
2258
2259 * Makefile.in (GNULIB_BUILDDIR): New.
2260 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2261 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2262 (CLEANDIRS). Remove gnulib/import.
2263 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2264 (all-lib): Ditto.
2265 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2266 (gnulib/import/Makefile): Replace gnulib/import with
2267 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2268 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2269 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2270 acx_configure_dir.m4.
2271 * acinclude.m4: Include acx_configure_dir.m4.
2272 * acx_configure_dir.m4: New file.
2273 * aclocal.m4: Regenerate.
2274 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2275 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2276 (GNULIB): New variable.
2277 (GNULIB_STDINT_H): Adjust.
2278 (AC_OUTPUT): Don't output gnulib/Makefile.
2279 * gdb/defs.h: Include build-gnulib/config.h.
2280 * aclocal.m4: Regenerate.
2281 * config.in: Regenerate.
2282 * configure: Regenerate.
2283
2284 * gnulib/Makefile.in: New file.
2285 * gnulib/configure.ac: New file.
2286 * gnulib/aclocal.m4: New file.
2287 * gnulib/config.in: New file.
2288 * gnulib/configure: New file.
2289 * gnulib/: Re-run gnulib-tool to adjust.
2290
2291 2012-04-19 Doug Evans <dje@google.com>
2292
2293 * cleanups.h (struct cleanup): Move to cleanups.c.
2294 (make_cleanup_dtor_ftype): New typedef.
2295 (make_cleanup_dtor): Use it.
2296 (ALL_CLEANUPS): Replace with ...
2297 (all_cleanups): ... this. Declare. All uses updated.
2298 * cleanups.c: #include "gdb_assert.h".
2299 (sentinel_cleanup): New static global.
2300 (SENTINEL_CLEANUP): Define.
2301 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2302 (make_my_cleanup2): Assert result is non-NULL.
2303 (all_cleanups): New function.
2304 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2305 of NULL.
2306
2307 2012-04-19 Pedro Alves <palves@redhat.com>
2308
2309 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2310 Adjust paths to gnulib imported files.
2311
2312 2012-04-19 Pedro Alves <palves@redhat.com>
2313
2314 * gnulib/: Move whole directory ...
2315 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2316 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2317 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2318 (aclocal_m4_deps): Adjust.
2319 * aclocal.m4: Regenerate.
2320 * configure: Regenerate.
2321 * configure.ac: Adjust AC_OUTPUT output.
2322
2323 2012-04-19 Yao Qi <yao@codesourcery.com>
2324
2325 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2326 (vec.o): New rule.
2327 * vec.c: Move it ...
2328 * common/vec.c: ... here.
2329 * vec.h: Move it ...
2330 * common/vec.h: ... here.
2331
2332 2012-04-19 Yao Qi <yao@codesourcery.com>
2333
2334 * gdb-code-style.el: New.
2335
2336 2012-04-18 Pedro Alves <palves@redhat.com>
2337
2338 Update gnulib from latest git.
2339 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2340
2341 * gnulib/Makefile.am: Update.
2342 * gnulib/dummy.c: Update.
2343 * gnulib/extra/arg-nonnull.h: Update.
2344 * gnulib/extra/c++defs.h: Update.
2345 * gnulib/extra/update-copyright: Update.
2346 * gnulib/extra/warn-on-use.h: Update.
2347 * gnulib/inttypes.in.h: Update.
2348 * gnulib/m4/00gnulib.m4: Update.
2349 * gnulib/m4/extensions.m4: Update.
2350 * gnulib/m4/gnulib-cache.m4: Update.
2351 * gnulib/m4/gnulib-common.m4: Update.
2352 * gnulib/m4/gnulib-comp.m4: Update.
2353 * gnulib/m4/gnulib-tool.m4: Update.
2354 * gnulib/m4/include_next.m4: Update.
2355 * gnulib/m4/inttypes-pri.m4: Update.
2356 * gnulib/m4/inttypes.m4: Update.
2357 * gnulib/m4/longlong.m4: Update.
2358 * gnulib/m4/memchr.m4: Update.
2359 * gnulib/m4/memmem.m4: Update.
2360 * gnulib/m4/mmap-anon.m4: Update.
2361 * gnulib/m4/multiarch.m4: Update.
2362 * gnulib/m4/onceonly.m4: Update.
2363 * gnulib/m4/stddef_h.m4: Update.
2364 * gnulib/m4/stdint.m4: Update.
2365 * gnulib/m4/string_h.m4: Update.
2366 * gnulib/m4/warn-on-use.m4: Update.
2367 * gnulib/m4/wchar_h.m4: Update.
2368 * gnulib/m4/wchar_t.m4: Update.
2369 * gnulib/m4/wint_t.m4: Update.
2370 * gnulib/memchr.c: Update.
2371 * gnulib/memmem.c: Update.
2372 * gnulib/stddef.in.h: Update.
2373 * gnulib/stdint.in.h: Update.
2374 * gnulib/str-two-way.h: Update.
2375 * gnulib/string.in.h: Update.
2376 * gnulib/wchar.in.h: Update.
2377
2378 * gnulib/extra/arg-nonnull.h: Delete.
2379 * gnulib/extra/c++defs.h: Delete.
2380 * gnulib/extra/warn-on-use.h: Delete.
2381 * gnulib/m4/wchar_h.m4: Delete.
2382 * gnulib/m4/wint_t.m4: Delete.
2383 * gnulib/wchar.in.h: Delete.
2384
2385 * gnulib/extra/snippets/arg-nonnull.h: New.
2386 * gnulib/extra/snippets/c++defs.h: New.
2387 * gnulib/extra/snippets/warn-on-use.h: New.
2388
2389 * aclocal.m4: Regenerate.
2390 * config.in: Regenerate.
2391 * configure: Regenerate.
2392 * gnulib/Makefile.in: Regenerate.
2393
2394 2012-04-18 Pedro Alves <palves@redhat.com>
2395
2396 Reimport the update-copyright module from gnulib
2397 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2398
2399 * configure: Regenerate.
2400 * gnulib/Makefile.am: Update.
2401 * gnulib/Makefile.in: Regenerate.
2402 * gnulib/extra/update-copyright: Update.
2403 * gnulib/m4/gnulib-cache.m4: Update.
2404 * gnulib/m4/gnulib-comp.m4: Update.
2405
2406 2012-04-18 Tristan Gingold <gingold@adacore.com>
2407
2408 * configure.ac (aix): Put -lpthread into libs.
2409 * configure: Regenerate.
2410
2411 2012-04-18 Tom Tromey <tromey@redhat.com>
2412
2413 * linespec.c (convert_linespec_to_sals): Don't use
2414 SYMBOL_OBJ_SECTION.
2415 (compare_msymbols): Arguments are minsym_and_objfile, not
2416 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2417
2418 2012-04-18 Pedro Alves <palves@redhat.com>
2419
2420 Revert gnulib/ part of:
2421 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2422 Copyright year update in most files (performed by copyright.sh).
2423
2424 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2425
2426 Fix 64-bit constants on 32-bit hosts.
2427 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2428 from unsigned long to ULONGEST.
2429 (read_signed_leb128): Change declaration return type from long to
2430 LONGEST.
2431 (dwarf2_const_value_attr): Change declaration parameter value from long
2432 to LONGEST.
2433 (dwarf2_compute_name): Change variable value from long to LONGEST.
2434 (read_unsigned_leb128): Change return type, variable result and some
2435 casts from unsigned long to ULONGEST.
2436 (read_signed_leb128): Change return type, variable result and some
2437 casts from long to LONGEST.
2438 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2439 value from long to LONGEST.
2440 (dwarf2_const_value): Change variable value from long to LONGEST.
2441 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2442 plongest and hex_string.
2443 * symtab.h (struct general_symbol_info): Change ivalue from long to
2444 LONGEST, remove the comment.
2445 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2446 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2447
2448 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2449
2450 PR symtab/7259:
2451 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2452 * ada-lang.c (ada_discrete_type_high_bound)
2453 (ada_discrete_type_low_bound): Fix function comment. Use
2454 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2455 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2456 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2457 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2458 Use TYPE_FIELD_ENUMVAL.
2459 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2460 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2461 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2462 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2463 TYPE_CODE_ENUM.
2464 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2465 * dwarf2read.c (process_enumeration_scope): Likewise.
2466 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2467 field.bitpos.
2468 (class StructMainTypePrettyPrinter): Support also
2469 FIELD_LOC_KIND_ENUMVAL.
2470 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2471 TYPE_CODE_ENUM.
2472 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2473 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2474 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2475 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2476 field enumval.
2477 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2478 accommodate enumval.
2479 (struct call_site): Adjust loc_kind to accommodate enumval.
2480 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2481 (TYPE_FIELD_ENUMVAL): New macros.
2482 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2483 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2484 TYPE_CODE_ENUM.
2485 * p-typeprint.c (pascal_type_print_base): Likewise.
2486 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2487 enumval.
2488 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2489 * python/py-type.c (convert_field): New variable addrstring. Use
2490 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2491 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2492 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2493 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2494 TYPE_CODE_ENUM.
2495 * valprint.c (generic_val_print): Likewise.
2496
2497 2012-04-17 Doug Evans <dje@google.com>
2498
2499 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2500
2501 * dwarf2read.c: Whitespace fixes.
2502 (lookup_signatured_type): Tweak comment.
2503 (get_die_type_at_offset): Fix comment.
2504
2505 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2506
2507 * xcoffread.c (xcoff_secnum_to_sections): New function.
2508 (secnum_to_section, secnum_to_bfd_section): Reimplement
2509 using xcoff_secnum_to_sections. Rename "secnum" parameter
2510 into "n_scnum".
2511 (RECORD_MINIMAL_SYMBOL): Delete.
2512 (record_minimal_symbol): New function.
2513 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2514 by call to record_minimal_symbol and set misc_func_recorded
2515 to 1. Set last_csect_sec to the XCOFF section index instead
2516 of GDB's section_offset index. Update calls to
2517 prim_record_minimal_symbol_and_info to pass the BFD section
2518 as well.
2519
2520 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2521
2522 * xcoffread.c (read_xcoff_symtab): Delete variables
2523 last_csect_val and last_csect_sec and associated code.
2524
2525 2012-04-17 Doug Evans <dje@google.com>
2526
2527 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2528 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2529 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2530 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2531
2532 * cleanups.h: New file.
2533 * cleanups.c: New file.
2534 * Makefile.in (SFILES): Add cleanups.c.
2535 (HFILES_NO_SRCDIR): Add cleanups.h.
2536 (COMMON_OBS): Add cleanups.o.
2537 * defs.h (struct cleanup): Moved to cleanups.h.
2538 (do_cleanups,do_final_cleanups): Ditto.
2539 (discard_cleanups,discard_final_cleanups): Ditto
2540 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2541 (save_cleanups,save_final_cleanups): Ditto.
2542 (restore_cleanups,restore_final_cleanups): Ditto.
2543 (null_cleanup): Ditto.
2544 (make_my_cleanup,make_my_cleanup2): Ditto.
2545 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2546 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2547 (do_cleanups,do_final_cleanups): Ditto.
2548 (discard_cleanups,discard_final_cleanups): Ditto
2549 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2550 (save_cleanups,save_final_cleanups): Ditto.
2551 (restore_cleanups,restore_final_cleanups): Ditto.
2552 (null_cleanup): Ditto.
2553 (make_my_cleanup,make_my_cleanup2): Ditto.
2554 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2555
2556 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2557 make_my_cleanup.
2558 (make_cleanup_dyn_string_delete): Ditto.
2559 (make_cleanup_ui_file_delete): Ditto.
2560 (make_cleanup_ui_out_redirect_pop): Ditto.
2561 (make_cleanup_free_section_addr_info): Ditto.
2562 (make_cleanup_restore_integer): Ditto.
2563 (make_cleanup_unpush_target): Ditto.
2564 (make_cleanup_value_free_to_mark): Ditto.
2565 (make_cleanup_value_free): Ditto.
2566 (make_cleanup_free_so): Ditto.
2567
2568 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2569
2570 New option "set debug auto-load".
2571 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2572 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2573 (auto_load_safe_path_vec_update)
2574 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2575 if DEBUG_AUTO_LOAD.
2576 (file_is_auto_load_safe): New parameters debug_fmt and ....
2577 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2578 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2579 caller by explanatory string.
2580 (_initialize_auto_load): Register "set debug auto-load".
2581 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2582 and ....
2583 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2584 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2585 by explanatory string.
2586 * main.c (captured_main): Likewise.
2587 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2588 (source_section_scripts): Likewise.
2589
2590 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2591
2592 New option "set auto-load safe-path".
2593 * NEWS: New commands "set auto-load safe-path"
2594 and "show auto-load safe-path".
2595 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2596 (auto_load_safe_path, auto_load_safe_path_vec)
2597 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2598 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2599 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2600 (source_gdb_script_for_objfile): New variable is_safe. Call
2601 file_is_auto_load_safe. Return if it is not.
2602 (struct loaded_script): New field loaded.
2603 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2604 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2605 output "Missing" to "No".
2606 (_initialize_auto_load): New variable cmd. Initialize
2607 auto_load_safe_path. Register "set auto-load safe-path",
2608 "show auto-load safe-path" and "add-auto-load-safe-path".
2609 * auto-load.h (maybe_add_script): Add parameter loaded.
2610 (file_is_auto_load_safe): New declaration.
2611 * config.in: Regenerate.
2612 * configure: Regenerate.
2613 * configure.ac: New parameters --with-auto-load-safe-path
2614 and --without-auto-load-safe-path.
2615 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2616 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2617 * main.c (captured_main): Check file_is_auto_load_safe for
2618 LOCAL_GDBINIT.
2619 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2620 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2621 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2622 not.
2623
2624 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2625
2626 auto-load: Implementation.
2627 * NEWS: New descriptions for "info auto-load",
2628 "info auto-load gdb-scripts", "info auto-load python-scripts",
2629 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2630 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2631 and "show auto-load-scripts". New description for "set auto-load",
2632 "show auto-load", "set auto-load gdb-scripts",
2633 "show auto-load gdb-scripts", "set auto-load python-scripts",
2634 "show auto-load python-scripts", "set auto-load local-gdbinit",
2635 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2636 "show auto-load libthread-db".
2637 * auto-load.c: Remove include python/python-internal.h. Add includes
2638 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2639 cli/cli-setshow.h.
2640 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2641 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2642 (gdbpy_global_auto_load): Rename to ...
2643 (global_auto_load): ... here.
2644 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2645 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2646 (script_language_gdb, source_gdb_script_for_objfile): New.
2647 (struct loaded_script): New field language.
2648 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2649 LANGUAGE.
2650 (maybe_add_script): Add parameter language. Drop redundant
2651 entry.full_path initialization. Initialize entry.language and
2652 (*slot)->language.
2653 (auto_load_objfile_script): Change parameter suffix to language.
2654 Remove the call of maybe_add_script.
2655 Call language->source_script_for_objfile.
2656 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2657 New.
2658 (collect_matching_scripts): Adjust it for
2659 struct collect_matching_scripts_data.
2660 (auto_load_info_scripts_pattern_nl): New variable.
2661 (info_auto_load_scripts): Rename to ...
2662 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2663 for struct collect_matching_scripts_data.
2664 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2665 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2666 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2667 (auto_load_info_cmdlist_get): New.
2668 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2669 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2670 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2671 "info auto-load local-gdbinit".
2672 * auto-load.h (struct script_language): New.
2673 (gdbpy_global_auto_load): Rename to ...
2674 (global_auto_load): ... here.
2675 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2676 (auto_load_local_gdbinit_loaded): New declarations.
2677 (maybe_add_script): New parameter language.
2678 (auto_load_objfile_script): Change parameter suffix to language.
2679 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2680 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2681 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2682 declarations.
2683 * linux-thread-db.c: Include auto-load.h and ctype.h.
2684 (auto_load_thread_db, show_auto_load_thread_db): New.
2685 (struct thread_db_info): New field filename.
2686 (delete_thread_db_info): Call xfree for FILENAME.
2687 (try_thread_db_load): Initialize FILENAME.
2688 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2689 if !AUTO_LOAD_THREAD_DB.
2690 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2691 (_initialize_thread_db): Install auto_load_thread_db
2692 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2693 as "info auto-load libthread-db".
2694 * main.c (captured_main): Rename gdbpy_global_auto_load to
2695 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2696 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2697 (print_gdb_help): Extend the help for 'local init file'.
2698 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2699 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2700 (auto_load_scripts): Rename to ...
2701 (auto_load_python_scripts): ... here, update the comment.
2702 (gdbpy_load_auto_script_for_objfile): New declaration.
2703 (show_auto_load_python_scripts, script_language_python)
2704 (gdbpy_load_auto_script_for_objfile): New.
2705 (source_section_scripts): Refactor the code.
2706 (load_auto_scripts_for_objfile): Rename to ...
2707 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2708 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2709 (info_auto_load_python_scripts): New.
2710 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2711 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2712 Register "set auto-load-scripts" as its deprecated alias. Register
2713 "info auto-load python-scripts". Register "info auto-load-scripts" as
2714 its deprecated alias.
2715 (load_auto_scripts_for_objfile): Rename to ...
2716 (gdbpy_load_auto_scripts_for_objfile): ... here.
2717 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2718 (gdbpy_load_auto_scripts_for_objfile): ... here.
2719
2720 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2721
2722 auto-load: Move files.
2723 * Makefile.in (SFILES): Add auto-load.c.
2724 (HFILES_NO_SRCDIR): Add auto-load.h.
2725 (COMMON_OBS): Add auto-load.o.
2726 (distclean): Change .gdbinit for gdb-gdb.gdb.
2727 * auto-load.c: New file, with parts from python/py-auto-load.c.
2728 * auto-load.h: New file, with parts from python/python.h.
2729 * configure: Regenerate.
2730 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2731 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2732 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2733 * main.c: Include auto-load.h.
2734 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2735 command.h, observer.h and progspace.h to auto-load.c. Add include
2736 auto-load.h.
2737 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2738 (struct loaded_script, auto_load_pspace_data)
2739 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2740 (hash_loaded_script_entry, eq_loaded_script_entry)
2741 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2742 (maybe_add_script): Move to auto-load.c.
2743 (source_section_scripts): Change maybe_add_script parameters passing,
2744 use script_not_found_warning_print.
2745 (clear_section_scripts, auto_load_objfile_script)
2746 (auto_load_new_objfile, loaded_script_ptr)
2747 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2748 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2749 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2750 auto_load_new_objfile and info_auto_load_scripts initizations to
2751 auto-load.c.
2752 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2753
2754 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2755
2756 Code cleanup.
2757 * charset.c (find_charset_names): Remove variables ix and elt.
2758 Use free_char_ptr_vec.
2759 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2760 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2761 debugdir_end. New variable debugdir_len.
2762 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2763 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2764 declarations.
2765 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2766 and elt. Use free_char_ptr_vec.
2767 * source.c (add_path): Remove variables argv, arg and argv_index.
2768 New variables dir_vec, back_to, ix and name.
2769 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2770 make_cleanup_freeargv. Remove variable separator. Simplify the code
2771 no longer expecting DIRNAME_SEPARATOR.
2772 (openp): Remove variable p, p1 and len. New variables dir_vec,
2773 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2774 no longer expecting DIRNAME_SEPARATOR.
2775 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2776 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2777 debugdir_end.
2778 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2779 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2780 (dirnames_to_char_ptr_vec): New functions.
2781
2782 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 Code cleanup.
2785 * source.c (add_path): Remove always true conditional 'p == 0' and
2786 unindent its code block.
2787
2788 2012-04-17 Pedro Alves <palves@redhat.com>
2789
2790 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2791 (FIELD_BITPOS_LVAL): ... this.
2792 (FIELD_BITPOS): New.
2793 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2794 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2795 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2796 SET_FIELD_BITPOS.
2797 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2798 SET_FIELD_BITPOS.
2799 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2800 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2801 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2802 SET_FIELD_BITPOS.
2803
2804 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
2806 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2807 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2808 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2809 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
2810 * jv-lang.c (java_link_class_type): Likewise, once.
2811 * stabsread.c (read_enum_type): Likewise.
2812
2813 2012-04-16 Yao Qi <yao@codesourcery.com>
2814
2815 * common/agent.c (agent_run_command): Add one more parameter `len'.
2816 Update callers.
2817 * common/agent.h: Update declaration.
2818 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2819 Update.
2820 (linux_child_static_tracepoint_markers_by_strid): Ditto.
2821
2822 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
2823
2824 PR mi/13393
2825 * value.c (value_actual_type): New function.
2826 * value.h (value_actual_type): New declaration.
2827 * varobj.c (update_type_if_necessary): New function.
2828 (varobj_create): Call value_actual_type instead of
2829 value_type.
2830 (install_dynamic_child): distinct changed and type changed MI variable
2831 objects.
2832 (update_dynamic_varobj_children): Updated for install_dynamic_child
2833 change. All callers updated.
2834 (varobj_update): Support for MI variable object type change if
2835 the value changed and RTTI is used to determine the type.
2836 (create_child_with_value): Call value_actual_type instead of
2837 value_type.
2838 (adjust_value_for_child_access): Extended with a new parameter which
2839 specify whether the given value should be casted to enclosing type.
2840 All callers updated.
2841
2842 2012-04-14 Yao Qi <yao@codesourcery.com>
2843
2844 Import gnulib module inttypes from git
2845 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2846 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
2847 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
2848 gnulib/m4/inttypes-pri.m4
2849 * aclocal.m4, config.in, configure: Regenerated.
2850 * gnulib/Makefile.am: Update.
2851 * gnulib/Makefile.in: Update.
2852 * gnulib/m4/gnulib-cache.m4: Update.
2853 * gnulib/m4/gnulib-comp.m4: Update.
2854 * gnulib/inttypes.in.h: New.
2855 * gnulib/m4/inttypes-pri.m4: New.
2856 * gnulib/m4/inttypes.m4: New.
2857
2858 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
2859
2860 * infrun.c (resume): Update PC address to the real PC after
2861 preparing to do displaced stepping.
2862
2863 2012-04-12 Doug Evans <dje@google.com>
2864
2865 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
2866 All callers updated.
2867
2868 2012-04-12 Mark Kettenis <kettenis@gnu.org>
2869
2870 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
2871
2872 2012-04-12 Doug Evans <dje@google.com>
2873
2874 * dwarf2read.c (create_all_type_units): Renamed from
2875 create_debug_types_hash_table. All callers updated.
2876
2877 * dwarf2read.c (create_signatured_type_table_from_index): Rename
2878 local type_sig to sig_type, type_offset to type_offset_in_tu.
2879 (hash_signatured_type): Renamed from hash_type_signature,
2880 all callers updated.
2881 (eq_signatured_type): Renamed from eq_type_signature,
2882 all callers updated.
2883 (create_debug_types_hash_table): Rename local type_sig to sig_type.
2884 (process_enumeration_scope): Ditto.
2885 (lookup_signatured_type_at_offset): Ditto.
2886 (load_full_type_unit, read_signatured_type): Ditto.
2887
2888 2012-04-12 Yao Qi <yao@codesourcery.com>
2889
2890 * remote.c (async_remote_interrupt): Correct function name in
2891 debug message.
2892 (async_remote_interrupt_twice): Ditto.
2893
2894 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
2895
2896 * source.c (find_and_open_source): Consistently pass resulting
2897 full path through xfullpath.
2898
2899 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2900
2901 Provide more specific displaced-stepping memory error message.
2902 * infrun.c (displaced_step_prepare): New variable status. Call
2903 target_read_memory instead of read_memory, provide more specific
2904 error message.
2905
2906 2012-04-11 Tristan Gingold <gingold@adacore.com>
2907
2908 PR gdb/13901
2909 * darwin-nat.c (darwin_execvp): Revert previous patch.
2910
2911 2012-04-11 Tristan Gingold <gingold@adacore.com>
2912
2913 PR gdb/13901
2914 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
2915 in case of change.
2916
2917 2012-04-11 Tristan Gingold <gingold@adacore.com>
2918
2919 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2920 warning.
2921
2922 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
2923
2924 New command 'explore' which helps explore values and types in
2925 scope.
2926 * NEWS: Add an entry about the new 'explore' command.
2927 * data-directory/Makefile.in: Add gdb/command/explore.py
2928 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
2929 command using the GDB Python API.
2930
2931 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
2932
2933 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
2934 extension in jump target calculation.
2935
2936 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
2937
2938 * mips-tdep.c (mips32_next_pc): Handle JALX.
2939
2940 2012-04-10 Yao Qi <yao@codesourcery.com>
2941
2942 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
2943
2944 2012-04-10 Yao Qi <yao@codesourcery.com>
2945
2946 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
2947 and gnulib/m4/gnulib-tool.m4.
2948
2949 2012-04-10 Doug Evans <dje@google.com>
2950
2951 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
2952 (load_partial_dies): Clarify comment.
2953 (find_partial_die): Support rereading type units.
2954 Clarify CU handling, if we know offset is in CU, don't search for the
2955 containing CU. Add comment regarding memory waste.
2956
2957 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
2958
2959 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
2960 i386/x32-avx and i386/x32-avx-linux.
2961 (i386/x32-expedite): New.
2962 (i386/x32-linux-expedite): Likewise.
2963 (i386/x32-avx-expedite): Likewise.
2964 (i386/x32-avx-linux-expedite): Likewise.
2965 ($(outdir)/i386/x32.dat): Likewise.
2966 ($(outdir)/i386/x32-linux.dat): Likewise.
2967 ($(outdir)/i386/x32-avx.dat): Likewise.
2968 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
2969
2970 * features/i386/x32-avx-linux.xml: New file.
2971 * features/i386/x32-avx.xml: Likewise.
2972 * features/i386/x32-core.xml: Likewise.
2973 * features/i386/x32-linux.xml: Likewise.
2974 * features/i386/x32.xml: Likewise.
2975
2976 * features/i386/x32-avx-linux.c: New. Generated.
2977 * features/i386/x32-avx.c: Likewise.
2978 * features/i386/x32-linux.c: Likewise.
2979 * features/i386/x32.c: Likewise.
2980 * regformats/i386/x32-avx-linux.dat: Likewise.
2981 * regformats/i386/x32-avx.dat: Likewise.
2982 * regformats/i386/x32-linux.dat: Likewise.
2983 * regformats/i386/x32.dat: Likewise.
2984
2985 2012-04-10 Tristan Gingold <gingold@adacore.com>
2986
2987 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
2988 code to kill the inferior.
2989
2990 2012-04-09 Mark Kettenis <kettenis@gnu.org>
2991
2992 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2993 defines.
2994 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2995 defines.
2996 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
2997 (yyvsp): New defines.
2998 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2999 defines.
3000 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3001 defines.
3002 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3003 defines.
3004 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3005 defines.
3006 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3007 defines.
3008
3009 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3010
3011 * sparc64-tdep.c (sparc64_store_arguments)
3012 (sparc64_store_arguments): Fix coding style.
3013
3014 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3015
3016 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3017 complex floats, adjust some related comments and tighten a related
3018 assertion.
3019 (sparc64_extract_return_value): Handle complex floats.
3020
3021 2012-04-07 Doug Evans <dje@google.com>
3022
3023 * dwarf2read.c (load_partial_dies): Change condition to assert.
3024
3025 2012-04-06 Doug Evans <dje@google.com>
3026
3027 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3028 "mov %rsp,%rbp".
3029
3030 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3031
3032 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3033 fencepost error.
3034 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3035 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3036 architecture.
3037
3038 2012-04-05 Keith Seitz <keiths@redhat.com>
3039
3040 * linespec.c (decode_compound): Remove.
3041 (enum offset_relative_sign): New enum.
3042 (struct line_offset): New struct.
3043 (struct linespec): New struct.
3044 (struct linespec_state): Move file_symtabs,
3045 user_filename, and user_function into struct linespec.
3046 Make result an anonymous struct holding vectors of
3047 symbolp and minsym_and_objfile_d.
3048 Add language member.
3049 (enum ls_token_type): New enum.
3050 (linespec_keywords): New array.
3051 (struct ls_token): New struct.
3052 (struct ls_parser): New struct.
3053 (linespec_lexer_lex_number): New function.
3054 (linespec_lexer_lex_keyword): New function.
3055 (is_ada_operator): New function.
3056 (skip_quote_char): New function.
3057 (copy_token_string): New function.
3058 (is_closing_quote_enclosed): New function.
3059 (find_parameter_list_end): New function.
3060 (linespec_lexer_lex_string): New function.
3061 (linespec_lexer_lex_one): New function.
3062 (linespec_lexer_consume_token): New function.
3063 (linespec_lexer_peek_token): New function.
3064 (cplusplus_error): Remove unused function.
3065 (find_methods): Update comment.
3066 (find_toplevel_char): Return const.
3067 (is_objc_method_format): Remove unused function.
3068 (find_toplevel_string): New function.
3069 (is_linespec_boundary): Remove.
3070 (symbol_not_found_error): New function.
3071 (find_method_overload_end): Remove function.
3072 (unexpected_linespec_error): New function.
3073 (keep_name_info): Remove.
3074 (linespec_parse_line_offset): New function.
3075 (linespec_parse_basic): New function.
3076 (canonicalize_linespec): New function.
3077 (decode_line_internal): Remove.
3078 (create_sals_line_offset): New function adapted from
3079 decode_all_digits.
3080 (convert_linespec_to_sals): New function.
3081 (parse_linespec): New function.
3082 (linespec_parser_new): New function.
3083 (linespec_state_destructor): Change parameter type to
3084 struct linespec_state *.
3085 Add language parameter.
3086 Remove freeing of moved members.
3087 (linespec_parser_delete): New function.
3088 (decode_line_full): Use parse_linespec and linespec_parser_new.
3089 (decode_line_1): Likewise.
3090 (decode_indirect): Rename to ...
3091 (linespec_expression_to_pc): ... this and rewrite
3092 to simply find CORE_ADDR, storing this result for later
3093 conversion to SALs.
3094 (locate_first_half): Remove.
3095 (deocde_objc): Add parameter LS.
3096 Initialize new struct collect_info members.
3097 Handle minimal symbols, too.
3098 (decode_compound): Delete.
3099 (lookup_prefix_sym): Rewrite.
3100 (compare_msymbols): New function.
3101 (find_method): Rewrite.
3102 Do not call cplusplus_error.
3103 (symtabs_from_filename): Rewrite.
3104 (collect_function_symbols): Delete.
3105 (find_function_symbols): Rewrite without ARGPTR-style
3106 processing.
3107 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3108 (decode_dollar): Adapted and renamed to ...
3109 (linespec_parse_variable): ... this.
3110 (find_linespec_symbols): New function.
3111 (decode_label): Adapted and renamed to ...
3112 (find_label_symbols): ... this.
3113 (decode_digits_list_mode): Add and use LS argument.
3114 (decode_digits_ordinary): Likewise.
3115 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3116 If in list mode, allow any symbol class. Otherwise, only
3117 permit LOC_BLOCK symbols.
3118 (minsym_found): Update comments.
3119 (search_minsyms_for_name): Do not convert the matching symbol
3120 into a SAL. Simply push the symbol and objfile into the
3121 result vector.
3122 (decode_variable): Delete. Contents adapted into
3123 find_linespec_symbols.
3124
3125 * cp-support.c (SKIP_SPACE): Remove.
3126 (operator_tokens): Remove unused global.
3127 (cp_validate_operator): Remove.
3128 * cp-support.h (cp_validate_operator): Remove declaration.
3129
3130 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3133 for TYPE_VPTR_FIELDNO.
3134 * valprint.c (valprint_check_validity): Make it global, move the
3135 function comment ...
3136 * value.h (valprint_check_validity): ... to this new declaration.
3137
3138 2012-04-02 Tristan Gingold <gingold@adacore.com>
3139
3140 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3141 the STATE32 api for i386 state.
3142 (i386_darwin_store_inferior_registers): Likewise.
3143
3144 2012-04-02 Tristan Gingold <gingold@adacore.com>
3145
3146 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3147 SS offset.
3148 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3149 format_string.
3150
3151 2012-04-02 Tristan Gingold <gingold@adacore.com>
3152
3153 PR gdb/13901
3154 * darwin-nat.c (darwin_execvp): Set binary preference.
3155
3156 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3157
3158 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3159
3160 2012-03-30 Tom Tromey <tromey@redhat.com>
3161
3162 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3163 of TRY_CATCH. Fix error handling.
3164 * python/py-value.c (convert_value_from_python): Move 'old'
3165 declaration to innermost scope.
3166
3167 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3168 Andrey Smirnov <andrew.smirnov@gmail.com>
3169
3170 -Wshadow warning fix.
3171 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3172 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3173 Adjust code accordingly.
3174
3175 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3176
3177 * ada-lang.c (symbol_completion_add): Rename parameter
3178 "encoded" into "encoded_p". Ajust code and documentation
3179 accordingly.
3180
3181 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3182 Andrey Smirnov <andrew.smirnov@gmail.com>
3183
3184 -Wshadow warning fix.
3185 * ada-lang.c (symbol_completion_add): Rename parameter
3186 "wild_match" into wild_match_p. Update code and documentation
3187 accordingly.
3188
3189 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3190
3191 * ada-lang.c (symbol_completion_match): Rename parameter
3192 "encoded" into "encoded_p". Ajust code and documentation
3193 accordingly.
3194
3195 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3196 Andrey Smirnov <andrew.smirnov@gmail.com>
3197
3198 -Wshadow warning fix.
3199 * ada-lang.c (symbol_completion_match): Rename parameter
3200 "wild_match" into "wild_match_p". Adjust code and function
3201 documentation accordingly.
3202
3203 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3204 Andrey Smirnov <andrew.smirnov@gmail.com>
3205
3206 -Wshadow warning fix.
3207 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3208 "symbol_info" into "info". Adjust code accordingly.
3209 (ada_lookup_symbol): Likewise.
3210
3211 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3212
3213 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3214 of this function's documentation.
3215
3216 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3217 Andrey Smirnov <andrew.smirnov@gmail.com>
3218
3219 -Wshadow warning fix.
3220 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3221 variable into "wild_match_p". Adjust code accordingly.
3222
3223 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3224 Andrey Smirnov <andrew.smirnov@gmail.com>
3225
3226 -Wshadow warning fix.
3227 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3228 parameter into "wild_match_p". Adjust code accordingly.
3229 Document this parameter in the function description.
3230
3231 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3232 Andrey Smirnov <andrew.smirnov@gmail.com>
3233
3234 -Wshadow warning fix.
3235 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3236 "wild_match" parameter to "wild_match_p" (-Wshadow).
3237
3238 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3239
3240 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3241 in function documentation.
3242
3243 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3244 Andrey Smirnov <andrew.smirnov@gmail.com>
3245
3246 -Wshadow warning fix.
3247 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3248 variable into wild_match_p. Adjust code accordingly.
3249
3250 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3251 Andrey Smirnov <andrew.smirnov@gmail.com>
3252
3253 * ada-valprint.c (ada_val_print_1): Move the code handling
3254 TYPE_CODE_ENUM inside its own lexical block. Declare
3255 variables len and val there, instead of in the function's
3256 top level block. Avoid declaring deref_val again in a way
3257 that shadows another variable of the same name declared
3258 in one of the up-level blocks. Just re-use the up-level
3259 variable instead.
3260
3261 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3262
3263 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3264 Replace block_found argument by symbol_info. Adjust
3265 implementation accordingly. Add function documentation.
3266 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3267 Fix documentation.
3268 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3269 * ada-exp.y (write_object_renaming): Adjust to new
3270 ada_lookup_encoded_symbol API.
3271
3272 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3273
3274 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3275 documentation.
3276
3277 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3278
3279 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3280 (v850_register_name): Add the mpu and fpu register names.
3281 (v850e_register_name): Add the mpu and fpu register names.
3282 (v850e2_register_name): New function.
3283 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3284 bfd_mach_v850e2v3.
3285
3286 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3287
3288 * NEWS: Add entry for Ada varobj support.
3289
3290 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3291
3292 * varobj.c (default_value_is_changeable_p): New function,
3293 extracted from varobj_value_is_changeable_p. Add declaration.
3294 (ada_value_is_changeable_p): New function, extracted from
3295 varobj_value_is_changeable_p. Add declaration.
3296 (struct language_specific): New field "value_is_changeable_p".
3297 (languages): Add entries for new field.
3298 (varobj_create): Set language before calling install_new_value.
3299 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3300 "value_is_changeable_p" language callback.
3301
3302 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3303
3304 * ada-varobj.h, ada-varobj.c: New files.
3305 * Makefile.in (SFILES): Add ada-varobj.c.
3306 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3307 (COMMON_OBS): Add ada-varobj.o.
3308
3309 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3310
3311 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3312 (struct language_specific): New field "value_has_mutated".
3313 (languages): Set field "value_has_mutated" in each entry of array.
3314 (varobj_value_has_mutated): New function.
3315 (varobj_udpdate): Add handling of type mutation.
3316 (value_of_root): Add handling of type mutation.
3317 (ada_value_has_mutated): New function.
3318
3319 2012-03-28 Pedro Alves <palves@redhat.com>
3320
3321 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3322 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3323
3324 2012-03-28 Tom Tromey <tromey@redhat.com>
3325
3326 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3327 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3328 before returning.
3329
3330 2012-03-28 Tom Tromey <tromey@redhat.com>
3331
3332 * .dir-locals.el: New file.
3333
3334 2012-03-28 Pedro Alves <palves@redhat.com>
3335
3336 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3337
3338 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3339
3340 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3341 handling for r0.
3342
3343 2012-03-27 Pedro Alves <palves@redhat.com>
3344
3345 Eliminate struct ui_stream.
3346
3347 * ui-out.h (struct ui_stream): Delete.
3348 (ui_out_field_stream): Adjust prototype.
3349 (ui_out_stream_new, ui_out_stream_delete)
3350 (make_cleanup_ui_out_stream_delete): Delete declarations.
3351 * ui-out.c (ui_out_field_stream): Change prototype to take a
3352 ui_file instead of a ui_stream. Adjust.
3353 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3354 (make_cleanup_ui_out_stream_delete): Delete.
3355 * breakpoint.c (print_breakpoint_location)
3356 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3357 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3358 * disasm.c (dump_insns): Ditto.
3359 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3360 prototype.
3361 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3362 ui_stream/ui_out_stream_new.
3363 * infcmd.c (print_return_value): Ditto.
3364 * osdata.c (info_osdata_command): Don't allocate a local
3365 ui_stream.
3366 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3367 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3368 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3369 allocate a local ui_stream.
3370 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3371 instead of ui_stream/ui_out_stream_new.
3372 (list_args_or_locals): Don't allocate a local ui_stream.
3373 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3374 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3375 ui_stream/ui_out_stream_new.
3376 * cli/cli-setshow.c (do_setshow_command): Ditto.
3377
3378 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3379
3380 * arm-linux-tdep.c (arm_linux_init_abi): Call
3381 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3382 * arm-tdep.c (arm_process_record): New function.
3383 (deallocate_reg_mem): New function.
3384 (decode_insn): New function.
3385 (thumb_record_branch): New function.
3386 (thumb_record_ldm_stm_swi(): New function.
3387 (thumb_record_misc): New function.
3388 (thumb_record_ld_st_stack): New function.
3389 (thumb_record_ld_st_imm_offset): New function.
3390 (thumb_record_ld_st_reg_offset(): New function.
3391 (thumb_record_add_sub_cmp_mov): New function.
3392 (thumb_record_shift_add_sub): New function.
3393 (arm_record_coproc_data_proc): New function.
3394 (arm_record_coproc): New function.
3395 (arm_record_b_bl): New function.
3396 (arm_record_ld_st_multiple): New function.
3397 (arm_record_ld_st_reg_offset): New function.
3398 (arm_record_ld_st_imm_offset): New function.
3399 (arm_record_data_proc_imm): New function.
3400 (arm_record_data_proc_misc_ld_str): New function.
3401 (arm_record_extension_space): New function.
3402 (arm_record_strx): New function.
3403 (sbo_sbz): New function.
3404 (struct insn_decode_record): New structure for arm insn record.
3405 (REG_ALLOC): New macro for reg allocations.
3406 (MEM_ALLOC): New macro for memory allocations.
3407 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3408
3409 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3410
3411 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3412 (store_register): Likewise.
3413
3414 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3415
3416 * MAINTAINERS (Write After Approval): Add myself to the list.
3417
3418 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3419
3420 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3421 Describe also the option "auto".
3422
3423 2012-03-22 Richard Henderson <rth@redhat.com>
3424
3425 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3426 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3427
3428 2012-03-22 Richard Henderson <rth@redhat.com>
3429
3430 * jit.c (jit_read_code_entry): Compute alignment and offset of
3431 int64_t member before computing entry_size.
3432
3433 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3434
3435 Python scripting: Add new method Value.referenced_value to
3436 gdb.Value which can dereference pointer as well as reference
3437 values.
3438 * NEWS: Add entry under 'Python scripting' about the new method
3439 Value.referenced_value on gdb.Value objects.
3440 * python/py-value.c (valpy_referenced_value): New function
3441 defining a new method on gdb.Value objects which can dereference
3442 pointer and reference values.
3443
3444 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3445
3446 * MAINTAINERS (Write After Approval): Add myself to the list.
3447
3448 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3449
3450 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3451 in addition to "main".
3452
3453 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3454
3455 * expression.h (op_name): Add declaration.
3456 * expprint.c (op_name): Remove declaration. Make non-static.
3457 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3458
3459 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3460
3461 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3462 of struct siginfo.
3463 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3464 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3465 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3466 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3467 (linux_nat_get_siginfo): Likewise.
3468 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3469 (linux_nat_get_siginfo): Likewise.
3470 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3471 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3472 * procfs.c (gdb_siginfo_t): Likewise.
3473
3474 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3475
3476 * .gitignore: Ignore more files.
3477
3478 2012-03-20 Pedro Alves <palves@redhat.com>
3479
3480 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3481 returns.
3482
3483 2012-03-20 Yao Qi <yao@codesourcery.com>
3484
3485 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3486 comment.
3487
3488 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3491 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3492 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3493 sect_offset.
3494 * dwarf2expr.h (cu_offset, sect_offset): New types.
3495 (struct dwarf_expr_context_funcs) <dwarf_call>
3496 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3497 sect_offset.
3498 (struct dwarf_expr_context) <len>: Improve the comment.
3499 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3500 cu_offset and sect_offset.
3501 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3502 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3503 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3504 * dwarf2loc.h: Include dwarf2expr.h.
3505 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3506 and sect_offset.
3507 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3508 Improve the comment.
3509 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3510 (struct signatured_type, struct line_header, struct partial_die_info)
3511 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3512 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3513 (get_die_type_at_offset, create_cus_from_index)
3514 (create_signatured_type_table_from_index, dw2_get_file_names)
3515 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3516 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3517 (create_debug_types_hash_table, process_psymtab_comp_unit)
3518 (load_partial_comp_unit, create_all_comp_units)
3519 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3520 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3521 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3522 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3523 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3524 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3525 (find_partial_die, read_attribute_value, lookup_die_type)
3526 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3527 (is_ref_attr): New function comment.
3528 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3529 Use cu_offset and sect_offset.
3530 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3531 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3532 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3533 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3534 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3535 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3536 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3537 sect_offset.
3538
3539 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3540
3541 Code cleanup.
3542 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3543 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3544 with xfree.
3545 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3546
3547 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3548
3549 * NEWS: Describe new options --init-command=FILE, -ix and
3550 --init-eval-command=COMMAND, -iex.
3551 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3552 CMDARG_INIT_COMMAND.
3553 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3554 "init-command", "init-eval-command", "ix" and "iex" to the variable
3555 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3556 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3557 (print_gdb_help): Describe --init-command=FILE, -ix and
3558 --init-eval-command=COMMAND, -iex.
3559
3560 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3561
3562 Code cleanup.
3563 * main.c (struct cmdarg): Move it here from main. Add more comments.
3564 (cmdarg_s, VEC (cmdarg_s)): New.
3565 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3566 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3567 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3568 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3569 of CMDARG.
3570
3571 2012-03-19 Tom Tromey <tromey@redhat.com>
3572
3573 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3574
3575 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3576
3577 PR symtab/13777
3578 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3579 GCC >=4.5.
3580
3581 2012-03-16 Chris January <chris.january@allinea.com>
3582
3583 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3584 of clear.
3585
3586 2012-03-16 Chris January <chris.january@allinea.com>
3587
3588 * source.c (add_path): Use memmove instead of strcpy because the
3589 strings overlap.
3590
3591 2012-03-16 Joel Brobecker <brobecker@adacore.com>
3592
3593 * value.h (set_value_parent): Add declaration.
3594 * value.c (set_value_parent): New function.
3595 (value_address): If VALUE->PARENT is not NULL, then use it as
3596 the base address instead of VALUE->LOCATION.address.
3597 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3598 the same as OBJ's address. Adjust V's offset accordingly.
3599 Set V's parent.
3600
3601 2012-03-16 Gary Benson <gbenson@redhat.com>
3602
3603 PR breakpoints/10738
3604 * dwarf2read.c (use_deprecated_index_sections): New global.
3605 (struct partial_die_info): New member may_be_inlined.
3606 (read_partial_die): Set may_be_inlined where appropriate.
3607 (add_partial_subprogram): Add partial symbols for partial
3608 DIEs that may be inlined.
3609 (new_symbol_full): Add inlined subroutines to the current
3610 scope.
3611 (write_psymtabs_to_index): Bump version number.
3612 (dwarf2_read_index): Read only version 6 indices unless
3613 use_deprecated_index_sections is set.
3614 * linespec.c (symbol_and_data_callback): New structure.
3615 (iterate_inline_only): New function.
3616 (iterate_over_all_matching_symtabs): New argument
3617 "include_inline". If nonzero, also call the callback for
3618 symbols representing inlined subroutines.
3619 (lookup_prefix_sym): Pass extra argument to the above.
3620 (find_function_symbols): Likewise.
3621 (add_matching_symbols_to_info): Likewise.
3622 * NEWS: Mention that GDB can now set breakpoints on inlined
3623 functions.
3624
3625 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3626
3627 * p-typeprint.c (pascal_type_print_method_args):
3628 Fix display of parameter of methods.
3629
3630 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3631
3632 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3633 Add missing prototype.
3634
3635 2012-03-16 Yao Qi <yao@codesourcery.com>
3636 Jan Kratochvil <jan.kratochvil@redhat.com>
3637
3638 Fix false compilation warning.
3639 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3640
3641 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3642 Pedro Alves <pedro@codesourcery.com>
3643
3644 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3645 (arm_register_g_packet_guesses): New function.
3646 (arm_gdbarch_init): Don't force a target description with
3647 registers when the executable is detected as M-profile. Instead
3648 set gdbarch->tdep->is_m. Register `g' packet guesses.
3649 (_initialize_arm_tdep): Initialize the new target description.
3650 * features/arm-with-m-fpa-layout.xml: New description.
3651 * features/arm-with-m-fpa-layout.c: New, generated.
3652
3653 2012-03-15 Joel Brobecker <brobecker@adacore.com>
3654
3655 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3656 Update function description.
3657 (insert_bp_location): Do not wipe bl->target_info out.
3658 * mem-break.c: #include "gdb_string.h".
3659 (default_memory_insert_breakpoint): Do not call target_read_memory
3660 with a pointer to the breakpoint's shadow_contents buffer. Use
3661 a local buffer instead.
3662 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3663
3664 2012-03-15 Tom Tromey <tromey@redhat.com>
3665
3666 * NEWS: Mention "info vtbl", not "info vtable".
3667 * cp-support.c (info_vtbl_command): Fix comment.
3668 (_initialize_cp_support): Fix text.
3669
3670 2012-03-15 Tom Tromey <tromey@redhat.com>
3671
3672 * cp-valprint.c (cp_print_value_fields): Use
3673 print_function_pointer_address for vtable slot.
3674
3675 2012-03-15 Tom Tromey <tromey@redhat.com>
3676
3677 * gnu-v3-abi.c (struct value_and_voffset): New.
3678 (hash_value_and_voffset, eq_value_and_voffset)
3679 (compare_value_and_voffset, compute_vtable_size)
3680 (print_one_vtable, gnuv3_print_vtable): New functions.
3681 (init_gnuv3_ops): Initialize 'print_vtable' field.
3682 * cp-support.c (info_vtbl_command): New function.
3683 (_initialize_cp_support): Add "info vtbl".
3684 * cp-abi.h (cplus_print_vtable): Declare.
3685 (struct cp_abi_ops) <print_vtable>: New field.
3686 * cp-abi.c (cplus_print_vtable): New function.
3687 * NEWS: Update.
3688
3689 2012-03-15 Tom Tromey <tromey@redhat.com>
3690
3691 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3692 iterate_over_symbols.
3693
3694 2012-03-14 Doug Evans <dje@google.com>
3695
3696 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3697 DW_OP_GNU_parameter_ref.
3698
3699 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3700
3701 Fix double prompt of 'interpreter-exec mi'.
3702 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3703 (mi_interpreter_resume): use it.
3704 (mi_execute_command_input_handler): New function.
3705 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3706 mi_execute_command_input_handler.
3707
3708 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
3709
3710 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3711 prototype.
3712 (darwin_debug_port_info): Make static.
3713 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3714 * machoread.c (_initialize_machoread): Add prototype.
3715 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3716 (i386_darwin_set_control, i386_darwin_get_control)
3717 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3718 i386_darwin_get_status, i386_darwin_get_control):
3719 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3720
3721 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3722
3723 * ax-gdb.c (gen_usual_unary): Remove special handling of
3724 enum and bool types.
3725
3726 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3727
3728 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3729
3730 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3731
3732 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3733
3734 2012-03-13 Chris January <chris.january@allinea.com>
3735
3736 * aix-thread.c (fill_sprs): Store the floating point registers
3737 at the correct offsets into vals.
3738
3739 2012-03-13 Doug Evans <dje@google.com>
3740
3741 * NEWS: Mention symbol-reloading has been deleted.
3742 * symfile.c (symbol_reloading): Delete.
3743 (show_symbol_reloading): Delete.
3744 (_initialize_symfile): Delete set/show symbol-reloading.
3745
3746 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3747 read_in_chain until we have successfully read it in.
3748 (load_full_comp_unit): Ditto.
3749 (read_signatured_type): Add comment.
3750
3751 2012-03-13 Chris January <chris.january@allinea.com>
3752
3753 * stabsread.c (fix_common_block): Change type of valu argument
3754 to CORE_ADDR.
3755
3756 2012-03-13 Chris January <chris.january@allinea.com>
3757
3758 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3759 instruction.
3760
3761 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3762
3763 * common/linux-procfs.c (linux_proc_get_int): New, from
3764 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3765 field.
3766 (linux_proc_get_tgid): Only call linux_proc_get_int.
3767 (linux_proc_get_tracerpid): New.
3768 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3769 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3770 linux_proc_pid_has_state.
3771 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3772 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3773 (linux_ptrace_attach_warnings): New.
3774 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3775 New declaration.
3776 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3777 (linux_nat_attach): New variables ex, buffer, message and message_s.
3778 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3779
3780 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3781
3782 * Makefile.in (linux-ptrace.o): New.
3783 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3784 from linux-nat.c.
3785 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3786 * common/linux-ptrace.c: New file.
3787 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3788 * config/arm/linux.mh: Likewise.
3789 * config/i386/linux.mh: Likewise.
3790 * config/i386/linux64.mh: Likewise.
3791 * config/ia64/linux.mh: Likewise.
3792 * config/m32r/linux.mh: Likewise.
3793 * config/m68k/linux.mh: Likewise.
3794 * config/mips/linux.mh: Likewise.
3795 * config/pa/linux.mh: Likewise.
3796 * config/powerpc/linux.mh: Likewise.
3797 * config/powerpc/ppc64-linux.mh: Likewise.
3798 * config/powerpc/spu-linux.mh: Likewise.
3799 * config/s390/s390.mh: Likewise.
3800 * config/sparc/linux.mh: Likewise.
3801 * config/sparc/linux64.mh: Likewise.
3802 * config/xtensa/linux.mh: Likewise.
3803 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3804 common/linux-procfs.c.
3805 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3806
3807 2012-03-13 Hui Zhu <teawater@gmail.com>
3808 Pedro Alves <palves@redhat.com>
3809
3810 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
3811 CREATE_BREAKPOINT_FLAGS_INSERTED.
3812 (create_breakpoint_sal, create_breakpoints_sal)
3813 (base_breakpoint_create_breakpoints_sal)
3814 (tracepoint_create_breakpoints_sal)
3815 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
3816 down.
3817 (break_command_1, handle_gnu_v3_exceptions, trace_command)
3818 (ftrace_command, strace_command): Adjust.
3819 (create_tracepoint_from_upload): Pass
3820 CREATE_BREAKPOINT_FLAGS_INSERTED.
3821 * breakpoint.h (enum breakpoint_create_flags): New.
3822 (create_breakpoint): New flags parameter.
3823 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3824 * python/py-breakpoint.c (bppy_init): Adjust.
3825 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
3826 * spu-tdep.c (spu_catch_start): Adjust.
3827
3828 2012-03-13 Pedro Alves <palves@redhat.com>
3829 Hui Zhu <teawater@gmail.com>
3830 Yao Qi <yao@codesourcery.com>
3831
3832 * remote.c (struct remote_state): New field `starting_up'.
3833 (remote_start_remote): Set and clear it.
3834 (remote_can_download_tracepoint): If starting up, return false.
3835
3836 2012-03-13 Yao Qi <yao@codesourcery.com>
3837
3838 * inferior.h (struct inferior): Remove fields any_syscall_count,
3839 syscalls_counts and total_syscalls_count. Move them to new
3840 struct catch_syscall_inferior_data in breakpoint.c.
3841 * breakpoint.c: Call DEF_VEC_I(int).
3842 (struct catch_syscall_inferior_data): New.
3843 (get_catch_syscall_inferior_data): New.
3844 (catch_syscall_inferior_data_cleanup): New.
3845 (insert_catch_syscall): Update to access data in
3846 struct catch_syscall_inferior_data.
3847 (insert_catch_syscall): Likewise.
3848 (remove_catch_syscall): Likewise.
3849 (remove_catch_syscall): Likewise.
3850 (is_syscall_catchpoint_enabled): Likewise.
3851 (add_catch_command): Likewise.
3852 (_initialize_breakpoint): Register cleanup.
3853 * breakpoint.h: Removed DEF_VEC_I(int).
3854 * dwarf2loc.c: Call DEF_VEC_I(int).
3855 * mi/mi-main.c: Likewise.
3856
3857 2012-03-12 Mark Kettenis <kettenis@gnu.org>
3858
3859 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
3860
3861 2012-03-12 Chris January <chris.january@allinea.com>
3862
3863 * aix-thread.c (_initialize_aix_thread): Add prototype.
3864 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
3865 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
3866
3867 2012-03-12 Joel Brobecker <brobecker@adacore.com>
3868
3869 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
3870 include of "amd64-nat.h".
3871
3872 2012-03-12 Tom Tromey <tromey@redhat.com>
3873
3874 * buildsym.c (record_pending_block): Now static.
3875 * buildsym.h: (record_pending_block): Remove.
3876
3877 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
3878
3879 * amd64bsd-nat.c: Include amd64bsd-nat.h.
3880
3881 2012-03-09 Tom Tromey <tromey@redhat.com>
3882
3883 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
3884 producer_is_gxx_lt_4_6>: New fields.
3885 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
3886
3887 2012-03-09 Tom Tromey <tromey@redhat.com>
3888
3889 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
3890
3891 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3892
3893 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
3894 prototype.
3895
3896 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3897
3898 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
3899
3900 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3901
3902 Fix -Wmissing-prototypes build.
3903 * arm-linux-nat.c (get_thread_id): Make it static.
3904 * xtensa-linux-nat.c (get_thread_id): Likewise.
3905
3906 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3907
3908 * server.c (process_point_options): If a conditional expression
3909 is found, only print a message if remote_debug is nonzero.
3910
3911 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
3912
3913 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
3914 of internal error for unknown/unsupported types.
3915
3916 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3917
3918 Fix CU relative vs. absolute DIE offsets.
3919 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
3920 offset to offset_in_cu.
3921 * dwarf2read.c (process_enumeration_scope): Add CU offset to
3922 TYPE_OFFSET.
3923 (dwarf2_fetch_die_location_block): Rename parameter offset to
3924 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
3925
3926 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3927
3928 * libunwind-frame.c: Rename to ...
3929 * ia64-libunwind-tdep.c: ... here.
3930 * libunwind-frame.h: Rename to ...
3931 * ia64-libunwind-tdep.h: ... here.
3932 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
3933 ia64-libunwind-tdep.h.
3934 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
3935 * README (--with-libunwind): Rename to ...
3936 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
3937 * config.in: Regenerate.
3938 * configure: Regenerate.
3939 * configure.ac: New option --with-libunwind-ia64, make the
3940 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
3941 Remove AC_DEFINE for HAVE_LIBUNWIND.
3942 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
3943 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
3944 Rename libunwind-frame in the general comment.
3945 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
3946 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
3947 Move forward declarations inside #ifndef. Rename libunwind-frame in
3948 the general comment.
3949 * ia64-tdep.c: Rename libunwind-frame.h #include to
3950 ia64-libunwind-tdep.h.
3951 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
3952 (ia64_libunwind_descr): Rename libunwind-frame to
3953 ia64-libunwind-tdep in these function comments.
3954 * ia64-tdep.h: Rename libunwind-frame.h #include to
3955 ia64-libunwind-tdep.h.
3956 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
3957 ia64-libunwind-tdep in that data comment.
3958
3959 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3960
3961 * libunwind-frame.h (struct frame_unwind): New declaration.
3962
3963 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3964
3965 * breakpoint.c (_initialize_breakpoint): Fix error in help of
3966 "set breakpoint condition-evaluation" command.
3967
3968 2012-03-08 Tristan Gingold <gingold@adacore.com>
3969
3970 * sparc-stub.c: Move to stubs/
3971 * sh-stub.c: Likewise.
3972 * m68k-stub.c: Likewise.
3973 * m32r-stub.c: Likewise.
3974 * i386-stub.c: Likewise.
3975
3976 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
3977
3978 * m68klinux-tdep.c (m68k_linux_init_abi): Register
3979 linux_get_siginfo_type.
3980
3981 * m68klinux-nat.c: Include "gdb_proc_service.h".
3982 (PTRACE_GET_THREAD_AREA): Define.
3983 (ps_get_thread_area): New function.
3984
3985 2012-03-08 Yao Qi <yao@codesourcery.com>
3986
3987 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
3988 `xsnprintf'.
3989 (remote_query_attached): Likewise.
3990 (remote_static_tracepoint_marker_at): Likewise.
3991 (remote_set_permissions): Likewise.
3992 (remote_detach_1, extended_remote_attach_1): Likewise.
3993 (send_g_packet, remote_vkill): Likewise.
3994 (extended_remote_disable_randomization): Likewise.
3995 (remote_add_target_side_condition): Likewise.
3996 (remote_insert_breakpoint): Likewise.
3997 (remote_remove_breakpoint): Likewise.
3998 (remote_insert_watchpoint): Likewise.
3999 (remote_remove_watchpoint): Likewise.
4000 (remote_insert_hw_breakpoint): Likewise.
4001 (remote_insert_hw_breakpoint): Likewise.
4002 (remote_remove_hw_breakpoint): Likewise.
4003 (remote_download_command_source): Likewise.
4004 (remote_download_tracepoint): Likewise.
4005 (remote_download_trace_state_variable): Likewise.
4006 (remote_disable_tracepoint): Likewise.
4007 (remote_trace_set_readonly_regions): Likewise.
4008 (remote_get_tracepoint_status): Likewise.
4009 (remote_trace_find): Likewise.
4010 (remote_get_trace_state_variable_value): Likewise.
4011 (remote_set_disconnected_tracing): Likewise.
4012 (remote_set_circular_trace_buffer): Likewise.
4013 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4014 (remote_use_agent): Likewise.
4015 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4016 Update callers.
4017
4018 2012-03-07 Pedro Alves <palves@redhat.com>
4019
4020 * NEWS: Mention QProgramSignals.
4021 * inferior.h (update_signals_program_target): Declare.
4022 * infrun.c: (update_signals_program_target): New.
4023 (handle_command): Update the target of the new program signals
4024 array changes.
4025 * remote.c (PACKET_QProgramSignals): New enum.
4026 (last_program_signals_packet): New global.
4027 (remote_program_signals): New.
4028 (remote_start_remote): Update the target with the program signals
4029 list.
4030 (remote_protocol_features): Add entry for QPassSignals.
4031 (remote_open_1): Free anc clear last_program_signals_packet.
4032 (init_remote_ops): Install remote_program_signals.
4033 * target.c (update_current_target): Adjust.
4034 (target_program_signals): New.
4035 * target.h (struct target_ops) <to_program_signals>: New field.
4036 (target_program_signals): Declare.
4037
4038 2012-03-07 Pedro Alves <palves@redhat.com>
4039
4040 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4041 extensions.
4042
4043 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4044
4045 * m68klinux-nat.c (getregs_supplies): Make static.
4046 (getfpregs_supplies): Likewise.
4047 (have_ptrace_getregs): Likewise.
4048
4049 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4050
4051 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4052 in call to get_die_type_at_offset.
4053
4054 2012-03-06 Stan Shebs <stan@codesourcery.com>
4055
4056 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4057 * mi/mi-cmd-disas.c: Ditto.
4058 * mi/mi-cmd-env.c: Ditto.
4059 * mi/mi-cmd-file.c: Ditto.
4060 * mi/mi-cmd-stack.c: Ditto.
4061 * mi/mi-cmd-target.c: Ditto.
4062 * mi/mi-cmd-var.c: Ditto.
4063 * mi/mi-cmds.c: Ditto.
4064 * mi/mi-cmds.h: Ditto.
4065 * mi/mi-console.c: Ditto.
4066 * mi/mi-getopt.c: Ditto.
4067 * mi/mi-getopt.h: Ditto.
4068 * mi/mi-interp.c: Ditto.
4069 * mi/mi-main.c: Ditto.
4070 * mi/mi-out.c: Ditto.
4071 * mi/mi-parse.c: Ditto.
4072 * mi/mi-parse.h: Ditto.
4073 * mi/mi-symbol-cmds.c: Ditto.
4074
4075 * mi/mi-getopt.h: Move mi_opt struct up.
4076 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4077 return.
4078 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4079
4080 2012-03-06 Tom Tromey <tromey@redhat.com>
4081
4082 * proc-service.c (ps_pglobal_lookup): Set the current program
4083 space.
4084
4085 2012-03-06 Pedro Alves <palves@redhat.com>
4086
4087 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4088
4089 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4090
4091 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4092
4093 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4094
4095 Code cleanup.
4096 * common/linux-osdata.c (linux_common_core_of_thread): New function
4097 comment.
4098 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4099 call by linux_common_core_of_thread.
4100 (linux_nat_core_of_thread_1): Remove.
4101 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4102 * linux-thread-db.c: Include linux-osdata.h.
4103 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4104 linux_common_core_of_thread.
4105
4106 2012-03-05 Tom Tromey <tromey@redhat.com>
4107
4108 * value.c (value_primitive_field): Don't fetch contents for
4109 non-virtual bases.
4110
4111 2012-03-05 Tom Tromey <tromey@redhat.com>
4112
4113 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4114
4115 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4116
4117 * s390-nat.c: Include "gregset.h".
4118
4119 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4122 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4123 (libunwind_load): New variable so_error, use it for dlerror. Try to
4124 load also LIBUNWIND_SO_7.
4125
4126 2012-03-05 Pedro Alves <palves@redhat.com>
4127
4128 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4129 is not NULL, and remove resulting dead code.
4130
4131 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4132
4133 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4134 prologue to sh_analyze_prologue.
4135 (sh_analyze_prologue): Make better use of such an upper limit, and
4136 generally be more cautious about accessing memory.
4137
4138 2012-03-05 Tom Tromey <tromey@redhat.com>
4139
4140 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4141 _initialize_ia64_hpux_tdep.
4142
4143 2012-03-05 Pedro Alves <palves@redhat.com>
4144
4145 PR gdb/13766
4146
4147 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4148 the register state is clear, supply explicit zero, instead of
4149 marking the register unavailable.
4150
4151 2012-03-05 Tristan Gingold <gingold@adacore.com>
4152
4153 * NEWS: Mention OpenVMS ia64 new target.
4154
4155 2012-03-05 Tristan Gingold <gingold@adacore.com>
4156
4157 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4158 (ia64_unw_accessors, ia64_unw_rse_accessors)
4159 (ia64_libunwind_descr): Declare.
4160 * ia64-vms-tdep.c: New file.
4161 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4162 (ia64_libunwind_descr): Make them public.
4163 * configure.tgt: Add ia64-*-*vms*.
4164 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4165 (ALLDEPFILES): Add ia64-vms-tdep.c
4166
4167 2012-03-05 Tristan Gingold <gingold@adacore.com>
4168
4169 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4170 * remote.c (PACKET_qXfer_uib): New enum value.
4171 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4172 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4173 (_initialize_remote): Call add_packet_config_cmd for
4174 xfer:uib packet.
4175
4176 2012-03-05 Tristan Gingold <gingold@adacore.com>
4177
4178 * osabi.c (gdb_osabi_names): Add OpenVMS.
4179 (generic_elf_osabi_sniffer): Likewise.
4180 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4181
4182 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4183
4184 Removed unused code.
4185 * libunwind-frame.c (libunwind_frame_unwind)
4186 (libunwind_frame_base_address): Remove.
4187 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4188
4189 2012-03-04 Yao Qi <yao@codesourcery.com>
4190
4191 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4192 remove trailing new line.
4193 (agent_run_command, agent_run_command): Add _ markup.
4194 (agent_capability_check): Likewise.
4195
4196 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4197
4198 * breakpoint.c (set_condition_evaluation_mode): Set
4199 CONDITION_EVALUATION_MODE unconditionally.
4200
4201 2012-03-03 Yao Qi <yao@codesourcery.com>
4202
4203 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4204 * common/agent.h: Update declaration.
4205 * inf-child.c (inf_child_use_agent): New.
4206 (inf_child_can_use_agent): New.
4207 (inf_child_target): Initialize fields `to_use_agent'
4208 and `to_can_use_agent'.
4209 * agent.c (agent_new_objfile): New.
4210 (_initialize_agent): Add agent_new_objfile to new_objfile
4211 observer.
4212
4213 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4214 New.
4215 (linux_target_install_ops): Initialize field
4216 `to_static_tracepoint_markers_by_strid'.
4217 * remote.c (free_current_marker): Move it to ...
4218 * tracepoint.c (free_current_marker): ... here. New.
4219 (cleanup_target_stop): New.
4220 * tracepoint.h: Declare free_current_marker.
4221 * NEWS: Add one entry about `info static-tracepoint-marker'.
4222
4223 2012-03-03 Yao Qi <yao@codesourcery.com>
4224
4225 * common/agent.c (agent_loaded_p): New.
4226 (agent_look_up_symbols): New global.
4227 * common/agent.h: Declare agent_loaded_p.
4228
4229 2012-03-03 Yao Qi <yao@codesourcery.com>
4230
4231 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4232 (agent_capability_check, agent_capability_invalidate): New.
4233 (symbol_list): New array element.
4234 * common/agent.h (enum agent_capa): New.
4235 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4236
4237 2012-03-03 Yao Qi <yao@codesourcery.com>
4238
4239 * target.h (struct target_ops) <to_use_agent>: New field.
4240 (struct target_ops) <to_can_use_agent>: New field.
4241 (target_use_agent, target_can_use_agent): New macro.
4242 * target.c (update_current_target): Update.
4243 * remote.c: New enum `PACKET_QAgent'.
4244 (remote_protocol_features): Add a new element.
4245 (remote_use_agent, remote_can_use_agent): New.
4246 (init_remote_ops): Initialize field `can_use_agent' with
4247 remote_can_use_agent. Intiailize field `use_agent' with
4248 remote_use_agent.
4249 * common/agent.c (use_agent): New global.
4250 * common/agent.h: Declare it.
4251 * tracepoint.c (info_static_tracepoint_markers_command): Add
4252 comment.
4253 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4254 (COMMON_OBS): Add common/agent.o and agent.o
4255 (common-agent.o): New rule.
4256 * agent.c: New.
4257
4258 2012-03-03 Yao Qi <yao@codesourcery.com>
4259
4260 * common/agent.c: New.
4261 * common/agent.h: New.
4262 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4263 AC_CHECK_HEADERS.
4264 * configure, configh.in: Regenerated.
4265
4266 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4267
4268 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4269 unless it exists for this architecture.
4270
4271 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4272
4273 * language.h (struct language_defn): New "method" la_read_var_value.
4274 * findvar.c: #include "language.h".
4275 (default_read_var_value): Renames read_var_value. Rewrite
4276 function description.
4277 (read_var_value): New function.
4278 * value.h (default_read_var_value): Add prototype.
4279 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4280 New functions.
4281 (ada_language_defn): Add entry for la_read_var_value.
4282 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4283 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4284 language_defn structures to add entry for new la_read_var_value
4285 field.
4286
4287 2012-03-02 Tom Tromey <tromey@redhat.com>
4288 Pedro Alves <palves@redhat.com>
4289
4290 PR breakpoints/13776:
4291 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4292 breakpoints.
4293 (delete_longjmp_breakpoint_at_next_stop): New.
4294 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4295 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4296 before deleting the inferior. Add comments.
4297 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4298 breakpoints immediately, but only on next stop. Move that code
4299 next to where we mark other breakpoints for deletion.
4300
4301 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4302
4303 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4304 marker.
4305 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4306 violation.
4307
4308 2012-03-02 Pedro Alves <palves@redhat.com>
4309
4310 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4311
4312 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4313
4314 Fix -Wmissing-prototypes build.
4315 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4316 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4317 (gdbsim_has_memory): Likewise.
4318
4319 2012-03-02 Yao Qi <yao@codesourcery.com>
4320
4321 Fix -Wmissing-prototypes build.
4322 * charset.c (phony_iconv_open): Make static.
4323 (phony_iconv_close, phony_iconv): Likewise.
4324 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4325 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4326 prototype.
4327 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4328 * ser-mingw.c (create_select_thread): Make static.
4329 * windows-termcap.c (tgetent): New prototype.
4330 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4331
4332 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4333
4334 Fix -Wmissing-prototypes build.
4335 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4336 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4337 (_initialize_loadable): New prototypes.
4338
4339 2012-03-02 Doug Evans <dje@google.com>
4340
4341 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4342 abbrev table, read_comp_unit will do it.
4343
4344 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4345
4346 Fix -Wmissing-prototypes build.
4347 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4348 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4349 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4350 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4351 (_initialize_arm_symbian_tdep): New prototype.
4352 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4353 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4354 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4355 static.
4356 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4357 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4358 prototype.
4359 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4360 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4361 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4362 static.
4363 * moxie-tdep.c (moxie_process_record): Likewise.
4364 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4365 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4366 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4367 (_initialize_rl78_tdep): New prototype.
4368 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4369 (_initialize_rx_tdep): New prototype.
4370 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4371 (_initialize_darwin_solib): New prototype.
4372 * solib-spu.c: Include solib-spu.h.
4373 (_initialize_spu_solib): New prototype.
4374 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4375 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4376 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4377 (tic6x_software_single_step): Make it static.
4378 (_initialize_tic6x_tdep): New prototype.
4379
4380 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4381
4382 Fix -Wmissing-prototypes build.
4383 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4384 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4385
4386 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4387
4388 Fix -Wmissing-prototypes build.
4389 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4390 (frv_have_stopped_data_address): Remove.
4391
4392 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4393
4394 Fix -Wmissing-prototypes build.
4395 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4396 * sh-tdep.c: Include sh64-tdep.h.
4397 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4398 * sh64-tdep.c: Include sh64-tdep.h.
4399 * sh64-tdep.h: New file.
4400
4401 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4402
4403 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4404
4405 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4406
4407 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4408 sp_regnum once the gdbarch_init_osabi hook has been called.
4409
4410 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4411
4412 * mips-tdep.c (mips32_bc1_pc): New function.
4413 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4414 BPOSGE32 and BPOSGE64 instructions.
4415 (deal_with_atomic_sequence): Likewise.
4416 (mips32_instruction_has_delay_slot): Likewise.
4417
4418 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4419 Chris Dearman <chris@mips.com>
4420 Maciej W. Rozycki <macro@codesourcery.com>
4421 Joseph Myers <joseph@codesourcery.com>
4422
4423 * features/mips-dsp.xml: New file.
4424 * features/mips64-dsp.xml: New file.
4425 * features/mips-dsp-linux.xml: New file.
4426 * features/mips64-dsp-linux.xml: New file.
4427 * features/Makefile (WHICH): Add mips-dsp-linux and
4428 mips64-dsp-linux.
4429 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4430 * features/mips-dsp-linux.c: New file.
4431 * features/mips64-dsp-linux.c: New file.
4432 * regformats/mips-dsp-linux.dat: New file.
4433 * regformats/mips64-dsp-linux.dat: New file.
4434 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4435 registers.
4436 (mips64_linux_register_addr): Likewise.
4437 (mips64_linux_regsets_fetch_registers): Likewise.
4438 (mips64_linux_regsets_store_registers): Likewise.
4439 (mips64_linux_fetch_registers): Update call to
4440 mips64_linux_regsets_fetch_registers.
4441 (mips64_linux_store_registers): Update call to
4442 mips64_linux_regsets_store_registers.
4443 (mips_linux_read_description): Probe for DSP registers.
4444 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4445 and initialize_tdesc_mips64_dsp_linux.
4446 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4447 Remove padding of no longer used embedded register slots.
4448 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4449 (MIPS_RESTART_REGNUM): Redefine enum value.
4450 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4451 strings.
4452 (mips_tx39_reg_names): Likewise.
4453 (mips_linux_reg_names): New array of register names for Linux
4454 targets.
4455 (mips_register_name): Check for a null pointer in
4456 mips_processor_reg_names and return an empty string.
4457 (mips_register_type): Exclude embedded registers for the IRIX
4458 and Linux ABIs.
4459 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4460 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4461 DSP registers.
4462 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4463 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4464 (mips_gdbarch_init): Likewise. Initialize internal register
4465 indices for the Linux ABI. Use dynamic numbers to refer to
4466 registers, as applicable, while parsing the target description.
4467 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4468
4469 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4470
4471 * frame.h (read_frame_register_unsigned): Fix typo in function
4472 description.
4473
4474 2012-03-01 Pedro Alves <palves@redhat.com>
4475
4476 * jit-reader.in [!__cplusplus]
4477 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4478
4479 2012-03-01 Pedro Alves <palves@redhat.com>
4480
4481 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4482 * configure: Regenerate.
4483
4484 2012-03-01 Pedro Alves <palves@redhat.com>
4485
4486 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4487 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4488 (ftrace_command, strace_command): Make static.
4489 * d-lang.c (_initialize_d_language): Declare.
4490 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4491 * dwarf2loc.c (_initialize_dwarf2loc):
4492 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4493 * exec.c (exec_get_section_table): Make static.
4494 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4495 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4496 * inferior.c (remove_inferior_command, add_inferior_command)
4497 (clone_inferior_command): Make static.
4498 * linux-nat.c (linux_nat_thread_address_space)
4499 (linux_nat_core_of_thread): Make static.
4500 * linux-tdep.c (_initialize_linux_tdep): Declare.
4501 * objc-lang.c (_initialize_objc_lang): Declare.
4502 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4503 Make static.
4504 (_initialize_opencl_language): Declare.
4505 * record.c (_initialize_record): Declare.
4506 * remote.c (demand_private_info, remote_get_tib_address)
4507 (remote_supports_cond_tracepoints)
4508 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4509 Make static.
4510 * skip.c (_initialize_step_skip): Declare.
4511 * symtab.c (skip_prologue_using_lineinfo): Make static.
4512 * tracepoint.c (delete_trace_state_variable)
4513 (trace_variable_command, delete_trace_variable_command)
4514 (get_uploaded_tsv, find_matching_tracepoint_location)
4515 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4516 Make static.
4517 * value.c (pack_unsigned_long): Make static.
4518 * varobj.c (varobj_ensure_python_env): Make static.
4519 * windows-tdep.c (_initialize_windows_tdep): Declare.
4520 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4521
4522 2012-03-01 Pedro Alves <palves@redhat.com>
4523
4524 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4525 gdbarch parameter.
4526 (linux_init_abi): Install it as has_shared_address_space gdbarch
4527 callback.
4528
4529 2012-03-01 Pedro Alves <palves@redhat.com>
4530
4531 * observer.c (observer_test_first_notification_function)
4532 (observer_test_second_notification_function)
4533 (observer_test_third_notification_function): Add declarations.
4534
4535 2012-03-01 Pedro Alves <palves@redhat.com>
4536
4537 * common/signals.c (default_target_signal_to_host)
4538 (default_target_signal_from_host): Move ...
4539 * arch-utils.c: ... here.
4540 * arch-utils.h (default_target_signal_to_host)
4541 (default_target_signal_from_host): Declare.
4542
4543 * common/signals.c (target_signal_from_command): Move ...
4544 * infrun.c: ... here.
4545 * inferior.h (target_signal_from_command): Declare.
4546 * target.h (target_signal_from_command)
4547 (default_target_signal_from_host, default_target_signal_to_host):
4548 Delete declarations.
4549
4550 * common/signals.c (_initialize_signals): Delete.
4551
4552 2012-03-01 Pedro Alves <palves@redhat.com>
4553
4554 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4555 both __cplusplus and !__cplusplus.
4556
4557 2012-03-01 Pedro Alves <palves@redhat.com>
4558
4559 * psymtab.c (find_and_open_source): Delete declaration.
4560 * source.c (find_and_open_source): Move comment ...
4561 * source.h (find_and_open_source): ... to this new declaration.
4562
4563 2012-03-01 Pedro Alves <palves@redhat.com>
4564
4565 * inline-frame.c: Include inline-frame.h.
4566
4567 2012-03-01 Pedro Alves <palves@redhat.com>
4568
4569 * tui/tui-data.c (set_gen_win_origin): Delete.
4570 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4571 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4572
4573 2012-03-01 Pedro Alves <palves@redhat.com>
4574
4575 * remote.c (encode_actions): Delete declaration.
4576 * tracepoint.c (encode_actions): Make extern.
4577 * tracepoint.h (encode_actions): Declare.
4578
4579 2012-03-01 Pedro Alves <palves@redhat.com>
4580
4581 * python/py-breakpoint.c: Include python.h.
4582 * python/py-continueevent.c (create_continue_event_object): Make
4583 static.
4584 * python/py-lazy-string.c (stpy_get_type): Make static.
4585 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4586 Make static.
4587 * python/py-utils.c (unicode_to_target_python_string): Make
4588 static.
4589 * python/py-value.c: Include python.h.
4590
4591 2012-03-01 Pedro Alves <palves@redhat.com>
4592
4593 * inferior.c (delete_threads_of_inferior): Delete.
4594
4595 2012-03-01 Pedro Alves <palves@redhat.com>
4596
4597 Import fallback definitions from glibc.
4598
4599 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4600 ps_prochandle): Forward declare.
4601 (ps_err_e): Use glibc's comments.
4602 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4603 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4604 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4605 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4606 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4607 (struct ps_prochandle): Adjust comment.
4608
4609 2012-03-01 Pedro Alves <palves@redhat.com>
4610
4611 * ada-lang.c (ada_modulus_from_name): Delete.
4612 * ada-lex.l (lexer_init): Make static.
4613
4614 2012-03-01 Pedro Alves <palves@redhat.com>
4615
4616 PR gdb/13767
4617
4618 * frame.c (read_frame_register_unsigned): New.
4619 * frame.h (read_frame_register_unsigned): Declare.
4620 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4621 Handle it.
4622 (print_i387_control_word): New parameter `control_p'. Handle it.
4623 (i387_print_float_info): Handle unavailable float registers.
4624
4625 2012-03-01 Keith Seitz <keiths@redhat.com>
4626
4627 * linespec.c (decode_line_2): Sort the list of methods
4628 alphabetically before presenting the user with a selection
4629 menu.
4630
4631 2012-03-01 Doug Evans <dje@google.com>
4632
4633 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4634 has_namespace_info.
4635 (dwarf2_read_abbrevs): Remove corresponding initialization.
4636
4637 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
4638
4639 * NEWS: Mention new python command class gdb.COMMAND_USER.
4640 * cli/cli-cmds.c (show_user): Print error when used on a python
4641 command.
4642 (init_cli_cmds): Update documentation strings for "show user" and
4643 "set/show max-user-call-depth" to clarify that it does not apply to
4644 python commands.
4645 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4646 error check.
4647 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4648 gdb python api.
4649 * top.c (execute_command): Only execute a user-defined command as a
4650 legacy macro if c->user_commands is set.
4651
4652 2012-03-01 Tom Tromey <tromey@redhat.com>
4653
4654 * valprint.h (struct generic_val_print_decorations): New.
4655 (generic_val_print): Declare.
4656 * valprint.c (generic_val_print): New function.
4657 * p-valprint.c (p_decorations): New global.
4658 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4659 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4660 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4661 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4662 * m2-valprint.c (m2_decorations): New global.
4663 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4664 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4665 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4666 TYPE_CODE_ERROR>: Call generic_val_print.
4667 * f-valprint.c (f_decorations): New global.
4668 (f_val_print): Use print_function_pointer_address.
4669 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4670 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4671 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4672 generic_val_print.
4673 * c-valprint.c (c_decorations): New global.
4674 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4675 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4676 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4677 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4678 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4679 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4680 case.
4681
4682 2012-03-01 Tom Tromey <tromey@redhat.com>
4683
4684 * valprint.c (val_print): Update.
4685 * p-valprint (pascal_val_print): Return void.
4686 * p-lang.h (pascal_val_print): Return void.
4687 * m2-valprint.c (m2_val_print): Return void.
4688 * m2-lang.h (m2_val_print): Return void.
4689 * language.h (struct language_defn) <la_val_print>: Return void.
4690 * language.c (unk_lang_val_print): Return void.
4691 * jv-valprint.c (java_val_print): Return void.
4692 * jv-lang.h (java_val_print): Return void.
4693 * f-valprint.c (f_val_print): Return void.
4694 * f-lang.h (f_val_print): Return void.
4695 * d-valprint.c (d_val_print): Return void.
4696 (dynamic_array_type): Update.
4697 * d-lang.h (d_val_print): Return void.
4698 * c-valprint.c (c_val_print): Return void.
4699 * c-lang.h (c_val_print): Return void.
4700 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4701 void.
4702 * ada-lang.h (ada_val_print): Return void.
4703
4704 2012-03-01 Tom Tromey <tromey@redhat.com>
4705
4706 * value.h (val_print): Return void.
4707 * valprint.c (val_print): Return void.
4708
4709 2012-03-01 Tom Tromey <tromey@redhat.com>
4710
4711 * value.h (common_val_print): Return void.
4712 * valprint.c (common_val_print): Return void.
4713
4714 2012-03-01 Tom Tromey <tromey@redhat.com>
4715
4716 * value.h (value_print): Return void.
4717 * valprint.c (value_print): Return void.
4718 * p-valprint.c (pascal_value_print): Return void.
4719 * p-lang.h (pascal_value_print): Return void.
4720 * language.h (struct language_defn) <la_value_print>: Return
4721 void.
4722 * language.c (unk_lang_value_print): Return void.
4723 * jv-valprint.c (java_value_print): Return void.
4724 * jv-lang.h (java_value_print): Return void.
4725 * f-valprint.c (c_value_print): Don't declare.
4726 Include c-lang.h.
4727 * c-valprint.c (c_value_print): Return void.
4728 * c-lang.h (c_value_print): Return void.
4729 * ada-valprint.c (ada_value_print): Return void.
4730 * ada-lang.h (ada_value_print): Return void.
4731
4732 2012-03-01 Tom Tromey <tromey@redhat.com>
4733
4734 * value.c (value_primitive_field): Handle virtual base classes.
4735
4736 2012-03-01 Tom Tromey <tromey@redhat.com>
4737
4738 * gdbtypes.h (struct vbase): Remove.
4739
4740 2012-03-01 Tom Tromey <tromey@redhat.com>
4741
4742 * c-valprint.c (print_function_pointer_address): Move...
4743 * valprint.c: ... here. Make non-static.
4744 * m2-valprint.c (print_function_pointer_address): Remove.
4745 * valprint.h (print_function_pointer_address): Declare.
4746
4747 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4748
4749 * NEWS: Document the fact that one can provide a condition when
4750 creating an Ada exception catchpoint.
4751
4752 2012-03-01 Tom Tromey <tromey@redhat.com>
4753
4754 * valprint.c (val_print_type_code_flags): Fix placement of
4755 trailing brace.
4756
4757 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4758
4759 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4760 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4761 environment variable before calling update-copyright.
4762
4763 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4764
4765 * gnulib/extra/update-copyright: Update to the latest from
4766 gnulib's git repository.
4767 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4768 variable to 2 instead of 1.
4769
4770 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4771
4772 * varobj.c (c_value_of_variable): Remove dead code.
4773
4774 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4775
4776 * ada-lex.p (processId): Do not modify already encoded IDs.
4777 Update function documentation.
4778
4779 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4780
4781 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4782 "name" with "struct symbol *name_sym".
4783 * ada-exp.y (write_var_or_type): Update call to
4784 ada_find_renaming_symbol.
4785 "name" with "struct symbol *name_sym". Adjust Implementation
4786 accordingly. Adjust the function documentation.
4787
4788 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4789
4790 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4791 * ada-lang.c (ada_find_any_type): Add advance declaration.
4792 Make static. Replace ada_find_any_symbol by
4793 ada_find_any_type_symbol.
4794 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4795 Improve function description. Make static.
4796 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4797 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4798
4799 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4800
4801 * ada-lang.c (struct tag_args): Delete.
4802 (ada_get_tsd_type): Function body moved up in source file.
4803 (ada_tag_name_1, ada_tag_name_2): Delete.
4804 (ada_get_tsd_from_tag): New function.
4805 (ada_tag_name_from_tsd): New function.
4806 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4807 to determine the tag name.
4808
4809 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4810
4811 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
4812 declaration.
4813 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
4814 function.
4815
4816 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4817
4818 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
4819
4820 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4821
4822 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
4823 full searches.
4824
4825 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4826
4827 * ada-lang.c (constrained_packed_array_type): If there is a
4828 parallel XA type, use it to determine the array index type.
4829
4830 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4831
4832 * ada-valprint.c (ada_val_print_1): If our value is a reference
4833 to an array descriptor, dereference it before converting it
4834 to a simple array.
4835
4836 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4837
4838 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
4839 creating fixed value.
4840 (ada_value_ind, ada_coerce_ref, assign_component)
4841 (ada_evaluate_subexp): Remove call to unwrap_value before
4842 call to ada_to_fixed_value.
4843
4844 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4845
4846 * ada-lang.c (to_fixed_array_type): Set result's type name.
4847
4848 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4849
4850 * ada-lang.c (catch_ada_exception_command_split): Add new
4851 argument cond_string. Add support for condition at end of
4852 "catch exception" commands.
4853 (ada_decode_exception_location): Add new argument cond_string.
4854 Update call to catch_ada_exception_command_split.
4855 (create_ada_exception_catchpoint): Add new argument cond_string.
4856 Set the breakpoint condition if needed.
4857 (catch_ada_exception_command): Update call to
4858 ada_decode_exception_location.
4859 (ada_decode_assert_location): Add function documentation.
4860 Add support for condition at end of "catch assert" command.
4861 (catch_assert_command): Update calls to ada_decode_assert_location
4862 and create_ada_exception_catchpoint.
4863
4864 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4865
4866 Fix disp-step-syscall.exp: fork: single step over fork.
4867 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
4868 (i386_linux_get_syscall_number_from_regcache): ... here, new function
4869 comment, change parameters gdbarch and ptid to regcache. Remove
4870 parameter regcache, initialize gdbarch from regcache here.
4871 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
4872 New functions.
4873 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
4874 instead.
4875 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
4876 'syscall'. Make the 'int' check more strict.
4877
4878 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4879
4880 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
4881 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
4882 (i386_linux_intx80_sysenter_syscall_record): ... here.
4883 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
4884 Use the renamed function name.
4885
4886 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4887
4888 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
4889 * breakpoint.c (until_break_command): Likewise.
4890 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4891 * infcall.c (call_function_by_hand): Likewise.
4892 * infcmd.c (finish_forward): Likewise.
4893 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4894
4895 2012-02-28 Tristan Gingold <gingold@adacore.com>
4896
4897 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
4898 avoid variable assignments inside condition.
4899
4900 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4901
4902 Fix static analysis issue found by cppcheck.
4903 * microblaze-tdep.c (microblaze_extract_return_value): Fix
4904 uninitialized BUF for size 2.
4905
4906 2012-02-27 Chris Dearman <chris@mips.com>
4907 Nathan Froyd <froydnj@codesourcery.com>
4908 Maciej W. Rozycki <macro@codesourcery.com>
4909
4910 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
4911 (mips16_instruction_has_delay_slot): Likewise.
4912 (mips_segment_boundary): Likewise.
4913 (mips_adjust_breakpoint_address): Likewise.
4914 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
4915
4916 2012-02-27 Maciej W. Rozycki <macro@mips.com>
4917 Maciej W. Rozycki <macro@codesourcery.com>
4918
4919 * infrun.c (handle_inferior_event): Don't proceed through
4920 shared library trampolines if stepping at the machine
4921 instruction level.
4922
4923 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
4924
4925 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
4926 too.
4927
4928 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
4929
4930 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
4931 (sh_stub_unwind_sniffer): New functions.
4932 (sh_stub_unwind): New variable.
4933 (sh_gdbarch_init): Wire everything.
4934
4935 2012-02-27 Pedro Alves <palves@redhat.com>
4936
4937 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
4938 (linux_nat_post_attach_wait): Adjust to use
4939 linux_proc_pid_is_stopped.
4940 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
4941 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
4942 based on pid_is_stopped from both linux-nat.c and
4943 gdbserver/linux-low.c, and renamed.
4944
4945 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4946
4947 * remote.c (remote_watchpoint_addr_within_range): New function.
4948 (init_remote_ops): Use it.
4949
4950 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4951
4952 * target.h (target_watchpoint_addr_within_range): Document macro.
4953
4954 2012-02-24 Pedro Alves <palves@redhat.com>
4955
4956 * stack.c (set_last_displayed_sal): Issue internal_error instead
4957 of warning, and issue it after clearing the last displayed sal.
4958
4959 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4960 Pedro Alves <palves@redhat.com>
4961
4962 * breakpoint.c (until_break_command): Install breakpoints after
4963 all frame manipulations.
4964
4965 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4966
4967 * remote.c (remote_supports_cond_breakpoints): New forward
4968 declaration.
4969 (remote_add_target_side_condition): New function.
4970 (remote_insert_breakpoint): Add target-side breakpoint
4971 conditional if supported.
4972 (remote_insert_hw_breakpoint): Likewise.
4973 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
4974 hook.
4975
4976 * target.c (update_current_target): Inherit
4977 to_supports_evaluation_of_breakpoint_conditions.
4978 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
4979
4980 * target.h (struct target_ops)
4981 <to_supports_evaluation_of_breakpoint_conditions>: New field.
4982 (target_supports_evaluation_of_breakpoint_conditions): New #define.
4983
4984 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
4985 (condition_evaluation_both, condition_evaluation_auto,
4986 condition_evaluation_host, condition_evaluation_target,
4987 condition_evaluation_enums, condition_evaluation_mode_1,
4988 condition_evaluation_mode): New static globals.
4989 (translate_condition_evaluation_mode): New function.
4990 (breakpoint_condition_evaluation_mode): New function.
4991 (gdb_evaluates_breakpoint_condition_p): New function.
4992 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
4993 (mark_breakpoint_modified): New function.
4994 (mark_breakpoint_location_modified): New function.
4995 (set_condition_evaluation_mode): New function.
4996 (show_condition_evaluation_mode): New function.
4997 (bp_location_compare_addrs): New function.
4998 (get_first_location_gte_addr): New helper function.
4999 (set_breakpoint_condition): Free condition bytecode if locations
5000 has become unconditional. Call mark_breakpoint_modified (...).
5001 (condition_command): Call update_global_location_list (1) for
5002 breakpoints.
5003 (breakpoint_xfer_memory): Use is_breakpoint (...).
5004 (is_breakpoint): New function.
5005 (parse_cond_to_aexpr): New function.
5006 (build_target_condition_list): New function.
5007 (insert_bp_location): Handle target-side conditional
5008 breakpoints and call build_target_condition_list (...).
5009 (update_inserted_breakpoint_locations): New function.
5010 (insert_breakpoint_locations): Handle target-side conditional
5011 breakpoints.
5012 (bpstat_check_breakpoint_conditions): Add comment.
5013 (bp_condition_evaluator): New function.
5014 (bp_location_condition_evaluator): New function.
5015 (print_breakpoint_location): Print information on where the condition
5016 will be evaluated.
5017 (print_one_breakpoint_location): Likewise.
5018 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5019 breakpoint location.
5020 (force_breakpoint_reinsertion): New functions.
5021 (update_global_location_list): Handle target-side breakpoint
5022 conditions.
5023 Reinsert locations that are already inserted if conditions have
5024 changed.
5025 (bp_location_dtor): Free agent expression bytecode.
5026 (disable_breakpoint): Call mark_breakpoint_modified (...).
5027 Call update_global_location_list (...) with parameter 1 for breakpoints.
5028 (disable_command): Call mark_breakpoint_location_modified (...).
5029 Call update_global_location_list (...) with parameter 1 for breakpoints.
5030 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5031 (enable_command): mark_breakpoint_location_modified (...).
5032 (_initialize_breakpoint): Update documentation and add
5033 condition-evaluation breakpoint subcommand.
5034
5035 * breakpoint.h: Include ax.h.
5036 (condition_list): New data structure.
5037 (condition_status): New enum.
5038 (bp_target_info) <cond_list>: New field.
5039 (bp_location) <condition_changed, cond_bytecode>: New fields.
5040 (is_breakpoint): New prototype.
5041
5042 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5043
5044 * remote.c (remote_state) <cond_breakpoints>: New field.
5045 (PACKET_ConditionalBreakpoints): New enum.
5046 (remote_cond_breakpoint_feature): New function.
5047 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5048 (remote_supports_cond_breakpoints): New function.
5049 (_initialize_remote): Add new packet configuration for
5050 target-side conditional breakpoints.
5051
5052 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5053
5054 * NEWS: Mention target-side conditional breakpoint support,
5055 new condition-evaluation breakpoint subcommand and remote
5056 packet extensions.
5057
5058 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5059
5060 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5061 number.
5062
5063 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5064
5065 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5066 (after_prologue): Remove.
5067
5068 2012-02-23 Tom Tromey <tromey@redhat.com>
5069
5070 * jv-valprint.c (java_val_print): Remove dead code.
5071
5072 2012-02-23 Tristan Gingold <gingold@adacore.com>
5073
5074 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5075 known_tasks_element and known_tasks_length fields.
5076 (read_known_tasks_array): Change argument type. Use pointer type
5077 and number of elements from DATA. Adjust.
5078 (read_known_tasks_list): Likewise.
5079 (get_known_tasks_addr): Remove.
5080 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5081 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5082 type and array length. Merge former get_known_tasks_addr code.
5083
5084 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5085
5086 PR backtrace/13716
5087 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5088 it after set_momentary_breakpoint.
5089
5090 2012-02-22 Sterling Augustine <saugustine@google.com>
5091
5092 PR 13689:
5093 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5094
5095 2012-02-22 Gary Benson <gbenson@redhat.com>
5096
5097 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5098 (find_slot_in_mapped_hash): Likewise.
5099
5100 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5101
5102 PR build/13638
5103 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5104 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5105 * configure: Regenerate.
5106
5107 2012-02-21 Tristan Gingold <gingold@adacore.com>
5108 Pedro Alves <palves@redhat.com>
5109
5110 * ia64-tdep.c: Do not include libunwind-ia64.h.
5111 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5112 Include libunwind-ia64.h instead of libunwind.h.
5113 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5114 for libunwind.h existence.
5115 * configure, config.in: Regenerate.
5116
5117 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5118
5119 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5120 instead of value_rtti_target_type.
5121 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5122 instead of value_rtti_target_type.
5123 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5124 value_rtti_target_type.
5125 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5126 (value_rtti_target_type): Rename to ...
5127 (value_rtti_indirect_type): ... here and make it indirect. Update
5128 function comment.
5129 * value.c (readjust_indirect_value_type): New function.
5130 (coerce_ref): Support for enclosing type setting for references
5131 with readjust_indirect_value_type.
5132 * value.h (readjust_value_type): New declaration.
5133 (value_rtti_target_type): Rename to ...
5134 (value_rtti_indirect_type): ... here.
5135
5136 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5137
5138 * MAINTAINERS (Write After Approval): Add myself to the list.
5139
5140 2012-02-20 Doug Evans <dje@google.com>
5141
5142 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5143 Rename objfile_p_char parameter to objfilep.
5144 (build_objfile_section_table): Result is now void. All callers
5145 updated.
5146 * objfiles.h (struct objfile): Tweak comments, whitespace.
5147 (build_objfile_section_table): Update.
5148
5149 * elfread.c (elf_symfile_segments): Fix warning text.
5150
5151 2012-02-20 Tom Tromey <tromey@redhat.com>
5152
5153 PR gdb/13498:
5154 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5155 particular set of file names once.
5156 (dw2_map_symbol_filenames): Likewise.
5157
5158 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5159
5160 Code cleanup.
5161 * main.c (write_files): Remove the declaration.
5162 (external_editor_command): Move the declaration ...
5163 [GDBTK] (external_editor_command): ... here. Fix the comment.
5164
5165 2012-02-20 Tom Tromey <tromey@redhat.com>
5166
5167 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5168 extraneous block.
5169
5170 2012-02-20 Tristan Gingold <gingold@adacore.com>
5171
5172 * darwin-nat.h (enum darwin_msg_state): Add comments.
5173
5174 2012-02-20 Tristan Gingold <gingold@adacore.com>
5175
5176 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5177 value.
5178
5179 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5180
5181 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5182 between function description and implementation.
5183
5184 2012-02-17 Tom Tromey <tromey@redhat.com>
5185
5186 PR python/12070:
5187 * python/py-event.c (event_object_getset): New global.
5188 (event_object_type): Reference it.
5189 * python/py-type.c (field_object_getset): New global.
5190 (field_object_type): Reference it.
5191 * python/python-internal.h (gdb_py_generic_dict): Declare.
5192 * python/py-utils.c (gdb_py_generic_dict): New function.
5193
5194 2012-02-17 Tristan Gingold <gingold@adacore.com>
5195
5196 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5197
5198 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5199
5200 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5201 TYPE_CALLING_CONVENTION annotation.
5202
5203 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5204
5205 * MAINTAINERS: Add rx to target ISA section.
5206 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5207 (ALLDEPFILES): Add rx-tdep.c.
5208
5209 2012-02-16 Tom Tromey <tromey@redhat.com>
5210
5211 * symfile.c (symbol_file_add_main_1): Use inferior's
5212 symfile_flags.
5213 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5214 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5215 inferior.
5216 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5217 inferior.
5218 (follow_exec): Use inferior's symfile_flags.
5219 * inferior.h (struct inferior) <symfile_flags>: New field.
5220
5221 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5222
5223 PR gdb/9734:
5224 * remote-sim.c (gdbsim_create_inferior): Call error() when
5225 sim_create_inferior() fails.
5226
5227 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5228
5229 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5230
5231 2012-02-16 Tom Tromey <tromey@redhat.com>
5232
5233 PR c++/13653:
5234 * thread.c (struct current_thread_cleanup) <was_removable>: New
5235 field.
5236 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5237 (make_cleanup_restore_current_thread): Initialize new field.
5238
5239 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5240
5241 * MAINTAINERS: Add rl78 to target ISA section.
5242 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5243 (ALLDEPFILES): Add rl78-tdep.c.
5244 * NEWS: Mention rl78 as a new target.
5245
5246 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5247
5248 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5249 data.
5250 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5251
5252 2012-02-15 Tom Tromey <tromey@redhat.com>
5253
5254 PR gdb/12659:
5255 * infcmd.c (registers_info): Print just the current register's
5256 name.
5257
5258 2012-02-15 Tom Tromey <tromey@redhat.com>
5259
5260 * python/py-symbol.c (sympy_value): Use _().
5261
5262 2012-02-15 Pedro Alves <palves@redhat.com>
5263
5264 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5265 output to be like native targets'.
5266 (remote_pid_to_str): Special case the null ptid.
5267
5268 2012-02-14 Stan Shebs <stan@codesourcery.com>
5269
5270 * NEWS: Mention enable count command.
5271 * breakpoint.h (struct breakpoint): New field enable_count.
5272 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5273 (enable_breakpoint): Add arg to call.
5274 (struct disp_data): New struct.
5275 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5276 (do_map_enable_once_breakpoint): Create a struct and pass it.
5277 (do_map_enable_delete_breakpoint): Ditto.
5278 (do_map_enable_count_breakpoint): New function.
5279 (enable_count_command): New function.
5280 (bpstat_stop_status): Decrement enable_count.
5281 (print_one_breakpoint_location): Report enable count.
5282 (_initialize_breakpoint): Add enable count command.
5283
5284 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5285
5286 * rl78-tdep.c (reggroups.h): Include.
5287 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5288 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5289 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5290 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5291 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5292 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5293 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5294 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5295 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5296 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5297 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5298 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5299 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5300 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5301 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5302 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5303 beginning of register list.
5304 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5305 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5306 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5307 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5308 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5309 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5310 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5311 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5312 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5313 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5314 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5315 the pseudo registers. Rearrange other pseudo registers too so
5316 that the bank registers appear at the end.
5317 (rl78_register_type): Account for the fact that the byte sized
5318 bank registers are now pseudo-registers.
5319 (rl78_register_name): Rearrange the register name array. Make
5320 initial set of raw banked registers inaccessible.
5321 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5322 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5323 case for copying bytes back and forth between raw and pseudo
5324 versions of the banked registers. Update other cases to reflect
5325 the changed names.
5326 (rl78_return_value): Update to account for changed names of
5327 raw registers.
5328 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5329 rl78_register_sim_regno().
5330
5331 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5332
5333 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5334 the name parameter being passed to find_pc_partial_function().
5335
5336 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5337
5338 * MAINTAINERS: Step down from being ia64 target maintainer.
5339
5340 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5341
5342 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5343 compilation warning.
5344
5345 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 Fix crash on loaded shlibs without loaded exec_bfd.
5348 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5349 (set_section_command): Replace exec_bfd by p->bfd.
5350
5351 2012-02-10 Tom Tromey <tromey@redhat.com>
5352
5353 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5354 when we have a C++ qualified name.
5355
5356 2012-02-10 Pedro Alves <palves@redhat.com>
5357
5358 * inferior.c (inferior_pid_to_str): New.
5359 (print_inferior, inferior_command): Use it.
5360
5361 2012-02-10 Pedro Alves <palves@redhat.com>
5362
5363 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5364 the test CFLAGS.
5365 * configure: Regenerate.
5366
5367 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5368
5369 * linespec.c (decode_line_internal): Fix comment correctness.
5370
5371 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5372
5373 PR gdb/12953
5374 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5375 * amd64bsd-nat.c: Add support for debug registers (adapted from
5376 i386bsd-nat.c).
5377 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5378 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5379 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5380 (amd64bsd_dr_get_control): New functions.
5381 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5382 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5383 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5384 watchpoints initialization.
5385 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5386
5387 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5388
5389 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5390 flds_bnds.fields.
5391 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5392
5393 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5396
5397 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5398
5399 * language.h (symbol_name_cmp_ftype): Renames
5400 symbol_name_match_p_ftype.
5401 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5402 la_get_symbol_name_match_p.
5403 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5404 ada_get_symbol_name_match_p. Update comment.
5405 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5406 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5407 Renames symbol_name_match_p. Update field type.
5408 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5409 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5410 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5411 "la_get_symbol_name_cmp" in comments.
5412 * language.c: Likewise.
5413
5414 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5415
5416 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5417 %eflags offset.
5418 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5419 (amd64_sol2_gregset32_reg_offs): Likewise.
5420
5421 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5422
5423 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5424 of the returned BFD is allocated by GDB.
5425
5426 2012-02-07 Tom Tromey <tromey@redhat.com>
5427
5428 PR python/12027:
5429 * python/python-internal.h (frame_object_type): Declare.
5430 * python/py-symbol.c (sympy_needs_frame): New function.
5431 (sympy_value): New function.
5432 (symbol_object_getset): Add "needs_frame".
5433 (symbol_object_methods): Add "value".
5434 * python/py-frame.c (frame_object_type): No longer static.
5435
5436 2012-02-07 Tom Tromey <tromey@redhat.com>
5437
5438 PR python/13599:
5439 * python/py-symbol.c (sympy_line): New function.
5440 (symbol_object_getset): Add "line".
5441
5442 2012-02-07 Tom Tromey <tromey@redhat.com>
5443
5444 * charset.c (find_charset_names): Check 'in' against NULL.
5445
5446 2012-02-06 Doug Evans <dje@google.com>
5447
5448 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5449 and fields.name members from char * to const char *. All uses updated.
5450 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5451 from char * to const char *. All uses updated.
5452 (type_name_no_tag): Update.
5453 (lookup_unsigned_typename, lookup_signed_typename): Update.
5454 * gdbtypes.c (type_name_no_tag): Change result type
5455 from char * to const char *. All callers updated.
5456 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5457 name parameter from char * to const char *.
5458 * symtab.h (struct cplus_specific): Change type of demangled_name
5459 member from char * to const char *. All uses updated.
5460 (struct general_symbol_info): Change type of name and
5461 mangled_lang.demangled_name members from char * to const char *.
5462 All uses updated.
5463 (symbol_get_demangled_name, symbol_natural_name): Update.
5464 (symbol_demangled_name, symbol_search_name): Update.
5465 * symtab.c (symbol_get_demangled_name): Change result type
5466 from char * to const char *. All callers updated.
5467 (symbol_natural_name, symbol_demangled_name): Ditto.
5468 (symbol_search_name): Ditto.
5469 (completion_list_add_name): Change type of symname,sym_text,
5470 text,word parameters from char * to const char *.
5471 (completion_list_objc_symbol): Change type of sym_text,
5472 text,word parameters from char * to const char *.
5473 * ada-lang.c (find_struct_field): Change type of name parameter
5474 from char * to const char *.
5475 (encoded_ordered_before): Similarly for N0,N1 parameters.
5476 (old_renaming_is_invisible): Similarly for function_name parameter.
5477 (ada_type_name): Change result type from char * to const char *.
5478 All callers updated.
5479 * ada-lang.h (ada_type_name): Update.
5480 * buildsym.c (hashname): Change type of name parameter
5481 from char * to const char *.
5482 * buildsym.h (hashname): Update.
5483 * dbxread.c (end_psymtab): Change type of include_list parameter
5484 from char ** to const char **.
5485 * dwarf2read.c (determine_prefix): Change result type
5486 from char * to const char *. All callers updated.
5487 * f-lang.c (find_common_for_function): Change type of name, funcname
5488 parameters from char * to const char *.
5489 * f-lang.c (find_common_for_function): Update.
5490 * f-valprint.c (list_all_visible_commons): Change type of funcname
5491 parameters from char * to const char *.
5492 * gdbarch.sh (static_transform_name): Change type of name parameter
5493 and result from char * to const char *.
5494 * gdbarch.c: Regenerate.
5495 * gdbarch.h: Regenerate.
5496 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5497 of name parameter from char * to const char *.
5498 * jv-lang.c (java_primitive_type_from_name): Ditto.
5499 (java_demangled_signature_length): Similarly for signature parameter.
5500 (java_demangled_signature_copy): Ditto.
5501 (java_demangle_type_signature): Ditto.
5502 * jv-lang.h (java_primitive_type_from_name): Update.
5503 (java_demangle_type_signature): Update.
5504 * objc-lang.c (specialcmp): Change type of a,b parameters
5505 from char * to const char *.
5506 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5507 from char * to const char *. All callers updated.
5508 * p-lang.h (is_pascal_string_type): Update.
5509 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5510 of name parameter from char * to const char *.
5511 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5512 * utils.c (fprintf_symbol_filtered): Ditto.
5513 * defs.h (fprintf_symbol_filtered): Update.
5514 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5515 * stabsread.h (end_psymtab): Update.
5516 * stack.c (find_frame_funname): Change type of funname parameter
5517 from char ** to const char **.
5518 * stack.h (find_frame_funname): Update.
5519 * typeprint.c (type_print): Change type of varstring parameter
5520 from char * to const char *.
5521 * value.h (type_print): Update.
5522 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5523 from char * to const char *. All callers updated.
5524 (xcoff_end_psymtab): Change type of include_list parameter
5525 from char ** to const char **. All callers updated.
5526 (swap_sym): Similarly for name parameter. All callers updated.
5527 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5528 Use xstrdup.
5529 (process_coff_symbol): Use xstrdup.
5530 * stabsread.c (stabs_method_name_from_physname): Renamed from
5531 update_method_name_from_physname. Change result type from void
5532 to char *. All callers updated.
5533 (read_member_functions): In has_destructor case, store name in objfile
5534 obstack instead of malloc space. In !has_stub case, fix mem leak.
5535
5536 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5537
5538 * configure: Rebuild.
5539 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5540 LDFLAGS.
5541
5542 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5543
5544 * configure.tgt (rl78-*-elf): New target.
5545 * rl78-tdep.c: New file.
5546
5547 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5548
5549 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5550 and continue the loop. Add QUIT statement.
5551
5552 2012-02-03 Tom Tromey <tromey@redhat.com>
5553
5554 PR gdb/13596:
5555 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5556 bfd_lookup_symbol_from_symtab.
5557 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5558 gdb_bfd_lookup_symbol_from_symtab.
5559
5560 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5561
5562 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5563 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5564 symbol. Add assertion that sym2 is never NULL.
5565
5566 2012-02-02 Doug Evans <dje@google.com>
5567
5568 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5569 "name" parameter to const char ** from char **. All callers updated.
5570 (find_pc_partial_function): Ditto.
5571 (cache_pc_function_name): Change type to const char * from char *.
5572 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5573 (find_pc_partial_function): Update.
5574 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5575 type of "name" parameter to const char * from char *.
5576 All uses updated.
5577 * arch-utils.c (generic_in_solib_return_trampoline): Change
5578 type of "name" parameter to const char * from char *.
5579 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5580 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5581 type of "name" parameter to const char * from char *.
5582 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5583 * gdbarch.c: Regenerate.
5584 * gdbarch.h: Regenerate.
5585 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5586 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5587 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5588 type of "name" parameter to const char * from char *.
5589 * skip.c (skip_function_pc): Ditto.
5590 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5591 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5592 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5593 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5594 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5595 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5596 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5597 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5598 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5599
5600 2012-02-02 Pedro Alves <palves@redhat.com>
5601
5602 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5603 the current inferior has no execution. Make sure the current
5604 remote process matches gdb's current inferior.
5605
5606 2012-02-02 Tom Tromey <tromey@redhat.com>
5607
5608 PR gdb/13405:
5609 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5610 read-only memory.
5611
5612 2012-02-02 Tom Tromey <tromey@redhat.com>
5613
5614 PR gdb/9307:
5615 * symtab.c (lookup_language_this): Set block_found.
5616
5617 2012-02-01 Tom Tromey <tromey@redhat.com>
5618
5619 PR gdb/13431:
5620 * jit.c (struct jit_inferior_data): Rewrite.
5621 (struct jit_objfile_data): New.
5622 (get_jit_objfile_data): New function.
5623 (add_objfile_entry): Update.
5624 (jit_read_descriptor): Return int. Replace descriptor_addr
5625 argument with inf_data. Update. Don't call error.
5626 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5627 descriptor here.
5628 (jit_inferior_init): Don't look up descriptor. Don't call error.
5629 (jit_reset_inferior_data_and_breakpoints)
5630 (jit_inferior_created_observer): Remove.
5631 (jit_inferior_exit_hook): Update.
5632 (jit_executable_changed_observer): Remove.
5633 (jit_event_handler): Update.
5634 (free_objfile_data): Reset inferior data if needed.
5635 (_initialize_jit): Update.
5636
5637 2012-02-01 Tom Tromey <tromey@redhat.com>
5638
5639 * jit.c (bfd_open_from_target_memory): Move higher in file.
5640
5641 2012-02-01 Tristan Gingold <gingold@adacore.com>
5642
5643 * libunwind-frame.c (libunwind_load): Display message if dlopen
5644 failed.
5645
5646 2012-02-01 Gary Benson <gbenson@redhat.com>
5647
5648 * symtab.h (symbol_found_callback_ftype): New typedef.
5649 (iterate_over_symbols): Use the above.
5650 * symtab.c (iterate_over_symbols): Likewise.
5651 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5652 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5653 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5654 (iterate_name_matcher): Document return values.
5655 (collect_one_symbol): Likewise.
5656 (collect_function_symbols): Likewise.
5657 (collect_symbols): Likewise.
5658
5659 2012-02-01 Tom Tromey <tromey@redhat.com>
5660
5661 * ada-lang.c (resolve_subexp): Update.
5662 (ada_lookup_symbol_list): Add 'full_search' argument.
5663 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5664 ada_lookup_symbol_list.
5665 (ada_lookup_encoded_symbol): Update.
5666 (get_var_value): Update.
5667 * ada-exp.y (block_lookup): Update.
5668 (write_var_or_type): Update.
5669 (write_name_assoc): Update.
5670 * ada-lang.h (ada_lookup_symbol_list): Update.
5671
5672 2012-01-31 Tom Tromey <tromey@redhat.com>
5673
5674 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5675 comment.
5676
5677 2012-01-31 Doug Evans <dje@google.com>
5678
5679 * symtab.h: Remove outdated comment.
5680 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
5681
5682 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5683
5684 Fix build error in Darwin port.
5685 * i386-darwin-nat.c: Include i386-nat.h.
5686
5687 2012-01-30 Tom Tromey <tromey@redhat.com>
5688
5689 PR breakpoints/13568:
5690 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5691 argument. Check for recursive includes.
5692 (dwarf_decode_macros): Create an include hash.
5693
5694 2012-01-30 Michael Eager <eager@eagercon.com>
5695
5696 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5697 * ppc-linux-tdep.c: Include glibc-tdep.h.
5698 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5699 (powerpc_linux_in_plt_stub): New function.
5700 (powerpc_linux_in_dynsym_resolve_code): New function.
5701 (ppc_skip_trampoline_code): New function.
5702 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5703 Use glibc_skip_solib_resolver.
5704
5705 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5706
5707 Code cleanup: Make 1440 bytes of data segment read-only.
5708 * arch-utils.c (endian_enum): Make it const char *const [].
5709 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5710 Likewise.
5711 * breakpoint.c (always_inserted_enums): Likewise.
5712 * cli/cli-cmds.c (script_ext_enums): Likewise.
5713 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5714 enumlist parameter const char *const *.
5715 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5716 const char *const *.
5717 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5718 parameter const char *const *.
5719 * cris-tdep.c (cris_modes): Make it const char *const [].
5720 * filesystem.c (target_file_system_kinds): Likewise.
5721 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5722 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5723 (can_use_displaced_stepping_enum, scheduler_enums)
5724 (exec_direction_names): Likewise.
5725 * language.c (_initialize_language): Make the type_or_range_names and
5726 case_sensitive_names variables const char *const [].
5727 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5728 * python/python.c (python_excp_enums): Likewise.
5729 * remote.c (interrupt_sequence_modes): Likewise.
5730 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5731 * serial.c (logbase_enums): Likewise.
5732 * sh-tdep.c (sh_cc_enum): Likewise.
5733 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5734 Likewise.
5735 * symtab.c (multiple_symbols_modes): Likewise.
5736 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5737 Likewise.
5738 * utils.c (internal_problem_modes): Likewise.
5739
5740 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5741
5742 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5743 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5744 result.
5745
5746 2012-01-27 Doug Evans <dje@google.com>
5747
5748 * configure.ac (with_python): Fix absolute path handling for win32.
5749 * configure: Regenerate.
5750
5751 2012-01-26 Doug Evans <dje@google.com>
5752
5753 * symtab.c: Whitespace cleanup, no code changes.
5754
5755 * symtab.c (lookup_symbol_in_language): Improve comment.
5756 (lookup_symbol_aux): Fix comment.
5757
5758 * psymtab.c (add_psymbol_to_list): Result is now "void".
5759 * psympriv.h (add_psymbol_to_list): Update.
5760
5761 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5762
5763 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5764
5765 Do not open script filenames twice.
5766 * cli/cli-cmds.c (source_script_from_stream): Pass to
5767 source_python_script also STREAM.
5768 * python/py-auto-load.c (source_section_scripts): Pass to
5769 source_python_script_for_objfile also STREAM.
5770 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5771 also INPUT.
5772 * python/python-internal.h (source_python_script_for_objfile): New
5773 parameter file, rename parameter file to filename.
5774 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5775 instead if !_WIN32. Update the function comment.
5776 (source_python_script, source_python_script_for_objfile)
5777 (source_python_script): New parameter file, rename parameter file to
5778 filename. Pass FILENAME to python_run_simple_file.
5779 * python/python.h (source_python_script): New parameter file, rename
5780 parameter file to filename.
5781
5782 2012-01-26 Pedro Alves <palves@redhat.com>
5783
5784 * corelow.c (core_has_fake_pid): Delete.
5785 (core_close): Delete references to `core_has_fake_pid'.
5786 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5787 (core_open): Delete references to `core_has_fake_pid'.
5788 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5789 the removed global.
5790
5791 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5792
5793 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5794 Remove language parameter from name_matcher. Adjust the comment.
5795 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5796 Remove language parameter.
5797 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5798 * linespec.c (iterate_name_matcher): Likewise.
5799 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5800 name_matcher. Adjust call accordingly.
5801 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5802 (maintenance_check_symtabs): Adjust type of parameter "fun".
5803 * psymtab.h (maintenance_check_symtabs): Likewise.
5804
5805 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5806
5807 * language.h (symbol_name_match_p_ftype): New typedef.
5808 (struct language_defn): Replace field la_symbol_name_compare
5809 by la_get_symbol_name_match_p.
5810 * ada-lang.c (ada_get_symbol_name_match_p): New function.
5811 (ada_language_defn): Use it.
5812 * linespec.c (struct symbol_matcher_data): New type.
5813 (iterate_name_matcher): Rewrite.
5814 (iterate_over_all_matching_symtabs): Pass a pointer to
5815 a symbol_matcher_data struct to expand_symtabs_matching
5816 instead of just the lookup name.
5817 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5818 opencl-lang.c, p-lang.c, language.c: Delete field
5819 la_symbol_name_compare, and replace by NULL for new field
5820 la_get_symbol_name_match_p.
5821 * symfile.h (struct quick_symbol_functions): Update comment.
5822
5823 2012-01-25 Tom Tromey <tromey@redhat.com>
5824
5825 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
5826 dereferencing.
5827
5828 2012-01-24 Tom Tromey <tromey@redhat.com>
5829
5830 PR symtab/12406:
5831 * solib.c (update_solib_list): Update the program space's
5832 added_solibs and deleted_solibs fields.
5833 * progspace.h (struct program_space) <added_solibs,
5834 deleted_solibs>: New fields.
5835 (clear_program_space_solib_cache): Declare.
5836 * progspace.c (release_program_space): Call
5837 clear_program_space_solib_cache.
5838 (clear_program_space_solib_cache): New function.
5839 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
5840 bpstat_stop_status. Use handle_solib_event.
5841 * breakpoint.c: Include gdb_regex.h.
5842 (print_solib_event): New function.
5843 (bpstat_print): Use print_solib_event.
5844 (bpstat_stop_status): Add special case for bp_shlib_event.
5845 (handle_solib_event): New function.
5846 (bpstat_what): Use handle_solib_event.
5847 (struct solib_catchpoint): New.
5848 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
5849 (breakpoint_hit_catch_solib, check_status_catch_solib)
5850 (print_it_catch_solib, print_one_catch_solib)
5851 (print_mention_catch_solib, print_recreate_catch_solib): New
5852 functions.
5853 (catch_solib_breakpoint_ops): New global.
5854 (catch_load_or_unload, catch_load_command_1)
5855 (catch_unload_command_1): New functions.
5856 (internal_bkpt_check_status): Add special case for
5857 bp_shlib_event.
5858 (internal_bkpt_print_it): Use print_solib_event.
5859 (initialize_breakpoint_ops): Initialize
5860 catch_solib_breakpoint_ops.
5861 (_initialize_breakpoint): Register "catch load" and "catch
5862 unload".
5863 * breakpoint.h (handle_solib_event): Declare.
5864 * NEWS: Add entry for "catch load" and "catch unload".
5865
5866 2012-01-24 Tom Tromey <tromey@redhat.com>
5867
5868 * ada-lang.c: Include gdb_vecs.h.
5869 * charset.c: Include gdb_vecs.h.
5870 * tracepoint.h: Include gdb_vecs.h.
5871 * gdb_vecs.h: New file.
5872
5873 2012-01-24 Pedro Alves <pedro@codesourcery.com>
5874
5875 * breakpoint.c (breakpoint_hit_catch_fork)
5876 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
5877 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
5878 * infrun.c (inferior_has_forked, inferior_has_vforked)
5879 (inferior_has_execd, inferior_has_called_syscall): Delete.
5880 (handle_syscall_event): Get syscall_number from the execution
5881 control state's wait status.
5882 (wait_for_inferior): Don't clear syscall_number.
5883
5884 2012-01-24 Pedro Alves <palves@redhat.com>
5885
5886 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
5887 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
5888 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
5889 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
5890 `ws' parameter.
5891 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
5892 false for events other than TARGET_SIGNAL_TRAP.
5893 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
5894 Add `ws' parameter.
5895 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
5896 events other than TARGET_SIGNAL_TRAP.
5897 (tracepoint_breakpoint_hit): Add `ws' parameter.
5898 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
5899 parameter.
5900 (bpstat_stop_status): Same.
5901 (pc_at_non_inline_function): Same.
5902 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
5903 to pass the current event's waitstatus to bpstat_stop_status
5904 and pc_at_non_inline_function.
5905
5906 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5907
5908 Code cleanup.
5909 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
5910 Update the function comment for it.
5911 (source_script_with_search): Call make_cleanup_fclose for STREAM.
5912 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
5913 for STREAM.
5914
5915 2012-01-24 Pedro Alves <palves@redhat.com>
5916
5917 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
5918 outside `bs->stop' block.
5919 (bpstat_what): Rework bp_shlib_event handling.
5920 (internal_bkpt_check_status): If the breakpoint is a
5921 bp_shlib_event, then set bs->stop and bs->print if
5922 stop_on_solib_events is set.
5923
5924 2012-01-24 Gary Benson <gbenson@redhat.com>
5925
5926 Delete #if 0'd out code.
5927 * stack.c (print_frame_label_vars): Remove.
5928 (catch_info): Likewise.
5929 (_initialize_stack): Remove "info catch" command.
5930 * NEWS: Mention the above.
5931
5932 2012-01-24 Pedro Alves <palves@redhat.com>
5933
5934 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
5935 it.
5936 (remote_notice_new_inferior): If the remote end doesn't support
5937 the multiprocess extensions, then the PID is fake.
5938 (add_current_inferior_and_thread): New.
5939 (remote_start_remote): Use it.
5940 (extended_remote_attach_1): Adjust.
5941 (extended_remote_create_inferior_1): Use
5942 add_current_inferior_and_thread.
5943
5944 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5945
5946 Fix watchpoints to be specific for each inferior.
5947 * breakpoint.c (watchpoint_in_thread_scope): Verify also
5948 current_program_space.
5949 * i386-nat.c (i386_inferior_data_cleanup): New.
5950 (i386_inferior_data_get): Replace variable inf_data_local by an
5951 inferior_data call.
5952 (i386_use_watchpoints): Initialize i386_inferior_data.
5953 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
5954 specific iterate_over_lwps.
5955
5956 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5957
5958 Fix watchpoints across inferior fork.
5959 * amd64-linux-nat.c (update_debug_registers_callback): Update the
5960 comment for linux_nat_iterate_watchpoint_lwps.
5961 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5962 linux_nat_iterate_watchpoint_lwps.
5963 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
5964 * i386-linux-nat.c (update_debug_registers_callback): Update the
5965 comment for linux_nat_iterate_watchpoint_lwps.
5966 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5967 linux_nat_iterate_watchpoint_lwps.
5968 (i386_linux_prepare_to_resume): New comment on Linux kernel.
5969 * i386-nat.c: Include inferior.h.
5970 (dr_mirror): Remove.
5971 (i386_inferior_data, struct i386_inferior_data)
5972 (i386_inferior_data_get): New.
5973 (i386_debug_reg_state): Use i386_inferior_data_get.
5974 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
5975 (i386_insert_watchpoint, i386_remove_watchpoint)
5976 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5977 (i386_remove_hw_breakpoint): New variable state, use
5978 i386_debug_reg_state instead of DR_MIRROR.
5979 * linux-nat.c (delete_lwp): New declaration.
5980 (num_lwps): Move here from downwards.
5981 (delete_lwp_cleanup): New.
5982 (linux_child_follow_fork): Create new child_lp, call
5983 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
5984 PTRACE_DETACH.
5985 (num_lwps): Move upwards.
5986 (linux_nat_iterate_watchpoint_lwps): New.
5987 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
5988 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
5989
5990 2012-01-24 Joel Brobecker <brobecker@adacore.com>
5991
5992 GDB 7.4 released.
5993
5994 2012-01-23 Pedro Alves <palves@redhat.com>
5995
5996 * top.c (caution): Rename to ...
5997 (confirm): ... this.
5998 (show_caution): Rename to ...
5999 (show_confirm): ... this.
6000 (quit_cover): Adjust.
6001 (init_main): Adjust.
6002 * top.h (caution): Rename to ...
6003 (confirm): ... this.
6004 * utils.c (internal_vproblem, defaulted_query): Adjust.
6005
6006 2012-01-23 Pedro Alves <palves@redhat.com>
6007
6008 * top.c (caution): Update comment.
6009 (execute_command): Don't consider the current value of `caution'.
6010
6011 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6012
6013 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6014
6015 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6016
6017 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6018 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6019 * target.c (target_fileio_pwrite): Remove buffer address from
6020 debug output.
6021 (target_fileio_pread): Likewise.
6022
6023 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6024
6025 * NEWS: Document remote "info proc" and "generate-core-file".
6026
6027 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6028
6029 * gdbarch.sh (find_memory_regions): New callback.
6030 * gdbarch.c, gdbarch.h: Regenerate.
6031
6032 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6033 callback before falling back to target method.
6034
6035 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6036 (linux_target_install_ops): No longer install it.
6037
6038 * linux-tdep.c (linux_find_memory_regions): New function.
6039 (linux_init_abi): Install it.
6040
6041 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6042
6043 * gdbarch.sh (make_corefile_notes): New architecture callback.
6044 * gdbarch.c: Regenerate.
6045 * gdbarch.h: Likewise.
6046
6047 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6048 before target_make_corefile_notes. If NULL is returned, the
6049 target does not support core file generation.
6050
6051 * linux-nat.c: Include "linux-tdep.h".
6052 (find_signalled_thread, find_stop_signal): Remove.
6053 (linux_nat_do_thread_registers): Likewise.
6054 (struct linux_nat_corefile_thread_data): Likewise.
6055 (linux_nat_corefile_thread_callback): Likewise.
6056 (iterate_over_spus): Likewise.
6057 (struct linux_spu_corefile_data): Likewise.
6058 (linux_spu_corefile_callback): Likewise.
6059 (linux_spu_make_corefile_notes): Likewise.
6060 (linux_nat_collect_thread_registers): New function.
6061 (linux_nat_make_corefile_notes): Replace contents by call to
6062 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6063 as native-only callback.
6064
6065 * linux-tdep.h: Include "bfd.h".
6066 (struct regcache): Add forward declaration.
6067 (linux_collect_thread_registers_ftype): New typedef.
6068 (linux_make_corefile_notes): Add prototype.
6069 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6070 "regset.h", and "elf-bfd.h".
6071 (find_signalled_thread, find_stop_signal): New functions.
6072 (linux_spu_make_corefile_notes): Likewise.
6073 (linux_collect_thread_registers): Likewise.
6074 (struct linux_corefile_thread_data): New data structure.
6075 (linux_corefile_thread_callback): New funcion.
6076 (linux_make_corefile_notes): Likewise.
6077 (linux_make_corefile_notes_1): Likewise.
6078 (linux_init_abi): Install it.
6079
6080 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6081
6082 * gdbarch.sh (info_proc): New callback.
6083 * gdbarch.c, gdbarch.h: Regenerate.
6084
6085 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6086 before falling back to the target info_proc callback.
6087
6088 * linux-nat.c: Do not include "cli/cli-utils.h".
6089 (linux_nat_info_proc): Remove.
6090 (linux_target_install_ops): No longer install it.
6091
6092 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6093 (read_mapping): New function.
6094 (linux_info_proc): Likewise.
6095 (linux_init_abi): Install it.
6096
6097 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6098
6099 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6100 * infcmd.c: (info_proc_cmd_1): New function.
6101 (info_proc_cmd): New function, moved here from equivalent routine
6102 orignally in linux-nat.c.
6103 (info_proc_cmd_mappings): Likewise.
6104 (info_proc_cmd_stat): Likewise.
6105 (info_proc_cmd_status): Likewise.
6106 (info_proc_cmd_cwd): Likewise.
6107 (info_proc_cmd_cmdline): Likewise.
6108 (info_proc_cmd_exe): Likewise.
6109 (info_proc_cmd_all): Likewise.
6110 (_initialize_infcmd): Install "info proc" command and subcommands.
6111
6112 * target.h (struct target_ops): Add to_info_proc.
6113 (target_info_proc): Add prototype.
6114 * target.c (target_info_proc): New function.
6115
6116 * procfs.c (procfs_info_proc): Add prototype.
6117 (info_proc_cmd): Rename into ...
6118 (procfs_info_proc): ... this. Update argument types as appropriate
6119 for a to_info_proc implementation. Handle "what" argument.
6120 (procfs_target): Install procfs_info_proc.
6121 (_initialize_procfs): No longer install "info proc" command.
6122
6123 * linux-nat.c: (enum info_proc_what): Remove.
6124 (linux_nat_info_proc_cmd_1): Rename into ...
6125 (linux_nat_info_proc): ... this. Update argument types as appropriate
6126 for a to_info_proc implementation.
6127 (linux_nat_info_proc_cmd): Remove.
6128 (linux_nat_info_proc_cmd_mappings): Likewise.
6129 (linux_nat_info_proc_cmd_stat): Likewise.
6130 (linux_nat_info_proc_cmd_status): Likewise.
6131 (linux_nat_info_proc_cmd_cwd): Likewise.
6132 (linux_nat_info_proc_cmd_cmdline): Likewise.
6133 (linux_nat_info_proc_cmd_exe): Likewise.
6134 (linux_nat_info_proc_cmd_all): Likewise.
6135 (linux_target_install_ops): Install linux_nat_info_proc.
6136 (_initialize_linux_nat): No longer install "info proc" command
6137 and subcommands.
6138
6139 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6140
6141 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6142 * config.in, configure: Regenerate.
6143
6144 * target.h (struct target_ops): Add to_fileio_readlink.
6145 (target_fileio_readlink): Add prototype.
6146 * target.c (target_fileio_readlink): New function.
6147
6148 * inf-child.c: Conditionally include <sys/param.h>.
6149 (inf_child_fileio_readlink): New function.
6150 (inf_child_target): Install it.
6151
6152 * remote.c (PACKET_vFile_readlink): New enum value.
6153 (remote_hostio_readlink): New function.
6154 (init_remote_ops): Install it.
6155 (_initialize_remote): Handle vFile:readlink packet type.
6156
6157 2012-01-20 Pedro Alves <palves@redhat.com>
6158 Ulrich Weigand <ulrich.weigand@linaro.org>
6159
6160 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6161 * config.in, configure: Regenerate.
6162
6163 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6164 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6165 (target_fileio_open): Add prototype.
6166 (target_fileio_pwrite): Likewise.
6167 (target_fileio_pread): Likewise.
6168 (target_fileio_close): Likewise.
6169 (target_fileio_unlink): Likewise.
6170 (target_fileio_read_alloc): Likewise.
6171 (target_fileio_read_stralloc): Likewise.
6172
6173 * target.c: Include "gdb/fileio.h".
6174 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6175 (default_fileio_target): New function.
6176 (target_fileio_open): Likewise.
6177 (target_fileio_pwrite): Likewise.
6178 (target_fileio_pread): Likewise.
6179 (target_fileio_close): Likewise.
6180 (target_fileio_unlink): Likewise.
6181 (target_fileio_close_cleanup): Likewise.
6182 (target_fileio_read_alloc_1): Likewise.
6183 (target_fileio_read_alloc): Likewise.
6184 (target_fileio_read_stralloc): Likewise.
6185
6186 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6187 <fcntl.h>, and <unistd.h>.
6188 (inf_child_fileio_open_flags_to_host): New function.
6189 (inf_child_errno_to_fileio_error): Likewise.
6190 (inf_child_fileio_open): Likewise.
6191 (inf_child_fileio_pwrite): Likewise.
6192 (inf_child_fileio_pread): Likewise.
6193 (inf_child_fileio_close): Likewise.
6194 (inf_child_fileio_unlink): Likewise.
6195 (inf_child_target): Install to_fileio routines.
6196
6197 * remote.c (init_remote_ops): Install to_fileio routines.
6198
6199 2012-01-20 Pedro Alves <palves@redhat.com>
6200 Ulrich Weigand <ulrich.weigand@linaro.org>
6201
6202 * remote.c (remote_multi_process_p): Only check for multi-process
6203 protocol feature, do not check for extended protocol.
6204 (remote_supports_multi_process): Check for extended protocol here.
6205 (set_general_process): Likewise.
6206 (extended_remote_kill): Likewise.
6207 (remote_pid_to_str): Likewise.
6208 (remote_query_supported): Always query multiprocess mode.
6209
6210 2012-01-20 Pedro Alves <palves@redhat.com>
6211 Ulrich Weigand <ulrich.weigand@linaro.org>
6212
6213 * inferior.h (struct inferior): Add fake_pid_p.
6214 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6215 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6216 magic_null_ptid since the remote side doesn't provide a real PID.
6217
6218 2012-01-19 Tom Tromey <tromey@redhat.com>
6219
6220 * NEWS: Combine the two Python sections.
6221
6222 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6223
6224 * target.h (target_close): Update comment on the target's unpush state.
6225
6226 2012-01-19 Pedro Alves <palves@redhat.com>
6227
6228 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6229 linux_nat_async directly instead of going through the target
6230 vector.
6231 * target.c (unpush_target): Close target after unpushing it, not
6232 before.
6233
6234 2012-01-19 Gary Benson <gbenson@redhat.com>
6235
6236 * mdebugread.c (sort_blocks): Replace integer constants with ones
6237 derived from FIRST_LOCAL_BLOCK.
6238
6239 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6240 Jan Kratochvil <jan.kratochvil@redhat.com>
6241
6242 PR gdb/9538
6243 * symfile.c (find_separate_debug_file): New function.
6244 (terminate_after_last_dir_separator): Likewise.
6245 (find_separate_debug_file_by_debuglink): Also try realpath.
6246 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6247 * configure: Regenerate.
6248 * config.in: Regenerate.
6249
6250 2012-01-18 Doug Evans <dje@google.com>
6251
6252 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6253 (main.o): Remove rule.
6254 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6255 (--with-sysroot): Rewrite.
6256 * configure: Regenerate.
6257 * config.in: Regenerate.
6258
6259 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6260
6261 * parse.c (initialize_expout): New function.
6262 (reallocate_expout): Likewise.
6263 (parse_exp_in_context): Use `initialize_expout' and
6264 `reallocate_expout' when appropriate.
6265
6266 2012-01-18 Pedro Alves <palves@redhat.com>
6267
6268 * record.c (struct record_breakpoint, record_breakpoint_p)
6269 (record_breakpoints): New.
6270 (record_insert_breakpoint, record_remove_breakpoint): Manage
6271 record breakpoints list. Only remove breakpoints from the
6272 inferior if they had been inserted there in the first place.
6273
6274 2012-01-17 Doug Evans <dje@google.com>
6275
6276 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6277 if we know we don't have a file name to look for.
6278
6279 2012-01-17 Pedro Alves <palves@redhat.com>
6280
6281 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6282 the frame's stop reason is UNWIND_UNAVAILABLE.
6283
6284 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6285
6286 Fix compilation error.
6287 * m2-exp.y (yyerror): Use ANSI C prototype.
6288
6289 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6290
6291 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6292 (growbuf_by_size): Likewise.
6293 (yyerror): Likewise.
6294 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6295 (modblock): Remove variable (was #if 0'ed).
6296 (parse_number): Convert prototype from K&R to ANSI C.
6297 (yyerror): Likewise.
6298 * objc-exp.y (parse_number): Likewise.
6299 (yyerror): Likewise.
6300 (yylex): Remove #if 0'ed code.
6301 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6302 (yyerror): Likewise.
6303
6304 2012-01-16 Tom Tromey <tromey@redhat.com>
6305
6306 * NEWS: Add item.
6307 * symtab.h (compare_filenames_for_search): Declare.
6308 * symtab.c (compare_filenames_for_search): New function.
6309 (iterate_over_some_symtabs): Use it.
6310 * symfile.h (struct quick_symbol_functions)
6311 <map_symtabs_matching_filename>: Change spec.
6312 * psymtab.c (partial_map_symtabs_matching_filename): Use
6313 compare_filenames_for_search. Update for new spec.
6314 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6315 compare_filenames_for_search. Update for new spec.
6316 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6317
6318 2012-01-16 Tom Tromey <tromey@redhat.com>
6319
6320 PR python/13281:
6321 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6322 (struct main_type) <flag_flag_enum>: New field.
6323 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6324 * NEWS: Add entries.
6325 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6326 enums.
6327 * python/lib/gdb/printing.py (_EnumInstance): New class.
6328 (FlagEnumerationPrinter): Likewise.
6329
6330 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6331
6332 * breakpoint.c (create_sals_from_address_default): New function.
6333 (create_breakpoints_sal_default): Likewise.
6334 (decode_linespec_default): Likewise.
6335 (is_marker_spec): Removed.
6336 (strace_marker_p): New function.
6337 (init_breakpoint_sal): Using `strace_marker_p' instead of
6338 `is_marker_spec'.
6339 (create_breakpoint): Call method `create_sals_from_address' from
6340 breakpoint_ops, replacing code that created SALs conditionally
6341 on the type of the breakpoint. Call method `create_breakpoints_sal',
6342 replacing code that created breakpoints conditionally on the type
6343 wanted.
6344 (base_breakpoint_create_sals_from_address): New function.
6345 (base_breakpoint_create_breakpoints_sal): Likewise.
6346 (base_breakpoint_decode_linespec): Likewise.
6347 (base_breakpoint_ops): Add methods
6348 `base_breakpoint_create_sals_from_address',
6349 `base_breakpoint_create_breakpoints_sal' and
6350 `base_breakpoint_decode_linespec'.
6351 (bkpt_create_sals_from_address): New function.
6352 (bkpt_create_breakpoints_sal): Likewise.
6353 (bkpt_decode_linespec): Likewise.
6354 (tracepoint_create_sals_from_address): Likewise.
6355 (tracepoint_create_breakpoints_sal): Likewise.
6356 (tracepoint_decode_linespec): Likewise.
6357 (strace_marker_create_sals_from_address): Likewise.
6358 (strace_marker_create_breakpoints_sal): Likewise.
6359 (strace_marker_decode_linespec): Likewise.
6360 (strace_marker_breakpoint_ops): New variable.
6361 (addr_string_to_sals): Remove `marker_spec'. Call method
6362 `decode_linespec' from breakpoint_ops, replacing code that decoded
6363 an address string into a SAL. Use `strace_marker_p' instead of
6364 `marker_spec'.
6365 (strace_command): Decide whether we are dealing with a static
6366 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6367 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6368 * breakpoint.h (linespec_result, linespec_sals): New forward
6369 declarations.
6370 (breakpoint_ops) <create_sals_from_address>,
6371 <create_breakpoints_sal>, <decode_linespec>: New methods.
6372
6373 2012-01-14 Doug Evans <dje@google.com>
6374
6375 * NEWS: Update text for "maint set python print-stack".
6376 It is deprecated in gdb 7.4 and deleted in 7.5.
6377
6378 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6379
6380 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6381 including curses.h.
6382
6383 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6384
6385 * configure: Regenerate.
6386 * config.in: Regenerate.
6387
6388 2012-01-12 Keith Seitz <keiths@redhat.com>
6389
6390 PR mi/10586
6391 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6392 (ANONYMOUS_UNION_NAME): Define.
6393 (is_path_expr_parent): New function.
6394 (get_path_expr_parent): New function.
6395 (is_anonymous_child): New function.
6396 (create_child_with_value): If the child is anonymous and without
6397 a name, assign an object name to it.
6398 (c_describe_child): Use get_path_expr_parent to determine
6399 the parent expression.
6400 If there field represents an anonymous struct or union and
6401 has no name, set an appropriate display name and expression.
6402 (cplus_describe_child): Likewise.
6403
6404 2012-01-12 Pedro Alves <palves@redhat.com>
6405
6406 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6407 available when %ebp is found to be zero (outermost).
6408
6409 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6410
6411 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6412 an internal gdb_static_assert.
6413 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6414
6415 2012-01-11 Tom Tromey <tromey@redhat.com>
6416
6417 PR gdb/9598:
6418 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6419 catch" and "catch throw".
6420
6421 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6422
6423 * blockframe.c (block_innermost_frame): Start search from selected
6424 frame, if present, or otherwise the current frame.
6425
6426 * c-exp.y (variable): Update innermost_block for
6427 'block COLONCOLON NAME' clause.
6428 * m2-exp.y (variable): Ditto.
6429 * objc-exp.y (variable): Ditto.
6430
6431 2012-01-10 Tom Tromey <tromey@redhat.com>
6432
6433 PR python/13199:
6434 * python/python.c (finish_python_initialization): Set sys.argv.
6435
6436 2012-01-10 Doug Evans <dje@google.com>
6437
6438 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6439 "want_line_info". All callers updated.
6440 (dwarf_decode_lines_1): New function.
6441 (handle_DW_AT_stmt_list): Add function comment.
6442 New arg "want_line_info". All callers updated.
6443 (read_file_scope,read_type_unit_scope): Move comment from
6444 handle_DW_AT_stmt_list to here.
6445
6446 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6447
6448 Fix regression after libiberty/ update for GCC PR 6057 and others.
6449 * c-exp.y (operator) <OPERATOR DELETE>
6450 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6451 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6452 (make_builtin_type, make_name): New variable i, add gdb_assert.
6453 (operator) <OPERATOR NEW>: Update ARGS to 3.
6454 (operator) <OPERATOR DELETE>: Add trailing space.
6455 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6456 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6457 * cp-support.c (cp_canonicalize_string): Check NULL from
6458 cp_comp_to_string, call warning and return.
6459
6460 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6461
6462 Fix duplicate .o files after omitting libbfd.a.
6463 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6464 (SFILES): Add corelow.c.
6465 (COMMON_OBS): Add corelow.o.
6466 (ALLDEPFILES): Remove corelow.c.
6467 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6468 * config/alpha/alpha-osf3.mh: Likewise.
6469 * config/alpha/fbsd.mh: Likewise.
6470 * config/arm/nbsdaout.mh: Likewise.
6471 * config/arm/nbsdelf.mh: Likewise.
6472 * config/i386/i386gnu.mh: Likewise.
6473 * config/ia64/hpux.mh: Likewise.
6474 * config/ia64/linux.mh: Likewise.
6475 * config/m32r/linux.mh: Likewise.
6476 * config/m68k/linux.mh: Likewise.
6477 * config/mips/irix5.mh: Likewise.
6478 * config/mips/irix6.mh: Likewise.
6479 * config/pa/hpux.mh: Likewise.
6480 * config/pa/linux.mh: Likewise.
6481 * config/powerpc/aix.mh: Likewise.
6482 * config/sparc/linux.mh: Likewise.
6483 * config/sparc/linux64.mh: Likewise.
6484 * config/sparc/sol2.mh: Likewise.
6485 * config/vax/vax.mh: Likewise.
6486 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6487 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6488 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6489 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6490 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6491 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6492 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6493 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6494 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6495 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6496 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6497 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6498 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6499 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6500 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6501 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6502 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6503 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6504 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6505 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6506 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6507 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6508 corelow.o from gdb_target_obs.
6509 * corefile.c (core_target): Update the comment on NULL value.
6510 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6511 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6512 MATCHES. Drop YUMMY set on NULL.
6513 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6514 reclaim CORE_DATA if it is already NULL.
6515
6516 2012-01-09 Doug Evans <dje@google.com>
6517
6518 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6519 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6520
6521 2012-01-09 Keith Seitz <keiths@redhat.com>
6522
6523 * breakpoint.c (wrapper.h): Don't include.
6524
6525 2012-01-09 Keith Seitz <keiths@redhat.com>
6526
6527 * Makefile.in (SFILES): Remove wrapper.c.
6528 (HFILES_NO_SRCDIR): Remove wrapper.h.
6529 (COMMON_OBS): Remove wrapper.o.
6530 * cli/cli-interp.c: Don't inlude wrapper.h.
6531 * corelow.c: Likewise.
6532 (core_open): Replace gdb_target_find_new_threads with
6533 TRY_CATCH around target_find_new_threads.
6534 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6535 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6536 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6537 evaluate_expression.
6538 (varobj_set_value): Likewise for evaluate_expression and
6539 value_assign.
6540 (install_new_variable): Likewise for value_fetch_lazy.
6541 (adjust_value_for_child_access): Likewise for value_ind.
6542 (c_describe_child): Likewise for value_subscript and
6543 value_ind.
6544 (c_value_of_root): Likewise for evaluate_expression.
6545 * wrapper.c: Remove.
6546 * wrapper.h: Remove.
6547
6548 2012-01-09 Doug Evans <dje@google.com>
6549
6550 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6551 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6552 "abfd" args with "section". All callers updated.
6553 Error checking code moved ...
6554 (error_check_comp_unit_head): ... here. New function.
6555 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6556 Delete arg "abfd". New arg "type_offset". All callers updated.
6557 (create_debug_types_hash_table): Simplify by using
6558 read_and_check_type_unit_head.
6559
6560 * parser-defs.h (namecopy): Delete.
6561 * parse.c (namecopy, namecopy_size): Move into copy_name.
6562
6563 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 Partially fix duplicate .o files after omitting libbfd.a.
6566 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6567 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6568 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6569 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6570 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6571 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6572 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6573
6574 2012-01-09 Pedro Alves <palves@redhat.com>
6575
6576 * MAINTAINERS: Update my email address.
6577
6578 2012-01-08 Doug Evans <dje@google.com>
6579
6580 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6581 n_type_units. Rename type_comp_units to all_type_units.
6582 All uses updated.
6583 (add_signatured_type_cu_to_table): Renamed from
6584 add_signatured_type_cu_to_list. All callers updated.
6585
6586 * gdbtypes.h (struct cplus_struct_type): Delete member
6587 nfn_fields_total. All uses removed.
6588
6589 2012-01-06 Doug Evans <dje@google.com>
6590
6591 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6592 to top of file.
6593 (dwarf2_find_comp_unit): Delete.
6594 (process_psymtab_comp_unit): Make result "void".
6595 Delete args buffer, info_ptr, buffer_size, and replace with
6596 "section". All callers updated.
6597 (dwarf2_build_psymtabs_hard): Simplify.
6598
6599 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6600 Thiago Jung Bauermann <bauerman@br.ibm.com>
6601
6602 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6603 before `struct gdb_exception'.
6604 * breakpoint.c (update_global_location_list_nothrow)
6605 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6606 * cp-abi.c (value_rtti_type): Likewise.
6607 * cp-support.c (cp_validate_operator): Likewise.
6608 * infrun.c (insert_exception_resume_breakpoint)
6609 (check_exception_resume, keep_going): Likewise.
6610 * mi-interp.c (mi_breakpoint_created)
6611 (mi_breakpoint_modified): Likewise.
6612 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6613 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6614 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6615
6616 2012-01-05 Doug Evans <dje@google.com>
6617
6618 * dwarf2read.c (statement_prologue): Delete, unused.
6619
6620 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6621 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6622
6623 * dwarf2read.c (comp_unit_header): Delete, unused.
6624
6625 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6626
6627 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6628 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6629
6630 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6631
6632 * infrun.c (normal_stop): Don't skip calling the normal_stop
6633 observers if the thread was doing a multi-step, but stopped for
6634 some reason other than stepping.
6635
6636 2012-01-05 Pedro Alves <alves.ped@gmail.com>
6637
6638 * cli/cli-decode.h: Add comments.
6639 (CMD_LIST_AMBIGUOUS): Moved to command.h
6640 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6641 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6642 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6643 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6644 (add_com, add_com_alias, add_info, add_info_alias)
6645 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6646 declarations.
6647 * command.h: Add and adjust comments.
6648 (CMD_LIST_AMBIGUOUS): Moved here.
6649 (help_cmd, help_cmd_list): Delete declarations.
6650
6651 2012-01-04 Doug Evans <dje@google.com>
6652
6653 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6654 All callers updated.
6655 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6656 Replace all arguments with "per_cu". All callers updated.
6657
6658 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6659
6660 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6661 New arg "per_cu". All callers updated.
6662
6663 Delete #if 0'd out code.
6664 * language.c (binop_result_type): Delete.
6665 (simple_type, ordered_type, same_type, integral_type): Delete.
6666 (numeric_type, character_type, string_type, boolean_type): Delete.
6667 (float_type, structured_type): Delete.
6668 * language.h: Update.
6669
6670 2012-01-04 Tom Tromey <tromey@redhat.com>
6671
6672 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6673
6674 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6675
6676 * corefile.c (close_exec_file): Delete.
6677 (reopen_exec_file): Remove commented out code that seems related
6678 to close_exec_file, which is being deleted here.
6679 * inferior.h (close_exec_file): Delete.
6680 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6681
6682 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6683
6684 * ada-lang.c: #include "cli/cli-utils.h".
6685 (get_selections): Use skip_spaces.
6686 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6687 (catch_ada_exception_command_split): Use skip_spaces.
6688 (ada_decode_assert_location): Likewise.
6689
6690 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6691
6692 * linespec.c (decode_line_internal): Check for C++ or Java
6693 compound constructs only if the current language is C, C++
6694 or Java.
6695
6696 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6697
6698 Revert:
6699 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 Joel Brobecker <brobecker@adacore.com>
6701 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6702 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6703 3 times.
6704 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6705 fall through into AT_ENTRY_POINT.
6706 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6707 DUMMY_ADDR with it.
6708 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6709 PPC_INSN_SIZE skip to 3 times.
6710
6711 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6712
6713 * linespec.c (add_minsym): Preserve function descriptors.
6714
6715 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6716
6717 * breakpoint.c (all_locations_are_pending): Consider locations
6718 in program spaces executing during startup pending as well.
6719
6720 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6721
6722 Copyright year update in most files of the GDB Project.
6723
6724 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6725
6726 * copyright.sh: Delete.
6727 * copyright.py: Rewrite.
6728
6729 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6730
6731 * gnulib/extra/update-copyright: New file, imported from gnulib.
6732
6733 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6734
6735 * README (Copyright and License Notices): New section.
6736
6737 2012-01-03 Tom Tromey <tromey@redhat.com>
6738
6739 PR python/12533:
6740 * python/py-value.c (valpy_dereference, valpy_get_address
6741 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6742 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6743 (valpy_absolute, valpy_richcompare): Free intermediate values.
6744
6745 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6746
6747 * ada-lang.c: Reformat the copyright notice.
6748
6749 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6750
6751 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6752 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6753 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6754 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6755 Revert this part of:
6756 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6757 Build gdb directly from *.o files not using libgdb.a.
6758 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6759
6760 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6761
6762 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6763 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6764 Reformat the copyright header.
6765
6766 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6767
6768 Revert this part of:
6769 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6770 Remove the gdbtui binary.
6771 * gdb.c (main): Remove args.interpreter_p initialization.
6772 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6773 * main.h (struct captured_main_args): Remove interpreter_p.
6774
6775 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6776
6777 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6778
6779 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6780
6781 * top.c (print_gdb_version): Update copyright year.
6782
6783 2012-01-02 Yao Qi <yao@codesourcery.com>
6784
6785 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6786
6787 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6788 Joel Brobecker <brobecker@adacore.com>
6789
6790 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6791 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6792 3 times.
6793 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6794 fall through into AT_ENTRY_POINT.
6795 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6796 DUMMY_ADDR with it.
6797 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6798 PPC_INSN_SIZE skip to 3 times.
6799
6800 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6803 the return value.
6804 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6805
6806 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6807
6808 Build gdb directly from *.o files not using libgdb.a.
6809 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
6810 (COMMON_OBS): Remove solib-target.o.
6811 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
6812 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
6813 (LIBGDB_OBS, libgdb.a): Move it above.
6814 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
6815 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
6816 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
6817 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
6818 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
6819 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
6820 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
6821 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
6822 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
6823 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
6824 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
6825 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
6826 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
6827 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
6828 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6829 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
6830 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
6831 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6832 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
6833 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
6834 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
6835 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
6836 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
6837 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
6838 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
6839 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
6840 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
6841
6842 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6843
6844 Remove the gdbtui binary.
6845 * .gitignore (/gdbtui): Remove.
6846 * Makefile.in (TUI): Remove.
6847 (SUBDIR_TUI_OBS): Remove tui-main.o.
6848 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
6849 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
6850 (tui-main.o): Remove.
6851 (all_object_files): Remove tui-main.o.
6852 * NEWS: New note for the gdbtui removal.
6853 * configure: Rebuilt.
6854 * configure.ac: No longer add all-tui, clean-tui, install-tui and
6855 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
6856 CONFIG_UNINSTALL respectively.
6857 * gdb.c (main): Remove args.interpreter_p initialization.
6858 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6859 * main.h (struct captured_main_args): Remove interpreter_p.
6860 * tui/tui-main.c: Remove.
6861
6862 2012-01-01 Doug Evans <dje@google.com>
6863
6864 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
6865 (dwarf2_physname, read_import_statement): Ditto.
6866 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
6867 (process_structure_scope read_subroutine_type): Ditto.
6868 (read_typedef, load_partial_dies, read_partial_die): Ditto.
6869 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
6870 (dwarf2_fetch_die_location_block): Ditto.
6871 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
6872
6873 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
6874 All callers updated.
6875 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
6876 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
6877 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
6878
6879 * dwarf2read.c (load_cu): Move assert to more useful location.
6880
6881 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
6882 All callers updated.
6883
6884 * dwarf2read.c (dwarf2_per_objfile): Add comment.
6885 (dwarf2_elf_names): Minor reformat.
6886 (dwarf2_per_cu_data): Tweak comment.
6887 (dwarf2_read_section): Fix comment.
6888 (create_all_comp_units): Fix comment.
6889 (load_full_comp_unit): Fix comment.
6890 (process_full_comp_unit): Fix comment.
6891 (read_signatured_type): Fix comment.
6892
6893 For older changes see ChangeLog-2011.
6894 \f
6895 Local Variables:
6896 mode: change-log
6897 left-margin: 8
6898 fill-column: 74
6899 version-control: never
6900 coding: utf-8
6901 End:
This page took 0.178519 seconds and 4 git commands to generate.