* write.c (chain_frchains_together_1): Reorder assertion to avoid
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f712f01f
EBM
12012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2 Edjunior Machado <emachado@linux.vnet.ibm.com>
3
4 PR gdb/13989
5 * solib.c (solib_find): Prevent GDB from loading native libraries when
6 debugging a cross-target corefile.
7
39181896
PA
82012-09-28 selven <pcthegreat@gmail.com>
9
10 Make definition match declaration.
11
12 * regcache.c (regcache_register_status): Change return type to
13 enum register_status.
14
4c2786ba
YQ
152012-09-28 Yao Qi <yao@codesourcery.com>
16
17 * mi/mi-main.c (mi_cmd_data_write_memory): Call
18 write_memory_with_notification instead of write_memory.
19 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
20 instead of target_write_memory.
21
1ae0c35e
YQ
222012-09-28 Yao Qi <yao@codesourcery.com>
23
24 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
25 when the length of content is not an even number.
26
7977e5d2
TT
272012-09-27 Tom Tromey <tromey@redhat.com>
28
29 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
30 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
31
807160da
JB
322012-09-27 Joel Brobecker <brobecker@adacore.com>
33
34 * sol-thread.c (sol_thread_fetch_registers)
35 (sol_thread_store_registers): Delete commented out code.
36
43c75337
JB
372012-09-27 Joel Brobecker <brobecker@adacore.com>
38
39 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
40 Move these functions to sparc-sol-thread.c.
41 * sparc-sol-thread.c: New file.
42 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
43 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
44 configurations.
45 * configure: Regenerate.
46
d292a972
JB
472012-09-27 Joel Brobecker <brobecker@adacore.com>
48
49 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
50 Remove commented-out code.
51
8c3da003
JB
522012-09-27 Joel Brobecker <brobecker@adacore.com>
53
54 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
55 Enable this code for sparc hosts only.
56
f00482b6
JB
572012-09-27 Joel Brobecker <brobecker@adacore.com>
58
59 * procfs.h (procfs_find_LDT_entry): Add declaration.
60 * sol-thread.c (ps_lgetLDT): Delete local declaration of
61 function procfs_find_LDT_entry.
62
337c776f
JB
632012-09-27 Joel Brobecker <brobecker@adacore.com>
64
65 * procfs.c (proc_get_LDT_entry): Make static.
66
1a04d88f
JB
672012-09-27 Joel Brobecker <brobecker@adacore.com>
68
69 * procfs.c (proc_find_memory_regions): Fix declaration.
70
bad43aa5
SP
712012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
72
73 * amd64-tdep.c (amd64_return_value): Revert previous change
74 that used TYPE_LENGTH directly.
75 * bfin-tdep.c (bfin_extract_return_value): Likewise.
76 (bfin_store_return_value): Likewise.
77 * cris-tdep.c (cris_store_return_value): Likewise.
78 (cris_extract_return_value): Likewise.
79 * h8300-tdep.c (h8300_extract_return_value): Likewise.
80 * hppa-tdep.c (hppa64_return_value): Likewise.
81 * lm32-tdep.c (lm32_store_return_value): Likewise.
82 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
83 * spu-tdep.c (spu_value_from_register): Likewise.
84 * vax-tdep.c (vax_return_value): Likewise.
85
63375b74
SP
862012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
87
88 * gdbtypes.c (lookup_array_range_type): Expand parameters
89 LOW_BOUND and HIGH_BOUND to LONGEST.
90 (lookup_string_range_type): Likewise.
91 * gdbtypes.h (lookup_array_range_type): Likewise.
92 (lookup_string_range_type): Likewise.
93 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
94 Expand HIGHBOUND to ssize_t.
95 (value_string): Likewise.
96 * value.h (value_cstring): Expand parameter LEN to ssize_t.
97 (value_string): Likewise.
98
19ca11c5
YQ
992012-09-27 Yao Qi <yao@codesourcery.com>
100
101 PR breakpoints/13898
102 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
103 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
104 per breakpoint type.
105
92107356
PM
1062012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
107
108 * procfs.c: Add gdb_bfd header.
109 * rs6000-nat.c: Likewise.
110 * solib-pa64.c: Likewise.
111 * spu-linux-nat.c: Likewise.
112 * windows-nat.c: Likewise.
113
9742094a
TT
1142012-09-26 Tom Tromey <tromey@redhat.com>
115
116 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
117
0971de02
TT
1182012-09-26 Tom Tromey <tromey@redhat.com>
119
120 * dwarf2read.c (mark_common_block_symbol_computed): New function.
121 (read_common_block): Handle child DIEs with
122 DW_AT_data_member_location.
123 (new_symbol_full): Add special case for common blocks.
124
4357ac6c
TT
1252012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
126 Tom Tromey <tromey@redhat.com>
127
128 * dwarf2read.c (read_common_block): Rewrite.
129 (new_symbol_full): Handle DW_TAG_common_block.
130 * f-lang.c (head_common_list, find_common_for_function):
131 Remove.
132 * f-lang.h (struct common_entry, struct saved_f77_common,
133 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
134 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
135 BLANK_COMMON_NAME_LOCAL): Remove.
136 (struct common_block): New.
137 * f-valprint.c (list_all_visible_commons): Remove.
138 (info_common_command_for_block): New function.
139 (info_common_command): Use it.
140 * stack.c (iterate_over_block_locals): Special case for
141 COMMON_BLOCK_DOMAIN.
142 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
143 constant.
144 (struct general_symbol_info) <value.common_block>: New field.
145 (SYMBOL_VALUE_COMMON_BLOCK): New define.
146
965f07a8
TT
1472012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
148 Tom Tromey <tromey@redhat.com>
149
150 * f-lang.c (allocate_saved_bf_node,
151 allocate_saved_function_node, allocate_saved_f77_common_node,
152 allocate_common_entry_node, tail_common_list, current_common,
153 saved_bf_list, saved_bf_list_end, current_head_bf_list,
154 tmp_bf_ptr, add_common_block, add_common_entry,
155 find_first_common_named, patch_common_entries,
156 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
157 global_remote_debug, get_bf_for_fcn, saved_function_list,
158 saved_function_list_end, clear_function_list, struct saved_fcn,
159 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
160 SAVED_BF, SAVED_BF_PTR): Remove.
161 * f-lang.h (tail_common_list, current_common,
162 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
163 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
164 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
165 real_main_c_value): Remove.
166 * f-valprint.c (there_is_a_visible_common_named): Remove.
167
6f380991
AB
1682012-09-26 Andrew Burgess <aburgess@broadcom.com>
169
170 * breakpoint.c (update_global_location_list): Ignore previous
171 duplicate status of a breakpoint when starting a new scan for
172 duplicate breakpoints.
173
9ead7ae4 1742012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 175 PR breakpoints/14419
2536b51c
YQ
176 * arm-tdep.c (arm_skip_prologue): Extending producer check to
177 support LLVM compiler.
9ead7ae4 178
8f8a23a2
SP
1792012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
180
181 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
182 * bfin-tdep.c (bfin_extract_return_value): Likewise.
183 (bfin_store_return_value): Likewise.
184 * cris-tdep.c (cris_store_return_value): Likewise.
185 (cris_extract_return_value): Likewise.
186 * h8300-tdep.c (h8300_extract_return_value): Likewise.
187 * hppa-tdep.c (hppa64_return_value): Likewise.
188 * lm32-tdep.c (lm32_store_return_value): Likewise.
189 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
190 * spu-tdep.c (spu_value_from_register): Likewise.
191 * vax-tdep.c (vax_return_value): Likewise.
192
d7019589
SP
1932012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
194
195 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
196 parameter LEN to ssize_t.
197
744a8059
SP
1982012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
199
200 * ada-valprint.c (ada_val_print_1): Eliminate single-use
201 variable LEN.
202 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
203 directly.
204 (alpha_store_return_value): Likewise.
205 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
206 (amd64_push_arguments): Likewise.
207 * ax-gdb.c (gen_trace_static_fields): Likewise.
208 (gen_traced_pop): Likewise.
209 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
210 * breakpoint.c (update_watchpoint): Likewise.
211 * findcmd.c (parse_find_args): Use local variable for type
212 instead of length.
213 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
214 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
215 (h8300_store_return_value): Likewise.
216 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
217 Use i386_darwin_arg_type_alignment directly.
218 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
219 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
220 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
221 (m68hc11_extract_return_value): Likewise.
222 * mep-tdep.c (mep_push_dummy_call): Likewise.
223 * printcmd.c (float_type_from_length): Likewise.
224 * s390-tdep.c (s390_value_from_register): Likewise.
225 * stack.c (read_frame_arg): Likewise.
226 * tracepoint.c (encode_actions_1): Likewise.
227 * valops.c (value_fetch_lazy): Use local variable for type
228 instead of length. Use TYPE_LENGTH directly.
229 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
230
a4b411d6
JB
2312012-09-25 Joel Brobecker <brobecker@adacore.com>
232
233 * symtab.c (skip_prologue_sal): Fix typo in comment.
234
11dba07a
JB
2352012-09-25 Joel Brobecker <brobecker@adacore.com>
236
237 * linespec.c (create_sals_line_offset): Fix typo in comment.
238
318102b9
SP
2392012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
240
241 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
242 use plongest to print the array size.
243
b4aa388a
SP
2442012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
245
246 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
247 * p-valprint.c (pascal_type_print_base): Likewise.
248
84cebc4a
YQ
2492012-09-22 Yao Qi <yao@codesourcery.com>
250
251 * remote.c (remote_get_trace_status): Remove setting default
252 values of fields of 'ts'.
253
04e7407c
JK
2542012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
255
256 Fix internal error on canonicalization of clang types.
257 * cp-name-parser.y (operator): New comment at make_operator call for
258 new, delete, new[] and delete[].
259 (exp): Use "sizeof ". Add new comment at make_operator call.
260
9bf4bce9
JK
2612012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
262
263 Fix disassemble without parameters in tailcall frame.
264 * cli/cli-cmds.c (disassemble_current_function): Use
265 get_frame_address_in_block.
266
1c5b7826
TT
2672012-09-21 Tom Tromey <tromey@redhat.com>
268
269 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
270 TYPE_CODE_UNION>: Unify, removing a goto.
271
62a49610
TT
2722012-09-21 Tom Tromey <tromey@redhat.com>
273
274 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
275
2603f7ee
AB
2762012-09-21 Andrew Burgess <aburgess@broadcom.com>
277
278 * findvar.c (read_frame_register_value): Mark the result value as
279 optimized out if any of the input registers have been optimized out.
280
810849a3
AS
2812012-09-21 Andreas Schwab <schwab@linux-m68k.org>
282
283 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
284
0953dec1
SP
2852012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
286
287 * eval.c (evaluate_subexp_standard): Eliminate single-use
288 variable LOWER.
289
82a90ccf
YQ
2902012-09-21 Yao Qi <yao@codesourcery.com>
291
292 * mi/mi-interp.c: Declare mi_record_changed.
293 (mi_interpreter_init): Call observer_attach_record_changed.
294 (mi_record_changed): New.
295 * record.c (record_open): Call observer_notify_record_changed.
296 (cmd_record_stop): Call observer_notify_record_changed.
297 * NEWS: Mention it.
298
d7de8e3c
TT
2992012-09-20 Tom Tromey <tromey@redhat.com>
300
301 * NEWS: Update.
302 * python/python.c (finalize_python): New function.
303 (_initialize_python): Make a final cleanup.
304
43c7c83d
DE
3052012-09-19 Doug Evans <dje@google.com>
306
307 * buildsym.h (param_symbols): Delete, unused.
308 (context_stack): Delete member "params", unused.
309 * buildsym.c (push_context): Update.
310 * dwarf2read.c (read_func_scope): Update.
311
aa9259cc
TS
3122012-09-19 Thomas Schwinge <thomas@codesourcery.com>
313
a6521d9a
TS
314 * sh-tdep.c (sh_register_convert_to_virtual)
315 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
316 all callers. Just do a memcpy if not the little-endian case.
317
f92589cb
TS
318 * h8300-tdep.c (h8300_gdbarch_init): Invoke
319 set_gdbarch_double_format and set_gdbarch_long_double_format.
320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
321 set_gdbarch_double_format.
322 * sh-tdep.c (sh_gdbarch_init): Likewise.
323
aa9259cc
TS
324 * NEWS: Document the removal of SH's 'regs' command.
325 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
326 command.
327
c1d780c2
SDJ
3282012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
329
330 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
331 `jump'.
332
4ae24af0
JB
3332012-09-18 Joel Brobecker <brobecker@adacore.com>
334
335 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
336 language when iterating over symbols.
337
bb25a15c
YQ
3382012-09-18 Yao Qi <yao@codesourcery.com>
339
340 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
341 (mi_interpreter_init): Call observer_attach_tsv_created and
342 observer_attach_tsv_deleted.
343 (mi_tsv_created, mi_tsv_deleted): New.
344 * tracepoint.c (delete_trace_state_variable): Call
345 observer_notify_tsv_deleted.
346 (trace_variable_command): Call observer_notify_tsv_created.
347 (delete_trace_variable_command): Call
348 observer_notify_tsv_deleted.
349 (create_tsv_from_upload): Call observer_notify_tsv_created.
350 * NEWS: Mention it.
351
201b4506
YQ
3522012-09-18 Yao Qi <yao@codesourcery.com>
353
354 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
355 if traceframe changed.
356 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
357 "trace-find".
358 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
359 (mi_interpreter_init): Hook mi_traceframe_changed to observer
360 'traceframe_changed'.
361 (mi_traceframe_changed): New.
362 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
363 New field.
364 * NEWS: Mention the new MI notification.
365
eaeb12db
MW
3662012-09-17 Mike Wrighton <wrighton@codesourcery.com>
367
368 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
369
6e3c039e
JK
3702012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
371
372 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
373 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
374 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
375 Extend code also for PaX support. Convert all gdb_assert to warning
376 calls.
377
9a950c7c
JK
3782012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
379
380 Implement auto-load user conveniences suggested by Doug Evans.
381 * auto-load.c: Include top.h.
382 (file_is_auto_load_safe): New variable advice_printed. Print advice.
383 (_initialize_auto_load): New variable scripts_directory_help. Mention
384 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
385 scripts-directory. Document in online help one can use also files for
386 set auto-load safe-path.
387 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
388 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
389
deec9a9d
SP
3902012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
391
392 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
393 of LEN.
394
354ecfd5
SP
3952012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
396
397 * m2-valprint.c (m2_print_array_contents): Eliminate variable
398 ELTLEN and use TYPE_LENGTH directly.
399 (m2_val_print): Likewise.
400 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
401 variable LEN and use TYPE_LENGTH directly.
402 (m68k_svr4_store_return_value): Likewise.
403 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
404 ARGLEN and use TYPE_LENGTH directly.
405 (mips_o64_push_dummy_call): Likewise.
406 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
407 variable LENGTH and use TYPE_LENGTH directly.
408 (s390_function_arg_float): Likewise.
409 (s390_function_arg_integer): Likewise.
410 (s390_push_dummy_call): Likewise.
411 (s390_return_value_convention): Likewise.
412 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
413 TYPE_LENGTH directly.
414
6fc1c773
YQ
4152012-09-17 Yao Qi <yao@codesourcery.com>
416
417 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
418 Update comment to add_setshow_integer_cmd.
419 * cli/cli-setshow.c (do_set_command): Handle case
420 'var_zuinteger_unlimited'.
421 (do_show_command): Likewise.
422 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
423 for command 'remotetimeout'.
424 * command.h (enum var_types): New zuinteger_unlimited. Update comment
425 to var_integer.
426 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
427 for command 'set listsize'.
428
6acef6cd
SP
4292012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
430
431 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
432 variable LEN.
433
1ab3b62c
JK
4342012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
435
436 PR 14119
437 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
438 (frame_pop): Drop also TAILCALL_FRAME frames.
439 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
440
acf9414f
JK
4412012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
442 Pedro Alves <palves@redhat.com>
443
444 PR 14548
445 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
446 function start if we are already at function start. Both for
447 reverse-next and for reverse-step into function without line number
448 info.
449
193facb3
JK
4502012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
451
452 Code cleanup - rename 'inline' depth to 'artificial' depth.
453 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
454 frame_id_artificial_p, extend the comment.
455 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
456 * frame.c (fprint_frame_id): Rename at a user, change debug output
457 text to "artificial=".
458 (skip_inlined_frames): Rename to ...
459 (skip_artificial_frames): ... here. Extend the comment.
460 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
461 (frame_id_inlined_p): Rename to ...
462 (frame_id_artificial_p): ... here. Rename at a user.
463 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
464 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
465 at a user.
466 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
467 Extend the comment.
468 (frame_id_inlined_p): Rename to ...
469 (frame_id_artificial_p): ... here.
470 * inline-frame.c (inline_frame_this_id): Rename at a user.
471
42056501
AB
4722012-09-14 Andrew Burgess <aburgess@broadcom.com>
473
474 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
475 vector variables using vector_size syntax rather than array
476 syntax.
477
84c47588
SP
4782012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
479
480 * valarith.c (value_concat): Replace unsafe ALLOCA with
481 XMALLOC/XFREE.
482
f4045bcb
PA
4832012-09-14 Pedro Alves <palves@redhat.com>
484
485 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
486
63b46266
YPK
4872012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
488
489 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
490 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
491 data-directory as appropriate.
492
ddd7a8e7
SP
4932012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
494
495 * printcmd.c (ui_printf): Eliminate single-use variable
496 PARAM_LEN.
497
d649a38e
YQ
4982012-09-14 Yao Qi <yao@codesourcery.com>
499 Pedro Alves <palves@redhat.com>
500
501 * valops.c (value_assign): Move observer_notify_target_changed
502 below to replace reinit_frame_cache.
503
b9516fa1
YPK
5042012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
505
506 Refactor Python "gdb" module into a proper Python package, by
507 introducing a new "_gdb" module for code implemented in C, and
508 using reload/__import__ instead of exec.
509 * python/lib/gdb/__init__.py: Import * from _gdb.
510 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
511 prompt_hook, sys.argv): Moved from finish_python_initialization.
512 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
513 (packages, auto_load_packages): New list and function replacing
514 module_dict and auto-loading code, using __file__ instead of
515 gdb.PYTHONDIR and reload/__import__ instead of exec.
516 (GdbSetPythonDirectory): Replacing function of the same name
517 from finish_python_initialization, using reload/__import__ instead
518 of exec, as well as call auto_load_packages.
519 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
520 gdb_python_module and not gdb_module.
521 * python/python-internal.h (gdb_python_module): Declare.
522 * python/python.c (gdb_python_module): New global.
523 (before_prompt_hook): Check gdb_python_module and not gdb_module.
524 (_initialize_python): Rename gdb module to _gdb.
525 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
526 (finish_python_initialization): Move Python code to
527 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
528 __main__.
529
aa0fbdd8
PA
5302012-09-13 Pedro Alves <palves@redhat.com>
531
532 * Makefile.in (COMMON_OBS): Add registry.o.
533 * registry.c: New file.
534 * registry.h (struct registry_container): Declare.
535 (registry_data_callback): New typedef.
536 (struct registry_data, struct registry_data_registration, struct
537 registry_data_registry): New type.
538 (register_data_with_cleanup, registry_alloc_data)
539 (registry_callback_adaptor, registry_clear_data)
540 (registry_container_free_data, registry_set_data, registry_data):
541 Declare.
542 (DEFINE_REGISTRY): Refactor structures and functions as shims over
543 the new common structures and functions.
544 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
545 callback typedefs.
546
42b5c53d
MW
5472012-09-12 Mike Wrighton <wrighton@codesourcery.com>
548
549 * remote.c (remote_insert_hw_breakpoint): Throw exception if
550 there is an error inserting hardware breakpoints and use the
551 error message from the target.
552
553 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
554 Catch this exception and print the error message contained within. Do not
555 print the default hardware error breakpoint message in this case.
556
a1b64ce1
DE
5572012-09-12 Doug Evans <dje@google.com>
558
559 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
560 cu == NULL.
561
83a788b8
DE
5622012-09-11 Doug Evans <dje@google.com>
563
564 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
565 .gdb_index symbol attributes if there are none.
566
d9eaeb59
JB
5672012-09-11 Joel Brobecker <brobecker@adacore.com>
568
569 * symtab.h (struct minimal_symbol) [has_size]: New field.
570 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
571 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
572 * printcmd.c (build_address_symbolic): Only filter out zero-sized
573 minimal symbols if the symbol's size is actually known.
574 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
575 of msymbol's size field. Add comment.
576 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
577 SET_MSYMBOL_SIZE to set the minimal symbol size.
578
a83e9154
JB
5792012-09-11 Joel Brobecker <brobecker@adacore.com>
580
581 * minsyms.c (install_minimal_symbols): Use memset to fill entire
582 minimal_symbol struct object, rather than setting some of its
583 fields one by one.
584
350b1b26
AB
5852012-09-11 Andrew Burgess <aburgess@broadcom.com>
586
587 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
588 passed_a_ptr flag when displaying typedef types.
589
2fa15f23
JB
5902012-09-10 Joel Brobecker <brobecker@adacore.com>
591
592 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
593 the optimized_out flag is preserved.
594
5152ff90
AG
5952012-09-10 Anthony Green <green@moxielogic.com>
596
597 * moxie-tdep.c (moxie_analyze_prologue): Update for function
598 prologue changes in GCC.
599
5b4f6e25
KS
6002012-09-10 Keith Seitz <keiths@redhat.com>
601
602 PR gdb/13483
603 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
604 (BOOL_CONVERSION_BADNESS): ... this.
605 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
606 (rank_one_type): Allow all boolean conversions
607 permitted by the standard.
608
f1070426
TT
6092012-09-06 Tom Tromey <tromey@redhat.com>
610
611 * python/py-newobjfileevent.c (create_new_objfile_event_object):
612 Don't decref py_objfile.
613
a8db4212
YPK
6142012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
615
616 Do not enable -lmcheck by default when Python is enabled with
617 threading support.
618 * configure.ac: (python_has_threads) New variable, by testing
619 if WITH_THREAD is defined in Python.h.
620 Move --enable-lmcheck after --with-python.
621 Do not enable -lmcheck by default if python_has_threads=yes.
622 Warn if --enable-lmcheck and python_has_threads=yes.
623 * configure: Regenerate.
624
648beb2b
YQ
6252012-08-31 Yao Qi <yao@codesourcery.com>
626
627 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
628 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
629 Update some commands.
630 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
631 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
632 to 1.
633
ef07a9f7
YQ
6342012-08-31 Yao Qi <yao@codesourcery.com>
635
636 * mi/mi-cmds.c (mi_cmds): Add 'static'.
637
fda395cf
YPK
6382012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
639
640 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
641
8efd8e78
DE
6422012-08-29 Doug Evans <dje@google.com>
643
644 * main.c (print_gdb_help): Remove reference to
645 --use-deprecated-index-sections.
646
883b9c6c
YQ
6472012-08-28 Yao Qi <yao@codesourcery.com>
648
649 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
650 (init_cmds): Call add_setshow_uinteger_cmd for command
651 'max-user-call-depth'.
652 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
653 declaration of 'max_user_call_depth'.
654 * frame.c (backtrace_limit): Add 'unsigned'.
655 (_initialize_frame): Call add_setshow_uinteger_cmd for command
656 'limit'.
657 * remote.c (remoteaddresssize): Add 'unsigned'.
658 (remote_address_masked): Change local var 'address_size' to
659 'unsigned'.
660 (_initialize_remote): Call add_setshow_uinteger_cmd for
661 'remoteaddresssize'.
662 * top.c (history_size): Add 'unsigned'.
663 (show_commands): Change local variables to 'unsigned'.
664 (set_history_size_command): Don't check history_size is negative.
665 Adjust the condition to call unstifle_history and set history_size
666 to UNIT_MAX.
667
1292279a
PA
6682012-08-28 Pedro Alves <palves@redhat.com>
669
670 PR gdb/14428
671
672 * infcmd.c (default_print_one_register_info): New, factored out
673 from default_print_registers_info.
674 (default_print_registers_info): Use it. Mark value unavailable if
675 necessary.
676 (registers_info): Print user registers with
677 default_print_one_register_info.
678
f629cd75
L
6792010-08-27 H.J. Lu <hongjiu.lu@intel.com>
680
681 PR tui/14486
682 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
683 is not NULL before referencing it.
684
1c8cdcb1
JK
6852012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
686
687 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
688 variable pc. Call find_pc_line instead of find_pc_overlay, restore
689 original PC for it.
690
e9687799
JK
6912012-08-27 Eli Zaretskii <eliz@gnu.org>
692 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 * auto-load.c (auto_load_objfile_script): Rename to ...
695 (auto_load_objfile_script_1): ... here, change variable realname to
696 parameter realname, document it, add return value, add variable retval.
697 (auto_load_objfile_script): New function.
698
7afa1642
JK
6992012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
700
701 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
702 followed by a whitespace.
703
dc7650b8
JK
7042012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
705
28e66c70 706 PR gdb/14494.
dc7650b8
JK
707 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
708 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
709 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
710 here.
711
1591a1e8
PA
7122012-08-27 Wei-cheng Wang <cole945@gmail.com>
713
714 * memattr.c (create_mem_region): Fix memory region overlapping
715 checking.
716
ecfb0d68
SP
7172012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
718
719 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
720 with xmalloc/cleanup.
721 * mt-tdep.c (mt_push_dummy_call): Likewise.
722 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
723 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
724
8c56c1b9
YQ
7252012-08-24 Yao Qi <yao@codesourcery.com>
726
727 * jv-exp.y (push_expression_name): Add "." at the end of error
728 message.
729
e3480f4a
YPK
7302012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
731
732 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
733 * python/python.c (_initialize_python): Update documentation.
734
dfbd5e7b
PA
7352012-08-23 Pedro Alves <palves@redhat.com>
736
737 * infrun.c (_initialize_infrun) <handle command help text>:
738 Mention that multiple signals are supported.
739
2edda2ff
PA
7402012-08-23 Pedro Alves <palves@redhat.com>
741
742 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
743 string.
744
8d735b87
YQ
7452012-08-23 Yao Qi <yao@codesourcery.com>
746
747 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
748 (tfind_1): Don't call registers_changed, set_traceframe_num,
749 and clear_traceframe_info.
750 Call set_current_traceframe.
751 (set_current_traceframe): call set_traceframe_num.
752
c5d9b215
SDJ
7532012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
754
755 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
756 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
757
037bbc8e
YPK
7582012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
759
760 Enable readline in Python in a GDB-specific way and block the
761 standard Python readline module to prevent conflicts with GDB.
762 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
763 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
764 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
765 * python/py-gdb-readline.c: New file.
766 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
767 prototype.
768 * python/python.c (_initialize_python): Call
769 gdbpy_initialize_gdb_readline.
770
406b1477
KS
7712012-08-22 Keith Seitz <keiths@redhat.com>
772
773 * defs.h: Include build-gnulib/config.h
774
6ca1b147
JM
7752012-08-22 Joseph Myers <joseph@codesourcery.com>
776
777 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
778 and blx pc.
779
8315665e
YPK
7802012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
781
782 Add a new "python-interactive" command that starts a standard
783 Python interactive prompt with "pi" as alias, and add "py" as
784 an alias to "python".
785 * NEWS: Mention the new commands.
8315665e
YPK
786 * python/python.c (eval_python_command): New function.
787 (python_interactive_command): For "python-interactive" with
788 arguments, call eval_python_command. For "python-interactive"
789 without arguments, call PyRun_InteractiveLoop.
790 (_initialize_python): Add "python-interactive" command with
791 "pi" as alias, and add "py" as an alias to "python".
792
522002f9
TT
7932012-08-22 Tom Tromey <tromey@redhat.com>
794
795 * defs.h (quit_flag): Don't declare.
796 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
797 (QUIT): Use new functions.
798 * event-top.c (command_handler): Use clear_quit_flag.
799 (handle_sigint): Use set_quit_flag.
800 (async_request_quit): Use check_quit_flag. Don't check
801 immediate_quit.
802 * exceptions.c (throw_exception): Use clear_quit_flag.
803 * main.c (captured_main): Use clear_quit_flag.
804 * python/python.c (clear_quit_flag, set_quit_flag)
805 (check_quit_flag): New functions.
806 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
807 clear_quit_flag.
808 * remote.c (remote_wait_as): Use check_quit_flag,
809 clear_quit_flag.
810 (remote_start_remote): Call QUIT.
811 * symfile.c (load_progress): Use check_quit_flag.
812 * top.c (command_loop): Use clear_quit_flag.
813 (command_line_input): Call QUIT.
814 * utils.c (quit_flag): Conditionally define.
815 (clear_quit_flag, check_quit_flag, set_quit_flag): New
816 functions.
817 (prompt_for_continue): Call QUIT. Use quit, not
818 async_request_quit.
819 * remote-mips.c (mips_expect_timeout): Call QUIT.
820 * monitor.c (monitor_expect): Call QUIT.
821
b583003e
TT
8222012-08-22 Tom Tromey <tromey@redhat.com>
823
824 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
825 (async_init_signals): Update.
826 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
827 (SIGWINCH_HANDLER_BODY): Remove.
828
e1507e95
TT
8292012-08-22 Tom Tromey <tromey@redhat.com>
830
831 * jit.c (jit_object_close_impl): Don't malloc the objfile
832 name.
833 * objfiles.c (allocate_objfile): Don't malloc the objfile
834 name.
835 (free_objfile): Don't free the objfile name.
836 * objfiles.h (struct objfile) <name>: Update comment.
837 * symfile.c (reread_symbols): Fix reference counting. Don't
838 malloc objfile name.
839
1c00ec6b
TT
8402012-08-22 Tom Tromey <tromey@redhat.com>
841
842 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
843 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
844 (symfile_bfd_open): Likewise.
845 (generic_load): Likewise.
846 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
847 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
848 gdb_bfd_open.
849 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
850 Use gdb_bfd_open.
851 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
852 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
853 (pmon_load_fast): Likewise.
854 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
855 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
856 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
857 (macho_check_dsym): Likewise.
858 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
859 (m32r_upload_command): Likewise.
860 * gdb_bfd.h (gdb_bfd_cache): Declare.
861 * gdb_bfd.c (struct gdb_bfd_data): New.
862 (gdb_bfd_cache): New global.
863 (struct gdb_bfd_cache_search): New.
864 (hash_bfd): New function.
865 (eq_bfd): Likewise.
866 (gdb_bfd_open): Likewise.
867 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
868 (gdb_bfd_unref): Remove closed BFD from cache. Update for
869 gdb_bfd_data.
870 * exec.c (exec_file_attach): Use gdb_bfd_open.
871 * dsrec.c (load_srec): Use gdb_bfd_open.
872
6532ff36
TT
8732012-08-22 Tom Tromey <tromey@redhat.com>
874
875 * dwarf2read.c (macro_start_file): Update.
876 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
877 (free_objfile_per_bfd_storage): Destroy macro_cache.
878 (allocate_objfile, free_objfile): Update.
879 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
880 New field.
881 (struct objfile) <macro_cache>: Remove.
882 * symfile.c (reread_symbols): Update.
883 * symmisc.c (print_symbol_bcache_statistics): Update.
884 (print_objfile_statistics): Update.
885
706e3705
TT
8862012-08-22 Tom Tromey <tromey@redhat.com>
887
888 * elfread.c (elf_symtab_read): Update.
889 * objfiles.c (objfiles_bfd_data): New global.
890 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
891 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
892 (allocate_objfile, free_objfile): Update.
893 (_initialize_objfiles): Initialize objfiles_bfd_data.
894 * objfiles.h (struct objfile_per_bfd_storage): New.
895 (struct objfile) <per_bfd>: New field.
896 <filename_cache>: Remove.
897 (set_objfile_per_bfd): Declare.
898 * symfile.c (reread_symbols): Update. Call
899 set_objfile_per_bfd.
900 (allocate_symtab): Update.
901 * symmisc.c (print_symbol_bcache_statistics): Update.
902 (print_objfile_statistics): Print the size of the BFD obstack.
903
e992eda4
TT
9042012-08-22 Tom Tromey <tromey@redhat.com>
905
906 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
907 * gdb_bfd.c: Use DEFINE_REGISTRY.
908 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
909 (gdb_bfd_ref): Call bfd_alloc_data.
910 (gdb_bfd_unref): Call bfd_free_data.
911
6b81941e
TT
9122012-08-22 Tom Tromey <tromey@redhat.com>
913
914 * registry.h (struct registry_fields): New.
915 (REGISTRY_FIELDS): Redefine.
916 (REGISTRY_ACCESS_FIELD): New macro.
917 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
918 functions.
919
8e260fc0
TT
9202012-08-22 Tom Tromey <tromey@redhat.com>
921
922 * auto-load.c (_initialize_auto_load): Update.
923 * solib-svr4.c (_initialize_svr4_solib): Update
924 * solib-dsbt.c (_initialize_dsbt_solib): Update.
925 * solib-darwin.c (_initialize_darwin_solib): Update.
926 * registry.h: New file.
927 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
928 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
929 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
930 (register_program_space_data_with_cleanup)
931 (register_program_space_data, program_space_alloc_data)
932 (clear_program_space_data, set_program_space_data)
933 (program_space_data): Don't declare.
934 * progspace.c: Use DEFINE_REGISTRY.
935 (struct program_space_data, struct
936 program_space_data_registration, struct
937 program_space_data_registry, program_space_data_registry)
938 (register_program_space_data_with_cleanup)
939 (register_program_space_data, program_space_alloc_data)
940 (program_space_free_data, clear_program_space_data)
941 (set_program_space_data, program_space_data): Remove.
942 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
943 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
944 (register_objfile_data_with_cleanup, register_objfile_data)
945 (clear_objfile_data, set_objfile_data, objfile_data): Don't
946 declare.
947 * objfiles.c: Use DEFINE_REGISTRY.
948 (struct objfile_data, struct objfile_data_registration, struct
949 objfile_data_registry, objfile_data_registry)
950 (register_objfile_data_with_cleanup, register_objfile_data)
951 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
952 (set_objfile_data, objfile_data): Remove.
953 (_initialize_objfiles): Update.
954 * jit.c (_initialize_jit): Update.
955 * inflow.c (_initialize_inflow): Update.
956 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
957 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
958 (register_inferior_data_with_cleanup, register_inferior_data)
959 (clear_inferior_data, set_inferior_data, inferior_data): Don't
960 declare.
961 * inferior.c: Use DEFINE_REGISTRY.
962 (struct inferior_data, struct inferior_data_registration, struct
963 inferior_data_registry, inferior_data_registry)
964 (register_inferior_data_with_cleanup, register_inferior_data)
965 (inferior_alloc_data, inferior_free_data clear_inferior_data)
966 (set_inferior_data, inferior_data): Remove.
967 * auxv.c (_initialize_auxv): Update.
968 * ada-lang.c (_initialize_ada_language): Update.
969 * breakpoint.c (_initialize_breakpoint): Update.
970 * i386-nat.c (i386_use_watchpoints): Update.
971
ed9eebaf
TT
9722012-08-22 Tom Tromey <tromey@redhat.com>
973
974 * exec.c (exec_close, exec_file_attach): Update.
975 (add_to_section_table): Initialize 'key' field.
976 (add_target_sections, remove_target_sections): Add 'key' argument.
977 * exec.h (add_target_sections, remove_target_sections): Add
978 'key' argument.
979 * solib.c (solib_map_sections, update_solib_list, clear_solib)
980 (reload_shared_libraries_1): Update.
981 * target.h (struct target_section) <key>: New field.
982
2f2e97fa
TT
9832012-08-22 Tom Tromey <tromey@redhat.com>
984
985 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
986
b3dbbd6f
PM
9872012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
988
989 * symfile.c (allocate_symtab): Use host_address_to_string
990 function instead of cast of pointer to long which is not
991 compatible with x86_64-w64-mingw32 build.
992
f94363d7
AP
9932012-08-19 Andrew Pinski <apinski@cavium.com>
994
995 * mips-tdep.c (is_octeon): New function.
996 (is_octeon_bbit_op): New function.
997 (mips32_next_pc): Handle Octeon's bbit instructions.
998 (mips32_instruction_has_delay_slot): Likewise.
999
78a59c2f
AP
10002012-08-19 Andrew Pinski <apinski@cavium.com>
1001
1002 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1003 before the function.
1004
4f5bcb50
AP
10052012-08-19 Andrew Pinski <apinski@cavium.com>
1006
1007 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1008
e5afdbd7
KS
10092012-08-19 Keith Seitz <keiths@redhat.com>
1010
1011 PR c++/14365
1012 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1013 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1014
13c9750e
EZ
10152012-08-18 Eli Zaretskii <eliz@gnu.org>
1016
1017 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1018 The typo broke "make TAGS".
1019
db761810 10202012-08-17 Joel Brobecker <brobecker@adacore.com>
1021
1022 GDB 7.5 released.
1023
a451cb65
KS
10242012-08-17 Keith Seitz <keiths@redhat.com>
1025
1026 PR c++/13356
1027 * gdbtypes.c (strict_type_checking): New variable.
1028 (show_strict_type_checking): New function.
1029 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1030 if strict type checking is disabled.
1031 (_initialize_gdbtypes): Add "check type" subcommand.
1032 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1033
10342012-08-17 Keith Seitz <keiths@redhat.com>
1035
1036 * language.h (type_mode): Remove.
1037 (type_check): Remove.
1038 (struct language_defn): Remove la_type_check.
1039 (STRICT_TYPE): Remove unused macro.
1040 (type_error): Remove.
1041 * language.c (set_type_range_case): Renamed to ...
1042 (set_range_case): ... this. Update all callers.
1043 Remove type_mode/type_check.
1044 (type_mode): Remove.
1045 (type_check): Remove.
1046 (show_type_command): Remove.
1047 (set_type_command): Remove.
1048 (language_info): Remove type checking output.
1049 (type_error): Remove unused function.
1050 (range_error): Update comment.
1051 (unknown_language_defn): Remove la_type_check.
1052 (auto_language_defn): Likewise.
1053 (local_language_defn): Likewise.
1054 (_initialize_language): Remove "check type" subcommand.
1055 * ada-lang.c (ada_language_defn): Remove la_type_check.
1056 * c-lang.c (c_language_defn): Likewise.
1057 (cplus_language_defn): Likewise.
1058 (asm_language_defn): Likewise.
1059 (minimal_language_defn): Likewise.
1060 * d-lang.c (d_language_defn): Likewise.
1061 * f-lang.c (f_language_defn): Likewise.
1062 * go-lang.c (go_language_defn): Likewise.
1063 * jv-lang.c (java_language_defn): Likewise.
1064 * m2-lang.c (m2_language_defn): Likewise.
1065 * objc-lang.c (objc_language_defn): Likewise.
1066 * opencl-lang.c (opencl_language_defn): Likewise.
1067 * p-lang.c (pascal_language_defn): Likewise.
1068
dbf6a605
MF
10692012-08-16 Mike Frysinger <vapier@gentoo.org>
1070
1071 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1072
973e3cf7
JB
10732012-08-16 Joel Brobecker <brobecker@adacore.com>
1074
1075 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1076 New function.
1077 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1078 using the regache. Use ia64_hpux_get_register_from_save_state_t
1079 to access the bsp and bspstore registers if not.
1080
d80ee84f
JB
10812012-08-16 Joel Brobecker <brobecker@adacore.com>
1082
1083 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1084 * breakpoint.c (detach_breakpoints): Change pid parameter into
1085 a ptid. Adjust code accordingly.
1086 * infrun.c (handle_inferior_event): Delete variable child_pid.
1087 Update call to detach_breakpoints to pass the child ptid for
1088 fork events.
1089 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1090 assert that inferior_ptid's lwp is zero.
1091 (linux_handle_extended_wait): Update call to detach_breakpoints.
1092 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1093 detach_breakpoints.
1094
2dcc6086
JB
10952012-08-16 Joel Brobecker <brobecker@adacore.com>
1096
1097 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1098 parent, only call detach_breakpoints if tts.tts_event ==
1099 TTEVT_VFORK.
1100
0c92d8c1
JB
11012012-08-16 Joel Brobecker <brobecker@adacore.com>
1102
1103 * dwarf2-frame.c (dwarf2_frame_cache): Use
1104 get_frame_address_in_block instead of get_frame_pc as
1105 the bound for executing the frame's FDE.
1106
6b1755ce
YQ
11072012-08-16 Yao Qi <yao@codesourcery.com>
1108
1109 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1110 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1111 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1112 (c_type_print_varspec_suffix): Likewise.
1113 * eval.c (evaluate_subexp_standard): Likewise.
1114 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1115 (f_type_print_varspec_suffix): Likewise.
1116 * gdbtypes.c (is_scalar_type): Likewise.
1117 (recursive_dump_type): Likewise.
1118 * infcall.c (value_arg_coerce): Likewise.
1119 * m2-valprint.c (m2_val_print): Likewise.
1120 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1121 (pascal_type_print_varspec_suffix): Likewise.
1122 (pascal_type_print_base): Likewise.
1123 * p-valprint.c (pascal_val_print): Likewise.
1124 (pascal_val_print): Likewise.
1125 * valops.c (value_slice): Likewise.
1126 * valprint.c (scalar_type_p): Likewise.
1127 * valarith.c (value_bitstring_subscript): Remove.
1128 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1129 Remove comment on TYPE_CODE_BITSTRING.
1130
1131 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1132 TYPE_CODE_BITSTRING.
1133
1134 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1135 slot 0.
1136
8acc4065
YQ
11372012-08-16 Yao Qi <yao@codesourcery.com>
1138
1139 * tracepoint.c (trace_find_none_command): Remove.
1140 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1141
8128fd8e
YQ
11422012-08-16 Yao Qi <yao@codesourcery.com>
1143
1144 * remote.c (handle_notification): Remove parameter 'length'.
1145 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1146
2873700e
KS
11472012-08-15 Keith Seitz <keiths@redhat.com>
1148
1149 * gdbtypes.c (opaque_type_resolution): Make static.
1150 Add missing comment.
1151 (overload_debug): Add missing comment.
1152 (show_opaque_type_resolution): Likewise.
1153 (show_overload_debug): Likewise.
1154 (print_bit_vector): Remove unnecessary forward declaration.
1155 (print_arg_types): Likewise.
1156 (dump_fn_fieldlists): Likewise.
1157 (print_cplus_stuff): Likewise.
1158
b82d08cd
TT
11592012-08-15 Tom Tromey <tromey@redhat.com>
1160
1161 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1162 (gdb_bfd_ref): Initialize new field.
1163 (gdb_bfd_unref): Unref the archive BFD.
1164 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1165 parent archive.
1166
db6573d6
TT
11672012-08-15 Tom Tromey <tromey@redhat.com>
1168
1169 PR python/14387:
1170 * python/py-bpevent.c (create_breakpoint_event_object): Update
1171 comment.
1172 * python/py-event.c (evpy_add_attribute): Update comment.
1173 * python/py-exitedevent.c (create_exited_event_object): Fix
1174 reference counting and error handling.
1175 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1176 Fix reference counting.
1177 * python/py-signalevent.c (create_signal_event_object): Fix
1178 reference counting and error handling.
1179 * python/py-stopevent.c (emit_stop_event): Fix reference
1180 counting.
1181 * python/py-threadevent.c (get_event_thread): Return a
1182 borrowed reference.
1183 * python/py-type.c (convert_field): Fix reference counting.
1184
a036ba48
TT
11852012-08-15 Tom Tromey <tromey@redhat.com>
1186
1187 * dwarf2read.c (dwarf_decode_macro_bytes)
1188 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1189 as hash key.
1190
486c7739
MF
11912012-08-14 Mike Frysinger <vapier@gentoo.org>
1192
1193 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1194 stepi, nexti, finish, next, step, jump, and continue commands.
1195 * infrun.c (_initialize_infrun): Update help text for the handle
1196 command.
1197
4cf93a03
DE
11982012-08-14 Doug Evans <dje@google.com>
1199
70b099cf
DE
1200 * gdbtypes.c (struct extra): Delete, unused.
1201
5212577a
DE
1202 * gdbtypes.c: Whitespace cleanup.
1203 (address_space_name_to_int): Remove "extern" from definition.
1204 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1205
4cf93a03
DE
1206 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1207 TYPE_POINTER_TYPE (type).
1208
3756ef7e
GB
12092012-08-14 Gary Benson <gbenson@redhat.com>
1210
1211 * solib-svr4.c (svr4_free_library_list): Use free_so.
1212
40d72643
MF
12132012-08-13 Mike Frysinger <vapier@gentoo.org>
1214
1215 * .gitignore: Add go-exp.c.
1216
f47f77df
DE
12172012-08-13 Doug Evans <dje@google.com>
1218
1219 * value.c (show_convenience): Tweak comment.
1220 (_initialize_values): Mention convenience functions in the help text
1221 for "show convenience".
1222
7507c54a
YQ
12232012-08-13 Yao Qi <yao@codesourcery.com>
1224
1225 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1226 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1227 TERNOP_SLICE_COUNT.
1228 * eval.c (evaluate_subexp_standard): Likewise.
1229 * expprint.c (print_subexp_standard): Likewise.
1230 (dump_subexp_body_standard): Likewise.
1231 * parse.c (operator_length_standard): Likewise.
1232
5cad9736
YQ
12332012-08-13 Yao Qi <yao@codesourcery.com>
1234
1235 * std-operator.def: Remove OP_BITSTRING.
1236 * breakpoint.c (watchpoint_exp_is_const): Update.
1237 * eval.c (evaluate_subexp_standard): Remove handling to
1238 OP_BITSTRING.
1239 * expprint.c (print_subexp_standard): Likewise.
1240 (dump_subexp_body_standard): Likewise.
1241 * parse.c (operator_length_standard): Likewise.
1242 * valops.c (value_bitstring): Remove.
1243 * value.h: Remove the declaration of 'value_bitstring'.
1244
bad7670a
SDJ
12452012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1246
1247 * linespec.c (find_methods): Remove unused variables `i1' and
1248 `name_len'.
1249 (decode_line_full): Likewise for `arg_start'.
1250
d9dce7fa
SDJ
12512012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1252
1253 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1254 (zlib_decompress_section): Likewise for `section_data'.
1255 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1256
a72c3253
DE
12572012-08-10 Doug Evans <dje@google.com>
1258
1259 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1260 * NEWS: Document them.
1261 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1262 function/strfns.py.
1263 * python/py-type.c (typy_array_1): New function.
1264 (typy_array): Call it.
1265 (typy_vector): New function.
1266 (type_object_methods): Add "vector".
1267 * python/lib/gdb/function/__init__.py: New file.
1268 * python/lib/gdb/function/strfns.py: New file.
1269
200bc880
SP
12702012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1271
1272 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1273 for TYPE_FIELD_BITPOS.
1274 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1275
de0bea00
MF
12762012-08-10 Mike Frysinger <vapier@gentoo.org>
1277
1278 PR cli/10436:
1279 * common/vec.h (VEC_merge): Define.
1280 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1281 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1282 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1283 * completer.c: Include gdb_signals.h.
1284 (signal_completer): Define.
1285 * completer.h (signal_completer): Add prototype.
1286 * infcmd.c (_initialize_infcmd): Assign the command
1287 completer for "signal" to handle_completer.
1288 * infrun.c: Include completer.h.
1289 (handle_completer): Define.
1290 (_initialize_infrun): Declare a new local variable c. Store the
1291 result of add_com("handle") to it. Assign the command
1292 completer for "handle" to handle_completer.
1293
5b9afe8a
YQ
12942012-08-09 Yao Qi <yao@codesourcery.com>
1295
1296 * cli/cli-decode.c (set_cmd_prefix): New.
1297 (lookup_cmd_for_prefixlist): New.
1298 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1299 of each cmd_list_element in *prefixlist.
1300 (add_setshow_cmd_full): set_cmd_prefix.
1301 (add_alias_cmd): Likewise.
1302 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1303 Declare 'auto_boolean_enums'.
1304 * cli/cli-setshow.c: Include "observer.h".
1305 (notify_command_param_changed_p): New.
1306 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1307 Remove 'static'.
1308 (do_setshow_command): Split it to ...
1309 (do_set_command, do_show_command): ... them. New.
1310 (do_set_command): Call observer_notify_command_param_changed if
1311 notify_command_param_changed_p returns true.
1312 (cmd_show_list): Caller update.
1313 * auto-load.c (set_auto_load_cmd): Likewise.
1314 * remote.c (show_remote_cmd): Likewise.
1315 * cli/cli-setshow.h: Update declarations.
1316 * top.c (execute_command): Call do_set_command and do_show_command.
1317
1318 * NEWS: Mention new MI notification.
1319 * mi/mi-interp.c: Declare mi_command_param_changed.
1320 (mi_interpreter_init): Attach mi_command_param_changed to
1321 observer command_param_changed.
1322 (mi_command_param_changed): New.
1323 Remove mi_suppress_breakpoint_notifications.
1324 Define global variable mi_suppress_notification.
1325 (mi_breakpoint_created): Update.
1326 (mi_breakpoint_deleted): Likewise.
1327 (mi_breakpoint_modified): Likewise.
1328 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1329 'gdb-set' and set mi_suppress_notification.
1330 * mi/mi-main.h: (mi_suppress_notification): New struct.
1331
1969df89
JK
13322012-08-09 Andreas Tobler <andreast@fgznet.ch>
1333 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1336
8bfd80db
YQ
13372012-08-09 Yao Qi <yao@codesourcery.com>
1338
1339 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1340 (skiplist): Move it to skip.c.
1341 (init_cmd_lists): Remove code setting enablebreaklist and
1342 skiplist to NULL.
1343 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1344 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1345 skiplist.
1346 * gdbcmd.h: Likewise.
1347 * skip.c (_initialize_step_skip): Move 'skiplist' from
1348 cli/cli-cmds.c.
1349
28578e6b
YQ
13502012-08-09 Yao Qi <yao@codesourcery.com>
1351
1352 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1353 * gnu-nat.c, symfile.c: Likewise.
1354
260c0b2a
DE
13552012-08-08 Aaron Gamble <agamble@google.com>
1356
1357 * utils.c (prompt_for_continue_wait_time): New static global.
1358 (make_command_stats_cleanup): Initialize it.
1359 (report_command_stats): Subtract time waiting for user.
1360 (prompt_for_continue): Track time waiting for user.
1361 (defaulted_query): Track time waiting for user.
1362
4f485ebc
DE
13632012-08-08 Doug Evans <dje@google.com>
1364
1365 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1366 UNOP_MEMVAL_TYPE.
1367 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1368 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1369 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1370 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1371 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1372 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1373 elt.
1374 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1375 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1376 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1377 (dump_prefix_expression): Handle OP_TYPE.
1378
2acf2b39
KS
13792012-08-08 Keith Seitz <keiths@redhat.com>
1380
1381 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1382 addr_start.
1383
e6712ff1
DE
13842012-08-08 Doug Evans <dje@google.com>
1385
1386 * linux-thread-db.c: #include "gdb_vecs.h".
1387 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1388 updated.
1389 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1390 (thread_db_load_search): Use a vector to iterate over path elements.
1391 Handle text appearing after "$pdir".
1392
1393 * gdb_string.h: Moved to ...
1394 * common/gdb_string.h: ... here.
1395 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1396 gdb_string.h and gdb_assert.h.
1397
ab854e54
YQ
13982012-08-08 Yao Qi <yao@codesourcery.com>
1399
1400 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1401 (tic6x_value_to_register): Likewise.
1402 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1403 and set_gdbarch_value_to_register.
1404
4f69f4c2
JK
14052012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 Jean-Marc Saffroy <saffroy@gmail.com>
1407
1408 PR 11804
1409 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1410 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1411 * gcore.c (gcore_create_callback): New function comment. Add modified
1412 parameter. Only write modified regions. Set SEC_READONLY exactly
1413 according to MODIFIED.
1414 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1415 the passed modified value to FUNC.
1416 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1417 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1418 first. New variables modified and has_anonymous. Parse the lines of
1419 smaps file. Add the passed MODIFIED value to FUNC.
1420 * procfs.c (find_memory_regions_callback): Add the passed modified
1421 value.
1422
78ac5f83
TT
14232012-08-06 Tom Tromey <tromey@redhat.com>
1424
1425 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1426 (dwarf2_frame_cache): Use it.
1427 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1428 cache initialization constraint.
1429
2c12abee
TT
14302012-08-06 Tom Tromey <tromey@redhat.com>
1431
1432 PR python/14386:
1433 * varobj.c (update_dynamic_varobj_children): Don't call
1434 PyIter_Check.
1435
4979d7f0
TT
14362012-08-06 Tom Tromey <tromey@redhat.com>
1437
1438 PR cli/14392:
1439 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1440
f3c8a52a
JK
14412012-08-06 Nathaniel Flath <flat0103@gmail.com>
1442
1443 * NEWS: New entry for 'cd' default parameters.
1444 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1445
5a1cf4d6
TT
14462012-08-03 Tom Tromey <tromey@redhat.com>
1447
1448 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1449 return.
1450
7c3270ae
UW
14512012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1452
1453 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1454 to attempting lseek/write.
1455 (inf_child_fileio_pread): Likewise for pread.
1456
ccce17b0
YQ
14572012-08-02 Yao Qi <yao@codesourcery.com>
1458
1459 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1460 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1461 add_setshow_zinteger_cmd.
1462 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1463 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1464 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1465 instead of add_setshow_zinteger_cmd.
1466 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1467 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1468 instead of add_setshow_zinteger_cmd.
1469 * frame.c (frame_debug): Add 'unsigned'.
1470 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1471 add_setshow_zinteger_cmd.
1472 * frame.h: Update the declaration of 'frame_debug'.
1473 * gdbtypes.c (overload_debug): Add 'unsigned'.
1474 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1475 add_setshow_zinteger_cmd.
1476 * inferior.h: Update declaration of 'debug_infrun'.
1477 * infrun.c (debug_infrun): Add 'unsigned'.
1478 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1479 add_setshow_zinteger_cmd.
1480 * jit.c (jit_debug): Add 'unsigned'.
1481 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1482 add_setshow_zinteger_cmd.
1483 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1484 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1485 instead of add_setshow_zinteger_cmd.
1486 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1487 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1488 add_setshow_zinteger_cmd.
1489 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1490 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1491 instead of add_setshow_zinteger_cmd.
1492 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1493 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1494 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1495 intead of add_setshow_zinteger_cmd.
1496 * mips-tdep.c (mips_debug): Add 'unsigned'.
1497 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1498 instead of add_setshow_zinteger_cmd.
1499 * monitor.c (monitor_debug): Add 'unsigned'.
1500 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1501 add_setshow_zinteger_cmd.
1502 * observer.c (observer_debug): Add 'unsigned'.
1503 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1504 add_setshow_zinteger_cmd.
1505 * parse.c (expressiondebug): Add 'unsigned'.
1506 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1507 add_setshow_zinteger_cmd.
1508 * record.c (record_debug): Add 'unsigned'.
1509 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1510 add_setshow_zinteger_cmd.
1511 * record.h: Update the declaration of 'record_debug'.
1512 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1513 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1514 add_setshow_zinteger_cmd.
1515 * serial.c (global_serial_debug_p): Add 'unsigned'.
1516 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1517 add_setshow_zinteger_cmd.
1518 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1519 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1520 add_setshow_zinteger_cmd.
1521 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1522 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1523 add_setshow_zinteger_cmd.
1524 * target.c (targetdebug): Add 'unsigned'.
1525 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1526 add_setshow_zinteger_cmd.
1527 * valops.c (overload_debug): Add 'unsigned'.
1528 * varobj.c (varobjdebug): Add 'unsigned'.
1529 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1530 add_setshow_zinteger_cmd.
1531 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1532 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1533 instead of add_setshow_zinteger_cmd.
1534
1535 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1536 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1537 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1538 instead of add_setshow_zinteger_cmd.
1539 * gdbarch.c, gdbarch.h: Re-generated.
1540
95b07c96
YQ
15412012-08-02 Yao Qi <yao@codesourcery.com>
1542
1543 * nto-tdep.c: Don't include cli/cli-decode.h and
1544 cli/cli-cmds.h.
1545 (_initialize_nto_tdep): Remove.
1546 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1547 Remove field.
1548 Remove macro nto_internal_debugging.
1549
57295b0b
RH
15502012-08-01 Richard Henderson <rth@redhat.com>
1551
1552 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1553 (mep-*-*) [gdb_target_obs]: Likewise.
1554
f782ad9b
AS
15552012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1556
1557 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1558 linux_get_siginfo_type.
1559
a14dd77e
JK
15602012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1561
1562 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1563 AT_ENTRY_POINT.
1564 (call_function_by_hand) <ON_STACK>: Call write_memory with
1565 gdbarch_breakpoint_from_pc, if possible.
1566 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1567 here.
1568
1467929f
YQ
15692012-07-31 Yao Qi <yao@codesourcery.com>
1570
1571 * tracepoint.c: Add 'static' for some variables.
1572
70976b65
YQ
15732012-07-31 Yao Qi <yao@codesourcery.com>
1574
1575 * go32-nat.c: Declare _initialize_go32_nat.
1576 * ser-go32.c: Declare _initialize_ser_dos.
1577 * top.c (do_chdir_cleanup): Add 'static'.
1578
eff9c3e6
KS
15792012-07-30 Keith Seitz <keiths@redhat.com>
1580
1581 * linespec.c (linespec_lex_number): A number followed
1582 by quotes is a valid number, too.
1583
728400d7
TT
15842012-07-30 Tom Tromey <tromey@redhat.com>
1585
1586 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1587
fcf303ab
UW
15882012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1589
1590 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1591 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1592
4e969b4f
AB
15932012-07-30 Andrew Burgess <aburgess@broadcom.com>
1594
1595 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1596 invalid or reevaluated to prevent prevent references to possibly
1597 delete'd type objects being left in the varobj.
1598
c4bfde41
JK
15992012-07-27 Tom Tromey <tromey@redhat.com>
1600 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 * copying.awk: Print buffer-read-only and vi ro markers.
1603 * copying.c: Rebuild.
1604 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1605 * gdbarch.c, gdbarch.h: Rebuild.
1606 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1607 buffer-read-only and vi ro markers.
1608 * features/arm-with-iwmmxt.c: Rebuild.
1609 * features/arm-with-m-fpa-layout.c: Rebuild.
1610 * features/arm-with-m-vfp-d16.c: Rebuild.
1611 * features/arm-with-m.c: Rebuild.
1612 * features/arm-with-neon.c: Rebuild.
1613 * features/arm-with-vfpv2.c: Rebuild.
1614 * features/arm-with-vfpv3.c: Rebuild.
1615 * features/i386/amd64-avx-linux.c: Rebuild.
1616 * features/i386/amd64-avx.c: Rebuild.
1617 * features/i386/amd64-linux.c: Rebuild.
1618 * features/i386/amd64.c: Rebuild.
1619 * features/i386/i386-avx-linux.c: Rebuild.
1620 * features/i386/i386-avx.c: Rebuild.
1621 * features/i386/i386-linux.c: Rebuild.
1622 * features/i386/i386-mmx-linux.c: Rebuild.
1623 * features/i386/i386-mmx.c: Rebuild.
1624 * features/i386/i386.c: Rebuild.
1625 * features/i386/x32-avx-linux.c: Rebuild.
1626 * features/i386/x32-avx.c: Rebuild.
1627 * features/i386/x32-linux.c: Rebuild.
1628 * features/i386/x32.c: Rebuild.
1629 * features/mips-dsp-linux.c: Rebuild.
1630 * features/mips-linux.c: Rebuild.
1631 * features/mips64-dsp-linux.c: Rebuild.
1632 * features/mips64-linux.c: Rebuild.
1633 * features/rs6000/powerpc-32.c: Rebuild.
1634 * features/rs6000/powerpc-32l.c: Rebuild.
1635 * features/rs6000/powerpc-403.c: Rebuild.
1636 * features/rs6000/powerpc-403gc.c: Rebuild.
1637 * features/rs6000/powerpc-405.c: Rebuild.
1638 * features/rs6000/powerpc-505.c: Rebuild.
1639 * features/rs6000/powerpc-601.c: Rebuild.
1640 * features/rs6000/powerpc-602.c: Rebuild.
1641 * features/rs6000/powerpc-603.c: Rebuild.
1642 * features/rs6000/powerpc-604.c: Rebuild.
1643 * features/rs6000/powerpc-64.c: Rebuild.
1644 * features/rs6000/powerpc-64l.c: Rebuild.
1645 * features/rs6000/powerpc-7400.c: Rebuild.
1646 * features/rs6000/powerpc-750.c: Rebuild.
1647 * features/rs6000/powerpc-860.c: Rebuild.
1648 * features/rs6000/powerpc-altivec32.c: Rebuild.
1649 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1650 * features/rs6000/powerpc-altivec64.c: Rebuild.
1651 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1652 * features/rs6000/powerpc-cell32l.c: Rebuild.
1653 * features/rs6000/powerpc-cell64l.c: Rebuild.
1654 * features/rs6000/powerpc-e500.c: Rebuild.
1655 * features/rs6000/powerpc-e500l.c: Rebuild.
1656 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1657 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1658 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1659 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1660 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1661 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1662 * features/rs6000/powerpc-vsx32.c: Rebuild.
1663 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1664 * features/rs6000/powerpc-vsx64.c: Rebuild.
1665 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1666 * features/rs6000/rs6000.c: Rebuild.
1667 * features/s390-linux32.c: Rebuild.
1668 * features/s390-linux32v1.c: Rebuild.
1669 * features/s390-linux32v2.c: Rebuild.
1670 * features/s390-linux64.c: Rebuild.
1671 * features/s390-linux64v1.c: Rebuild.
1672 * features/s390-linux64v2.c: Rebuild.
1673 * features/s390x-linux64.c: Rebuild.
1674 * features/s390x-linux64v1.c: Rebuild.
1675 * features/s390x-linux64v2.c: Rebuild.
1676 * features/tic6x-c62x-linux.c: Rebuild.
1677 * features/tic6x-c62x.c: Rebuild.
1678 * features/tic6x-c64x-linux.c: Rebuild.
1679 * features/tic6x-c64x.c: Rebuild.
1680 * features/tic6x-c64xp-linux.c: Rebuild.
1681 * features/tic6x-c64xp.c: Rebuild.
1682
826f0041
TT
16832012-07-27 Tom Tromey <tromey@redhat.com>
1684
1685 * c-exp.y (classify_name): Avoid assignment in condition.
1686
84552b16
PA
16872012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1688
1689 * amd64-windows-tdep.c: Include "frame.h".
1690 (amd64_windows_skip_trampoline_code): New function.
1691 (amd64_windows_init_abi): Add trampoline registration.
1692
a8a64aa8
YQ
16932012-07-27 Yao Qi <yao@codesourcery.com>
1694
1695 * tracepoint.c (cur_traceframe_number): Remove.
1696 (set_tfile_traceframe): Remove.
1697 (tfile_trace_find, tfile_fetch_registers): Update callers.
1698 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1699 (tfile_open, tfile_trace_find): Likewise.
1700
d99067cb
YQ
17012012-07-27 Yao Qi <yao@codesourcery.com>
1702
1703 * thread.c (switch_to_thread): Don't call registers_changed.
1704
f2e8016f
TT
17052012-07-26 Tom Tromey <tromey@redhat.com>
1706
f782ad9b
AS
1707 * Makefile.in (SFILES): Remove objc-exp.y.
1708 (YYFILES): Remove objc-exp.c.
1709 (YYOBJ): Remove objc-exp.o.
1710 (local-maintainer-clean): Don't mention objc-exp.c.
1711 * c-exp.y: Include objc-lang.h.
1712 (%union) <class>: New field.
1713 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1714 (exp): Clone subscript production for OBJC_LBRAC. Add various
1715 Objective C productions.
1716 (msglist, msgarglist, msgarg): New productions.
1717 (array_mod, func_mod, operator): Clone productions for
1718 OBJC_LBRAC.
1719 (parse_string_or_char): Handle '@' strings.
1720 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1721 (classify_name): Check la_name_of_this. Recognize ObjC class
1722 names.
1723 * objc-exp.y: Remove.
1724 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1725 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1726
f66713d2
JK
17272012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1728
1729 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1730
7cfe01b4
JK
17312012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1732
1733 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1734 and decrement.
1735
5ba19b4c
TT
17362012-07-26 Tom Tromey <tromey@redhat.com>
1737
1738 * copying.c: Rebuild.
1739 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1740 'no_class'.
1741
27618ce4
TT
17422012-07-26 Tom Tromey <tromey@redhat.com>
1743
1744 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1745 immediate_quit.
1746 (print_objfile_statistics): Likewise.
1747 (maintenance_print_symbols): Likewise.
1748 (maintenance_print_msymbols): Likewise.
1749 (maintenance_print_objfiles): Likewise.
1750 * psymtab.c (print_partial_symbols): Call QUIT.
1751 (maintenance_print_psymbols): Likewise. Don't modify
1752 immediate_quit.
1753 * copying.c (show_copying_command): Don't modify immediate_quit.
1754 (show_warranty_command): Likewise.
1755 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1756
dd3818c8
KS
17572012-07-26 Keith Seitz <keiths@redhat.com>
1758
1759 * linespec.c (linespec_lexer_lex_number): The input
1760 is also a valid number if the next character is a comma
1761 or colon.
1762
23a80689
JB
17632012-07-26 Joel Brobecker <brobecker@adacore.com>
1764
1765 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1766 configure options.
1767
29f77997
TG
17682012-07-26 Tristan Gingold <gingold@adacore.com>
1769
1770 * machoread.c: Include gdb_bfd.h.
1771
a55c1f32
TG
17722012-07-26 Tristan Gingold <gingold@adacore.com>
1773
1774 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1775 offset.
1776
56eb65bd
SP
17772012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1778
1779 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1780 SIZE to size_t.
1781 (dwarf2_evaluate_loc_desc): Likewise.
1782 (dwarf2_loc_desc_needs_frame): Likewise.
1783 (locexpr_describe_location_1): Likewise.
1784 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1785 size_t.
1786 (struct dwarf2_loclist_baton): Likewise.
1787 * dwarf2read.c (struct dwarf_block): Likewise.
1788 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1789 (decode_locdesc): Expand SIZE and I to size_t.
1790
aec8845c
JK
17912012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1792
1793 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1794
33d7655b
JB
17952012-07-25 Joel Brobecker <brobecker@adacore.com>
1796
1797 * doublest.c (convert_doublest_to_floatformat): If the exponent
1798 is too small, treat the value as zero. If the exponent is too
1799 large, treat the value as infinity.
1800
a22d44ff
JB
18012012-07-25 Joel Brobecker <brobecker@adacore.com>
1802
1803 * configure.ac: Add --enable-lmcheck configure option.
1804 * configure: Regenerate.
1805
d6b28940
TT
18062012-07-25 Tom Tromey <tromey@redhat.com>
1807
f782ad9b
AS
1808 * NEWS: Mention maint info bfds.
1809 * gdb_bfd.c (all_bfds): New global.
1810 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1811 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1812 New functions.
d6b28940 1813
6e73ba20
RC
18142012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1815
1816 * configure.tgt: Add v850*-*-rtems*.
1817
d560eebd
TT
18182012-07-25 Tom Tromey <tromey@redhat.com>
1819
1820 * macrotab.c (macro_bcache_str): Remove cast.
1821
d7cbec71
HZ
18222012-07-25 Hui Zhu <hui_zhu@mentor.com>
1823
1824 * linespec.c (linespec_lexer_lex_number): Update comments,
1825 change the return and add check to make sure the input is
1826 the decimal numbers.
1827 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1828 false, call linespec_lexer_lex_string.
1829
882f447f
TT
18302012-07-24 Tom Tromey <tromey@redhat.com>
1831
1832 * symfile.c (symbol_file_add): Don't open BFD twice.
1833
53ab4066 18342012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1835
1836 * breakpoint.c (create_breakpoint): Store condition for pending
1837 breakpoints.
1838
108fb0f7
AS
18392012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1840
1841 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1842 (m68k_return_value): Handle complex types like structures.
1843 (m68k_svr4_return_value): Likewise.
1844
1634dcbe
JK
18452012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1846
1847 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1848 parameters to bfd_get_section_name.
1849
e2d12c21
YQ
18502012-07-24 Yao Qi <yao@codesourcery.com>
1851
1852 * cli/cli-setshow.c: Handle case 'var_uinteger'
1853 and 'var_zuninteger' together. Handle case 'var_integer' and
1854 'var_zinteger' together.
1855
64b92e45
KS
18562012-07-23 Keith Seitz <keiths@redhat.com>
1857
1858 * linespec.c (convert_linespec_to_sal): Don't add
1859 any symbols to the result vector if symbol_to_sal
1860 returns zero.
1861
0f5f4ffe
KS
18622012-07-23 Keith Seitz <keiths@redhat.com>
1863
1864 * linespec.c (decode_objc): Record the function name
1865 in the linespec.
1866
da1cc82f
TT
18672012-07-23 Tom Tromey <tromey@redhat.com>
1868
1869 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1870 counting.
1871 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1872 (map_vmap): Acquire a reference to the BFD.
1873
6c18f3e0
SP
18742012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1875
1876 * p-valprint.c (pascal_object_print_value): Replace potentially
1877 unsafe alloca with xmalloc/xfree.
1878 * valops.c (search_struct_method): Likewise.
1879
695c3173
TT
18802012-07-23 Tom Tromey <tromey@redhat.com>
1881
1882 * solib-svr4.c (enable_break): Update.
1883 * bfd-target.h (target_bfd_reopen): Update documentation.
1884
08d2cd74
TT
18852012-07-23 Tom Tromey <tromey@redhat.com>
1886
1887 * symfile.c (separate_debug_file_exists): Update.
1888 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1889 (reread_symbols): Update.
1890 * elfread.c (build_id_verify): Update.
1891 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1892 bfd_open_maybe_remote.
1893
596f7d67
TT
18942012-07-23 Tom Tromey <tromey@redhat.com>
1895
1896 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1897
8ac244b4
TT
18982012-07-23 Tom Tromey <tromey@redhat.com>
1899
1900 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1901 and 'abfd'.
1902 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1903 and 'abfd'.
1904 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1905 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1906 'abfd'.
1907 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1908 * objfiles.c (allocate_objfile): Acquire a new reference.
1909 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1910 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1911 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1912 a cleanup for 'nbfd'.
1913 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1914 for 'nbfd'.
1915 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1916 make a cleanup for 'abfd'.
1917 (symbol_file_add): Make a BFD cleanup.
1918
64c31149
TT
19192012-07-23 Tom Tromey <tromey@redhat.com>
1920
1921 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1922 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1923 * corelow.c (core_open): Use gdb_bfd_fopen.
1924 * dsrec.c (load_srec): Use gdb_bfd_openr.
1925 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1926 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1927 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1928 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1929 (gdb_bfd_fdopenr): New functions.
1930 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1931 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1932 (gdb_bfd_fdopenr): Declare.
1933 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1934 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1935 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1936 gdb_bfd_openr_next_archived_file.
1937 (macho_check_dsym): Use gdb_bfd_openr.
1938 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1939 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1940 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1941 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1942 gdb_bfd_openr.
1943 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1944 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1945 gdb_bfd_openr_next_archived_file.
1946 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1947 Use gdb_bfd_openr.
1948 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1949 gdb_bfd_openr.
1950 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1951 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1952 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1953 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1954 (symfile_bfd_open): Use gdb_bfd_fopen.
1955 (generic_load): Use gdb_bfd_openr.
1956 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1957
520b0001
TT
19582012-07-23 Tom Tromey <tromey@redhat.com>
1959
1960 * bfd-target.c (target_bfd_reopen): Update.
1961 * cli/cli-dump.c (bfd_openr_with_cleanup)
1962 (bfd_openw_with_cleanup): Update.
1963 * corelow.c (core_open): Update.
1964 * dsrec.c (load_srec): Update.
1965 * exec.c (exec_file_attach): Update.
1966 * gcore.c (create_gcore_bfd): Update.
1967 * gdb_bfd.c (gdb_bfd_ref): Return void.
1968 (gdb_bfd_open): Update.
1969 * gdb_bfd.h (gdb_bfd_ref): Return void.
1970 Update comments.
1971 * jit.c (jit_bfd_try_read_symtab): Update.
1972 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1973 * machoread.c (macho_symfile_read_all_oso): Update.
1974 (macho_check_dsym): Update.
1975 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1976 * remote-m32r-sdi.c (m32r_load): Update.
1977 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1978 * rs6000-nat.c (add_vmap): Update.
1979 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1980 Update.
1981 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1982 * solib-spu.c (spu_bfd_open): Update.
1983 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1984 * spu-linux-nat.c (spu_bfd_open): Update.
1985 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1986 (generic_load): Update.
1987 * windows-nat.c (windows_make_so): Update.
1988
2322ff16
SP
19892012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1990
1991 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1992
3def0b36
PA
19932012-07-20 Jeff Kenton <jkenton@tilera.com>
1994
1995 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1996 SIGTRAMP_FRAME unwinding.
1997
e615022a
DE
19982012-07-20 Doug Evans <dje@google.com>
1999
2000 * NEWS: Document new options "set/show use-deprecated-index-sections",
2001 and delete reference to --use-deprecated-index-sections.
2002 * symfile.h (use_deprecated_index_sections): Delete.
2003 * dwarf2read.c (use_deprecated_index_sections): Make static.
2004 (read_index_from_section): Update wording of how to load
2005 deprecated index sections.
2006 (_initialize_dwarf2_read): New options
2007 "set/show use-deprecated-index-sections".
2008 * main.c (captured_main): Delete --use-deprecated-index-sections.
2009
64776a0b
PA
20102012-07-20 Pedro Alves <palves@redhat.com>
2011
2012 PR threads/11692
2013 PR gdb/12203
2014
2015 * infrun.c (handle_inferior_event) <new thread>: Don't special
2016 case minus_one_ptid.
2017 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2018 * linux-thread-db.c (thread_get_info_callback): Don't return early
2019 if the thread is zombie.
2020 (thread_from_lwp): Change return type to void. Rewrite stale
2021 comment.
2022 (attach_thread): Don't return early if the thread is zombie,
2023 instead set its "dying" flag.
2024 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2025 (find_new_threads_callback): Don't return early if the thread is
2026 zombie.
2027
09826ec5
PA
20282012-07-20 Pedro Alves <palves@redhat.com>
2029
2030 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2031 * target.c (target_wait): Likewise.
2032 (str_comma_list_concat_elem, do_option, target_options_to_string):
2033 New functions.
2034 * target.h (target_options_to_string): Declare.
2035
f7a35f02
TT
20362012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 Tom Tromey <tromey@redhat.com>
2038
2039 * dwarf2read.c (dwarf_decode_macros)
2040 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2041 DW_MACRO_GNU_transparent_include_alt>: New cases.
2042 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2043 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2044
b81e1ee0
TT
20452012-07-20 Tom Tromey <tromey@redhat.com>
2046
2047 * dwarf2read.c (try_open_dwo_file): Don't call
2048 gdb_bfd_stash_filename.
2049
99c1624c
PA
20502012-07-20 Pedro Alves <palves@redhat.com>
2051
2052 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2053 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2054 (i386_process_record): Tweak description comments.
2055
4ffa4fc7
PA
20562012-07-20 Pedro Alves <palves@redhat.com>
2057
2058 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2059 (i386_process_record): Use record_read_memory.
2060 * record.c (record_read_memory): New function.
2061 (record_arch_list_add_mem, record_exec_insn): Use
2062 record_read_memory.
2063 * record.h (record_read_memory): Declare.
2064
c24343e2
YQ
20652012-07-20 Yao Qi <yao@codesourcery.com>
2066
2067 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2068 NULL for xfree.
2069
90f47860
PA
20702012-07-19 Pedro Alves <palves@redhat.com>
2071
2072 * record.c (record_resume): Ask the target beneath to report all
2073 signals.
2074
01093045
DE
20752012-07-19 Doug Evans <dje@google.com>
2076
2077 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2078 there's no section at address zero.
2079 (dwarf2_record_block_ranges): Ditto.
2080
a7c3d162
YQ
20812012-07-19 Yao Qi <yao@codesourcery.com>
2082
2083 * command.h, remote.c: Fix a typo in comment.
2084
608b4967
TT
20852012-07-19 Tom Tromey <tromey@redhat.com>
2086
2087 PR exp/13206:
2088 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2089 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2090 OP_DECLTYPE>: New cases.
2091 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2092 (type_exp): Add new productions.
2093 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2094 and decltype.
2095 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2096 New case.
2097 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2098 OP_DECLTYPE>: New case.
2099 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2100 New case.
2101 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2102 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2103
274b54d7
TT
21042012-07-19 Tom Tromey <tromey@redhat.com>
2105
2106 * c-exp.y (enum token_flags): New.
2107 (struct token) <cxx_only>: Remove.
2108 <flags>: New field.
2109 (tokentab3, tokentab2, ident_tokens): Update.
2110 (lex_one_token): Update. Handle FLAG_SHADOW.
2111
9eaf6705
TT
21122012-07-19 Tom Tromey <tromey@redhat.com>
2113
2114 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2115 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2116 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2117 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2118 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2119 type_exp production where appropriate.
2120 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2121 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2122 <UNOP_MEMVAL_TYPE>: New case.
2123 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2124 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2125 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2126 <UNOP_MEMVAL_TYPE>: New case.
2127 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2128 UNOP_REINTERPRET_CAST>: Update.
2129 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2130 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2131 UNOP_REINTERPRET_CAST>: Update.
2132 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2133 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2134 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2135 constants.
2136
6ace3df1
YQ
21372012-07-19 Yao Qi <yao@codesourcery.com>
2138 Jan Kratochvil <jan.kratochvil@redhat.com>
2139
2140 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2141 and case 'var_optional_filename' together.
2142 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2143 instead of add_setshow_optional_filename_cmd for setshow command
2144 'args'. Set completer for 'set args'.
2145
48faced0
DE
21462012-07-18 Doug Evans <dje@google.com>
2147
2148 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2149 * common/gdb_vecs.c: New file, contents from utils.c.
2150 * common/host-defs.h: New file, contents from defs.h.
2151 * utils.h: New file, contents from defs.h.
2152 * defs.h: Move all declarations of objects defined in utils.c
2153 to utils.h (except QUIT() and related).
2154 #include "utils.h", "host-defs.h".
2155 * probe.h (probe_p): Move here from gdb_vecs.h.
2156 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2157 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2158 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2159 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2160 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2161 (COMMON_OBS): Add gdb_vecs.o.
2162 (gdb_vecs.o): New rule.
2163
66f1999b
KS
21642012-07-18 Keith Seitz <keiths@redhat.com>
2165
2166 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2167 parameter. If non-zero, use SYMNAME as the canonical name
2168 for the SaL.
2169 Update all callers.
2170 (convert_linespec_to_sals): Use add_sal_to_sals for
2171 expressions, too.
2172 (decode_line_full): No need to "fill in missing canonical names"
2173 anymore. Simply make cleanups for the allocated names.
2174
5d94e27b
KS
21752012-07-18 Keith Seitz <keiths@redhat.com>
2176
2177 * linespec.c (struct linespec): Constify expression,
2178 source_filename, function_name, and label_name.
2179 (symbol_not_found_error): Make all parameters const.
2180 (linespec_parser_delete): No need to check for NULL
2181 when using xfree. Cast const char * to char * for xfree.
2182
af4908ba
KS
21832012-07-18 Keith Seitz <keiths@redhat.com>
2184
2185 * breakpoint.c (invalid_thread_id_error): New function.
2186 (find_condition_and_thread): Use invalid_thread_id_error.
2187 (watch_command_1): Likewise.
2188
853254db
TT
21892012-07-18 Tom Tromey <tromey@redhat.com>
2190
2191 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2192 * contrib/cc-with-tweaks.sh: New file.
2193
2ec9a5e0
TT
21942012-07-18 Tom Tromey <tromey@redhat.com>
2195
2196 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2197 (locate_dwz_sections): Recognize .gdb_index.
2198 (create_cus_from_index_list): New function.
2199 (create_cus_from_index): Use it. Handle .dwz data.
2200 (read_index_from_section): New function, extracted from
2201 dwarf2_read_index.
2202 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2203 if needed.
2204
36586728
TT
22052012-07-18 Tom Tromey <tromey@redhat.com>
2206
2207 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2208 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2209 <is_dwz>: New field.
2210 (struct dwz_file): New.
2211 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2212 (locate_dwz_sections, dwarf2_get_dwz_file)
2213 (get_abbrev_section_for_cu): New functions.
2214 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2215 (read_and_check_type_unit_head): Add abbrev_section argument.
2216 (create_debug_types_hash_table): Update.
2217 (init_cutu_and_read_dies): Use proper abbrev section.
2218 (init_cutu_and_read_dies_no_follow): Likewise.
2219 (set_partial_user): Do nothing if PST==NULL.
2220 (read_comp_units_from_section): New function.
2221 (create_all_comp_units): Use it.
2222 (scan_partial_symbols, partial_die_parent_scope): Update.
2223 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2224 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2225 (find_partial_die): Add offset_in_dwz argument. Update.
2226 (guess_partial_die_structure_name, fixup_partial_die): Update.
2227 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2228 DW_FORM_GNU_strp_alt.
2229 (read_indirect_string_from_dwz): New function.
2230 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2231 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2232 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2233 (follow_die_offset): Add offset_in_dwz argument.
2234 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2235 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2236 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2237 Handle new macro forms.
2238 (dwarf_decode_macros): Update.
2239 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2240 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2241 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2242 (create_debug_types_hash_table): Use correct abbrev section.
2243 (get_debug_line_section): New function.
2244 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2245 (process_full_comp_unit): Pass 'required' argument to
2246 end_symtab_get_static_block.
2247 * buildsym.h (end_symtab_get_static_block): Update.
2248 * buildsym.c (end_symtab_get_static_block): Add 'required'
2249 argument.
2250 (end_symtab, end_expandable_symtab): Update.
2251
4bf44c1c
TT
22522012-07-18 Tom Tromey <tromey@redhat.com>
2253
2254 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2255 (pagesize): Remove.
2256 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2257 (zlib_decompress_section): Remove.
2258 (dwarf2_read_section): Use gdb_bfd_map_section.
2259 (munmap_section_buffer): Remove.
2260 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2261 munmap_section_buffer.
2262 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2263 (struct gdb_bfd_section_data): New.
2264 (free_one_bfd_section): New function.
2265 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2266 (get_section_descriptor, zlib_decompress_section)
2267 (gdb_bfd_map_section): New functions.
2268 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2269
bb397797
TT
22702012-07-18 Tom Tromey <tromey@redhat.com>
2271
2272 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2273
6ec53d05
TT
22742012-07-18 Tom Tromey <tromey@redhat.com>
2275
2276 * gdb_bfd.c (struct gdb_bfd_data): New.
2277 (gdb_bfd_cache): New global.
2278 (struct gdb_bfd_cache_search): New.
2279 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2280 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2281 * gdb_bfd.h (gdb_bfd_open): Declare.
2282
f9a062ff
TT
22832012-07-18 Tom Tromey <tromey@redhat.com>
2284
2285 * utils.c (make_cleanup_bfd_unref): Rename from
2286 make_cleanup_bfd_close.
2287 * defs.h (make_cleanup_bfd_unref): Rename from
2288 make_cleanup_bfd_close.
2289 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2290 (bfd_openw_with_cleanup): Update.
2291 * corelow.c (core_open): Update.
2292 * dsrec.c (load_srec): Update.
2293 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2294 * remote-m32r-sdi.c (m32r_load): Update.
2295 * remote-mips.c (mips_load_srec): Update.
2296 (pmon_load_fast): Update.
2297 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2298 Update.
2299 (darwin_bfd_open): Update.
2300 * solib.c (solib_bfd_fopen): Update.
2301 * symfile-mem.c (symbol_file_add_from_memory): Update.
2302 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2303 (symfile_bfd_open): Update.
2304 (generic_load): Update.
2305
d6ad71ba
TT
23062012-07-18 Tom Tromey <tromey@redhat.com>
2307
2308 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2309 (pmon_load_fast): Likewise.
2310 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2311 (m32r_upload_command): Likewise.
2312 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2313 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2314 Use make_cleanup_bfd_close.
2315
a4453b7e
TT
23162012-07-18 Tom Tromey <tromey@redhat.com>
2317
2318 * symfile.c (symfile_bfd_open): Don't copy name. Call
2319 gdb_bfd_stash_filename.
2320 (load_command): Open the new BFD before freeing the old.
2321 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2322 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2323 Call gdb_bfd_stash_filename.
2324 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2325 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2326 gdb_bfd_stash_filename.
2327 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2328 Free found_pathname.
2329 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2330 gdb_bfd_stash_filename.
2331 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2332 * machoread.c (macho_add_oso_symfile): Call
2333 gdb_bfd_stash_filename.
2334 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2335 gdb_bfd_stash_filename.
2336 (macho_check_dsym): Don't copy filename. Call
2337 gdb_bfd_stash_filename.
2338 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2339 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2340 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2341 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2342 * exec.c (exec_close): Don't free the BFD's filename.
2343 (exec_file_attach): Don't copy the filename. Call
2344 gdb_bfd_stash_filename.
2345 * corelow.c (core_close): Don't free the BFD's filename.
2346 (core_open): Call gdb_bfd_stash_filename.
2347 * corefile.c (reopen_exec_file): Remove #if 0 code.
2348 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2349 pathname.
2350 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2351
cbb099e8
TT
23522012-07-18 Tom Tromey <tromey@redhat.com>
2353
2354 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2355 gdb_bfd_unref.
2356 (free_dwo_file): Use gdb_bfd_unref.
2357 * cli/cli-dump.c: Include gdb_bfd.h.
2358 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2359 (bfd_openr_with_cleanup): Likewise.
2360 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2361 gdb_bfd_unref.
2362 * utils.c: Include gdb_bfd.h.
2363 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2364 * symfile.c: Include gdb_bfd.h.
2365 (separate_debug_file_exists): Use gdb_bfd_unref.
2366 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2367 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2368 (generic_load): Use gdb_bfd_ref.
2369 (reread_symbols): Use gdb_bfd_unref.
2370 * symfile-mem.c: Include gdb_bfd.h.
2371 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2372 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2373 * solib.c: Include gdb_bfd.h.
2374 (solib_bfd_fopen): Use gdb_bfd_ref.
2375 (solib_bfd_open): Use gdb_bfd_unref.
2376 (free_so_symbols): Use gdb_bfd_unref.
2377 (reload_shared_libraries_1): Use gdb_bfd_unref.
2378 * solib-spu.c: Include gdb_bfd.h.
2379 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2380 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2381 gdb_bfd_unref.
2382 * solib-frv.c: Include gdb_bfd.h.
2383 (enable_break2): Use gdb_bfd_unref.
2384 * solib-dsbt.c: Include gdb_bfd.h.
2385 (enable_break2): Use gdb_bfd_unref.
2386 * solib-darwin.c: Include gdb_bfd.h.
2387 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2388 gdb_bfd_unref.
2389 (darwin_bfd_open): Use gdb_bfd_unref.
2390 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2391 * remote-mips.c: Include gdb_bfd.h.
2392 (mips_load_srec): Use gdb_bfd_ref.
2393 (pmon_load_fast): Use gdb_bfd_ref.
2394 * remote-m32r-sdi.c: Include gdb_bfd.h.
2395 (m32r_load): Use gdb_bfd_ref.
2396 * record.c: Include gdb_bfd.h.
2397 (record_save_cleanups): Use gdb_bfd_unref.
2398 (cmd_record_save): Use gdb_bfd_unref.
2399 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2400 gdb_bfd_unref.
2401 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2402 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2403 * objfiles.c: Include gdb_bfd.h.
2404 (free_objfile): Use gdb_bfd_unref.
2405 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2406 gdb_bfd.c.
2407 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2408 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2409 (macho_check_dsym): Likewise.
2410 * m32r-rom.c: Include gdb_bfd.h.
2411 (m32r_load): Use gdb_bfd_ref.
2412 (m32r_upload_command): Use gdb_bfd_ref.
2413 * jit.c: Include gdb_bfd.h.
2414 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2415 * gdb_bfd.h: New file.
2416 * gdb_bfd.c: New file.
2417 * gcore.c: Include gdb_bfd.h.
2418 (create_gcore_bfd): Use gdb_bfd_ref.
2419 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2420 (gcore_command): Use gdb_bfd_unref.
2421 * exec.c: Include gdb_bfd.h.
2422 (exec_close): Use gdb_bfd_unref.
2423 (exec_close_1): Use gdb_bfd_unref.
2424 (exec_file_attach): Use gdb_bfd_ref.
2425 * elfread.c: Include gdb_bfd.h.
2426 (build_id_verify): Use gdb_bfd_unref.
2427 * dsrec.c: Include gdb_bfd.h.
2428 (load_srec): Use gdb_bfd_ref.
2429 * corelow.c: Include gdb_bfd.h.
2430 (core_close): Use gdb_bfd_unref.
2431 (core_open): Use gdb_bfd_ref.
2432 * bfd-target.c: Include gdb_bfd.h.
2433 (target_bfd_xclose): Use gdb_bfd_unref.
2434 (target_bfd_reopen): Use gdb_bfd_ref.
2435 * Makefile.in (SFILES): Add gdb_bfd.c.
2436 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2437 (COMMON_OBS): Add gdb_bfd.o.
2438
ed1d1739
KS
24392012-07-18 Keith Seitz <keiths@redhat.com>
2440
2441 * breakpoint.c (find_condition_and_thread): Initialize
2442 TASK and REST.
2443 (create_breakpiont): find_condition_and_thread will now
2444 initialize COND_STRING, THREAD, and REST (and TASK).
2445 (addr_string_to_sals): Likewise.
2446
eab402df
PA
24472012-07-18 Pedro Alves <palves@redhat.com>
2448
2449 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2450 Pull the single step breakpoints out of the target.
2451
2b963b68
SDJ
24522012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2453
2454 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2455 * stap-probe.c (compile_probe_arg): Likewise.
2456
6bac7473
SDJ
24572012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2458
2459 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2460 (elf_compile_to_ax): Likewise.
2461 * infrun.c (insert_exception_resume_from_probe): Likewise.
2462 (check_exception_resume): Remove `objfile' variable.
2463 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2464 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2465 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2466 (compare_entries): Rename to...
2467 (compare_probes): ...this. Adjust function to work with
2468 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2469 respectively.
2470 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2471 `VEC (probe_p) *'.
2472 (print_ui_out_info): Adjust argument to be `struct probe *'.
2473 (info_probes_for_ops): Adjust internal computations to use
2474 `VEC (probe_p) *'.
2475 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2476 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2477 gen_info_probes_table_values>: Remove `objfile' argument.
2478 (struct probe) <objfile>: New field.
2479 (find_probe_by_pc): Remove `objfile' argument.
2480 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2481 (stap_get_probe_argument_count): Likewise.
2482 (stap_get_arg): Likewise.
2483 (stap_evaluate_probe_argument): Likewise.
2484 (stap_compile_to_ax): Likewise.
2485 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2486 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2487 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2488 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2489 sym_compile_to_ax>: Likewise.
2490
3347eb1a 24912012-07-18 Terry Guo <terry.guo@arm.com>
2492
2493 PR 14329
2494 * defs.h (GDB_MI_MSG_WIDTH): New.
2495 * ser_base (ser_base_read_error_fd): New function.
2496 (do_ser_base_readchar): Poll error file descriptor as well as
2497 standard output.
f782ad9b 2498 (generic_readchar): Refactor error handling.
3347eb1a 2499
80c8d323
JB
25002012-07-18 Joel Brobecker <brobecker@adacore.com>
2501
2502 * NEWS: Create a new section for the next release branch.
2503 Rename the section of the current branch, now that it has
2504 been cut.
2505
b45a0664 25062012-07-18 Joel Brobecker <brobecker@adacore.com>
2507
2508 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2509 * version.in: Bump version to 7.5.50.20120718-cvs.
2510
09cf2b22
KS
25112012-07-17 Keith Seitz <keiths@redhat.com>
2512
2513 * linespec.c (linespec_parse_line_offset): Make parameter
2514 const.
2515
8f043999
JK
25162012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2517
2518 PR 11914
2519 * f-valprint.c (info_common_command): New variable frame_id.
2520 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2521 * printcmd.c (print_variable_and_value): Extend function comment.
2522 Add comment for invalidated FRAME.
2523 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2524 FI form FRAME_ID after each print_frame_local_vars.
2525 (struct print_variable_and_value_data): Change frame to frame_id.
2526 (do_print_variable_and_value): New variable frame, initialize it from
2527 p->frame_id. Add comment for invalidated FRAME.
2528 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2529 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2530 for invalidated FRAME.
2531
ae5e0686
MK
25322012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2533 Pedro Alves <palves@redhat.com>
2534
2535 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2536 loop.
2537
5049c5be
TT
25382012-07-16 Tom Tromey <tromey@redhat.com>
2539
2540 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2541
2908cac6
DE
25422012-07-15 Doug Evans <dje@google.com>
2543
094b34ac
DE
2544 * dwarf2read.c (stmt_list_hash): New struct.
2545 (type_unit_group): Embed "per_cu" member, remove pointer.
2546 New union member "t", move member "tus" into it, all uses updated.
2547 New member "hash", replaces member "line_offset, all uses updated.
2548 (quick_file_names): Replace member "offset" with "hash", all uses
2549 updated.
2550 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2551 (hash_file_name_entry, eq_file_name_entry): Call them.
2552 (hash_type_unit_group, eq_type_unit_group): Ditto.
2553 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2554 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2555 (dw2_get_file_names): Update.
2556 (create_type_unit_group): Replace "per_cu" arg with "cu".
2557 All callers updated. Fix "quick" (.gdb_index) handling.
2558 (get_type_unit_group): Replace "per_cu" arg with "cu".
2559 All callers updated.
2560 (build_type_unit_groups): Don't reset tu_stats.
2561
2908cac6
DE
2562 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2563 "tab_cur_size". Change member "tab" to be a htab_t.
2564 (create_filename_seen_cache): Update.
2565 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2566 (filename_seen): Update.
2567
a2b6eff5
DE
25682012-07-13 Doug Evans <dje@google.com>
2569
2570 * symtab.c (filename_seen): Update comment.
2571
4359dff1
JK
25722012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2573 Doug Evans <dje@google.com>
2574
2575 * buildsym.c (end_symtab_1): Split it to ...
2576 (end_symtab_get_static_block): ... this ...
2577 (end_symtab_from_static_block): ... and this function.
2578 (end_symtab, end_expandable_symtab): Call them.
2579 * buildsym.h (end_symtab_get_static_block)
2580 (end_symtab_from_static_block): New declarations.
2581 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2582 Set its valid CU ranges.
2583
a24f71ab
JK
25842012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2585
2586 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2587 DW_OP_GNU_parameter_ref.
2588
d76b7dbc
JK
25892012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2592 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2593
9fdc877b
DE
25942012-07-13 Doug Evans <dje@google.com>
2595
2596 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2597 (filename_seen_cache): New struct.
2598 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2599 (create_filename_seen_cache): New function.
2600 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2601 (filename_seen): Delete arg "first". New arg "cache". All callers
2602 updated.
2603 (output_source_filename_data): New struct.
2604 (output_source_filename): Delete arg "first". New arg "data".
2605 All callers updated.
2606 (sources_info): Delete local "first". New locals "data", "cleanups".
2607 Rewrite to use filename_seen_cache.
2608 (add_partial_filename_data): Delete member "first". New member
2609 "filename_seen_cache". All uses updated.
2610 (make_source_files_completion_list): Rewrite to use
2611 filename_seen_cache.
2612
f80c6f3f
DE
26132012-07-12 Doug Evans <dje@google.com>
2614
2615 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2616
0bfa869d
DE
26172012-07-10 Doug Evans <dje@google.com>
2618
f4dc4d17
DE
2619 PR gdb/13498
2620 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2621 all_type_unit_groups, type_unit_groups, tu_stats.
2622 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2623 All uses updated. Add type_unit_group to union "s".
2624 (type_unit_group): New struct.
2625 (IS_TYPE_UNIT_GROUP): New macro.
2626 (abbrev_table): Delete unused member "section".
2627 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2628 (dw2_get_cu): Assert not used with type_unit_group.
2629 (dw2_get_primary_cu): New function.
2630 (dw2_build_type_unit_groups_reader): New function.
2631 (dw2_build_type_unit_groups): New function.
2632 (dw2_get_file_names): Assert not called on type units.
2633 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2634 Redo loop to iterate over type unit groups instead of type units.
2635 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2636 (read_abbrev_offset): New function.
2637 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2638 updated.
2639 (create_partial_symtab): New function.
2640 (process_psymtab_comp_unit_reader): Assert not used with type units.
2641 Call create_partial_symtab.
2642 (process_psymtab_type_unit): Delete.
2643 (hash_type_unit_group, eq_type_unit_group): New functions.
2644 (allocate_type_unit_groups_table): New function.
2645 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2646 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2647 (create_type_unit_group, get_type_unit_group): New functions.
2648 (tu_abbrev_offset): New struct.
2649 (sort_tu_by_abbrev_offset): New function.
2650 (add_type_unit_group_to_table): New function.
2651 (build_type_unit_groups): New function.
2652 (build_type_psymtabs_reader): New function.
2653 (build_type_psymtab_dependencies): New function.
2654 (build_type_psymtabs): Rewrite.
2655 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2656 is seen in a type unit.
2657 (process_queue): Move symtab expansion debugging printfs here.
2658 Call process_full_type_unit for type units.
2659 (compute_symtab_includes): Assert not called for type units.
2660 (process_cu_includes): Don't call compute_symtab_includes for
2661 type units.
2662 (process_full_type_unit): New function.
2663 (process_imported_unit_die): Flag an error if called for type units.
2664 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2665 updated. Assert not called for type units.
2666 (read_file_scope): Call dwarf2_start_symtab.
2667 (setup_type_unit_groups): New function.
2668 (read_type_unit_scope): Rewrite.
2669 (abbrev_table_read_table): Initialize abbrev_table->offset.
2670 (abbrev_table_free_cleanup): New function.
2671 (dwarf2_start_symtab): New function.
2672 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2673 * buildsym.c (finish_block_internal): New arg "expandable".
2674 All callers updated.
2675 (start_symtab): Move most contents to ...
2676 (restart_symtab): ... here. New function.
2677 (reset_symtab_globals): New function.
2678 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2679 Call reset_symtab_globals.
2680 (end_symtab, end_expandable_symtab): New functions.
2681 (set_missing_symtab, augment_type_symtab): New functions.
2682 * buildsym.h (end_expandable_symtab): Declare.
2683 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2684 * psympriv.h (struct partial_symtab): New member "anonymous".
2685 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2686 anonymous psymtabs.
2687 (read_psymtabs_with_filename): Ditto.
2688 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2689 (expand_symtabs_matching_via_partial): Ditto.
2690 (dump_psymtab): Update.
0bfa869d
DE
2691 * dictionary.c (dict_add_pending): New function.
2692 * dictionary.h (dict_add_pending): Declare.
2693
45e58e77
DE
26942012-07-09 Doug Evans <dje@google.com>
2695
b74db436
DE
2696 * buildsym.c (start_subfile): Remove unnecessary check for
2697 name == NULL.
2698
fd55216c
DE
2699 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2700
6721b2ec
DE
2701 * dwarf2read.c (load_full_type_unit): Simplify.
2702
b4dd5633
DE
2703 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2704 to struct signatured_type **. All uses updated.
2705
45e58e77
DE
2706 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2707 All callers updated.
2708
e314d629
TT
27092012-07-09 Tom Tromey <tromey@redhat.com>
2710
2711 * c-exp.y (check_parameter_typelist): New function.
2712 (parameter_typelist): Call it.
2713 * eval.c (make_params): Handle '(void)' case.
2714 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2715 '(void)' case.
2716
aa7c7447
JK
27172012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2718
2719 * common/linux-ptrace.c: Include gdb_assert.h.
2720 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2721 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2722 stdint.h.
2723 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2724 functions.
2725 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2726 * linux-nat.c (linux_child_post_attach)
2727 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2728
889003ed
JK
27292012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2730
2731 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2732 nptl <2.7 bug workaround for core files.
2733
da559b09
JK
27342012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2735
2736 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2737 clearing.
2738 (save_siginfo): Remove.
2739 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2740 call.
2741 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2742 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2743 * linux-nat.h (struct lwp_info): Remove field siginfo.
2744
f865ee35
JK
27452012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2746
2747 Code cleanup for the next patch.
2748 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2749 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2750 call for it.
2751 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2752 (ia64_linux_stopped_data_address):
2753 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2754 the return value.
2755 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2756 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2757 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2758 call for it.
2759
76b83c51
JK
27602012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2761
2762 PR 14321
2763 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2764 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2765
a6fb9c08
TT
27662012-07-06 Tom Tromey <tromey@redhat.com>
2767
2768 * c-exp.y (DOTDOTDOT): New token.
2769 (func_mod, exp): Use parameter_typelist.
2770 (parameter_typelist): New production.
2771 (tokentab3): Add "..." token.
2772 * eval.c (make_params): Handle varargs.
2773 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2774 varargs.
2775
71918a86
TT
27762012-07-06 Tom Tromey <tromey@redhat.com>
2777
2778 PR exp/9608:
2779 * c-exp.y (%union) <tvec>: Change type.
2780 (func_mod): Now uses <tvec> type.
2781 (exp): Update for tvec change.
2782 (direct_abs_decl): Push the typelist.
2783 (func_mod): Return a typelist.
2784 (nonempty_typelist): Update for tvec change.
2785 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2786 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2787 * parse.c (pop_type_list): New function.
2788 (push_typelist): New function.
2789 (follow_types): Handle tp_function_with_arguments.
2790 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2791 (enum type_pieces) <tp_function_with_arguments>: New constant.
2792 (union type_stack_elt) <typelist_val>: New field.
2793 (push_typelist): Declare.
2794
fcde5961
TT
27952012-07-06 Tom Tromey <tromey@redhat.com>
2796
2797 * c-exp.y (%union) <type_stack>: New field.
2798 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2799 (ptr_operator_ts): New production.
2800 (ptype): Update.
2801 * parse.c (type_stack_reserve): New function.
2802 (check_type_stack_depth): Use it.
2803 (pop_type_stack, append_type_stack, push_type_stack)
2804 (get_type_stack, type_stack_cleanup): New functions.
2805 (follow_types): Handle tp_type_stack.
2806 (_initialize_parse): Simplify initialization.
2807 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2808 constant.
2809 (union type_stack_elt) <stack_val>: New field.
2810 (get_type_stack, append_type_stack, push_type_stack)
2811 (type_stack_cleanup): Declare.
2812
1a7d0ce4
TT
28132012-07-06 Tom Tromey <tromey@redhat.com>
2814
2815 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2816 Remove.
2817 (struct type_stack): New.
2818 * parse.c (type_stack, type_stack_size, type_stack_depth):
2819 Remove.
2820 (type_stack): New global.
2821 (parse_exp_in_context, check_type_stack_depth)
2822 (insert_into_type_stack, insert_type, push_type, push_type_int)
2823 (insert_type_address_space, pop_type, pop_type_int)
2824 (_initialize_parse): Update.
2825
16d01384
TT
28262012-07-06 Tom Tromey <tromey@redhat.com>
2827
2828 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2829 Remove %type.
2830
9bfc60bf
SP
28312012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2832
2833 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2834
d5161074
SP
28352012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2836 Jan Kratochvil <jan.kratochvil@redhat.com>
2837
2838 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2839 alloca with xmalloc/xfree.
2840
a74bc576
SP
28412012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2842
2843 * MAINTAINERS (Write After Approval): Add myself to the list.
2844
667e0a4b
DE
28452012-07-05 Doug Evans <dje@google.com>
2846
2847 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2848
34b536a8
HZ
28492012-07-05 Hui Zhu <hui_zhu@mentor.com>
2850
2851 * ax-gdb.c (cli/cli-utils.h): New include.
2852 (linespec.h): Ditto.
2853 (agent_eval_command_one): New function.
2854 (agent_command_1): Ditto.
2855 (agent_command): Call function agent_command_1.
2856 (agent_eval_command): Ditto.
2857 (_initialize_ax_gdb): Change help for "maint agent"
2858 and "maint agent-eval".
2859
e6f0bce7
HZ
28602012-07-05 Hui Zhu <hui_zhu@mentor.com>
2861
2862 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2863 * cli/cli-utils.c (check_for_argument): New function.
2864 * cli/cli-utils.h (check_for_argument): Ditto.
2865
1b3371b1
L
28662012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2867
2868 * NEWS: Mention x32 ABI support.
2869
23e2d720
L
28702012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2871
2872 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2873 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2874
2875 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2876 and pc_regnum_from_eax to -1. Update SP regnum from
2877 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2878 needed.
2879
2880 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2881 pc_regnum_from_eax.
2882
836bf454
JK
28832012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2884
2885 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2886 * dwarf2expr.h: Include gdbtypes.h.
2887 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2888 these forward declarations.
2889 (cu_offset, sect_offset): Move these ...
2890 * gdbtypes.h: Remove include dwarf2expr.h.
2891 (cu_offset, sect_offset): ... here.
2892
1e55e04f
L
28932012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2894
2895 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2896 (amd64_linux_sigtramp_code): This.
2897 (amd64_x32_linux_sigtramp_code): New.
2898 (LINUX_SIGTRAMP_LEN): Updated.
2899 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2900
7d0e21ad
JK
29012012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2902
2903 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2904
8775fd2d
JK
29052012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2906
2907 * config.in: Regenerate.
2908 * configure: Regenerate.
2909 * configure.ac: Remove check for gnu/libc-version.h.
2910 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2911 gnu/libc-version.h.
2912 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2913 variables libc_version, libc_major and libc_minor. Replace sscanf by
2914 inferior_has_bug. Extend the comment.
2915
fcb44371
JK
29162012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2917
2918 * linux-thread-db.c (inferior_has_bug): New function.
2919 (thread_db_find_new_threads_silently): Return boolean as checked by
2920 inferior_has_bug, describe it in the comments.
2921 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2922 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2923 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2924 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2925 if UNTIL_NO_NEW,
2926
09406207
DE
29272012-07-02 Doug Evans <dje@google.com>
2928
0907af0c
DE
2929 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2930 related to queue management.
2931
09406207
DE
2932 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2933 instead of "debug dwarf2-die" in debugging printfs.
2934 (create_debug_info_hash_table_reader): Ditto.
2935 (create_debug_info_hash_table): Ditto.
2936 (init_dwo_file): Ditto.
2937 (init_cutu_and_read_dies): Add debugging printf.
2938 (init_cutu_and_read_dies_no_follow): Ditto.
2939 (process_psymtab_comp_unit_reader): Ditto.
2940
d3ce09f5
SS
29412012-07-02 Stan Shebs <stan@codesourcery.com>
2942
2943 Add target-side support for dynamic printf.
2944 * NEWS: Mention the additional style.
2945 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2946 (struct bp_location): New field cmd_bytecode.
2947 * breakpoint.c: Include format.h.
2948 (disconnected_dprintf): New global.
2949 (parse_cmd_to_aexpr): New function.
2950 (build_target_command_list): New function.
2951 (insert_bp_location): Call it.
2952 (remove_breakpoints_pid): Skip dprintf breakpoints.
2953 (print_one_breakpoint_location): Ditto.
2954 (dprintf_style_agent): New global.
2955 (dprintf_style_enums): Add dprintf_style_agent.
2956 (update_dprintf_command_list): Add agent case.
2957 (agent_printf_command): New function.
2958 (_initialize_breakpoint): Add new commands.
2959 * common/ax.def (printf): New bytecode.
2960 * ax.h (ax_string): Declare.
2961 * ax-gdb.h (gen_printf): Declare.
2962 * ax-gdb.c: Include cli-utils.h, format.h.
2963 (gen_printf): New function.
2964 (maint_agent_print_command): New function.
2965 (_initialize_ax_gdb): Add maint agent-printf command.
2966 * ax-general.c (ax_string): New function.
2967 (ax_print): Add printf disassembly.
2968 * Makefile.in (SFILES): Add format.c
2969 (COMMON_OBS): Add format.o.
2970 * common/format.h: New file.
2971 * common/format.c: New file.
2972 * printcmd.c: Include format.h.
2973 (ui_printf): Call parse_format_string.
2974 * remote.c (remote_state): New field breakpoint_commands.
2975 (PACKET_BreakpointCommands): New enum.
2976 (remote_breakpoint_commands_feature): New function.
2977 (remote_protocol_features): Add new BreakpointCommands entry.
2978 (remote_can_run_breakpoint_commands): New function.
2979 (remote_add_target_side_commands): New function.
2980 (remote_insert_breakpoint): Call it.
2981 (remote_insert_hw_breakpoint): Ditto.
2982 (_initialize_remote): Add new packet configuration for
2983 target-side breakpoint commands.
2984 * target.h (struct target_ops): New field
2985 to_can_run_breakpoint_commands.
2986 (target_can_run_breakpoint_commands): New macro.
2987 * target.c (update_current_target): Handle
2988 to_can_run_breakpoint_commands.
2989
2d7b58e8
JK
29902012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2991
2992 Execute -ix and -iex only after system and user gdbinit files.
2993 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2994 processing down after gdbinit files.
2995
8690e634
JK
29962012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2997
2998 Add fnmatch-gnu module.
2999 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3000 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3001 * gnulib/aclocal.m4: Regenerate.
3002 * gnulib/config.in: Regenerate.
3003 * gnulib/configure: Regenerate.
3004 * gnulib/import/dummy.c: Remove.
3005 * gnulib/import/Makefile.am: Regenerate.
3006 * gnulib/import/Makefile.in: Likewise.
3007 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3008 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3009 * gnulib/import/alloca.c: New file.
3010 * gnulib/import/alloca.in.h: Likewise.
3011 * gnulib/import/config.charset: Likewise.
3012 * gnulib/import/fnmatch.c: Likewise.
3013 * gnulib/import/fnmatch.in.h: Likewise.
3014 * gnulib/import/fnmatch_loop.c: Likewise.
3015 * gnulib/import/localcharset.c: Likewise.
3016 * gnulib/import/localcharset.h: Likewise.
3017 * gnulib/import/m4/alloca.m4: Likewise.
3018 * gnulib/import/m4/codeset.m4: Likewise.
3019 * gnulib/import/m4/configmake.m4: Likewise.
3020 * gnulib/import/m4/fcntl-o.m4: Likewise.
3021 * gnulib/import/m4/fnmatch.m4: Likewise.
3022 * gnulib/import/m4/glibc21.m4: Likewise.
3023 * gnulib/import/m4/localcharset.m4: Likewise.
3024 * gnulib/import/m4/locale-fr.m4: Likewise.
3025 * gnulib/import/m4/locale-ja.m4: Likewise.
3026 * gnulib/import/m4/locale-zh.m4: Likewise.
3027 * gnulib/import/m4/mbrtowc.m4: Likewise.
3028 * gnulib/import/m4/mbsinit.m4: Likewise.
3029 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3030 * gnulib/import/m4/mbstate_t.m4: Likewise.
3031 * gnulib/import/m4/stdbool.m4: Likewise.
3032 * gnulib/import/m4/wchar_h.m4: Likewise.
3033 * gnulib/import/m4/wctype_h.m4: Likewise.
3034 * gnulib/import/m4/wint_t.m4: Likewise.
3035 * gnulib/import/mbrtowc.c: Likewise.
3036 * gnulib/import/mbsinit.c: Likewise.
3037 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3038 * gnulib/import/mbsrtowcs-state.c: Likewise.
3039 * gnulib/import/mbsrtowcs.c: Likewise.
3040 * gnulib/import/ref-add.sin: Likewise.
3041 * gnulib/import/ref-del.sin: Likewise.
3042 * gnulib/import/stdbool.in.h: Likewise.
3043 * gnulib/import/streq.h: Likewise.
3044 * gnulib/import/strnlen1.c: Likewise.
3045 * gnulib/import/strnlen1.h: Likewise.
3046 * gnulib/import/verify.h: Likewise.
3047 * gnulib/import/wchar.in.h: Likewise.
3048 * gnulib/import/wctype.in.h: Likewise.
3049
202cbf1c
JK
30502012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3051
3052 Support shell wildcards for 'set auto-load safe-path'.
3053 * auto-load.c: Include fnmatch.h.
3054 (filename_is_in_dir): Rename to ...
3055 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3056 it. Update function comment. Rename dir_len to pattern_len. New
3057 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3058 messages. Use gdb_filename_fnmatch.
3059 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3060 pattern.
3061 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3062 * defs.h (gdb_filename_fnmatch): New declaration.
3063 * utils.c: Include fnmatch.h.
3064 (gdb_filename_fnmatch): New function.
3065
fb7b5af4
SDJ
30662012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3067
3068 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3069 `-probe' and `-probe-stap' options.
3070
72d0e2c5
YQ
30712012-07-01 Yao Qi <yao@codesourcery.com>
3072
3073 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3074 always_inserted_off, and always_inserted_enums.
3075 Change always_inserted_mode's type to 'enum auto_boolean'.
3076 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3077 callers.
3078 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3079 of add_setshow_enum_cmd.
3080 * infrun.c: Remove can_use_displaced_stepping_auto,
3081 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3082 can_use_displaced_stepping_enum.
3083 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3084 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3085 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3086 add_setshow_enum_cmd.
3087
42e7ad6c
DE
30882012-06-30 Doug Evans <dje@google.com>
3089
3090 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3091 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3092 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3093
39cf75f7
DE
30942012-06-29 Doug Evans <dje@google.com>
3095
3096 * linespec.c: #include "stack.h".
3097 (decode_line_with_current_source): Moved here from symtab.c and
3098 renamed from decode_line_spec. All callers updated.
3099 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3100 renamed from decode_line_spec_1. All callers updated.
3101 * linespec.h (decode_line_with_current_source): Move declaration here
3102 from symtab.h and renamed from decode_line_spec.
3103 (decode_line_with_last_displayed): Move declaration here from symtab.h
3104 and renamed from decode_line_spec_1.
3105 * macrocmd.c: #include "linespec.h".
3106 * symtab.c: Remove #include "linespec.h".
3107
433df2d4
DE
31082012-06-28 Doug Evans <dje@google.com>
3109
1ce1cefd
DE
3110 * dwarf2read.c (get_cu_length): New function.
3111 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3112 (create_debug_types_hash_table): Ditto.
3113 (init_cutu_and_read_dies): Ditto.
3114 (init_cutu_and_read_dies_no_follow): Ditto.
3115
3b80fe9b
DE
3116 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3117
433df2d4
DE
3118 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3119 (struct abbrev_table): Define.
3120 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3121 abbrev_table.
3122 (init_cutu_and_read_dies): Update.
3123 (abbrev_table_alloc_abbrev): New function. Replaces
3124 dwarf_alloc_abbrev. All callers updated.
3125 (abbrev_table_add_abbrev): New function.
3126 (abbrev_table_lookup_abbrev): New function. Replaces
3127 dwarf2_lookup_abbrev. All callers updated.
3128 (abbrev_table_read_table): New function. Contents moved here from
3129 dwarf2_read_abbrevs.
3130 (dwarf2_read_abbrevs): Call it.
3131 (abbrev_table_free): New function.
3132 (dwarf2_free_abbrev_table): Call it.
3133
71caed83
SS
31342012-06-28 Stan Shebs <stan@codesourcery.com>
3135
3136 * osdata.c (info_osdata_command): Filter out "Title" columns
3137 from non-MI uses.
3138 * common/linux-osdata.c (struct osdata_type): Add title field.
3139 (osdata_table): Add titles to each entry.
3140 (linux_command_xfer_osdata): Add a column for title data.
3141
37ce89eb
SS
31422012-06-28 Stan Shebs <stan@codesourcery.com>
3143
3144 Make logging work for MI.
3145 * NEWS: Mention it.
3146 * interps.h (interp_set_logging_ftype): New typedef.
3147 (struct interp_procs): New field set_logging_proc.
3148 (current_interp_set_logging): Declare.
3149 * interps.c (current_interp_set_logging): New function.
3150 * cli/cli-logging.c: Include interps.h.
3151 (set_logging_redirect): Call current_interp_set_logging.
3152 (pop_output_files): Ditto.
3153 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3154 * mi/mi-console.h (mi_console_set_raw): Declare.
3155 * mi/mi-console.c (mi_console_set_raw): New function.
3156 * mi/mi-interp.c (saved_raw_stdout): New global.
3157 (mi_set_logging): New function.
3158 (_initialize_mi_interp): Add it to interp procs.
3159
659c9f3a
DE
31602012-06-28 Doug Evans <dje@google.com>
3161
a743abeb
DE
3162 * symtab.c (lookup_symbol_aux_objfile): Use
3163 ALL_OBJFILE_PRIMARY_SYMTABS.
3164
659c9f3a
DE
3165 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3166
da2d6d3d
JK
31672012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3168
3169 * common/buffer.c: Include inttypes.h and stdint.h.
3170 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3171
e5ef252a
PA
31722012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3173 Pedro Alves <palves@redhat.com>
3174
3175 * gdbthread.h (ALL_THREADS): New macro.
3176 (thread_list): Declare.
3177 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3178 going, but instead fall through to the stepping handling.
3179 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3180 the passed in signal. Adjust debug output.
3181 (resume_callback): Rename to ...
3182 (linux_nat_resume_callback): ... this. Pass the thread's last
3183 stop signal, if in "pass" state.
3184 (linux_nat_resume): Adjust to rename.
3185 (stop_wait_callback): New assertion. Don't respawn signals;
3186 instead let the LWP remain with SIGNALLED set.
3187 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3188 * remote.c (append_pending_thread_resumptions): New.
3189 (remote_vcont_resume): Call it.
3190 * target.h (target_resume): Extend comment.
3191
1d7975eb
IS
31922012-06-28 Iain Sandoe <iain@codesourcery.com>
3193
3194 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3195
2e3cf129
DE
31962012-06-27 Doug Evans <dje@google.com>
3197
3198 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3199 Delete have_addr_base, unused. All uses updated.
3200 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3201 (dwarf2_get_pc_bounds): Add ranges_base.
3202 (dwarf2_record_block_ranges): Ditto.
3203
1bb9788d
TT
32042012-06-27 Tom Tromey <tromey@redhat.com>
3205
3206 PR macros/7961:
3207 * varobj.c (varobj_create): Update.
3208 (varobj_set_value): Update.
3209 * tracepoint.c (validate_actionline): Update.
3210 (encode_actions_1): Update.
3211 * parse.c (parse_exp_1): Add 'pc' argument.
3212 (parse_exp_in_context): Add 'pc' argument. Change how
3213 expression_context_pc is set.
3214 (parse_expression): Update.
3215 (parse_field_expression): Update.
3216 * expression.h (parse_exp_1): Update.
3217 * eval.c (parse_to_comma_and_eval): Update.
3218 * breakpoint.c (set_breakpoint_condition): Update.
3219 (update_watchpoint): Update.
3220 (init_breakpoint_sal): Update
3221 (find_condition_and_thread): Update.
3222 (watch_command_1): Update.
3223 (update_breakpoint_locations): Update.
3224 * ada-lang.c (ada_read_renaming_var_value): Update.
3225 (create_excep_cond_exprs): Update.
3226
0bc3a05c
DE
32272012-06-27 Doug Evans <dje@google.com>
3228
3229 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3230 type units.
3231
4bdcc0c1
DE
32322012-06-26 Doug Evans <dje@google.com>
3233
3234 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3235 prototype.
3236 (error_check_comp_unit_head): New arg abbrev_section. All callers
3237 updated.
3238 (read_and_check_comp_unit_head): Ditto.
3239 (read_and_check_type_unit_head): Ditto.
3240
ee0bf529
SCR
32412012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3242
3243 New attribute 'last' for gdb.Symtab_and_line.
3244 * NEWS (Python Scripting): Add entry about the new attribute.
3245 * python/py-symtab.c (salpy_get_last): New function which
3246 implements the get method for the 'last' attribute of
3247 gdb.Symtab_and_line.
3248 (sal_object_getset): Add entry for the 'last' attribute.
3249
1c658ad5
DE
32502012-06-26 Doug Evans <dje@google.com>
3251
09262596
DE
3252 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3253 (dwo_sections): Add macinfo, macro.
3254 (dwarf2_locate_dwo_sections): Watch for macro sections.
3255 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3256 All callers updated. Handle DWO files.
3257
45cfd468
DE
3258 * NEWS: Mention new options "set debug dwarf2-read" and
3259 "set debug symtab-create".
3260 * dwarf2read.c (dwarf2_read_debug): New static global.
3261 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3262 (process_queue): Ditto.
3263 (process_full_comp_unit): Ditto.
3264 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3265 * elfread.c (elf_symfile_read): Add debugging printf.
3266 * minsyms.c (install_minimal_symbols): Ditto.
3267 * psymtab.c (allocate_psymtab): Ditto.
3268 * symfile.c (allocate_symtab): Ditto.
3269 * symtab.c (symtab_create_debug): New global.
3270 (_initialize_symtab): Add new option "set debug symtab-create".
3271 * symtab.h (symtab_create_debug): Declare.
3272
1c658ad5
DE
3273 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3274 (lookup_dwo_type_unit): Ditto.
3275
6fea9e18
L
32762012-06-26 Roland McGrath <roland@hack.frob.com>
3277 H.J. Lu <hongjiu.lu@intel.com>
3278
3279 * amd64-linux-nat.c: Include <sys/user.h>.
3280 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3281 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3282 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3283
3284 * configure.ac: Check if the fs_base and gs_base members of
3285 `struct user_regs_struct' exist.
3286 * config.in: Regenerated.
3287 * configure: Likewise.
3288
adb4fe3b
ME
32892012-06-25 Michael Eager <eager@eagercon.com>
3290
3291 PR python/14291
f782ad9b 3292 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3293
fc51cce1
MGD
32942012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3295
3296 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3297 register as a stack alignment in ARM mode.
3298
40a73391
JK
32992012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3300
3301 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3302 * gnulib/config.in: Regenerate.
3303 * gnulib/configure: Likewise.
3304 * gnulib/import/m4/extensions.m4: Update it.
3305 * gnulib/import/m4/gnulib-common.m4: Likewise.
3306 * gnulib/import/m4/memmem.m4: Likewise.
3307 * gnulib/import/m4/mmap-anon.m4: Likewise.
3308 * gnulib/import/m4/multiarch.m4: Likewise.
3309 * gnulib/import/stdint.in.h: Likewise.
3310
972daa01
YQ
33112012-06-24 Yao Qi <yao@codesourcery.com>
3312
3313 * corefile.c (write_memory_with_notification): New.
3314 * gdbcore.h: Declare write_memory_with_notification.
3315 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3316 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3317 * valops.c (value_assign): Likewise.
3318 * python/py-inferior.c (infpy_write_memory): Call
3319 'write_memory_with_notification'.
3320
8d6e0714
JK
33212012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3322
3323 * cc-with-index.sh: Use also -ex "set auto-load no".
3324
156942c7
DE
33252012-06-23 Doug Evans <dje@google.com>
3326
3327 PR 14125
3328 * NEWS: Document additions to .gdb_index.
3329 * dwarf2read.c: #include "gdb/gdb-index.h".
3330 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3331 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3332 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3333 (dwarf2_read_index): Recognize version 7.
3334 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3335 block_kind, domain): All callers updated.
3336 (dw2_find_symbol_file): Handle new index CU values.
3337 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3338 (add_index_entry): New args is_static, kind. All callers updated.
3339 (offset_type_compare, uniquify_cu_indices): New functions
3340 (symbol_kind): New function.
3341 (write_psymtabs_to_index): Remove duplicate CU values.
3342 (write_psymtabs_to_index): Write .gdb_index version 7.
3343
352b3eda
JB
33442012-06-22 Joel Brobecker <brobecker@adacore.com>
3345
3346 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3347 * configure: Regenerate.
3348
2678e2af
YQ
33492012-06-20 Yao Qi <yao@codesourcery.com>
3350
3351 * python/py-inferior.c: Update comments of infpy_read_memory
3352 and infpy_write_memory.
3353
95c391b6
TT
33542012-06-19 Tom Tromey <tromey@redhat.com>
3355
3356 PR exp/9514:
3357 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3358 (push_type_address_space): Remove.
3359 * parse.c (insert_into_type_stack): New function.
3360 (insert_type): Likewise.
3361 (insert_type_address_space): Rename from push_type_address_space.
3362 Insert tp_space_identifier.
3363 * c-exp.y (ptr_operator): New production.
3364 (abs_decl): Use ptr_operator.
3365 (space_identifier): Call insert_type_address_space.
3366 (ptype): Don't use const_or_volatile_or_space_identifier.
3367 (const_or_volatile_noopt): Call insert_type.
3368 (conversion_type_id, conversion_declarator): New productions.
3369 (operator): Use conversion_type_id.
3370
6ac9ef80
DE
33712012-06-18 Doug Evans <dje@google.com>
3372
422d65e7
DE
3373 * symtab.h (minimal_symbol): New member created_by_gdb.
3374 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3375 created by gdb.
3376 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3377 (search_symbols): Call it instead of lookup_symbol.
3378 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3379
49f6c839
DE
3380 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3381 Adjust address for DW_OP_GNU_addr_index.
3382 * dwarf2expr.h (dwarf_expr_context): Update comment.
3383 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3384 all callers updated. Handle TLS vars described with
3385 DW_OP_GNU_const_index.
3386 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3387 and DW_OP_GNU_const_index.
3388 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3389
6ac9ef80
DE
3390 * block.c (find_block_in_blockvector): Make explicit the fact that we
3391 ignore GLOBAL_BLOCK.
3392
4cd18215
TT
33932012-06-18 Tom Tromey <tromey@redhat.com>
3394
3395 * c-exp.y (operator): Remove trailing space after "delete" and
3396 "delete[]".
3397
a9b8d892
JK
33982012-06-18 Mark Kettenis <kettenis@gnu.org>
3399 Jan Kratochvil <jan.kratochvil@redhat.com>
3400
3401 Switch i386 and derived targets to ON_STACK.
3402 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3403 (amd64_dicos_init_abi): Remove its installment.
3404 * dicos-tdep.c (dicos_init_abi): Remove the
3405 set_gdbarch_call_dummy_location call. Update the comment here.
3406 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3407 (i386_dicos_init_abi): Remove its installment.
3408 * i386-tdep.c (i386_push_dummy_code): New function.
3409 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3410 i386_push_dummy_code.
3411
e2e4d78b
JK
34122012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3413
3414 Remove stale dummy frames.
3415 * breakpoint.c: Include dummy-frame.h.
3416 (longjmp_breakpoint_ops): New variable.
3417 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3418 bp_longjmp_call_dummy.
3419 (bpstat_what, bptype_string, print_one_breakpoint_location)
3420 (init_bp_location): Support bp_longjmp_call_dummy.
3421 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3422 (set_longjmp_breakpoint_for_call_dummy)
3423 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3424 functions.
3425 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3426 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3427 FIXME comment and extend the other comment for bp_call_dummy.
3428 (set_longjmp_breakpoint_for_call_dummy)
3429 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3430 * dummy-frame.c: Include gdbthread.h.
3431 (pop_dummy_frame_bpt): New function.
3432 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3433 (dummy_frame_discard): New function.
3434 (cleanup_dummy_frames): Update the comment about longjmps.
3435 * dummy-frame.h (dummy_frame_discard): New declaration.
3436 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3437 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3438 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3439 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3440 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3441 keep_going if IS_LONGJMP and there is no other reason to stop.
3442
09d5912c
TT
34432012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3444
3445 * remote-sim.c (sim_command_completer): Initialize
3446 variable 'result'.
3447
1788b2d3
JK
34482012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3449
3450 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3451 * dwarf2loc.c (call_site_parameter_matches): Support
3452 CALL_SITE_PARAMETER_PARAM_OFFSET.
3453 (needs_dwarf_reg_entry_value): Push stub value.
3454 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3455 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3456 * gdbtypes.h (enum call_site_parameter_kind): New item
3457 CALL_SITE_PARAMETER_PARAM_OFFSET.
3458 (struct call_site.parameter.u): New field param_offset.
3459
24c5c679
JK
34602012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 Code cleanup: Generalize call_site.parameter key.
3463 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3464 variable dwarf_reg. New variable kind_u. Update parameters to
3465 push_dwarf_reg_entry_value.
3466 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3467 * dwarf2expr.h (enum call_site_parameter_kind)
3468 (union call_site_parameter_u): Forward declarations.
3469 (struct dwarf_expr_context_funcs): Update parameters and their
3470 description for push_dwarf_reg_entry_value.
3471 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3472 * dwarf2loc.c (call_site_parameter_matches): New function.
3473 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3474 description. Use call_site_parameter_matches.
3475 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3476 Update parameters and their description.
3477 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3478 New variable kind_u. Adjust the caller for updated parameters.
3479 (needs_dwarf_reg_entry_value): Update parameters.
3480 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3481 instead of attr. Update for the changed fields of struct
3482 call_site_parameter.
3483 * gdbtypes.h: Include dwarf2expr.h.
3484 (enum call_site_parameter_kind): New.
3485 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3486 fb_offset into new union u.
3487
ac142d96
L
34882012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3489
3490 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3491 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3492 for x32.
3493
ba224c70
L
34942012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3495
3496 * amd64-linux-nat.c (compat_x32_clock_t): New.
3497 (compat_x32_siginfo_t): Likewise.
3498 (compat_x32_siginfo_from_siginfo): Likewise.
3499 (siginfo_from_compat_x32_siginfo): Likewise.
3500 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3501 and siginfo_from_compat_x32_siginfo for x32.
3502
7ecbc825
HZ
35032012-06-15 Hui Zhu <hui_zhu@mentor.com>
3504
3505 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3506
233dfcf0
L
35072012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3508
3509 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3510 instead of gdbarch_ptr_bit.
3511 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3512 (amd64_supply_native_gregset): Likewise.
3513 (amd64_collect_native_gregset): Likewise.
3514 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3515 (amd64_supply_xsave): Likewise.
3516 (amd64_collect_fxsave): Likewise.
3517 (amd64_collect_xsave): Likewise.
3518
6da38f42
L
35192012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3520
3521 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3522 (amd64_linux_read_description): Check DS segment register for
3523 x32 process.
3524
663b969e
TT
35252012-06-15 Tom Tromey <tromey@redhat.com>
3526
3527 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3528 init_cutu_and_read_dies.
3529
d6f05027
IS
35302012-06-15 Iain Sandoe <iain@codesourcery.com>
3531
3532 * MAINTAINERS (Write After Approval): Add myself to the list.
3533
6598ed07
TT
35342012-06-15 Tom Tromey <tromey@redhat.com>
3535
3536 * valops.c (value_find_oload_method_list): Now static.
3537 * value.h (value_find_oload_method_list): Don't declare.
3538
2b214ea6
TT
35392012-06-15 Tom Tromey <tromey@redhat.com>
3540
3541 * valops.c (find_overload_match): Use value_ind.
3542
a210c238
MR
35432012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3544
3545 * infrun.c (handle_inferior_event): Correct indentation.
3546
3771a44c
DE
35472012-06-14 Doug Evans <dje@google.com>
3548
3549 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3550 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3551 All uses updated.
3552 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3553 updated. Handle DEBUG_LOC_START_LENGTH.
3554 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3555 (loclist_describe_location): Ditto.
3556
1c5a993e
MR
35572012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3558
3559 PR backtrace/13866
3560 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3561 after hiding inline functions.
3562
0b155465
JB
35632012-06-13 Joel Brobecker <brobecker@adacore.com>
3564
3565 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3566 _initialize_inf_ttrace.
3567
45717bac
JB
35682012-06-13 Joel Brobecker <brobecker@adacore.com>
3569
3570 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3571 _initialize_hppa_hpux_nat.
3572
34370865
JB
35732012-06-13 Joel Brobecker <brobecker@adacore.com>
3574
3575 * remote-sim.c (sim_command_completer): Change type of return
3576 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3577
284c5a60
MK
35782012-06-13 Mark Kettenis <kettenis@gnu.org>
3579 Jan Kratochvil <jan.kratochvil@redhat.com>
3580
3581 PR tdep/14222
3582 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3583 stack on a 16-byte boundary.
3584
2535757a
TT
35852012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3586
3587 * jit.c (finalize_symtab): Set function's return type to 'void' by
3588 default.
3589
fff4548b
MK
35902012-06-13 Mark Kettenis <kettenis@gnu.org>
3591 H.J. Lu <hongjiu.lu@intel.com>
3592
5a83521a
MK
3593 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3594 Move bits common to both the classic LP64 and the new x32 ILP32
3595 ABI here.
3596 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3597 (amd64_x32_linux_init_abi): New function.
3598 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3599 subtype.
3600
fff4548b
MK
3601 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3602 * i386-tdep.c (i386_pseudo_register_name): Make public.
3603 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3604 * amd64-tdep.c (amd64_dword_names): Add "eip".
3605 (amd64_x32_pseudo_register_type): New function
3606 (amd64_x32_init_abi): New function.
3607
dd80ea3c
JK
36082012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 PR build/14003
3611 * inferior.h (struct inferior_suspend_state): Comment out.
3612 (struct inferior): Comment out the field suspend.
3613 * infrun.c (struct infcall_suspend_state): Comment out the field
3614 inferior_suspend.
3615 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3616 out its assignment.
3617
50af5481
JK
36182012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3621 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3622 function comment. Return ERROR for unresolved cases. Implement
3623 returning proper NAME.
3624 (yylex): Accept also NAME from classify_inner_name.
3625 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3626 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3627 LOC_TYPEDEF type.
3628 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3629
d55637df
TT
36302012-06-13 Tom Tromey <tromey@redhat.com>
3631
3632 * breakpoint.c (condition_completer): New function.
3633 (_initialize_breakpoint): Use it.
3634 * value.c (complete_internalvar): New function.
3635 * value.h (complete_internalvar): Declare.
3636
49c4e619
TT
36372012-06-13 Tom Tromey <tromey@redhat.com>
3638
3639 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3640 * breakpoint.c (catch_syscall_completer): Return a VEC.
3641 * cli/cli-cmds.c (complete_command): Update.
3642 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3643 (complete_on_enum): Likewise.
3644 * command.h: Include gdb_vecs.h.
3645 (completer_ftype): Change return type.
3646 (complete_on_cmdlist, complete_on_enum): Likewise.
3647 * completer.c (noop_completer, filename_completer)
3648 (location_completer): Return a VEC.
3649 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3650 to a VEC.
3651 (expression_completer, complete_line_internal, complete_line)
3652 (command_completer): Return a VEC.
3653 (gdb_completion_word_break_characters, line_completion_function):
3654 Update.
3655 * completer.h: Include gdb_vecs.h.
3656 (complete_line, noop_completer, filename_completer)
3657 (expression_completer, location_completer, command_completer):
3658 Update.
3659 * f-lang.c (f_word_break_characters): Return a VEC.
3660 * interps.c (interpreter_completer): Return a VEC.
3661 * language.h (struct language_defn)
3662 <la_make_symbol_completion_list>: Return a VEC.
3663 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3664 * symtab.c (free_completion_list): Take a VEC.
3665 (return_val_size, return_val_index): Remove.
3666 (return_val): Now a VEC.
3667 (completion_list_add_name): Update.
3668 (default_make_symbol_completion_list_break_on)
3669 (default_make_symbol_completion_list, make_symbol_completion_list)
3670 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3671 Return a VEC.
3672 (add_filename_to_list): Update.
3673 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3674 <list>: Now a VEC.
3675 (maybe_add_partial_symtab_filename): Update.
3676 (make_source_files_completion_list): Return a VEC.
3677 * symtab.h (default_make_symbol_completion_list_break_on)
3678 (default_make_symbol_completion_list, make_symbol_completion_list)
3679 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3680 (make_source_files_completion_list): Update.
3681
625e8578
TT
36822012-06-13 Tom Tromey <tromey@redhat.com>
3683
3684 * breakpoint.c (add_catch_command): Use completer_ftype.
3685 * breakpoint.h: Include command.h.
3686 (add_catch_command): Use completer_ftype.
3687 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3688 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3689 Use completer_ftype.
3690 * command.h (completer_ftype): New typedef.
3691 (set_cmd_completer): Use it.
3692 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3693 completer_ftype.
3694
5eb3b062
PA
36952012-06-13 Pedro Alves <palves@redhat.com>
3696
3697 Partial revert of previous change.
3698
3699 * serial.c (scb_base): New global.
3700 (serial_for_fd): New.
3701 (serial_open, serial_fdopen_ops): Link new serial in open serials
3702 chain.
3703 (do_serial_close): Unlink serial from the open serials chain.
3704
8b3ee56d
PA
37052012-06-12 Pedro Alves <palves@redhat.com>
3706
3707 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3708 threads here.
3709 (prepare_for_detach): No longer context switch here in non-stop
3710 mode.
3711 (fetch_inferior_event): Ditto.
3712 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3713 to the event thread before removing breakpoints. Switch to the
3714 event thread before inserting breakpoints and resuming.
3715 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3716 event thread before resuming.
3717 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3718 Switch to the event thread before removing breakpoints.
3719
5d60742e
EZ
37202012-06-12 Eli Zaretskii <eliz@gnu.org>
3721
3722 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3723 special characters correctly for the Windows shells. See
3724 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3725 report.
3726 [!__MINGW32__]: Remove extra double quote character from special
3727 characters.
3728
a6feecf7
SS
37292012-06-11 Stan Shebs <stan@codesourcery.com>
3730
3731 * ui-out.h: Remove #if 0 declarations.
3732 * ui-out.c: Remove #if 0 functions.
3733
ddefb60f
PA
37342012-06-11 Pedro Alves <palves@redhat.com>
3735
3736 * ser-base.c (run_async_handler_and_reschedule): New.
3737 (fd_event, push_event): Use it.
3738 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3739 reference count to 1.
3740 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3741 instead of xfree.
3742 (serial_is_open, serial_ref, serial_unref): New.
3743 * serial.h (serial_open): Adjust comment.
3744 (serial_is_open): Declare.
3745 (serial_close): Adjust comment.
3746 (serial_ref, serial_unref) Declare.
3747 (struct serial): New field 'refcnt'.
3748
d5ad6aa5
PA
37492012-06-11 Pedro Alves <palves@redhat.com>
3750
3751 Remove #if 0'd "connect" command, and unnecessary associated
3752 refcounting and serial reuse bits.
3753
3754 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3755 * serial.c (last_serial_opened): Delete.
3756 (scb_base): Delete.
3757 (serial_open): Adjust.
3758 (serial_for_fd): Delete.
3759 (serial_fdopen_ops, do_serial_close): Adjust.
3760 (serial_fdopen_ops): Adjust.
3761
318aa544
PA
37622012-06-11 Pedro Alves <palves@redhat.com>
3763
3764 * serial.c (do_serial_close): Remove early return when SCB is
3765 null.
3766
07261596
TT
37672012-06-11 Tom Tromey <tromey@redhat.com>
3768
3769 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3770
cc80f267
JK
37712012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 Fix regression by the "ambiguous linespec" series.
3774 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3775 get_last_displayed_symtab and get_last_displayed_line and depending
3776 on CURSAL.
3777
356d9f9d
TT
37782012-06-11 Tom Tromey <tromey@redhat.com>
3779
3780 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3781 (dw2_find_symbol_file): Use it.
3782
232b8704
ME
37832012-06-11 Michael Eager <eager@eagercon.com>
3784
3785 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3786 * mips-linux-tdep.h (mips_signals): New
3787
e81a37f7
TT
37882012-06-11 Tom Tromey <tromey@redhat.com>
3789
3790 * infrun.c (handle_inferior_event)
3791 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3792 breakpoint.
3793 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3794 exception logic in all cases. Update comments.
3795 (insert_longjmp_resume_breakpoint): Set the exception resume
3796 breakpoint.
3797
2e81047f
MR
37982012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3799
3800 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3801
4e32eda7
SCR
38022012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3803
3804 * valarith.c (binop_types_user_defined_p): Fix a typo.
3805
18648a37 38062012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3807 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3808
3809 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3810 * arch-utils.h: Declare.
3811 * gdbarch.sh: Add return_in_first_hidden_param_p.
3812 * gdbarch.c, gdbarch.h: Regenerated.
3813 * infcall.c (call_function_by_hand): Call
3814 gdbarch_return_in_first_hidden_param_p instead of
3815 language_pass_by_reference.
3816
3817 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3818 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3819 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3820 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3821 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3822 `cplus_return_struct_by_reference'.
3823 (tic6x_return_value): Handle language cplusplus.
3824 (tic6x_return_in_first_hidden_param_p): New.
3825 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3826
034e5797
DE
38272012-06-07 Doug Evans <dje@google.com>
3828
3829 * dwarf2read.c (dwarf2_cu): Add comment.
3830
6a00aa1e
MR
38312012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3832
3833 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3834 variable.
3835 (mips_eabi_push_dummy_call): Likewise.
3836 (mips_n32n64_push_dummy_call): Likewise.
3837 (mips_o32_push_dummy_call): Likewise.
3838 (mips_o64_push_dummy_call): Likewise.
3839
eaa05d59
MR
38402012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3841
3842 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3843
de13fcf2
MR
38442012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3845
3846 * mips-tdep.c (mips_pseudo_register_type): Use
3847 mips_float_register_p.
3848
c3a01a22
PA
38492012-06-06 Pedro Alves <palves@redhat.com>
3850
3851 * infrun.c (handle_inferior_event): Remove calls to
3852 reinit_frame_cache that follow a context_switch call.
3853
d25f45d9
PA
38542012-06-06 Pedro Alves <palves@redhat.com>
3855
3856 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3857 context_switch and remove stale comment.
3858
359f5fe6
PA
38592012-06-06 Pedro Alves <palves@redhat.com>
3860
3861 * infrun.c (struct execution_control_state): Remove
3862 `new_thread_event' field.
3863 (handle_inferior_event): Simplify new threads handling; don't
3864 resume the inferior if we find a new thread.
3865
2d4c29c5
TS
38662012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3867
3868 * NEWS: Document the deprecation of SH's 'regs' command.
3869 * inferior.h (all_registers_info): Add function declaration.
3870 * sh-tdep.c (sh_show_regs): Remove variable.
3871 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3872 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3873 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3874 (sh_show_regs_command): Remove functions.
3875 (sh_gdbarch_init): Don't set sh_show_regs.
3876 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3877 'info all-registers'.
3878 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3879 (sh64_show_regs): Remove functions.
3880 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3881
f5f1cdb6
JK
38822012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3883
3884 * configure.ac: Move development=true below AC_INIT.
3885 * configure: Regenerate.
3886
bf6309af
SS
38872012-06-05 Stan Shebs <stan@codesourcery.com>
3888
3889 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3890 gdb_stdout.
3891
45aa4659
JK
38922012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3893
3894 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3895 argument as ssize_t.
3896 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3897 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3898 * target.c (target_read_stack, target_write_memory)
3899 (target_write_raw_memory): Likewise.
3900 * target.h (target_read_stack, target_write_memory)
3901 (target_write_raw_memory): Likewise.
3902
1b162304
JK
39032012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3904
3905 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3906 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3907 * target.c (target_read_memory): Change LEN to ssize_t.
3908 * target.h (target_read_memory): Change LEN to ssize_t.
3909
8556afb4
PA
39102012-06-05 Pedro Alves <palves@redhat.com>
3911
3912 PR backtrace/13866
3913
3914 * breakpoint.c (until_break_command): Only fetch the selected
3915 frame after decode_line_1.
3916
fb139f32
PA
39172012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3918
3919 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3920 event breakpoint at _start, __start or main if a program
3921 interpreter is not found.
3922
a8e1bb34
JB
39232012-06-05 Joel Brobecker <brobecker@adacore.com>
3924
3925 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3926 Add declaration.
3927 * windows-tdep.c: #include "objfiles.h".
3928 (windows_iterate_over_objfiles_in_search_order): New function.
3929 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3930 iterate_over_objfiles_in_search_order gdbarch method to
3931 windows_iterate_over_objfiles_in_search_order.
3932 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3933
19630284
JB
39342012-06-05 Joel Brobecker <brobecker@adacore.com>
3935
3936 * gdbarch.sh: Add generation of
3937 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3938 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3939 (iterate_over_objfiles_in_search_order): New gdbarch method.
3940 * gdbarch.h, gdbarch.c: Regenerate.
3941 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3942 Add declaration.
3943 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3944 New function.
3945 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3946 out of lookup_symbol_aux_symtabs.
3947 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3948 call to lookup_symbol_aux_objfile.
3949 (struct global_sym_lookup_data): New type.
3950 (lookup_symbol_global_iterator_cb): New function.
3951 (lookup_symbol_global): Search for symbol using
3952 gdbarch_iterate_over_objfiles_in_search_order and
3953 lookup_symbol_global_iterator_cb.
3954 * findvar.c (struct minsym_lookup_data): New type.
3955 (minsym_lookup_iterator_cb): New function.
3956 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3957 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3958 and minsym_lookup_iterator_cb.
3959
67ff19f7
JB
39602012-06-05 Joel Brobecker <brobecker@adacore.com>
3961
3962 Revert the following patch:
3963 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3964 try locating the symbol in the symbol's own objfile first, before
3965 extending the search to all objfiles.
3966 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3967 out of lookup_symbol_aux_symtabs.
3968 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3969 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3970 Do not search EXCLUDE_OBJFILE.
3971 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3972 (lookup_symbol_global): Search for matches in the block's objfile
3973 first, before searching all other objfiles.
3974
ccab2054
JB
39752012-06-05 Joel Brobecker <brobecker@adacore.com>
3976
3977 * breakpoint.c (find_condition_and_thread): Stop parsing
3978 as soon as the first invalid keyword is found.
3979
e23d4a9c
JB
39802012-06-05 Joel Brobecker <brobecker@adacore.com>
3981
3982 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3983
70160166
JB
39842012-06-05 Joel Brobecker <brobecker@adacore.com>
3985
3986 * config/djgpp/djcheck.sh: Add copyright header.
3987
399501a5
JB
39882012-06-05 Joel Brobecker <brobecker@adacore.com>
3989
3990 * copyright.py (update_files, main): Fix path to update-copyright
3991 script.
3992
3770a159
JB
39932012-06-05 Joel Brobecker <brobecker@adacore.com>
3994
3995 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3996 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3997 for which a reminder to update by hand is printed.
3998
4aad0dfc
DE
39992012-06-04 Doug Evans <dje@google.com>
4000
4001 * buildsym.c (make_blockvector): Add comment.
4002
1f8cf220
PA
40032012-06-04 Pedro Alves <palves@redhat.com>
4004
4005 * arch-utils.c (default_gdb_signal_from_target): Delete.
4006 * arch-utils.h (default_gdb_signal_from_target): Delete.
4007 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4008 gdbarch_gdb_signal_from_target_p.
4009 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4010 predicate).
4011 * gdbarch.h: Regenerate.
4012 * gdbarch.c: Regenerate.
4013
86b49880
PA
40142012-06-04 Pedro Alves <palves@redhat.com>
4015
4016 * gdbarch.sh (gdb_signal_from_target): Mention that the
4017 implementation of the method must be host independent.
4018 * gdbarch.h: Regenerate.
4019
fe78531d
JK
40202012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4021
4022 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4023 parameters.
4024 (target_read_memory_bfd): New function.
4025 (symbol_file_add_from_memory): Use it.
4026
d790cf0a
DE
40272012-06-03 Doug Evans <dje@google.com>
4028
78e5175a
DE
4029 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4030 of primary symtab.
4031 (basic_lookup_transparent_type): Ditto.
4032
d790cf0a
DE
4033 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4034 (ALL_PRIMARY_SYMTABS): Use it.
4035 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4036 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4037 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4038 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4039 (basic_lookup_transparent_type): Ditto.
4040
c6e5ee5e
SDJ
40412012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4042
4043 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4044 it to optimize resolution of demangled name.
4045
a68ffae9
JK
40462012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4047
4048 * configure.ac (development): Define new variable.
4049 Call AC_CHECK_LIB for mcheck if $development.
4050 (ERROR_ON_WARNING): Enable it by default only if $development.
4051 * config.in: Regenerate.
4052 * configure: Regenerate.
4053
5299c1c4
JK
40542012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4055
4056 * target.c (target_read_memory): Make LEN argument as size_t.
4057 * target.h (target_read_memory): Likewise.
4058
40592012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4060
4061 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4062
0c56f59b
EBM
40632012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4064
4065 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4066 BookE interface for PowerPC server processors if not available
4067 in the Linux Kernel.
4068
71bdabee
KS
40692012-05-31 Keith Seitz <keiths@redhat.com>
4070
4071 * linespec.c (decode_objc): Add cleanup to free
4072 INFO.FILE_SYMTABS.
4073 (find_linespec_symbols): Add cleanup to free CLASSES.
4074 * symfile.c (find_separate_debug_file_by_debuglink): Add
4075 cleanup to free DEBUGLINK.
4076 * ui-out.c (clear_header_list): No need to check if
4077 HEADER_NEXT.COLHDR is NULL.
4078 Free HEADER_NEXT.COL_NAME.
4079
acbd605d
MGD
40802012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4081
4082 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4083 warning.
4084
65662cde
PA
40852012-05-30 Jeff Kenton <jkenton@tilera.com>
4086
4087 * configure.host (gdb_host_cpu): Handle tilegx*.
4088 (gdb_host): Handle tilegx-*-linux*.
4089 * tilegx-linux-nat.c: New file.
4090 * config/tilegx/linux.mh: New file.
4091
ade64f0e
PA
40922012-05-30 Jeff Kenton <jkenton@tilera.com>
4093
4094 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4095 tilegx-linux-tdep.o.
4096 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4097 tilegx-linux-tdep.c.
4098 * configure.tgt: Handle tilegx-*-linux*.
4099 * tilegx-tdep.h: New file.
4100 * tilegx-tdep.c: New file.
4101 * tilegx-linux-tdep.c: New file.
4102 * regformats/reg-tilegx.dat: New file.
4103
bb08bdbd
EBM
41042012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4105
4106 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4107 accounting of hw watchpoints on ppc.
4108
ebd86fb5
TJB
41092012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4110
4111 * source.c (openp): Expand tilde in path entries.
4112
0a0edcd5
DE
41132012-05-29 Doug Evans <dje@google.com>
4114
98cc87bd
DE
4115 * buildsym.c (block_compar): Fix comment.
4116 (end_symtab): Fix and clarify some comments.
4117
0a0edcd5
DE
4118 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4119 cleanup_undefined_types.
4120 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4121 All callers updated.
4122
6f0c7050
TT
41232012-05-29 Tom Tromey <tromey@redhat.com>
4124
4125 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4126 fails.
4127 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4128 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4129 fails.
4130 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4131 fails.
4132
ec95993c
TG
41332012-05-29 Tristan Gingold <gingold@adacore.com>
4134
4135 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4136 (struct darwin_info): ... New struct.
4137 (solib_darwin_pspace_data): New variable.
4138 (darwin_pspace_data_cleanup): New function.
4139 (get_darwin_info): Likewise.
4140 (darwin_dyld_version_ok, darwin_load_image_infos)
4141 (darwin_solib_get_all_image_info_addr_at_init)
4142 (darwin_solib_read_all_image_info_addr): Add info argument.
4143 Adjust code.
4144 (darwin_current_sos): Use per pspace structure.
4145 (darwin_solib_create_inferior_hook): Likewise.
4146 (darwin_clear_solib): Likewise.
4147 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4148
ae25568b
PA
41492012-05-28 Pedro Alves <palves@redhat.com>
4150
4151 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4152 block that uses them. Clear ecss before handling each event.
4153
0c5bf5a9
JK
41542012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4155
4156 * solib-svr4.c (svr4_current_sos): New comment on
4157 svr4_current_sos_via_xfer_libraries fall back.
4158
bfb05775
JK
41592012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4160
4161 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4162 it as a fallback for TYPE_IS_OPAQUE.
4163 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4164 symbols for lookup_symbol.
4165
685b1105
JK
41662012-05-24 John Steele Scott <toojays@toojays.net>
4167
4168 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4169 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4170 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4171 (check_producer): ... this new function, which also checks for ICC
4172 and caches the result.
4173 (producer_is_icc): New function.
4174 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4175 producer was ICC.
4176
22203bbf
PA
41772012-05-24 Pedro Alves <palves@redhat.com>
4178
4179 PR gdb/7205
4180
4181 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4182 (default_gdb_signal_to_target): ... this. Add comment.
4183 (default_gdb_signal_from_host): Rename to ...
4184 (default_gdb_signal_from_target): ... this. Add comment.
4185 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4186 (default_gdb_signal_to_target): ... this.
4187 (default_gdb_signal_from_host): Rename to ...
4188 (default_gdb_signal_from_target): ... this.
4189 * corelow.c (core_open): Adjust to naming change. Replace comment.
4190 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4191 (gdb_signal_from_target): ... this. Adjust to
4192 default_gdb_signal_from_host naming change. Extend comment.
4193 (gdb_signal_to_host): Rename to ...
4194 (gdb_signal_to_target): ... this. Adjust to
4195 default_gdb_signal_to_host naming change.
4196 * gdbarch.h, gdbarch.c: Renegerate.
4197
a493e3e2
PA
41982012-05-24 Pedro Alves <palves@redhat.com>
4199
4200 PR gdb/7205
4201
f782ad9b 4202 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4203
2ea28649
PA
42042012-05-24 Pedro Alves <palves@redhat.com>
4205
4206 PR gdb/7205
4207
4208 Replace target_signal with gdb_signal throughout.
4209
b09846a9
PA
42102012-05-24 Pedro Alves <palves@redhat.com>
4211
4212 PR tui/14159
4213
4214 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4215 string, instead of reusing the va_list argument.
4216
e77c107e
TT
42172012-05-24 Tom Tromey <tromey@redhat.com>
4218
4219 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4220 Remove.
4221
9fccedf7
DE
42222012-05-23 Doug Evans <dje@google.com>
4223
d50bd42b
DE
4224 * symtab.c (search_symbols): Formatting fixes.
4225 (print_symbol_info): Formatting fixes.
4226
9fccedf7
DE
4227 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4228 int64_t change to leb128 API.
4229 (read_encoded_value, decode_frame_entry_1): Ditto.
4230 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4231 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4232 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4233 (execute_stack_op): Ditto.
4234 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4235 (safe_read_uleb128, safe_read_sleb128): Ditto.
4236 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4237 (dwarf2_compile_expr_to_ax): Ditto.
4238 (locexpr_describe_location_piece): Ditto.
4239 (disassemble_dwarf_expression): Ditto.
4240 (locexpr_describe_location_1): Ditto.
4241
f3e0e960
SS
42422012-05-23 Stan Shebs <stan@codesourcery.com>
4243 Kwok Cheung Yeung <kcy@codesourcery.com>
4244
4245 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4246 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4247 (mi-cmd-info.o): New rule.
4248 * osdata.h (info_osdata_command): New declaration.
4249 * osdata.c (info_osdata_command): Change to non-static.
4250 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4251 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4252 * mi/mi-cmd-info.c: New file.
4253
c51fe631
DE
42542012-05-23 Doug Evans <dje@google.com>
4255
71cddcc1
DE
4256 * symtab.c (search_symbols): Pass NULL for file_matcher to
4257 expand_symtabs_matching if there are no files to match.
4258
c51fe631
DE
4259 * gdbtypes.c (lookup_typename): Simplify.
4260
a79378d4
PA
42612012-05-23 Pedro Alves <palves@redhat.com>
4262
4263 * arch-utils.h (default_target_signal_to_host): Delete.
4264 * arch-utils.c (default_target_signal_to_host): Delete.
4265 * gdbarch.sh (target_signal_to_host): Remove.
4266 * gdbarch.h, gdbarch.c: Regenerate.
4267
f664829e
DE
42682012-05-22 Doug Evans <dje@google.com>
4269
4270 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4271 "const gdb_byte *".
4272 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4273 (execute_cfa_program): Update to match API of leb128 functions.
4274 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4275 "const gdb_byte *".
4276 (read_unsigned_leb128, read_signed_leb128): Delete.
4277 (read_initial_length): Change type of buf argument to
4278 "const gdb_byte *".
4279 (read_encoded_value): Update to match API of leb128 functions.
4280 (decode_frame_entry): Change result to "const gdb_byte *", and
4281 similarly for "start" parameter.
4282 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4283 (dwarf2_build_frame_info): Change local frame_ptr to
4284 "const gdb_byte *".
4285 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4286 read_uleb128, read_sleb128. All callers updated.
4287 (safe_skip_leb128): New function.
4288 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4289 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4290 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4291 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4292 read_uleb128, read_sleb128.
4293 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4294 (execute_stack_op): Update to match API of leb128 functions.
4295 * dwarf2expr.h: #include "leb128.h".
4296 (read_uleb128, read_sleb128): Delete.
4297 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4298 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4299 * dwarf2loc.c (debug_loc_kind): New enum.
4300 (decode_debug_loc_addresses): New function.
4301 (decode_debug_loc_dwo_addresses): New function.
4302 (dwarf2_find_location_expression): Rewrite.
4303 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4304 (locexpr_describe_location_piece): Ditto.
4305 (disassemble_dwarf_expression): Ditto.
4306 (locexpr_describe_location_1): Ditto.
4307 (loclist_describe_location): Rewrite.
4308 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4309 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4310 (dwarf2_section_buffer_overflow_complaint): Renamed from
4311 dwarf2_macros_too_long_complaint. All callers updated.
4312 (skip_leb128): Delete.
4313 (init_cu_die_reader): Initialize reader->buffer_end.
4314 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4315 (skip_form_bytes): New arg buffer_end. All callers updated.
4316 Replace call to skip_leb128 with gdb_skip_leb128.
4317 (skip_unknown_opcode): New arg mac_end. All callers updated.
4318 (fill_in_loclist_baton): Initialize baton->from_dwo.
4319
837a1b32
MR
43202012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4321
4322 * mips-linux-nat.c (mips_linux_read_description): Use a more
4323 verbose error message.
4324
d0e64392
MR
43252012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4326
4327 * NEWS: Add MIPS/Linux DSP support.
4328 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4329 (SIGCONTEXT_DSPCTL): New macro.
4330 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4331 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4332 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4333 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4334 (N64_SIGCONTEXT_HI3): Likewise.
4335 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4336 (N64_SIGCONTEXT_LO3): Likewise.
4337 (N64_SIGCONTEXT_DSPCTL): Likewise.
4338 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4339 (mips_linux_o32_sigframe_init): Handle DSP registers.
4340 (mips_linux_n32n64_sigframe_init): Likewise.
4341
8bea7ed1
PM
43422012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4343
4344 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4345 call to abort.
4346
dab06dbe
PA
43472012-05-22 Pedro Alves <palves@redhat.com>
4348
4349 * target.h (store_waitstatus): Move declaration ...
4350 * inf-child.h (store_waitstatus): ... here.
4351 * target.c: Move inclusion of gdb_wait.h, and ...
4352 (store_waitstatus): ... this ...
4353 * inf-child.c: ... here.
4354 * linux-nat.c: Include inf-child.h.
4355 * rs6000-nat.c: Include inf-child.h.
4356 * spu-linux-nat.c: Include inf-child.h.
4357
43011e52
PM
43582012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4359
4360 * tracepoint.c (start_tracing): Add missing i18n markup.
4361 (stop_tracing, set_trace_user): Ditto.
4362 (set_trace_notes, set_trace_stop_notes): Ditto.
4363
b1af9e97
TT
43642012-05-21 Tom Tromey <tromey@redhat.com>
4365
4366 PR c++/7173:
4367 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4368 types.
4369 * value.h (value_cast_pointers): Update.
4370 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4371 (value_cast): Update.
4372 (update_search_result): New function.
4373 (do_search_struct_field): New, from search_struct_field. Check
4374 for ambiguous results.
4375 (search_struct_field): Rewrite.
4376 * infcall.c (value_arg_coerce): Update.
4377 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4378 value_cast_pointers.
4379 * ada-lang.c (ada_convert_actual): Update.
4380
e9e5e6b3
TT
43812012-05-21 Tom Tromey <tromey@redhat.com>
4382
4383 * macroexp.c (macro_stringify): Terminate the string.
4384
1564a261
JK
43852012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4386
4387 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4388 Describe it.
4389 * auto-load.c (auto_load_expand_dir_vars): New function.
4390 (auto_load_safe_path_vec_update): Use it, remove the
4391 substitute_path_component call thanks to it.
4392 (auto_load_objfile_script): Remove the debug_file_directory processing.
4393 Use auto_load_expand_dir_vars, remove the substitute_path_component
4394 call thanks to it.
4395 * configure: Regenerate.
4396 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4397 path. Escape $ also for $debugdir.
4398 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4399 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4400
a3ec0bb1
DE
44012012-05-20 Doug Evans <dje@google.com>
4402
4403 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4404 before use. Check for symtab->includes == NULL before scanning it.
4405
d467df4e
MR
44062012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4407
4408 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4409
4cc0665f
MR
44102012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4411
4412 * NEWS: Add microMIPS support and "set mips compression",
4413 "show mips compression" commands.
4414 * mips-tdep.h (mips_isa): New enum.
4415 (gdbarch_tdep): Add mips_isa.
4416 (mips_pc_is_mips16): Update prototype.
4417 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4418 * mips-tdep.c (mips_compression_mips16): New variable.
4419 (mips_compression_micromips): Likewise.
4420 (mips_compression_strings): Likewise.
4421 (mips_compression_string): Likewise.
4422 (is_mips16_isa, is_micromips_isa): New functions.
4423 (is_mips16_addr): Rename to...
4424 (is_compact_addr): ... this.
4425 (unmake_mips16_addr): Likewise to...
4426 (unmake_compact_addr): ... this.
4427 (make_mips16_addr): Likewise to...
4428 (make_compact_addr): ... this.
4429 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4430 functions.
4431 (mips_elf_make_msymbol_special): Handle microMIPS code.
4432 (msymbol_is_special): Rename to...
4433 (msymbol_is_mips16): ... this.
4434 (mips_make_symbol_special, mips_pc_is_mips16): Update
4435 accordingly.
4436 (msymbol_is_mips, msymbol_is_micromips): New functions.
4437 (mips16_to_32_reg): Rename to...
4438 (mips_reg3_to_reg): ... this.
4439 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4440 (mips_pc_isa): Likewise.
4441 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4442 code.
4443 (mips_fetch_instruction): Pass return status instead of printing
4444 an error message if requested. Handle microMIPS code. Bail out
4445 on an invalid ISA.
4446 (micromips_op): New macro.
4447 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4448 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4449 (b6s4_op, b7s3_reg): Likewise.
4450 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4451 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4452 (mips_insn_size): New function.
4453 (mips32_next_pc): Update mips_fetch_instruction call.
4454 (micromips_relative_offset7): New function.
4455 (micromips_relative_offset10): Likewise.
4456 (micromips_relative_offset16): Likewise.
4457 (micromips_pc_insn_size): Likewise.
4458 (micromips_bc1_pc): Likewise.
4459 (micromips_next_pc): Likewise.
4460 (unpack_mips16): Update mips_fetch_instruction call.
4461 (extended_mips16_next_pc): Update according to change to
4462 mips16_to_32_reg.
4463 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4464 code.
4465 (mips16_scan_prologue): Update mips_fetch_instruction call.
4466 Update according to change to mips16_to_32_reg.
4467 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4468 (mips_insn16_frame_base_sniffer): Likewise.
4469 (micromips_decode_imm9): New function.
4470 (micromips_scan_prologue): Likewise.
4471 (mips_micro_frame_cache): Likewise.
4472 (mips_micro_frame_this_id): Likewise.
4473 (mips_micro_frame_prev_register): Likewise.
4474 (mips_micro_frame_sniffer): Likewise.
4475 (mips_micro_frame_unwind): New variable.
4476 (mips_micro_frame_base_address): New function.
4477 (mips_micro_frame_base): New variable.
4478 (mips_micro_frame_base_sniffer): New function.
4479 (mips32_scan_prologue): Update mips_fetch_instruction call.
4480 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4481 rather than for MIPS16.
4482 (mips_insn32_frame_base_sniffer): Likewise.
4483 (mips_addr_bits_remove): Handle microMIPS code.
4484 (deal_with_atomic_sequence): Rename to...
4485 (mips_deal_with_atomic_sequence): ... this. Update the type
4486 of the variable used to hold an instruction. Remove the ISA bit
4487 check. Update mips_fetch_instruction call.
4488 (micromips_deal_with_atomic_sequence): New function.
4489 (deal_with_atomic_sequence): Likewise.
4490 (mips_about_to_return): Handle microMIPS code. Update
4491 mips_fetch_instruction call.
4492 (heuristic_proc_start): Check for the standard MIPS ISA rather
4493 than for MIPS16. Update mips_pc_is_mips16 and
4494 mips_fetch_instruction calls. Handle microMIPS code.
4495 (mips_push_dummy_code): Handle microMIPS code.
4496 (mips_eabi_push_dummy_call): Likewise.
4497 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4498 (mips_o64_push_dummy_call): Handle microMIPS code.
4499 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4500 (is_delayed): Remove function.
4501 (mips_single_step_through_delay): Replace the call to is_delayed
4502 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4503 Handle microMIPS code.
4504 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4505 microMIPS code.
4506 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4507 call.
4508 (micromips_in_function_epilogue_p): New function.
4509 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4510 call.
4511 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4512 Handle microMIPS.
4513 (gdb_print_insn_mips): Likewise.
4514 (mips_breakpoint_from_pc): Likewise.
4515 (mips_remote_breakpoint_from_pc): New function.
4516 (mips32_instruction_has_delay_slot): Simplify making use of the
4517 updated mips_fetch_instruction interface.
4518 (micromips_instruction_has_delay_slot): New function.
4519 (mips16_instruction_has_delay_slot): Simplify making use of the
4520 updated mips_fetch_instruction interface.
4521 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4522 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4523 calls. Handle microMIPS code.
4524 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4525 (mips_skip_trampoline_code): Handle microMIPS code.
4526 (global_mips_compression): New function.
4527 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4528 file flags. Register the microMIPS remote breakpoint handler
4529 and heuristic frame unwinder.
4530 (show_mips_compression): New function.
4531 (_initialize_mips_tdep): Add the "set mips compression" and
4532 "show mips compression" commands.
4533
22e048c9
SDJ
45342012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4535
4536 * ada-lang.c:
4537 * ada-tasks.c:
4538 * ada-varobj.c:
4539 * amd64-darwin-tdep.c:
4540 * arm-symbian-tdep.c:
4541 * arm-tdep.c:
4542 * avr-tdep.c:
4543 * ax-gdb.c:
4544 * bfin-linux-tdep.c:
4545 * breakpoint.c:
4546 * c-valprint.c:
4547 * cli/cli-cmds.c:
4548 * coffread.c:
4549 * cp-support.c:
4550 * cris-tdep.c:
4551 * dwarf2-frame-tailcall.c:
4552 * dwarf2-frame.c:
4553 * dwarf2expr.c:
4554 * dwarf2loc.c:
4555 * dwarf2read.c:
4556 * elfread.c:
4557 * eval.c:
4558 * expprint.c:
4559 * f-valprint.c:
4560 * frv-tdep.c:
4561 * h8300-tdep.c:
4562 * hppa-hpux-tdep.c:
4563 * hppa-tdep.c:
4564 * hppanbsd-tdep.c:
4565 * i386-nto-tdep.c:
4566 * i386-tdep.c:
4567 * i387-tdep.c:
4568 * ia64-tdep.c:
4569 * jit.c:
4570 * linespec.c:
4571 * linux-tdep.c:
4572 * lm32-tdep.c:
4573 * m2-valprint.c:
4574 * m32c-tdep.c:
4575 * m32r-rom.c:
4576 * m32r-tdep.c:
4577 * m68k-tdep.c:
4578 * m68klinux-tdep.c:
4579 * mi/mi-main.c:
4580 * microblaze-tdep.c:
4581 * mips-linux-tdep.c:
4582 * mips-tdep.c:
4583 * mn10300-tdep.c:
4584 * p-valprint.c:
4585 * parse.c:
4586 * ppc-linux-tdep.c:
4587 * ppc-sysv-tdep.c:
4588 * printcmd.c:
4589 * python/py-finishbreakpoint.c:
4590 * python/py-inferior.c:
4591 * python/py-infthread.c:
4592 * python/py-type.c:
4593 * python/python.c:
4594 * remote-fileio.c:
4595 * remote-m32r-sdi.c:
4596 * remote-mips.c:
4597 * reverse.c:
4598 * rl78-tdep.c:
4599 * rs6000-aix-tdep.c:
4600 * rs6000-tdep.c:
4601 * s390-tdep.c:
4602 * score-tdep.c:
4603 * sh64-tdep.c:
4604 * skip.c:
4605 * solib-darwin.c:
4606 * solib-dsbt.c:
4607 * solib-frv.c:
4608 * sparc-tdep.c:
4609 * spu-multiarch.c:
4610 * spu-tdep.c:
4611 * stack.c:
4612 * symfile.c:
4613 * symtab.c:
4614 * tic6x-tdep.c:
4615 * tracepoint.c:
4616 * v850-tdep.c:
4617 * valarith.c:
4618 * valprint.c:
4619 * value.c:
4620 * xcoffread.c:
4621 * xtensa-tdep.c:
4622 * ada-lang.c:
4623 * ada-tasks.c:
4624 * ada-varobj.c:
4625 * amd64-darwin-tdep.c:
4626 * arm-symbian-tdep.c:
4627 * arm-tdep.c: Delete unused variables.
4628
aff139ff
JK
46292012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 Rename $ddir to $datadir.
4632 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4633 * auto-load.c (auto_load_safe_path_vec_update)
4634 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4635 * configure: Regenerate.
4636 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4637 Likewise. Remove the 'use $ddir' help string.
4638
f7bfa992
JK
46392012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4642 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4643
9cb709b6
TT
46442012-05-18 Tom Tromey <tromey@redhat.com>
4645
4646 PR exp/13907:
4647 * valprint.h (struct value_print_options) <symbol_print>: New
4648 field.
4649 * valprint.c (user_print_options): Add default for symbol_print.
4650 (show_symbol_print): New function.
4651 (generic_val_print): Respect symbol_print.
4652 (_initialize_valprint): Add "print symbol" setting.
4653 * f-valprint.c (f_val_print): Respect symbol_print.
4654 * c-valprint.c (c_val_print): Respect symbol_print.
4655 * NEWS: Update.
4656 * printcmd.c (print_address_symbolic): Return int. Ignore some
4657 zero-size symbols.
4658 (print_address_demangle): Return int.
4659 * defs.h: (print_address_symbolic): Return int.
4660 * value.h (print_address_demangle): Return int.
4661
b012acdd
TT
46622012-05-18 Tom Tromey <tromey@redhat.com>
4663
4664 * valprint.c (val_print_string): Don't print leading space.
4665 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4666 print space before string or vtbl.
4667 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4668 before string.
4669 * jv-valprint.c (java_value_print): Print space before string.
4670 * go-valprint.c (print_go_string): Print space before string.
4671 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4672 space before string.
4673 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4674 space before string or vtbl.
4675 * auxv.c (fprint_target_auxv): Print space after address.
4676
1d51a733
TT
46772012-05-18 Tom Tromey <tromey@redhat.com>
4678
4679 * printcmd.c (print_address_demangle): Remove special case for 0.
4680
edf0c1b7
TT
46812012-05-18 Tom Tromey <tromey@redhat.com>
4682
4683 * printcmd.c (print_address_demangle): Add 'opts' argument.
4684 * p-valprint.c (pascal_val_print): Update.
4685 * jv-valprint.c (java_val_print): Update.
4686 * value.h: Update.
4687 * valprint.c (generic_val_print): Update.
4688 (print_function_pointer_address): Add 'options' argument. Remove
4689 'addressprint' argument. Update.
4690 * m2-valprint.c (print_unpacked_pointer): Update.
4691 * gnu-v3-abi.c (print_one_vtable): Update.
4692 (gnuv3_print_method_ptr): Update.
4693 * f-valprint.c (f_val_print): Update.
4694 * cp-valprint.c (cp_print_value_fields): Update.
4695 * valprint.h (print_function_pointer_address): Update.
4696 * c-valprint.c (c_val_print): Update.
4697
9703b513
TT
46982012-05-18 Tom Tromey <tromey@redhat.com>
4699
4700 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4701 directly corresponding to the found psymtab.
4702 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4703 (dw2_find_pc_sect_symtab): Use it.
4704 * block.h (blockvector_contains_pc): Declare.
4705 * block.c (find_block_in_blockvector): New function.
4706 (blockvector_for_pc_sect): Use it.
4707 (blockvector_contains_pc): New function.
4708
5a439849
MR
47092012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4710
4711 * mips-tdep.h (mips_write_pc): New prototype.
4712 * mips-tdep.c (mips_write_pc): Make external, add description.
4713 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4714 add description.
4715
8376de04
MR
47162012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4717
4718 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4719 mips_regnum->pc.
4720 (mips_unwind_pc, mips_write_pc): Likewise.
4721 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4722 gdbarch_read_pc.
4723
d3581e61
JB
47242012-05-17 Joel Brobecker <brobecker@adacore.com>
4725
4726 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4727 proc_warn, proc_error, proc_get_status, proc_flags,
4728 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4729 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4730 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4731 proc_stop_process, proc_wait_for_stop, proc_run_process,
4732 proc_set_traced_signals, proc_set_traced_faults,
4733 proc_set_traced_sysentry, proc_set_traced_sysexit,
4734 proc_set_held_signals, proc_get_held_signals,
4735 proc_get_traced_signals, proc_get_traced_faults,
4736 proc_get_traced_sysentry, proc_get_traced_sysexit,
4737 proc_clear_current_fault, proc_set_current_signal,
4738 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4739 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4740 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4741 proc_get_current_thread, proc_get_current_thread,
4742 proc_get_current_thread, proc_update_threads,
4743 proc_update_threads, proc_update_threads, proc_update_threads,
4744 proc_iterate_over_threads, procfs_find_new_threads,
4745 procfs_pid_to_str): Make static. Remove advance declaration.
4746 (proc_cursig): Make static. Conditionalized defintion on
4747 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4748 (proc_syscall, proc_set_kill_on_last_close,
4749 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4750 proc_get_pending_signals, proc_get_signal_actions,
4751 proc_trace_signal, proc_ignore_signal): Delete.
4752
81b9b86e
SDJ
47532012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4754
4755 * coffread.c (cs_section_address): Passing proper argument for
4756 `bfd_get_section_vma'.
4757 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4758 `bfd_get_section_flags'.
4759 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4760 `bfd_get_section_vma'.
4761
abc9d0dc
TT
47622012-05-16 Tom Tromey <tromey@redhat.com>
4763
4764 PR macros/13205:
4765 * macrotab.h: (macro_define_special): Declare.
4766 (enum macro_special_kind): New.
4767 (struct macro_definition) <argc, replacement>: Update comments.
4768 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4769 (macro_define_object_internal): New function.
4770 (macro_define_object): Use it.
4771 (macro_define_special): New function.
4772 (fixup_definition): New function.
4773 (macro_lookup_definition, foreach_macro_in_scope)
4774 (foreach_macro): Use fixup_definition.
4775 * macroexp.h (macro_stringify): Declare.
4776 * macroexp.c (free_buffer_return_text): New function.
4777 (stringify): Constify "arg".
4778 (macro_stringify): New function.
4779 * dwarf2read.c (macro_start_file): Call macro_define_special.
4780
6a3a010b 47812012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4782 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4783
4784 * breakpoint.h (bp_location): Add related_address member.
4785 * inferior.h (get_return_value): Take a pointer to struct value
4786 instead of struct type for the function requested.
4787 * value.h (using_struct_return): Likewise.
4788 * gdbarch.sh (return_value): Take a pointer to struct value
4789 instead of struct type for the function requested.
4790 * breakpoint.c (set_breakpoint_location_function): Initialize
4791 related_address for bp_gnu_ifunc_resolver breakpoints.
4792 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4793 requested function's address to gdbarch_return_value.
4794 * eval.c (evaluate_subexp_standard): Pass the requested
4795 function's address to using_struct_return.
4796 * infcall.c (call_function_by_hand): Pass the requested
4797 function's address to using_struct_return and
4798 gdbarch_return_value.
4799 * infcmd.c (get_return_value): Take a pointer to struct value
4800 instead of struct type for the function requested.
4801 (print_return_value): Update accordingly.
4802 (finish_command_continuation): Likewise.
4803 * stack.c (return_command): Pass the requested function's
4804 address to using_struct_return and gdbarch_return_value.
4805 * value.c (using_struct_return): Take a pointer to struct value
4806 instead of struct type for the function requested. Pass the
4807 requested function's address to gdbarch_return_value.
4808 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4809 New function_value member, replacing function_type.
4810 (bpfinishpy_dealloc): Update accordingly.
4811 (bpfinishpy_pre_stop_hook): Likewise.
4812 (bpfinishpy_init): Likewise. Record the requested function's
4813 address.
4814 * mips-tdep.c (mips_fval_reg): New enum.
4815 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4816 words put in GP registers.
4817 (mips_o64_push_dummy_call): Update a comment.
4818 (mips_o32_return_value): Take a pointer to struct value instead
4819 of struct type for the function requested and use it to check if
4820 using the MIPS16 calling convention. Return the designated
4821 general purpose registers for floating-point values returned in
4822 MIPS16 mode.
4823 (mips_o64_return_value): Likewise.
4824 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4825 (ppc_sysv_abi_broken_return_value): Likewise.
4826 (ppc64_sysv_abi_return_value): Likewise.
4827 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4828 value instead of struct type for the function requested.
4829 * amd64-tdep.c (amd64_return_value): Likewise.
4830 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4831 * arm-tdep.c (arm_return_value): Likewise.
4832 * avr-tdep.c (avr_return_value): Likewise.
4833 * bfin-tdep.c (bfin_return_value): Likewise.
4834 * cris-tdep.c (cris_return_value): Likewise.
4835 * frv-tdep.c (frv_return_value): Likewise.
4836 * h8300-tdep.c (h8300_return_value): Likewise.
4837 (h8300h_return_value): Likewise.
4838 * hppa-tdep.c (hppa32_return_value): Likewise.
4839 (hppa64_return_value): Likewise.
4840 * i386-tdep.c (i386_return_value): Likewise.
4841 * ia64-tdep.c (ia64_return_value): Likewise.
4842 * iq2000-tdep.c (iq2000_return_value): Likewise.
4843 * lm32-tdep.c (lm32_return_value): Likewise.
4844 * m32c-tdep.c (m32c_return_value): Likewise.
4845 * m32r-tdep.c (m32r_return_value): Likewise.
4846 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4847 * m68k-tdep.c (m68k_return_value): Likewise.
4848 (m68k_svr4_return_value): Likewise.
4849 * m88k-tdep.c (m88k_return_value): Likewise.
4850 * mep-tdep.c (mep_return_value): Likewise.
4851 * microblaze-tdep.c (microblaze_return_value): Likewise.
4852 * mn10300-tdep.c (mn10300_return_value): Likewise.
4853 * moxie-tdep.c (moxie_return_value): Likewise.
4854 * mt-tdep.c (mt_return_value): Likewise.
4855 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4856 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4857 (ppc_sysv_abi_broken_return_value): Likewise.
4858 (ppc64_sysv_abi_return_value): Likewise.
4859 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4860 * rl78-tdep.c (rl78_return_value): Likewise.
4861 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4862 * rx-tdep.c (rx_return_value): Likewise.
4863 * s390-tdep.c (s390_return_value): Likewise.
4864 * score-tdep.c (score_return_value): Likewise.
4865 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4866 (sh_return_value_fpu): Likewise.
4867 * sh64-tdep.c (sh64_return_value): Likewise.
4868 * sparc-tdep.c (sparc32_return_value): Likewise.
4869 * sparc64-tdep.c (sparc64_return_value): Likewise.
4870 * spu-tdep.c (spu_return_value): Likewise.
4871 * tic6x-tdep.c (tic6x_return_value): Likewise.
4872 * v850-tdep.c (v850_return_value): Likewise.
4873 * vax-tdep.c (vax_return_value): Likewise.
4874 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4875 * xtensa-tdep.c (xtensa_return_value): Likewise.
4876 * gdbarch.c: Regenerate.
4877 * gdbarch.h: Regenerate.
4878
29ca12b3
TT
48792012-05-15 Tom Tromey <tromey@redhat.com>
4880
4881 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4882
588ae58c
JB
48832012-05-15 Joel Brobecker <brobecker@adacore.com>
4884
4885 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4886 of command in two error message.
4887
855a6e68
JB
48882012-05-15 Joel Brobecker <brobecker@adacore.com>
4889
4890 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4891
d634f2de
JB
48922012-05-15 Joel Brobecker <brobecker@adacore.com>
4893
4894 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4895
9cc815f5
JK
48962012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 * NEWS (show auto-load scripts-directory): Add forgotten command.
4899
6a609e58
JK
49002012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4901
4902 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4903 parameters.
4904
ac1438b5
L
49052012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4906
4907 * amd64-tdep.c: Include features/i386/x32.c and
4908 features/i386/x32-avx.c.
4909 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4910 initialize_tdesc_x32_avx.
4911
e7e0cddf
SS
49122012-05-14 Stan Shebs <stan@codesourcery.com>
4913
4914 Add dynamic printf.
4915 * breakpoint.h (enum bptype): New type bp_dprintf.
4916 (struct breakpoint): New field extra_string.
4917 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4918 (create_breakpoint): Add extra_string arg.
4919 * breakpoint.c (dprintf_breakpoint_ops): New.
4920 (is_breakpoint): Add bp_dprintf.
4921 (bpstat_what): Add dprintf case.
4922 (bptype_string): Ditto.
4923 (print_one_breakpoint_location): Ditto.
4924 (init_bp_location): Ditto.
4925 (bkpt_print_mention): Ditto.
4926 (dprintf_style_enums): New array.
4927 (dprintf_style): New global.
4928 (dprintf_function): New global.
4929 (dprintf_channel): New global.
4930 (update_dprintf_command_list): New function.
4931 (update_dprintf_commands): New function.
4932 (init_breakpoint_sal): Add extra_string argument, handle it.
4933 (create_breakpoint_sal): Add extra_string argument.
4934 (create_breakpoints_sal): Add extra_string argument, update callers.
4935 (find_condition_and_thread): Add extra argument.
4936 (create_breakpoint): Add extra_string argument, record it.
4937 (dprintf_command): New function.
4938 (break_command_1): Add arg to create_breakpoint call.
4939 (handle_gnu_v3_exceptions): Ditto.
4940 (trace_command): Ditto.
4941 (ftrace_command): Ditto.
4942 (strace_command): Ditto.
4943 (bkpt_print_mention): Add dprintf case.
4944 (create_breakpoint_sal_default): Add extra_string argument.
4945 (_initialize_breakpoint): Add new commands.
4946 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4947 * python/py-breakpoint.c (bppy_init): Ditto.
4948 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4949
8ae38c14
MR
49502012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4951
4952 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4953
9f676e66
SCR
49542012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4955
4956 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4957 unsigned long long.
4958
7efc75aa
SCR
49592012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4960
4961 Add a new function gdb.find_pc_line to the Python API.
4962 * NEWS (Python Scripting): Add entry about the new function.
4963 * python/python.c (gdbpy_find_pc_line): New function which
4964 implements gdb.find_pc_line.
4965 (GdbMethods): Add entry for the new function.
4966
70af3797
PA
49672012-05-12 Pedro Alves <palves@redhat.com>
4968
4969 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4970 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4971
06da564e
EZ
49722012-05-12 Eli Zaretskii <eliz@gnu.org>
4973
4974 * inferior.c: Include completer.h
4975 (initialize_inferiors): Set completer of add-inferior to
4976 filename_completer.
4977
0288cee2
L
49782012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4979
4980 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4981 gdbarch_ptr_bit for x32 core dump.
4982
f6537a2c
L
49832012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4984
4985 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4986 and features/i386/x32-avx-linux.c.
4987
85d4a676
SS
49882012-05-11 Stan Shebs <stan@codesourcery.com>
4989 Kwok Cheung Yeung <kcy@codesourcery.com>
4990
4991 * NEWS: Describe new info os commands.
4992 * common/linux-osdata.c (PID_T, TIME_T): Define.
4993 (MAX_PID_T_STRLEN): New.
4994 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4995 MAX_PID_T_STRLEN.
4996 (command_from_pid): Add comment. Change to use PID_T.
4997 (commandline_from_pid): Change to use PID_T.
4998 (user_from_pid): Add comment.
4999 (get_process_owner): Add comment. Change to use PID_T and
5000 MAX_PID_T_STRLEN.
5001 (get_number_of_cpu_cores): Add comment.
5002 (get_cores_used_by_process): Add comment. Change to use PID_T and
5003 MAX_PID_T_STRLEN.
5004 (linux_xfer_osdata_processes): Change to use PID_T and
5005 MAX_PID_T_STRLEN.
5006 (compare_processes): New function.
5007 (linux_xfer_osdata_processgroups): New function.
5008 (linux_xfer_osdata_threads): Change to use PID_T.
5009 (linux_xfer_osdata_fds): New function.
5010 (format_socket_state, print_sockets): New functions.
5011 (union socket_addr): New union.
5012 (linux_xfer_osdata_isockets): New function.
5013 (time_from_time_t, group_from_gid): New functions.
5014 (linux_xfer_osdata_shm): New function.
5015 (linux_xfer_osdata_sem): New function.
5016 (linux_xfer_osdata_msg): New function.
5017 (linux_xfer_osdata_modules): New function.
5018 (osdata_table): Add new entries.
5019 * common/buffer.c (buffer_xml_printf): Add support for long and
5020 long long format specifiers.
5021
f24afd6d
L
50222012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5023
5024 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5025 (tdesc_x32_avx_linux): Likewise.
5026
7349ff92
JK
50272012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5028
5029 Implement multi-component --with-auto-load-dir.
5030 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5031 entries.
5032 (--with-auto-load-safe-path): Update the default value description.
5033 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5034 New.
5035 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5036 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5037 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5038 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5039 "set auto-load scripts-directory".
5040 * config.in: Regenerate.
5041 * configure: Regenerate.
5042 * configure.ac (--with-auto-load-dir): New configure option.
5043 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5044
6dea1fbd
JK
50452012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5046
5047 Provide $ddir substitution for --with-auto-load-safe-path.
5048 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5049 entries.
5050 * auto-load.c: Include observer.h.
5051 (auto_load_safe_path_vec_update): Call substitute_path_component for
5052 each component. New variable ddir_subst.
5053 (auto_load_gdb_datadir_changed): New function.
5054 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5055 AUTO_LOAD_SAFE_PATH. New comment.
5056 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5057 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5058 * config.in: Regenerate.
5059 * configure: Regenerate.
5060 * configure.ac (--auto-load-safe-path): Rename
5061 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5062 GDB_DATADIR/auto-load.
5063 * defs.h (substitute_path_component): New declaration.
5064 * top.c: Include observer.h.
5065 (set_gdb_datadir): New function.
5066 (init_main): Install it for "set data-directory".
5067 * utils.c (substitute_path_component): New function.
5068
b09aca3a
JK
50692012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5070
5071 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5072 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5073 DEBUG_FILE_DIRECTORY. Handle multiple components of
5074 DEBUG_FILE_DIRECTORY.
5075
95554aad
TT
50762012-05-10 Tom Tromey <tromey@redhat.com>
5077
5078 * dwarf2read.c (recursively_write_psymbols): New function.
5079 (write_psymtabs_to_index): Use it.
5080
5081 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5082 field.
5083 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5084 (load_partial_comp_unit): Update.
5085 (queue_comp_unit): Add argument 'pretend_language'.
5086 (process_queue): Update.
5087 (psymtab_to_symtab_1): Skip dependencies that have a user.
5088 (load_partial_comp_unit_reader): Give meaning to the 'data'
5089 argument.
5090 (load_full_comp_unit): Add 'pretend_language' argument.
5091 (process_full_comp_unit): Add 'pretend_language' argument. Set
5092 language on CU.
5093 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5094 Update.
5095 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5096 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5097 Update.
5098 (prepare_one_comp_unit): Add 'pretend_language' argument.
5099
5100 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5101 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5102 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5103 (dw2_do_instantiate_symtab): Check whether symtab was read in
5104 before queueing.
5105 (dw2_instantiate_symtab): Add assertion. Call
5106 process_cu_includes.
5107 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5108 (partial_symtab_p): New typedef.
5109 (set_partial_user): New function.
5110 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5111 (scan_partial_symbols): Add imported CU to imported_symtabs.
5112 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5113 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5114 (get_symtab, recursively_compute_inclusions)
5115 (compute_symtab_includes, process_cu_includes)
5116 (process_imported_unit_die): New functions.
5117 (process_die) <DW_TAG_imported_unit>: New case.
5118 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5119
5120 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5121 comment.
5122 (struct partial_die_info) <locdesc>: Remove.
5123 <d>: New field.
5124 (process_psymtab_comp_unit): Add 'read_partial' argument.
5125 Update.
5126 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5127 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5128 (add_partial_symbol): Update.
5129 (process_die): Handle DW_TAG_partial_unit.
5130 (read_file_scope): Update comment.
5131 (load_partial_dies): Handle DW_TAG_imported_unit.
5132 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5133 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5134
e871fbb9
TT
51352012-05-10 Tom Tromey <tromey@redhat.com>
5136
5137 * cc-with-dwz.sh: New file.
5138
b5b04b5b
TT
51392012-05-10 Tom Tromey <tromey@redhat.com>
5140
5141 * symtab.h (struct symtab) <includes, user>: New fields.
5142 * block.h (struct block_iterator) <d, idx, which>: New fields.
5143 * block.c (initialize_block_iterator, find_iterator_symtab)
5144 (block_iterator_step, block_iter_name_step)
5145 (block_iter_match_step): New functions.
5146 (block_iterator_first, block_iterator_next)
5147 (block_iter_name_first, block_iter_name_next)
5148 (block_iter_match_first, block_iter_match_next): Rewrite.
5149 (get_block_symtab): New function.
5150
84a146c9
TT
51512012-05-10 Tom Tromey <tromey@redhat.com>
5152
5153 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5154 set_block_symtab.
5155 * jit.c (finalize_symtab): Use allocate_global_block,
5156 set_block_symtab.
5157 * buildsym.c (finish_block_internal): New function, from old
5158 finish_block.
5159 (finish_block): Rewrite.
5160 (end_symtab): Use finish_block_internal, set_block_symtab.
5161 * block.h (struct global_block): New.
5162 (allocate_global_block, set_block_symtab): Declare.
5163 * block.c (allocate_global_block, set_block_symtab): New
5164 functions.
5165
9439a077
TT
51662012-05-10 Tom Tromey <tromey@redhat.com>
5167
5168 * psymtab.c (partial_map_expand_apply): Add assertion.
5169 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5170 (psymtab_to_symtab): Find unshared psymtab.
5171 (dump_psymtab): Print including psymtabs.
5172 (recursively_search_psymtabs): New function.
5173 (expand_symtabs_matching_via_partial): Use it.
5174 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5175 fields.
5176 (enum psymtab_search_status): New.
5177
8157b174
TT
51782012-05-10 Tom Tromey <tromey@redhat.com>
5179
5180 * tracepoint.c (scope_info): Update.
5181 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5182 (find_pc_sect_symtab, search_symbols)
5183 (default_make_symbol_completion_list_break_on)
5184 (make_file_symbol_completion_list): Update.
5185 * symmisc.c (dump_symtab_1): Update.
5186 * stack.c (print_frame_args, iterate_over_block_locals)
5187 (print_frame_labels, iterate_over_block_arg_vars): Update.
5188 * python/py-block.c (block_object) <dict>: Remove.
5189 <block>: New field.
5190 <iter>: Change type.
5191 (blpy_iter): Update.
5192 (blpy_block_syms_iternext): Update.
5193 * psymtab.c (map_block): Use block iterators.
5194 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5195 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5196 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5197 * infrun.c (check_exception_resume): Update.
5198 * cp-support.c (make_symbol_overload_list_block): Update.
5199 * coffread.c (patch_opaque_types): Update.
5200 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5201 * block.h (struct block_iterator): New.
5202 (block_iterator_first, block_iterator_next, block_iter_name_first)
5203 (block_iter_name_next, block_iter_match_first)
5204 (block_iter_match_next): Declare.
5205 (ALL_BLOCK_SYMBOLS): Redefine.
5206 * block.c (block_iterator_first, block_iterator_next)
5207 (block_iter_name_first, block_iter_name_next)
5208 (block_iter_match_first, block_iter_match_next): New functions.
5209 * ada-lang.c (ada_add_block_symbols)
5210 (ada_make_symbol_completion_list): Use block iterator.
5211
a2ca7a52
TT
52122012-05-10 Tom Tromey <tromey@redhat.com>
5213
5214 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5215 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5216 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5217 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5218 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5219 Update.
5220
64ea88dc
JB
52212012-05-10 Joel Brobecker <brobecker@adacore.com>
5222
5223 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5224 print-file-var-lib2.c, print-file-var-main.c and
5225 print-file-var.exp (located in gdb/testsuite/gdb.base).
5226
99a547d6
JB
52272012-05-10 Joel Brobecker <brobecker@adacore.com>
5228
5229 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5230 try locating the symbol in the symbol's own objfile first, before
5231 extending the search to all objfiles.
5232 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5233 out of lookup_symbol_aux_symtabs.
5234 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5235 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5236 Do not search EXCLUDE_OBJFILE.
5237 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5238 (lookup_symbol_global): Search for matches in the block's objfile
5239 first, before searching all other objfiles.
5240
0ece64fd
TG
52412012-05-10 Tristan Gingold <gingold@adacore.com>
5242
5243 * printcmd.c (set_command): Add pre/post inc/dec.
5244
3d16a105
FCE
52452012-05-09 Frank Ch. Eigler <fche@redhat.com>
5246
5247 * gdb.1: Document -ex option.
5248
2efbc0f7
JB
52492012-05-09 Joel Brobecker <brobecker@adacore.com>
5250
5251 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5252 * inferior.h (AT_SYMBOL): Delete.
5253
2c76a0c7
JB
52542012-05-09 Joel Brobecker <brobecker@adacore.com>
5255
5256 * mips-tdep.c (mips_push_dummy_code): New function.
5257 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5258 ON_STACK and install mips_push_dummy_code as our gdbarch
5259 push_dummy_code routine.
5260
9401a810
PA
52612012-05-09 Pedro Alves <palves@redhat.com>
5262
5263 * target.c (set_maintenance_target_async_permitted): Rename to ...
5264 (set_target_async_command): ... this.
5265 (show_maintenance_target_async_permitted): Rename to ...
5266 (show_target_async_command): ... this.
5267 (initialize_targets): Adjust.
5268
3929b321
DE
52692012-05-08 Doug Evans <dje@google.com>
5270
5271 * go-exp.y (classify_name): Add missing assignment of fields of
5272 yylval.ssym.
5273
c41535fd
EZ
52742012-05-08 Eli Zaretskii <eliz@gnu.org>
5275
5276 Display the ">" prompt in interactive mode while reading canned
5277 commands, even when the current interpreter is MI.
5278
5279 * interps.c (interp_set_temp): New function.
5280
5281 * interps.h (interp_set_temp): Add prototype.
5282
5283 * cli/cli-script.c (restore_interp): New cleanup function.
5284 (read_command_lines): Temporarily override the current interpreter
5285 with CLI and arrange for restoring the original one.
5286
c0749c4d
JS
52872012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5288
5289 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5290
d7333987
SDJ
52912012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5292
5293 * probe.c (parse_probes): Move conditional to check for
5294 debuginfo files from here...
5295 * stap-probe.c (stap_get_probes): ... to here.
5296
649e6d92
MK
52972012-05-07 Mark Kettenis <kettenis@gnu.org>
5298 H.J. Lu <hongjiu.lu@intel.com>
5299
5300 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5301 `movl %esp, %ebp' for the X32 ABI.
5302
f39c6ffd
TT
53032012-05-07 Tom Tromey <tromey@redhat.com>
5304
5305 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5306 get_DW_TAG_name.
5307 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5308 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5309 (dwarf_stack_op_name): Remove.
5310 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5311 (decode_locdesc): Use get_DW_OP_name.
5312 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5313 (dwarf2_compile_expr_to_ax): Likewise.
5314 (disassemble_dwarf_expression): Likewise.
5315 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5316
1e1f6591
CLT
53172012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5318
5319 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5320 (sh_linux_sigtramp_cache): New function.
5321 (sh_linux_sigreturn_init): New function.
5322 (sh_linux_rt_sigreturn_init): New function.
5323 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5324 patterns.
5325 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5326 syscall codes.
5327 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5328 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5329 (sh_linux_init_abi): Add init calls to register new tramp_frame
5330 definitions under 32-bit SH, update comments.
5331
545c08b4
PA
53322012-05-07 Pedro Alves <palves@redhat.com>
5333
daac165e
PA
5334 PR gdb/10952
5335
545c08b4
PA
5336 * amd64-linux-tdep.c: Include glibc-tdep.h.
5337 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5338 gdbarch_skip_solib_resolver callback.
5339
af2c1515
JK
53402012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5341
5342 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5343 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5344 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5345 (add_auto_load_safe_path): Change the error message.
5346 (_initialize_auto_load): Change the "safe-path" help text.
5347 * configure: Regenerate
5348 * configure.ac (--without-auto-load-safe-path): Set
5349 WITH_AUTO_LOAD_SAFE_PATH to /.
5350
1067f998
SDJ
53512012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5352
5353 * stap-probe.h: Do not include unecessary `probe.h'.
5354
45dfa85a
AM
53552012-05-05 Alan Modra <amodra@gmail.com>
5356
5357 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5358 bfd_und_section_ptr.
5359 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5360 and bfd_com_section_ptr.
5361
cf093994
JB
53622012-05-04 Joel Brobecker <brobecker@adacore.com>
5363
762ebb75 5364 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5365
d40dc7a8
JB
53662012-05-04 Joel Brobecker <brobecker@adacore.com>
5367
5368 * windows-nat.h (segment_register_p_ftype): New typedef.
5369 (windows_set_segment_register_p): Add declaration.
5370 * windows-nat.c (segment_register_p): New static global.
5371 (windows_set_segment_register_p): New function.
5372 (do_windows_fetch_inferior_registers): Add special handling
5373 for segment registers.
5374 * amd64-windows-nat.c: #include "amd64-tdep.h".
5375 (amd64_windows_segment_register_p): New function.
5376 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5377 * i386-windows-nat.c: #include "i386-tdep.h".
5378 (i386_windows_segment_register_p): New function.
5379 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5380
52b3699b
TG
53812012-05-04 Tristan Gingold <gingold@adacore.com>
5382
5383 * printcmd.c (set_command): Emit a warning if the expression is not
5384 an assignment.
5385
94c74239
JB
53862012-05-03 Joel Brobecker <brobecker@adacore.com>
5387
5388 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5389 Make static.
5390
fcf57f19
SDJ
53912012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5392
5393 * stap-probe.c (stap_is_operator): Change declaration.
5394 (stap_get_opcode): Change return value.
5395 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5396 `stap_parse_argument_1'.
5397
27d2932e
PA
53982012-05-03 Pedro Alves <pedro@codesourcery.com>
5399
5400 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5401 debug log.
5402
a20ee7a4
SCR
54032012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5404
5405 Add two new methods global_block and static_block to gdb.Symtab
5406 objects.
5407 * NEWS (Python scripting): Add entry about the new methods.
5408 * python/py-symtab.c (stpy_global_block): New function which
5409 implements the gdb.Symtab.global_block() method.
5410 (stpy_static_block): New function which implements the
5411 gdb.Symtab.static_block() method.
5412 (symtab_object_methods): Add entries for the two new methods.
5413
943cb756
DE
54142012-05-03 Doug Evans <dje@google.com>
5415
5416 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5417 files.
5418
f4644a3f
YQ
54192012-05-03 Yao Qi <yao@codesourcery.com>
5420
5421 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5422 space.
5423 (i386_process_record): Ditto.
5424
ef61f180
JB
54252012-05-02 Joel Brobecker <brobecker@adacore.com>
5426
5427 * infcall.c (unwind_on_signal_p): Make static.
5428
02f1df11
JB
54292012-05-02 Joel Brobecker <brobecker@adacore.com>
5430
5431 * sol-thread.c (solaris_pid_to_str): Make static.
5432 (_initialize_sol_thread): Add prototype.
5433
39023530
JB
54342012-05-02 Joel Brobecker <brobecker@adacore.com>
5435
5436 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5437
c6b0c501
CF
54382012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5439
5440 * MAINTAINERS: Remove myself.
5441
1ef71717
JK
54422012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5443
5444 Fix --without-auto-load-safe-path for MS-Windows host platform.
5445 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5446
b31b86a7
EZ
54472012-05-02 Eli Zaretskii <eliz@gnu.org>
5448
5449 * gdb_curses.h: Undefine KEY_EVENT before including curses
5450 headers. Move "#undef MOUSE_MOVED" before any curses header
5451 inclusion.
5452
777532fc
SDJ
54532012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5454
5455 * features/i386/i386-mmx-linux.c: Regenerate.
5456 * features/rs6000/powerpc-32.c: Likewise.
5457 * features/rs6000/powerpc-32l.c: Likewise.
5458 * features/rs6000/powerpc-403.c: Likewise.
5459 * features/rs6000/powerpc-403gc.c: Likewise.
5460 * features/rs6000/powerpc-405.c: Likewise.
5461 * features/rs6000/powerpc-505.c: Likewise.
5462 * features/rs6000/powerpc-601.c: Likewise.
5463 * features/rs6000/powerpc-602.c: Likewise.
5464 * features/rs6000/powerpc-603.c: Likewise.
5465 * features/rs6000/powerpc-604.c: Likewise.
5466 * features/rs6000/powerpc-64.c: Likewise.
5467 * features/rs6000/powerpc-64l.c: Likewise.
5468 * features/rs6000/powerpc-750.c: Likewise.
5469 * features/rs6000/powerpc-860.c: Likewise.
5470 * features/rs6000/powerpc-e500.c: Likewise.
5471 * features/rs6000/powerpc-e500l.c: Likewise.
5472 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5473 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5474 * features/rs6000/rs6000.c: Likewise.
5475
d71871bc
SDJ
54762012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5477
5478 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5479 variable.
5480 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5481 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5482 (stap_parse_argument) <e>: Likewise.
5483 (handle_stap_probe) <byte_order>: Likewise.
5484
fd820528
DE
54852012-04-30 Doug Evans <dje@google.com>
5486
5487 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5488 init_and_read_dies_worker. All callers updated.
5489 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5490 replaced with init_cutu_and_read_dies.
5491 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5492 (find_partial_die): Remove FIXME. Don't free current CU.
5493
ec3f619d 54942012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5495
5496 * contrib: New directory.
5497 * contrib/test_pubnames_and_indexes.py: New file.
5498
fceca515
DE
54992012-04-30 Doug Evans <dje@google.com>
5500
5501 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5502 All callers updated.
5503 (init_cu_die_reader): Verify the section is non-empty.
5504 (dwarf_decode_line_header): Don't dereference section->asection
5505 until we know the section is present.
5506
311fe7e1
SDJ
55072012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5508
5509 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5510 probes.
5511
5977971a
YQ
55122012-04-29 Yao Qi <yao@codesourcery.com>
5513
5514 * gdb-code-style.el: New hook gdb-markup-hook
5515 and gdb-comment-hook.
5516
dee91e82
DE
55172012-04-28 Doug Evans <dje@google.com>
5518
3019eac3
DE
5519 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5520 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5521 objfile->obfd.
5522 * symfile.h (dwarf2_debug_sections): New member addr.
5523 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5524 (ctx_no_get_addr_index): New function.
5525 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5526 (ctx_no_get_addr_index): Declare.
5527 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5528 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5529 (dwarf_expr_ctx_funcs): Update.
5530 (needs_get_addr_index): New function.
5531 (needs_frame_ctx_funcs): Update.
5532 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5533 * dwarf2read.c: #include "gdbcore.h".
5534 (dwarf2_per_objfile): New members addr, dwo_files.
5535 (dwarf2_elf_names): Add entry for addr.
5536 (struct dwo_section_names): New type.
5537 (dwo_section_names): New static global.
5538 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5539 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5540 old debug_types_section member updated to use this.
5541 Rename member debug_types_section to info_or_types_section,
5542 all uses updated.
5543 (signatured_type): Rename member type_offset to type_offset_in_tu,
5544 all uses updated. New member type_offset_in_section.
5545 (struct dwo_sections): New type.
5546 (struct dwo_unit): New type.
5547 (struct dwo_file): New type.
5548 (die_reader_specs): New member dwo_file.
5549 (dwarf2_locate_sections): Watch for .debug_addr.
5550 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5551 (dwarf2_read_section): Get bfd of section from bfd's asection,
5552 instead of objfile.
5553 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5554 (create_signatured_type_table_from_index): Initialize
5555 sig_type->info_or_types_section.
5556 (dw2_get_file_names): Statement lists for type units with DWO files
5557 live in the DWO file.
5558 (create_debug_types_hash_table): New function.
5559 (create_all_type_units): Rewrite.
5560 (init_cu_die_reader): New arg dwo_file, all callers updated.
5561 (init_and_read_dies_worker): Get section from
5562 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5563 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5564 continue reading the CU/TU from there.
5565 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5566 updated. Get section from this_cu->info_or_types_section.
5567 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5568 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5569 DW_FORM_GNU_str_index.
5570 (hash_dwo_file, eq_dwo_file): New functions.
5571 (allocate_dwo_file_hash_table): New function.
5572 (hash_dwo_unit, eq_dwo_unit): New functions.
5573 (allocate_dwo_unit_table): New function.
5574 (dwarf2_locate_dwo_sections): New function.
5575 (struct create_dwo_info_table_data): New type.
5576 (create_debug_info_hash_table_reader): New function.
5577 (create_debug_info_hash_table): New function.
5578 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5579 (lookup_dwo_file): New function.
5580 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5581 (free_dwo_file, free_dwo_file_cleanup): New functions.
5582 (free_dwo_file_from_slot, free_dwo_files): New functions.
5583 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5584 (dwarf2_record_block_ranges): Ditto.
5585 (read_partial_die): Ditto.
5586 (process_enumeration_scope): Update to use type_offset_in_section.
5587 (read_full_die_1): New function.
5588 (read_full_die): Rewrite.
5589 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5590 DW_FORM_GNU_str_index.
5591 (read_addr_index_1, read_addr_index): New functions.
5592 (read_addr_index_from_leb128): New function.
5593 (struct dwarf2_read_addr_index_data): New type.
5594 (dwarf2_read_addr_index_reader): New function.
5595 (dwarf2_read_addr_index): New function.
5596 (read_str_index): New function.
5597 (leb128_size): New function.
5598 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5599 If processing a type unit from a DWO file, get the line section
5600 from the DWO file.
5601 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5602 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5603 DW_FORM_GNU_str_index.
5604 (lookup_die_type): Check whether section offset of type's die is
5605 known before looking it up. Remove assert. Condition can
5606 legimately happen for inter-cu type references.
5607 (dwarf_attr_name): Handle Fission attributes.
5608 (dwarf_form_name): Handle Fission forms.
5609 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5610 DW_FORM_GNU_str_index.
5611 (follow_die_sig): Update to use type_offset_in_section.
5612 (decode_locdesc): New case DW_OP_GNU_addr_index.
5613 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5614 DW_FORM_GNU_str_index.
5615 (cu_debug_loc_section): New function.
5616 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5617 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5618 Free DWO files if present.
5619 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5620
dee91e82
DE
5621 Refactor DIE reading.
5622 * dwarf2read.c (dwarf2_per_objfile): Replace members
5623 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5624 (die_reader_specs): New member "die_section". Temporarily make
5625 member "buffer" non-const, pending constifying all info_ptr uses.
5626 (die_reader_func_ftype): New typedef.
5627 (dw2_get_file_names_reader): New function.
5628 (dw2_get_file_names): Rewrite.
5629 (read_and_check_type_unit_head): Rename arg type_offset to
5630 type_offset_in_tu.
5631 (create_all_type_units): Improve debugging message.
5632 Improve dummy type unit check.
5633 (init_cu_die_reader): New arg "section". All callers updated.
5634 (init_and_read_dies_worker): New function.
5635 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5636 (init_cutu_and_read_dies_no_follow): New function.
5637 (init_cutu_and_read_dies_simple): New function.
5638 (process_psymtab_comp_unit_reader): New function.
5639 (process_psymtab_comp_unit): Delete args section,
5640 is_debug_types_section. Rewrite. All callers updated.
5641 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5642 All callers updated. Rewrite.
5643 (load_partial_comp_unit_reader): New function.
5644 (load_partial_comp_unit): Rewrite.
5645 (skip_children): New arg reader. Delete args buffer, cu.
5646 All callers updated.
5647 (skip_one_die): New arg reader. Delete args buffer, cu.
5648 All callers updated.
5649 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5650 All callers updated.
5651 (load_full_comp_unit_reader): New function.
5652 (load_full_comp_unit): Rewrite.
5653 (read_comp_unit): Delete.
5654 (read_die_and_children_1): Delete, contents moved ...
5655 (read_die_and_children): ... here.
5656 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5657 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5658 All callers updated.
5659 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5660 All callers updated.
5661 (find_partial_die): Rewrite load_all_dies support.
5662 (read_attribute_value): New arg reader. Delete args abfd, cu.
5663 All callers updated.
5664 (read_attribute): New arg reader. Delete args abfd, cu.
5665 All callers updated.
5666 (load_full_type_unit): Add assert.
5667 (read_signatured_type_reader): New function.
5668 (read_signatured_type): Rewrite.
5669 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5670 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5671 All callers updated. Set per_cu->cu = NULL after freeing it.
5672 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5673 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5674 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5675 (set_die_type): Update.
5676 (get_die_type_at_offset): Update.
5677 (read_file_scope): Call prepare_one_comp_unit.
5678 (read_type_unit_scope): Ditto.
5679 (prepare_one_comp_unit): Set producer if present.
5680
72d59e0d
SDJ
56812012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5682
5683 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5684 gettext function on `error'.
5685
0fefef59
DE
56862012-04-27 Doug Evans <dje@google.com>
5687
5688 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5689 is empty.
5690
28106bc2
SDJ
56912012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5692 Tom Tromey <tromey@redhat.com>
5693
5694 * breakpoint.c (struct breakpoint_objfile_data)
5695 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5696 <exception_probes>: New fields.
5697 (free_breakpoint_probes): New function.
5698 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5699 `_Unwind_DebugHook'.
5700 (create_exception_master_breakpoint): Likewise.
5701 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5702 * infrun.c: Including necessary header files for handling SystemTap
5703 probes.
5704 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5705 via SystemTap probes.
5706 (check_exception_resume): Remove `func' argument. Handle exception
5707 unwinding breakpoint set via a SystemTap probe.
5708 (insert_exception_resume_from_probe): New function.
5709
55aa24fb
SDJ
57102012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5711 Tom Tromey <tromey@redhat.com>
5712 Jan Kratochvil <jan.kratochvil@redhat.com>
5713
5714 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5715 (COMMON_OBS): Likewise.
5716 (HFILES_NO_SRCDIR): Add `probe'.
5717 * NEWS: Mention support for static and SystemTap probes.
5718 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5719 SystemTap probes' arguments parser.
5720 * arm-linux-tdep.c: Including headers needed to perform the parsing
5721 of SystemTap probes' arguments.
5722 (arm_stap_is_single_operand): New function.
5723 (arm_stap_parse_special_token): Likewise.
5724 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5725 probes' arguments parser.
5726 * ax-gdb.c (require_rvalue): Removing static declaration.
5727 (gen_expr): Likewise.
5728 * ax-gdb.h (gen_expr): Declaring function.
5729 (require_rvalue): Likewise.
5730 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5731 (bkpt_probe_breakpoint_ops): New variable.
5732 (momentary_breakpoint_from_master): Set the `probe' value.
5733 (add_location_to_breakpoint): Likewise.
5734 (break_command_1): Using proper breakpoint_ops according to the
5735 argument passed by the user in the command line.
5736 (bkpt_probe_insert_location): New function.
5737 (bkpt_probe_remove_location): Likewise.
5738 (bkpt_probe_create_sals_from_address): Likewise.
5739 (bkpt_probe_decode_linespec): Likewise.
5740 (tracepoint_probe_create_sals_from_address): Likewise.
5741 (tracepoint_probe_decode_linespec): Likewise.
5742 (tracepoint_probe_breakpoint_ops): New variable.
5743 (trace_command): Using proper breakpoint_ops according to the
5744 argument passed by the user in the command line.
5745 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5746 static probes on breakpoints and tracepoints.
5747 * breakpoint.h (struct bp_location) <probe>: New field.
5748 * cli-utils.c (skip_spaces_const): New function.
5749 (extract_arg): Likewise.
5750 * cli-utils.h (skip_spaces_const): Likewise.
5751 (extract_arg): Likewise.
5752 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5753 * configure.ac: Append `stap-probe.o' to be generated when ELF
5754 support is present.
5755 * configure: Regenerate.
5756 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5757 * elfread.c: Include `probe.h' and `arch-utils.h'.
5758 (probe_key): New variable.
5759 (elf_get_probes): New function.
5760 (elf_get_probe_argument_count): Likewise.
5761 (elf_evaluate_probe_argument): Likewise.
5762 (elf_compile_to_ax): Likewise.
5763 (elf_symfile_relocate_probe): Likewise.
5764 (stap_probe_key_free): Likewise.
5765 (elf_probe_fns): New variable.
5766 (elf_sym_fns): Add `sym_probe_fns' value.
5767 (elf_sym_fns_lazy_psyms): Likewise.
5768 (elf_sym_fns_gdb_index): Likewise.
5769 (_initialize_elfread): Initialize objfile cache for static
5770 probes.
5771 * gdb_vecs.h (struct probe): New forward declaration.
5772 (probe_p): New VEC declaration.
5773 * gdbarch.c: Regenerate.
5774 * gdbarch.h: Regenerate.
5775 * gdbarch.sh (stap_integer_prefix): New variable.
5776 (stap_integer_suffix): Likewise.
5777 (stap_register_prefix): Likewise.
5778 (stap_register_suffix): Likewise.
5779 (stap_register_indirection_prefix): Likewise.
5780 (stap_register_indirection_suffix): Likewise.
5781 (stap_gdb_register_prefix): Likewise.
5782 (stap_gdb_register_suffix): Likewise.
5783 (stap_is_single_operand): New function.
5784 (stap_parse_special_token): Likewise.
5785 (struct stap_parse_info): Forward declaration.
5786 * i386-tdep.c: Including headers needed to perform the parsing
5787 of SystemTap probes' arguments.
5788 (i386_stap_is_single_operand): New function.
5789 (i386_stap_parse_special_token): Likewise.
5790 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5791 probes' arguments parser.
5792 * i386-tdep.h (i386_stap_is_single_operand): New function.
5793 (i386_stap_parse_special_token): Likewise.
5794 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5795 * mipsread.c (ecoff_sym_fns): Likewise.
5796 * objfiles.c (objfile_relocate1): Support relocation for static
5797 probes.
5798 * parse.c (prefixify_expression): Remove static declaration.
5799 (initialize_expout): Likewise.
5800 (reallocate_expout): Likewise.
5801 * parser-defs.h (initialize_expout): Declare function.
5802 (reallocate_expout): Likewise.
5803 (prefixify_expression): Likewise.
5804 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5805 of SystemTap probes' arguments.
5806 (ppc_stap_is_single_operand): New function.
5807 (ppc_stap_parse_special_token): Likewise.
5808 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5809 probes' arguments parser.
5810 * probe.c: New file, for generic statically defined probe support.
5811 * probe.h: Likewise.
5812 * s390-tdep.c: Including headers needed to perform the parsing of
5813 SystemTap probes' arguments.
5814 (s390_stap_is_single_operand): New function.
5815 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5816 probes' arguments parser.
5817 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5818 * stap-probe.c: New file, for SystemTap probe support.
5819 * stap-probe.h: Likewise.
5820 * symfile.h: Include `gdb_vecs.h'.
5821 (struct sym_probe_fns): New struct.
5822 (struct sym_fns) <sym_probe_fns>: New field.
5823 * symtab.c (init_sal): Initialize `probe' field.
5824 * symtab.h (struct probe): Forward declaration.
5825 (struct symtab_and_line) <probe>: New field.
5826 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5827 locations.
5828 (stop_tracing): Likewise.
5829 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5830
22d2b532
SDJ
58312012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5832 Tom Tromey <tromey@redhat.com>
5833
5834 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5835 and to compile agent expressions.
5836 * infrun.c (siginfo_make_value): New argument `ignore'.
5837 (siginfo_funcs): New struct.
5838 (_initialize_infrun): New argument when calling
5839 `create_internalvar_type_lazy'.
5840 * thread.c (thread_id_make_value): New argument `ignore'.
5841 (thread_funcs): New struct.
5842 (_initialize_thread): New argument when calling
5843 `create_internalvar_type_lazy'.
5844 * tracepoint.c (sdata_make_value): New argument `ignore'.
5845 (sdata_funcs): New struct.
5846 (_initialize_tracepoint): New argument when calling
5847 `create_internalvar_type_lazy'.
5848 * value.c (make_value): New struct.
5849 (create_internalvar_type_lazy): New argument `data'.
5850 (compile_internalvar_to_ax): New function.
5851 (value_of_internalvar): Properly handling `make_value' case.
5852 (clear_internalvar): Likewise.
5853 (show_convenience): Adding `TRY_CATCH' block.
5854 * value.h (internalvar_make_value): Delete, replace by...
5855 (struct internalvar_funcs): ... this.
5856 (create_internalvar_type_lazy) <fun>: Delete argument.
5857 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5858 (compile_internalvar_to_ax): New function.
5859 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5860 (tlb_funcs): New struct.
5861 (_initialize_windows_tdep): New argument when calling
5862 `create_internalvar_type_lazy'.
5863
91da1414
MW
58642012-04-27 Mark Wielaard <mjw@redhat.com>
5865
5866 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5867 see whether it is an address or a constant offset from DW_AT_low_pc.
5868 (dwarf2_record_block_ranges): Likewise.
5869 (read_partial_die): Likewise.
5870
4ab9d8ec
MW
58712012-04-26 Mark Wielaard <mjw@redhat.com>
5872
5873 * MAINTAINERS (Write After Approval): Add myself to the list.
5874
a0911fd0
MR
58752012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5876
5877 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5878 (proc_prettyprint_signal): Likewise.
5879 (proc_prettyprint_faultset): Likewise.
5880 (proc_prettyprint_fault): Likewise.
5881 (proc_prettyprint_actionset): Likewise.
5882 (proc_prettyprint_flags): Move to new proc-flags.c section.
5883 (proc_prettyfprint_flags): New prototype.
5884 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5885 (proc_syscall, proc_cursig): Likewise.
5886 (proc_set_kill_on_last_close): Likewise.
5887 (proc_unset_kill_on_last_close): Likewise.
5888 (proc_set_watchpoint): Make static.
5889 (proc_delete_dead_threads): Likewise.
5890 (procfs_set_watchpoint): Likewise.
5891 (_initialize_procfs): Add prototype.
5892 * proc-events.c: Include proc-utils.h.
5893 (init_syscall_table): Make static.
5894 * proc-api.c (_initialize_proc_api): Add prototype.
5895 * proc-flags.c: Include proc-utils.h.
5896
9009e1ae
MR
58972012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5898
5899 * configure.ac: Add AC_ARG_PROGRAM.
5900 * configure: Regenerate.
5901
4fae6e18
JK
59022012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5903
5904 Fix DW_AT_lower_bound defaults for DWARF-4+.
5905 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5906 high. New variable low_default_is_valid. Implement DWARF-4+
5907 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5908 no default by the DWARF standard.
5909
14132e89 59102012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5911 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5912
5913 * infrun.c (handle_inferior_event): Move the check for return
5914 trampolines ahead of the check for function trampolines.
5915 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5916 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5917 (mips_str_mips16_ret_stub): Likewise.
5918 (mips_str_call_fp_stub): Likewise.
5919 (mips_str_call_stub): Likewise.
5920 (mips_str_fn_stub): Likewise.
5921 (mips_str_pic): Likewise.
5922 (mips_in_frame_stub): New function.
5923 (mips_unwind_pc): Return the return address rather than the PC
5924 if the PC of an intermediate frame is inside a call thunk.
5925 (mips_is_stub_suffix): New function.
5926 (mips_is_stub_mode): Likewise.
5927 (mips_get_mips16_fn_stub_pc): Likewise.
5928 (mips_skip_mips16_trampoline_code): Update to handle all the
5929 currently generated stub types. Don't recurse into __fn_stub
5930 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5931 Use cooked register accesses.
5932 (mips_in_return_stub): Reintroduce function.
5933 (mips_skip_trampoline_code): Traverse trampolines recursively.
5934 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5935
518f0db5 59362012-04-26 Joel Brobecker <brobecker@adacore.com>
5937
5938 GDB 7.4.1 released.
5939
3184d3f9
JL
59402012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5941
5942 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5943 * features/arm-with-m-vfp-d16.xml: New file. Describes
5944 Cortex-M with VFPv4-sp-d16 FPU register layout.
5945 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5946 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5947 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5948 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5949 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5950
b6201d44
DE
59512012-04-25 Doug Evans <dje@google.com>
5952
5953 * cli/cli-decode.c (print_doc_line): Use stream instead of
5954 current_uiout.
5955
4e2f8df6
SDJ
59562012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5957
5958 * features/arm-with-iwmmxt.c: Regenerate.
5959 * features/arm-with-m-fpa-layout.c: Likewise.
5960 * features/arm-with-m.c: Likewise.
5961 * features/arm-with-neon.c: Likewise.
5962 * features/arm-with-vfpv2.c: Likewise.
5963 * features/arm-with-vfpv3.c: Likewise.
5964 * features/mips-dsp-linux.c: Likewise.
5965 * features/mips-linux.c: Likewise.
5966 * features/mips64-dsp-linux.c: Likewise.
5967 * features/mips64-linux.c: Likewise.
5968 * features/s390-linux32.c: Likewise.
5969 * features/s390-linux32v1.c: Likewise.
5970 * features/s390-linux32v2.c: Likewise.
5971 * features/s390-linux64.c: Likewise.
5972 * features/s390-linux64v1.c: Likewise.
5973 * features/s390-linux64v2.c: Likewise.
5974 * features/s390x-linux64.c: Likewise.
5975 * features/s390x-linux64v1.c: Likewise.
5976 * features/s390x-linux64v2.c: Likewise.
5977 * features/tic6x-c62x-linux.c: Likewise.
5978 * features/tic6x-c62x.c: Likewise.
5979 * features/tic6x-c64x-linux.c: Likewise.
5980 * features/tic6x-c64x.c: Likewise.
5981 * features/tic6x-c64xp-linux.c: Likewise.
5982 * features/tic6x-c64xp.c: Likewise.
5983 * target-descriptions.c: Only generate `field_type' and `type'
5984 variables when needed.
5985
2def3e66
JB
59862012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5987
5988 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5989
a766d390
DE
59902012-04-25 Doug Evans <dje@google.com>
5991
5992 Initial pass at Go language support.
5993 * NEWS: Mention Go.
5994 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5995 go-valprint.c.
5996 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5997 (YYFILES): Add go-exp.c.
5998 (YYOBJ): Add go-exp.o.
5999 (local-maintainer-clean): Delete go-exp.c.
6000 * defs.h (enum language): Add language_go.
6001 * dwarf2read.c: #include "go-lang.h".
6002 (fixup_go_packaging): New function.
6003 (process_full_comp_unit): Call it when processing Go CUs.
6004 (dwarf2_physname): Add Go support.
6005 (read_file_scope): Handle missing language spec for GNU Go.
6006 (set_cu_language): Handle DW_LANG_Go.
6007 * go-exp.y: New file.
6008 * go-lang.h: New file.
6009 * go-lang.c: New file.
6010 * go-typeprint.c: New file.
6011 * go-valprint.c: New file.
6012 * symtab.c: #include "go-lang.h".
6013 (symbol_set_language): Handle language_go.
6014 (symbol_find_demangled_name, symbol_set_names): Ditto.
6015 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6016
4e2af517
JM
60172012-04-24 Jim Meyering <meyering@redhat.com>
6018
6019 avoid a few strncpy-induced buffer overruns
6020 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6021 fname and psargs before trying to concatenate.
6022 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6023 "name" before applying strchr.
6024
b77b7f52
SCR
60252012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6026
6027 * CONTRIBUTE: Use unified diff instead of context diff when
6028 generating patches.
6029
6321c22a
MR
60302012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6031
6032 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6033 code. Handle JR.HB correctly.
6034
742c84f6
MR
60352012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6036
6037 * mips-tdep.c
6038 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6039 with the other MIPS16 helpers.
6040
7fc7e0c3
SDJ
60412012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6042
6043 * observer.sh: Conditionally declare `args', thus cleaning up
6044 unused instances of this variable.
6045
20388dd6
YQ
60462012-04-24 Yao Qi <yao@codesourcery.com>
6047
6048 Revert this patch to allow breakpoint always-inserted
6049 in record target.
6050 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6051 * breakpoint.c: Include record.h.
6052 (breakpoints_always_inserted_mode): Return false when the record
6053 target is in use.
20388dd6
YQ
6054
6055 * breakpoint.c (iterate_over_bp_locations): New.
6056 * breakpoint.h: Declare.
6057 New typedef walk_bp_location_callback.
6058 * record.c (record_open): Call record_init_record_breakpoints.
6059 (record_sync_record_breakpoints): New.
6060 (record_init_record_breakpoints): New.
6061 * NEWS: Mention supporting breakpoint always-inserted mode in
6062 record target.
6063
4734f50e
MK
60642012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6065
6066 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6067 any thread.
6068
c326b90e
YQ
60692012-04-24 Yao Qi <yao@codesourcery.com>
6070
6071 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6072 (is_catchpoint): ... it.
6073 (print_one_breakpoint_location): Caller update.
6074 * breakpoint.h: Update declaration.
6075
d8fb5a1e
DM
60762012-04-23 David S. Miller <davem@davemloft.net>
6077
6078 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6079
34431a2a
TT
60802012-04-23 Tom Tromey <tromey@redhat.com>
6081
6082 * buildsym.c (add_free_pendings): Remove.
6083 * buildsym.h (add_free_pendings): Remove.
6084
4568ecf9
DE
60852012-04-23 Doug Evans <dje@google.com>
6086
6087 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6088 attr.u.unsnd instead of attr.u.addr.
6089 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6090 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6091 DW_FORM_ref_udata.
6092 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6093 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6094 DW_FORM_ref_udata.
6095 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6096
dca9aa3a
MR
60972012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6098
6099 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6100 (mips_o32_return_value): Likewise.
6101 (mips_o64_return_value): Likewise.
6102
c8ea1972
PH
61032012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6104
6105 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6106 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6107 their treatment in eval.c.
c8ea1972 6108
8d1b3521
DM
61092012-04-21 David S. Miller <davem@davemloft.net>
6110
6111 * sparc-tdep.c (X_DISP10): Define.
6112 (sparc_analyze_control_transfer): Handle compare-and-branch.
6113
03145bf4
JL
61142012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6115
6116 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6117 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6118
004159a2 61192012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6120 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6121
6122 * mips-tdep.c (mips_float_register_p): New function.
6123 (mips_convert_register_float_case_p): Use mips_float_register_p.
6124 (mips_register_type): Likewise.
6125 (mips_print_register): Likewise.
6126 (print_gp_register_row): Likewise.
6127 (mips_print_registers_info): Likewise.
6128
7f0e6aae
MR
61292012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6130
6131 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6132 of mips16 symbols.
6133
bc17beea
AP
61342012-04-20 Andrew Pinski <apinski@cavium.com>
6135
6136 * MAINTAINERS (Write After Approval): Add myself to the list.
6137
1730a5a5
SDJ
61382012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6139
6140 * MAINTAINERS: Update my e-mail address.
6141
38ea300a
PA
61422012-04-20 Pedro Alves <palves@redhat.com>
6143
6144 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6145 $srcdir.
6146 * configure: Regenerate.
6147
111dfaae
SDJ
61482012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6149
6150 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6151 declaration.
6152 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6153
4fb2c64a
JK
61542012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6155
6156 Fix compilation compatibility with python-2.4
6157 * python/py-type.c (convert_field): Cast ADDRSTRING for
6158 PyObject_SetAttrString as non-const. New comment.
6159
6328eb38
TT
61602012-04-19 Tom Tromey <tromey@redhat.com>
6161
6162 * top.c (quit_target): Use all_cleanups.
6163 * main.c (captured_command_loop): Use all_cleanups.
6164 * exceptions.c (throw_exception): Use all_cleanups.
6165
c971b7fa
PA
61662012-04-19 Pedro Alves <palves@redhat.com>
6167
6168 * Makefile.in (GNULIB_BUILDDIR): New.
6169 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6170 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6171 (CLEANDIRS). Remove gnulib/import.
6172 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6173 (all-lib): Ditto.
6174 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6175 (gnulib/import/Makefile): Replace gnulib/import with
6176 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6177 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6178 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6179 acx_configure_dir.m4.
6180 * acinclude.m4: Include acx_configure_dir.m4.
6181 * acx_configure_dir.m4: New file.
6182 * aclocal.m4: Regenerate.
a09130f9
PA
6183 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6184 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6185 (GNULIB): New variable.
6186 (GNULIB_STDINT_H): Adjust.
6187 (AC_OUTPUT): Don't output gnulib/Makefile.
6188 * gdb/defs.h: Include build-gnulib/config.h.
6189 * aclocal.m4: Regenerate.
6190 * config.in: Regenerate.
6191 * configure: Regenerate.
6192
6193 * gnulib/Makefile.in: New file.
6194 * gnulib/configure.ac: New file.
6195 * gnulib/aclocal.m4: New file.
6196 * gnulib/config.in: New file.
6197 * gnulib/configure: New file.
c971b7fa
PA
6198 * gnulib/: Re-run gnulib-tool to adjust.
6199
b10faa68
DE
62002012-04-19 Doug Evans <dje@google.com>
6201
6202 * cleanups.h (struct cleanup): Move to cleanups.c.
6203 (make_cleanup_dtor_ftype): New typedef.
6204 (make_cleanup_dtor): Use it.
6205 (ALL_CLEANUPS): Replace with ...
6206 (all_cleanups): ... this. Declare. All uses updated.
6207 * cleanups.c: #include "gdb_assert.h".
6208 (sentinel_cleanup): New static global.
6209 (SENTINEL_CLEANUP): Define.
6210 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6211 (make_my_cleanup2): Assert result is non-NULL.
6212 (all_cleanups): New function.
6213 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6214 of NULL.
6215
d8c267cc
PA
62162012-04-19 Pedro Alves <palves@redhat.com>
6217
6218 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6219 Adjust paths to gnulib imported files.
6220
809277f8
PA
62212012-04-19 Pedro Alves <palves@redhat.com>
6222
6223 * gnulib/: Move whole directory ...
6224 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6225 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6226 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6227 (aclocal_m4_deps): Adjust.
6228 * aclocal.m4: Regenerate.
6229 * configure: Regenerate.
6230 * configure.ac: Adjust AC_OUTPUT output.
6231
aad9eab9
YQ
62322012-04-19 Yao Qi <yao@codesourcery.com>
6233
6234 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6235 (vec.o): New rule.
6236 * vec.c: Move it ...
6237 * common/vec.c: ... here.
6238 * vec.h: Move it ...
6239 * common/vec.h: ... here.
6240
48fe4669
YQ
62412012-04-19 Yao Qi <yao@codesourcery.com>
6242
6243 * gdb-code-style.el: New.
6244
770d76d7
PA
62452012-04-18 Pedro Alves <palves@redhat.com>
6246
6247 Update gnulib from latest git.
6248 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6249
6250 * gnulib/Makefile.am: Update.
6251 * gnulib/dummy.c: Update.
6252 * gnulib/extra/arg-nonnull.h: Update.
6253 * gnulib/extra/c++defs.h: Update.
6254 * gnulib/extra/update-copyright: Update.
6255 * gnulib/extra/warn-on-use.h: Update.
6256 * gnulib/inttypes.in.h: Update.
6257 * gnulib/m4/00gnulib.m4: Update.
6258 * gnulib/m4/extensions.m4: Update.
6259 * gnulib/m4/gnulib-cache.m4: Update.
6260 * gnulib/m4/gnulib-common.m4: Update.
6261 * gnulib/m4/gnulib-comp.m4: Update.
6262 * gnulib/m4/gnulib-tool.m4: Update.
6263 * gnulib/m4/include_next.m4: Update.
6264 * gnulib/m4/inttypes-pri.m4: Update.
6265 * gnulib/m4/inttypes.m4: Update.
6266 * gnulib/m4/longlong.m4: Update.
6267 * gnulib/m4/memchr.m4: Update.
6268 * gnulib/m4/memmem.m4: Update.
6269 * gnulib/m4/mmap-anon.m4: Update.
6270 * gnulib/m4/multiarch.m4: Update.
6271 * gnulib/m4/onceonly.m4: Update.
6272 * gnulib/m4/stddef_h.m4: Update.
6273 * gnulib/m4/stdint.m4: Update.
6274 * gnulib/m4/string_h.m4: Update.
6275 * gnulib/m4/warn-on-use.m4: Update.
6276 * gnulib/m4/wchar_h.m4: Update.
6277 * gnulib/m4/wchar_t.m4: Update.
6278 * gnulib/m4/wint_t.m4: Update.
6279 * gnulib/memchr.c: Update.
6280 * gnulib/memmem.c: Update.
6281 * gnulib/stddef.in.h: Update.
6282 * gnulib/stdint.in.h: Update.
6283 * gnulib/str-two-way.h: Update.
6284 * gnulib/string.in.h: Update.
6285 * gnulib/wchar.in.h: Update.
6286
6287 * gnulib/extra/arg-nonnull.h: Delete.
6288 * gnulib/extra/c++defs.h: Delete.
6289 * gnulib/extra/warn-on-use.h: Delete.
6290 * gnulib/m4/wchar_h.m4: Delete.
6291 * gnulib/m4/wint_t.m4: Delete.
6292 * gnulib/wchar.in.h: Delete.
6293
6294 * gnulib/extra/snippets/arg-nonnull.h: New.
6295 * gnulib/extra/snippets/c++defs.h: New.
6296 * gnulib/extra/snippets/warn-on-use.h: New.
6297
6298 * aclocal.m4: Regenerate.
6299 * config.in: Regenerate.
6300 * configure: Regenerate.
6301 * gnulib/Makefile.in: Regenerate.
6302
174e088e
PA
63032012-04-18 Pedro Alves <palves@redhat.com>
6304
6305 Reimport the update-copyright module from gnulib
6306 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6307
6308 * configure: Regenerate.
6309 * gnulib/Makefile.am: Update.
6310 * gnulib/Makefile.in: Regenerate.
6311 * gnulib/extra/update-copyright: Update.
6312 * gnulib/m4/gnulib-cache.m4: Update.
6313 * gnulib/m4/gnulib-comp.m4: Update.
6314
7f533142
JB
63152012-04-18 Tristan Gingold <gingold@adacore.com>
6316
6317 * configure.ac (aix): Put -lpthread into libs.
6318 * configure: Regenerate.
6319
001822aa
TT
63202012-04-18 Tom Tromey <tromey@redhat.com>
6321
6322 * linespec.c (convert_linespec_to_sals): Don't use
6323 SYMBOL_OBJ_SECTION.
6324 (compare_msymbols): Arguments are minsym_and_objfile, not
6325 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6326
db026a31
PA
63272012-04-18 Pedro Alves <palves@redhat.com>
6328
6329 Revert gnulib/ part of:
6330 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6331 Copyright year update in most files (performed by copyright.sh).
6332
12df843f
JK
63332012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6334
6335 Fix 64-bit constants on 32-bit hosts.
6336 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6337 from unsigned long to ULONGEST.
6338 (read_signed_leb128): Change declaration return type from long to
6339 LONGEST.
6340 (dwarf2_const_value_attr): Change declaration parameter value from long
6341 to LONGEST.
6342 (dwarf2_compute_name): Change variable value from long to LONGEST.
6343 (read_unsigned_leb128): Change return type, variable result and some
6344 casts from unsigned long to ULONGEST.
6345 (read_signed_leb128): Change return type, variable result and some
6346 casts from long to LONGEST.
6347 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6348 value from long to LONGEST.
6349 (dwarf2_const_value): Change variable value from long to LONGEST.
6350 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6351 plongest and hex_string.
6352 * symtab.h (struct general_symbol_info): Change ivalue from long to
6353 LONGEST, remove the comment.
6354 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6355 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6356
14e75d8e
JK
63572012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6358
6359 PR symtab/7259:
6360 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6361 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6362 (ada_discrete_type_low_bound): Fix function comment. Use
6363 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6364 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6365 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6366 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6367 Use TYPE_FIELD_ENUMVAL.
6368 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6369 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6370 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6371 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6372 TYPE_CODE_ENUM.
6373 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6374 * dwarf2read.c (process_enumeration_scope): Likewise.
6375 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6376 field.bitpos.
6377 (class StructMainTypePrettyPrinter): Support also
6378 FIELD_LOC_KIND_ENUMVAL.
6379 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6380 TYPE_CODE_ENUM.
6381 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6382 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6383 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6384 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6385 field enumval.
6386 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6387 accommodate enumval.
6388 (struct call_site): Adjust loc_kind to accommodate enumval.
6389 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6390 (TYPE_FIELD_ENUMVAL): New macros.
6391 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6392 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6393 TYPE_CODE_ENUM.
6394 * p-typeprint.c (pascal_type_print_base): Likewise.
6395 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6396 enumval.
6397 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6398 * python/py-type.c (convert_field): New variable addrstring. Use
6399 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6400 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6401 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6402 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6403 TYPE_CODE_ENUM.
6404 * valprint.c (generic_val_print): Likewise.
6405
380bca97
DE
64062012-04-17 Doug Evans <dje@google.com>
6407
dcc07052
DE
6408 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6409
380bca97
DE
6410 * dwarf2read.c: Whitespace fixes.
6411 (lookup_signatured_type): Tweak comment.
6412 (get_die_type_at_offset): Fix comment.
6413
ec92004f
JB
64142012-04-17 Joel Brobecker <brobecker@adacore.com>
6415
6416 * xcoffread.c (xcoff_secnum_to_sections): New function.
6417 (secnum_to_section, secnum_to_bfd_section): Reimplement
6418 using xcoff_secnum_to_sections. Rename "secnum" parameter
6419 into "n_scnum".
6420 (RECORD_MINIMAL_SYMBOL): Delete.
6421 (record_minimal_symbol): New function.
6422 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6423 by call to record_minimal_symbol and set misc_func_recorded
6424 to 1. Set last_csect_sec to the XCOFF section index instead
6425 of GDB's section_offset index. Update calls to
6426 prim_record_minimal_symbol_and_info to pass the BFD section
6427 as well.
6428
40301fb7
JB
64292012-04-17 Joel Brobecker <brobecker@adacore.com>
6430
6431 * xcoffread.c (read_xcoff_symtab): Delete variables
6432 last_csect_val and last_csect_sec and associated code.
6433
e0088cfd
DE
64342012-04-17 Doug Evans <dje@google.com>
6435
58d5e2c3
DE
6436 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6437 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6438 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6439 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6440
c27f5738
DE
6441 * cleanups.h: New file.
6442 * cleanups.c: New file.
6443 * Makefile.in (SFILES): Add cleanups.c.
6444 (HFILES_NO_SRCDIR): Add cleanups.h.
6445 (COMMON_OBS): Add cleanups.o.
6446 * defs.h (struct cleanup): Moved to cleanups.h.
6447 (do_cleanups,do_final_cleanups): Ditto.
6448 (discard_cleanups,discard_final_cleanups): Ditto
6449 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6450 (save_cleanups,save_final_cleanups): Ditto.
6451 (restore_cleanups,restore_final_cleanups): Ditto.
6452 (null_cleanup): Ditto.
6453 (make_my_cleanup,make_my_cleanup2): Ditto.
6454 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6455 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6456 (do_cleanups,do_final_cleanups): Ditto.
6457 (discard_cleanups,discard_final_cleanups): Ditto
6458 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6459 (save_cleanups,save_final_cleanups): Ditto.
6460 (restore_cleanups,restore_final_cleanups): Ditto.
6461 (null_cleanup): Ditto.
6462 (make_my_cleanup,make_my_cleanup2): Ditto.
6463 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6464
e0088cfd
DE
6465 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6466 make_my_cleanup.
6467 (make_cleanup_dyn_string_delete): Ditto.
6468 (make_cleanup_ui_file_delete): Ditto.
6469 (make_cleanup_ui_out_redirect_pop): Ditto.
6470 (make_cleanup_free_section_addr_info): Ditto.
6471 (make_cleanup_restore_integer): Ditto.
6472 (make_cleanup_unpush_target): Ditto.
6473 (make_cleanup_value_free_to_mark): Ditto.
6474 (make_cleanup_value_free): Ditto.
6475 (make_cleanup_free_so): Ditto.
6476
4dc84fd1
JK
64772012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6478
6479 New option "set debug auto-load".
6480 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6481 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6482 (auto_load_safe_path_vec_update)
6483 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6484 if DEBUG_AUTO_LOAD.
6485 (file_is_auto_load_safe): New parameters debug_fmt and ....
6486 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6487 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6488 caller by explanatory string.
6489 (_initialize_auto_load): Register "set debug auto-load".
6490 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6491 and ....
6492 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6493 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6494 by explanatory string.
6495 * main.c (captured_main): Likewise.
6496 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6497 (source_section_scripts): Likewise.
6498
bccbefd2
JK
64992012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6500
6501 New option "set auto-load safe-path".
6502 * NEWS: New commands "set auto-load safe-path"
6503 and "show auto-load safe-path".
6504 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6505 (auto_load_safe_path, auto_load_safe_path_vec)
6506 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6507 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6508 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6509 (source_gdb_script_for_objfile): New variable is_safe. Call
6510 file_is_auto_load_safe. Return if it is not.
6511 (struct loaded_script): New field loaded.
6512 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6513 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6514 output "Missing" to "No".
6515 (_initialize_auto_load): New variable cmd. Initialize
6516 auto_load_safe_path. Register "set auto-load safe-path",
6517 "show auto-load safe-path" and "add-auto-load-safe-path".
6518 * auto-load.h (maybe_add_script): Add parameter loaded.
6519 (file_is_auto_load_safe): New declaration.
6520 * config.in: Regenerate.
6521 * configure: Regenerate.
6522 * configure.ac: New parameters --with-auto-load-safe-path
6523 and --without-auto-load-safe-path.
6524 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6525 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6526 * main.c (captured_main): Check file_is_auto_load_safe for
6527 LOCAL_GDBINIT.
6528 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6529 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6530 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6531 not.
6532
bf88dd68
JK
65332012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6534
6535 auto-load: Implementation.
6536 * NEWS: New descriptions for "info auto-load",
6537 "info auto-load gdb-scripts", "info auto-load python-scripts",
6538 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6539 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6540 and "show auto-load-scripts". New description for "set auto-load",
6541 "show auto-load", "set auto-load gdb-scripts",
6542 "show auto-load gdb-scripts", "set auto-load python-scripts",
6543 "show auto-load python-scripts", "set auto-load local-gdbinit",
6544 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6545 "show auto-load libthread-db".
6546 * auto-load.c: Remove include python/python-internal.h. Add includes
6547 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6548 cli/cli-setshow.h.
6549 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6550 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6551 (gdbpy_global_auto_load): Rename to ...
6552 (global_auto_load): ... here.
6553 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6554 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6555 (script_language_gdb, source_gdb_script_for_objfile): New.
6556 (struct loaded_script): New field language.
6557 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6558 LANGUAGE.
6559 (maybe_add_script): Add parameter language. Drop redundant
6560 entry.full_path initialization. Initialize entry.language and
6561 (*slot)->language.
6562 (auto_load_objfile_script): Change parameter suffix to language.
6563 Remove the call of maybe_add_script.
6564 Call language->source_script_for_objfile.
6565 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6566 New.
6567 (collect_matching_scripts): Adjust it for
6568 struct collect_matching_scripts_data.
6569 (auto_load_info_scripts_pattern_nl): New variable.
6570 (info_auto_load_scripts): Rename to ...
6571 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6572 for struct collect_matching_scripts_data.
6573 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6574 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6575 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6576 (auto_load_info_cmdlist_get): New.
6577 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6578 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6579 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6580 "info auto-load local-gdbinit".
6581 * auto-load.h (struct script_language): New.
6582 (gdbpy_global_auto_load): Rename to ...
6583 (global_auto_load): ... here.
6584 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6585 (auto_load_local_gdbinit_loaded): New declarations.
6586 (maybe_add_script): New parameter language.
6587 (auto_load_objfile_script): Change parameter suffix to language.
6588 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6589 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6590 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6591 declarations.
6592 * linux-thread-db.c: Include auto-load.h and ctype.h.
6593 (auto_load_thread_db, show_auto_load_thread_db): New.
6594 (struct thread_db_info): New field filename.
6595 (delete_thread_db_info): Call xfree for FILENAME.
6596 (try_thread_db_load): Initialize FILENAME.
6597 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6598 if !AUTO_LOAD_THREAD_DB.
6599 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6600 (_initialize_thread_db): Install auto_load_thread_db
6601 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6602 as "info auto-load libthread-db".
6603 * main.c (captured_main): Rename gdbpy_global_auto_load to
6604 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6605 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6606 (print_gdb_help): Extend the help for 'local init file'.
6607 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6608 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6609 (auto_load_scripts): Rename to ...
6610 (auto_load_python_scripts): ... here, update the comment.
6611 (gdbpy_load_auto_script_for_objfile): New declaration.
6612 (show_auto_load_python_scripts, script_language_python)
6613 (gdbpy_load_auto_script_for_objfile): New.
6614 (source_section_scripts): Refactor the code.
6615 (load_auto_scripts_for_objfile): Rename to ...
6616 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6617 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6618 (info_auto_load_python_scripts): New.
6619 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6620 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6621 Register "set auto-load-scripts" as its deprecated alias. Register
6622 "info auto-load python-scripts". Register "info auto-load-scripts" as
6623 its deprecated alias.
6624 (load_auto_scripts_for_objfile): Rename to ...
6625 (gdbpy_load_auto_scripts_for_objfile): ... here.
6626 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6627 (gdbpy_load_auto_scripts_for_objfile): ... here.
6628
e2207b9a
JK
66292012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6630
6631 auto-load: Move files.
6632 * Makefile.in (SFILES): Add auto-load.c.
6633 (HFILES_NO_SRCDIR): Add auto-load.h.
6634 (COMMON_OBS): Add auto-load.o.
6635 (distclean): Change .gdbinit for gdb-gdb.gdb.
6636 * auto-load.c: New file, with parts from python/py-auto-load.c.
6637 * auto-load.h: New file, with parts from python/python.h.
6638 * configure: Regenerate.
6639 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6640 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6641 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6642 * main.c: Include auto-load.h.
6643 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6644 command.h, observer.h and progspace.h to auto-load.c. Add include
6645 auto-load.h.
6646 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6647 (struct loaded_script, auto_load_pspace_data)
6648 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6649 (hash_loaded_script_entry, eq_loaded_script_entry)
6650 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6651 (maybe_add_script): Move to auto-load.c.
6652 (source_section_scripts): Change maybe_add_script parameters passing,
6653 use script_not_found_warning_print.
6654 (clear_section_scripts, auto_load_objfile_script)
6655 (auto_load_new_objfile, loaded_script_ptr)
6656 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6657 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6658 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6659 auto_load_new_objfile and info_auto_load_scripts initizations to
6660 auto-load.c.
6661 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6662
e4ab2fad
JK
66632012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6664
6665 Code cleanup.
6666 * charset.c (find_charset_names): Remove variables ix and elt.
6667 Use free_char_ptr_vec.
6668 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6669 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6670 debugdir_end. New variable debugdir_len.
6671 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6672 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6673 declarations.
6674 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6675 and elt. Use free_char_ptr_vec.
6676 * source.c (add_path): Remove variables argv, arg and argv_index.
6677 New variables dir_vec, back_to, ix and name.
6678 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6679 make_cleanup_freeargv. Remove variable separator. Simplify the code
6680 no longer expecting DIRNAME_SEPARATOR.
6681 (openp): Remove variable p, p1 and len. New variables dir_vec,
6682 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6683 no longer expecting DIRNAME_SEPARATOR.
6684 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6685 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6686 debugdir_end.
6687 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6688 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6689 (dirnames_to_char_ptr_vec): New functions.
6690
5ee4ed9f
JK
66912012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6692
6693 Code cleanup.
6694 * source.c (add_path): Remove always true conditional 'p == 0' and
6695 unindent its code block.
6696
f41f5e61
PA
66972012-04-17 Pedro Alves <palves@redhat.com>
6698
6699 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6700 (FIELD_BITPOS_LVAL): ... this.
6701 (FIELD_BITPOS): New.
6702 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6703 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6704 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6705 SET_FIELD_BITPOS.
6706 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6707 SET_FIELD_BITPOS.
6708 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6709 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6710 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6711 SET_FIELD_BITPOS.
6712
945b3a32
JK
67132012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6714
6715 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6716 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6717 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6718 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6719 * jv-lang.c (java_link_class_type): Likewise, once.
6720 * stabsread.c (read_enum_type): Likewise.
6721
42476b70
YQ
67222012-04-16 Yao Qi <yao@codesourcery.com>
6723
6724 * common/agent.c (agent_run_command): Add one more parameter `len'.
6725 Update callers.
6726 * common/agent.h: Update declaration.
6727 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6728 Update.
6729 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6730
8264ba82
AG
67312012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6732
6733 PR mi/13393
6734 * value.c (value_actual_type): New function.
6735 * value.h (value_actual_type): New declaration.
6736 * varobj.c (update_type_if_necessary): New function.
6737 (varobj_create): Call value_actual_type instead of
6738 value_type.
6739 (install_dynamic_child): distinct changed and type changed MI variable
6740 objects.
6741 (update_dynamic_varobj_children): Updated for install_dynamic_child
6742 change. All callers updated.
a09130f9 6743 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6744 the value changed and RTTI is used to determine the type.
6745 (create_child_with_value): Call value_actual_type instead of
6746 value_type.
a09130f9 6747 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6748 specify whether the given value should be casted to enclosing type.
6749 All callers updated.
6750
55a8c076
YQ
67512012-04-14 Yao Qi <yao@codesourcery.com>
6752
6753 Import gnulib module inttypes from git
6754 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6755 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6756 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6757 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6758 * aclocal.m4, config.in, configure: Regenerated.
6759 * gnulib/Makefile.am: Update.
6760 * gnulib/Makefile.in: Update.
6761 * gnulib/m4/gnulib-cache.m4: Update.
6762 * gnulib/m4/gnulib-comp.m4: Update.
6763 * gnulib/inttypes.in.h: New.
6764 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6765 * gnulib/m4/inttypes.m4: New.
55a8c076 6766
ca7781d2
LM
67672012-04-13 Luis Machado <lgustavo@codesourcery.com>
6768
6769 * infrun.c (resume): Update PC address to the real PC after
6770 preparing to do displaced stepping.
6771
e319fa28
DE
67722012-04-12 Doug Evans <dje@google.com>
6773
6774 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6775 All callers updated.
6776
15add3f5
MK
67772012-04-12 Mark Kettenis <kettenis@gnu.org>
6778
6779 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6780
52dc124a
DE
67812012-04-12 Doug Evans <dje@google.com>
6782
0e50663e
DE
6783 * dwarf2read.c (create_all_type_units): Renamed from
6784 create_debug_types_hash_table. All callers updated.
6785
52dc124a
DE
6786 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6787 local type_sig to sig_type, type_offset to type_offset_in_tu.
6788 (hash_signatured_type): Renamed from hash_type_signature,
6789 all callers updated.
6790 (eq_signatured_type): Renamed from eq_type_signature,
6791 all callers updated.
6792 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6793 (process_enumeration_scope): Ditto.
6794 (lookup_signatured_type_at_offset): Ditto.
6795 (load_full_type_unit, read_signatured_type): Ditto.
6796
248fd3bf
YQ
67972012-04-12 Yao Qi <yao@codesourcery.com>
6798
6799 * remote.c (async_remote_interrupt): Correct function name in
6800 debug message.
6801 (async_remote_interrupt_twice): Ditto.
6802
bc3aa6c3
DE
68032012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6804
6805 * source.c (find_and_open_source): Consistently pass resulting
6806 full path through xfullpath.
6807
9e529e1d
JK
68082012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6809
6810 Provide more specific displaced-stepping memory error message.
6811 * infrun.c (displaced_step_prepare): New variable status. Call
6812 target_read_memory instead of read_memory, provide more specific
6813 error message.
6814
82e0cec1
TG
68152012-04-11 Tristan Gingold <gingold@adacore.com>
6816
6817 PR gdb/13901
6818 * darwin-nat.c (darwin_execvp): Revert previous patch.
6819
d987a266
TG
68202012-04-11 Tristan Gingold <gingold@adacore.com>
6821
6822 PR gdb/13901
6823 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6824 in case of change.
6825
016b7430
TG
68262012-04-11 Tristan Gingold <gingold@adacore.com>
6827
6828 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6829 warning.
6830
06fc020f
SCR
68312012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6832
6833 New command 'explore' which helps explore values and types in
6834 scope.
6835 * NEWS: Add an entry about the new 'explore' command.
6836 * data-directory/Makefile.in: Add gdb/command/explore.py
6837 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6838 command using the GDB Python API.
06fc020f 6839
de0919f8 68402012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6841
6842 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6843 extension in jump target calculation.
6844
de0919f8 68452012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6846
6847 * mips-tdep.c (mips32_next_pc): Handle JALX.
6848
2f26ef89
YQ
68492012-04-10 Yao Qi <yao@codesourcery.com>
6850
6851 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6852
2e505b66
YQ
68532012-04-10 Yao Qi <yao@codesourcery.com>
6854
6855 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6856 and gnulib/m4/gnulib-tool.m4.
6857
0d99eb77
DE
68582012-04-10 Doug Evans <dje@google.com>
6859
6860 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6861 (load_partial_dies): Clarify comment.
6862 (find_partial_die): Support rereading type units.
6863 Clarify CU handling, if we know offset is in CU, don't search for the
6864 containing CU. Add comment regarding memory waste.
6865
9a82b8ff
L
68662012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6867
6868 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6869 i386/x32-avx and i386/x32-avx-linux.
6870 (i386/x32-expedite): New.
6871 (i386/x32-linux-expedite): Likewise.
6872 (i386/x32-avx-expedite): Likewise.
6873 (i386/x32-avx-linux-expedite): Likewise.
6874 ($(outdir)/i386/x32.dat): Likewise.
6875 ($(outdir)/i386/x32-linux.dat): Likewise.
6876 ($(outdir)/i386/x32-avx.dat): Likewise.
6877 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6878
6879 * features/i386/x32-avx-linux.xml: New file.
6880 * features/i386/x32-avx.xml: Likewise.
6881 * features/i386/x32-core.xml: Likewise.
6882 * features/i386/x32-linux.xml: Likewise.
6883 * features/i386/x32.xml: Likewise.
6884
6885 * features/i386/x32-avx-linux.c: New. Generated.
6886 * features/i386/x32-avx.c: Likewise.
6887 * features/i386/x32-linux.c: Likewise.
6888 * features/i386/x32.c: Likewise.
6889 * regformats/i386/x32-avx-linux.dat: Likewise.
6890 * regformats/i386/x32-avx.dat: Likewise.
6891 * regformats/i386/x32-linux.dat: Likewise.
6892 * regformats/i386/x32.dat: Likewise.
6893
ee41036f
TG
68942012-04-10 Tristan Gingold <gingold@adacore.com>
6895
6896 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6897 code to kill the inferior.
6898
a7aa5b8a
MK
68992012-04-09 Mark Kettenis <kettenis@gnu.org>
6900
6901 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6902 defines.
6903 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6904 defines.
a09130f9 6905 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6906 (yyvsp): New defines.
6907 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6908 defines.
6909 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6910 defines.
6911 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6912 defines.
6913 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6914 defines.
6915 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6916 defines.
6917
fb57d452
MK
69182012-04-09 Mark Kettenis <kettenis@gnu.org>
6919
a09130f9 6920 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6921 (sparc64_store_arguments): Fix coding style.
6922
cdc7b32f
MK
69232012-04-07 Mark Kettenis <kettenis@gnu.org>
6924
6925 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6926 complex floats, adjust some related comments and tighten a related
6927 assertion.
6928 (sparc64_extract_return_value): Handle complex floats.
6929
7adf1e79
DE
69302012-04-07 Doug Evans <dje@google.com>
6931
6932 * dwarf2read.c (load_partial_dies): Change condition to assert.
6933
50f1ae7b
DE
69342012-04-06 Doug Evans <dje@google.com>
6935
6936 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6937 "mov %rsp,%rbp".
6938
55fa75c3
KB
69392012-04-05 Kevin Buettner <kevinb@redhat.com>
6940
6941 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6942 fencepost error.
6943 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6944 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6945 architecture.
6946
40e084e1
KS
69472012-04-05 Keith Seitz <keiths@redhat.com>
6948
6949 * linespec.c (decode_compound): Remove.
6950 (enum offset_relative_sign): New enum.
6951 (struct line_offset): New struct.
6952 (struct linespec): New struct.
6953 (struct linespec_state): Move file_symtabs,
6954 user_filename, and user_function into struct linespec.
6955 Make result an anonymous struct holding vectors of
6956 symbolp and minsym_and_objfile_d.
6957 Add language member.
6958 (enum ls_token_type): New enum.
6959 (linespec_keywords): New array.
6960 (struct ls_token): New struct.
6961 (struct ls_parser): New struct.
6962 (linespec_lexer_lex_number): New function.
6963 (linespec_lexer_lex_keyword): New function.
6964 (is_ada_operator): New function.
6965 (skip_quote_char): New function.
6966 (copy_token_string): New function.
6967 (is_closing_quote_enclosed): New function.
6968 (find_parameter_list_end): New function.
6969 (linespec_lexer_lex_string): New function.
6970 (linespec_lexer_lex_one): New function.
6971 (linespec_lexer_consume_token): New function.
6972 (linespec_lexer_peek_token): New function.
6973 (cplusplus_error): Remove unused function.
6974 (find_methods): Update comment.
6975 (find_toplevel_char): Return const.
6976 (is_objc_method_format): Remove unused function.
6977 (find_toplevel_string): New function.
6978 (is_linespec_boundary): Remove.
6979 (symbol_not_found_error): New function.
6980 (find_method_overload_end): Remove function.
6981 (unexpected_linespec_error): New function.
6982 (keep_name_info): Remove.
6983 (linespec_parse_line_offset): New function.
6984 (linespec_parse_basic): New function.
6985 (canonicalize_linespec): New function.
6986 (decode_line_internal): Remove.
6987 (create_sals_line_offset): New function adapted from
6988 decode_all_digits.
6989 (convert_linespec_to_sals): New function.
6990 (parse_linespec): New function.
6991 (linespec_parser_new): New function.
6992 (linespec_state_destructor): Change parameter type to
6993 struct linespec_state *.
6994 Add language parameter.
6995 Remove freeing of moved members.
6996 (linespec_parser_delete): New function.
6997 (decode_line_full): Use parse_linespec and linespec_parser_new.
6998 (decode_line_1): Likewise.
6999 (decode_indirect): Rename to ...
7000 (linespec_expression_to_pc): ... this and rewrite
7001 to simply find CORE_ADDR, storing this result for later
7002 conversion to SALs.
7003 (locate_first_half): Remove.
7004 (deocde_objc): Add parameter LS.
7005 Initialize new struct collect_info members.
7006 Handle minimal symbols, too.
7007 (decode_compound): Delete.
7008 (lookup_prefix_sym): Rewrite.
7009 (compare_msymbols): New function.
7010 (find_method): Rewrite.
7011 Do not call cplusplus_error.
7012 (symtabs_from_filename): Rewrite.
7013 (collect_function_symbols): Delete.
7014 (find_function_symbols): Rewrite without ARGPTR-style
7015 processing.
7016 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7017 (decode_dollar): Adapted and renamed to ...
7018 (linespec_parse_variable): ... this.
7019 (find_linespec_symbols): New function.
7020 (decode_label): Adapted and renamed to ...
7021 (find_label_symbols): ... this.
7022 (decode_digits_list_mode): Add and use LS argument.
7023 (decode_digits_ordinary): Likewise.
7024 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7025 If in list mode, allow any symbol class. Otherwise, only
7026 permit LOC_BLOCK symbols.
7027 (minsym_found): Update comments.
7028 (search_minsyms_for_name): Do not convert the matching symbol
7029 into a SAL. Simply push the symbol and objfile into the
7030 result vector.
7031 (decode_variable): Delete. Contents adapted into
7032 find_linespec_symbols.
7033
7034 * cp-support.c (SKIP_SPACE): Remove.
7035 (operator_tokens): Remove unused global.
7036 (cp_validate_operator): Remove.
7037 * cp-support.h (cp_validate_operator): Remove declaration.
7038
a72c8f6a
JK
70392012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7040
7041 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7042 for TYPE_VPTR_FIELDNO.
7043 * valprint.c (valprint_check_validity): Make it global, move the
7044 function comment ...
7045 * value.h (valprint_check_validity): ... to this new declaration.
7046
cf9bb588
TG
70472012-04-02 Tristan Gingold <gingold@adacore.com>
7048
7049 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7050 the STATE32 api for i386 state.
7051 (i386_darwin_store_inferior_registers): Likewise.
7052
17092398
TG
70532012-04-02 Tristan Gingold <gingold@adacore.com>
7054
7055 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7056 SS offset.
7057 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7058 format_string.
7059
ece0061f
TG
70602012-04-02 Tristan Gingold <gingold@adacore.com>
7061
7062 PR gdb/13901
d987a266 7063 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7064
cf65ecd3
JK
70652012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7066
7067 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7068
9bc3523d
TT
70692012-03-30 Tom Tromey <tromey@redhat.com>
7070
7071 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7072 of TRY_CATCH. Fix error handling.
7073 * python/py-value.c (convert_value_from_python): Move 'old'
7074 declaration to innermost scope.
7075
b1ed564a
JB
70762012-03-29 Joel Brobecker <brobecker@adacore.com>
7077 Andrey Smirnov <andrew.smirnov@gmail.com>
7078
7079 -Wshadow warning fix.
7080 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7081 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7082 Adjust code accordingly.
7083
cb8e9b97
JB
70842012-03-29 Joel Brobecker <brobecker@adacore.com>
7085
7086 * ada-lang.c (symbol_completion_add): Rename parameter
7087 "encoded" into "encoded_p". Ajust code and documentation
7088 accordingly.
7089
c0af1706
JB
70902012-03-29 Joel Brobecker <brobecker@adacore.com>
7091 Andrey Smirnov <andrew.smirnov@gmail.com>
7092
7093 -Wshadow warning fix.
7094 * ada-lang.c (symbol_completion_add): Rename parameter
7095 "wild_match" into wild_match_p. Update code and documentation
7096 accordingly.
7097
6ea35997
JB
70982012-03-29 Joel Brobecker <brobecker@adacore.com>
7099
7100 * ada-lang.c (symbol_completion_match): Rename parameter
7101 "encoded" into "encoded_p". Ajust code and documentation
7102 accordingly.
7103
e701b3c0
JB
71042012-03-29 Joel Brobecker <brobecker@adacore.com>
7105 Andrey Smirnov <andrew.smirnov@gmail.com>
7106
7107 -Wshadow warning fix.
7108 * ada-lang.c (symbol_completion_match): Rename parameter
7109 "wild_match" into "wild_match_p". Adjust code and function
7110 documentation accordingly.
7111
5e2336be
JB
71122012-03-29 Joel Brobecker <brobecker@adacore.com>
7113 Andrey Smirnov <andrew.smirnov@gmail.com>
7114
7115 -Wshadow warning fix.
7116 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7117 "symbol_info" into "info". Adjust code accordingly.
7118 (ada_lookup_symbol): Likewise.
7119
9f88c959
JB
71202012-03-29 Joel Brobecker <brobecker@adacore.com>
7121
7122 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7123 of this function's documentation.
7124
82ccd55e
JB
71252012-03-29 Joel Brobecker <brobecker@adacore.com>
7126 Andrey Smirnov <andrew.smirnov@gmail.com>
7127
7128 -Wshadow warning fix.
7129 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7130 variable into "wild_match_p". Adjust code accordingly.
7131
d0a8ab18
JB
71322012-03-29 Joel Brobecker <brobecker@adacore.com>
7133 Andrey Smirnov <andrew.smirnov@gmail.com>
7134
7135 -Wshadow warning fix.
7136 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7137 parameter into "wild_match_p". Adjust code accordingly.
7138 Document this parameter in the function description.
7139
48b78332
JB
71402012-03-29 Joel Brobecker <brobecker@adacore.com>
7141 Andrey Smirnov <andrew.smirnov@gmail.com>
7142
7143 -Wshadow warning fix.
7144 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7145 "wild_match" parameter to "wild_match_p" (-Wshadow).
7146
2e6e0353
JB
71472012-03-29 Joel Brobecker <brobecker@adacore.com>
7148
7149 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7150 in function documentation.
7151
dc4024cd
JB
71522012-03-29 Joel Brobecker <brobecker@adacore.com>
7153 Andrey Smirnov <andrew.smirnov@gmail.com>
7154
7155 -Wshadow warning fix.
7156 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7157 variable into wild_match_p. Adjust code accordingly.
7158
6c88661c
JB
71592012-03-29 Joel Brobecker <brobecker@adacore.com>
7160 Andrey Smirnov <andrew.smirnov@gmail.com>
7161
7162 * ada-valprint.c (ada_val_print_1): Move the code handling
7163 TYPE_CODE_ENUM inside its own lexical block. Declare
7164 variables len and val there, instead of in the function's
7165 top level block. Avoid declaring deref_val again in a way
7166 that shadows another variable of the same name declared
7167 in one of the up-level blocks. Just re-use the up-level
7168 variable instead.
7169
4e5c77fe
JB
71702012-03-29 Joel Brobecker <brobecker@adacore.com>
7171
7172 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7173 Replace block_found argument by symbol_info. Adjust
7174 implementation accordingly. Add function documentation.
7175 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7176 Fix documentation.
7177 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7178 * ada-exp.y (write_object_renaming): Adjust to new
7179 ada_lookup_encoded_symbol API.
7180
1c0ac8c7
JB
71812012-03-29 Joel Brobecker <brobecker@adacore.com>
7182
7183 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7184 documentation.
7185
2aaed979
KB
71862012-03-28 Rathish C <rathish.c@kpitcummins.com>
7187
7188 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7189 (v850_register_name): Add the mpu and fpu register names.
7190 (v850e_register_name): Add the mpu and fpu register names.
7191 (v850e2_register_name): New function.
a09130f9 7192 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7193 bfd_mach_v850e2v3.
7194
927fbba6
JB
71952012-03-28 Joel Brobecker <brobecker@adacore.com>
7196
7197 * NEWS: Add entry for Ada varobj support.
7198
d32cafc7
JB
71992012-03-28 Joel Brobecker <brobecker@adacore.com>
7200
7201 * varobj.c (default_value_is_changeable_p): New function,
7202 extracted from varobj_value_is_changeable_p. Add declaration.
7203 (ada_value_is_changeable_p): New function, extracted from
7204 varobj_value_is_changeable_p. Add declaration.
7205 (struct language_specific): New field "value_is_changeable_p".
7206 (languages): Add entries for new field.
7207 (varobj_create): Set language before calling install_new_value.
7208 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7209 "value_is_changeable_p" language callback.
7210
181875a4
JB
72112012-03-28 Joel Brobecker <brobecker@adacore.com>
7212
7213 * ada-varobj.h, ada-varobj.c: New files.
7214 * Makefile.in (SFILES): Add ada-varobj.c.
7215 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7216 (COMMON_OBS): Add ada-varobj.o.
7217
7a290c40
JB
72182012-03-28 Joel Brobecker <brobecker@adacore.com>
7219
7220 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7221 (struct language_specific): New field "value_has_mutated".
7222 (languages): Set field "value_has_mutated" in each entry of array.
7223 (varobj_value_has_mutated): New function.
7224 (varobj_udpdate): Add handling of type mutation.
7225 (value_of_root): Add handling of type mutation.
7226 (ada_value_has_mutated): New function.
7227
ca9b8b9c
PA
72282012-03-28 Pedro Alves <palves@redhat.com>
7229
7230 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7231 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7232
cc0265cd
TT
72332012-03-28 Tom Tromey <tromey@redhat.com>
7234
7235 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7236 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7237 before returning.
7238
3ad2ec6f
TT
72392012-03-28 Tom Tromey <tromey@redhat.com>
7240
7241 * .dir-locals.el: New file.
7242
4a6510ba
PA
72432012-03-28 Pedro Alves <palves@redhat.com>
7244
7245 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7246
5a75128f
JB
72472012-03-28 Joel Brobecker <brobecker@adacore.com>
7248
7249 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7250 handling for r0.
7251
f99d8bf4
PA
72522012-03-27 Pedro Alves <palves@redhat.com>
7253
7254 Eliminate struct ui_stream.
7255
7256 * ui-out.h (struct ui_stream): Delete.
7257 (ui_out_field_stream): Adjust prototype.
7258 (ui_out_stream_new, ui_out_stream_delete)
7259 (make_cleanup_ui_out_stream_delete): Delete declarations.
7260 * ui-out.c (ui_out_field_stream): Change prototype to take a
7261 ui_file instead of a ui_stream. Adjust.
7262 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7263 (make_cleanup_ui_out_stream_delete): Delete.
7264 * breakpoint.c (print_breakpoint_location)
7265 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7266 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7267 * disasm.c (dump_insns): Ditto.
7268 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7269 prototype.
7270 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7271 ui_stream/ui_out_stream_new.
7272 * infcmd.c (print_return_value): Ditto.
7273 * osdata.c (info_osdata_command): Don't allocate a local
7274 ui_stream.
7275 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7276 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7277 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7278 allocate a local ui_stream.
7279 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7280 instead of ui_stream/ui_out_stream_new.
7281 (list_args_or_locals): Don't allocate a local ui_stream.
7282 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7283 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7284 ui_stream/ui_out_stream_new.
7285 * cli/cli-setshow.c (do_setshow_command): Ditto.
7286
6350a066 72872012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7288
6350a066
PA
7289 * arm-linux-tdep.c (arm_linux_init_abi): Call
7290 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7291 * arm-tdep.c (arm_process_record): New function.
7292 (deallocate_reg_mem): New function.
7293 (decode_insn): New function.
7294 (thumb_record_branch): New function.
7295 (thumb_record_ldm_stm_swi(): New function.
7296 (thumb_record_misc): New function.
7297 (thumb_record_ld_st_stack): New function.
7298 (thumb_record_ld_st_imm_offset): New function.
7299 (thumb_record_ld_st_reg_offset(): New function.
7300 (thumb_record_add_sub_cmp_mov): New function.
7301 (thumb_record_shift_add_sub): New function.
7302 (arm_record_coproc_data_proc): New function.
7303 (arm_record_coproc): New function.
7304 (arm_record_b_bl): New function.
7305 (arm_record_ld_st_multiple): New function.
7306 (arm_record_ld_st_reg_offset): New function.
7307 (arm_record_ld_st_imm_offset): New function.
7308 (arm_record_data_proc_imm): New function.
7309 (arm_record_data_proc_misc_ld_str): New function.
7310 (arm_record_extension_space): New function.
7311 (arm_record_strx): New function.
7312 (sbo_sbz): New function.
7313 (struct insn_decode_record): New structure for arm insn record.
7314 (REG_ALLOC): New macro for reg allocations.
7315 (MEM_ALLOC): New macro for memory allocations.
7316 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7317
89e028e2
AS
73182012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7319
7320 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7321 (store_register): Likewise.
7322
6350a066 73232012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7324
6350a066 7325 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7326
5b43fab2
JK
73272012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7328
7329 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7330 Describe also the option "auto".
7331
b5453b95
RH
73322012-03-22 Richard Henderson <rth@redhat.com>
7333
7334 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7335 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7336
227ee7fc
RH
73372012-03-22 Richard Henderson <rth@redhat.com>
7338
7339 * jit.c (jit_read_code_entry): Compute alignment and offset of
7340 int64_t member before computing entry_size.
7341
7b282c5a
SCR
73422012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7343
7344 Python scripting: Add new method Value.referenced_value to
7345 gdb.Value which can dereference pointer as well as reference
7346 values.
7347 * NEWS: Add entry under 'Python scripting' about the new method
7348 Value.referenced_value on gdb.Value objects.
7349 * python/py-value.c (valpy_referenced_value): New function
7350 defining a new method on gdb.Value objects which can dereference
7351 pointer and reference values.
7352
0c83539f
SCR
73532012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7354
7355 * MAINTAINERS (Write After Approval): Add myself to the list.
7356
7ccffd7c
KB
73572012-03-21 Kevin Buettner <kevinb@redhat.com>
7358
7359 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7360 in addition to "main".
7361
bd0b9f9e
JB
73622012-03-21 Joel Brobecker <brobecker@adacore.com>
7363
7364 * expression.h (op_name): Add declaration.
7365 * expprint.c (op_name): Remove declaration. Make non-static.
7366 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7367
a5362b9a
TS
73682012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7369
7370 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7371 of struct siginfo.
7372 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7373 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7374 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7375 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7376 (linux_nat_get_siginfo): Likewise.
7377 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7378 (linux_nat_get_siginfo): Likewise.
7379 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7380 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7381 * procfs.c (gdb_siginfo_t): Likewise.
7382
adcadaab
MF
73832012-03-21 Mike Frysinger <vapier@gentoo.org>
7384
7385 * .gitignore: Ignore more files.
7386
e278ad5b
PA
73872012-03-20 Pedro Alves <palves@redhat.com>
7388
7389 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7390 returns.
7391
741e63d7
YQ
73922012-03-20 Yao Qi <yao@codesourcery.com>
7393
7394 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7395 comment.
7396
b64f50a1
JK
73972012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7398
7399 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7400 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7401 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7402 sect_offset.
7403 * dwarf2expr.h (cu_offset, sect_offset): New types.
7404 (struct dwarf_expr_context_funcs) <dwarf_call>
7405 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7406 sect_offset.
7407 (struct dwarf_expr_context) <len>: Improve the comment.
7408 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7409 cu_offset and sect_offset.
7410 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7411 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7412 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7413 * dwarf2loc.h: Include dwarf2expr.h.
7414 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7415 and sect_offset.
7416 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7417 Improve the comment.
7418 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7419 (struct signatured_type, struct line_header, struct partial_die_info)
7420 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7421 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7422 (get_die_type_at_offset, create_cus_from_index)
7423 (create_signatured_type_table_from_index, dw2_get_file_names)
7424 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7425 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7426 (create_debug_types_hash_table, process_psymtab_comp_unit)
7427 (load_partial_comp_unit, create_all_comp_units)
7428 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7429 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7430 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7431 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7432 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7433 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7434 (find_partial_die, read_attribute_value, lookup_die_type)
7435 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7436 (is_ref_attr): New function comment.
7437 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7438 Use cu_offset and sect_offset.
7439 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7440 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7441 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7442 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7443 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7444 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7445 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7446 sect_offset.
7447
e97a38f7
JK
74482012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7449
7450 Code cleanup.
7451 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7452 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7453 with xfree.
7454 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7455
8320cc4f
JK
74562012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7457
7458 * NEWS: Describe new options --init-command=FILE, -ix and
7459 --init-eval-command=COMMAND, -iex.
7460 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7461 CMDARG_INIT_COMMAND.
7462 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7463 "init-command", "init-eval-command", "ix" and "iex" to the variable
7464 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7465 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7466 (print_gdb_help): Describe --init-command=FILE, -ix and
7467 --init-eval-command=COMMAND, -iex.
7468
26743505
JK
74692012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7470
7471 Code cleanup.
7472 * main.c (struct cmdarg): Move it here from main. Add more comments.
7473 (cmdarg_s, VEC (cmdarg_s)): New.
7474 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7475 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7476 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7477 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7478 of CMDARG.
7479
5ff5c7b4
TT
74802012-03-19 Tom Tromey <tromey@redhat.com>
7481
7482 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7483
ab260dad
JK
74842012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7485
7486 PR symtab/13777
7487 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7488 GCC >=4.5.
7489
c366c1f0
TT
74902012-03-16 Chris January <chris.january@allinea.com>
7491
7492 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7493 of clear.
7494
e16edb45
TT
74952012-03-16 Chris January <chris.january@allinea.com>
7496
7497 * source.c (add_path): Use memmove instead of strcpy because the
7498 strings overlap.
7499
53ba8333
JB
75002012-03-16 Joel Brobecker <brobecker@adacore.com>
7501
7502 * value.h (set_value_parent): Add declaration.
7503 * value.c (set_value_parent): New function.
7504 (value_address): If VALUE->PARENT is not NULL, then use it as
7505 the base address instead of VALUE->LOCATION.address.
7506 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7507 the same as OBJ's address. Adjust V's offset accordingly.
7508 Set V's parent.
7509
481860b3
GB
75102012-03-16 Gary Benson <gbenson@redhat.com>
7511
7512 PR breakpoints/10738
7513 * dwarf2read.c (use_deprecated_index_sections): New global.
7514 (struct partial_die_info): New member may_be_inlined.
7515 (read_partial_die): Set may_be_inlined where appropriate.
7516 (add_partial_subprogram): Add partial symbols for partial
7517 DIEs that may be inlined.
7518 (new_symbol_full): Add inlined subroutines to the current
7519 scope.
7520 (write_psymtabs_to_index): Bump version number.
7521 (dwarf2_read_index): Read only version 6 indices unless
7522 use_deprecated_index_sections is set.
7523 * linespec.c (symbol_and_data_callback): New structure.
7524 (iterate_inline_only): New function.
7525 (iterate_over_all_matching_symtabs): New argument
7526 "include_inline". If nonzero, also call the callback for
7527 symbols representing inlined subroutines.
7528 (lookup_prefix_sym): Pass extra argument to the above.
7529 (find_function_symbols): Likewise.
7530 (add_matching_symbols_to_info): Likewise.
7531 * NEWS: Mention that GDB can now set breakpoints on inlined
7532 functions.
7533
d0e7e15a
PM
75342012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7535
7536 * p-typeprint.c (pascal_type_print_method_args):
7537 Fix display of parameter of methods.
7538
3d354654
PM
75392012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7540
7541 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7542 Add missing prototype.
7543
cafe75b0
JK
75442012-03-16 Yao Qi <yao@codesourcery.com>
7545 Jan Kratochvil <jan.kratochvil@redhat.com>
7546
7547 Fix false compilation warning.
7548 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7549
25f8c692
JL
75502012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7551 Pedro Alves <pedro@codesourcery.com>
7552
7553 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7554 (arm_register_g_packet_guesses): New function.
7555 (arm_gdbarch_init): Don't force a target description with
7556 registers when the executable is detected as M-profile. Instead
7557 set gdbarch->tdep->is_m. Register `g' packet guesses.
7558 (_initialize_arm_tdep): Initialize the new target description.
7559 * features/arm-with-m-fpa-layout.xml: New description.
7560 * features/arm-with-m-fpa-layout.c: New, generated.
7561
35c63cd8
JB
75622012-03-15 Joel Brobecker <brobecker@adacore.com>
7563
7564 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7565 Update function description.
7566 (insert_bp_location): Do not wipe bl->target_info out.
7567 * mem-break.c: #include "gdb_string.h".
7568 (default_memory_insert_breakpoint): Do not call target_read_memory
7569 with a pointer to the breakpoint's shadow_contents buffer. Use
7570 a local buffer instead.
7571 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7572
57651221
TT
75732012-03-15 Tom Tromey <tromey@redhat.com>
7574
7575 * NEWS: Mention "info vtbl", not "info vtable".
7576 * cp-support.c (info_vtbl_command): Fix comment.
7577 (_initialize_cp_support): Fix text.
7578
410528f0
TT
75792012-03-15 Tom Tromey <tromey@redhat.com>
7580
7581 * cp-valprint.c (cp_print_value_fields): Use
7582 print_function_pointer_address for vtable slot.
7583
c4aeac85
TT
75842012-03-15 Tom Tromey <tromey@redhat.com>
7585
7586 * gnu-v3-abi.c (struct value_and_voffset): New.
7587 (hash_value_and_voffset, eq_value_and_voffset)
7588 (compare_value_and_voffset, compute_vtable_size)
7589 (print_one_vtable, gnuv3_print_vtable): New functions.
7590 (init_gnuv3_ops): Initialize 'print_vtable' field.
7591 * cp-support.c (info_vtbl_command): New function.
7592 (_initialize_cp_support): Add "info vtbl".
7593 * cp-abi.h (cplus_print_vtable): Declare.
7594 (struct cp_abi_ops) <print_vtable>: New field.
7595 * cp-abi.c (cplus_print_vtable): New function.
7596 * NEWS: Update.
7597
95cbceff
TT
75982012-03-15 Tom Tromey <tromey@redhat.com>
7599
7600 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7601 iterate_over_symbols.
7602
589b4a32
DE
76032012-03-14 Doug Evans <dje@google.com>
7604
7605 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7606 DW_OP_GNU_parameter_ref.
7607
e837f12a
JK
76082012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7609
7610 Fix double prompt of 'interpreter-exec mi'.
7611 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7612 (mi_interpreter_resume): use it.
7613 (mi_execute_command_input_handler): New function.
7614 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7615 mi_execute_command_input_handler.
7616
ff1e4526 76172012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7618
7619 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7620 prototype.
7621 (darwin_debug_port_info): Make static.
7622 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7623 * machoread.c (_initialize_machoread): Add prototype.
7624 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7625 (i386_darwin_set_control, i386_darwin_get_control)
7626 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7627 i386_darwin_get_status, i386_darwin_get_control):
7628 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7629
d8a5d6ee
JB
76302012-03-13 Joel Brobecker <brobecker@adacore.com>
7631
7632 * ax-gdb.c (gen_usual_unary): Remove special handling of
7633 enum and bool types.
7634
af381b8c
JB
76352012-03-13 Joel Brobecker <brobecker@adacore.com>
7636
7637 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7638
786c562f
JB
76392012-03-13 Joel Brobecker <brobecker@adacore.com>
7640
7641 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7642
e3ebf1bb
JB
76432012-03-13 Chris January <chris.january@allinea.com>
7644
7645 * aix-thread.c (fill_sprs): Store the floating point registers
7646 at the correct offsets into vals.
7647
c5b7e1cb
DE
76482012-03-13 Doug Evans <dje@google.com>
7649
16899756
DE
7650 * NEWS: Mention symbol-reloading has been deleted.
7651 * symfile.c (symbol_reloading): Delete.
7652 (show_symbol_reloading): Delete.
7653 (_initialize_symfile): Delete set/show symbol-reloading.
7654
c5b7e1cb
DE
7655 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7656 read_in_chain until we have successfully read it in.
7657 (load_full_comp_unit): Ditto.
7658 (read_signatured_type): Add comment.
7659
46cb6474
JB
76602012-03-13 Chris January <chris.january@allinea.com>
7661
7662 * stabsread.c (fix_common_block): Change type of valu argument
7663 to CORE_ADDR.
7664
76219d77
JB
76652012-03-13 Chris January <chris.january@allinea.com>
7666
7667 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7668 instruction.
7669
87b0bb13
JK
76702012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7671
7672 * common/linux-procfs.c (linux_proc_get_int): New, from
7673 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7674 field.
7675 (linux_proc_get_tgid): Only call linux_proc_get_int.
7676 (linux_proc_get_tracerpid): New.
7677 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7678 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7679 linux_proc_pid_has_state.
7680 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7681 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7682 (linux_ptrace_attach_warnings): New.
7683 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7684 New declaration.
7685 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7686 (linux_nat_attach): New variables ex, buffer, message and message_s.
7687 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7688
5f572dec
JK
76892012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7690
7691 * Makefile.in (linux-ptrace.o): New.
7692 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7693 from linux-nat.c.
7694 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7695 * common/linux-ptrace.c: New file.
7696 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7697 * config/arm/linux.mh: Likewise.
7698 * config/i386/linux.mh: Likewise.
7699 * config/i386/linux64.mh: Likewise.
7700 * config/ia64/linux.mh: Likewise.
7701 * config/m32r/linux.mh: Likewise.
7702 * config/m68k/linux.mh: Likewise.
7703 * config/mips/linux.mh: Likewise.
7704 * config/pa/linux.mh: Likewise.
7705 * config/powerpc/linux.mh: Likewise.
7706 * config/powerpc/ppc64-linux.mh: Likewise.
7707 * config/powerpc/spu-linux.mh: Likewise.
7708 * config/s390/s390.mh: Likewise.
7709 * config/sparc/linux.mh: Likewise.
7710 * config/sparc/linux64.mh: Likewise.
7711 * config/xtensa/linux.mh: Likewise.
7712 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7713 common/linux-procfs.c.
7714 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7715
44f238bb
PA
77162012-03-13 Hui Zhu <teawater@gmail.com>
7717 Pedro Alves <palves@redhat.com>
7718
7719 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7720 CREATE_BREAKPOINT_FLAGS_INSERTED.
7721 (create_breakpoint_sal, create_breakpoints_sal)
7722 (base_breakpoint_create_breakpoints_sal)
7723 (tracepoint_create_breakpoints_sal)
7724 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7725 down.
7726 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7727 (ftrace_command, strace_command): Adjust.
7728 (create_tracepoint_from_upload): Pass
7729 CREATE_BREAKPOINT_FLAGS_INSERTED.
7730 * breakpoint.h (enum breakpoint_create_flags): New.
7731 (create_breakpoint): New flags parameter.
7732 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7733 * python/py-breakpoint.c (bppy_init): Adjust.
7734 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7735 * spu-tdep.c (spu_catch_start): Adjust.
7736
1e51243a
PA
77372012-03-13 Pedro Alves <palves@redhat.com>
7738 Hui Zhu <teawater@gmail.com>
7739 Yao Qi <yao@codesourcery.com>
7740
7741 * remote.c (struct remote_state): New field `starting_up'.
7742 (remote_start_remote): Set and clear it.
7743 (remote_can_download_tracepoint): If starting up, return false.
7744
fa3064dd
YQ
77452012-03-13 Yao Qi <yao@codesourcery.com>
7746
7747 * inferior.h (struct inferior): Remove fields any_syscall_count,
7748 syscalls_counts and total_syscalls_count. Move them to new
7749 struct catch_syscall_inferior_data in breakpoint.c.
7750 * breakpoint.c: Call DEF_VEC_I(int).
7751 (struct catch_syscall_inferior_data): New.
7752 (get_catch_syscall_inferior_data): New.
7753 (catch_syscall_inferior_data_cleanup): New.
7754 (insert_catch_syscall): Update to access data in
7755 struct catch_syscall_inferior_data.
7756 (insert_catch_syscall): Likewise.
7757 (remove_catch_syscall): Likewise.
7758 (remove_catch_syscall): Likewise.
7759 (is_syscall_catchpoint_enabled): Likewise.
7760 (add_catch_command): Likewise.
7761 (_initialize_breakpoint): Register cleanup.
7762 * breakpoint.h: Removed DEF_VEC_I(int).
7763 * dwarf2loc.c: Call DEF_VEC_I(int).
7764 * mi/mi-main.c: Likewise.
7765
460fac3c
MK
77662012-03-12 Mark Kettenis <kettenis@gnu.org>
7767
7768 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7769
e1aca11e
JB
77702012-03-12 Chris January <chris.january@allinea.com>
7771
7772 * aix-thread.c (_initialize_aix_thread): Add prototype.
7773 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7774 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7775
649c7061
JB
77762012-03-12 Joel Brobecker <brobecker@adacore.com>
7777
7778 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7779 include of "amd64-nat.h".
7780
0b49e518
TT
77812012-03-12 Tom Tromey <tromey@redhat.com>
7782
7783 * buildsym.c (record_pending_block): Now static.
7784 * buildsym.h: (record_pending_block): Remove.
7785
fd24fa94
AT
77862012-03-12 Andreas Tobler <andreast@fgznet.ch>
7787
7788 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7789
ba919b58
TT
77902012-03-09 Tom Tromey <tromey@redhat.com>
7791
7792 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7793 producer_is_gxx_lt_4_6>: New fields.
7794 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7795
a48e046c
TT
77962012-03-09 Tom Tromey <tromey@redhat.com>
7797
7798 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7799
6f5e9362
JB
78002012-03-08 Joel Brobecker <brobecker@adacore.com>
7801
7802 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7803 prototype.
7804
8d037db9
JB
78052012-03-08 Joel Brobecker <brobecker@adacore.com>
7806
7807 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7808
4e841acf
JK
78092012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7810
7811 Fix -Wmissing-prototypes build.
7812 * arm-linux-nat.c (get_thread_id): Make it static.
7813 * xtensa-linux-nat.c (get_thread_id): Likewise.
7814
c6030312
JB
78152012-03-08 Joel Brobecker <brobecker@adacore.com>
7816
7817 * server.c (process_point_options): If a conditional expression
7818 is found, only print a message if remote_debug is nonzero.
7819
52323be9
LM
78202012-03-08 Luis Machado <lgustavo@codesourcery.com>
7821
7822 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7823 of internal error for unknown/unsupported types.
7824
7fe25d9b
JK
78252012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 Fix CU relative vs. absolute DIE offsets.
7828 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7829 offset to offset_in_cu.
7830 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7831 TYPE_OFFSET.
7832 (dwarf2_fetch_die_location_block): Rename parameter offset to
7833 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7834
05e7c244
JK
78352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7836
7837 * libunwind-frame.c: Rename to ...
7838 * ia64-libunwind-tdep.c: ... here.
7839 * libunwind-frame.h: Rename to ...
7840 * ia64-libunwind-tdep.h: ... here.
7841 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7842 ia64-libunwind-tdep.h.
7843 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7844 * README (--with-libunwind): Rename to ...
7845 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7846 * config.in: Regenerate.
7847 * configure: Regenerate.
7848 * configure.ac: New option --with-libunwind-ia64, make the
7849 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7850 Remove AC_DEFINE for HAVE_LIBUNWIND.
7851 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7852 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7853 Rename libunwind-frame in the general comment.
7854 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7855 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7856 Move forward declarations inside #ifndef. Rename libunwind-frame in
7857 the general comment.
7858 * ia64-tdep.c: Rename libunwind-frame.h #include to
7859 ia64-libunwind-tdep.h.
7860 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7861 (ia64_libunwind_descr): Rename libunwind-frame to
7862 ia64-libunwind-tdep in these function comments.
7863 * ia64-tdep.h: Rename libunwind-frame.h #include to
7864 ia64-libunwind-tdep.h.
7865 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7866 ia64-libunwind-tdep in that data comment.
7867
3755cbfd
JK
78682012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7869
7870 * libunwind-frame.h (struct frame_unwind): New declaration.
7871
d1cda5d9
JB
78722012-03-08 Joel Brobecker <brobecker@adacore.com>
7873
7874 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7875 "set breakpoint condition-evaluation" command.
7876
a0ba0aa2
TG
78772012-03-08 Tristan Gingold <gingold@adacore.com>
7878
7879 * sparc-stub.c: Move to stubs/
7880 * sh-stub.c: Likewise.
7881 * m68k-stub.c: Likewise.
7882 * m32r-stub.c: Likewise.
7883 * i386-stub.c: Likewise.
7884
7b8b6d6d
AS
78852012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7886
007cafee
AS
7887 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7888 linux_get_siginfo_type.
7889
7b8b6d6d
AS
7890 * m68klinux-nat.c: Include "gdb_proc_service.h".
7891 (PTRACE_GET_THREAD_AREA): Define.
7892 (ps_get_thread_area): New function.
7893
bba74b36
YQ
78942012-03-08 Yao Qi <yao@codesourcery.com>
7895
7896 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7897 `xsnprintf'.
7898 (remote_query_attached): Likewise.
7899 (remote_static_tracepoint_marker_at): Likewise.
7900 (remote_set_permissions): Likewise.
7901 (remote_detach_1, extended_remote_attach_1): Likewise.
7902 (send_g_packet, remote_vkill): Likewise.
7903 (extended_remote_disable_randomization): Likewise.
7904 (remote_add_target_side_condition): Likewise.
7905 (remote_insert_breakpoint): Likewise.
7906 (remote_remove_breakpoint): Likewise.
7907 (remote_insert_watchpoint): Likewise.
7908 (remote_remove_watchpoint): Likewise.
7909 (remote_insert_hw_breakpoint): Likewise.
7910 (remote_insert_hw_breakpoint): Likewise.
7911 (remote_remove_hw_breakpoint): Likewise.
7912 (remote_download_command_source): Likewise.
7913 (remote_download_tracepoint): Likewise.
7914 (remote_download_trace_state_variable): Likewise.
7915 (remote_disable_tracepoint): Likewise.
7916 (remote_trace_set_readonly_regions): Likewise.
7917 (remote_get_tracepoint_status): Likewise.
7918 (remote_trace_find): Likewise.
7919 (remote_get_trace_state_variable_value): Likewise.
7920 (remote_set_disconnected_tracing): Likewise.
7921 (remote_set_circular_trace_buffer): Likewise.
7922 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7923 (remote_use_agent): Likewise.
7924 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7925 Update callers.
7926
9b224c5e
PA
79272012-03-07 Pedro Alves <palves@redhat.com>
7928
7929 * NEWS: Mention QProgramSignals.
7930 * inferior.h (update_signals_program_target): Declare.
7931 * infrun.c: (update_signals_program_target): New.
7932 (handle_command): Update the target of the new program signals
7933 array changes.
7934 * remote.c (PACKET_QProgramSignals): New enum.
7935 (last_program_signals_packet): New global.
7936 (remote_program_signals): New.
7937 (remote_start_remote): Update the target with the program signals
7938 list.
7939 (remote_protocol_features): Add entry for QPassSignals.
7940 (remote_open_1): Free anc clear last_program_signals_packet.
7941 (init_remote_ops): Install remote_program_signals.
7942 * target.c (update_current_target): Adjust.
7943 (target_program_signals): New.
7944 * target.h (struct target_ops) <to_program_signals>: New field.
7945 (target_program_signals): Declare.
7946
74c48cbb
PA
79472012-03-07 Pedro Alves <palves@redhat.com>
7948
7949 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7950 extensions.
7951
0c13fc49
AS
79522012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7953
7954 * m68klinux-nat.c (getregs_supplies): Make static.
7955 (getfpregs_supplies): Likewise.
7956 (have_ptrace_getregs): Likewise.
7957
1281d2a3
JB
79582012-03-06 Joel Brobecker <brobecker@adacore.com>
7959
7960 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7961 in call to get_die_type_at_offset.
7962
2b03b41d
SS
79632012-03-06 Stan Shebs <stan@codesourcery.com>
7964
7965 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7966 * mi/mi-cmd-disas.c: Ditto.
7967 * mi/mi-cmd-env.c: Ditto.
7968 * mi/mi-cmd-file.c: Ditto.
7969 * mi/mi-cmd-stack.c: Ditto.
7970 * mi/mi-cmd-target.c: Ditto.
7971 * mi/mi-cmd-var.c: Ditto.
7972 * mi/mi-cmds.c: Ditto.
7973 * mi/mi-cmds.h: Ditto.
7974 * mi/mi-console.c: Ditto.
7975 * mi/mi-getopt.c: Ditto.
7976 * mi/mi-getopt.h: Ditto.
7977 * mi/mi-interp.c: Ditto.
7978 * mi/mi-main.c: Ditto.
7979 * mi/mi-out.c: Ditto.
7980 * mi/mi-parse.c: Ditto.
7981 * mi/mi-parse.h: Ditto.
7982 * mi/mi-symbol-cmds.c: Ditto.
7983
7984 * mi/mi-getopt.h: Move mi_opt struct up.
7985 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7986 return.
7987 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7988
c988ad87
TT
79892012-03-06 Tom Tromey <tromey@redhat.com>
7990
7991 * proc-service.c (ps_pglobal_lookup): Set the current program
7992 space.
7993
1b7c1b10
PA
79942012-03-06 Pedro Alves <palves@redhat.com>
7995
7996 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7997
3c182069
JB
79982012-03-05 Joel Brobecker <brobecker@adacore.com>
7999
8000 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8001
2e794194
JK
80022012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8003
8004 Code cleanup.
8005 * common/linux-osdata.c (linux_common_core_of_thread): New function
8006 comment.
8007 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8008 call by linux_common_core_of_thread.
8009 (linux_nat_core_of_thread_1): Remove.
8010 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8011 * linux-thread-db.c: Include linux-osdata.h.
8012 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8013 linux_common_core_of_thread.
8014
9f9f1f31
TT
80152012-03-05 Tom Tromey <tromey@redhat.com>
8016
8017 * value.c (value_primitive_field): Don't fetch contents for
8018 non-virtual bases.
8019
b7b189f3
TT
80202012-03-05 Tom Tromey <tromey@redhat.com>
8021
8022 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8023
05b8a789 80242012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8025
5538f557
JB
8026 * s390-nat.c: Include "gregset.h".
8027
75528772
JK
80282012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8029
8030 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8031 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8032 (libunwind_load): New variable so_error, use it for dlerror. Try to
8033 load also LIBUNWIND_SO_7.
8034
275418ae
PA
80352012-03-05 Pedro Alves <palves@redhat.com>
8036
8037 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8038 is not NULL, and remove resulting dead code.
8039
5cbb9812
TS
80402012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8041
8042 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8043 prologue to sh_analyze_prologue.
8044 (sh_analyze_prologue): Make better use of such an upper limit, and
8045 generally be more cautious about accessing memory.
8046
541515ad
TT
80472012-03-05 Tom Tromey <tromey@redhat.com>
8048
8049 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8050 _initialize_ia64_hpux_tdep.
8051
b4d36fb8
PA
80522012-03-05 Pedro Alves <palves@redhat.com>
8053
24490249
PA
8054 PR gdb/13766
8055
b4d36fb8
PA
8056 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8057 the register state is clear, supply explicit zero, instead of
8058 marking the register unavailable.
8059
60c9a3c0
TG
80602012-03-05 Tristan Gingold <gingold@adacore.com>
8061
8062 * NEWS: Mention OpenVMS ia64 new target.
8063
696759ad
TG
80642012-03-05 Tristan Gingold <gingold@adacore.com>
8065
8066 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8067 (ia64_unw_accessors, ia64_unw_rse_accessors)
8068 (ia64_libunwind_descr): Declare.
8069 * ia64-vms-tdep.c: New file.
8070 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8071 (ia64_libunwind_descr): Make them public.
8072 * configure.tgt: Add ia64-*-*vms*.
8073 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8074 (ALLDEPFILES): Add ia64-vms-tdep.c
8075
34864976
TG
80762012-03-05 Tristan Gingold <gingold@adacore.com>
8077
169081d0
TG
8078 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8079 * remote.c (PACKET_qXfer_uib): New enum value.
8080 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8081 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8082 (_initialize_remote): Call add_packet_config_cmd for
8083 xfer:uib packet.
8084
80852012-03-05 Tristan Gingold <gingold@adacore.com>
8086
8087 * osabi.c (gdb_osabi_names): Add OpenVMS.
8088 (generic_elf_osabi_sniffer): Likewise.
8089 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8090
6597b100
JK
80912012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8092
8093 Removed unused code.
8094 * libunwind-frame.c (libunwind_frame_unwind)
8095 (libunwind_frame_base_address): Remove.
8096 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8097
87399aa1
YQ
80982012-03-04 Yao Qi <yao@codesourcery.com>
8099
8100 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8101 remove trailing new line.
8102 (agent_run_command, agent_run_command): Add _ markup.
8103 (agent_capability_check): Likewise.
8104
abf1152a
JK
81052012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8106
8107 * breakpoint.c (set_condition_evaluation_mode): Set
8108 CONDITION_EVALUATION_MODE unconditionally.
8109
5808517f
YQ
81102012-03-03 Yao Qi <yao@codesourcery.com>
8111
8112 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8113 * common/agent.h: Update declaration.
8114 * inf-child.c (inf_child_use_agent): New.
8115 (inf_child_can_use_agent): New.
8116 (inf_child_target): Initialize fields `to_use_agent'
8117 and `to_can_use_agent'.
8118 * agent.c (agent_new_objfile): New.
89b7509a 8119 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8120 observer.
8121
8122 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8123 New.
89b7509a 8124 (linux_target_install_ops): Initialize field
5808517f
YQ
8125 `to_static_tracepoint_markers_by_strid'.
8126 * remote.c (free_current_marker): Move it to ...
8127 * tracepoint.c (free_current_marker): ... here. New.
8128 (cleanup_target_stop): New.
8129 * tracepoint.h: Declare free_current_marker.
8130 * NEWS: Add one entry about `info static-tracepoint-marker'.
8131
58b4daa5
YQ
81322012-03-03 Yao Qi <yao@codesourcery.com>
8133
8134 * common/agent.c (agent_loaded_p): New.
89b7509a 8135 (agent_look_up_symbols): New global.
58b4daa5
YQ
8136 * common/agent.h: Declare agent_loaded_p.
8137
8ffcbaaf
YQ
81382012-03-03 Yao Qi <yao@codesourcery.com>
8139
8140 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8141 (agent_capability_check, agent_capability_invalidate): New.
8142 (symbol_list): New array element.
8143 * common/agent.h (enum agent_capa): New.
8144 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8145
d1feda86
YQ
81462012-03-03 Yao Qi <yao@codesourcery.com>
8147
8148 * target.h (struct target_ops) <to_use_agent>: New field.
8149 (struct target_ops) <to_can_use_agent>: New field.
8150 (target_use_agent, target_can_use_agent): New macro.
8151 * target.c (update_current_target): Update.
8152 * remote.c: New enum `PACKET_QAgent'.
8153 (remote_protocol_features): Add a new element.
8154 (remote_use_agent, remote_can_use_agent): New.
8155 (init_remote_ops): Initialize field `can_use_agent' with
8156 remote_can_use_agent. Intiailize field `use_agent' with
8157 remote_use_agent.
8158 * common/agent.c (use_agent): New global.
8159 * common/agent.h: Declare it.
8160 * tracepoint.c (info_static_tracepoint_markers_command): Add
8161 comment.
8162 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8163 (COMMON_OBS): Add common/agent.o and agent.o
8164 (common-agent.o): New rule.
8165 * agent.c: New.
8166
2fa291ac
YQ
81672012-03-03 Yao Qi <yao@codesourcery.com>
8168
8169 * common/agent.c: New.
8170 * common/agent.h: New.
8171 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8172 AC_CHECK_HEADERS.
8173 * configure, configh.in: Regenerated.
8174
9fc05685
KB
81752012-03-02 Kevin Buettner <kevinb@redhat.com>
8176
8177 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8178 unless it exists for this architecture.
8179
a5ee536b
JB
81802012-03-02 Joel Brobecker <brobecker@adacore.com>
8181
8182 * language.h (struct language_defn): New "method" la_read_var_value.
8183 * findvar.c: #include "language.h".
8184 (default_read_var_value): Renames read_var_value. Rewrite
8185 function description.
8186 (read_var_value): New function.
8187 * value.h (default_read_var_value): Add prototype.
8188 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8189 New functions.
8190 (ada_language_defn): Add entry for la_read_var_value.
8191 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8192 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8193 language_defn structures to add entry for new la_read_var_value
8194 field.
8195
f59f708a
PA
81962012-03-02 Tom Tromey <tromey@redhat.com>
8197 Pedro Alves <palves@redhat.com>
8198
8199 PR breakpoints/13776:
8200 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8201 breakpoints.
8202 (delete_longjmp_breakpoint_at_next_stop): New.
8203 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8204 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8205 before deleting the inferior. Add comments.
8206 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8207 breakpoints immediately, but only on next stop. Move that code
8208 next to where we mark other breakpoints for deletion.
8209
44099a67
JB
82102012-03-02 Joel Brobecker <brobecker@adacore.com>
8211
8212 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8213 marker.
8214 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8215 violation.
8216
2a2ef594
PA
82172012-03-02 Pedro Alves <palves@redhat.com>
8218
8219 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8220
b261e0c5
UW
82212012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8222
8223 Fix -Wmissing-prototypes build.
8224 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8225 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8226 (gdbsim_has_memory): Likewise.
8227
a95babbf
YQ
82282012-03-02 Yao Qi <yao@codesourcery.com>
8229
8230 Fix -Wmissing-prototypes build.
8231 * charset.c (phony_iconv_open): Make static.
8232 (phony_iconv_close, phony_iconv): Likewise.
8233 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8234 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8235 prototype.
8236 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8237 * ser-mingw.c (create_select_thread): Make static.
8238 * windows-termcap.c (tgetent): New prototype.
8239 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8240
d603d4b3
JK
82412012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8242
8243 Fix -Wmissing-prototypes build.
8244 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8245 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8246 (_initialize_loadable): New prototypes.
8247
7fb3ad1f
DE
82482012-03-02 Doug Evans <dje@google.com>
8249
8250 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8251 abbrev table, read_comp_unit will do it.
8252
693be288
JK
82532012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8254
8255 Fix -Wmissing-prototypes build.
8256 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8257 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8258 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8259 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8260 (_initialize_arm_symbian_tdep): New prototype.
8261 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8262 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8263 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8264 static.
8265 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8266 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8267 prototype.
8268 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8269 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8270 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8271 static.
8272 * moxie-tdep.c (moxie_process_record): Likewise.
8273 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8274 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8275 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8276 (_initialize_rl78_tdep): New prototype.
8277 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8278 (_initialize_rx_tdep): New prototype.
8279 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8280 (_initialize_darwin_solib): New prototype.
8281 * solib-spu.c: Include solib-spu.h.
8282 (_initialize_spu_solib): New prototype.
8283 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8284 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8285 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8286 (tic6x_software_single_step): Make it static.
8287 (_initialize_tic6x_tdep): New prototype.
8288
638234e5
JK
82892012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8290
8291 Fix -Wmissing-prototypes build.
8292 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8293 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8294
f4a6f16d
JK
82952012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8296
8297 Fix -Wmissing-prototypes build.
8298 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8299 (frv_have_stopped_data_address): Remove.
8300
04dcf5fa
JK
83012012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8302
8303 Fix -Wmissing-prototypes build.
8304 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8305 * sh-tdep.c: Include sh64-tdep.h.
8306 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8307 * sh64-tdep.c: Include sh64-tdep.h.
8308 * sh64-tdep.h: New file.
8309
19080931
MR
83102012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8311
8312 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8313
9aac7884
MR
83142012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8315
8316 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8317 sp_regnum once the gdbarch_init_osabi hook has been called.
8318
a385295e
MR
83192012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8320
8321 * mips-tdep.c (mips32_bc1_pc): New function.
8322 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8323 BPOSGE32 and BPOSGE64 instructions.
8324 (deal_with_atomic_sequence): Likewise.
8325 (mips32_instruction_has_delay_slot): Likewise.
8326
1faeff08 83272012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8328 Chris Dearman <chris@mips.com>
8329 Maciej W. Rozycki <macro@codesourcery.com>
8330 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8331
8332 * features/mips-dsp.xml: New file.
8333 * features/mips64-dsp.xml: New file.
8334 * features/mips-dsp-linux.xml: New file.
8335 * features/mips64-dsp-linux.xml: New file.
8336 * features/Makefile (WHICH): Add mips-dsp-linux and
8337 mips64-dsp-linux.
8338 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8339 * features/mips-dsp-linux.c: New file.
8340 * features/mips64-dsp-linux.c: New file.
8341 * regformats/mips-dsp-linux.dat: New file.
8342 * regformats/mips64-dsp-linux.dat: New file.
8343 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8344 registers.
8345 (mips64_linux_register_addr): Likewise.
8346 (mips64_linux_regsets_fetch_registers): Likewise.
8347 (mips64_linux_regsets_store_registers): Likewise.
8348 (mips64_linux_fetch_registers): Update call to
8349 mips64_linux_regsets_fetch_registers.
8350 (mips64_linux_store_registers): Update call to
8351 mips64_linux_regsets_store_registers.
8352 (mips_linux_read_description): Probe for DSP registers.
8353 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8354 and initialize_tdesc_mips64_dsp_linux.
8355 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8356 Remove padding of no longer used embedded register slots.
8357 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8358 (MIPS_RESTART_REGNUM): Redefine enum value.
8359 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8360 strings.
8361 (mips_tx39_reg_names): Likewise.
8362 (mips_linux_reg_names): New array of register names for Linux
8363 targets.
8364 (mips_register_name): Check for a null pointer in
8365 mips_processor_reg_names and return an empty string.
8366 (mips_register_type): Exclude embedded registers for the IRIX
8367 and Linux ABIs.
8368 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8369 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8370 DSP registers.
8371 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8372 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8373 (mips_gdbarch_init): Likewise. Initialize internal register
8374 indices for the Linux ABI. Use dynamic numbers to refer to
8375 registers, as applicable, while parsing the target description.
8376 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8377
263689d8
JB
83782012-03-01 Joel Brobecker <brobecker@adacore.com>
8379
8380 * frame.h (read_frame_register_unsigned): Fix typo in function
8381 description.
8382
f3b4f45c
PA
83832012-03-01 Pedro Alves <palves@redhat.com>
8384
8385 * jit-reader.in [!__cplusplus]
8386 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8387
b03a2011
PA
83882012-03-01 Pedro Alves <palves@redhat.com>
8389
8390 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8391 * configure: Regenerate.
8392
70221824
PA
83932012-03-01 Pedro Alves <palves@redhat.com>
8394
8395 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8396 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8397 (ftrace_command, strace_command): Make static.
8398 * d-lang.c (_initialize_d_language): Declare.
8399 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8400 * dwarf2loc.c (_initialize_dwarf2loc):
8401 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8402 * exec.c (exec_get_section_table): Make static.
8403 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8404 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8405 * inferior.c (remove_inferior_command, add_inferior_command)
8406 (clone_inferior_command): Make static.
8407 * linux-nat.c (linux_nat_thread_address_space)
8408 (linux_nat_core_of_thread): Make static.
8409 * linux-tdep.c (_initialize_linux_tdep): Declare.
8410 * objc-lang.c (_initialize_objc_lang): Declare.
8411 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8412 Make static.
8413 (_initialize_opencl_language): Declare.
8414 * record.c (_initialize_record): Declare.
8415 * remote.c (demand_private_info, remote_get_tib_address)
8416 (remote_supports_cond_tracepoints)
8417 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8418 Make static.
8419 * skip.c (_initialize_step_skip): Declare.
8420 * symtab.c (skip_prologue_using_lineinfo): Make static.
8421 * tracepoint.c (delete_trace_state_variable)
8422 (trace_variable_command, delete_trace_variable_command)
8423 (get_uploaded_tsv, find_matching_tracepoint_location)
8424 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8425 Make static.
8426 * value.c (pack_unsigned_long): Make static.
8427 * varobj.c (varobj_ensure_python_env): Make static.
8428 * windows-tdep.c (_initialize_windows_tdep): Declare.
8429 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8430
33fbcbee
PA
84312012-03-01 Pedro Alves <palves@redhat.com>
8432
8433 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8434 gdbarch parameter.
8435 (linux_init_abi): Install it as has_shared_address_space gdbarch
8436 callback.
8437
44d0cd3b
PA
84382012-03-01 Pedro Alves <palves@redhat.com>
8439
8440 * observer.c (observer_test_first_notification_function)
8441 (observer_test_second_notification_function)
8442 (observer_test_third_notification_function): Add declarations.
8443
ed01b82c
PA
84442012-03-01 Pedro Alves <palves@redhat.com>
8445
8446 * common/signals.c (default_target_signal_to_host)
8447 (default_target_signal_from_host): Move ...
8448 * arch-utils.c: ... here.
8449 * arch-utils.h (default_target_signal_to_host)
8450 (default_target_signal_from_host): Declare.
8451
8452 * common/signals.c (target_signal_from_command): Move ...
8453 * infrun.c: ... here.
8454 * inferior.h (target_signal_from_command): Declare.
8455 * target.h (target_signal_from_command)
8456 (default_target_signal_from_host, default_target_signal_to_host):
8457 Delete declarations.
8458
8459 * common/signals.c (_initialize_signals): Delete.
8460
c9b87335
PA
84612012-03-01 Pedro Alves <palves@redhat.com>
8462
8463 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8464 both __cplusplus and !__cplusplus.
8465
9340a6c0
PA
84662012-03-01 Pedro Alves <palves@redhat.com>
8467
8468 * psymtab.c (find_and_open_source): Delete declaration.
8469 * source.c (find_and_open_source): Move comment ...
8470 * source.h (find_and_open_source): ... to this new declaration.
8471
e451c4a1
PA
84722012-03-01 Pedro Alves <palves@redhat.com>
8473
8474 * inline-frame.c: Include inline-frame.h.
8475
983fb104
PA
84762012-03-01 Pedro Alves <palves@redhat.com>
8477
8478 * tui/tui-data.c (set_gen_win_origin): Delete.
8479 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8480 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8481
5fbce5df
PA
84822012-03-01 Pedro Alves <palves@redhat.com>
8483
8484 * remote.c (encode_actions): Delete declaration.
8485 * tracepoint.c (encode_actions): Make extern.
8486 * tracepoint.h (encode_actions): Declare.
8487
49a8461d
PA
84882012-03-01 Pedro Alves <palves@redhat.com>
8489
8490 * python/py-breakpoint.c: Include python.h.
8491 * python/py-continueevent.c (create_continue_event_object): Make
8492 static.
8493 * python/py-lazy-string.c (stpy_get_type): Make static.
8494 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8495 Make static.
8496 * python/py-utils.c (unicode_to_target_python_string): Make
8497 static.
8498 * python/py-value.c: Include python.h.
8499
9079102f
PA
85002012-03-01 Pedro Alves <palves@redhat.com>
8501
8502 * inferior.c (delete_threads_of_inferior): Delete.
8503
a298c5e8
PA
85042012-03-01 Pedro Alves <palves@redhat.com>
8505
8506 Import fallback definitions from glibc.
8507
8508 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8509 ps_prochandle): Forward declare.
8510 (ps_err_e): Use glibc's comments.
8511 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8512 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8513 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8514 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8515 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8516 (struct ps_prochandle): Adjust comment.
8517
e3084549
PA
85182012-03-01 Pedro Alves <palves@redhat.com>
8519
8520 * ada-lang.c (ada_modulus_from_name): Delete.
8521 * ada-lex.l (lexer_init): Make static.
8522
ad5f7d6e
PA
85232012-03-01 Pedro Alves <palves@redhat.com>
8524
8525 PR gdb/13767
8526
8527 * frame.c (read_frame_register_unsigned): New.
8528 * frame.h (read_frame_register_unsigned): Declare.
8529 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8530 Handle it.
8531 (print_i387_control_word): New parameter `control_p'. Handle it.
8532 (i387_print_float_info): Handle unavailable float registers.
8533
e0a4d108
KS
85342012-03-01 Keith Seitz <keiths@redhat.com>
8535
8536 * linespec.c (decode_line_2): Sort the list of methods
8537 alphabetically before presenting the user with a selection
8538 menu.
8539
122d1940
DE
85402012-03-01 Doug Evans <dje@google.com>
8541
8542 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8543 has_namespace_info.
8544 (dwarf2_read_abbrevs): Remove corresponding initialization.
8545
7d74f244
DE
85462012-03-01 Scott J. Goldman <scottjg@vmware.com>
8547
8548 * NEWS: Mention new python command class gdb.COMMAND_USER.
8549 * cli/cli-cmds.c (show_user): Print error when used on a python
8550 command.
8551 (init_cli_cmds): Update documentation strings for "show user" and
8552 "set/show max-user-call-depth" to clarify that it does not apply to
8553 python commands.
8554 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8555 error check.
8556 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8557 gdb python api.
8558 * top.c (execute_command): Only execute a user-defined command as a
8559 legacy macro if c->user_commands is set.
8560
e88acd96
TT
85612012-03-01 Tom Tromey <tromey@redhat.com>
8562
8563 * valprint.h (struct generic_val_print_decorations): New.
8564 (generic_val_print): Declare.
8565 * valprint.c (generic_val_print): New function.
8566 * p-valprint.c (p_decorations): New global.
8567 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8568 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8569 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8570 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8571 * m2-valprint.c (m2_decorations): New global.
8572 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8573 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8574 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8575 TYPE_CODE_ERROR>: Call generic_val_print.
8576 * f-valprint.c (f_decorations): New global.
8577 (f_val_print): Use print_function_pointer_address.
8578 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8579 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8580 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8581 generic_val_print.
8582 * c-valprint.c (c_decorations): New global.
8583 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8584 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8585 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8586 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8587 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8588 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8589 case.
8590
d3eab38a
TT
85912012-03-01 Tom Tromey <tromey@redhat.com>
8592
8593 * valprint.c (val_print): Update.
8594 * p-valprint (pascal_val_print): Return void.
8595 * p-lang.h (pascal_val_print): Return void.
8596 * m2-valprint.c (m2_val_print): Return void.
8597 * m2-lang.h (m2_val_print): Return void.
8598 * language.h (struct language_defn) <la_val_print>: Return void.
8599 * language.c (unk_lang_val_print): Return void.
8600 * jv-valprint.c (java_val_print): Return void.
8601 * jv-lang.h (java_val_print): Return void.
8602 * f-valprint.c (f_val_print): Return void.
8603 * f-lang.h (f_val_print): Return void.
8604 * d-valprint.c (d_val_print): Return void.
8605 (dynamic_array_type): Update.
8606 * d-lang.h (d_val_print): Return void.
8607 * c-valprint.c (c_val_print): Return void.
8608 * c-lang.h (c_val_print): Return void.
8609 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8610 void.
8611 * ada-lang.h (ada_val_print): Return void.
8612
35c0084b
TT
86132012-03-01 Tom Tromey <tromey@redhat.com>
8614
8615 * value.h (val_print): Return void.
8616 * valprint.c (val_print): Return void.
8617
a1f5dd1b
TT
86182012-03-01 Tom Tromey <tromey@redhat.com>
8619
8620 * value.h (common_val_print): Return void.
8621 * valprint.c (common_val_print): Return void.
8622
8e069a98
TT
86232012-03-01 Tom Tromey <tromey@redhat.com>
8624
8625 * value.h (value_print): Return void.
8626 * valprint.c (value_print): Return void.
8627 * p-valprint.c (pascal_value_print): Return void.
8628 * p-lang.h (pascal_value_print): Return void.
8629 * language.h (struct language_defn) <la_value_print>: Return
8630 void.
8631 * language.c (unk_lang_value_print): Return void.
8632 * jv-valprint.c (java_value_print): Return void.
8633 * jv-lang.h (java_value_print): Return void.
8634 * f-valprint.c (c_value_print): Don't declare.
8635 Include c-lang.h.
8636 * c-valprint.c (c_value_print): Return void.
8637 * c-lang.h (c_value_print): Return void.
8638 * ada-valprint.c (ada_value_print): Return void.
8639 * ada-lang.h (ada_value_print): Return void.
8640
be335936
TT
86412012-03-01 Tom Tromey <tromey@redhat.com>
8642
8643 * value.c (value_primitive_field): Handle virtual base classes.
8644
b0db66a7
TT
86452012-03-01 Tom Tromey <tromey@redhat.com>
8646
8647 * gdbtypes.h (struct vbase): Remove.
8648
132c57b4
TT
86492012-03-01 Tom Tromey <tromey@redhat.com>
8650
8651 * c-valprint.c (print_function_pointer_address): Move...
8652 * valprint.c: ... here. Make non-static.
8653 * m2-valprint.c (print_function_pointer_address): Remove.
8654 * valprint.h (print_function_pointer_address): Declare.
8655
e41eec66
JB
86562012-03-01 Joel Brobecker <brobecker@adacore.com>
8657
8658 * NEWS: Document the fact that one can provide a condition when
8659 creating an Ada exception catchpoint.
8660
19c37f24
TT
86612012-03-01 Tom Tromey <tromey@redhat.com>
8662
8663 * valprint.c (val_print_type_code_flags): Fix placement of
8664 trailing brace.
8665
f0fed3a3
JB
86662012-03-01 Joel Brobecker <brobecker@adacore.com>
8667
8668 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8669 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8670 environment variable before calling update-copyright.
8671
8ba85d85
JB
86722012-03-01 Joel Brobecker <brobecker@adacore.com>
8673
8674 * gnulib/extra/update-copyright: Update to the latest from
8675 gnulib's git repository.
8676 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8677 variable to 2 instead of 1.
8678
8219b1e8
JB
86792012-02-29 Joel Brobecker <brobecker@adacore.com>
8680
8681 * varobj.c (c_value_of_variable): Remove dead code.
8682
718cb7da
JB
86832012-02-29 Joel Brobecker <brobecker@adacore.com>
8684
8685 * ada-lex.p (processId): Do not modify already encoded IDs.
8686 Update function documentation.
8687
739593e0
JB
86882012-02-29 Joel Brobecker <brobecker@adacore.com>
8689
8690 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8691 "name" with "struct symbol *name_sym".
8692 * ada-exp.y (write_var_or_type): Update call to
8693 ada_find_renaming_symbol.
8694 "name" with "struct symbol *name_sym". Adjust Implementation
8695 accordingly. Adjust the function documentation.
8696
852dff6c
JB
86972012-02-29 Joel Brobecker <brobecker@adacore.com>
8698
8699 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8700 * ada-lang.c (ada_find_any_type): Add advance declaration.
8701 Make static. Replace ada_find_any_symbol by
8702 ada_find_any_type_symbol.
8703 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8704 Improve function description. Make static.
8705 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8706 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8707
1b611343
JB
87082012-02-29 Joel Brobecker <brobecker@adacore.com>
8709
8710 * ada-lang.c (struct tag_args): Delete.
8711 (ada_get_tsd_type): Function body moved up in source file.
8712 (ada_tag_name_1, ada_tag_name_2): Delete.
8713 (ada_get_tsd_from_tag): New function.
8714 (ada_tag_name_from_tsd): New function.
8715 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8716 to determine the tag name.
8717
41246937
JB
87182012-02-29 Joel Brobecker <brobecker@adacore.com>
8719
8720 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8721 declaration.
8722 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8723 function.
8724
ffde82bf
JB
87252012-02-29 Joel Brobecker <brobecker@adacore.com>
8726
8727 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8728
2ad01556
JB
87292012-02-29 Joel Brobecker <brobecker@adacore.com>
8730
8731 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8732 full searches.
8733
99b1c762
JB
87342012-02-29 Joel Brobecker <brobecker@adacore.com>
8735
8736 * ada-lang.c (constrained_packed_array_type): If there is a
8737 parallel XA type, use it to determine the array index type.
8738
2d4a02ee
JB
87392012-02-29 Joel Brobecker <brobecker@adacore.com>
8740
8741 * ada-valprint.c (ada_val_print_1): If our value is a reference
8742 to an array descriptor, dereference it before converting it
8743 to a simple array.
8744
c48db5ca
JB
87452012-02-29 Joel Brobecker <brobecker@adacore.com>
8746
8747 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8748 creating fixed value.
8749 (ada_value_ind, ada_coerce_ref, assign_component)
8750 (ada_evaluate_subexp): Remove call to unwrap_value before
8751 call to ada_to_fixed_value.
8752
2e6fda7d
JB
87532012-02-29 Joel Brobecker <brobecker@adacore.com>
8754
8755 * ada-lang.c (to_fixed_array_type): Set result's type name.
8756
5845583d
JB
87572012-02-29 Joel Brobecker <brobecker@adacore.com>
8758
8759 * ada-lang.c (catch_ada_exception_command_split): Add new
8760 argument cond_string. Add support for condition at end of
8761 "catch exception" commands.
8762 (ada_decode_exception_location): Add new argument cond_string.
8763 Update call to catch_ada_exception_command_split.
8764 (create_ada_exception_catchpoint): Add new argument cond_string.
8765 Set the breakpoint condition if needed.
8766 (catch_ada_exception_command): Update call to
8767 ada_decode_exception_location.
8768 (ada_decode_assert_location): Add function documentation.
8769 Add support for condition at end of "catch assert" command.
8770 (catch_assert_command): Update calls to ada_decode_assert_location
8771 and create_ada_exception_catchpoint.
8772
9a7f938f
JK
87732012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8774
8775 Fix disp-step-syscall.exp: fork: single step over fork.
8776 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8777 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8778 comment, change parameters gdbarch and ptid to regcache. Remove
8779 parameter regcache, initialize gdbarch from regcache here.
8780 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8781 New functions.
8782 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8783 instead.
8784 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8785 'syscall'. Make the 'int' check more strict.
8786
ffdf6de5
JK
87872012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8788
8789 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8790 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8791 (i386_linux_intx80_sysenter_syscall_record): ... here.
8792 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8793 Use the renamed function name.
8794
c70a6932
JK
87952012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8796
8797 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8798 * breakpoint.c (until_break_command): Likewise.
8799 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8800 * infcall.c (call_function_by_hand): Likewise.
8801 * infcmd.c (finish_forward): Likewise.
8802 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8803
05b8a789 88042012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8805
d4cd3da9
JB
8806 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8807 avoid variable assignments inside condition.
8808
6425366c
JK
88092012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8810
8811 Fix static analysis issue found by cppcheck.
8812 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8813 uninitialized BUF for size 2.
8814
c8cef75f 88152012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8816 Nathan Froyd <froydnj@codesourcery.com>
8817 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8818
8819 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8820 (mips16_instruction_has_delay_slot): Likewise.
8821 (mips_segment_boundary): Likewise.
8822 (mips_adjust_breakpoint_address): Likewise.
8823 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8824
473347ad 88252012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8826 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8827
8828 * infrun.c (handle_inferior_event): Don't proceed through
8829 shared library trampolines if stepping at the machine
8830 instruction level.
8831
cf233303
MR
88322012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8833
8834 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8835 too.
8836
cb2cf4ce
TS
88372012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8838
8839 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8840 (sh_stub_unwind_sniffer): New functions.
8841 (sh_stub_unwind): New variable.
8842 (sh_gdbarch_init): Wire everything.
8843
644cebc9
PA
88442012-02-27 Pedro Alves <palves@redhat.com>
8845
8846 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8847 (linux_nat_post_attach_wait): Adjust to use
8848 linux_proc_pid_is_stopped.
8849 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8850 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8851 based on pid_is_stopped from both linux-nat.c and
8852 gdbserver/linux-low.c, and renamed.
8853
283002cf
MR
88542012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8855
8856 * remote.c (remote_watchpoint_addr_within_range): New function.
8857 (init_remote_ops): Use it.
8858
9b3e86b1
MR
88592012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8860
8861 * target.h (target_watchpoint_addr_within_range): Document macro.
8862
e36930bb
PA
88632012-02-24 Pedro Alves <palves@redhat.com>
8864
8865 * stack.c (set_last_displayed_sal): Issue internal_error instead
8866 of warning, and issue it after clearing the last displayed sal.
8867
883bc8d1
PA
88682012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8869 Pedro Alves <palves@redhat.com>
8870
8871 * breakpoint.c (until_break_command): Install breakpoints after
8872 all frame manipulations.
8873
b775012e
LM
88742012-02-24 Luis Machado <lgustavo@codesourcery.com>
8875
8876 * remote.c (remote_supports_cond_breakpoints): New forward
8877 declaration.
8878 (remote_add_target_side_condition): New function.
8879 (remote_insert_breakpoint): Add target-side breakpoint
8880 conditional if supported.
8881 (remote_insert_hw_breakpoint): Likewise.
8882 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8883 hook.
8884
8885 * target.c (update_current_target): Inherit
8886 to_supports_evaluation_of_breakpoint_conditions.
8887 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8888
8889 * target.h (struct target_ops)
8890 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8891 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8892
8893 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8894 (condition_evaluation_both, condition_evaluation_auto,
8895 condition_evaluation_host, condition_evaluation_target,
8896 condition_evaluation_enums, condition_evaluation_mode_1,
8897 condition_evaluation_mode): New static globals.
8898 (translate_condition_evaluation_mode): New function.
8899 (breakpoint_condition_evaluation_mode): New function.
8900 (gdb_evaluates_breakpoint_condition_p): New function.
8901 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8902 (mark_breakpoint_modified): New function.
8903 (mark_breakpoint_location_modified): New function.
8904 (set_condition_evaluation_mode): New function.
8905 (show_condition_evaluation_mode): New function.
8906 (bp_location_compare_addrs): New function.
8907 (get_first_location_gte_addr): New helper function.
8908 (set_breakpoint_condition): Free condition bytecode if locations
8909 has become unconditional. Call mark_breakpoint_modified (...).
8910 (condition_command): Call update_global_location_list (1) for
8911 breakpoints.
8912 (breakpoint_xfer_memory): Use is_breakpoint (...).
8913 (is_breakpoint): New function.
8914 (parse_cond_to_aexpr): New function.
8915 (build_target_condition_list): New function.
8916 (insert_bp_location): Handle target-side conditional
8917 breakpoints and call build_target_condition_list (...).
8918 (update_inserted_breakpoint_locations): New function.
8919 (insert_breakpoint_locations): Handle target-side conditional
8920 breakpoints.
8921 (bpstat_check_breakpoint_conditions): Add comment.
8922 (bp_condition_evaluator): New function.
8923 (bp_location_condition_evaluator): New function.
8924 (print_breakpoint_location): Print information on where the condition
8925 will be evaluated.
8926 (print_one_breakpoint_location): Likewise.
8927 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8928 breakpoint location.
8929 (force_breakpoint_reinsertion): New functions.
8930 (update_global_location_list): Handle target-side breakpoint
8931 conditions.
8932 Reinsert locations that are already inserted if conditions have
8933 changed.
8934 (bp_location_dtor): Free agent expression bytecode.
8935 (disable_breakpoint): Call mark_breakpoint_modified (...).
8936 Call update_global_location_list (...) with parameter 1 for breakpoints.
8937 (disable_command): Call mark_breakpoint_location_modified (...).
8938 Call update_global_location_list (...) with parameter 1 for breakpoints.
8939 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8940 (enable_command): mark_breakpoint_location_modified (...).
8941 (_initialize_breakpoint): Update documentation and add
8942 condition-evaluation breakpoint subcommand.
8943
8944 * breakpoint.h: Include ax.h.
8945 (condition_list): New data structure.
8946 (condition_status): New enum.
8947 (bp_target_info) <cond_list>: New field.
8948 (bp_location) <condition_changed, cond_bytecode>: New fields.
8949 (is_breakpoint): New prototype.
8950
3788aec7
LM
89512012-02-24 Luis Machado <lgustavo@codesourcery.com>
8952
8953 * remote.c (remote_state) <cond_breakpoints>: New field.
8954 (PACKET_ConditionalBreakpoints): New enum.
8955 (remote_cond_breakpoint_feature): New function.
8956 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8957 (remote_supports_cond_breakpoints): New function.
8958 (_initialize_remote): Add new packet configuration for
8959 target-side conditional breakpoints.
8960
72895ff6
LM
89612012-02-24 Luis Machado <lgustavo@codesourcery.com>
8962
8963 * NEWS: Mention target-side conditional breakpoint support,
8964 new condition-evaluation breakpoint subcommand and remote
8965 packet extensions.
8966
dea2aa5f
LM
89672012-02-24 Luis Machado <lgustavo@codesourcery.com>
8968
8969 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8970 number.
8971
8a8bc27f
TS
89722012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8973
8974 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8975 (after_prologue): Remove.
8976
6b446fdf
TT
89772012-02-23 Tom Tromey <tromey@redhat.com>
8978
8979 * jv-valprint.c (java_val_print): Remove dead code.
8980
ef59abfb
TG
89812012-02-23 Tristan Gingold <gingold@adacore.com>
8982
a09130f9
PA
8983 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8984 known_tasks_element and known_tasks_length fields.
8985 (read_known_tasks_array): Change argument type. Use pointer type
8986 and number of elements from DATA. Adjust.
8987 (read_known_tasks_list): Likewise.
8988 (get_known_tasks_addr): Remove.
8989 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8990 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8991 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8992
def166f6
JK
89932012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8994
8995 PR backtrace/13716
8996 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8997 it after set_momentary_breakpoint.
8998
aeaa2474
SA
89992012-02-22 Sterling Augustine <saugustine@google.com>
9000
9001 PR 13689:
9002 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9003
feea76c2
GB
90042012-02-22 Gary Benson <gbenson@redhat.com>
9005
9006 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9007 (find_slot_in_mapped_hash): Likewise.
9008
f06e05e0
JK
90092012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9010
9011 PR build/13638
9012 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9013 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9014 * configure: Regenerate.
9015
b54a8fd7
PA
90162012-02-21 Tristan Gingold <gingold@adacore.com>
9017 Pedro Alves <palves@redhat.com>
9018
9019 * ia64-tdep.c: Do not include libunwind-ia64.h.
9020 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9021 Include libunwind-ia64.h instead of libunwind.h.
9022 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9023 for libunwind.h existence.
9024 * configure, config.in: Regenerate.
9025
dfcee124
AG
90262012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9027
9028 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9029 instead of value_rtti_target_type.
9030 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9031 instead of value_rtti_target_type.
9032 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9033 value_rtti_target_type.
9034 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9035 (value_rtti_target_type): Rename to ...
9036 (value_rtti_indirect_type): ... here and make it indirect. Update
9037 function comment.
9038 * value.c (readjust_indirect_value_type): New function.
9039 (coerce_ref): Support for enclosing type setting for references
9040 with readjust_indirect_value_type.
9041 * value.h (readjust_value_type): New declaration.
9042 (value_rtti_target_type): Rename to ...
9043 (value_rtti_indirect_type): ... here.
9044
02568277
AG
90452012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9046
9047 * MAINTAINERS (Write After Approval): Add myself to the list.
9048
10c07b7e 90492012-02-20 Doug Evans <dje@google.com>
28ee876a 9050
d82ea6a8
DE
9051 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9052 Rename objfile_p_char parameter to objfilep.
9053 (build_objfile_section_table): Result is now void. All callers
9054 updated.
9055 * objfiles.h (struct objfile): Tweak comments, whitespace.
9056 (build_objfile_section_table): Update.
9057
28ee876a
DE
9058 * elfread.c (elf_symfile_segments): Fix warning text.
9059
24c79950
TT
90602012-02-20 Tom Tromey <tromey@redhat.com>
9061
9062 PR gdb/13498:
9063 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9064 particular set of file names once.
9065 (dw2_map_symbol_filenames): Likewise.
9066
3a9b40b6
JK
90672012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9068
9069 Code cleanup.
9070 * main.c (write_files): Remove the declaration.
9071 (external_editor_command): Move the declaration ...
9072 [GDBTK] (external_editor_command): ... here. Fix the comment.
9073
4d0795ca
TT
90742012-02-20 Tom Tromey <tromey@redhat.com>
9075
9076 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9077 extraneous block.
9078
637fd620
TG
90792012-02-20 Tristan Gingold <gingold@adacore.com>
9080
9081 * darwin-nat.h (enum darwin_msg_state): Add comments.
9082
6f124894
TG
90832012-02-20 Tristan Gingold <gingold@adacore.com>
9084
9085 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9086 value.
9087
2e6e3d9c
JB
90882012-20-18 Joel Brobecker <brobecker@adacore.com>
9089
9090 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9091 between function description and implementation.
9092
2e8265fd
TT
90932012-02-17 Tom Tromey <tromey@redhat.com>
9094
9095 PR python/12070:
9096 * python/py-event.c (event_object_getset): New global.
9097 (event_object_type): Reference it.
9098 * python/py-type.c (field_object_getset): New global.
9099 (field_object_type): Reference it.
9100 * python/python-internal.h (gdb_py_generic_dict): Declare.
9101 * python/py-utils.c (gdb_py_generic_dict): New function.
9102
8544a150 91032012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9104
8544a150 9105 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9106
ca193e27
TS
91072012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9108
9109 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9110 TYPE_CALLING_CONVENTION annotation.
9111
e5586183
KB
91122012-02-16 Kevin Buettner <kevinb@redhat.com>
9113
9114 * MAINTAINERS: Add rx to target ISA section.
9115 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9116 (ALLDEPFILES): Add rx-tdep.c.
9117
7dcd53a0
TT
91182012-02-16 Tom Tromey <tromey@redhat.com>
9119
9120 * symfile.c (symbol_file_add_main_1): Use inferior's
9121 symfile_flags.
9122 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9123 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9124 inferior.
9125 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9126 inferior.
9127 (follow_exec): Use inferior's symfile_flags.
9128 * inferior.h (struct inferior) <symfile_flags>: New field.
9129
ddd60447
MF
91302012-02-16 Mike Frysinger <vapier@gentoo.org>
9131
9132 PR gdb/9734:
9133 * remote-sim.c (gdbsim_create_inferior): Call error() when
9134 sim_create_inferior() fails.
9135
b0d32fb6
TG
91362012-02-16 Josh Matthews <josh@joshmatthews.net>
9137
9138 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9139
9addecb9
TT
91402012-02-16 Tom Tromey <tromey@redhat.com>
9141
9142 PR c++/13653:
9143 * thread.c (struct current_thread_cleanup) <was_removable>: New
9144 field.
9145 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9146 (make_cleanup_restore_current_thread): Initialize new field.
9147
a58b110a
KB
91482012-02-15 Kevin Buettner <kevinb@redhat.com>
9149
9150 * MAINTAINERS: Add rl78 to target ISA section.
9151 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9152 (ALLDEPFILES): Add rl78-tdep.c.
9153 * NEWS: Mention rl78 as a new target.
9154
4cb6da1c
AR
91552012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9156
9157 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9158 data.
9159 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9160
3af2590d
TT
91612012-02-15 Tom Tromey <tromey@redhat.com>
9162
9163 PR gdb/12659:
9164 * infcmd.c (registers_info): Print just the current register's
9165 name.
9166
c6910659
TT
91672012-02-15 Tom Tromey <tromey@redhat.com>
9168
9169 * python/py-symbol.c (sympy_value): Use _().
9170
7cee1e54
PA
91712012-02-15 Pedro Alves <palves@redhat.com>
9172
9173 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9174 output to be like native targets'.
9175 (remote_pid_to_str): Special case the null ptid.
9176
816338b5
SS
91772012-02-14 Stan Shebs <stan@codesourcery.com>
9178
9179 * NEWS: Mention enable count command.
9180 * breakpoint.h (struct breakpoint): New field enable_count.
9181 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9182 (enable_breakpoint): Add arg to call.
9183 (struct disp_data): New struct.
9184 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9185 (do_map_enable_once_breakpoint): Create a struct and pass it.
9186 (do_map_enable_delete_breakpoint): Ditto.
9187 (do_map_enable_count_breakpoint): New function.
9188 (enable_count_command): New function.
9189 (bpstat_stop_status): Decrement enable_count.
9190 (print_one_breakpoint_location): Report enable count.
9191 (_initialize_breakpoint): Add enable count command.
9192
c47a44f4
KB
91932012-02-14 Kevin Buettner <kevinb@redhat.com>
9194
9195 * rl78-tdep.c (reggroups.h): Include.
9196 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9197 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9198 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9199 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9200 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9201 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9202 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9203 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9204 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9205 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9206 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9207 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9208 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9209 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9210 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9211 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9212 beginning of register list.
9213 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9214 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9215 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9216 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9217 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9218 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9219 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9220 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9221 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9222 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9223 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9224 the pseudo registers. Rearrange other pseudo registers too so
9225 that the bank registers appear at the end.
9226 (rl78_register_type): Account for the fact that the byte sized
9227 bank registers are now pseudo-registers.
9228 (rl78_register_name): Rearrange the register name array. Make
9229 initial set of raw banked registers inaccessible.
9230 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9231 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9232 case for copying bytes back and forth between raw and pseudo
9233 versions of the banked registers. Update other cases to reflect
9234 the changed names.
9235 (rl78_return_value): Update to account for changed names of
9236 raw registers.
9237 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9238 rl78_register_sim_regno().
9239
e4569f1e
KB
92402012-02-14 Kevin Buettner <kevinb@redhat.com>
9241
9242 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9243 the name parameter being passed to find_pc_partial_function().
9244
7a05aae7
JK
92452012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9246
9247 * MAINTAINERS: Step down from being ia64 target maintainer.
9248
11fde611
JK
92492012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9250
9251 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9252 compilation warning.
9253
57008375
JK
92542012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9255
9256 Fix crash on loaded shlibs without loaded exec_bfd.
9257 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9258 (set_section_command): Replace exec_bfd by p->bfd.
9259
ff3c9849
TT
92602012-02-10 Tom Tromey <tromey@redhat.com>
9261
9262 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9263 when we have a C++ qualified name.
9264
db2b9fdd
PA
92652012-02-10 Pedro Alves <palves@redhat.com>
9266
9267 * inferior.c (inferior_pid_to_str): New.
9268 (print_inferior, inferior_command): Use it.
9269
12cd34f3
PA
92702012-02-10 Pedro Alves <palves@redhat.com>
9271
9272 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9273 the test CFLAGS.
9274 * configure: Regenerate.
9275
e871429d
JK
92762012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9277
9278 * linespec.c (decode_line_internal): Fix comment correctness.
9279
1916efaf
PA
92802012-02-09 Valery Khromov <valery.khromov@gmail.com>
9281
9282 PR gdb/12953
9283 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9284 * amd64bsd-nat.c: Add support for debug registers (adapted from
9285 i386bsd-nat.c).
9286 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9287 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9288 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9289 (amd64bsd_dr_get_control): New functions.
9290 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9291 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9292 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9293 watchpoints initialization.
9294 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9295
f4859d94
JK
92962012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9297
9298 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9299 flds_bnds.fields.
9300 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9301
c56a97f9
JK
93022012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9303
9304 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9305
1a119f36
JB
93062012-02-08 Joel Brobecker <brobecker@adacore.com>
9307
9308 * language.h (symbol_name_cmp_ftype): Renames
9309 symbol_name_match_p_ftype.
9310 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9311 la_get_symbol_name_match_p.
9312 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9313 ada_get_symbol_name_match_p. Update comment.
9314 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9315 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9316 Renames symbol_name_match_p. Update field type.
9317 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9318 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9319 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9320 "la_get_symbol_name_cmp" in comments.
9321 * language.c: Likewise.
9322
c71bb1cf
RO
93232012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9324
9325 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9326 %eflags offset.
9327 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9328 (amd64_sol2_gregset32_reg_offs): Likewise.
9329
4b2d20a5
TG
93302012-02-08 Joel Brobecker <brobecker@adacore.com>
9331
9332 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9333 of the returned BFD is allocated by GDB.
9334
f0823d2c
TT
93352012-02-07 Tom Tromey <tromey@redhat.com>
9336
9337 PR python/12027:
9338 * python/python-internal.h (frame_object_type): Declare.
9339 * python/py-symbol.c (sympy_needs_frame): New function.
9340 (sympy_value): New function.
9341 (symbol_object_getset): Add "needs_frame".
9342 (symbol_object_methods): Add "value".
9343 * python/py-frame.c (frame_object_type): No longer static.
9344
64e7d9dd
TT
93452012-02-07 Tom Tromey <tromey@redhat.com>
9346
9347 PR python/13599:
9348 * python/py-symbol.c (sympy_line): New function.
9349 (symbol_object_getset): Add "line".
9350
1d6b2d2b
TT
93512012-02-07 Tom Tromey <tromey@redhat.com>
9352
9353 * charset.c (find_charset_names): Check 'in' against NULL.
9354
0d5cff50
DE
93552012-02-06 Doug Evans <dje@google.com>
9356
9357 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9358 and fields.name members from char * to const char *. All uses updated.
9359 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9360 from char * to const char *. All uses updated.
9361 (type_name_no_tag): Update.
9362 (lookup_unsigned_typename, lookup_signed_typename): Update.
9363 * gdbtypes.c (type_name_no_tag): Change result type
9364 from char * to const char *. All callers updated.
9365 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9366 name parameter from char * to const char *.
9367 * symtab.h (struct cplus_specific): Change type of demangled_name
9368 member from char * to const char *. All uses updated.
9369 (struct general_symbol_info): Change type of name and
9370 mangled_lang.demangled_name members from char * to const char *.
9371 All uses updated.
9372 (symbol_get_demangled_name, symbol_natural_name): Update.
9373 (symbol_demangled_name, symbol_search_name): Update.
9374 * symtab.c (symbol_get_demangled_name): Change result type
9375 from char * to const char *. All callers updated.
9376 (symbol_natural_name, symbol_demangled_name): Ditto.
9377 (symbol_search_name): Ditto.
9378 (completion_list_add_name): Change type of symname,sym_text,
9379 text,word parameters from char * to const char *.
9380 (completion_list_objc_symbol): Change type of sym_text,
9381 text,word parameters from char * to const char *.
9382 * ada-lang.c (find_struct_field): Change type of name parameter
9383 from char * to const char *.
9384 (encoded_ordered_before): Similarly for N0,N1 parameters.
9385 (old_renaming_is_invisible): Similarly for function_name parameter.
9386 (ada_type_name): Change result type from char * to const char *.
9387 All callers updated.
9388 * ada-lang.h (ada_type_name): Update.
9389 * buildsym.c (hashname): Change type of name parameter
9390 from char * to const char *.
9391 * buildsym.h (hashname): Update.
9392 * dbxread.c (end_psymtab): Change type of include_list parameter
9393 from char ** to const char **.
9394 * dwarf2read.c (determine_prefix): Change result type
9395 from char * to const char *. All callers updated.
9396 * f-lang.c (find_common_for_function): Change type of name, funcname
9397 parameters from char * to const char *.
9398 * f-lang.c (find_common_for_function): Update.
9399 * f-valprint.c (list_all_visible_commons): Change type of funcname
9400 parameters from char * to const char *.
9401 * gdbarch.sh (static_transform_name): Change type of name parameter
9402 and result from char * to const char *.
9403 * gdbarch.c: Regenerate.
9404 * gdbarch.h: Regenerate.
9405 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9406 of name parameter from char * to const char *.
9407 * jv-lang.c (java_primitive_type_from_name): Ditto.
9408 (java_demangled_signature_length): Similarly for signature parameter.
9409 (java_demangled_signature_copy): Ditto.
9410 (java_demangle_type_signature): Ditto.
9411 * jv-lang.h (java_primitive_type_from_name): Update.
9412 (java_demangle_type_signature): Update.
9413 * objc-lang.c (specialcmp): Change type of a,b parameters
9414 from char * to const char *.
9415 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9416 from char * to const char *. All callers updated.
9417 * p-lang.h (is_pascal_string_type): Update.
9418 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9419 of name parameter from char * to const char *.
9420 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9421 * utils.c (fprintf_symbol_filtered): Ditto.
9422 * defs.h (fprintf_symbol_filtered): Update.
9423 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9424 * stabsread.h (end_psymtab): Update.
9425 * stack.c (find_frame_funname): Change type of funname parameter
9426 from char ** to const char **.
9427 * stack.h (find_frame_funname): Update.
9428 * typeprint.c (type_print): Change type of varstring parameter
9429 from char * to const char *.
9430 * value.h (type_print): Update.
9431 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9432 from char * to const char *. All callers updated.
9433 (xcoff_end_psymtab): Change type of include_list parameter
9434 from char ** to const char **. All callers updated.
9435 (swap_sym): Similarly for name parameter. All callers updated.
9436 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9437 Use xstrdup.
9438 (process_coff_symbol): Use xstrdup.
9439 * stabsread.c (stabs_method_name_from_physname): Renamed from
9440 update_method_name_from_physname. Change result type from void
9441 to char *. All callers updated.
9442 (read_member_functions): In has_destructor case, store name in objfile
9443 obstack instead of malloc space. In !has_stub case, fix mem leak.
9444
5579a92e
TT
94452012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9446
9447 * configure: Rebuild.
9448 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9449 LDFLAGS.
9450
9058f767
KB
94512012-02-03 Kevin Buettner <kevinb@redhat.com>
9452
9453 * configure.tgt (rl78-*-elf): New target.
9454 * rl78-tdep.c: New file.
9455
5b37825d
PW
94562012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9457
9458 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9459 and continue the loop. Add QUIT statement.
9460
e009ee71
TT
94612012-02-03 Tom Tromey <tromey@redhat.com>
9462
9463 PR gdb/13596:
9464 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9465 bfd_lookup_symbol_from_symtab.
9466 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9467 gdb_bfd_lookup_symbol_from_symtab.
9468
f7e44f65
JB
94692012-02-03 Joel Brobecker <brobecker@adacore.com>
9470
9471 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9472 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9473 symbol. Add assertion that sym2 is never NULL.
9474
2c02bd72
DE
94752012-02-02 Doug Evans <dje@google.com>
9476
9477 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9478 "name" parameter to const char ** from char **. All callers updated.
9479 (find_pc_partial_function): Ditto.
9480 (cache_pc_function_name): Change type to const char * from char *.
9481 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9482 (find_pc_partial_function): Update.
9483 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9484 type of "name" parameter to const char * from char *.
9485 All uses updated.
9486 * arch-utils.c (generic_in_solib_return_trampoline): Change
9487 type of "name" parameter to const char * from char *.
9488 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9489 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9490 type of "name" parameter to const char * from char *.
9491 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9492 * gdbarch.c: Regenerate.
9493 * gdbarch.h: Regenerate.
9494 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9495 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9496 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9497 type of "name" parameter to const char * from char *.
9498 * skip.c (skip_function_pc): Ditto.
9499 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9500 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9501 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9502 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9503 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9504 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9505 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9506 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9507 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9508
e886a173
PA
95092012-02-02 Pedro Alves <palves@redhat.com>
9510
9511 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9512 the current inferior has no execution. Make sure the current
9513 remote process matches gdb's current inferior.
9514
c709a7c2
TT
95152012-02-02 Tom Tromey <tromey@redhat.com>
9516
9517 PR gdb/13405:
9518 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9519 read-only memory.
9520
f149aabd
TT
95212012-02-02 Tom Tromey <tromey@redhat.com>
9522
9523 PR gdb/9307:
9524 * symtab.c (lookup_language_this): Set block_found.
9525
03bef283
TT
95262012-02-01 Tom Tromey <tromey@redhat.com>
9527
9528 PR gdb/13431:
9529 * jit.c (struct jit_inferior_data): Rewrite.
9530 (struct jit_objfile_data): New.
9531 (get_jit_objfile_data): New function.
9532 (add_objfile_entry): Update.
9533 (jit_read_descriptor): Return int. Replace descriptor_addr
9534 argument with inf_data. Update. Don't call error.
9535 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9536 descriptor here.
9537 (jit_inferior_init): Don't look up descriptor. Don't call error.
9538 (jit_reset_inferior_data_and_breakpoints)
9539 (jit_inferior_created_observer): Remove.
9540 (jit_inferior_exit_hook): Update.
9541 (jit_executable_changed_observer): Remove.
9542 (jit_event_handler): Update.
9543 (free_objfile_data): Reset inferior data if needed.
9544 (_initialize_jit): Update.
9545
f0bbc364
TT
95462012-02-01 Tom Tromey <tromey@redhat.com>
9547
9548 * jit.c (bfd_open_from_target_memory): Move higher in file.
9549
47c1316c
TG
95502012-02-01 Tristan Gingold <gingold@adacore.com>
9551
9552 * libunwind-frame.c (libunwind_load): Display message if dlopen
9553 failed.
9554
8e704927
GB
95552012-02-01 Gary Benson <gbenson@redhat.com>
9556
09c7a31f 9557 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9558 (iterate_over_symbols): Use the above.
9559 * symtab.c (iterate_over_symbols): Likewise.
9560 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9561 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9562 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9563 (iterate_name_matcher): Document return values.
9564 (collect_one_symbol): Likewise.
9565 (collect_function_symbols): Likewise.
9566 (collect_symbols): Likewise.
9567
d9680e73
TT
95682012-02-01 Tom Tromey <tromey@redhat.com>
9569
9570 * ada-lang.c (resolve_subexp): Update.
9571 (ada_lookup_symbol_list): Add 'full_search' argument.
9572 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9573 ada_lookup_symbol_list.
9574 (ada_lookup_encoded_symbol): Update.
9575 (get_var_value): Update.
9576 * ada-exp.y (block_lookup): Update.
9577 (write_var_or_type): Update.
9578 (write_name_assoc): Update.
9579 * ada-lang.h (ada_lookup_symbol_list): Update.
9580
72e1143f
TT
95812012-01-31 Tom Tromey <tromey@redhat.com>
9582
9583 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9584 comment.
9585
ab2d2ad3
DE
95862012-01-31 Doug Evans <dje@google.com>
9587
9588 * symtab.h: Remove outdated comment.
e9111bf7 9589 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9590
bc884eba
JB
95912012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9592
9593 Fix build error in Darwin port.
9594 * i386-darwin-nat.c: Include i386-nat.h.
9595
8fc3fc34
TT
95962012-01-30 Tom Tromey <tromey@redhat.com>
9597
9598 PR breakpoints/13568:
9599 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9600 argument. Check for recursive includes.
9601 (dwarf_decode_macros): Create an include hash.
9602
5d853008
ME
96032012-01-30 Michael Eager <eager@eagercon.com>
9604
9605 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9606 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9607 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9608 (powerpc_linux_in_plt_stub): New function.
9609 (powerpc_linux_in_dynsym_resolve_code): New function.
9610 (ppc_skip_trampoline_code): New function.
9611 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9612 Use glibc_skip_solib_resolver.
9613
40478521
JK
96142012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9615
9616 Code cleanup: Make 1440 bytes of data segment read-only.
9617 * arch-utils.c (endian_enum): Make it const char *const [].
9618 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9619 Likewise.
9620 * breakpoint.c (always_inserted_enums): Likewise.
9621 * cli/cli-cmds.c (script_ext_enums): Likewise.
9622 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9623 enumlist parameter const char *const *.
9624 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9625 const char *const *.
9626 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9627 parameter const char *const *.
9628 * cris-tdep.c (cris_modes): Make it const char *const [].
9629 * filesystem.c (target_file_system_kinds): Likewise.
9630 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9631 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9632 (can_use_displaced_stepping_enum, scheduler_enums)
9633 (exec_direction_names): Likewise.
9634 * language.c (_initialize_language): Make the type_or_range_names and
9635 case_sensitive_names variables const char *const [].
9636 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9637 * python/python.c (python_excp_enums): Likewise.
9638 * remote.c (interrupt_sequence_modes): Likewise.
9639 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9640 * serial.c (logbase_enums): Likewise.
9641 * sh-tdep.c (sh_cc_enum): Likewise.
9642 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9643 Likewise.
9644 * symtab.c (multiple_symbols_modes): Likewise.
9645 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9646 Likewise.
9647 * utils.c (internal_problem_modes): Likewise.
9648
b3b8b934
JK
96492012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9650
9651 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9652 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9653 result.
9654
8c85a4e2
DE
96552012-01-27 Doug Evans <dje@google.com>
9656
9657 * configure.ac (with_python): Fix absolute path handling for win32.
9658 * configure: Regenerate.
9659
78d8b4d7
DE
96602012-01-26 Doug Evans <dje@google.com>
9661
eca864fe
DE
9662 * symtab.c: Whitespace cleanup, no code changes.
9663
7e082072
DE
9664 * symtab.c (lookup_symbol_in_language): Improve comment.
9665 (lookup_symbol_aux): Fix comment.
9666
7dc25483
DE
9667 * psymtab.c (add_psymbol_to_list): Result is now "void".
9668 * psympriv.h (add_psymbol_to_list): Update.
9669
78d8b4d7
DE
9670 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9671
4c63965b
JK
96722012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9673
9674 Do not open script filenames twice.
9675 * cli/cli-cmds.c (source_script_from_stream): Pass to
9676 source_python_script also STREAM.
9677 * python/py-auto-load.c (source_section_scripts): Pass to
9678 source_python_script_for_objfile also STREAM.
9679 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9680 also INPUT.
9681 * python/python-internal.h (source_python_script_for_objfile): New
9682 parameter file, rename parameter file to filename.
9683 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9684 instead if !_WIN32. Update the function comment.
9685 (source_python_script, source_python_script_for_objfile)
9686 (source_python_script): New parameter file, rename parameter file to
9687 filename. Pass FILENAME to python_run_simple_file.
9688 * python/python.h (source_python_script): New parameter file, rename
9689 parameter file to filename.
9690
88f38a04
PA
96912012-01-26 Pedro Alves <palves@redhat.com>
9692
9693 * corelow.c (core_has_fake_pid): Delete.
9694 (core_close): Delete references to `core_has_fake_pid'.
9695 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9696 (core_open): Delete references to `core_has_fake_pid'.
9697 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9698 the removed global.
9699
e078317b
JB
97002012-01-26 Joel Brobecker <brobecker@adacore.com>
9701
9702 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9703 Remove language parameter from name_matcher. Adjust the comment.
9704 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9705 Remove language parameter.
9706 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9707 * linespec.c (iterate_name_matcher): Likewise.
9708 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9709 name_matcher. Adjust call accordingly.
9710 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9711 (maintenance_check_symtabs): Adjust type of parameter "fun".
9712 * psymtab.h (maintenance_check_symtabs): Likewise.
9713
74ccd7f5
JB
97142012-01-26 Joel Brobecker <brobecker@adacore.com>
9715
9716 * language.h (symbol_name_match_p_ftype): New typedef.
9717 (struct language_defn): Replace field la_symbol_name_compare
9718 by la_get_symbol_name_match_p.
9719 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9720 (ada_language_defn): Use it.
9721 * linespec.c (struct symbol_matcher_data): New type.
9722 (iterate_name_matcher): Rewrite.
9723 (iterate_over_all_matching_symtabs): Pass a pointer to
9724 a symbol_matcher_data struct to expand_symtabs_matching
9725 instead of just the lookup name.
9726 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9727 opencl-lang.c, p-lang.c, language.c: Delete field
9728 la_symbol_name_compare, and replace by NULL for new field
9729 la_get_symbol_name_match_p.
9730 * symfile.h (struct quick_symbol_functions): Update comment.
9731
5d268276
TT
97322012-01-25 Tom Tromey <tromey@redhat.com>
9733
9734 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9735 dereferencing.
9736
edcc5120
TT
97372012-01-24 Tom Tromey <tromey@redhat.com>
9738
9739 PR symtab/12406:
9740 * solib.c (update_solib_list): Update the program space's
9741 added_solibs and deleted_solibs fields.
9742 * progspace.h (struct program_space) <added_solibs,
9743 deleted_solibs>: New fields.
9744 (clear_program_space_solib_cache): Declare.
9745 * progspace.c (release_program_space): Call
9746 clear_program_space_solib_cache.
9747 (clear_program_space_solib_cache): New function.
9748 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9749 bpstat_stop_status. Use handle_solib_event.
9750 * breakpoint.c: Include gdb_regex.h.
9751 (print_solib_event): New function.
9752 (bpstat_print): Use print_solib_event.
9753 (bpstat_stop_status): Add special case for bp_shlib_event.
9754 (handle_solib_event): New function.
9755 (bpstat_what): Use handle_solib_event.
9756 (struct solib_catchpoint): New.
9757 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9758 (breakpoint_hit_catch_solib, check_status_catch_solib)
9759 (print_it_catch_solib, print_one_catch_solib)
9760 (print_mention_catch_solib, print_recreate_catch_solib): New
9761 functions.
9762 (catch_solib_breakpoint_ops): New global.
9763 (catch_load_or_unload, catch_load_command_1)
9764 (catch_unload_command_1): New functions.
9765 (internal_bkpt_check_status): Add special case for
9766 bp_shlib_event.
9767 (internal_bkpt_print_it): Use print_solib_event.
9768 (initialize_breakpoint_ops): Initialize
9769 catch_solib_breakpoint_ops.
9770 (_initialize_breakpoint): Register "catch load" and "catch
9771 unload".
9772 * breakpoint.h (handle_solib_event): Declare.
9773 * NEWS: Add entry for "catch load" and "catch unload".
9774
fa864999
TT
97752012-01-24 Tom Tromey <tromey@redhat.com>
9776
9777 * ada-lang.c: Include gdb_vecs.h.
9778 * charset.c: Include gdb_vecs.h.
9779 * tracepoint.h: Include gdb_vecs.h.
9780 * gdb_vecs.h: New file.
9781
f90263c1
TT
97822012-01-24 Pedro Alves <pedro@codesourcery.com>
9783
9784 * breakpoint.c (breakpoint_hit_catch_fork)
9785 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9786 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9787 * infrun.c (inferior_has_forked, inferior_has_vforked)
9788 (inferior_has_execd, inferior_has_called_syscall): Delete.
9789 (handle_syscall_event): Get syscall_number from the execution
9790 control state's wait status.
9791 (wait_for_inferior): Don't clear syscall_number.
9792
09ac7c10
TT
97932012-01-24 Pedro Alves <palves@redhat.com>
9794
9795 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9796 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9797 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9798 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9799 `ws' parameter.
9800 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9801 false for events other than TARGET_SIGNAL_TRAP.
9802 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9803 Add `ws' parameter.
9804 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9805 events other than TARGET_SIGNAL_TRAP.
9806 (tracepoint_breakpoint_hit): Add `ws' parameter.
9807 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9808 parameter.
9809 (bpstat_stop_status): Same.
9810 (pc_at_non_inline_function): Same.
9811 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9812 to pass the current event's waitstatus to bpstat_stop_status
9813 and pc_at_non_inline_function.
9814
86eb7e95
JK
98152012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9816
9817 Code cleanup.
9818 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9819 Update the function comment for it.
9820 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9821 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9822 for STREAM.
9823
a9b3a50f
PA
98242012-01-24 Pedro Alves <palves@redhat.com>
9825
9826 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9827 outside `bs->stop' block.
9828 (bpstat_what): Rework bp_shlib_event handling.
9829 (internal_bkpt_check_status): If the breakpoint is a
9830 bp_shlib_event, then set bs->stop and bs->print if
9831 stop_on_solib_events is set.
9832
53fe1783
GB
98332012-01-24 Gary Benson <gbenson@redhat.com>
9834
9835 Delete #if 0'd out code.
9836 * stack.c (print_frame_label_vars): Remove.
9837 (catch_info): Likewise.
9838 (_initialize_stack): Remove "info catch" command.
9839 * NEWS: Mention the above.
9840
49c62f2e
PA
98412012-01-24 Pedro Alves <palves@redhat.com>
9842
9843 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9844 it.
9845 (remote_notice_new_inferior): If the remote end doesn't support
9846 the multiprocess extensions, then the PID is fake.
9847 (add_current_inferior_and_thread): New.
9848 (remote_start_remote): Use it.
9849 (extended_remote_attach_1): Adjust.
9850 (extended_remote_create_inferior_1): Use
9851 add_current_inferior_and_thread.
9852
d0d8b0c6
JK
98532012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9854
9855 Fix watchpoints to be specific for each inferior.
9856 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9857 current_program_space.
9858 * i386-nat.c (i386_inferior_data_cleanup): New.
9859 (i386_inferior_data_get): Replace variable inf_data_local by an
9860 inferior_data call.
9861 (i386_use_watchpoints): Initialize i386_inferior_data.
9862 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9863 specific iterate_over_lwps.
9864
4403d8e9
JK
98652012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9866
9867 Fix watchpoints across inferior fork.
9868 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9869 comment for linux_nat_iterate_watchpoint_lwps.
9870 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9871 linux_nat_iterate_watchpoint_lwps.
9872 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9873 * i386-linux-nat.c (update_debug_registers_callback): Update the
9874 comment for linux_nat_iterate_watchpoint_lwps.
9875 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9876 linux_nat_iterate_watchpoint_lwps.
9877 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9878 * i386-nat.c: Include inferior.h.
9879 (dr_mirror): Remove.
9880 (i386_inferior_data, struct i386_inferior_data)
9881 (i386_inferior_data_get): New.
9882 (i386_debug_reg_state): Use i386_inferior_data_get.
9883 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9884 (i386_insert_watchpoint, i386_remove_watchpoint)
9885 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9886 (i386_remove_hw_breakpoint): New variable state, use
9887 i386_debug_reg_state instead of DR_MIRROR.
9888 * linux-nat.c (delete_lwp): New declaration.
9889 (num_lwps): Move here from downwards.
9890 (delete_lwp_cleanup): New.
9891 (linux_child_follow_fork): Create new child_lp, call
9892 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9893 PTRACE_DETACH.
9894 (num_lwps): Move upwards.
9895 (linux_nat_iterate_watchpoint_lwps): New.
9896 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9897 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9898
2992c9a7 98992012-01-24 Joel Brobecker <brobecker@adacore.com>
9900
9901 GDB 7.4 released.
9902
e360902b
PA
99032012-01-23 Pedro Alves <palves@redhat.com>
9904
9905 * top.c (caution): Rename to ...
9906 (confirm): ... this.
9907 (show_caution): Rename to ...
9908 (show_confirm): ... this.
9909 (quit_cover): Adjust.
9910 (init_main): Adjust.
9911 * top.h (caution): Rename to ...
9912 (confirm): ... this.
9913 * utils.c (internal_vproblem, defaulted_query): Adjust.
9914
050a2e1d
PA
99152012-01-23 Pedro Alves <palves@redhat.com>
9916
9917 * top.c (caution): Update comment.
9918 (execute_command): Don't consider the current value of `caution'.
9919
77a35dd8
JK
99202012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9921
9922 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9923
a71b5a38
UW
99242012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9925
9926 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9927 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9928 * target.c (target_fileio_pwrite): Remove buffer address from
9929 debug output.
9930 (target_fileio_pread): Likewise.
9931
d99bd577
UW
99322012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9933
9934 * NEWS: Document remote "info proc" and "generate-core-file".
9935
35c2fab7
UW
99362012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9937
9938 * gdbarch.sh (find_memory_regions): New callback.
9939 * gdbarch.c, gdbarch.h: Regenerate.
9940
9941 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9942 callback before falling back to target method.
9943
9944 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9945 (linux_target_install_ops): No longer install it.
9946
9947 * linux-tdep.c (linux_find_memory_regions): New function.
9948 (linux_init_abi): Install it.
9949
6432734d
UW
99502012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9951
9952 * gdbarch.sh (make_corefile_notes): New architecture callback.
9953 * gdbarch.c: Regenerate.
9954 * gdbarch.h: Likewise.
9955
9956 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9957 before target_make_corefile_notes. If NULL is returned, the
9958 target does not support core file generation.
9959
9960 * linux-nat.c: Include "linux-tdep.h".
9961 (find_signalled_thread, find_stop_signal): Remove.
9962 (linux_nat_do_thread_registers): Likewise.
9963 (struct linux_nat_corefile_thread_data): Likewise.
9964 (linux_nat_corefile_thread_callback): Likewise.
9965 (iterate_over_spus): Likewise.
9966 (struct linux_spu_corefile_data): Likewise.
9967 (linux_spu_corefile_callback): Likewise.
9968 (linux_spu_make_corefile_notes): Likewise.
9969 (linux_nat_collect_thread_registers): New function.
9970 (linux_nat_make_corefile_notes): Replace contents by call to
9971 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9972 as native-only callback.
9973
9974 * linux-tdep.h: Include "bfd.h".
9975 (struct regcache): Add forward declaration.
9976 (linux_collect_thread_registers_ftype): New typedef.
9977 (linux_make_corefile_notes): Add prototype.
9978 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9979 "regset.h", and "elf-bfd.h".
9980 (find_signalled_thread, find_stop_signal): New functions.
9981 (linux_spu_make_corefile_notes): Likewise.
9982 (linux_collect_thread_registers): Likewise.
9983 (struct linux_corefile_thread_data): New data structure.
9984 (linux_corefile_thread_callback): New funcion.
9985 (linux_make_corefile_notes): Likewise.
9986 (linux_make_corefile_notes_1): Likewise.
9987 (linux_init_abi): Install it.
9988
3030c96e
UW
99892012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9990
9991 * gdbarch.sh (info_proc): New callback.
9992 * gdbarch.c, gdbarch.h: Regenerate.
9993
9994 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9995 before falling back to the target info_proc callback.
9996
9997 * linux-nat.c: Do not include "cli/cli-utils.h".
9998 (linux_nat_info_proc): Remove.
9999 (linux_target_install_ops): No longer install it.
10000
10001 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10002 (read_mapping): New function.
10003 (linux_info_proc): Likewise.
10004 (linux_init_abi): Install it.
10005
145b16a9
UW
100062012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10007
10008 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10009 * infcmd.c: (info_proc_cmd_1): New function.
10010 (info_proc_cmd): New function, moved here from equivalent routine
10011 orignally in linux-nat.c.
10012 (info_proc_cmd_mappings): Likewise.
10013 (info_proc_cmd_stat): Likewise.
10014 (info_proc_cmd_status): Likewise.
10015 (info_proc_cmd_cwd): Likewise.
10016 (info_proc_cmd_cmdline): Likewise.
10017 (info_proc_cmd_exe): Likewise.
10018 (info_proc_cmd_all): Likewise.
10019 (_initialize_infcmd): Install "info proc" command and subcommands.
10020
10021 * target.h (struct target_ops): Add to_info_proc.
10022 (target_info_proc): Add prototype.
10023 * target.c (target_info_proc): New function.
10024
10025 * procfs.c (procfs_info_proc): Add prototype.
10026 (info_proc_cmd): Rename into ...
10027 (procfs_info_proc): ... this. Update argument types as appropriate
10028 for a to_info_proc implementation. Handle "what" argument.
10029 (procfs_target): Install procfs_info_proc.
10030 (_initialize_procfs): No longer install "info proc" command.
10031
10032 * linux-nat.c: (enum info_proc_what): Remove.
10033 (linux_nat_info_proc_cmd_1): Rename into ...
10034 (linux_nat_info_proc): ... this. Update argument types as appropriate
10035 for a to_info_proc implementation.
10036 (linux_nat_info_proc_cmd): Remove.
10037 (linux_nat_info_proc_cmd_mappings): Likewise.
10038 (linux_nat_info_proc_cmd_stat): Likewise.
10039 (linux_nat_info_proc_cmd_status): Likewise.
10040 (linux_nat_info_proc_cmd_cwd): Likewise.
10041 (linux_nat_info_proc_cmd_cmdline): Likewise.
10042 (linux_nat_info_proc_cmd_exe): Likewise.
10043 (linux_nat_info_proc_cmd_all): Likewise.
10044 (linux_target_install_ops): Install linux_nat_info_proc.
10045 (_initialize_linux_nat): No longer install "info proc" command
10046 and subcommands.
10047
b9e7b9c3
UW
100482012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10049
10050 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10051 * config.in, configure: Regenerate.
10052
10053 * target.h (struct target_ops): Add to_fileio_readlink.
10054 (target_fileio_readlink): Add prototype.
10055 * target.c (target_fileio_readlink): New function.
10056
10057 * inf-child.c: Conditionally include <sys/param.h>.
10058 (inf_child_fileio_readlink): New function.
10059 (inf_child_target): Install it.
10060
10061 * remote.c (PACKET_vFile_readlink): New enum value.
10062 (remote_hostio_readlink): New function.
10063 (init_remote_ops): Install it.
10064 (_initialize_remote): Handle vFile:readlink packet type.
10065
7313baad
UW
100662012-01-20 Pedro Alves <palves@redhat.com>
10067 Ulrich Weigand <ulrich.weigand@linaro.org>
10068
10069 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10070 * config.in, configure: Regenerate.
10071
10072 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10073 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10074 (target_fileio_open): Add prototype.
10075 (target_fileio_pwrite): Likewise.
10076 (target_fileio_pread): Likewise.
10077 (target_fileio_close): Likewise.
10078 (target_fileio_unlink): Likewise.
10079 (target_fileio_read_alloc): Likewise.
10080 (target_fileio_read_stralloc): Likewise.
10081
10082 * target.c: Include "gdb/fileio.h".
10083 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10084 (default_fileio_target): New function.
10085 (target_fileio_open): Likewise.
10086 (target_fileio_pwrite): Likewise.
10087 (target_fileio_pread): Likewise.
10088 (target_fileio_close): Likewise.
10089 (target_fileio_unlink): Likewise.
10090 (target_fileio_close_cleanup): Likewise.
10091 (target_fileio_read_alloc_1): Likewise.
10092 (target_fileio_read_alloc): Likewise.
10093 (target_fileio_read_stralloc): Likewise.
10094
10095 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10096 <fcntl.h>, and <unistd.h>.
10097 (inf_child_fileio_open_flags_to_host): New function.
10098 (inf_child_errno_to_fileio_error): Likewise.
10099 (inf_child_fileio_open): Likewise.
10100 (inf_child_fileio_pwrite): Likewise.
10101 (inf_child_fileio_pread): Likewise.
10102 (inf_child_fileio_close): Likewise.
10103 (inf_child_fileio_unlink): Likewise.
10104 (inf_child_target): Install to_fileio routines.
10105
10106 * remote.c (init_remote_ops): Install to_fileio routines.
10107
901f9912
UW
101082012-01-20 Pedro Alves <palves@redhat.com>
10109 Ulrich Weigand <ulrich.weigand@linaro.org>
10110
10111 * remote.c (remote_multi_process_p): Only check for multi-process
10112 protocol feature, do not check for extended protocol.
10113 (remote_supports_multi_process): Check for extended protocol here.
10114 (set_general_process): Likewise.
10115 (extended_remote_kill): Likewise.
10116 (remote_pid_to_str): Likewise.
10117 (remote_query_supported): Always query multiprocess mode.
10118
e714e1bf
UW
101192012-01-20 Pedro Alves <palves@redhat.com>
10120 Ulrich Weigand <ulrich.weigand@linaro.org>
10121
10122 * inferior.h (struct inferior): Add fake_pid_p.
10123 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10124 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10125 magic_null_ptid since the remote side doesn't provide a real PID.
10126
50897289
TT
101272012-01-19 Tom Tromey <tromey@redhat.com>
10128
10129 * NEWS: Combine the two Python sections.
10130
1afc2033
JK
101312012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10132
10133 * target.h (target_close): Update comment on the target's unpush state.
10134
305436e0
PA
101352012-01-19 Pedro Alves <palves@redhat.com>
10136
10137 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10138 linux_nat_async directly instead of going through the target
10139 vector.
10140 * target.c (unpush_target): Close target after unpushing it, not
10141 before.
10142
49323895
GB
101432012-01-19 Gary Benson <gbenson@redhat.com>
10144
10145 * mdebugread.c (sort_blocks): Replace integer constants with ones
10146 derived from FIRST_LOCAL_BLOCK.
10147
1db33378
PP
101482012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10149 Jan Kratochvil <jan.kratochvil@redhat.com>
10150
10151 PR gdb/9538
10152 * symfile.c (find_separate_debug_file): New function.
10153 (terminate_after_last_dir_separator): Likewise.
10154 (find_separate_debug_file_by_debuglink): Also try realpath.
10155 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10156 * configure: Regenerate.
10157 * config.in: Regenerate.
10158
f83d8a90
DE
101592012-01-18 Doug Evans <dje@google.com>
10160
10161 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10162 (main.o): Remove rule.
10163 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10164 (--with-sysroot): Rewrite.
10165 * configure: Regenerate.
10166 * config.in: Regenerate.
10167
2dbca4d6
SDJ
101682012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10169
10170 * parse.c (initialize_expout): New function.
10171 (reallocate_expout): Likewise.
10172 (parse_exp_in_context): Use `initialize_expout' and
10173 `reallocate_expout' when appropriate.
10174
0695b514
PA
101752012-01-18 Pedro Alves <palves@redhat.com>
10176
10177 * record.c (struct record_breakpoint, record_breakpoint_p)
10178 (record_breakpoints): New.
10179 (record_insert_breakpoint, record_remove_breakpoint): Manage
10180 record breakpoints list. Only remove breakpoints from the
10181 inferior if they had been inserted there in the first place.
10182
136e1c30
DE
101832012-01-17 Doug Evans <dje@google.com>
10184
10185 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10186 if we know we don't have a file name to look for.
10187
c0bf857d
PA
101882012-01-17 Pedro Alves <palves@redhat.com>
10189
10190 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10191 the frame's stop reason is UNWIND_UNAVAILABLE.
10192
b486de60
JK
101932012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10194
10195 Fix compilation error.
10196 * m2-exp.y (yyerror): Use ANSI C prototype.
10197
d04550a6
SDJ
101982012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10199
10200 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10201 (growbuf_by_size): Likewise.
10202 (yyerror): Likewise.
10203 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10204 (modblock): Remove variable (was #if 0'ed).
10205 (parse_number): Convert prototype from K&R to ANSI C.
10206 (yyerror): Likewise.
10207 * objc-exp.y (parse_number): Likewise.
10208 (yyerror): Likewise.
10209 (yylex): Remove #if 0'ed code.
10210 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10211 (yyerror): Likewise.
10212
4aac40c8
TT
102132012-01-16 Tom Tromey <tromey@redhat.com>
10214
10215 * NEWS: Add item.
10216 * symtab.h (compare_filenames_for_search): Declare.
10217 * symtab.c (compare_filenames_for_search): New function.
10218 (iterate_over_some_symtabs): Use it.
10219 * symfile.h (struct quick_symbol_functions)
10220 <map_symtabs_matching_filename>: Change spec.
10221 * psymtab.c (partial_map_symtabs_matching_filename): Use
10222 compare_filenames_for_search. Update for new spec.
10223 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10224 compare_filenames_for_search. Update for new spec.
10225 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10226
cafec441
TT
102272012-01-16 Tom Tromey <tromey@redhat.com>
10228
10229 PR python/13281:
10230 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10231 (struct main_type) <flag_flag_enum>: New field.
10232 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10233 * NEWS: Add entries.
10234 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10235 enums.
10236 * python/lib/gdb/printing.py (_EnumInstance): New class.
10237 (FlagEnumerationPrinter): Likewise.
10238
983af33b
SDJ
102392012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10240
10241 * breakpoint.c (create_sals_from_address_default): New function.
10242 (create_breakpoints_sal_default): Likewise.
10243 (decode_linespec_default): Likewise.
10244 (is_marker_spec): Removed.
10245 (strace_marker_p): New function.
10246 (init_breakpoint_sal): Using `strace_marker_p' instead of
10247 `is_marker_spec'.
10248 (create_breakpoint): Call method `create_sals_from_address' from
10249 breakpoint_ops, replacing code that created SALs conditionally
10250 on the type of the breakpoint. Call method `create_breakpoints_sal',
10251 replacing code that created breakpoints conditionally on the type
10252 wanted.
10253 (base_breakpoint_create_sals_from_address): New function.
10254 (base_breakpoint_create_breakpoints_sal): Likewise.
10255 (base_breakpoint_decode_linespec): Likewise.
10256 (base_breakpoint_ops): Add methods
10257 `base_breakpoint_create_sals_from_address',
10258 `base_breakpoint_create_breakpoints_sal' and
10259 `base_breakpoint_decode_linespec'.
10260 (bkpt_create_sals_from_address): New function.
10261 (bkpt_create_breakpoints_sal): Likewise.
10262 (bkpt_decode_linespec): Likewise.
10263 (tracepoint_create_sals_from_address): Likewise.
10264 (tracepoint_create_breakpoints_sal): Likewise.
10265 (tracepoint_decode_linespec): Likewise.
10266 (strace_marker_create_sals_from_address): Likewise.
10267 (strace_marker_create_breakpoints_sal): Likewise.
10268 (strace_marker_decode_linespec): Likewise.
10269 (strace_marker_breakpoint_ops): New variable.
10270 (addr_string_to_sals): Remove `marker_spec'. Call method
10271 `decode_linespec' from breakpoint_ops, replacing code that decoded
10272 an address string into a SAL. Use `strace_marker_p' instead of
10273 `marker_spec'.
10274 (strace_command): Decide whether we are dealing with a static
10275 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10276 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10277 * breakpoint.h (linespec_result, linespec_sals): New forward
10278 declarations.
10279 (breakpoint_ops) <create_sals_from_address>,
10280 <create_breakpoints_sal>, <decode_linespec>: New methods.
10281
4795f398
DE
102822012-01-14 Doug Evans <dje@google.com>
10283
10284 * NEWS: Update text for "maint set python print-stack".
10285 It is deprecated in gdb 7.4 and deleted in 7.5.
10286
ee5106fe
EZ
102872012-01-13 Eli Zaretskii <eliz@gnu.org>
10288
10289 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10290 including curses.h.
10291
b161e06f
JK
102922012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10293
10294 * configure: Regenerate.
10295 * config.in: Regenerate.
10296
85254831
KS
102972012-01-12 Keith Seitz <keiths@redhat.com>
10298
10299 PR mi/10586
10300 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10301 (ANONYMOUS_UNION_NAME): Define.
10302 (is_path_expr_parent): New function.
10303 (get_path_expr_parent): New function.
10304 (is_anonymous_child): New function.
10305 (create_child_with_value): If the child is anonymous and without
10306 a name, assign an object name to it.
10307 (c_describe_child): Use get_path_expr_parent to determine
10308 the parent expression.
10309 If there field represents an anonymous struct or union and
10310 has no name, set an appropriate display name and expression.
10311 (cplus_describe_child): Likewise.
10312
620fa63a
PA
103132012-01-12 Pedro Alves <palves@redhat.com>
10314
10315 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10316 available when %ebp is found to be zero (outermost).
10317
2efa2c79
AT
103182012-01-11 Andreas Tobler <andreast@fgznet.ch>
10319
10320 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10321 an internal gdb_static_assert.
10322 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10323
88e7d25d
TT
103242012-01-11 Tom Tromey <tromey@redhat.com>
10325
10326 PR gdb/9598:
10327 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10328 catch" and "catch throw".
10329
72384ba3
PH
103302012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10331
10332 * blockframe.c (block_innermost_frame): Start search from selected
10333 frame, if present, or otherwise the current frame.
10334
10335 * c-exp.y (variable): Update innermost_block for
10336 'block COLONCOLON NAME' clause.
10337 * m2-exp.y (variable): Ditto.
10338 * objc-exp.y (variable): Ditto.
10339
065a711f
TT
103402012-01-10 Tom Tromey <tromey@redhat.com>
10341
10342 PR python/13199:
10343 * python/python.c (finish_python_initialization): Set sys.argv.
10344
f3f5162e
DE
103452012-01-10 Doug Evans <dje@google.com>
10346
10347 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10348 "want_line_info". All callers updated.
10349 (dwarf_decode_lines_1): New function.
10350 (handle_DW_AT_stmt_list): Add function comment.
10351 New arg "want_line_info". All callers updated.
10352 (read_file_scope,read_type_unit_scope): Move comment from
10353 handle_DW_AT_stmt_list to here.
10354
9934703b
JK
103552012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10356
10357 Fix regression after libiberty/ update for GCC PR 6057 and others.
10358 * c-exp.y (operator) <OPERATOR DELETE>
10359 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10360 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10361 (make_builtin_type, make_name): New variable i, add gdb_assert.
10362 (operator) <OPERATOR NEW>: Update ARGS to 3.
10363 (operator) <OPERATOR DELETE>: Add trailing space.
10364 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10365 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10366 * cp-support.c (cp_canonicalize_string): Check NULL from
10367 cp_comp_to_string, call warning and return.
10368
06b9f45f
JK
103692012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10370
10371 Fix duplicate .o files after omitting libbfd.a.
10372 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10373 (SFILES): Add corelow.c.
10374 (COMMON_OBS): Add corelow.o.
10375 (ALLDEPFILES): Remove corelow.c.
10376 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10377 * config/alpha/alpha-osf3.mh: Likewise.
10378 * config/alpha/fbsd.mh: Likewise.
10379 * config/arm/nbsdaout.mh: Likewise.
10380 * config/arm/nbsdelf.mh: Likewise.
10381 * config/i386/i386gnu.mh: Likewise.
10382 * config/ia64/hpux.mh: Likewise.
10383 * config/ia64/linux.mh: Likewise.
10384 * config/m32r/linux.mh: Likewise.
10385 * config/m68k/linux.mh: Likewise.
10386 * config/mips/irix5.mh: Likewise.
10387 * config/mips/irix6.mh: Likewise.
10388 * config/pa/hpux.mh: Likewise.
10389 * config/pa/linux.mh: Likewise.
10390 * config/powerpc/aix.mh: Likewise.
10391 * config/sparc/linux.mh: Likewise.
10392 * config/sparc/linux64.mh: Likewise.
10393 * config/sparc/sol2.mh: Likewise.
10394 * config/vax/vax.mh: Likewise.
10395 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10396 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10397 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10398 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10399 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10400 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10401 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10402 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10403 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10404 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10405 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10406 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10407 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10408 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10409 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10410 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10411 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10412 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10413 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10414 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10415 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10416 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10417 corelow.o from gdb_target_obs.
10418 * corefile.c (core_target): Update the comment on NULL value.
10419 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10420 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10421 MATCHES. Drop YUMMY set on NULL.
10422 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10423 reclaim CORE_DATA if it is already NULL.
10424
34365054
DE
104252012-01-09 Doug Evans <dje@google.com>
10426
10427 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10428 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10429
696166a3
KS
104302012-01-09 Keith Seitz <keiths@redhat.com>
10431
10432 * breakpoint.c (wrapper.h): Don't include.
10433
8e7b59a5
KS
104342012-01-09 Keith Seitz <keiths@redhat.com>
10435
10436 * Makefile.in (SFILES): Remove wrapper.c.
10437 (HFILES_NO_SRCDIR): Remove wrapper.h.
10438 (COMMON_OBS): Remove wrapper.o.
10439 * cli/cli-interp.c: Don't inlude wrapper.h.
10440 * corelow.c: Likewise.
10441 (core_open): Replace gdb_target_find_new_threads with
10442 TRY_CATCH around target_find_new_threads.
10443 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10444 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10445 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10446 evaluate_expression.
10447 (varobj_set_value): Likewise for evaluate_expression and
10448 value_assign.
10449 (install_new_variable): Likewise for value_fetch_lazy.
10450 (adjust_value_for_child_access): Likewise for value_ind.
10451 (c_describe_child): Likewise for value_subscript and
10452 value_ind.
10453 (c_value_of_root): Likewise for evaluate_expression.
10454 * wrapper.c: Remove.
10455 * wrapper.h: Remove.
10456
1a4eeb98
DE
104572012-01-09 Doug Evans <dje@google.com>
10458
9ff913ba
DE
10459 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10460 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10461 "abfd" args with "section". All callers updated.
10462 Error checking code moved ...
10463 (error_check_comp_unit_head): ... here. New function.
10464 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10465 Delete arg "abfd". New arg "type_offset". All callers updated.
10466 (create_debug_types_hash_table): Simplify by using
10467 read_and_check_type_unit_head.
10468
1a4eeb98
DE
10469 * parser-defs.h (namecopy): Delete.
10470 * parse.c (namecopy, namecopy_size): Move into copy_name.
10471
2e6af8c0
JK
104722012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10473
10474 Partially fix duplicate .o files after omitting libbfd.a.
10475 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10476 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10477 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10478 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10479 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10480 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10481 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10482
9f2f828a
PA
104832012-01-09 Pedro Alves <palves@redhat.com>
10484
10485 * MAINTAINERS: Update my email address.
10486
4d72c0bc
DE
104872012-01-08 Doug Evans <dje@google.com>
10488
d467dd73
DE
10489 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10490 n_type_units. Rename type_comp_units to all_type_units.
10491 All uses updated.
10492 (add_signatured_type_cu_to_table): Renamed from
10493 add_signatured_type_cu_to_list. All callers updated.
10494
4d72c0bc
DE
10495 * gdbtypes.h (struct cplus_struct_type): Delete member
10496 nfn_fields_total. All uses removed.
10497
21b2bd31
DE
104982012-01-06 Doug Evans <dje@google.com>
10499
10500 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10501 to top of file.
10502 (dwarf2_find_comp_unit): Delete.
10503 (process_psymtab_comp_unit): Make result "void".
10504 Delete args buffer, info_ptr, buffer_size, and replace with
10505 "section". All callers updated.
10506 (dwarf2_build_psymtabs_hard): Simplify.
10507
bfd189b1
SDJ
105082012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10509 Thiago Jung Bauermann <bauerman@br.ibm.com>
10510
10511 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10512 before `struct gdb_exception'.
10513 * breakpoint.c (update_global_location_list_nothrow)
10514 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10515 * cp-abi.c (value_rtti_type): Likewise.
10516 * cp-support.c (cp_validate_operator): Likewise.
10517 * infrun.c (insert_exception_resume_breakpoint)
10518 (check_exception_resume, keep_going): Likewise.
10519 * mi-interp.c (mi_breakpoint_created)
10520 (mi_breakpoint_modified): Likewise.
10521 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10522 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10523 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10524
6b07635f
DE
105252012-01-05 Doug Evans <dje@google.com>
10526
0b30b85c
DE
10527 * dwarf2read.c (statement_prologue): Delete, unused.
10528
98714339
DE
10529 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10530 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10531
6b07635f
DE
10532 * dwarf2read.c (comp_unit_header): Delete, unused.
10533
761f4555
UW
105342012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10535
10536 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10537 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10538
2ca0b532
PA
105392012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10540
10541 * infrun.c (normal_stop): Don't skip calling the normal_stop
10542 observers if the thread was doing a multi-step, but stopped for
10543 some reason other than stepping.
10544
50aeff07
PA
105452012-01-05 Pedro Alves <alves.ped@gmail.com>
10546
10547 * cli/cli-decode.h: Add comments.
10548 (CMD_LIST_AMBIGUOUS): Moved to command.h
10549 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10550 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10551 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10552 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10553 (add_com, add_com_alias, add_info, add_info_alias)
10554 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10555 declarations.
10556 * command.h: Add and adjust comments.
10557 (CMD_LIST_AMBIGUOUS): Moved here.
10558 (help_cmd, help_cmd_list): Delete declarations.
10559
5953832c
DE
105602012-01-04 Doug Evans <dje@google.com>
10561
e5fe5e75
DE
10562 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10563 All callers updated.
10564 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10565 Replace all arguments with "per_cu". All callers updated.
10566
28dee7f5
DE
10567 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10568
23745b47
DE
10569 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10570 New arg "per_cu". All callers updated.
10571
5953832c
DE
10572 Delete #if 0'd out code.
10573 * language.c (binop_result_type): Delete.
10574 (simple_type, ordered_type, same_type, integral_type): Delete.
10575 (numeric_type, character_type, string_type, boolean_type): Delete.
10576 (float_type, structured_type): Delete.
10577 * language.h: Update.
10578
0f5b7562
TT
105792012-01-04 Tom Tromey <tromey@redhat.com>
10580
10581 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10582
78218f56
JB
105832012-01-04 Joel Brobecker <brobecker@adacore.com>
10584
10585 * corefile.c (close_exec_file): Delete.
10586 (reopen_exec_file): Remove commented out code that seems related
10587 to close_exec_file, which is being deleted here.
10588 * inferior.h (close_exec_file): Delete.
10589 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10590
0fcd72ba
JB
105912012-01-04 Joel Brobecker <brobecker@adacore.com>
10592
10593 * ada-lang.c: #include "cli/cli-utils.h".
10594 (get_selections): Use skip_spaces.
10595 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10596 (catch_ada_exception_command_split): Use skip_spaces.
10597 (ada_decode_assert_location): Likewise.
10598
1dabb4c4
JB
105992012-01-04 Joel Brobecker <brobecker@adacore.com>
10600
10601 * linespec.c (decode_line_internal): Check for C++ or Java
10602 compound constructs only if the current language is C, C++
10603 or Java.
10604
5931a2fa
JK
106052012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10606
10607 Revert:
10608 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10609 Joel Brobecker <brobecker@adacore.com>
10610 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10611 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10612 3 times.
10613 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10614 fall through into AT_ENTRY_POINT.
10615 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10616 DUMMY_ADDR with it.
10617 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10618 PPC_INSN_SIZE skip to 3 times.
10619
1a2da5ee
JB
106202012-01-04 Joel Brobecker <brobecker@adacore.com>
10621
10622 * linespec.c (add_minsym): Preserve function descriptors.
10623
8645ff69
UW
106242012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10625
10626 * breakpoint.c (all_locations_are_pending): Consider locations
10627 in program spaces executing during startup pending as well.
10628
0b302171
JB
106292012-01-04 Joel Brobecker <brobecker@adacore.com>
10630
10631 Copyright year update in most files of the GDB Project.
10632
8ba098ad
JB
106332012-01-04 Joel Brobecker <brobecker@adacore.com>
10634
10635 * copyright.sh: Delete.
10636 * copyright.py: Rewrite.
10637
09c01c30
JB
106382012-01-04 Joel Brobecker <brobecker@adacore.com>
10639
10640 * gnulib/extra/update-copyright: New file, imported from gnulib.
10641
3c36c0af
JB
106422012-01-04 Joel Brobecker <brobecker@adacore.com>
10643
10644 * README (Copyright and License Notices): New section.
10645
888fe1e1
TT
106462012-01-03 Tom Tromey <tromey@redhat.com>
10647
10648 PR python/12533:
10649 * python/py-value.c (valpy_dereference, valpy_get_address
10650 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10651 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10652 (valpy_absolute, valpy_richcompare): Free intermediate values.
10653
6e681866
JB
106542011-01-03 Joel Brobecker <brobecker@adacore.com>
10655
10656 * ada-lang.c: Reformat the copyright notice.
10657
0cd09acb
JK
106582012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10661 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10662 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10663 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10664 Revert this part of:
10665 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10666 Build gdb directly from *.o files not using libgdb.a.
10667 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10668
12c3e59c
JB
106692012-01-02 Joel Brobecker <brobecker@adacore.com>
10670
10671 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10672 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10673 Reformat the copyright header.
10674
11bf1490
JK
106752012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10676
10677 Revert this part of:
10678 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10679 Remove the gdbtui binary.
10680 * gdb.c (main): Remove args.interpreter_p initialization.
10681 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10682 * main.h (struct captured_main_args): Remove interpreter_p.
10683
1fef196f
JB
106842012-01-02 Joel Brobecker <brobecker@adacore.com>
10685
10686 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10687
67827812
JB
106882012-01-02 Joel Brobecker <brobecker@adacore.com>
10689
10690 * top.c (print_gdb_version): Update copyright year.
10691
a4d0b831
YQ
106922012-01-02 Yao Qi <yao@codesourcery.com>
10693
10694 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10695
b5914469
JK
106962012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10697 Joel Brobecker <brobecker@adacore.com>
10698
10699 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10700 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10701 3 times.
10702 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10703 fall through into AT_ENTRY_POINT.
10704 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10705 DUMMY_ADDR with it.
10706 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10707 PPC_INSN_SIZE skip to 3 times.
10708
8da828f7
JK
107092012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10710
10711 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10712 the return value.
10713 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10714
8574e74b
JK
107152012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10716
10717 Build gdb directly from *.o files not using libgdb.a.
10718 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10719 (COMMON_OBS): Remove solib-target.o.
10720 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10721 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10722 (LIBGDB_OBS, libgdb.a): Move it above.
10723 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10724 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10725 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10726 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10727 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10728 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10729 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10730 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10731 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10732 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10733 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10734 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10735 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10736 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10737 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10738 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10739 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10740 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10741 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10742 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10743 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10744 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10745 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10746 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10747 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10748 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10749 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10750
217bff3e
JK
107512012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10752
10753 Remove the gdbtui binary.
10754 * .gitignore (/gdbtui): Remove.
10755 * Makefile.in (TUI): Remove.
10756 (SUBDIR_TUI_OBS): Remove tui-main.o.
10757 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10758 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10759 (tui-main.o): Remove.
10760 (all_object_files): Remove tui-main.o.
10761 * NEWS: New note for the gdbtui removal.
10762 * configure: Rebuilt.
10763 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10764 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10765 CONFIG_UNINSTALL respectively.
10766 * gdb.c (main): Remove args.interpreter_p initialization.
10767 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10768 * main.h (struct captured_main_args): Remove interpreter_p.
10769 * tui/tui-main.c: Remove.
10770
9cdd5dbd
DE
107712012-01-01 Doug Evans <dje@google.com>
10772
bb5ed363
DE
10773 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10774 (dwarf2_physname, read_import_statement): Ditto.
10775 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10776 (process_structure_scope read_subroutine_type): Ditto.
10777 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10778 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10779 (dwarf2_fetch_die_location_block): Ditto.
10780 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10781
a0f42c21
DE
10782 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10783 All callers updated.
10784 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10785 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10786 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10787
2dc860c0
DE
10788 * dwarf2read.c (load_cu): Move assert to more useful location.
10789
68dc6402
DE
10790 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10791 All callers updated.
10792
9cdd5dbd
DE
10793 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10794 (dwarf2_elf_names): Minor reformat.
10795 (dwarf2_per_cu_data): Tweak comment.
10796 (dwarf2_read_section): Fix comment.
10797 (create_all_comp_units): Fix comment.
10798 (load_full_comp_unit): Fix comment.
10799 (process_full_comp_unit): Fix comment.
10800 (read_signatured_type): Fix comment.
10801
0c10e53e 10802For older changes see ChangeLog-2011.
c906108c
SS
10803\f
10804Local Variables:
10805mode: change-log
10806left-margin: 8
10807fill-column: 74
10808version-control: never
57da7796 10809coding: utf-8
c906108c 10810End:
This page took 1.893798 seconds and 4 git commands to generate.