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