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