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