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