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