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