* lib/gdb.exp (gdb_unload): Change wording of perror text to be
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8f0ee2eb
JB
12012-10-02 Joel Brobecker <brobecker@adacore.com>
2
3 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
4 unref'ed it.
5
b3dc46ff
AB
62012-10-01 Andrew Burgess <aburgess@broadcom.com>
7
8 * target.c (simple_search_memory): Include access length in
9 warning message.
10
f712f01f
EBM
112012-09-28 Nathan Miller <nathanm2@us.ibm.com>
12 Edjunior Machado <emachado@linux.vnet.ibm.com>
13
14 PR gdb/13989
15 * solib.c (solib_find): Prevent GDB from loading native libraries when
16 debugging a cross-target corefile.
17
39181896
PA
182012-09-28 selven <pcthegreat@gmail.com>
19
20 Make definition match declaration.
21
22 * regcache.c (regcache_register_status): Change return type to
23 enum register_status.
24
4c2786ba
YQ
252012-09-28 Yao Qi <yao@codesourcery.com>
26
27 * mi/mi-main.c (mi_cmd_data_write_memory): Call
28 write_memory_with_notification instead of write_memory.
29 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
30 instead of target_write_memory.
31
1ae0c35e
YQ
322012-09-28 Yao Qi <yao@codesourcery.com>
33
34 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
35 when the length of content is not an even number.
36
7977e5d2
TT
372012-09-27 Tom Tromey <tromey@redhat.com>
38
39 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
40 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
41
807160da
JB
422012-09-27 Joel Brobecker <brobecker@adacore.com>
43
44 * sol-thread.c (sol_thread_fetch_registers)
45 (sol_thread_store_registers): Delete commented out code.
46
43c75337
JB
472012-09-27 Joel Brobecker <brobecker@adacore.com>
48
49 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
50 Move these functions to sparc-sol-thread.c.
51 * sparc-sol-thread.c: New file.
52 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
53 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
54 configurations.
55 * configure: Regenerate.
56
d292a972
JB
572012-09-27 Joel Brobecker <brobecker@adacore.com>
58
59 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
60 Remove commented-out code.
61
8c3da003
JB
622012-09-27 Joel Brobecker <brobecker@adacore.com>
63
64 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
65 Enable this code for sparc hosts only.
66
f00482b6
JB
672012-09-27 Joel Brobecker <brobecker@adacore.com>
68
69 * procfs.h (procfs_find_LDT_entry): Add declaration.
70 * sol-thread.c (ps_lgetLDT): Delete local declaration of
71 function procfs_find_LDT_entry.
72
337c776f
JB
732012-09-27 Joel Brobecker <brobecker@adacore.com>
74
75 * procfs.c (proc_get_LDT_entry): Make static.
76
1a04d88f
JB
772012-09-27 Joel Brobecker <brobecker@adacore.com>
78
79 * procfs.c (proc_find_memory_regions): Fix declaration.
80
bad43aa5
SP
812012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
82
83 * amd64-tdep.c (amd64_return_value): Revert previous change
84 that used TYPE_LENGTH directly.
85 * bfin-tdep.c (bfin_extract_return_value): Likewise.
86 (bfin_store_return_value): Likewise.
87 * cris-tdep.c (cris_store_return_value): Likewise.
88 (cris_extract_return_value): Likewise.
89 * h8300-tdep.c (h8300_extract_return_value): Likewise.
90 * hppa-tdep.c (hppa64_return_value): Likewise.
91 * lm32-tdep.c (lm32_store_return_value): Likewise.
92 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
93 * spu-tdep.c (spu_value_from_register): Likewise.
94 * vax-tdep.c (vax_return_value): Likewise.
95
63375b74
SP
962012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
97
98 * gdbtypes.c (lookup_array_range_type): Expand parameters
99 LOW_BOUND and HIGH_BOUND to LONGEST.
100 (lookup_string_range_type): Likewise.
101 * gdbtypes.h (lookup_array_range_type): Likewise.
102 (lookup_string_range_type): Likewise.
103 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
104 Expand HIGHBOUND to ssize_t.
105 (value_string): Likewise.
106 * value.h (value_cstring): Expand parameter LEN to ssize_t.
107 (value_string): Likewise.
108
19ca11c5
YQ
1092012-09-27 Yao Qi <yao@codesourcery.com>
110
111 PR breakpoints/13898
112 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
113 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
114 per breakpoint type.
115
92107356
PM
1162012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
117
118 * procfs.c: Add gdb_bfd header.
119 * rs6000-nat.c: Likewise.
120 * solib-pa64.c: Likewise.
121 * spu-linux-nat.c: Likewise.
122 * windows-nat.c: Likewise.
123
9742094a
TT
1242012-09-26 Tom Tromey <tromey@redhat.com>
125
126 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
127
0971de02
TT
1282012-09-26 Tom Tromey <tromey@redhat.com>
129
130 * dwarf2read.c (mark_common_block_symbol_computed): New function.
131 (read_common_block): Handle child DIEs with
132 DW_AT_data_member_location.
133 (new_symbol_full): Add special case for common blocks.
134
4357ac6c
TT
1352012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
136 Tom Tromey <tromey@redhat.com>
137
138 * dwarf2read.c (read_common_block): Rewrite.
139 (new_symbol_full): Handle DW_TAG_common_block.
140 * f-lang.c (head_common_list, find_common_for_function):
141 Remove.
142 * f-lang.h (struct common_entry, struct saved_f77_common,
143 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
144 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
145 BLANK_COMMON_NAME_LOCAL): Remove.
146 (struct common_block): New.
147 * f-valprint.c (list_all_visible_commons): Remove.
148 (info_common_command_for_block): New function.
149 (info_common_command): Use it.
150 * stack.c (iterate_over_block_locals): Special case for
151 COMMON_BLOCK_DOMAIN.
152 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
153 constant.
154 (struct general_symbol_info) <value.common_block>: New field.
155 (SYMBOL_VALUE_COMMON_BLOCK): New define.
156
965f07a8
TT
1572012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
158 Tom Tromey <tromey@redhat.com>
159
160 * f-lang.c (allocate_saved_bf_node,
161 allocate_saved_function_node, allocate_saved_f77_common_node,
162 allocate_common_entry_node, tail_common_list, current_common,
163 saved_bf_list, saved_bf_list_end, current_head_bf_list,
164 tmp_bf_ptr, add_common_block, add_common_entry,
165 find_first_common_named, patch_common_entries,
166 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
167 global_remote_debug, get_bf_for_fcn, saved_function_list,
168 saved_function_list_end, clear_function_list, struct saved_fcn,
169 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
170 SAVED_BF, SAVED_BF_PTR): Remove.
171 * f-lang.h (tail_common_list, current_common,
172 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
173 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
174 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
175 real_main_c_value): Remove.
176 * f-valprint.c (there_is_a_visible_common_named): Remove.
177
6f380991
AB
1782012-09-26 Andrew Burgess <aburgess@broadcom.com>
179
180 * breakpoint.c (update_global_location_list): Ignore previous
181 duplicate status of a breakpoint when starting a new scan for
182 duplicate breakpoints.
183
9ead7ae4 1842012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 185 PR breakpoints/14419
2536b51c
YQ
186 * arm-tdep.c (arm_skip_prologue): Extending producer check to
187 support LLVM compiler.
9ead7ae4 188
8f8a23a2
SP
1892012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
190
191 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
192 * bfin-tdep.c (bfin_extract_return_value): Likewise.
193 (bfin_store_return_value): Likewise.
194 * cris-tdep.c (cris_store_return_value): Likewise.
195 (cris_extract_return_value): Likewise.
196 * h8300-tdep.c (h8300_extract_return_value): Likewise.
197 * hppa-tdep.c (hppa64_return_value): Likewise.
198 * lm32-tdep.c (lm32_store_return_value): Likewise.
199 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
200 * spu-tdep.c (spu_value_from_register): Likewise.
201 * vax-tdep.c (vax_return_value): Likewise.
202
d7019589
SP
2032012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
204
205 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
206 parameter LEN to ssize_t.
207
744a8059
SP
2082012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
209
210 * ada-valprint.c (ada_val_print_1): Eliminate single-use
211 variable LEN.
212 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
213 directly.
214 (alpha_store_return_value): Likewise.
215 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
216 (amd64_push_arguments): Likewise.
217 * ax-gdb.c (gen_trace_static_fields): Likewise.
218 (gen_traced_pop): Likewise.
219 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
220 * breakpoint.c (update_watchpoint): Likewise.
221 * findcmd.c (parse_find_args): Use local variable for type
222 instead of length.
223 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
224 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
225 (h8300_store_return_value): Likewise.
226 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
227 Use i386_darwin_arg_type_alignment directly.
228 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
229 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
230 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
231 (m68hc11_extract_return_value): Likewise.
232 * mep-tdep.c (mep_push_dummy_call): Likewise.
233 * printcmd.c (float_type_from_length): Likewise.
234 * s390-tdep.c (s390_value_from_register): Likewise.
235 * stack.c (read_frame_arg): Likewise.
236 * tracepoint.c (encode_actions_1): Likewise.
237 * valops.c (value_fetch_lazy): Use local variable for type
238 instead of length. Use TYPE_LENGTH directly.
239 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
240
a4b411d6
JB
2412012-09-25 Joel Brobecker <brobecker@adacore.com>
242
243 * symtab.c (skip_prologue_sal): Fix typo in comment.
244
11dba07a
JB
2452012-09-25 Joel Brobecker <brobecker@adacore.com>
246
247 * linespec.c (create_sals_line_offset): Fix typo in comment.
248
318102b9
SP
2492012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
250
251 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
252 use plongest to print the array size.
253
b4aa388a
SP
2542012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
255
256 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
257 * p-valprint.c (pascal_type_print_base): Likewise.
258
84cebc4a
YQ
2592012-09-22 Yao Qi <yao@codesourcery.com>
260
261 * remote.c (remote_get_trace_status): Remove setting default
262 values of fields of 'ts'.
263
04e7407c
JK
2642012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
265
266 Fix internal error on canonicalization of clang types.
267 * cp-name-parser.y (operator): New comment at make_operator call for
268 new, delete, new[] and delete[].
269 (exp): Use "sizeof ". Add new comment at make_operator call.
270
9bf4bce9
JK
2712012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
272
273 Fix disassemble without parameters in tailcall frame.
274 * cli/cli-cmds.c (disassemble_current_function): Use
275 get_frame_address_in_block.
276
1c5b7826
TT
2772012-09-21 Tom Tromey <tromey@redhat.com>
278
279 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
280 TYPE_CODE_UNION>: Unify, removing a goto.
281
62a49610
TT
2822012-09-21 Tom Tromey <tromey@redhat.com>
283
284 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
285
2603f7ee
AB
2862012-09-21 Andrew Burgess <aburgess@broadcom.com>
287
288 * findvar.c (read_frame_register_value): Mark the result value as
289 optimized out if any of the input registers have been optimized out.
290
810849a3
AS
2912012-09-21 Andreas Schwab <schwab@linux-m68k.org>
292
293 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
294
0953dec1
SP
2952012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
296
297 * eval.c (evaluate_subexp_standard): Eliminate single-use
298 variable LOWER.
299
82a90ccf
YQ
3002012-09-21 Yao Qi <yao@codesourcery.com>
301
302 * mi/mi-interp.c: Declare mi_record_changed.
303 (mi_interpreter_init): Call observer_attach_record_changed.
304 (mi_record_changed): New.
305 * record.c (record_open): Call observer_notify_record_changed.
306 (cmd_record_stop): Call observer_notify_record_changed.
307 * NEWS: Mention it.
308
d7de8e3c
TT
3092012-09-20 Tom Tromey <tromey@redhat.com>
310
311 * NEWS: Update.
312 * python/python.c (finalize_python): New function.
313 (_initialize_python): Make a final cleanup.
314
43c7c83d
DE
3152012-09-19 Doug Evans <dje@google.com>
316
317 * buildsym.h (param_symbols): Delete, unused.
318 (context_stack): Delete member "params", unused.
319 * buildsym.c (push_context): Update.
320 * dwarf2read.c (read_func_scope): Update.
321
aa9259cc
TS
3222012-09-19 Thomas Schwinge <thomas@codesourcery.com>
323
a6521d9a
TS
324 * sh-tdep.c (sh_register_convert_to_virtual)
325 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
326 all callers. Just do a memcpy if not the little-endian case.
327
f92589cb
TS
328 * h8300-tdep.c (h8300_gdbarch_init): Invoke
329 set_gdbarch_double_format and set_gdbarch_long_double_format.
330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
331 set_gdbarch_double_format.
332 * sh-tdep.c (sh_gdbarch_init): Likewise.
333
aa9259cc
TS
334 * NEWS: Document the removal of SH's 'regs' command.
335 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
336 command.
337
c1d780c2
SDJ
3382012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
339
340 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
341 `jump'.
342
4ae24af0
JB
3432012-09-18 Joel Brobecker <brobecker@adacore.com>
344
345 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
346 language when iterating over symbols.
347
bb25a15c
YQ
3482012-09-18 Yao Qi <yao@codesourcery.com>
349
350 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
351 (mi_interpreter_init): Call observer_attach_tsv_created and
352 observer_attach_tsv_deleted.
353 (mi_tsv_created, mi_tsv_deleted): New.
354 * tracepoint.c (delete_trace_state_variable): Call
355 observer_notify_tsv_deleted.
356 (trace_variable_command): Call observer_notify_tsv_created.
357 (delete_trace_variable_command): Call
358 observer_notify_tsv_deleted.
359 (create_tsv_from_upload): Call observer_notify_tsv_created.
360 * NEWS: Mention it.
361
201b4506
YQ
3622012-09-18 Yao Qi <yao@codesourcery.com>
363
364 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
365 if traceframe changed.
366 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
367 "trace-find".
368 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
369 (mi_interpreter_init): Hook mi_traceframe_changed to observer
370 'traceframe_changed'.
371 (mi_traceframe_changed): New.
372 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
373 New field.
374 * NEWS: Mention the new MI notification.
375
eaeb12db
MW
3762012-09-17 Mike Wrighton <wrighton@codesourcery.com>
377
378 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
379
6e3c039e
JK
3802012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
381
382 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
383 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
384 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
385 Extend code also for PaX support. Convert all gdb_assert to warning
386 calls.
387
9a950c7c
JK
3882012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
389
390 Implement auto-load user conveniences suggested by Doug Evans.
391 * auto-load.c: Include top.h.
392 (file_is_auto_load_safe): New variable advice_printed. Print advice.
393 (_initialize_auto_load): New variable scripts_directory_help. Mention
394 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
395 scripts-directory. Document in online help one can use also files for
396 set auto-load safe-path.
397 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
398 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
399
deec9a9d
SP
4002012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
401
402 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
403 of LEN.
404
354ecfd5
SP
4052012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
406
407 * m2-valprint.c (m2_print_array_contents): Eliminate variable
408 ELTLEN and use TYPE_LENGTH directly.
409 (m2_val_print): Likewise.
410 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
411 variable LEN and use TYPE_LENGTH directly.
412 (m68k_svr4_store_return_value): Likewise.
413 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
414 ARGLEN and use TYPE_LENGTH directly.
415 (mips_o64_push_dummy_call): Likewise.
416 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
417 variable LENGTH and use TYPE_LENGTH directly.
418 (s390_function_arg_float): Likewise.
419 (s390_function_arg_integer): Likewise.
420 (s390_push_dummy_call): Likewise.
421 (s390_return_value_convention): Likewise.
422 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
423 TYPE_LENGTH directly.
424
6fc1c773
YQ
4252012-09-17 Yao Qi <yao@codesourcery.com>
426
427 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
428 Update comment to add_setshow_integer_cmd.
429 * cli/cli-setshow.c (do_set_command): Handle case
430 'var_zuinteger_unlimited'.
431 (do_show_command): Likewise.
432 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
433 for command 'remotetimeout'.
434 * command.h (enum var_types): New zuinteger_unlimited. Update comment
435 to var_integer.
436 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
437 for command 'set listsize'.
438
6acef6cd
SP
4392012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
440
441 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
442 variable LEN.
443
1ab3b62c
JK
4442012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
445
446 PR 14119
447 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
448 (frame_pop): Drop also TAILCALL_FRAME frames.
449 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
450
acf9414f
JK
4512012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
452 Pedro Alves <palves@redhat.com>
453
454 PR 14548
455 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
456 function start if we are already at function start. Both for
457 reverse-next and for reverse-step into function without line number
458 info.
459
193facb3
JK
4602012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
461
462 Code cleanup - rename 'inline' depth to 'artificial' depth.
463 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
464 frame_id_artificial_p, extend the comment.
465 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
466 * frame.c (fprint_frame_id): Rename at a user, change debug output
467 text to "artificial=".
468 (skip_inlined_frames): Rename to ...
469 (skip_artificial_frames): ... here. Extend the comment.
470 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
471 (frame_id_inlined_p): Rename to ...
472 (frame_id_artificial_p): ... here. Rename at a user.
473 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
474 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
475 at a user.
476 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
477 Extend the comment.
478 (frame_id_inlined_p): Rename to ...
479 (frame_id_artificial_p): ... here.
480 * inline-frame.c (inline_frame_this_id): Rename at a user.
481
42056501
AB
4822012-09-14 Andrew Burgess <aburgess@broadcom.com>
483
484 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
485 vector variables using vector_size syntax rather than array
486 syntax.
487
84c47588
SP
4882012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
489
490 * valarith.c (value_concat): Replace unsafe ALLOCA with
491 XMALLOC/XFREE.
492
f4045bcb
PA
4932012-09-14 Pedro Alves <palves@redhat.com>
494
495 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
496
63b46266
YPK
4972012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
498
499 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
500 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
501 data-directory as appropriate.
502
ddd7a8e7
SP
5032012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
504
505 * printcmd.c (ui_printf): Eliminate single-use variable
506 PARAM_LEN.
507
d649a38e
YQ
5082012-09-14 Yao Qi <yao@codesourcery.com>
509 Pedro Alves <palves@redhat.com>
510
511 * valops.c (value_assign): Move observer_notify_target_changed
512 below to replace reinit_frame_cache.
513
b9516fa1
YPK
5142012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
515
516 Refactor Python "gdb" module into a proper Python package, by
517 introducing a new "_gdb" module for code implemented in C, and
518 using reload/__import__ instead of exec.
519 * python/lib/gdb/__init__.py: Import * from _gdb.
520 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
521 prompt_hook, sys.argv): Moved from finish_python_initialization.
522 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
523 (packages, auto_load_packages): New list and function replacing
524 module_dict and auto-loading code, using __file__ instead of
525 gdb.PYTHONDIR and reload/__import__ instead of exec.
526 (GdbSetPythonDirectory): Replacing function of the same name
527 from finish_python_initialization, using reload/__import__ instead
528 of exec, as well as call auto_load_packages.
529 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
530 gdb_python_module and not gdb_module.
531 * python/python-internal.h (gdb_python_module): Declare.
532 * python/python.c (gdb_python_module): New global.
533 (before_prompt_hook): Check gdb_python_module and not gdb_module.
534 (_initialize_python): Rename gdb module to _gdb.
535 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
536 (finish_python_initialization): Move Python code to
537 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
538 __main__.
539
aa0fbdd8
PA
5402012-09-13 Pedro Alves <palves@redhat.com>
541
542 * Makefile.in (COMMON_OBS): Add registry.o.
543 * registry.c: New file.
544 * registry.h (struct registry_container): Declare.
545 (registry_data_callback): New typedef.
546 (struct registry_data, struct registry_data_registration, struct
547 registry_data_registry): New type.
548 (register_data_with_cleanup, registry_alloc_data)
549 (registry_callback_adaptor, registry_clear_data)
550 (registry_container_free_data, registry_set_data, registry_data):
551 Declare.
552 (DEFINE_REGISTRY): Refactor structures and functions as shims over
553 the new common structures and functions.
554 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
555 callback typedefs.
556
42b5c53d
MW
5572012-09-12 Mike Wrighton <wrighton@codesourcery.com>
558
559 * remote.c (remote_insert_hw_breakpoint): Throw exception if
560 there is an error inserting hardware breakpoints and use the
561 error message from the target.
562
563 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
564 Catch this exception and print the error message contained within. Do not
565 print the default hardware error breakpoint message in this case.
566
a1b64ce1
DE
5672012-09-12 Doug Evans <dje@google.com>
568
569 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
570 cu == NULL.
571
83a788b8
DE
5722012-09-11 Doug Evans <dje@google.com>
573
574 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
575 .gdb_index symbol attributes if there are none.
576
d9eaeb59
JB
5772012-09-11 Joel Brobecker <brobecker@adacore.com>
578
579 * symtab.h (struct minimal_symbol) [has_size]: New field.
580 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
581 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
582 * printcmd.c (build_address_symbolic): Only filter out zero-sized
583 minimal symbols if the symbol's size is actually known.
584 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
585 of msymbol's size field. Add comment.
586 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
587 SET_MSYMBOL_SIZE to set the minimal symbol size.
588
a83e9154
JB
5892012-09-11 Joel Brobecker <brobecker@adacore.com>
590
591 * minsyms.c (install_minimal_symbols): Use memset to fill entire
592 minimal_symbol struct object, rather than setting some of its
593 fields one by one.
594
350b1b26
AB
5952012-09-11 Andrew Burgess <aburgess@broadcom.com>
596
597 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
598 passed_a_ptr flag when displaying typedef types.
599
2fa15f23
JB
6002012-09-10 Joel Brobecker <brobecker@adacore.com>
601
602 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
603 the optimized_out flag is preserved.
604
5152ff90
AG
6052012-09-10 Anthony Green <green@moxielogic.com>
606
607 * moxie-tdep.c (moxie_analyze_prologue): Update for function
608 prologue changes in GCC.
609
5b4f6e25
KS
6102012-09-10 Keith Seitz <keiths@redhat.com>
611
612 PR gdb/13483
613 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
614 (BOOL_CONVERSION_BADNESS): ... this.
615 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
616 (rank_one_type): Allow all boolean conversions
617 permitted by the standard.
618
f1070426
TT
6192012-09-06 Tom Tromey <tromey@redhat.com>
620
621 * python/py-newobjfileevent.c (create_new_objfile_event_object):
622 Don't decref py_objfile.
623
a8db4212
YPK
6242012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
625
626 Do not enable -lmcheck by default when Python is enabled with
627 threading support.
628 * configure.ac: (python_has_threads) New variable, by testing
629 if WITH_THREAD is defined in Python.h.
630 Move --enable-lmcheck after --with-python.
631 Do not enable -lmcheck by default if python_has_threads=yes.
632 Warn if --enable-lmcheck and python_has_threads=yes.
633 * configure: Regenerate.
634
648beb2b
YQ
6352012-08-31 Yao Qi <yao@codesourcery.com>
636
637 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
638 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
639 Update some commands.
640 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
641 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
642 to 1.
643
ef07a9f7
YQ
6442012-08-31 Yao Qi <yao@codesourcery.com>
645
646 * mi/mi-cmds.c (mi_cmds): Add 'static'.
647
fda395cf
YPK
6482012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
649
650 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
651
8efd8e78
DE
6522012-08-29 Doug Evans <dje@google.com>
653
654 * main.c (print_gdb_help): Remove reference to
655 --use-deprecated-index-sections.
656
883b9c6c
YQ
6572012-08-28 Yao Qi <yao@codesourcery.com>
658
659 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
660 (init_cmds): Call add_setshow_uinteger_cmd for command
661 'max-user-call-depth'.
662 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
663 declaration of 'max_user_call_depth'.
664 * frame.c (backtrace_limit): Add 'unsigned'.
665 (_initialize_frame): Call add_setshow_uinteger_cmd for command
666 'limit'.
667 * remote.c (remoteaddresssize): Add 'unsigned'.
668 (remote_address_masked): Change local var 'address_size' to
669 'unsigned'.
670 (_initialize_remote): Call add_setshow_uinteger_cmd for
671 'remoteaddresssize'.
672 * top.c (history_size): Add 'unsigned'.
673 (show_commands): Change local variables to 'unsigned'.
674 (set_history_size_command): Don't check history_size is negative.
675 Adjust the condition to call unstifle_history and set history_size
676 to UNIT_MAX.
677
1292279a
PA
6782012-08-28 Pedro Alves <palves@redhat.com>
679
680 PR gdb/14428
681
682 * infcmd.c (default_print_one_register_info): New, factored out
683 from default_print_registers_info.
684 (default_print_registers_info): Use it. Mark value unavailable if
685 necessary.
686 (registers_info): Print user registers with
687 default_print_one_register_info.
688
f629cd75
L
6892010-08-27 H.J. Lu <hongjiu.lu@intel.com>
690
691 PR tui/14486
692 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
693 is not NULL before referencing it.
694
1c8cdcb1
JK
6952012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
696
697 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
698 variable pc. Call find_pc_line instead of find_pc_overlay, restore
699 original PC for it.
700
e9687799
JK
7012012-08-27 Eli Zaretskii <eliz@gnu.org>
702 Jan Kratochvil <jan.kratochvil@redhat.com>
703
704 * auto-load.c (auto_load_objfile_script): Rename to ...
705 (auto_load_objfile_script_1): ... here, change variable realname to
706 parameter realname, document it, add return value, add variable retval.
707 (auto_load_objfile_script): New function.
708
7afa1642
JK
7092012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
712 followed by a whitespace.
713
dc7650b8
JK
7142012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
715
28e66c70 716 PR gdb/14494.
dc7650b8
JK
717 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
718 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
719 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
720 here.
721
1591a1e8
PA
7222012-08-27 Wei-cheng Wang <cole945@gmail.com>
723
724 * memattr.c (create_mem_region): Fix memory region overlapping
725 checking.
726
ecfb0d68
SP
7272012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
728
729 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
730 with xmalloc/cleanup.
731 * mt-tdep.c (mt_push_dummy_call): Likewise.
732 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
733 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
734
8c56c1b9
YQ
7352012-08-24 Yao Qi <yao@codesourcery.com>
736
737 * jv-exp.y (push_expression_name): Add "." at the end of error
738 message.
739
e3480f4a
YPK
7402012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
741
742 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
743 * python/python.c (_initialize_python): Update documentation.
744
dfbd5e7b
PA
7452012-08-23 Pedro Alves <palves@redhat.com>
746
747 * infrun.c (_initialize_infrun) <handle command help text>:
748 Mention that multiple signals are supported.
749
2edda2ff
PA
7502012-08-23 Pedro Alves <palves@redhat.com>
751
752 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
753 string.
754
8d735b87
YQ
7552012-08-23 Yao Qi <yao@codesourcery.com>
756
757 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
758 (tfind_1): Don't call registers_changed, set_traceframe_num,
759 and clear_traceframe_info.
760 Call set_current_traceframe.
761 (set_current_traceframe): call set_traceframe_num.
762
c5d9b215
SDJ
7632012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
764
765 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
766 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
767
037bbc8e
YPK
7682012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
769
770 Enable readline in Python in a GDB-specific way and block the
771 standard Python readline module to prevent conflicts with GDB.
772 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
773 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
774 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
775 * python/py-gdb-readline.c: New file.
776 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
777 prototype.
778 * python/python.c (_initialize_python): Call
779 gdbpy_initialize_gdb_readline.
780
406b1477
KS
7812012-08-22 Keith Seitz <keiths@redhat.com>
782
783 * defs.h: Include build-gnulib/config.h
784
6ca1b147
JM
7852012-08-22 Joseph Myers <joseph@codesourcery.com>
786
787 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
788 and blx pc.
789
8315665e
YPK
7902012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
791
792 Add a new "python-interactive" command that starts a standard
793 Python interactive prompt with "pi" as alias, and add "py" as
794 an alias to "python".
795 * NEWS: Mention the new commands.
8315665e
YPK
796 * python/python.c (eval_python_command): New function.
797 (python_interactive_command): For "python-interactive" with
798 arguments, call eval_python_command. For "python-interactive"
799 without arguments, call PyRun_InteractiveLoop.
800 (_initialize_python): Add "python-interactive" command with
801 "pi" as alias, and add "py" as an alias to "python".
802
522002f9
TT
8032012-08-22 Tom Tromey <tromey@redhat.com>
804
805 * defs.h (quit_flag): Don't declare.
806 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
807 (QUIT): Use new functions.
808 * event-top.c (command_handler): Use clear_quit_flag.
809 (handle_sigint): Use set_quit_flag.
810 (async_request_quit): Use check_quit_flag. Don't check
811 immediate_quit.
812 * exceptions.c (throw_exception): Use clear_quit_flag.
813 * main.c (captured_main): Use clear_quit_flag.
814 * python/python.c (clear_quit_flag, set_quit_flag)
815 (check_quit_flag): New functions.
816 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
817 clear_quit_flag.
818 * remote.c (remote_wait_as): Use check_quit_flag,
819 clear_quit_flag.
820 (remote_start_remote): Call QUIT.
821 * symfile.c (load_progress): Use check_quit_flag.
822 * top.c (command_loop): Use clear_quit_flag.
823 (command_line_input): Call QUIT.
824 * utils.c (quit_flag): Conditionally define.
825 (clear_quit_flag, check_quit_flag, set_quit_flag): New
826 functions.
827 (prompt_for_continue): Call QUIT. Use quit, not
828 async_request_quit.
829 * remote-mips.c (mips_expect_timeout): Call QUIT.
830 * monitor.c (monitor_expect): Call QUIT.
831
b583003e
TT
8322012-08-22 Tom Tromey <tromey@redhat.com>
833
834 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
835 (async_init_signals): Update.
836 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
837 (SIGWINCH_HANDLER_BODY): Remove.
838
e1507e95
TT
8392012-08-22 Tom Tromey <tromey@redhat.com>
840
841 * jit.c (jit_object_close_impl): Don't malloc the objfile
842 name.
843 * objfiles.c (allocate_objfile): Don't malloc the objfile
844 name.
845 (free_objfile): Don't free the objfile name.
846 * objfiles.h (struct objfile) <name>: Update comment.
847 * symfile.c (reread_symbols): Fix reference counting. Don't
848 malloc objfile name.
849
1c00ec6b
TT
8502012-08-22 Tom Tromey <tromey@redhat.com>
851
852 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
853 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
854 (symfile_bfd_open): Likewise.
855 (generic_load): Likewise.
856 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
857 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
858 gdb_bfd_open.
859 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
860 Use gdb_bfd_open.
861 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
862 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
863 (pmon_load_fast): Likewise.
864 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
865 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
866 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
867 (macho_check_dsym): Likewise.
868 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
869 (m32r_upload_command): Likewise.
870 * gdb_bfd.h (gdb_bfd_cache): Declare.
871 * gdb_bfd.c (struct gdb_bfd_data): New.
872 (gdb_bfd_cache): New global.
873 (struct gdb_bfd_cache_search): New.
874 (hash_bfd): New function.
875 (eq_bfd): Likewise.
876 (gdb_bfd_open): Likewise.
877 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
878 (gdb_bfd_unref): Remove closed BFD from cache. Update for
879 gdb_bfd_data.
880 * exec.c (exec_file_attach): Use gdb_bfd_open.
881 * dsrec.c (load_srec): Use gdb_bfd_open.
882
6532ff36
TT
8832012-08-22 Tom Tromey <tromey@redhat.com>
884
885 * dwarf2read.c (macro_start_file): Update.
886 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
887 (free_objfile_per_bfd_storage): Destroy macro_cache.
888 (allocate_objfile, free_objfile): Update.
889 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
890 New field.
891 (struct objfile) <macro_cache>: Remove.
892 * symfile.c (reread_symbols): Update.
893 * symmisc.c (print_symbol_bcache_statistics): Update.
894 (print_objfile_statistics): Update.
895
706e3705
TT
8962012-08-22 Tom Tromey <tromey@redhat.com>
897
898 * elfread.c (elf_symtab_read): Update.
899 * objfiles.c (objfiles_bfd_data): New global.
900 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
901 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
902 (allocate_objfile, free_objfile): Update.
903 (_initialize_objfiles): Initialize objfiles_bfd_data.
904 * objfiles.h (struct objfile_per_bfd_storage): New.
905 (struct objfile) <per_bfd>: New field.
906 <filename_cache>: Remove.
907 (set_objfile_per_bfd): Declare.
908 * symfile.c (reread_symbols): Update. Call
909 set_objfile_per_bfd.
910 (allocate_symtab): Update.
911 * symmisc.c (print_symbol_bcache_statistics): Update.
912 (print_objfile_statistics): Print the size of the BFD obstack.
913
e992eda4
TT
9142012-08-22 Tom Tromey <tromey@redhat.com>
915
916 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
917 * gdb_bfd.c: Use DEFINE_REGISTRY.
918 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
919 (gdb_bfd_ref): Call bfd_alloc_data.
920 (gdb_bfd_unref): Call bfd_free_data.
921
6b81941e
TT
9222012-08-22 Tom Tromey <tromey@redhat.com>
923
924 * registry.h (struct registry_fields): New.
925 (REGISTRY_FIELDS): Redefine.
926 (REGISTRY_ACCESS_FIELD): New macro.
927 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
928 functions.
929
8e260fc0
TT
9302012-08-22 Tom Tromey <tromey@redhat.com>
931
932 * auto-load.c (_initialize_auto_load): Update.
933 * solib-svr4.c (_initialize_svr4_solib): Update
934 * solib-dsbt.c (_initialize_dsbt_solib): Update.
935 * solib-darwin.c (_initialize_darwin_solib): Update.
936 * registry.h: New file.
937 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
938 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
939 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
940 (register_program_space_data_with_cleanup)
941 (register_program_space_data, program_space_alloc_data)
942 (clear_program_space_data, set_program_space_data)
943 (program_space_data): Don't declare.
944 * progspace.c: Use DEFINE_REGISTRY.
945 (struct program_space_data, struct
946 program_space_data_registration, struct
947 program_space_data_registry, program_space_data_registry)
948 (register_program_space_data_with_cleanup)
949 (register_program_space_data, program_space_alloc_data)
950 (program_space_free_data, clear_program_space_data)
951 (set_program_space_data, program_space_data): Remove.
952 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
953 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
954 (register_objfile_data_with_cleanup, register_objfile_data)
955 (clear_objfile_data, set_objfile_data, objfile_data): Don't
956 declare.
957 * objfiles.c: Use DEFINE_REGISTRY.
958 (struct objfile_data, struct objfile_data_registration, struct
959 objfile_data_registry, objfile_data_registry)
960 (register_objfile_data_with_cleanup, register_objfile_data)
961 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
962 (set_objfile_data, objfile_data): Remove.
963 (_initialize_objfiles): Update.
964 * jit.c (_initialize_jit): Update.
965 * inflow.c (_initialize_inflow): Update.
966 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
967 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
968 (register_inferior_data_with_cleanup, register_inferior_data)
969 (clear_inferior_data, set_inferior_data, inferior_data): Don't
970 declare.
971 * inferior.c: Use DEFINE_REGISTRY.
972 (struct inferior_data, struct inferior_data_registration, struct
973 inferior_data_registry, inferior_data_registry)
974 (register_inferior_data_with_cleanup, register_inferior_data)
975 (inferior_alloc_data, inferior_free_data clear_inferior_data)
976 (set_inferior_data, inferior_data): Remove.
977 * auxv.c (_initialize_auxv): Update.
978 * ada-lang.c (_initialize_ada_language): Update.
979 * breakpoint.c (_initialize_breakpoint): Update.
980 * i386-nat.c (i386_use_watchpoints): Update.
981
ed9eebaf
TT
9822012-08-22 Tom Tromey <tromey@redhat.com>
983
984 * exec.c (exec_close, exec_file_attach): Update.
985 (add_to_section_table): Initialize 'key' field.
986 (add_target_sections, remove_target_sections): Add 'key' argument.
987 * exec.h (add_target_sections, remove_target_sections): Add
988 'key' argument.
989 * solib.c (solib_map_sections, update_solib_list, clear_solib)
990 (reload_shared_libraries_1): Update.
991 * target.h (struct target_section) <key>: New field.
992
2f2e97fa
TT
9932012-08-22 Tom Tromey <tromey@redhat.com>
994
995 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
996
b3dbbd6f
PM
9972012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
998
999 * symfile.c (allocate_symtab): Use host_address_to_string
1000 function instead of cast of pointer to long which is not
1001 compatible with x86_64-w64-mingw32 build.
1002
f94363d7
AP
10032012-08-19 Andrew Pinski <apinski@cavium.com>
1004
1005 * mips-tdep.c (is_octeon): New function.
1006 (is_octeon_bbit_op): New function.
1007 (mips32_next_pc): Handle Octeon's bbit instructions.
1008 (mips32_instruction_has_delay_slot): Likewise.
1009
78a59c2f
AP
10102012-08-19 Andrew Pinski <apinski@cavium.com>
1011
1012 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1013 before the function.
1014
4f5bcb50
AP
10152012-08-19 Andrew Pinski <apinski@cavium.com>
1016
1017 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1018
e5afdbd7
KS
10192012-08-19 Keith Seitz <keiths@redhat.com>
1020
1021 PR c++/14365
1022 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1023 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1024
13c9750e
EZ
10252012-08-18 Eli Zaretskii <eliz@gnu.org>
1026
1027 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1028 The typo broke "make TAGS".
1029
db761810 10302012-08-17 Joel Brobecker <brobecker@adacore.com>
1031
1032 GDB 7.5 released.
1033
a451cb65
KS
10342012-08-17 Keith Seitz <keiths@redhat.com>
1035
1036 PR c++/13356
1037 * gdbtypes.c (strict_type_checking): New variable.
1038 (show_strict_type_checking): New function.
1039 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1040 if strict type checking is disabled.
1041 (_initialize_gdbtypes): Add "check type" subcommand.
1042 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1043
10442012-08-17 Keith Seitz <keiths@redhat.com>
1045
1046 * language.h (type_mode): Remove.
1047 (type_check): Remove.
1048 (struct language_defn): Remove la_type_check.
1049 (STRICT_TYPE): Remove unused macro.
1050 (type_error): Remove.
1051 * language.c (set_type_range_case): Renamed to ...
1052 (set_range_case): ... this. Update all callers.
1053 Remove type_mode/type_check.
1054 (type_mode): Remove.
1055 (type_check): Remove.
1056 (show_type_command): Remove.
1057 (set_type_command): Remove.
1058 (language_info): Remove type checking output.
1059 (type_error): Remove unused function.
1060 (range_error): Update comment.
1061 (unknown_language_defn): Remove la_type_check.
1062 (auto_language_defn): Likewise.
1063 (local_language_defn): Likewise.
1064 (_initialize_language): Remove "check type" subcommand.
1065 * ada-lang.c (ada_language_defn): Remove la_type_check.
1066 * c-lang.c (c_language_defn): Likewise.
1067 (cplus_language_defn): Likewise.
1068 (asm_language_defn): Likewise.
1069 (minimal_language_defn): Likewise.
1070 * d-lang.c (d_language_defn): Likewise.
1071 * f-lang.c (f_language_defn): Likewise.
1072 * go-lang.c (go_language_defn): Likewise.
1073 * jv-lang.c (java_language_defn): Likewise.
1074 * m2-lang.c (m2_language_defn): Likewise.
1075 * objc-lang.c (objc_language_defn): Likewise.
1076 * opencl-lang.c (opencl_language_defn): Likewise.
1077 * p-lang.c (pascal_language_defn): Likewise.
1078
dbf6a605
MF
10792012-08-16 Mike Frysinger <vapier@gentoo.org>
1080
1081 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1082
973e3cf7
JB
10832012-08-16 Joel Brobecker <brobecker@adacore.com>
1084
1085 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1086 New function.
1087 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1088 using the regache. Use ia64_hpux_get_register_from_save_state_t
1089 to access the bsp and bspstore registers if not.
1090
d80ee84f
JB
10912012-08-16 Joel Brobecker <brobecker@adacore.com>
1092
1093 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1094 * breakpoint.c (detach_breakpoints): Change pid parameter into
1095 a ptid. Adjust code accordingly.
1096 * infrun.c (handle_inferior_event): Delete variable child_pid.
1097 Update call to detach_breakpoints to pass the child ptid for
1098 fork events.
1099 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1100 assert that inferior_ptid's lwp is zero.
1101 (linux_handle_extended_wait): Update call to detach_breakpoints.
1102 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1103 detach_breakpoints.
1104
2dcc6086
JB
11052012-08-16 Joel Brobecker <brobecker@adacore.com>
1106
1107 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1108 parent, only call detach_breakpoints if tts.tts_event ==
1109 TTEVT_VFORK.
1110
0c92d8c1
JB
11112012-08-16 Joel Brobecker <brobecker@adacore.com>
1112
1113 * dwarf2-frame.c (dwarf2_frame_cache): Use
1114 get_frame_address_in_block instead of get_frame_pc as
1115 the bound for executing the frame's FDE.
1116
6b1755ce
YQ
11172012-08-16 Yao Qi <yao@codesourcery.com>
1118
1119 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1120 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1121 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1122 (c_type_print_varspec_suffix): Likewise.
1123 * eval.c (evaluate_subexp_standard): Likewise.
1124 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1125 (f_type_print_varspec_suffix): Likewise.
1126 * gdbtypes.c (is_scalar_type): Likewise.
1127 (recursive_dump_type): Likewise.
1128 * infcall.c (value_arg_coerce): Likewise.
1129 * m2-valprint.c (m2_val_print): Likewise.
1130 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1131 (pascal_type_print_varspec_suffix): Likewise.
1132 (pascal_type_print_base): Likewise.
1133 * p-valprint.c (pascal_val_print): Likewise.
1134 (pascal_val_print): Likewise.
1135 * valops.c (value_slice): Likewise.
1136 * valprint.c (scalar_type_p): Likewise.
1137 * valarith.c (value_bitstring_subscript): Remove.
1138 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1139 Remove comment on TYPE_CODE_BITSTRING.
1140
1141 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1142 TYPE_CODE_BITSTRING.
1143
1144 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1145 slot 0.
1146
8acc4065
YQ
11472012-08-16 Yao Qi <yao@codesourcery.com>
1148
1149 * tracepoint.c (trace_find_none_command): Remove.
1150 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1151
8128fd8e
YQ
11522012-08-16 Yao Qi <yao@codesourcery.com>
1153
1154 * remote.c (handle_notification): Remove parameter 'length'.
1155 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1156
2873700e
KS
11572012-08-15 Keith Seitz <keiths@redhat.com>
1158
1159 * gdbtypes.c (opaque_type_resolution): Make static.
1160 Add missing comment.
1161 (overload_debug): Add missing comment.
1162 (show_opaque_type_resolution): Likewise.
1163 (show_overload_debug): Likewise.
1164 (print_bit_vector): Remove unnecessary forward declaration.
1165 (print_arg_types): Likewise.
1166 (dump_fn_fieldlists): Likewise.
1167 (print_cplus_stuff): Likewise.
1168
b82d08cd
TT
11692012-08-15 Tom Tromey <tromey@redhat.com>
1170
1171 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1172 (gdb_bfd_ref): Initialize new field.
1173 (gdb_bfd_unref): Unref the archive BFD.
1174 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1175 parent archive.
1176
db6573d6
TT
11772012-08-15 Tom Tromey <tromey@redhat.com>
1178
1179 PR python/14387:
1180 * python/py-bpevent.c (create_breakpoint_event_object): Update
1181 comment.
1182 * python/py-event.c (evpy_add_attribute): Update comment.
1183 * python/py-exitedevent.c (create_exited_event_object): Fix
1184 reference counting and error handling.
1185 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1186 Fix reference counting.
1187 * python/py-signalevent.c (create_signal_event_object): Fix
1188 reference counting and error handling.
1189 * python/py-stopevent.c (emit_stop_event): Fix reference
1190 counting.
1191 * python/py-threadevent.c (get_event_thread): Return a
1192 borrowed reference.
1193 * python/py-type.c (convert_field): Fix reference counting.
1194
a036ba48
TT
11952012-08-15 Tom Tromey <tromey@redhat.com>
1196
1197 * dwarf2read.c (dwarf_decode_macro_bytes)
1198 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1199 as hash key.
1200
486c7739
MF
12012012-08-14 Mike Frysinger <vapier@gentoo.org>
1202
1203 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1204 stepi, nexti, finish, next, step, jump, and continue commands.
1205 * infrun.c (_initialize_infrun): Update help text for the handle
1206 command.
1207
4cf93a03
DE
12082012-08-14 Doug Evans <dje@google.com>
1209
70b099cf
DE
1210 * gdbtypes.c (struct extra): Delete, unused.
1211
5212577a
DE
1212 * gdbtypes.c: Whitespace cleanup.
1213 (address_space_name_to_int): Remove "extern" from definition.
1214 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1215
4cf93a03
DE
1216 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1217 TYPE_POINTER_TYPE (type).
1218
3756ef7e
GB
12192012-08-14 Gary Benson <gbenson@redhat.com>
1220
1221 * solib-svr4.c (svr4_free_library_list): Use free_so.
1222
40d72643
MF
12232012-08-13 Mike Frysinger <vapier@gentoo.org>
1224
1225 * .gitignore: Add go-exp.c.
1226
f47f77df
DE
12272012-08-13 Doug Evans <dje@google.com>
1228
1229 * value.c (show_convenience): Tweak comment.
1230 (_initialize_values): Mention convenience functions in the help text
1231 for "show convenience".
1232
7507c54a
YQ
12332012-08-13 Yao Qi <yao@codesourcery.com>
1234
1235 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1236 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1237 TERNOP_SLICE_COUNT.
1238 * eval.c (evaluate_subexp_standard): Likewise.
1239 * expprint.c (print_subexp_standard): Likewise.
1240 (dump_subexp_body_standard): Likewise.
1241 * parse.c (operator_length_standard): Likewise.
1242
5cad9736
YQ
12432012-08-13 Yao Qi <yao@codesourcery.com>
1244
1245 * std-operator.def: Remove OP_BITSTRING.
1246 * breakpoint.c (watchpoint_exp_is_const): Update.
1247 * eval.c (evaluate_subexp_standard): Remove handling to
1248 OP_BITSTRING.
1249 * expprint.c (print_subexp_standard): Likewise.
1250 (dump_subexp_body_standard): Likewise.
1251 * parse.c (operator_length_standard): Likewise.
1252 * valops.c (value_bitstring): Remove.
1253 * value.h: Remove the declaration of 'value_bitstring'.
1254
bad7670a
SDJ
12552012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1256
1257 * linespec.c (find_methods): Remove unused variables `i1' and
1258 `name_len'.
1259 (decode_line_full): Likewise for `arg_start'.
1260
d9dce7fa
SDJ
12612012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1262
1263 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1264 (zlib_decompress_section): Likewise for `section_data'.
1265 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1266
a72c3253
DE
12672012-08-10 Doug Evans <dje@google.com>
1268
1269 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1270 * NEWS: Document them.
1271 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1272 function/strfns.py.
1273 * python/py-type.c (typy_array_1): New function.
1274 (typy_array): Call it.
1275 (typy_vector): New function.
1276 (type_object_methods): Add "vector".
1277 * python/lib/gdb/function/__init__.py: New file.
1278 * python/lib/gdb/function/strfns.py: New file.
1279
200bc880
SP
12802012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1281
1282 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1283 for TYPE_FIELD_BITPOS.
1284 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1285
de0bea00
MF
12862012-08-10 Mike Frysinger <vapier@gentoo.org>
1287
1288 PR cli/10436:
1289 * common/vec.h (VEC_merge): Define.
1290 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1291 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1292 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1293 * completer.c: Include gdb_signals.h.
1294 (signal_completer): Define.
1295 * completer.h (signal_completer): Add prototype.
1296 * infcmd.c (_initialize_infcmd): Assign the command
1297 completer for "signal" to handle_completer.
1298 * infrun.c: Include completer.h.
1299 (handle_completer): Define.
1300 (_initialize_infrun): Declare a new local variable c. Store the
1301 result of add_com("handle") to it. Assign the command
1302 completer for "handle" to handle_completer.
1303
5b9afe8a
YQ
13042012-08-09 Yao Qi <yao@codesourcery.com>
1305
1306 * cli/cli-decode.c (set_cmd_prefix): New.
1307 (lookup_cmd_for_prefixlist): New.
1308 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1309 of each cmd_list_element in *prefixlist.
1310 (add_setshow_cmd_full): set_cmd_prefix.
1311 (add_alias_cmd): Likewise.
1312 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1313 Declare 'auto_boolean_enums'.
1314 * cli/cli-setshow.c: Include "observer.h".
1315 (notify_command_param_changed_p): New.
1316 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1317 Remove 'static'.
1318 (do_setshow_command): Split it to ...
1319 (do_set_command, do_show_command): ... them. New.
1320 (do_set_command): Call observer_notify_command_param_changed if
1321 notify_command_param_changed_p returns true.
1322 (cmd_show_list): Caller update.
1323 * auto-load.c (set_auto_load_cmd): Likewise.
1324 * remote.c (show_remote_cmd): Likewise.
1325 * cli/cli-setshow.h: Update declarations.
1326 * top.c (execute_command): Call do_set_command and do_show_command.
1327
1328 * NEWS: Mention new MI notification.
1329 * mi/mi-interp.c: Declare mi_command_param_changed.
1330 (mi_interpreter_init): Attach mi_command_param_changed to
1331 observer command_param_changed.
1332 (mi_command_param_changed): New.
1333 Remove mi_suppress_breakpoint_notifications.
1334 Define global variable mi_suppress_notification.
1335 (mi_breakpoint_created): Update.
1336 (mi_breakpoint_deleted): Likewise.
1337 (mi_breakpoint_modified): Likewise.
1338 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1339 'gdb-set' and set mi_suppress_notification.
1340 * mi/mi-main.h: (mi_suppress_notification): New struct.
1341
1969df89
JK
13422012-08-09 Andreas Tobler <andreast@fgznet.ch>
1343 Jan Kratochvil <jan.kratochvil@redhat.com>
1344
1345 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1346
8bfd80db
YQ
13472012-08-09 Yao Qi <yao@codesourcery.com>
1348
1349 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1350 (skiplist): Move it to skip.c.
1351 (init_cmd_lists): Remove code setting enablebreaklist and
1352 skiplist to NULL.
1353 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1354 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1355 skiplist.
1356 * gdbcmd.h: Likewise.
1357 * skip.c (_initialize_step_skip): Move 'skiplist' from
1358 cli/cli-cmds.c.
1359
28578e6b
YQ
13602012-08-09 Yao Qi <yao@codesourcery.com>
1361
1362 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1363 * gnu-nat.c, symfile.c: Likewise.
1364
260c0b2a
DE
13652012-08-08 Aaron Gamble <agamble@google.com>
1366
1367 * utils.c (prompt_for_continue_wait_time): New static global.
1368 (make_command_stats_cleanup): Initialize it.
1369 (report_command_stats): Subtract time waiting for user.
1370 (prompt_for_continue): Track time waiting for user.
1371 (defaulted_query): Track time waiting for user.
1372
4f485ebc
DE
13732012-08-08 Doug Evans <dje@google.com>
1374
1375 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1376 UNOP_MEMVAL_TYPE.
1377 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1378 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1379 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1380 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1381 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1382 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1383 elt.
1384 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1385 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1386 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1387 (dump_prefix_expression): Handle OP_TYPE.
1388
2acf2b39
KS
13892012-08-08 Keith Seitz <keiths@redhat.com>
1390
1391 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1392 addr_start.
1393
e6712ff1
DE
13942012-08-08 Doug Evans <dje@google.com>
1395
1396 * linux-thread-db.c: #include "gdb_vecs.h".
1397 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1398 updated.
1399 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1400 (thread_db_load_search): Use a vector to iterate over path elements.
1401 Handle text appearing after "$pdir".
1402
1403 * gdb_string.h: Moved to ...
1404 * common/gdb_string.h: ... here.
1405 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1406 gdb_string.h and gdb_assert.h.
1407
ab854e54
YQ
14082012-08-08 Yao Qi <yao@codesourcery.com>
1409
1410 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1411 (tic6x_value_to_register): Likewise.
1412 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1413 and set_gdbarch_value_to_register.
1414
4f69f4c2
JK
14152012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 Jean-Marc Saffroy <saffroy@gmail.com>
1417
1418 PR 11804
1419 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1420 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1421 * gcore.c (gcore_create_callback): New function comment. Add modified
1422 parameter. Only write modified regions. Set SEC_READONLY exactly
1423 according to MODIFIED.
1424 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1425 the passed modified value to FUNC.
1426 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1427 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1428 first. New variables modified and has_anonymous. Parse the lines of
1429 smaps file. Add the passed MODIFIED value to FUNC.
1430 * procfs.c (find_memory_regions_callback): Add the passed modified
1431 value.
1432
78ac5f83
TT
14332012-08-06 Tom Tromey <tromey@redhat.com>
1434
1435 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1436 (dwarf2_frame_cache): Use it.
1437 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1438 cache initialization constraint.
1439
2c12abee
TT
14402012-08-06 Tom Tromey <tromey@redhat.com>
1441
1442 PR python/14386:
1443 * varobj.c (update_dynamic_varobj_children): Don't call
1444 PyIter_Check.
1445
4979d7f0
TT
14462012-08-06 Tom Tromey <tromey@redhat.com>
1447
1448 PR cli/14392:
1449 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1450
f3c8a52a
JK
14512012-08-06 Nathaniel Flath <flat0103@gmail.com>
1452
1453 * NEWS: New entry for 'cd' default parameters.
1454 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1455
5a1cf4d6
TT
14562012-08-03 Tom Tromey <tromey@redhat.com>
1457
1458 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1459 return.
1460
7c3270ae
UW
14612012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1462
1463 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1464 to attempting lseek/write.
1465 (inf_child_fileio_pread): Likewise for pread.
1466
ccce17b0
YQ
14672012-08-02 Yao Qi <yao@codesourcery.com>
1468
1469 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1470 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1471 add_setshow_zinteger_cmd.
1472 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1473 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1474 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1475 instead of add_setshow_zinteger_cmd.
1476 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1477 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1478 instead of add_setshow_zinteger_cmd.
1479 * frame.c (frame_debug): Add 'unsigned'.
1480 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1481 add_setshow_zinteger_cmd.
1482 * frame.h: Update the declaration of 'frame_debug'.
1483 * gdbtypes.c (overload_debug): Add 'unsigned'.
1484 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1485 add_setshow_zinteger_cmd.
1486 * inferior.h: Update declaration of 'debug_infrun'.
1487 * infrun.c (debug_infrun): Add 'unsigned'.
1488 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1489 add_setshow_zinteger_cmd.
1490 * jit.c (jit_debug): Add 'unsigned'.
1491 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1492 add_setshow_zinteger_cmd.
1493 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1494 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1495 instead of add_setshow_zinteger_cmd.
1496 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1497 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1498 add_setshow_zinteger_cmd.
1499 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1500 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1501 instead of add_setshow_zinteger_cmd.
1502 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1503 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1504 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1505 intead of add_setshow_zinteger_cmd.
1506 * mips-tdep.c (mips_debug): Add 'unsigned'.
1507 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1508 instead of add_setshow_zinteger_cmd.
1509 * monitor.c (monitor_debug): Add 'unsigned'.
1510 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1511 add_setshow_zinteger_cmd.
1512 * observer.c (observer_debug): Add 'unsigned'.
1513 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1514 add_setshow_zinteger_cmd.
1515 * parse.c (expressiondebug): Add 'unsigned'.
1516 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1517 add_setshow_zinteger_cmd.
1518 * record.c (record_debug): Add 'unsigned'.
1519 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1520 add_setshow_zinteger_cmd.
1521 * record.h: Update the declaration of 'record_debug'.
1522 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1523 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1524 add_setshow_zinteger_cmd.
1525 * serial.c (global_serial_debug_p): Add 'unsigned'.
1526 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1527 add_setshow_zinteger_cmd.
1528 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1529 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1530 add_setshow_zinteger_cmd.
1531 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1532 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1533 add_setshow_zinteger_cmd.
1534 * target.c (targetdebug): Add 'unsigned'.
1535 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1536 add_setshow_zinteger_cmd.
1537 * valops.c (overload_debug): Add 'unsigned'.
1538 * varobj.c (varobjdebug): Add 'unsigned'.
1539 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1540 add_setshow_zinteger_cmd.
1541 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1542 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1543 instead of add_setshow_zinteger_cmd.
1544
1545 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1546 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1547 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1548 instead of add_setshow_zinteger_cmd.
1549 * gdbarch.c, gdbarch.h: Re-generated.
1550
95b07c96
YQ
15512012-08-02 Yao Qi <yao@codesourcery.com>
1552
1553 * nto-tdep.c: Don't include cli/cli-decode.h and
1554 cli/cli-cmds.h.
1555 (_initialize_nto_tdep): Remove.
1556 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1557 Remove field.
1558 Remove macro nto_internal_debugging.
1559
57295b0b
RH
15602012-08-01 Richard Henderson <rth@redhat.com>
1561
1562 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1563 (mep-*-*) [gdb_target_obs]: Likewise.
1564
f782ad9b
AS
15652012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1566
1567 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1568 linux_get_siginfo_type.
1569
a14dd77e
JK
15702012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1571
1572 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1573 AT_ENTRY_POINT.
1574 (call_function_by_hand) <ON_STACK>: Call write_memory with
1575 gdbarch_breakpoint_from_pc, if possible.
1576 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1577 here.
1578
1467929f
YQ
15792012-07-31 Yao Qi <yao@codesourcery.com>
1580
1581 * tracepoint.c: Add 'static' for some variables.
1582
70976b65
YQ
15832012-07-31 Yao Qi <yao@codesourcery.com>
1584
1585 * go32-nat.c: Declare _initialize_go32_nat.
1586 * ser-go32.c: Declare _initialize_ser_dos.
1587 * top.c (do_chdir_cleanup): Add 'static'.
1588
eff9c3e6
KS
15892012-07-30 Keith Seitz <keiths@redhat.com>
1590
1591 * linespec.c (linespec_lex_number): A number followed
1592 by quotes is a valid number, too.
1593
728400d7
TT
15942012-07-30 Tom Tromey <tromey@redhat.com>
1595
1596 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1597
fcf303ab
UW
15982012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1599
1600 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1601 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1602
4e969b4f
AB
16032012-07-30 Andrew Burgess <aburgess@broadcom.com>
1604
1605 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1606 invalid or reevaluated to prevent prevent references to possibly
1607 delete'd type objects being left in the varobj.
1608
c4bfde41
JK
16092012-07-27 Tom Tromey <tromey@redhat.com>
1610 Jan Kratochvil <jan.kratochvil@redhat.com>
1611
1612 * copying.awk: Print buffer-read-only and vi ro markers.
1613 * copying.c: Rebuild.
1614 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1615 * gdbarch.c, gdbarch.h: Rebuild.
1616 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1617 buffer-read-only and vi ro markers.
1618 * features/arm-with-iwmmxt.c: Rebuild.
1619 * features/arm-with-m-fpa-layout.c: Rebuild.
1620 * features/arm-with-m-vfp-d16.c: Rebuild.
1621 * features/arm-with-m.c: Rebuild.
1622 * features/arm-with-neon.c: Rebuild.
1623 * features/arm-with-vfpv2.c: Rebuild.
1624 * features/arm-with-vfpv3.c: Rebuild.
1625 * features/i386/amd64-avx-linux.c: Rebuild.
1626 * features/i386/amd64-avx.c: Rebuild.
1627 * features/i386/amd64-linux.c: Rebuild.
1628 * features/i386/amd64.c: Rebuild.
1629 * features/i386/i386-avx-linux.c: Rebuild.
1630 * features/i386/i386-avx.c: Rebuild.
1631 * features/i386/i386-linux.c: Rebuild.
1632 * features/i386/i386-mmx-linux.c: Rebuild.
1633 * features/i386/i386-mmx.c: Rebuild.
1634 * features/i386/i386.c: Rebuild.
1635 * features/i386/x32-avx-linux.c: Rebuild.
1636 * features/i386/x32-avx.c: Rebuild.
1637 * features/i386/x32-linux.c: Rebuild.
1638 * features/i386/x32.c: Rebuild.
1639 * features/mips-dsp-linux.c: Rebuild.
1640 * features/mips-linux.c: Rebuild.
1641 * features/mips64-dsp-linux.c: Rebuild.
1642 * features/mips64-linux.c: Rebuild.
1643 * features/rs6000/powerpc-32.c: Rebuild.
1644 * features/rs6000/powerpc-32l.c: Rebuild.
1645 * features/rs6000/powerpc-403.c: Rebuild.
1646 * features/rs6000/powerpc-403gc.c: Rebuild.
1647 * features/rs6000/powerpc-405.c: Rebuild.
1648 * features/rs6000/powerpc-505.c: Rebuild.
1649 * features/rs6000/powerpc-601.c: Rebuild.
1650 * features/rs6000/powerpc-602.c: Rebuild.
1651 * features/rs6000/powerpc-603.c: Rebuild.
1652 * features/rs6000/powerpc-604.c: Rebuild.
1653 * features/rs6000/powerpc-64.c: Rebuild.
1654 * features/rs6000/powerpc-64l.c: Rebuild.
1655 * features/rs6000/powerpc-7400.c: Rebuild.
1656 * features/rs6000/powerpc-750.c: Rebuild.
1657 * features/rs6000/powerpc-860.c: Rebuild.
1658 * features/rs6000/powerpc-altivec32.c: Rebuild.
1659 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1660 * features/rs6000/powerpc-altivec64.c: Rebuild.
1661 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1662 * features/rs6000/powerpc-cell32l.c: Rebuild.
1663 * features/rs6000/powerpc-cell64l.c: Rebuild.
1664 * features/rs6000/powerpc-e500.c: Rebuild.
1665 * features/rs6000/powerpc-e500l.c: Rebuild.
1666 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1667 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1668 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1669 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1670 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1671 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1672 * features/rs6000/powerpc-vsx32.c: Rebuild.
1673 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1674 * features/rs6000/powerpc-vsx64.c: Rebuild.
1675 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1676 * features/rs6000/rs6000.c: Rebuild.
1677 * features/s390-linux32.c: Rebuild.
1678 * features/s390-linux32v1.c: Rebuild.
1679 * features/s390-linux32v2.c: Rebuild.
1680 * features/s390-linux64.c: Rebuild.
1681 * features/s390-linux64v1.c: Rebuild.
1682 * features/s390-linux64v2.c: Rebuild.
1683 * features/s390x-linux64.c: Rebuild.
1684 * features/s390x-linux64v1.c: Rebuild.
1685 * features/s390x-linux64v2.c: Rebuild.
1686 * features/tic6x-c62x-linux.c: Rebuild.
1687 * features/tic6x-c62x.c: Rebuild.
1688 * features/tic6x-c64x-linux.c: Rebuild.
1689 * features/tic6x-c64x.c: Rebuild.
1690 * features/tic6x-c64xp-linux.c: Rebuild.
1691 * features/tic6x-c64xp.c: Rebuild.
1692
826f0041
TT
16932012-07-27 Tom Tromey <tromey@redhat.com>
1694
1695 * c-exp.y (classify_name): Avoid assignment in condition.
1696
84552b16
PA
16972012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1698
1699 * amd64-windows-tdep.c: Include "frame.h".
1700 (amd64_windows_skip_trampoline_code): New function.
1701 (amd64_windows_init_abi): Add trampoline registration.
1702
a8a64aa8
YQ
17032012-07-27 Yao Qi <yao@codesourcery.com>
1704
1705 * tracepoint.c (cur_traceframe_number): Remove.
1706 (set_tfile_traceframe): Remove.
1707 (tfile_trace_find, tfile_fetch_registers): Update callers.
1708 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1709 (tfile_open, tfile_trace_find): Likewise.
1710
d99067cb
YQ
17112012-07-27 Yao Qi <yao@codesourcery.com>
1712
1713 * thread.c (switch_to_thread): Don't call registers_changed.
1714
f2e8016f
TT
17152012-07-26 Tom Tromey <tromey@redhat.com>
1716
f782ad9b
AS
1717 * Makefile.in (SFILES): Remove objc-exp.y.
1718 (YYFILES): Remove objc-exp.c.
1719 (YYOBJ): Remove objc-exp.o.
1720 (local-maintainer-clean): Don't mention objc-exp.c.
1721 * c-exp.y: Include objc-lang.h.
1722 (%union) <class>: New field.
1723 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1724 (exp): Clone subscript production for OBJC_LBRAC. Add various
1725 Objective C productions.
1726 (msglist, msgarglist, msgarg): New productions.
1727 (array_mod, func_mod, operator): Clone productions for
1728 OBJC_LBRAC.
1729 (parse_string_or_char): Handle '@' strings.
1730 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1731 (classify_name): Check la_name_of_this. Recognize ObjC class
1732 names.
1733 * objc-exp.y: Remove.
1734 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1735 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1736
f66713d2
JK
17372012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1738
1739 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1740
7cfe01b4
JK
17412012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1742
1743 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1744 and decrement.
1745
5ba19b4c
TT
17462012-07-26 Tom Tromey <tromey@redhat.com>
1747
1748 * copying.c: Rebuild.
1749 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1750 'no_class'.
1751
27618ce4
TT
17522012-07-26 Tom Tromey <tromey@redhat.com>
1753
1754 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1755 immediate_quit.
1756 (print_objfile_statistics): Likewise.
1757 (maintenance_print_symbols): Likewise.
1758 (maintenance_print_msymbols): Likewise.
1759 (maintenance_print_objfiles): Likewise.
1760 * psymtab.c (print_partial_symbols): Call QUIT.
1761 (maintenance_print_psymbols): Likewise. Don't modify
1762 immediate_quit.
1763 * copying.c (show_copying_command): Don't modify immediate_quit.
1764 (show_warranty_command): Likewise.
1765 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1766
dd3818c8
KS
17672012-07-26 Keith Seitz <keiths@redhat.com>
1768
1769 * linespec.c (linespec_lexer_lex_number): The input
1770 is also a valid number if the next character is a comma
1771 or colon.
1772
23a80689
JB
17732012-07-26 Joel Brobecker <brobecker@adacore.com>
1774
1775 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1776 configure options.
1777
29f77997
TG
17782012-07-26 Tristan Gingold <gingold@adacore.com>
1779
1780 * machoread.c: Include gdb_bfd.h.
1781
a55c1f32
TG
17822012-07-26 Tristan Gingold <gingold@adacore.com>
1783
1784 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1785 offset.
1786
56eb65bd
SP
17872012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1788
1789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1790 SIZE to size_t.
1791 (dwarf2_evaluate_loc_desc): Likewise.
1792 (dwarf2_loc_desc_needs_frame): Likewise.
1793 (locexpr_describe_location_1): Likewise.
1794 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1795 size_t.
1796 (struct dwarf2_loclist_baton): Likewise.
1797 * dwarf2read.c (struct dwarf_block): Likewise.
1798 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1799 (decode_locdesc): Expand SIZE and I to size_t.
1800
aec8845c
JK
18012012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1802
1803 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1804
33d7655b
JB
18052012-07-25 Joel Brobecker <brobecker@adacore.com>
1806
1807 * doublest.c (convert_doublest_to_floatformat): If the exponent
1808 is too small, treat the value as zero. If the exponent is too
1809 large, treat the value as infinity.
1810
a22d44ff
JB
18112012-07-25 Joel Brobecker <brobecker@adacore.com>
1812
1813 * configure.ac: Add --enable-lmcheck configure option.
1814 * configure: Regenerate.
1815
d6b28940
TT
18162012-07-25 Tom Tromey <tromey@redhat.com>
1817
f782ad9b
AS
1818 * NEWS: Mention maint info bfds.
1819 * gdb_bfd.c (all_bfds): New global.
1820 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1821 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1822 New functions.
d6b28940 1823
6e73ba20
RC
18242012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1825
1826 * configure.tgt: Add v850*-*-rtems*.
1827
d560eebd
TT
18282012-07-25 Tom Tromey <tromey@redhat.com>
1829
1830 * macrotab.c (macro_bcache_str): Remove cast.
1831
d7cbec71
HZ
18322012-07-25 Hui Zhu <hui_zhu@mentor.com>
1833
1834 * linespec.c (linespec_lexer_lex_number): Update comments,
1835 change the return and add check to make sure the input is
1836 the decimal numbers.
1837 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1838 false, call linespec_lexer_lex_string.
1839
882f447f
TT
18402012-07-24 Tom Tromey <tromey@redhat.com>
1841
1842 * symfile.c (symbol_file_add): Don't open BFD twice.
1843
53ab4066 18442012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1845
1846 * breakpoint.c (create_breakpoint): Store condition for pending
1847 breakpoints.
1848
108fb0f7
AS
18492012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1850
1851 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1852 (m68k_return_value): Handle complex types like structures.
1853 (m68k_svr4_return_value): Likewise.
1854
1634dcbe
JK
18552012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1856
1857 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1858 parameters to bfd_get_section_name.
1859
e2d12c21
YQ
18602012-07-24 Yao Qi <yao@codesourcery.com>
1861
1862 * cli/cli-setshow.c: Handle case 'var_uinteger'
1863 and 'var_zuninteger' together. Handle case 'var_integer' and
1864 'var_zinteger' together.
1865
64b92e45
KS
18662012-07-23 Keith Seitz <keiths@redhat.com>
1867
1868 * linespec.c (convert_linespec_to_sal): Don't add
1869 any symbols to the result vector if symbol_to_sal
1870 returns zero.
1871
0f5f4ffe
KS
18722012-07-23 Keith Seitz <keiths@redhat.com>
1873
1874 * linespec.c (decode_objc): Record the function name
1875 in the linespec.
1876
da1cc82f
TT
18772012-07-23 Tom Tromey <tromey@redhat.com>
1878
1879 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1880 counting.
1881 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1882 (map_vmap): Acquire a reference to the BFD.
1883
6c18f3e0
SP
18842012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1885
1886 * p-valprint.c (pascal_object_print_value): Replace potentially
1887 unsafe alloca with xmalloc/xfree.
1888 * valops.c (search_struct_method): Likewise.
1889
695c3173
TT
18902012-07-23 Tom Tromey <tromey@redhat.com>
1891
1892 * solib-svr4.c (enable_break): Update.
1893 * bfd-target.h (target_bfd_reopen): Update documentation.
1894
08d2cd74
TT
18952012-07-23 Tom Tromey <tromey@redhat.com>
1896
1897 * symfile.c (separate_debug_file_exists): Update.
1898 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1899 (reread_symbols): Update.
1900 * elfread.c (build_id_verify): Update.
1901 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1902 bfd_open_maybe_remote.
1903
596f7d67
TT
19042012-07-23 Tom Tromey <tromey@redhat.com>
1905
1906 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1907
8ac244b4
TT
19082012-07-23 Tom Tromey <tromey@redhat.com>
1909
1910 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1911 and 'abfd'.
1912 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1913 and 'abfd'.
1914 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1915 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1916 'abfd'.
1917 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1918 * objfiles.c (allocate_objfile): Acquire a new reference.
1919 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1920 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1921 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1922 a cleanup for 'nbfd'.
1923 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1924 for 'nbfd'.
1925 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1926 make a cleanup for 'abfd'.
1927 (symbol_file_add): Make a BFD cleanup.
1928
64c31149
TT
19292012-07-23 Tom Tromey <tromey@redhat.com>
1930
1931 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1932 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1933 * corelow.c (core_open): Use gdb_bfd_fopen.
1934 * dsrec.c (load_srec): Use gdb_bfd_openr.
1935 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1936 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1937 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1938 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1939 (gdb_bfd_fdopenr): New functions.
1940 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1941 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1942 (gdb_bfd_fdopenr): Declare.
1943 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1944 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1945 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1946 gdb_bfd_openr_next_archived_file.
1947 (macho_check_dsym): Use gdb_bfd_openr.
1948 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1949 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1950 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1951 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1952 gdb_bfd_openr.
1953 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1954 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1955 gdb_bfd_openr_next_archived_file.
1956 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1957 Use gdb_bfd_openr.
1958 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1959 gdb_bfd_openr.
1960 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1961 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1962 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1963 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1964 (symfile_bfd_open): Use gdb_bfd_fopen.
1965 (generic_load): Use gdb_bfd_openr.
1966 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1967
520b0001
TT
19682012-07-23 Tom Tromey <tromey@redhat.com>
1969
1970 * bfd-target.c (target_bfd_reopen): Update.
1971 * cli/cli-dump.c (bfd_openr_with_cleanup)
1972 (bfd_openw_with_cleanup): Update.
1973 * corelow.c (core_open): Update.
1974 * dsrec.c (load_srec): Update.
1975 * exec.c (exec_file_attach): Update.
1976 * gcore.c (create_gcore_bfd): Update.
1977 * gdb_bfd.c (gdb_bfd_ref): Return void.
1978 (gdb_bfd_open): Update.
1979 * gdb_bfd.h (gdb_bfd_ref): Return void.
1980 Update comments.
1981 * jit.c (jit_bfd_try_read_symtab): Update.
1982 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1983 * machoread.c (macho_symfile_read_all_oso): Update.
1984 (macho_check_dsym): Update.
1985 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1986 * remote-m32r-sdi.c (m32r_load): Update.
1987 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1988 * rs6000-nat.c (add_vmap): Update.
1989 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1990 Update.
1991 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1992 * solib-spu.c (spu_bfd_open): Update.
1993 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1994 * spu-linux-nat.c (spu_bfd_open): Update.
1995 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1996 (generic_load): Update.
1997 * windows-nat.c (windows_make_so): Update.
1998
2322ff16
SP
19992012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2000
2001 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2002
3def0b36
PA
20032012-07-20 Jeff Kenton <jkenton@tilera.com>
2004
2005 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2006 SIGTRAMP_FRAME unwinding.
2007
e615022a
DE
20082012-07-20 Doug Evans <dje@google.com>
2009
2010 * NEWS: Document new options "set/show use-deprecated-index-sections",
2011 and delete reference to --use-deprecated-index-sections.
2012 * symfile.h (use_deprecated_index_sections): Delete.
2013 * dwarf2read.c (use_deprecated_index_sections): Make static.
2014 (read_index_from_section): Update wording of how to load
2015 deprecated index sections.
2016 (_initialize_dwarf2_read): New options
2017 "set/show use-deprecated-index-sections".
2018 * main.c (captured_main): Delete --use-deprecated-index-sections.
2019
64776a0b
PA
20202012-07-20 Pedro Alves <palves@redhat.com>
2021
2022 PR threads/11692
2023 PR gdb/12203
2024
2025 * infrun.c (handle_inferior_event) <new thread>: Don't special
2026 case minus_one_ptid.
2027 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2028 * linux-thread-db.c (thread_get_info_callback): Don't return early
2029 if the thread is zombie.
2030 (thread_from_lwp): Change return type to void. Rewrite stale
2031 comment.
2032 (attach_thread): Don't return early if the thread is zombie,
2033 instead set its "dying" flag.
2034 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2035 (find_new_threads_callback): Don't return early if the thread is
2036 zombie.
2037
09826ec5
PA
20382012-07-20 Pedro Alves <palves@redhat.com>
2039
2040 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2041 * target.c (target_wait): Likewise.
2042 (str_comma_list_concat_elem, do_option, target_options_to_string):
2043 New functions.
2044 * target.h (target_options_to_string): Declare.
2045
f7a35f02
TT
20462012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2047 Tom Tromey <tromey@redhat.com>
2048
2049 * dwarf2read.c (dwarf_decode_macros)
2050 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2051 DW_MACRO_GNU_transparent_include_alt>: New cases.
2052 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2053 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2054
b81e1ee0
TT
20552012-07-20 Tom Tromey <tromey@redhat.com>
2056
2057 * dwarf2read.c (try_open_dwo_file): Don't call
2058 gdb_bfd_stash_filename.
2059
99c1624c
PA
20602012-07-20 Pedro Alves <palves@redhat.com>
2061
2062 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2063 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2064 (i386_process_record): Tweak description comments.
2065
4ffa4fc7
PA
20662012-07-20 Pedro Alves <palves@redhat.com>
2067
2068 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2069 (i386_process_record): Use record_read_memory.
2070 * record.c (record_read_memory): New function.
2071 (record_arch_list_add_mem, record_exec_insn): Use
2072 record_read_memory.
2073 * record.h (record_read_memory): Declare.
2074
c24343e2
YQ
20752012-07-20 Yao Qi <yao@codesourcery.com>
2076
2077 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2078 NULL for xfree.
2079
90f47860
PA
20802012-07-19 Pedro Alves <palves@redhat.com>
2081
2082 * record.c (record_resume): Ask the target beneath to report all
2083 signals.
2084
01093045
DE
20852012-07-19 Doug Evans <dje@google.com>
2086
2087 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2088 there's no section at address zero.
2089 (dwarf2_record_block_ranges): Ditto.
2090
a7c3d162
YQ
20912012-07-19 Yao Qi <yao@codesourcery.com>
2092
2093 * command.h, remote.c: Fix a typo in comment.
2094
608b4967
TT
20952012-07-19 Tom Tromey <tromey@redhat.com>
2096
2097 PR exp/13206:
2098 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2099 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2100 OP_DECLTYPE>: New cases.
2101 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2102 (type_exp): Add new productions.
2103 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2104 and decltype.
2105 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2106 New case.
2107 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2108 OP_DECLTYPE>: New case.
2109 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2110 New case.
2111 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2112 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2113
274b54d7
TT
21142012-07-19 Tom Tromey <tromey@redhat.com>
2115
2116 * c-exp.y (enum token_flags): New.
2117 (struct token) <cxx_only>: Remove.
2118 <flags>: New field.
2119 (tokentab3, tokentab2, ident_tokens): Update.
2120 (lex_one_token): Update. Handle FLAG_SHADOW.
2121
9eaf6705
TT
21222012-07-19 Tom Tromey <tromey@redhat.com>
2123
2124 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2125 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2126 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2127 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2128 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2129 type_exp production where appropriate.
2130 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2131 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2132 <UNOP_MEMVAL_TYPE>: New case.
2133 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2134 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2135 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2136 <UNOP_MEMVAL_TYPE>: New case.
2137 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2138 UNOP_REINTERPRET_CAST>: Update.
2139 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2140 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2141 UNOP_REINTERPRET_CAST>: Update.
2142 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2143 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2144 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2145 constants.
2146
6ace3df1
YQ
21472012-07-19 Yao Qi <yao@codesourcery.com>
2148 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2151 and case 'var_optional_filename' together.
2152 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2153 instead of add_setshow_optional_filename_cmd for setshow command
2154 'args'. Set completer for 'set args'.
2155
48faced0
DE
21562012-07-18 Doug Evans <dje@google.com>
2157
2158 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2159 * common/gdb_vecs.c: New file, contents from utils.c.
2160 * common/host-defs.h: New file, contents from defs.h.
2161 * utils.h: New file, contents from defs.h.
2162 * defs.h: Move all declarations of objects defined in utils.c
2163 to utils.h (except QUIT() and related).
2164 #include "utils.h", "host-defs.h".
2165 * probe.h (probe_p): Move here from gdb_vecs.h.
2166 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2167 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2168 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2169 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2170 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2171 (COMMON_OBS): Add gdb_vecs.o.
2172 (gdb_vecs.o): New rule.
2173
66f1999b
KS
21742012-07-18 Keith Seitz <keiths@redhat.com>
2175
2176 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2177 parameter. If non-zero, use SYMNAME as the canonical name
2178 for the SaL.
2179 Update all callers.
2180 (convert_linespec_to_sals): Use add_sal_to_sals for
2181 expressions, too.
2182 (decode_line_full): No need to "fill in missing canonical names"
2183 anymore. Simply make cleanups for the allocated names.
2184
5d94e27b
KS
21852012-07-18 Keith Seitz <keiths@redhat.com>
2186
2187 * linespec.c (struct linespec): Constify expression,
2188 source_filename, function_name, and label_name.
2189 (symbol_not_found_error): Make all parameters const.
2190 (linespec_parser_delete): No need to check for NULL
2191 when using xfree. Cast const char * to char * for xfree.
2192
af4908ba
KS
21932012-07-18 Keith Seitz <keiths@redhat.com>
2194
2195 * breakpoint.c (invalid_thread_id_error): New function.
2196 (find_condition_and_thread): Use invalid_thread_id_error.
2197 (watch_command_1): Likewise.
2198
853254db
TT
21992012-07-18 Tom Tromey <tromey@redhat.com>
2200
2201 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2202 * contrib/cc-with-tweaks.sh: New file.
2203
2ec9a5e0
TT
22042012-07-18 Tom Tromey <tromey@redhat.com>
2205
2206 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2207 (locate_dwz_sections): Recognize .gdb_index.
2208 (create_cus_from_index_list): New function.
2209 (create_cus_from_index): Use it. Handle .dwz data.
2210 (read_index_from_section): New function, extracted from
2211 dwarf2_read_index.
2212 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2213 if needed.
2214
36586728
TT
22152012-07-18 Tom Tromey <tromey@redhat.com>
2216
2217 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2218 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2219 <is_dwz>: New field.
2220 (struct dwz_file): New.
2221 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2222 (locate_dwz_sections, dwarf2_get_dwz_file)
2223 (get_abbrev_section_for_cu): New functions.
2224 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2225 (read_and_check_type_unit_head): Add abbrev_section argument.
2226 (create_debug_types_hash_table): Update.
2227 (init_cutu_and_read_dies): Use proper abbrev section.
2228 (init_cutu_and_read_dies_no_follow): Likewise.
2229 (set_partial_user): Do nothing if PST==NULL.
2230 (read_comp_units_from_section): New function.
2231 (create_all_comp_units): Use it.
2232 (scan_partial_symbols, partial_die_parent_scope): Update.
2233 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2234 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2235 (find_partial_die): Add offset_in_dwz argument. Update.
2236 (guess_partial_die_structure_name, fixup_partial_die): Update.
2237 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2238 DW_FORM_GNU_strp_alt.
2239 (read_indirect_string_from_dwz): New function.
2240 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2241 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2242 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2243 (follow_die_offset): Add offset_in_dwz argument.
2244 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2245 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2246 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2247 Handle new macro forms.
2248 (dwarf_decode_macros): Update.
2249 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2250 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2251 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2252 (create_debug_types_hash_table): Use correct abbrev section.
2253 (get_debug_line_section): New function.
2254 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2255 (process_full_comp_unit): Pass 'required' argument to
2256 end_symtab_get_static_block.
2257 * buildsym.h (end_symtab_get_static_block): Update.
2258 * buildsym.c (end_symtab_get_static_block): Add 'required'
2259 argument.
2260 (end_symtab, end_expandable_symtab): Update.
2261
4bf44c1c
TT
22622012-07-18 Tom Tromey <tromey@redhat.com>
2263
2264 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2265 (pagesize): Remove.
2266 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2267 (zlib_decompress_section): Remove.
2268 (dwarf2_read_section): Use gdb_bfd_map_section.
2269 (munmap_section_buffer): Remove.
2270 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2271 munmap_section_buffer.
2272 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2273 (struct gdb_bfd_section_data): New.
2274 (free_one_bfd_section): New function.
2275 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2276 (get_section_descriptor, zlib_decompress_section)
2277 (gdb_bfd_map_section): New functions.
2278 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2279
bb397797
TT
22802012-07-18 Tom Tromey <tromey@redhat.com>
2281
2282 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2283
6ec53d05
TT
22842012-07-18 Tom Tromey <tromey@redhat.com>
2285
2286 * gdb_bfd.c (struct gdb_bfd_data): New.
2287 (gdb_bfd_cache): New global.
2288 (struct gdb_bfd_cache_search): New.
2289 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2290 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2291 * gdb_bfd.h (gdb_bfd_open): Declare.
2292
f9a062ff
TT
22932012-07-18 Tom Tromey <tromey@redhat.com>
2294
2295 * utils.c (make_cleanup_bfd_unref): Rename from
2296 make_cleanup_bfd_close.
2297 * defs.h (make_cleanup_bfd_unref): Rename from
2298 make_cleanup_bfd_close.
2299 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2300 (bfd_openw_with_cleanup): Update.
2301 * corelow.c (core_open): Update.
2302 * dsrec.c (load_srec): Update.
2303 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2304 * remote-m32r-sdi.c (m32r_load): Update.
2305 * remote-mips.c (mips_load_srec): Update.
2306 (pmon_load_fast): Update.
2307 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2308 Update.
2309 (darwin_bfd_open): Update.
2310 * solib.c (solib_bfd_fopen): Update.
2311 * symfile-mem.c (symbol_file_add_from_memory): Update.
2312 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2313 (symfile_bfd_open): Update.
2314 (generic_load): Update.
2315
d6ad71ba
TT
23162012-07-18 Tom Tromey <tromey@redhat.com>
2317
2318 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2319 (pmon_load_fast): Likewise.
2320 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2321 (m32r_upload_command): Likewise.
2322 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2323 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2324 Use make_cleanup_bfd_close.
2325
a4453b7e
TT
23262012-07-18 Tom Tromey <tromey@redhat.com>
2327
2328 * symfile.c (symfile_bfd_open): Don't copy name. Call
2329 gdb_bfd_stash_filename.
2330 (load_command): Open the new BFD before freeing the old.
2331 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2332 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2333 Call gdb_bfd_stash_filename.
2334 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2335 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2336 gdb_bfd_stash_filename.
2337 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2338 Free found_pathname.
2339 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2340 gdb_bfd_stash_filename.
2341 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2342 * machoread.c (macho_add_oso_symfile): Call
2343 gdb_bfd_stash_filename.
2344 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2345 gdb_bfd_stash_filename.
2346 (macho_check_dsym): Don't copy filename. Call
2347 gdb_bfd_stash_filename.
2348 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2349 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2350 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2351 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2352 * exec.c (exec_close): Don't free the BFD's filename.
2353 (exec_file_attach): Don't copy the filename. Call
2354 gdb_bfd_stash_filename.
2355 * corelow.c (core_close): Don't free the BFD's filename.
2356 (core_open): Call gdb_bfd_stash_filename.
2357 * corefile.c (reopen_exec_file): Remove #if 0 code.
2358 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2359 pathname.
2360 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2361
cbb099e8
TT
23622012-07-18 Tom Tromey <tromey@redhat.com>
2363
2364 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2365 gdb_bfd_unref.
2366 (free_dwo_file): Use gdb_bfd_unref.
2367 * cli/cli-dump.c: Include gdb_bfd.h.
2368 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2369 (bfd_openr_with_cleanup): Likewise.
2370 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2371 gdb_bfd_unref.
2372 * utils.c: Include gdb_bfd.h.
2373 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2374 * symfile.c: Include gdb_bfd.h.
2375 (separate_debug_file_exists): Use gdb_bfd_unref.
2376 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2377 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2378 (generic_load): Use gdb_bfd_ref.
2379 (reread_symbols): Use gdb_bfd_unref.
2380 * symfile-mem.c: Include gdb_bfd.h.
2381 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2382 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2383 * solib.c: Include gdb_bfd.h.
2384 (solib_bfd_fopen): Use gdb_bfd_ref.
2385 (solib_bfd_open): Use gdb_bfd_unref.
2386 (free_so_symbols): Use gdb_bfd_unref.
2387 (reload_shared_libraries_1): Use gdb_bfd_unref.
2388 * solib-spu.c: Include gdb_bfd.h.
2389 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2390 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2391 gdb_bfd_unref.
2392 * solib-frv.c: Include gdb_bfd.h.
2393 (enable_break2): Use gdb_bfd_unref.
2394 * solib-dsbt.c: Include gdb_bfd.h.
2395 (enable_break2): Use gdb_bfd_unref.
2396 * solib-darwin.c: Include gdb_bfd.h.
2397 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2398 gdb_bfd_unref.
2399 (darwin_bfd_open): Use gdb_bfd_unref.
2400 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2401 * remote-mips.c: Include gdb_bfd.h.
2402 (mips_load_srec): Use gdb_bfd_ref.
2403 (pmon_load_fast): Use gdb_bfd_ref.
2404 * remote-m32r-sdi.c: Include gdb_bfd.h.
2405 (m32r_load): Use gdb_bfd_ref.
2406 * record.c: Include gdb_bfd.h.
2407 (record_save_cleanups): Use gdb_bfd_unref.
2408 (cmd_record_save): Use gdb_bfd_unref.
2409 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2410 gdb_bfd_unref.
2411 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2412 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2413 * objfiles.c: Include gdb_bfd.h.
2414 (free_objfile): Use gdb_bfd_unref.
2415 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2416 gdb_bfd.c.
2417 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2418 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2419 (macho_check_dsym): Likewise.
2420 * m32r-rom.c: Include gdb_bfd.h.
2421 (m32r_load): Use gdb_bfd_ref.
2422 (m32r_upload_command): Use gdb_bfd_ref.
2423 * jit.c: Include gdb_bfd.h.
2424 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2425 * gdb_bfd.h: New file.
2426 * gdb_bfd.c: New file.
2427 * gcore.c: Include gdb_bfd.h.
2428 (create_gcore_bfd): Use gdb_bfd_ref.
2429 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2430 (gcore_command): Use gdb_bfd_unref.
2431 * exec.c: Include gdb_bfd.h.
2432 (exec_close): Use gdb_bfd_unref.
2433 (exec_close_1): Use gdb_bfd_unref.
2434 (exec_file_attach): Use gdb_bfd_ref.
2435 * elfread.c: Include gdb_bfd.h.
2436 (build_id_verify): Use gdb_bfd_unref.
2437 * dsrec.c: Include gdb_bfd.h.
2438 (load_srec): Use gdb_bfd_ref.
2439 * corelow.c: Include gdb_bfd.h.
2440 (core_close): Use gdb_bfd_unref.
2441 (core_open): Use gdb_bfd_ref.
2442 * bfd-target.c: Include gdb_bfd.h.
2443 (target_bfd_xclose): Use gdb_bfd_unref.
2444 (target_bfd_reopen): Use gdb_bfd_ref.
2445 * Makefile.in (SFILES): Add gdb_bfd.c.
2446 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2447 (COMMON_OBS): Add gdb_bfd.o.
2448
ed1d1739
KS
24492012-07-18 Keith Seitz <keiths@redhat.com>
2450
2451 * breakpoint.c (find_condition_and_thread): Initialize
2452 TASK and REST.
2453 (create_breakpiont): find_condition_and_thread will now
2454 initialize COND_STRING, THREAD, and REST (and TASK).
2455 (addr_string_to_sals): Likewise.
2456
eab402df
PA
24572012-07-18 Pedro Alves <palves@redhat.com>
2458
2459 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2460 Pull the single step breakpoints out of the target.
2461
2b963b68
SDJ
24622012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2463
2464 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2465 * stap-probe.c (compile_probe_arg): Likewise.
2466
6bac7473
SDJ
24672012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2468
2469 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2470 (elf_compile_to_ax): Likewise.
2471 * infrun.c (insert_exception_resume_from_probe): Likewise.
2472 (check_exception_resume): Remove `objfile' variable.
2473 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2474 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2475 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2476 (compare_entries): Rename to...
2477 (compare_probes): ...this. Adjust function to work with
2478 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2479 respectively.
2480 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2481 `VEC (probe_p) *'.
2482 (print_ui_out_info): Adjust argument to be `struct probe *'.
2483 (info_probes_for_ops): Adjust internal computations to use
2484 `VEC (probe_p) *'.
2485 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2486 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2487 gen_info_probes_table_values>: Remove `objfile' argument.
2488 (struct probe) <objfile>: New field.
2489 (find_probe_by_pc): Remove `objfile' argument.
2490 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2491 (stap_get_probe_argument_count): Likewise.
2492 (stap_get_arg): Likewise.
2493 (stap_evaluate_probe_argument): Likewise.
2494 (stap_compile_to_ax): Likewise.
2495 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2496 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2497 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2498 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2499 sym_compile_to_ax>: Likewise.
2500
3347eb1a 25012012-07-18 Terry Guo <terry.guo@arm.com>
2502
2503 PR 14329
2504 * defs.h (GDB_MI_MSG_WIDTH): New.
2505 * ser_base (ser_base_read_error_fd): New function.
2506 (do_ser_base_readchar): Poll error file descriptor as well as
2507 standard output.
f782ad9b 2508 (generic_readchar): Refactor error handling.
3347eb1a 2509
80c8d323
JB
25102012-07-18 Joel Brobecker <brobecker@adacore.com>
2511
2512 * NEWS: Create a new section for the next release branch.
2513 Rename the section of the current branch, now that it has
2514 been cut.
2515
b45a0664 25162012-07-18 Joel Brobecker <brobecker@adacore.com>
2517
2518 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2519 * version.in: Bump version to 7.5.50.20120718-cvs.
2520
09cf2b22
KS
25212012-07-17 Keith Seitz <keiths@redhat.com>
2522
2523 * linespec.c (linespec_parse_line_offset): Make parameter
2524 const.
2525
8f043999
JK
25262012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2527
2528 PR 11914
2529 * f-valprint.c (info_common_command): New variable frame_id.
2530 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2531 * printcmd.c (print_variable_and_value): Extend function comment.
2532 Add comment for invalidated FRAME.
2533 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2534 FI form FRAME_ID after each print_frame_local_vars.
2535 (struct print_variable_and_value_data): Change frame to frame_id.
2536 (do_print_variable_and_value): New variable frame, initialize it from
2537 p->frame_id. Add comment for invalidated FRAME.
2538 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2539 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2540 for invalidated FRAME.
2541
ae5e0686
MK
25422012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2543 Pedro Alves <palves@redhat.com>
2544
2545 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2546 loop.
2547
5049c5be
TT
25482012-07-16 Tom Tromey <tromey@redhat.com>
2549
2550 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2551
2908cac6
DE
25522012-07-15 Doug Evans <dje@google.com>
2553
094b34ac
DE
2554 * dwarf2read.c (stmt_list_hash): New struct.
2555 (type_unit_group): Embed "per_cu" member, remove pointer.
2556 New union member "t", move member "tus" into it, all uses updated.
2557 New member "hash", replaces member "line_offset, all uses updated.
2558 (quick_file_names): Replace member "offset" with "hash", all uses
2559 updated.
2560 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2561 (hash_file_name_entry, eq_file_name_entry): Call them.
2562 (hash_type_unit_group, eq_type_unit_group): Ditto.
2563 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2564 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2565 (dw2_get_file_names): Update.
2566 (create_type_unit_group): Replace "per_cu" arg with "cu".
2567 All callers updated. Fix "quick" (.gdb_index) handling.
2568 (get_type_unit_group): Replace "per_cu" arg with "cu".
2569 All callers updated.
2570 (build_type_unit_groups): Don't reset tu_stats.
2571
2908cac6
DE
2572 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2573 "tab_cur_size". Change member "tab" to be a htab_t.
2574 (create_filename_seen_cache): Update.
2575 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2576 (filename_seen): Update.
2577
a2b6eff5
DE
25782012-07-13 Doug Evans <dje@google.com>
2579
2580 * symtab.c (filename_seen): Update comment.
2581
4359dff1
JK
25822012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2583 Doug Evans <dje@google.com>
2584
2585 * buildsym.c (end_symtab_1): Split it to ...
2586 (end_symtab_get_static_block): ... this ...
2587 (end_symtab_from_static_block): ... and this function.
2588 (end_symtab, end_expandable_symtab): Call them.
2589 * buildsym.h (end_symtab_get_static_block)
2590 (end_symtab_from_static_block): New declarations.
2591 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2592 Set its valid CU ranges.
2593
a24f71ab
JK
25942012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2597 DW_OP_GNU_parameter_ref.
2598
d76b7dbc
JK
25992012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2600
2601 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2602 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2603
9fdc877b
DE
26042012-07-13 Doug Evans <dje@google.com>
2605
2606 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2607 (filename_seen_cache): New struct.
2608 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2609 (create_filename_seen_cache): New function.
2610 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2611 (filename_seen): Delete arg "first". New arg "cache". All callers
2612 updated.
2613 (output_source_filename_data): New struct.
2614 (output_source_filename): Delete arg "first". New arg "data".
2615 All callers updated.
2616 (sources_info): Delete local "first". New locals "data", "cleanups".
2617 Rewrite to use filename_seen_cache.
2618 (add_partial_filename_data): Delete member "first". New member
2619 "filename_seen_cache". All uses updated.
2620 (make_source_files_completion_list): Rewrite to use
2621 filename_seen_cache.
2622
f80c6f3f
DE
26232012-07-12 Doug Evans <dje@google.com>
2624
2625 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2626
0bfa869d
DE
26272012-07-10 Doug Evans <dje@google.com>
2628
f4dc4d17
DE
2629 PR gdb/13498
2630 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2631 all_type_unit_groups, type_unit_groups, tu_stats.
2632 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2633 All uses updated. Add type_unit_group to union "s".
2634 (type_unit_group): New struct.
2635 (IS_TYPE_UNIT_GROUP): New macro.
2636 (abbrev_table): Delete unused member "section".
2637 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2638 (dw2_get_cu): Assert not used with type_unit_group.
2639 (dw2_get_primary_cu): New function.
2640 (dw2_build_type_unit_groups_reader): New function.
2641 (dw2_build_type_unit_groups): New function.
2642 (dw2_get_file_names): Assert not called on type units.
2643 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2644 Redo loop to iterate over type unit groups instead of type units.
2645 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2646 (read_abbrev_offset): New function.
2647 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2648 updated.
2649 (create_partial_symtab): New function.
2650 (process_psymtab_comp_unit_reader): Assert not used with type units.
2651 Call create_partial_symtab.
2652 (process_psymtab_type_unit): Delete.
2653 (hash_type_unit_group, eq_type_unit_group): New functions.
2654 (allocate_type_unit_groups_table): New function.
2655 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2656 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2657 (create_type_unit_group, get_type_unit_group): New functions.
2658 (tu_abbrev_offset): New struct.
2659 (sort_tu_by_abbrev_offset): New function.
2660 (add_type_unit_group_to_table): New function.
2661 (build_type_unit_groups): New function.
2662 (build_type_psymtabs_reader): New function.
2663 (build_type_psymtab_dependencies): New function.
2664 (build_type_psymtabs): Rewrite.
2665 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2666 is seen in a type unit.
2667 (process_queue): Move symtab expansion debugging printfs here.
2668 Call process_full_type_unit for type units.
2669 (compute_symtab_includes): Assert not called for type units.
2670 (process_cu_includes): Don't call compute_symtab_includes for
2671 type units.
2672 (process_full_type_unit): New function.
2673 (process_imported_unit_die): Flag an error if called for type units.
2674 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2675 updated. Assert not called for type units.
2676 (read_file_scope): Call dwarf2_start_symtab.
2677 (setup_type_unit_groups): New function.
2678 (read_type_unit_scope): Rewrite.
2679 (abbrev_table_read_table): Initialize abbrev_table->offset.
2680 (abbrev_table_free_cleanup): New function.
2681 (dwarf2_start_symtab): New function.
2682 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2683 * buildsym.c (finish_block_internal): New arg "expandable".
2684 All callers updated.
2685 (start_symtab): Move most contents to ...
2686 (restart_symtab): ... here. New function.
2687 (reset_symtab_globals): New function.
2688 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2689 Call reset_symtab_globals.
2690 (end_symtab, end_expandable_symtab): New functions.
2691 (set_missing_symtab, augment_type_symtab): New functions.
2692 * buildsym.h (end_expandable_symtab): Declare.
2693 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2694 * psympriv.h (struct partial_symtab): New member "anonymous".
2695 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2696 anonymous psymtabs.
2697 (read_psymtabs_with_filename): Ditto.
2698 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2699 (expand_symtabs_matching_via_partial): Ditto.
2700 (dump_psymtab): Update.
0bfa869d
DE
2701 * dictionary.c (dict_add_pending): New function.
2702 * dictionary.h (dict_add_pending): Declare.
2703
45e58e77
DE
27042012-07-09 Doug Evans <dje@google.com>
2705
b74db436
DE
2706 * buildsym.c (start_subfile): Remove unnecessary check for
2707 name == NULL.
2708
fd55216c
DE
2709 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2710
6721b2ec
DE
2711 * dwarf2read.c (load_full_type_unit): Simplify.
2712
b4dd5633
DE
2713 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2714 to struct signatured_type **. All uses updated.
2715
45e58e77
DE
2716 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2717 All callers updated.
2718
e314d629
TT
27192012-07-09 Tom Tromey <tromey@redhat.com>
2720
2721 * c-exp.y (check_parameter_typelist): New function.
2722 (parameter_typelist): Call it.
2723 * eval.c (make_params): Handle '(void)' case.
2724 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2725 '(void)' case.
2726
aa7c7447
JK
27272012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2728
2729 * common/linux-ptrace.c: Include gdb_assert.h.
2730 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2731 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2732 stdint.h.
2733 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2734 functions.
2735 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2736 * linux-nat.c (linux_child_post_attach)
2737 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2738
889003ed
JK
27392012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2740
2741 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2742 nptl <2.7 bug workaround for core files.
2743
da559b09
JK
27442012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2745
2746 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2747 clearing.
2748 (save_siginfo): Remove.
2749 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2750 call.
2751 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2752 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2753 * linux-nat.h (struct lwp_info): Remove field siginfo.
2754
f865ee35
JK
27552012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2756
2757 Code cleanup for the next patch.
2758 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2759 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2760 call for it.
2761 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2762 (ia64_linux_stopped_data_address):
2763 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2764 the return value.
2765 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2766 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2767 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2768 call for it.
2769
76b83c51
JK
27702012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2771
2772 PR 14321
2773 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2774 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2775
a6fb9c08
TT
27762012-07-06 Tom Tromey <tromey@redhat.com>
2777
2778 * c-exp.y (DOTDOTDOT): New token.
2779 (func_mod, exp): Use parameter_typelist.
2780 (parameter_typelist): New production.
2781 (tokentab3): Add "..." token.
2782 * eval.c (make_params): Handle varargs.
2783 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2784 varargs.
2785
71918a86
TT
27862012-07-06 Tom Tromey <tromey@redhat.com>
2787
2788 PR exp/9608:
2789 * c-exp.y (%union) <tvec>: Change type.
2790 (func_mod): Now uses <tvec> type.
2791 (exp): Update for tvec change.
2792 (direct_abs_decl): Push the typelist.
2793 (func_mod): Return a typelist.
2794 (nonempty_typelist): Update for tvec change.
2795 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2796 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2797 * parse.c (pop_type_list): New function.
2798 (push_typelist): New function.
2799 (follow_types): Handle tp_function_with_arguments.
2800 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2801 (enum type_pieces) <tp_function_with_arguments>: New constant.
2802 (union type_stack_elt) <typelist_val>: New field.
2803 (push_typelist): Declare.
2804
fcde5961
TT
28052012-07-06 Tom Tromey <tromey@redhat.com>
2806
2807 * c-exp.y (%union) <type_stack>: New field.
2808 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2809 (ptr_operator_ts): New production.
2810 (ptype): Update.
2811 * parse.c (type_stack_reserve): New function.
2812 (check_type_stack_depth): Use it.
2813 (pop_type_stack, append_type_stack, push_type_stack)
2814 (get_type_stack, type_stack_cleanup): New functions.
2815 (follow_types): Handle tp_type_stack.
2816 (_initialize_parse): Simplify initialization.
2817 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2818 constant.
2819 (union type_stack_elt) <stack_val>: New field.
2820 (get_type_stack, append_type_stack, push_type_stack)
2821 (type_stack_cleanup): Declare.
2822
1a7d0ce4
TT
28232012-07-06 Tom Tromey <tromey@redhat.com>
2824
2825 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2826 Remove.
2827 (struct type_stack): New.
2828 * parse.c (type_stack, type_stack_size, type_stack_depth):
2829 Remove.
2830 (type_stack): New global.
2831 (parse_exp_in_context, check_type_stack_depth)
2832 (insert_into_type_stack, insert_type, push_type, push_type_int)
2833 (insert_type_address_space, pop_type, pop_type_int)
2834 (_initialize_parse): Update.
2835
16d01384
TT
28362012-07-06 Tom Tromey <tromey@redhat.com>
2837
2838 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2839 Remove %type.
2840
9bfc60bf
SP
28412012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2842
2843 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2844
d5161074
SP
28452012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2846 Jan Kratochvil <jan.kratochvil@redhat.com>
2847
2848 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2849 alloca with xmalloc/xfree.
2850
a74bc576
SP
28512012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2852
2853 * MAINTAINERS (Write After Approval): Add myself to the list.
2854
667e0a4b
DE
28552012-07-05 Doug Evans <dje@google.com>
2856
2857 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2858
34b536a8
HZ
28592012-07-05 Hui Zhu <hui_zhu@mentor.com>
2860
2861 * ax-gdb.c (cli/cli-utils.h): New include.
2862 (linespec.h): Ditto.
2863 (agent_eval_command_one): New function.
2864 (agent_command_1): Ditto.
2865 (agent_command): Call function agent_command_1.
2866 (agent_eval_command): Ditto.
2867 (_initialize_ax_gdb): Change help for "maint agent"
2868 and "maint agent-eval".
2869
e6f0bce7
HZ
28702012-07-05 Hui Zhu <hui_zhu@mentor.com>
2871
2872 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2873 * cli/cli-utils.c (check_for_argument): New function.
2874 * cli/cli-utils.h (check_for_argument): Ditto.
2875
1b3371b1
L
28762012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2877
2878 * NEWS: Mention x32 ABI support.
2879
23e2d720
L
28802012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2881
2882 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2883 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2884
2885 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2886 and pc_regnum_from_eax to -1. Update SP regnum from
2887 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2888 needed.
2889
2890 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2891 pc_regnum_from_eax.
2892
836bf454
JK
28932012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2894
2895 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2896 * dwarf2expr.h: Include gdbtypes.h.
2897 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2898 these forward declarations.
2899 (cu_offset, sect_offset): Move these ...
2900 * gdbtypes.h: Remove include dwarf2expr.h.
2901 (cu_offset, sect_offset): ... here.
2902
1e55e04f
L
29032012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2904
2905 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2906 (amd64_linux_sigtramp_code): This.
2907 (amd64_x32_linux_sigtramp_code): New.
2908 (LINUX_SIGTRAMP_LEN): Updated.
2909 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2910
7d0e21ad
JK
29112012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2912
2913 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2914
8775fd2d
JK
29152012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 * config.in: Regenerate.
2918 * configure: Regenerate.
2919 * configure.ac: Remove check for gnu/libc-version.h.
2920 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2921 gnu/libc-version.h.
2922 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2923 variables libc_version, libc_major and libc_minor. Replace sscanf by
2924 inferior_has_bug. Extend the comment.
2925
fcb44371
JK
29262012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2927
2928 * linux-thread-db.c (inferior_has_bug): New function.
2929 (thread_db_find_new_threads_silently): Return boolean as checked by
2930 inferior_has_bug, describe it in the comments.
2931 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2932 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2933 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2934 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2935 if UNTIL_NO_NEW,
2936
09406207
DE
29372012-07-02 Doug Evans <dje@google.com>
2938
0907af0c
DE
2939 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2940 related to queue management.
2941
09406207
DE
2942 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2943 instead of "debug dwarf2-die" in debugging printfs.
2944 (create_debug_info_hash_table_reader): Ditto.
2945 (create_debug_info_hash_table): Ditto.
2946 (init_dwo_file): Ditto.
2947 (init_cutu_and_read_dies): Add debugging printf.
2948 (init_cutu_and_read_dies_no_follow): Ditto.
2949 (process_psymtab_comp_unit_reader): Ditto.
2950
d3ce09f5
SS
29512012-07-02 Stan Shebs <stan@codesourcery.com>
2952
2953 Add target-side support for dynamic printf.
2954 * NEWS: Mention the additional style.
2955 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2956 (struct bp_location): New field cmd_bytecode.
2957 * breakpoint.c: Include format.h.
2958 (disconnected_dprintf): New global.
2959 (parse_cmd_to_aexpr): New function.
2960 (build_target_command_list): New function.
2961 (insert_bp_location): Call it.
2962 (remove_breakpoints_pid): Skip dprintf breakpoints.
2963 (print_one_breakpoint_location): Ditto.
2964 (dprintf_style_agent): New global.
2965 (dprintf_style_enums): Add dprintf_style_agent.
2966 (update_dprintf_command_list): Add agent case.
2967 (agent_printf_command): New function.
2968 (_initialize_breakpoint): Add new commands.
2969 * common/ax.def (printf): New bytecode.
2970 * ax.h (ax_string): Declare.
2971 * ax-gdb.h (gen_printf): Declare.
2972 * ax-gdb.c: Include cli-utils.h, format.h.
2973 (gen_printf): New function.
2974 (maint_agent_print_command): New function.
2975 (_initialize_ax_gdb): Add maint agent-printf command.
2976 * ax-general.c (ax_string): New function.
2977 (ax_print): Add printf disassembly.
2978 * Makefile.in (SFILES): Add format.c
2979 (COMMON_OBS): Add format.o.
2980 * common/format.h: New file.
2981 * common/format.c: New file.
2982 * printcmd.c: Include format.h.
2983 (ui_printf): Call parse_format_string.
2984 * remote.c (remote_state): New field breakpoint_commands.
2985 (PACKET_BreakpointCommands): New enum.
2986 (remote_breakpoint_commands_feature): New function.
2987 (remote_protocol_features): Add new BreakpointCommands entry.
2988 (remote_can_run_breakpoint_commands): New function.
2989 (remote_add_target_side_commands): New function.
2990 (remote_insert_breakpoint): Call it.
2991 (remote_insert_hw_breakpoint): Ditto.
2992 (_initialize_remote): Add new packet configuration for
2993 target-side breakpoint commands.
2994 * target.h (struct target_ops): New field
2995 to_can_run_breakpoint_commands.
2996 (target_can_run_breakpoint_commands): New macro.
2997 * target.c (update_current_target): Handle
2998 to_can_run_breakpoint_commands.
2999
2d7b58e8
JK
30002012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3001
3002 Execute -ix and -iex only after system and user gdbinit files.
3003 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3004 processing down after gdbinit files.
3005
8690e634
JK
30062012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3007
3008 Add fnmatch-gnu module.
3009 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3010 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3011 * gnulib/aclocal.m4: Regenerate.
3012 * gnulib/config.in: Regenerate.
3013 * gnulib/configure: Regenerate.
3014 * gnulib/import/dummy.c: Remove.
3015 * gnulib/import/Makefile.am: Regenerate.
3016 * gnulib/import/Makefile.in: Likewise.
3017 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3018 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3019 * gnulib/import/alloca.c: New file.
3020 * gnulib/import/alloca.in.h: Likewise.
3021 * gnulib/import/config.charset: Likewise.
3022 * gnulib/import/fnmatch.c: Likewise.
3023 * gnulib/import/fnmatch.in.h: Likewise.
3024 * gnulib/import/fnmatch_loop.c: Likewise.
3025 * gnulib/import/localcharset.c: Likewise.
3026 * gnulib/import/localcharset.h: Likewise.
3027 * gnulib/import/m4/alloca.m4: Likewise.
3028 * gnulib/import/m4/codeset.m4: Likewise.
3029 * gnulib/import/m4/configmake.m4: Likewise.
3030 * gnulib/import/m4/fcntl-o.m4: Likewise.
3031 * gnulib/import/m4/fnmatch.m4: Likewise.
3032 * gnulib/import/m4/glibc21.m4: Likewise.
3033 * gnulib/import/m4/localcharset.m4: Likewise.
3034 * gnulib/import/m4/locale-fr.m4: Likewise.
3035 * gnulib/import/m4/locale-ja.m4: Likewise.
3036 * gnulib/import/m4/locale-zh.m4: Likewise.
3037 * gnulib/import/m4/mbrtowc.m4: Likewise.
3038 * gnulib/import/m4/mbsinit.m4: Likewise.
3039 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3040 * gnulib/import/m4/mbstate_t.m4: Likewise.
3041 * gnulib/import/m4/stdbool.m4: Likewise.
3042 * gnulib/import/m4/wchar_h.m4: Likewise.
3043 * gnulib/import/m4/wctype_h.m4: Likewise.
3044 * gnulib/import/m4/wint_t.m4: Likewise.
3045 * gnulib/import/mbrtowc.c: Likewise.
3046 * gnulib/import/mbsinit.c: Likewise.
3047 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3048 * gnulib/import/mbsrtowcs-state.c: Likewise.
3049 * gnulib/import/mbsrtowcs.c: Likewise.
3050 * gnulib/import/ref-add.sin: Likewise.
3051 * gnulib/import/ref-del.sin: Likewise.
3052 * gnulib/import/stdbool.in.h: Likewise.
3053 * gnulib/import/streq.h: Likewise.
3054 * gnulib/import/strnlen1.c: Likewise.
3055 * gnulib/import/strnlen1.h: Likewise.
3056 * gnulib/import/verify.h: Likewise.
3057 * gnulib/import/wchar.in.h: Likewise.
3058 * gnulib/import/wctype.in.h: Likewise.
3059
202cbf1c
JK
30602012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3061
3062 Support shell wildcards for 'set auto-load safe-path'.
3063 * auto-load.c: Include fnmatch.h.
3064 (filename_is_in_dir): Rename to ...
3065 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3066 it. Update function comment. Rename dir_len to pattern_len. New
3067 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3068 messages. Use gdb_filename_fnmatch.
3069 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3070 pattern.
3071 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3072 * defs.h (gdb_filename_fnmatch): New declaration.
3073 * utils.c: Include fnmatch.h.
3074 (gdb_filename_fnmatch): New function.
3075
fb7b5af4
SDJ
30762012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3077
3078 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3079 `-probe' and `-probe-stap' options.
3080
72d0e2c5
YQ
30812012-07-01 Yao Qi <yao@codesourcery.com>
3082
3083 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3084 always_inserted_off, and always_inserted_enums.
3085 Change always_inserted_mode's type to 'enum auto_boolean'.
3086 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3087 callers.
3088 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3089 of add_setshow_enum_cmd.
3090 * infrun.c: Remove can_use_displaced_stepping_auto,
3091 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3092 can_use_displaced_stepping_enum.
3093 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3094 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3095 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3096 add_setshow_enum_cmd.
3097
42e7ad6c
DE
30982012-06-30 Doug Evans <dje@google.com>
3099
3100 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3101 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3102 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3103
39cf75f7
DE
31042012-06-29 Doug Evans <dje@google.com>
3105
3106 * linespec.c: #include "stack.h".
3107 (decode_line_with_current_source): Moved here from symtab.c and
3108 renamed from decode_line_spec. All callers updated.
3109 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3110 renamed from decode_line_spec_1. All callers updated.
3111 * linespec.h (decode_line_with_current_source): Move declaration here
3112 from symtab.h and renamed from decode_line_spec.
3113 (decode_line_with_last_displayed): Move declaration here from symtab.h
3114 and renamed from decode_line_spec_1.
3115 * macrocmd.c: #include "linespec.h".
3116 * symtab.c: Remove #include "linespec.h".
3117
433df2d4
DE
31182012-06-28 Doug Evans <dje@google.com>
3119
1ce1cefd
DE
3120 * dwarf2read.c (get_cu_length): New function.
3121 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3122 (create_debug_types_hash_table): Ditto.
3123 (init_cutu_and_read_dies): Ditto.
3124 (init_cutu_and_read_dies_no_follow): Ditto.
3125
3b80fe9b
DE
3126 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3127
433df2d4
DE
3128 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3129 (struct abbrev_table): Define.
3130 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3131 abbrev_table.
3132 (init_cutu_and_read_dies): Update.
3133 (abbrev_table_alloc_abbrev): New function. Replaces
3134 dwarf_alloc_abbrev. All callers updated.
3135 (abbrev_table_add_abbrev): New function.
3136 (abbrev_table_lookup_abbrev): New function. Replaces
3137 dwarf2_lookup_abbrev. All callers updated.
3138 (abbrev_table_read_table): New function. Contents moved here from
3139 dwarf2_read_abbrevs.
3140 (dwarf2_read_abbrevs): Call it.
3141 (abbrev_table_free): New function.
3142 (dwarf2_free_abbrev_table): Call it.
3143
71caed83
SS
31442012-06-28 Stan Shebs <stan@codesourcery.com>
3145
3146 * osdata.c (info_osdata_command): Filter out "Title" columns
3147 from non-MI uses.
3148 * common/linux-osdata.c (struct osdata_type): Add title field.
3149 (osdata_table): Add titles to each entry.
3150 (linux_command_xfer_osdata): Add a column for title data.
3151
37ce89eb
SS
31522012-06-28 Stan Shebs <stan@codesourcery.com>
3153
3154 Make logging work for MI.
3155 * NEWS: Mention it.
3156 * interps.h (interp_set_logging_ftype): New typedef.
3157 (struct interp_procs): New field set_logging_proc.
3158 (current_interp_set_logging): Declare.
3159 * interps.c (current_interp_set_logging): New function.
3160 * cli/cli-logging.c: Include interps.h.
3161 (set_logging_redirect): Call current_interp_set_logging.
3162 (pop_output_files): Ditto.
3163 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3164 * mi/mi-console.h (mi_console_set_raw): Declare.
3165 * mi/mi-console.c (mi_console_set_raw): New function.
3166 * mi/mi-interp.c (saved_raw_stdout): New global.
3167 (mi_set_logging): New function.
3168 (_initialize_mi_interp): Add it to interp procs.
3169
659c9f3a
DE
31702012-06-28 Doug Evans <dje@google.com>
3171
a743abeb
DE
3172 * symtab.c (lookup_symbol_aux_objfile): Use
3173 ALL_OBJFILE_PRIMARY_SYMTABS.
3174
659c9f3a
DE
3175 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3176
da2d6d3d
JK
31772012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3178
3179 * common/buffer.c: Include inttypes.h and stdint.h.
3180 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3181
e5ef252a
PA
31822012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3183 Pedro Alves <palves@redhat.com>
3184
3185 * gdbthread.h (ALL_THREADS): New macro.
3186 (thread_list): Declare.
3187 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3188 going, but instead fall through to the stepping handling.
3189 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3190 the passed in signal. Adjust debug output.
3191 (resume_callback): Rename to ...
3192 (linux_nat_resume_callback): ... this. Pass the thread's last
3193 stop signal, if in "pass" state.
3194 (linux_nat_resume): Adjust to rename.
3195 (stop_wait_callback): New assertion. Don't respawn signals;
3196 instead let the LWP remain with SIGNALLED set.
3197 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3198 * remote.c (append_pending_thread_resumptions): New.
3199 (remote_vcont_resume): Call it.
3200 * target.h (target_resume): Extend comment.
3201
1d7975eb
IS
32022012-06-28 Iain Sandoe <iain@codesourcery.com>
3203
3204 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3205
2e3cf129
DE
32062012-06-27 Doug Evans <dje@google.com>
3207
3208 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3209 Delete have_addr_base, unused. All uses updated.
3210 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3211 (dwarf2_get_pc_bounds): Add ranges_base.
3212 (dwarf2_record_block_ranges): Ditto.
3213
1bb9788d
TT
32142012-06-27 Tom Tromey <tromey@redhat.com>
3215
3216 PR macros/7961:
3217 * varobj.c (varobj_create): Update.
3218 (varobj_set_value): Update.
3219 * tracepoint.c (validate_actionline): Update.
3220 (encode_actions_1): Update.
3221 * parse.c (parse_exp_1): Add 'pc' argument.
3222 (parse_exp_in_context): Add 'pc' argument. Change how
3223 expression_context_pc is set.
3224 (parse_expression): Update.
3225 (parse_field_expression): Update.
3226 * expression.h (parse_exp_1): Update.
3227 * eval.c (parse_to_comma_and_eval): Update.
3228 * breakpoint.c (set_breakpoint_condition): Update.
3229 (update_watchpoint): Update.
3230 (init_breakpoint_sal): Update
3231 (find_condition_and_thread): Update.
3232 (watch_command_1): Update.
3233 (update_breakpoint_locations): Update.
3234 * ada-lang.c (ada_read_renaming_var_value): Update.
3235 (create_excep_cond_exprs): Update.
3236
0bc3a05c
DE
32372012-06-27 Doug Evans <dje@google.com>
3238
3239 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3240 type units.
3241
4bdcc0c1
DE
32422012-06-26 Doug Evans <dje@google.com>
3243
3244 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3245 prototype.
3246 (error_check_comp_unit_head): New arg abbrev_section. All callers
3247 updated.
3248 (read_and_check_comp_unit_head): Ditto.
3249 (read_and_check_type_unit_head): Ditto.
3250
ee0bf529
SCR
32512012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3252
3253 New attribute 'last' for gdb.Symtab_and_line.
3254 * NEWS (Python Scripting): Add entry about the new attribute.
3255 * python/py-symtab.c (salpy_get_last): New function which
3256 implements the get method for the 'last' attribute of
3257 gdb.Symtab_and_line.
3258 (sal_object_getset): Add entry for the 'last' attribute.
3259
1c658ad5
DE
32602012-06-26 Doug Evans <dje@google.com>
3261
09262596
DE
3262 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3263 (dwo_sections): Add macinfo, macro.
3264 (dwarf2_locate_dwo_sections): Watch for macro sections.
3265 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3266 All callers updated. Handle DWO files.
3267
45cfd468
DE
3268 * NEWS: Mention new options "set debug dwarf2-read" and
3269 "set debug symtab-create".
3270 * dwarf2read.c (dwarf2_read_debug): New static global.
3271 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3272 (process_queue): Ditto.
3273 (process_full_comp_unit): Ditto.
3274 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3275 * elfread.c (elf_symfile_read): Add debugging printf.
3276 * minsyms.c (install_minimal_symbols): Ditto.
3277 * psymtab.c (allocate_psymtab): Ditto.
3278 * symfile.c (allocate_symtab): Ditto.
3279 * symtab.c (symtab_create_debug): New global.
3280 (_initialize_symtab): Add new option "set debug symtab-create".
3281 * symtab.h (symtab_create_debug): Declare.
3282
1c658ad5
DE
3283 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3284 (lookup_dwo_type_unit): Ditto.
3285
6fea9e18
L
32862012-06-26 Roland McGrath <roland@hack.frob.com>
3287 H.J. Lu <hongjiu.lu@intel.com>
3288
3289 * amd64-linux-nat.c: Include <sys/user.h>.
3290 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3291 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3292 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3293
3294 * configure.ac: Check if the fs_base and gs_base members of
3295 `struct user_regs_struct' exist.
3296 * config.in: Regenerated.
3297 * configure: Likewise.
3298
adb4fe3b
ME
32992012-06-25 Michael Eager <eager@eagercon.com>
3300
3301 PR python/14291
f782ad9b 3302 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3303
fc51cce1
MGD
33042012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3305
3306 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3307 register as a stack alignment in ARM mode.
3308
40a73391
JK
33092012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3310
3311 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3312 * gnulib/config.in: Regenerate.
3313 * gnulib/configure: Likewise.
3314 * gnulib/import/m4/extensions.m4: Update it.
3315 * gnulib/import/m4/gnulib-common.m4: Likewise.
3316 * gnulib/import/m4/memmem.m4: Likewise.
3317 * gnulib/import/m4/mmap-anon.m4: Likewise.
3318 * gnulib/import/m4/multiarch.m4: Likewise.
3319 * gnulib/import/stdint.in.h: Likewise.
3320
972daa01
YQ
33212012-06-24 Yao Qi <yao@codesourcery.com>
3322
3323 * corefile.c (write_memory_with_notification): New.
3324 * gdbcore.h: Declare write_memory_with_notification.
3325 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3326 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3327 * valops.c (value_assign): Likewise.
3328 * python/py-inferior.c (infpy_write_memory): Call
3329 'write_memory_with_notification'.
3330
8d6e0714
JK
33312012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3332
3333 * cc-with-index.sh: Use also -ex "set auto-load no".
3334
156942c7
DE
33352012-06-23 Doug Evans <dje@google.com>
3336
3337 PR 14125
3338 * NEWS: Document additions to .gdb_index.
3339 * dwarf2read.c: #include "gdb/gdb-index.h".
3340 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3341 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3342 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3343 (dwarf2_read_index): Recognize version 7.
3344 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3345 block_kind, domain): All callers updated.
3346 (dw2_find_symbol_file): Handle new index CU values.
3347 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3348 (add_index_entry): New args is_static, kind. All callers updated.
3349 (offset_type_compare, uniquify_cu_indices): New functions
3350 (symbol_kind): New function.
3351 (write_psymtabs_to_index): Remove duplicate CU values.
3352 (write_psymtabs_to_index): Write .gdb_index version 7.
3353
352b3eda
JB
33542012-06-22 Joel Brobecker <brobecker@adacore.com>
3355
3356 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3357 * configure: Regenerate.
3358
2678e2af
YQ
33592012-06-20 Yao Qi <yao@codesourcery.com>
3360
3361 * python/py-inferior.c: Update comments of infpy_read_memory
3362 and infpy_write_memory.
3363
95c391b6
TT
33642012-06-19 Tom Tromey <tromey@redhat.com>
3365
3366 PR exp/9514:
3367 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3368 (push_type_address_space): Remove.
3369 * parse.c (insert_into_type_stack): New function.
3370 (insert_type): Likewise.
3371 (insert_type_address_space): Rename from push_type_address_space.
3372 Insert tp_space_identifier.
3373 * c-exp.y (ptr_operator): New production.
3374 (abs_decl): Use ptr_operator.
3375 (space_identifier): Call insert_type_address_space.
3376 (ptype): Don't use const_or_volatile_or_space_identifier.
3377 (const_or_volatile_noopt): Call insert_type.
3378 (conversion_type_id, conversion_declarator): New productions.
3379 (operator): Use conversion_type_id.
3380
6ac9ef80
DE
33812012-06-18 Doug Evans <dje@google.com>
3382
422d65e7
DE
3383 * symtab.h (minimal_symbol): New member created_by_gdb.
3384 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3385 created by gdb.
3386 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3387 (search_symbols): Call it instead of lookup_symbol.
3388 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3389
49f6c839
DE
3390 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3391 Adjust address for DW_OP_GNU_addr_index.
3392 * dwarf2expr.h (dwarf_expr_context): Update comment.
3393 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3394 all callers updated. Handle TLS vars described with
3395 DW_OP_GNU_const_index.
3396 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3397 and DW_OP_GNU_const_index.
3398 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3399
6ac9ef80
DE
3400 * block.c (find_block_in_blockvector): Make explicit the fact that we
3401 ignore GLOBAL_BLOCK.
3402
4cd18215
TT
34032012-06-18 Tom Tromey <tromey@redhat.com>
3404
3405 * c-exp.y (operator): Remove trailing space after "delete" and
3406 "delete[]".
3407
a9b8d892
JK
34082012-06-18 Mark Kettenis <kettenis@gnu.org>
3409 Jan Kratochvil <jan.kratochvil@redhat.com>
3410
3411 Switch i386 and derived targets to ON_STACK.
3412 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3413 (amd64_dicos_init_abi): Remove its installment.
3414 * dicos-tdep.c (dicos_init_abi): Remove the
3415 set_gdbarch_call_dummy_location call. Update the comment here.
3416 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3417 (i386_dicos_init_abi): Remove its installment.
3418 * i386-tdep.c (i386_push_dummy_code): New function.
3419 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3420 i386_push_dummy_code.
3421
e2e4d78b
JK
34222012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3423
3424 Remove stale dummy frames.
3425 * breakpoint.c: Include dummy-frame.h.
3426 (longjmp_breakpoint_ops): New variable.
3427 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3428 bp_longjmp_call_dummy.
3429 (bpstat_what, bptype_string, print_one_breakpoint_location)
3430 (init_bp_location): Support bp_longjmp_call_dummy.
3431 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3432 (set_longjmp_breakpoint_for_call_dummy)
3433 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3434 functions.
3435 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3436 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3437 FIXME comment and extend the other comment for bp_call_dummy.
3438 (set_longjmp_breakpoint_for_call_dummy)
3439 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3440 * dummy-frame.c: Include gdbthread.h.
3441 (pop_dummy_frame_bpt): New function.
3442 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3443 (dummy_frame_discard): New function.
3444 (cleanup_dummy_frames): Update the comment about longjmps.
3445 * dummy-frame.h (dummy_frame_discard): New declaration.
3446 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3447 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3448 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3449 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3450 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3451 keep_going if IS_LONGJMP and there is no other reason to stop.
3452
09d5912c
TT
34532012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3454
3455 * remote-sim.c (sim_command_completer): Initialize
3456 variable 'result'.
3457
1788b2d3
JK
34582012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3461 * dwarf2loc.c (call_site_parameter_matches): Support
3462 CALL_SITE_PARAMETER_PARAM_OFFSET.
3463 (needs_dwarf_reg_entry_value): Push stub value.
3464 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3465 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3466 * gdbtypes.h (enum call_site_parameter_kind): New item
3467 CALL_SITE_PARAMETER_PARAM_OFFSET.
3468 (struct call_site.parameter.u): New field param_offset.
3469
24c5c679
JK
34702012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3471
3472 Code cleanup: Generalize call_site.parameter key.
3473 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3474 variable dwarf_reg. New variable kind_u. Update parameters to
3475 push_dwarf_reg_entry_value.
3476 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3477 * dwarf2expr.h (enum call_site_parameter_kind)
3478 (union call_site_parameter_u): Forward declarations.
3479 (struct dwarf_expr_context_funcs): Update parameters and their
3480 description for push_dwarf_reg_entry_value.
3481 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3482 * dwarf2loc.c (call_site_parameter_matches): New function.
3483 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3484 description. Use call_site_parameter_matches.
3485 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3486 Update parameters and their description.
3487 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3488 New variable kind_u. Adjust the caller for updated parameters.
3489 (needs_dwarf_reg_entry_value): Update parameters.
3490 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3491 instead of attr. Update for the changed fields of struct
3492 call_site_parameter.
3493 * gdbtypes.h: Include dwarf2expr.h.
3494 (enum call_site_parameter_kind): New.
3495 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3496 fb_offset into new union u.
3497
ac142d96
L
34982012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3499
3500 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3501 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3502 for x32.
3503
ba224c70
L
35042012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3505
3506 * amd64-linux-nat.c (compat_x32_clock_t): New.
3507 (compat_x32_siginfo_t): Likewise.
3508 (compat_x32_siginfo_from_siginfo): Likewise.
3509 (siginfo_from_compat_x32_siginfo): Likewise.
3510 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3511 and siginfo_from_compat_x32_siginfo for x32.
3512
7ecbc825
HZ
35132012-06-15 Hui Zhu <hui_zhu@mentor.com>
3514
3515 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3516
233dfcf0
L
35172012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3518
3519 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3520 instead of gdbarch_ptr_bit.
3521 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3522 (amd64_supply_native_gregset): Likewise.
3523 (amd64_collect_native_gregset): Likewise.
3524 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3525 (amd64_supply_xsave): Likewise.
3526 (amd64_collect_fxsave): Likewise.
3527 (amd64_collect_xsave): Likewise.
3528
6da38f42
L
35292012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3530
3531 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3532 (amd64_linux_read_description): Check DS segment register for
3533 x32 process.
3534
663b969e
TT
35352012-06-15 Tom Tromey <tromey@redhat.com>
3536
3537 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3538 init_cutu_and_read_dies.
3539
d6f05027
IS
35402012-06-15 Iain Sandoe <iain@codesourcery.com>
3541
3542 * MAINTAINERS (Write After Approval): Add myself to the list.
3543
6598ed07
TT
35442012-06-15 Tom Tromey <tromey@redhat.com>
3545
3546 * valops.c (value_find_oload_method_list): Now static.
3547 * value.h (value_find_oload_method_list): Don't declare.
3548
2b214ea6
TT
35492012-06-15 Tom Tromey <tromey@redhat.com>
3550
3551 * valops.c (find_overload_match): Use value_ind.
3552
a210c238
MR
35532012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3554
3555 * infrun.c (handle_inferior_event): Correct indentation.
3556
3771a44c
DE
35572012-06-14 Doug Evans <dje@google.com>
3558
3559 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3560 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3561 All uses updated.
3562 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3563 updated. Handle DEBUG_LOC_START_LENGTH.
3564 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3565 (loclist_describe_location): Ditto.
3566
1c5a993e
MR
35672012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3568
3569 PR backtrace/13866
3570 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3571 after hiding inline functions.
3572
0b155465
JB
35732012-06-13 Joel Brobecker <brobecker@adacore.com>
3574
3575 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3576 _initialize_inf_ttrace.
3577
45717bac
JB
35782012-06-13 Joel Brobecker <brobecker@adacore.com>
3579
3580 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3581 _initialize_hppa_hpux_nat.
3582
34370865
JB
35832012-06-13 Joel Brobecker <brobecker@adacore.com>
3584
3585 * remote-sim.c (sim_command_completer): Change type of return
3586 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3587
284c5a60
MK
35882012-06-13 Mark Kettenis <kettenis@gnu.org>
3589 Jan Kratochvil <jan.kratochvil@redhat.com>
3590
3591 PR tdep/14222
3592 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3593 stack on a 16-byte boundary.
3594
2535757a
TT
35952012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3596
3597 * jit.c (finalize_symtab): Set function's return type to 'void' by
3598 default.
3599
fff4548b
MK
36002012-06-13 Mark Kettenis <kettenis@gnu.org>
3601 H.J. Lu <hongjiu.lu@intel.com>
3602
5a83521a
MK
3603 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3604 Move bits common to both the classic LP64 and the new x32 ILP32
3605 ABI here.
3606 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3607 (amd64_x32_linux_init_abi): New function.
3608 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3609 subtype.
3610
fff4548b
MK
3611 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3612 * i386-tdep.c (i386_pseudo_register_name): Make public.
3613 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3614 * amd64-tdep.c (amd64_dword_names): Add "eip".
3615 (amd64_x32_pseudo_register_type): New function
3616 (amd64_x32_init_abi): New function.
3617
dd80ea3c
JK
36182012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 PR build/14003
3621 * inferior.h (struct inferior_suspend_state): Comment out.
3622 (struct inferior): Comment out the field suspend.
3623 * infrun.c (struct infcall_suspend_state): Comment out the field
3624 inferior_suspend.
3625 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3626 out its assignment.
3627
50af5481
JK
36282012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3629
3630 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3631 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3632 function comment. Return ERROR for unresolved cases. Implement
3633 returning proper NAME.
3634 (yylex): Accept also NAME from classify_inner_name.
3635 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3636 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3637 LOC_TYPEDEF type.
3638 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3639
d55637df
TT
36402012-06-13 Tom Tromey <tromey@redhat.com>
3641
3642 * breakpoint.c (condition_completer): New function.
3643 (_initialize_breakpoint): Use it.
3644 * value.c (complete_internalvar): New function.
3645 * value.h (complete_internalvar): Declare.
3646
49c4e619
TT
36472012-06-13 Tom Tromey <tromey@redhat.com>
3648
3649 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3650 * breakpoint.c (catch_syscall_completer): Return a VEC.
3651 * cli/cli-cmds.c (complete_command): Update.
3652 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3653 (complete_on_enum): Likewise.
3654 * command.h: Include gdb_vecs.h.
3655 (completer_ftype): Change return type.
3656 (complete_on_cmdlist, complete_on_enum): Likewise.
3657 * completer.c (noop_completer, filename_completer)
3658 (location_completer): Return a VEC.
3659 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3660 to a VEC.
3661 (expression_completer, complete_line_internal, complete_line)
3662 (command_completer): Return a VEC.
3663 (gdb_completion_word_break_characters, line_completion_function):
3664 Update.
3665 * completer.h: Include gdb_vecs.h.
3666 (complete_line, noop_completer, filename_completer)
3667 (expression_completer, location_completer, command_completer):
3668 Update.
3669 * f-lang.c (f_word_break_characters): Return a VEC.
3670 * interps.c (interpreter_completer): Return a VEC.
3671 * language.h (struct language_defn)
3672 <la_make_symbol_completion_list>: Return a VEC.
3673 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3674 * symtab.c (free_completion_list): Take a VEC.
3675 (return_val_size, return_val_index): Remove.
3676 (return_val): Now a VEC.
3677 (completion_list_add_name): Update.
3678 (default_make_symbol_completion_list_break_on)
3679 (default_make_symbol_completion_list, make_symbol_completion_list)
3680 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3681 Return a VEC.
3682 (add_filename_to_list): Update.
3683 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3684 <list>: Now a VEC.
3685 (maybe_add_partial_symtab_filename): Update.
3686 (make_source_files_completion_list): Return a VEC.
3687 * symtab.h (default_make_symbol_completion_list_break_on)
3688 (default_make_symbol_completion_list, make_symbol_completion_list)
3689 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3690 (make_source_files_completion_list): Update.
3691
625e8578
TT
36922012-06-13 Tom Tromey <tromey@redhat.com>
3693
3694 * breakpoint.c (add_catch_command): Use completer_ftype.
3695 * breakpoint.h: Include command.h.
3696 (add_catch_command): Use completer_ftype.
3697 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3698 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3699 Use completer_ftype.
3700 * command.h (completer_ftype): New typedef.
3701 (set_cmd_completer): Use it.
3702 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3703 completer_ftype.
3704
5eb3b062
PA
37052012-06-13 Pedro Alves <palves@redhat.com>
3706
3707 Partial revert of previous change.
3708
3709 * serial.c (scb_base): New global.
3710 (serial_for_fd): New.
3711 (serial_open, serial_fdopen_ops): Link new serial in open serials
3712 chain.
3713 (do_serial_close): Unlink serial from the open serials chain.
3714
8b3ee56d
PA
37152012-06-12 Pedro Alves <palves@redhat.com>
3716
3717 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3718 threads here.
3719 (prepare_for_detach): No longer context switch here in non-stop
3720 mode.
3721 (fetch_inferior_event): Ditto.
3722 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3723 to the event thread before removing breakpoints. Switch to the
3724 event thread before inserting breakpoints and resuming.
3725 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3726 event thread before resuming.
3727 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3728 Switch to the event thread before removing breakpoints.
3729
5d60742e
EZ
37302012-06-12 Eli Zaretskii <eliz@gnu.org>
3731
3732 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3733 special characters correctly for the Windows shells. See
3734 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3735 report.
3736 [!__MINGW32__]: Remove extra double quote character from special
3737 characters.
3738
a6feecf7
SS
37392012-06-11 Stan Shebs <stan@codesourcery.com>
3740
3741 * ui-out.h: Remove #if 0 declarations.
3742 * ui-out.c: Remove #if 0 functions.
3743
ddefb60f
PA
37442012-06-11 Pedro Alves <palves@redhat.com>
3745
3746 * ser-base.c (run_async_handler_and_reschedule): New.
3747 (fd_event, push_event): Use it.
3748 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3749 reference count to 1.
3750 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3751 instead of xfree.
3752 (serial_is_open, serial_ref, serial_unref): New.
3753 * serial.h (serial_open): Adjust comment.
3754 (serial_is_open): Declare.
3755 (serial_close): Adjust comment.
3756 (serial_ref, serial_unref) Declare.
3757 (struct serial): New field 'refcnt'.
3758
d5ad6aa5
PA
37592012-06-11 Pedro Alves <palves@redhat.com>
3760
3761 Remove #if 0'd "connect" command, and unnecessary associated
3762 refcounting and serial reuse bits.
3763
3764 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3765 * serial.c (last_serial_opened): Delete.
3766 (scb_base): Delete.
3767 (serial_open): Adjust.
3768 (serial_for_fd): Delete.
3769 (serial_fdopen_ops, do_serial_close): Adjust.
3770 (serial_fdopen_ops): Adjust.
3771
318aa544
PA
37722012-06-11 Pedro Alves <palves@redhat.com>
3773
3774 * serial.c (do_serial_close): Remove early return when SCB is
3775 null.
3776
07261596
TT
37772012-06-11 Tom Tromey <tromey@redhat.com>
3778
3779 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3780
cc80f267
JK
37812012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3782
3783 Fix regression by the "ambiguous linespec" series.
3784 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3785 get_last_displayed_symtab and get_last_displayed_line and depending
3786 on CURSAL.
3787
356d9f9d
TT
37882012-06-11 Tom Tromey <tromey@redhat.com>
3789
3790 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3791 (dw2_find_symbol_file): Use it.
3792
232b8704
ME
37932012-06-11 Michael Eager <eager@eagercon.com>
3794
3795 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3796 * mips-linux-tdep.h (mips_signals): New
3797
e81a37f7
TT
37982012-06-11 Tom Tromey <tromey@redhat.com>
3799
3800 * infrun.c (handle_inferior_event)
3801 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3802 breakpoint.
3803 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3804 exception logic in all cases. Update comments.
3805 (insert_longjmp_resume_breakpoint): Set the exception resume
3806 breakpoint.
3807
2e81047f
MR
38082012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3809
3810 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3811
4e32eda7
SCR
38122012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3813
3814 * valarith.c (binop_types_user_defined_p): Fix a typo.
3815
18648a37 38162012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3817 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3818
3819 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3820 * arch-utils.h: Declare.
3821 * gdbarch.sh: Add return_in_first_hidden_param_p.
3822 * gdbarch.c, gdbarch.h: Regenerated.
3823 * infcall.c (call_function_by_hand): Call
3824 gdbarch_return_in_first_hidden_param_p instead of
3825 language_pass_by_reference.
3826
3827 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3828 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3829 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3830 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3831 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3832 `cplus_return_struct_by_reference'.
3833 (tic6x_return_value): Handle language cplusplus.
3834 (tic6x_return_in_first_hidden_param_p): New.
3835 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3836
034e5797
DE
38372012-06-07 Doug Evans <dje@google.com>
3838
3839 * dwarf2read.c (dwarf2_cu): Add comment.
3840
6a00aa1e
MR
38412012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3842
3843 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3844 variable.
3845 (mips_eabi_push_dummy_call): Likewise.
3846 (mips_n32n64_push_dummy_call): Likewise.
3847 (mips_o32_push_dummy_call): Likewise.
3848 (mips_o64_push_dummy_call): Likewise.
3849
eaa05d59
MR
38502012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3851
3852 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3853
de13fcf2
MR
38542012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3855
3856 * mips-tdep.c (mips_pseudo_register_type): Use
3857 mips_float_register_p.
3858
c3a01a22
PA
38592012-06-06 Pedro Alves <palves@redhat.com>
3860
3861 * infrun.c (handle_inferior_event): Remove calls to
3862 reinit_frame_cache that follow a context_switch call.
3863
d25f45d9
PA
38642012-06-06 Pedro Alves <palves@redhat.com>
3865
3866 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3867 context_switch and remove stale comment.
3868
359f5fe6
PA
38692012-06-06 Pedro Alves <palves@redhat.com>
3870
3871 * infrun.c (struct execution_control_state): Remove
3872 `new_thread_event' field.
3873 (handle_inferior_event): Simplify new threads handling; don't
3874 resume the inferior if we find a new thread.
3875
2d4c29c5
TS
38762012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3877
3878 * NEWS: Document the deprecation of SH's 'regs' command.
3879 * inferior.h (all_registers_info): Add function declaration.
3880 * sh-tdep.c (sh_show_regs): Remove variable.
3881 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3882 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3883 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3884 (sh_show_regs_command): Remove functions.
3885 (sh_gdbarch_init): Don't set sh_show_regs.
3886 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3887 'info all-registers'.
3888 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3889 (sh64_show_regs): Remove functions.
3890 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3891
f5f1cdb6
JK
38922012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3893
3894 * configure.ac: Move development=true below AC_INIT.
3895 * configure: Regenerate.
3896
bf6309af
SS
38972012-06-05 Stan Shebs <stan@codesourcery.com>
3898
3899 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3900 gdb_stdout.
3901
45aa4659
JK
39022012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3903
3904 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3905 argument as ssize_t.
3906 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3907 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3908 * target.c (target_read_stack, target_write_memory)
3909 (target_write_raw_memory): Likewise.
3910 * target.h (target_read_stack, target_write_memory)
3911 (target_write_raw_memory): Likewise.
3912
1b162304
JK
39132012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3916 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3917 * target.c (target_read_memory): Change LEN to ssize_t.
3918 * target.h (target_read_memory): Change LEN to ssize_t.
3919
8556afb4
PA
39202012-06-05 Pedro Alves <palves@redhat.com>
3921
3922 PR backtrace/13866
3923
3924 * breakpoint.c (until_break_command): Only fetch the selected
3925 frame after decode_line_1.
3926
fb139f32
PA
39272012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3928
3929 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3930 event breakpoint at _start, __start or main if a program
3931 interpreter is not found.
3932
a8e1bb34
JB
39332012-06-05 Joel Brobecker <brobecker@adacore.com>
3934
3935 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3936 Add declaration.
3937 * windows-tdep.c: #include "objfiles.h".
3938 (windows_iterate_over_objfiles_in_search_order): New function.
3939 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3940 iterate_over_objfiles_in_search_order gdbarch method to
3941 windows_iterate_over_objfiles_in_search_order.
3942 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3943
19630284
JB
39442012-06-05 Joel Brobecker <brobecker@adacore.com>
3945
3946 * gdbarch.sh: Add generation of
3947 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3948 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3949 (iterate_over_objfiles_in_search_order): New gdbarch method.
3950 * gdbarch.h, gdbarch.c: Regenerate.
3951 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3952 Add declaration.
3953 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3954 New function.
3955 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3956 out of lookup_symbol_aux_symtabs.
3957 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3958 call to lookup_symbol_aux_objfile.
3959 (struct global_sym_lookup_data): New type.
3960 (lookup_symbol_global_iterator_cb): New function.
3961 (lookup_symbol_global): Search for symbol using
3962 gdbarch_iterate_over_objfiles_in_search_order and
3963 lookup_symbol_global_iterator_cb.
3964 * findvar.c (struct minsym_lookup_data): New type.
3965 (minsym_lookup_iterator_cb): New function.
3966 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3967 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3968 and minsym_lookup_iterator_cb.
3969
67ff19f7
JB
39702012-06-05 Joel Brobecker <brobecker@adacore.com>
3971
3972 Revert the following patch:
3973 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3974 try locating the symbol in the symbol's own objfile first, before
3975 extending the search to all objfiles.
3976 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3977 out of lookup_symbol_aux_symtabs.
3978 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3979 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3980 Do not search EXCLUDE_OBJFILE.
3981 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3982 (lookup_symbol_global): Search for matches in the block's objfile
3983 first, before searching all other objfiles.
3984
ccab2054
JB
39852012-06-05 Joel Brobecker <brobecker@adacore.com>
3986
3987 * breakpoint.c (find_condition_and_thread): Stop parsing
3988 as soon as the first invalid keyword is found.
3989
e23d4a9c
JB
39902012-06-05 Joel Brobecker <brobecker@adacore.com>
3991
3992 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3993
70160166
JB
39942012-06-05 Joel Brobecker <brobecker@adacore.com>
3995
3996 * config/djgpp/djcheck.sh: Add copyright header.
3997
399501a5
JB
39982012-06-05 Joel Brobecker <brobecker@adacore.com>
3999
4000 * copyright.py (update_files, main): Fix path to update-copyright
4001 script.
4002
3770a159
JB
40032012-06-05 Joel Brobecker <brobecker@adacore.com>
4004
4005 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4006 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4007 for which a reminder to update by hand is printed.
4008
4aad0dfc
DE
40092012-06-04 Doug Evans <dje@google.com>
4010
4011 * buildsym.c (make_blockvector): Add comment.
4012
1f8cf220
PA
40132012-06-04 Pedro Alves <palves@redhat.com>
4014
4015 * arch-utils.c (default_gdb_signal_from_target): Delete.
4016 * arch-utils.h (default_gdb_signal_from_target): Delete.
4017 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4018 gdbarch_gdb_signal_from_target_p.
4019 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4020 predicate).
4021 * gdbarch.h: Regenerate.
4022 * gdbarch.c: Regenerate.
4023
86b49880
PA
40242012-06-04 Pedro Alves <palves@redhat.com>
4025
4026 * gdbarch.sh (gdb_signal_from_target): Mention that the
4027 implementation of the method must be host independent.
4028 * gdbarch.h: Regenerate.
4029
fe78531d
JK
40302012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4031
4032 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4033 parameters.
4034 (target_read_memory_bfd): New function.
4035 (symbol_file_add_from_memory): Use it.
4036
d790cf0a
DE
40372012-06-03 Doug Evans <dje@google.com>
4038
78e5175a
DE
4039 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4040 of primary symtab.
4041 (basic_lookup_transparent_type): Ditto.
4042
d790cf0a
DE
4043 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4044 (ALL_PRIMARY_SYMTABS): Use it.
4045 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4046 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4047 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4048 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4049 (basic_lookup_transparent_type): Ditto.
4050
c6e5ee5e
SDJ
40512012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4052
4053 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4054 it to optimize resolution of demangled name.
4055
a68ffae9
JK
40562012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4057
4058 * configure.ac (development): Define new variable.
4059 Call AC_CHECK_LIB for mcheck if $development.
4060 (ERROR_ON_WARNING): Enable it by default only if $development.
4061 * config.in: Regenerate.
4062 * configure: Regenerate.
4063
5299c1c4
JK
40642012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4065
4066 * target.c (target_read_memory): Make LEN argument as size_t.
4067 * target.h (target_read_memory): Likewise.
4068
40692012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4070
4071 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4072
0c56f59b
EBM
40732012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4074
4075 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4076 BookE interface for PowerPC server processors if not available
4077 in the Linux Kernel.
4078
71bdabee
KS
40792012-05-31 Keith Seitz <keiths@redhat.com>
4080
4081 * linespec.c (decode_objc): Add cleanup to free
4082 INFO.FILE_SYMTABS.
4083 (find_linespec_symbols): Add cleanup to free CLASSES.
4084 * symfile.c (find_separate_debug_file_by_debuglink): Add
4085 cleanup to free DEBUGLINK.
4086 * ui-out.c (clear_header_list): No need to check if
4087 HEADER_NEXT.COLHDR is NULL.
4088 Free HEADER_NEXT.COL_NAME.
4089
acbd605d
MGD
40902012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4091
4092 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4093 warning.
4094
65662cde
PA
40952012-05-30 Jeff Kenton <jkenton@tilera.com>
4096
4097 * configure.host (gdb_host_cpu): Handle tilegx*.
4098 (gdb_host): Handle tilegx-*-linux*.
4099 * tilegx-linux-nat.c: New file.
4100 * config/tilegx/linux.mh: New file.
4101
ade64f0e
PA
41022012-05-30 Jeff Kenton <jkenton@tilera.com>
4103
4104 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4105 tilegx-linux-tdep.o.
4106 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4107 tilegx-linux-tdep.c.
4108 * configure.tgt: Handle tilegx-*-linux*.
4109 * tilegx-tdep.h: New file.
4110 * tilegx-tdep.c: New file.
4111 * tilegx-linux-tdep.c: New file.
4112 * regformats/reg-tilegx.dat: New file.
4113
bb08bdbd
EBM
41142012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4115
4116 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4117 accounting of hw watchpoints on ppc.
4118
ebd86fb5
TJB
41192012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4120
4121 * source.c (openp): Expand tilde in path entries.
4122
0a0edcd5
DE
41232012-05-29 Doug Evans <dje@google.com>
4124
98cc87bd
DE
4125 * buildsym.c (block_compar): Fix comment.
4126 (end_symtab): Fix and clarify some comments.
4127
0a0edcd5
DE
4128 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4129 cleanup_undefined_types.
4130 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4131 All callers updated.
4132
6f0c7050
TT
41332012-05-29 Tom Tromey <tromey@redhat.com>
4134
4135 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4136 fails.
4137 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4138 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4139 fails.
4140 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4141 fails.
4142
ec95993c
TG
41432012-05-29 Tristan Gingold <gingold@adacore.com>
4144
4145 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4146 (struct darwin_info): ... New struct.
4147 (solib_darwin_pspace_data): New variable.
4148 (darwin_pspace_data_cleanup): New function.
4149 (get_darwin_info): Likewise.
4150 (darwin_dyld_version_ok, darwin_load_image_infos)
4151 (darwin_solib_get_all_image_info_addr_at_init)
4152 (darwin_solib_read_all_image_info_addr): Add info argument.
4153 Adjust code.
4154 (darwin_current_sos): Use per pspace structure.
4155 (darwin_solib_create_inferior_hook): Likewise.
4156 (darwin_clear_solib): Likewise.
4157 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4158
ae25568b
PA
41592012-05-28 Pedro Alves <palves@redhat.com>
4160
4161 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4162 block that uses them. Clear ecss before handling each event.
4163
0c5bf5a9
JK
41642012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4165
4166 * solib-svr4.c (svr4_current_sos): New comment on
4167 svr4_current_sos_via_xfer_libraries fall back.
4168
bfb05775
JK
41692012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4170
4171 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4172 it as a fallback for TYPE_IS_OPAQUE.
4173 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4174 symbols for lookup_symbol.
4175
685b1105
JK
41762012-05-24 John Steele Scott <toojays@toojays.net>
4177
4178 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4179 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4180 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4181 (check_producer): ... this new function, which also checks for ICC
4182 and caches the result.
4183 (producer_is_icc): New function.
4184 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4185 producer was ICC.
4186
22203bbf
PA
41872012-05-24 Pedro Alves <palves@redhat.com>
4188
4189 PR gdb/7205
4190
4191 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4192 (default_gdb_signal_to_target): ... this. Add comment.
4193 (default_gdb_signal_from_host): Rename to ...
4194 (default_gdb_signal_from_target): ... this. Add comment.
4195 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4196 (default_gdb_signal_to_target): ... this.
4197 (default_gdb_signal_from_host): Rename to ...
4198 (default_gdb_signal_from_target): ... this.
4199 * corelow.c (core_open): Adjust to naming change. Replace comment.
4200 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4201 (gdb_signal_from_target): ... this. Adjust to
4202 default_gdb_signal_from_host naming change. Extend comment.
4203 (gdb_signal_to_host): Rename to ...
4204 (gdb_signal_to_target): ... this. Adjust to
4205 default_gdb_signal_to_host naming change.
4206 * gdbarch.h, gdbarch.c: Renegerate.
4207
a493e3e2
PA
42082012-05-24 Pedro Alves <palves@redhat.com>
4209
4210 PR gdb/7205
4211
f782ad9b 4212 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4213
2ea28649
PA
42142012-05-24 Pedro Alves <palves@redhat.com>
4215
4216 PR gdb/7205
4217
4218 Replace target_signal with gdb_signal throughout.
4219
b09846a9
PA
42202012-05-24 Pedro Alves <palves@redhat.com>
4221
4222 PR tui/14159
4223
4224 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4225 string, instead of reusing the va_list argument.
4226
e77c107e
TT
42272012-05-24 Tom Tromey <tromey@redhat.com>
4228
4229 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4230 Remove.
4231
9fccedf7
DE
42322012-05-23 Doug Evans <dje@google.com>
4233
d50bd42b
DE
4234 * symtab.c (search_symbols): Formatting fixes.
4235 (print_symbol_info): Formatting fixes.
4236
9fccedf7
DE
4237 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4238 int64_t change to leb128 API.
4239 (read_encoded_value, decode_frame_entry_1): Ditto.
4240 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4241 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4242 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4243 (execute_stack_op): Ditto.
4244 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4245 (safe_read_uleb128, safe_read_sleb128): Ditto.
4246 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4247 (dwarf2_compile_expr_to_ax): Ditto.
4248 (locexpr_describe_location_piece): Ditto.
4249 (disassemble_dwarf_expression): Ditto.
4250 (locexpr_describe_location_1): Ditto.
4251
f3e0e960
SS
42522012-05-23 Stan Shebs <stan@codesourcery.com>
4253 Kwok Cheung Yeung <kcy@codesourcery.com>
4254
4255 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4256 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4257 (mi-cmd-info.o): New rule.
4258 * osdata.h (info_osdata_command): New declaration.
4259 * osdata.c (info_osdata_command): Change to non-static.
4260 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4261 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4262 * mi/mi-cmd-info.c: New file.
4263
c51fe631
DE
42642012-05-23 Doug Evans <dje@google.com>
4265
71cddcc1
DE
4266 * symtab.c (search_symbols): Pass NULL for file_matcher to
4267 expand_symtabs_matching if there are no files to match.
4268
c51fe631
DE
4269 * gdbtypes.c (lookup_typename): Simplify.
4270
a79378d4
PA
42712012-05-23 Pedro Alves <palves@redhat.com>
4272
4273 * arch-utils.h (default_target_signal_to_host): Delete.
4274 * arch-utils.c (default_target_signal_to_host): Delete.
4275 * gdbarch.sh (target_signal_to_host): Remove.
4276 * gdbarch.h, gdbarch.c: Regenerate.
4277
f664829e
DE
42782012-05-22 Doug Evans <dje@google.com>
4279
4280 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4281 "const gdb_byte *".
4282 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4283 (execute_cfa_program): Update to match API of leb128 functions.
4284 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4285 "const gdb_byte *".
4286 (read_unsigned_leb128, read_signed_leb128): Delete.
4287 (read_initial_length): Change type of buf argument to
4288 "const gdb_byte *".
4289 (read_encoded_value): Update to match API of leb128 functions.
4290 (decode_frame_entry): Change result to "const gdb_byte *", and
4291 similarly for "start" parameter.
4292 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4293 (dwarf2_build_frame_info): Change local frame_ptr to
4294 "const gdb_byte *".
4295 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4296 read_uleb128, read_sleb128. All callers updated.
4297 (safe_skip_leb128): New function.
4298 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4299 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4300 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4301 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4302 read_uleb128, read_sleb128.
4303 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4304 (execute_stack_op): Update to match API of leb128 functions.
4305 * dwarf2expr.h: #include "leb128.h".
4306 (read_uleb128, read_sleb128): Delete.
4307 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4308 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4309 * dwarf2loc.c (debug_loc_kind): New enum.
4310 (decode_debug_loc_addresses): New function.
4311 (decode_debug_loc_dwo_addresses): New function.
4312 (dwarf2_find_location_expression): Rewrite.
4313 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4314 (locexpr_describe_location_piece): Ditto.
4315 (disassemble_dwarf_expression): Ditto.
4316 (locexpr_describe_location_1): Ditto.
4317 (loclist_describe_location): Rewrite.
4318 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4319 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4320 (dwarf2_section_buffer_overflow_complaint): Renamed from
4321 dwarf2_macros_too_long_complaint. All callers updated.
4322 (skip_leb128): Delete.
4323 (init_cu_die_reader): Initialize reader->buffer_end.
4324 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4325 (skip_form_bytes): New arg buffer_end. All callers updated.
4326 Replace call to skip_leb128 with gdb_skip_leb128.
4327 (skip_unknown_opcode): New arg mac_end. All callers updated.
4328 (fill_in_loclist_baton): Initialize baton->from_dwo.
4329
837a1b32
MR
43302012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4331
4332 * mips-linux-nat.c (mips_linux_read_description): Use a more
4333 verbose error message.
4334
d0e64392
MR
43352012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4336
4337 * NEWS: Add MIPS/Linux DSP support.
4338 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4339 (SIGCONTEXT_DSPCTL): New macro.
4340 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4341 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4342 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4343 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4344 (N64_SIGCONTEXT_HI3): Likewise.
4345 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4346 (N64_SIGCONTEXT_LO3): Likewise.
4347 (N64_SIGCONTEXT_DSPCTL): Likewise.
4348 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4349 (mips_linux_o32_sigframe_init): Handle DSP registers.
4350 (mips_linux_n32n64_sigframe_init): Likewise.
4351
8bea7ed1
PM
43522012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4353
4354 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4355 call to abort.
4356
dab06dbe
PA
43572012-05-22 Pedro Alves <palves@redhat.com>
4358
4359 * target.h (store_waitstatus): Move declaration ...
4360 * inf-child.h (store_waitstatus): ... here.
4361 * target.c: Move inclusion of gdb_wait.h, and ...
4362 (store_waitstatus): ... this ...
4363 * inf-child.c: ... here.
4364 * linux-nat.c: Include inf-child.h.
4365 * rs6000-nat.c: Include inf-child.h.
4366 * spu-linux-nat.c: Include inf-child.h.
4367
43011e52
PM
43682012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4369
4370 * tracepoint.c (start_tracing): Add missing i18n markup.
4371 (stop_tracing, set_trace_user): Ditto.
4372 (set_trace_notes, set_trace_stop_notes): Ditto.
4373
b1af9e97
TT
43742012-05-21 Tom Tromey <tromey@redhat.com>
4375
4376 PR c++/7173:
4377 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4378 types.
4379 * value.h (value_cast_pointers): Update.
4380 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4381 (value_cast): Update.
4382 (update_search_result): New function.
4383 (do_search_struct_field): New, from search_struct_field. Check
4384 for ambiguous results.
4385 (search_struct_field): Rewrite.
4386 * infcall.c (value_arg_coerce): Update.
4387 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4388 value_cast_pointers.
4389 * ada-lang.c (ada_convert_actual): Update.
4390
e9e5e6b3
TT
43912012-05-21 Tom Tromey <tromey@redhat.com>
4392
4393 * macroexp.c (macro_stringify): Terminate the string.
4394
1564a261
JK
43952012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4396
4397 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4398 Describe it.
4399 * auto-load.c (auto_load_expand_dir_vars): New function.
4400 (auto_load_safe_path_vec_update): Use it, remove the
4401 substitute_path_component call thanks to it.
4402 (auto_load_objfile_script): Remove the debug_file_directory processing.
4403 Use auto_load_expand_dir_vars, remove the substitute_path_component
4404 call thanks to it.
4405 * configure: Regenerate.
4406 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4407 path. Escape $ also for $debugdir.
4408 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4409 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4410
a3ec0bb1
DE
44112012-05-20 Doug Evans <dje@google.com>
4412
4413 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4414 before use. Check for symtab->includes == NULL before scanning it.
4415
d467df4e
MR
44162012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4417
4418 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4419
4cc0665f
MR
44202012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4421
4422 * NEWS: Add microMIPS support and "set mips compression",
4423 "show mips compression" commands.
4424 * mips-tdep.h (mips_isa): New enum.
4425 (gdbarch_tdep): Add mips_isa.
4426 (mips_pc_is_mips16): Update prototype.
4427 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4428 * mips-tdep.c (mips_compression_mips16): New variable.
4429 (mips_compression_micromips): Likewise.
4430 (mips_compression_strings): Likewise.
4431 (mips_compression_string): Likewise.
4432 (is_mips16_isa, is_micromips_isa): New functions.
4433 (is_mips16_addr): Rename to...
4434 (is_compact_addr): ... this.
4435 (unmake_mips16_addr): Likewise to...
4436 (unmake_compact_addr): ... this.
4437 (make_mips16_addr): Likewise to...
4438 (make_compact_addr): ... this.
4439 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4440 functions.
4441 (mips_elf_make_msymbol_special): Handle microMIPS code.
4442 (msymbol_is_special): Rename to...
4443 (msymbol_is_mips16): ... this.
4444 (mips_make_symbol_special, mips_pc_is_mips16): Update
4445 accordingly.
4446 (msymbol_is_mips, msymbol_is_micromips): New functions.
4447 (mips16_to_32_reg): Rename to...
4448 (mips_reg3_to_reg): ... this.
4449 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4450 (mips_pc_isa): Likewise.
4451 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4452 code.
4453 (mips_fetch_instruction): Pass return status instead of printing
4454 an error message if requested. Handle microMIPS code. Bail out
4455 on an invalid ISA.
4456 (micromips_op): New macro.
4457 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4458 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4459 (b6s4_op, b7s3_reg): Likewise.
4460 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4461 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4462 (mips_insn_size): New function.
4463 (mips32_next_pc): Update mips_fetch_instruction call.
4464 (micromips_relative_offset7): New function.
4465 (micromips_relative_offset10): Likewise.
4466 (micromips_relative_offset16): Likewise.
4467 (micromips_pc_insn_size): Likewise.
4468 (micromips_bc1_pc): Likewise.
4469 (micromips_next_pc): Likewise.
4470 (unpack_mips16): Update mips_fetch_instruction call.
4471 (extended_mips16_next_pc): Update according to change to
4472 mips16_to_32_reg.
4473 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4474 code.
4475 (mips16_scan_prologue): Update mips_fetch_instruction call.
4476 Update according to change to mips16_to_32_reg.
4477 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4478 (mips_insn16_frame_base_sniffer): Likewise.
4479 (micromips_decode_imm9): New function.
4480 (micromips_scan_prologue): Likewise.
4481 (mips_micro_frame_cache): Likewise.
4482 (mips_micro_frame_this_id): Likewise.
4483 (mips_micro_frame_prev_register): Likewise.
4484 (mips_micro_frame_sniffer): Likewise.
4485 (mips_micro_frame_unwind): New variable.
4486 (mips_micro_frame_base_address): New function.
4487 (mips_micro_frame_base): New variable.
4488 (mips_micro_frame_base_sniffer): New function.
4489 (mips32_scan_prologue): Update mips_fetch_instruction call.
4490 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4491 rather than for MIPS16.
4492 (mips_insn32_frame_base_sniffer): Likewise.
4493 (mips_addr_bits_remove): Handle microMIPS code.
4494 (deal_with_atomic_sequence): Rename to...
4495 (mips_deal_with_atomic_sequence): ... this. Update the type
4496 of the variable used to hold an instruction. Remove the ISA bit
4497 check. Update mips_fetch_instruction call.
4498 (micromips_deal_with_atomic_sequence): New function.
4499 (deal_with_atomic_sequence): Likewise.
4500 (mips_about_to_return): Handle microMIPS code. Update
4501 mips_fetch_instruction call.
4502 (heuristic_proc_start): Check for the standard MIPS ISA rather
4503 than for MIPS16. Update mips_pc_is_mips16 and
4504 mips_fetch_instruction calls. Handle microMIPS code.
4505 (mips_push_dummy_code): Handle microMIPS code.
4506 (mips_eabi_push_dummy_call): Likewise.
4507 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4508 (mips_o64_push_dummy_call): Handle microMIPS code.
4509 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4510 (is_delayed): Remove function.
4511 (mips_single_step_through_delay): Replace the call to is_delayed
4512 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4513 Handle microMIPS code.
4514 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4515 microMIPS code.
4516 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4517 call.
4518 (micromips_in_function_epilogue_p): New function.
4519 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4520 call.
4521 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4522 Handle microMIPS.
4523 (gdb_print_insn_mips): Likewise.
4524 (mips_breakpoint_from_pc): Likewise.
4525 (mips_remote_breakpoint_from_pc): New function.
4526 (mips32_instruction_has_delay_slot): Simplify making use of the
4527 updated mips_fetch_instruction interface.
4528 (micromips_instruction_has_delay_slot): New function.
4529 (mips16_instruction_has_delay_slot): Simplify making use of the
4530 updated mips_fetch_instruction interface.
4531 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4532 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4533 calls. Handle microMIPS code.
4534 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4535 (mips_skip_trampoline_code): Handle microMIPS code.
4536 (global_mips_compression): New function.
4537 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4538 file flags. Register the microMIPS remote breakpoint handler
4539 and heuristic frame unwinder.
4540 (show_mips_compression): New function.
4541 (_initialize_mips_tdep): Add the "set mips compression" and
4542 "show mips compression" commands.
4543
22e048c9
SDJ
45442012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4545
4546 * ada-lang.c:
4547 * ada-tasks.c:
4548 * ada-varobj.c:
4549 * amd64-darwin-tdep.c:
4550 * arm-symbian-tdep.c:
4551 * arm-tdep.c:
4552 * avr-tdep.c:
4553 * ax-gdb.c:
4554 * bfin-linux-tdep.c:
4555 * breakpoint.c:
4556 * c-valprint.c:
4557 * cli/cli-cmds.c:
4558 * coffread.c:
4559 * cp-support.c:
4560 * cris-tdep.c:
4561 * dwarf2-frame-tailcall.c:
4562 * dwarf2-frame.c:
4563 * dwarf2expr.c:
4564 * dwarf2loc.c:
4565 * dwarf2read.c:
4566 * elfread.c:
4567 * eval.c:
4568 * expprint.c:
4569 * f-valprint.c:
4570 * frv-tdep.c:
4571 * h8300-tdep.c:
4572 * hppa-hpux-tdep.c:
4573 * hppa-tdep.c:
4574 * hppanbsd-tdep.c:
4575 * i386-nto-tdep.c:
4576 * i386-tdep.c:
4577 * i387-tdep.c:
4578 * ia64-tdep.c:
4579 * jit.c:
4580 * linespec.c:
4581 * linux-tdep.c:
4582 * lm32-tdep.c:
4583 * m2-valprint.c:
4584 * m32c-tdep.c:
4585 * m32r-rom.c:
4586 * m32r-tdep.c:
4587 * m68k-tdep.c:
4588 * m68klinux-tdep.c:
4589 * mi/mi-main.c:
4590 * microblaze-tdep.c:
4591 * mips-linux-tdep.c:
4592 * mips-tdep.c:
4593 * mn10300-tdep.c:
4594 * p-valprint.c:
4595 * parse.c:
4596 * ppc-linux-tdep.c:
4597 * ppc-sysv-tdep.c:
4598 * printcmd.c:
4599 * python/py-finishbreakpoint.c:
4600 * python/py-inferior.c:
4601 * python/py-infthread.c:
4602 * python/py-type.c:
4603 * python/python.c:
4604 * remote-fileio.c:
4605 * remote-m32r-sdi.c:
4606 * remote-mips.c:
4607 * reverse.c:
4608 * rl78-tdep.c:
4609 * rs6000-aix-tdep.c:
4610 * rs6000-tdep.c:
4611 * s390-tdep.c:
4612 * score-tdep.c:
4613 * sh64-tdep.c:
4614 * skip.c:
4615 * solib-darwin.c:
4616 * solib-dsbt.c:
4617 * solib-frv.c:
4618 * sparc-tdep.c:
4619 * spu-multiarch.c:
4620 * spu-tdep.c:
4621 * stack.c:
4622 * symfile.c:
4623 * symtab.c:
4624 * tic6x-tdep.c:
4625 * tracepoint.c:
4626 * v850-tdep.c:
4627 * valarith.c:
4628 * valprint.c:
4629 * value.c:
4630 * xcoffread.c:
4631 * xtensa-tdep.c:
4632 * ada-lang.c:
4633 * ada-tasks.c:
4634 * ada-varobj.c:
4635 * amd64-darwin-tdep.c:
4636 * arm-symbian-tdep.c:
4637 * arm-tdep.c: Delete unused variables.
4638
aff139ff
JK
46392012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 Rename $ddir to $datadir.
4642 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4643 * auto-load.c (auto_load_safe_path_vec_update)
4644 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4645 * configure: Regenerate.
4646 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4647 Likewise. Remove the 'use $ddir' help string.
4648
f7bfa992
JK
46492012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4650
4651 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4652 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4653
9cb709b6
TT
46542012-05-18 Tom Tromey <tromey@redhat.com>
4655
4656 PR exp/13907:
4657 * valprint.h (struct value_print_options) <symbol_print>: New
4658 field.
4659 * valprint.c (user_print_options): Add default for symbol_print.
4660 (show_symbol_print): New function.
4661 (generic_val_print): Respect symbol_print.
4662 (_initialize_valprint): Add "print symbol" setting.
4663 * f-valprint.c (f_val_print): Respect symbol_print.
4664 * c-valprint.c (c_val_print): Respect symbol_print.
4665 * NEWS: Update.
4666 * printcmd.c (print_address_symbolic): Return int. Ignore some
4667 zero-size symbols.
4668 (print_address_demangle): Return int.
4669 * defs.h: (print_address_symbolic): Return int.
4670 * value.h (print_address_demangle): Return int.
4671
b012acdd
TT
46722012-05-18 Tom Tromey <tromey@redhat.com>
4673
4674 * valprint.c (val_print_string): Don't print leading space.
4675 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4676 print space before string or vtbl.
4677 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4678 before string.
4679 * jv-valprint.c (java_value_print): Print space before string.
4680 * go-valprint.c (print_go_string): Print space before string.
4681 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4682 space before string.
4683 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4684 space before string or vtbl.
4685 * auxv.c (fprint_target_auxv): Print space after address.
4686
1d51a733
TT
46872012-05-18 Tom Tromey <tromey@redhat.com>
4688
4689 * printcmd.c (print_address_demangle): Remove special case for 0.
4690
edf0c1b7
TT
46912012-05-18 Tom Tromey <tromey@redhat.com>
4692
4693 * printcmd.c (print_address_demangle): Add 'opts' argument.
4694 * p-valprint.c (pascal_val_print): Update.
4695 * jv-valprint.c (java_val_print): Update.
4696 * value.h: Update.
4697 * valprint.c (generic_val_print): Update.
4698 (print_function_pointer_address): Add 'options' argument. Remove
4699 'addressprint' argument. Update.
4700 * m2-valprint.c (print_unpacked_pointer): Update.
4701 * gnu-v3-abi.c (print_one_vtable): Update.
4702 (gnuv3_print_method_ptr): Update.
4703 * f-valprint.c (f_val_print): Update.
4704 * cp-valprint.c (cp_print_value_fields): Update.
4705 * valprint.h (print_function_pointer_address): Update.
4706 * c-valprint.c (c_val_print): Update.
4707
9703b513
TT
47082012-05-18 Tom Tromey <tromey@redhat.com>
4709
4710 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4711 directly corresponding to the found psymtab.
4712 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4713 (dw2_find_pc_sect_symtab): Use it.
4714 * block.h (blockvector_contains_pc): Declare.
4715 * block.c (find_block_in_blockvector): New function.
4716 (blockvector_for_pc_sect): Use it.
4717 (blockvector_contains_pc): New function.
4718
5a439849
MR
47192012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4720
4721 * mips-tdep.h (mips_write_pc): New prototype.
4722 * mips-tdep.c (mips_write_pc): Make external, add description.
4723 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4724 add description.
4725
8376de04
MR
47262012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4727
4728 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4729 mips_regnum->pc.
4730 (mips_unwind_pc, mips_write_pc): Likewise.
4731 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4732 gdbarch_read_pc.
4733
d3581e61
JB
47342012-05-17 Joel Brobecker <brobecker@adacore.com>
4735
4736 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4737 proc_warn, proc_error, proc_get_status, proc_flags,
4738 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4739 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4740 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4741 proc_stop_process, proc_wait_for_stop, proc_run_process,
4742 proc_set_traced_signals, proc_set_traced_faults,
4743 proc_set_traced_sysentry, proc_set_traced_sysexit,
4744 proc_set_held_signals, proc_get_held_signals,
4745 proc_get_traced_signals, proc_get_traced_faults,
4746 proc_get_traced_sysentry, proc_get_traced_sysexit,
4747 proc_clear_current_fault, proc_set_current_signal,
4748 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4749 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4750 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4751 proc_get_current_thread, proc_get_current_thread,
4752 proc_get_current_thread, proc_update_threads,
4753 proc_update_threads, proc_update_threads, proc_update_threads,
4754 proc_iterate_over_threads, procfs_find_new_threads,
4755 procfs_pid_to_str): Make static. Remove advance declaration.
4756 (proc_cursig): Make static. Conditionalized defintion on
4757 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4758 (proc_syscall, proc_set_kill_on_last_close,
4759 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4760 proc_get_pending_signals, proc_get_signal_actions,
4761 proc_trace_signal, proc_ignore_signal): Delete.
4762
81b9b86e
SDJ
47632012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4764
4765 * coffread.c (cs_section_address): Passing proper argument for
4766 `bfd_get_section_vma'.
4767 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4768 `bfd_get_section_flags'.
4769 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4770 `bfd_get_section_vma'.
4771
abc9d0dc
TT
47722012-05-16 Tom Tromey <tromey@redhat.com>
4773
4774 PR macros/13205:
4775 * macrotab.h: (macro_define_special): Declare.
4776 (enum macro_special_kind): New.
4777 (struct macro_definition) <argc, replacement>: Update comments.
4778 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4779 (macro_define_object_internal): New function.
4780 (macro_define_object): Use it.
4781 (macro_define_special): New function.
4782 (fixup_definition): New function.
4783 (macro_lookup_definition, foreach_macro_in_scope)
4784 (foreach_macro): Use fixup_definition.
4785 * macroexp.h (macro_stringify): Declare.
4786 * macroexp.c (free_buffer_return_text): New function.
4787 (stringify): Constify "arg".
4788 (macro_stringify): New function.
4789 * dwarf2read.c (macro_start_file): Call macro_define_special.
4790
6a3a010b 47912012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4792 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4793
4794 * breakpoint.h (bp_location): Add related_address member.
4795 * inferior.h (get_return_value): Take a pointer to struct value
4796 instead of struct type for the function requested.
4797 * value.h (using_struct_return): Likewise.
4798 * gdbarch.sh (return_value): Take a pointer to struct value
4799 instead of struct type for the function requested.
4800 * breakpoint.c (set_breakpoint_location_function): Initialize
4801 related_address for bp_gnu_ifunc_resolver breakpoints.
4802 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4803 requested function's address to gdbarch_return_value.
4804 * eval.c (evaluate_subexp_standard): Pass the requested
4805 function's address to using_struct_return.
4806 * infcall.c (call_function_by_hand): Pass the requested
4807 function's address to using_struct_return and
4808 gdbarch_return_value.
4809 * infcmd.c (get_return_value): Take a pointer to struct value
4810 instead of struct type for the function requested.
4811 (print_return_value): Update accordingly.
4812 (finish_command_continuation): Likewise.
4813 * stack.c (return_command): Pass the requested function's
4814 address to using_struct_return and gdbarch_return_value.
4815 * value.c (using_struct_return): Take a pointer to struct value
4816 instead of struct type for the function requested. Pass the
4817 requested function's address to gdbarch_return_value.
4818 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4819 New function_value member, replacing function_type.
4820 (bpfinishpy_dealloc): Update accordingly.
4821 (bpfinishpy_pre_stop_hook): Likewise.
4822 (bpfinishpy_init): Likewise. Record the requested function's
4823 address.
4824 * mips-tdep.c (mips_fval_reg): New enum.
4825 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4826 words put in GP registers.
4827 (mips_o64_push_dummy_call): Update a comment.
4828 (mips_o32_return_value): Take a pointer to struct value instead
4829 of struct type for the function requested and use it to check if
4830 using the MIPS16 calling convention. Return the designated
4831 general purpose registers for floating-point values returned in
4832 MIPS16 mode.
4833 (mips_o64_return_value): Likewise.
4834 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4835 (ppc_sysv_abi_broken_return_value): Likewise.
4836 (ppc64_sysv_abi_return_value): Likewise.
4837 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4838 value instead of struct type for the function requested.
4839 * amd64-tdep.c (amd64_return_value): Likewise.
4840 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4841 * arm-tdep.c (arm_return_value): Likewise.
4842 * avr-tdep.c (avr_return_value): Likewise.
4843 * bfin-tdep.c (bfin_return_value): Likewise.
4844 * cris-tdep.c (cris_return_value): Likewise.
4845 * frv-tdep.c (frv_return_value): Likewise.
4846 * h8300-tdep.c (h8300_return_value): Likewise.
4847 (h8300h_return_value): Likewise.
4848 * hppa-tdep.c (hppa32_return_value): Likewise.
4849 (hppa64_return_value): Likewise.
4850 * i386-tdep.c (i386_return_value): Likewise.
4851 * ia64-tdep.c (ia64_return_value): Likewise.
4852 * iq2000-tdep.c (iq2000_return_value): Likewise.
4853 * lm32-tdep.c (lm32_return_value): Likewise.
4854 * m32c-tdep.c (m32c_return_value): Likewise.
4855 * m32r-tdep.c (m32r_return_value): Likewise.
4856 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4857 * m68k-tdep.c (m68k_return_value): Likewise.
4858 (m68k_svr4_return_value): Likewise.
4859 * m88k-tdep.c (m88k_return_value): Likewise.
4860 * mep-tdep.c (mep_return_value): Likewise.
4861 * microblaze-tdep.c (microblaze_return_value): Likewise.
4862 * mn10300-tdep.c (mn10300_return_value): Likewise.
4863 * moxie-tdep.c (moxie_return_value): Likewise.
4864 * mt-tdep.c (mt_return_value): Likewise.
4865 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4866 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4867 (ppc_sysv_abi_broken_return_value): Likewise.
4868 (ppc64_sysv_abi_return_value): Likewise.
4869 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4870 * rl78-tdep.c (rl78_return_value): Likewise.
4871 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4872 * rx-tdep.c (rx_return_value): Likewise.
4873 * s390-tdep.c (s390_return_value): Likewise.
4874 * score-tdep.c (score_return_value): Likewise.
4875 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4876 (sh_return_value_fpu): Likewise.
4877 * sh64-tdep.c (sh64_return_value): Likewise.
4878 * sparc-tdep.c (sparc32_return_value): Likewise.
4879 * sparc64-tdep.c (sparc64_return_value): Likewise.
4880 * spu-tdep.c (spu_return_value): Likewise.
4881 * tic6x-tdep.c (tic6x_return_value): Likewise.
4882 * v850-tdep.c (v850_return_value): Likewise.
4883 * vax-tdep.c (vax_return_value): Likewise.
4884 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4885 * xtensa-tdep.c (xtensa_return_value): Likewise.
4886 * gdbarch.c: Regenerate.
4887 * gdbarch.h: Regenerate.
4888
29ca12b3
TT
48892012-05-15 Tom Tromey <tromey@redhat.com>
4890
4891 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4892
588ae58c
JB
48932012-05-15 Joel Brobecker <brobecker@adacore.com>
4894
4895 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4896 of command in two error message.
4897
855a6e68
JB
48982012-05-15 Joel Brobecker <brobecker@adacore.com>
4899
4900 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4901
d634f2de
JB
49022012-05-15 Joel Brobecker <brobecker@adacore.com>
4903
4904 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4905
9cc815f5
JK
49062012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 * NEWS (show auto-load scripts-directory): Add forgotten command.
4909
6a609e58
JK
49102012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4911
4912 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4913 parameters.
4914
ac1438b5
L
49152012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4916
4917 * amd64-tdep.c: Include features/i386/x32.c and
4918 features/i386/x32-avx.c.
4919 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4920 initialize_tdesc_x32_avx.
4921
e7e0cddf
SS
49222012-05-14 Stan Shebs <stan@codesourcery.com>
4923
4924 Add dynamic printf.
4925 * breakpoint.h (enum bptype): New type bp_dprintf.
4926 (struct breakpoint): New field extra_string.
4927 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4928 (create_breakpoint): Add extra_string arg.
4929 * breakpoint.c (dprintf_breakpoint_ops): New.
4930 (is_breakpoint): Add bp_dprintf.
4931 (bpstat_what): Add dprintf case.
4932 (bptype_string): Ditto.
4933 (print_one_breakpoint_location): Ditto.
4934 (init_bp_location): Ditto.
4935 (bkpt_print_mention): Ditto.
4936 (dprintf_style_enums): New array.
4937 (dprintf_style): New global.
4938 (dprintf_function): New global.
4939 (dprintf_channel): New global.
4940 (update_dprintf_command_list): New function.
4941 (update_dprintf_commands): New function.
4942 (init_breakpoint_sal): Add extra_string argument, handle it.
4943 (create_breakpoint_sal): Add extra_string argument.
4944 (create_breakpoints_sal): Add extra_string argument, update callers.
4945 (find_condition_and_thread): Add extra argument.
4946 (create_breakpoint): Add extra_string argument, record it.
4947 (dprintf_command): New function.
4948 (break_command_1): Add arg to create_breakpoint call.
4949 (handle_gnu_v3_exceptions): Ditto.
4950 (trace_command): Ditto.
4951 (ftrace_command): Ditto.
4952 (strace_command): Ditto.
4953 (bkpt_print_mention): Add dprintf case.
4954 (create_breakpoint_sal_default): Add extra_string argument.
4955 (_initialize_breakpoint): Add new commands.
4956 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4957 * python/py-breakpoint.c (bppy_init): Ditto.
4958 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4959
8ae38c14
MR
49602012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4961
4962 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4963
9f676e66
SCR
49642012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4965
4966 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4967 unsigned long long.
4968
7efc75aa
SCR
49692012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4970
4971 Add a new function gdb.find_pc_line to the Python API.
4972 * NEWS (Python Scripting): Add entry about the new function.
4973 * python/python.c (gdbpy_find_pc_line): New function which
4974 implements gdb.find_pc_line.
4975 (GdbMethods): Add entry for the new function.
4976
70af3797
PA
49772012-05-12 Pedro Alves <palves@redhat.com>
4978
4979 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4980 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4981
06da564e
EZ
49822012-05-12 Eli Zaretskii <eliz@gnu.org>
4983
4984 * inferior.c: Include completer.h
4985 (initialize_inferiors): Set completer of add-inferior to
4986 filename_completer.
4987
0288cee2
L
49882012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4989
4990 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4991 gdbarch_ptr_bit for x32 core dump.
4992
f6537a2c
L
49932012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4994
4995 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4996 and features/i386/x32-avx-linux.c.
4997
85d4a676
SS
49982012-05-11 Stan Shebs <stan@codesourcery.com>
4999 Kwok Cheung Yeung <kcy@codesourcery.com>
5000
5001 * NEWS: Describe new info os commands.
5002 * common/linux-osdata.c (PID_T, TIME_T): Define.
5003 (MAX_PID_T_STRLEN): New.
5004 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5005 MAX_PID_T_STRLEN.
5006 (command_from_pid): Add comment. Change to use PID_T.
5007 (commandline_from_pid): Change to use PID_T.
5008 (user_from_pid): Add comment.
5009 (get_process_owner): Add comment. Change to use PID_T and
5010 MAX_PID_T_STRLEN.
5011 (get_number_of_cpu_cores): Add comment.
5012 (get_cores_used_by_process): Add comment. Change to use PID_T and
5013 MAX_PID_T_STRLEN.
5014 (linux_xfer_osdata_processes): Change to use PID_T and
5015 MAX_PID_T_STRLEN.
5016 (compare_processes): New function.
5017 (linux_xfer_osdata_processgroups): New function.
5018 (linux_xfer_osdata_threads): Change to use PID_T.
5019 (linux_xfer_osdata_fds): New function.
5020 (format_socket_state, print_sockets): New functions.
5021 (union socket_addr): New union.
5022 (linux_xfer_osdata_isockets): New function.
5023 (time_from_time_t, group_from_gid): New functions.
5024 (linux_xfer_osdata_shm): New function.
5025 (linux_xfer_osdata_sem): New function.
5026 (linux_xfer_osdata_msg): New function.
5027 (linux_xfer_osdata_modules): New function.
5028 (osdata_table): Add new entries.
5029 * common/buffer.c (buffer_xml_printf): Add support for long and
5030 long long format specifiers.
5031
f24afd6d
L
50322012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5033
5034 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5035 (tdesc_x32_avx_linux): Likewise.
5036
7349ff92
JK
50372012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5038
5039 Implement multi-component --with-auto-load-dir.
5040 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5041 entries.
5042 (--with-auto-load-safe-path): Update the default value description.
5043 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5044 New.
5045 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5046 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5047 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5048 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5049 "set auto-load scripts-directory".
5050 * config.in: Regenerate.
5051 * configure: Regenerate.
5052 * configure.ac (--with-auto-load-dir): New configure option.
5053 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5054
6dea1fbd
JK
50552012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5056
5057 Provide $ddir substitution for --with-auto-load-safe-path.
5058 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5059 entries.
5060 * auto-load.c: Include observer.h.
5061 (auto_load_safe_path_vec_update): Call substitute_path_component for
5062 each component. New variable ddir_subst.
5063 (auto_load_gdb_datadir_changed): New function.
5064 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5065 AUTO_LOAD_SAFE_PATH. New comment.
5066 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5067 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5068 * config.in: Regenerate.
5069 * configure: Regenerate.
5070 * configure.ac (--auto-load-safe-path): Rename
5071 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5072 GDB_DATADIR/auto-load.
5073 * defs.h (substitute_path_component): New declaration.
5074 * top.c: Include observer.h.
5075 (set_gdb_datadir): New function.
5076 (init_main): Install it for "set data-directory".
5077 * utils.c (substitute_path_component): New function.
5078
b09aca3a
JK
50792012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5080
5081 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5082 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5083 DEBUG_FILE_DIRECTORY. Handle multiple components of
5084 DEBUG_FILE_DIRECTORY.
5085
95554aad
TT
50862012-05-10 Tom Tromey <tromey@redhat.com>
5087
5088 * dwarf2read.c (recursively_write_psymbols): New function.
5089 (write_psymtabs_to_index): Use it.
5090
5091 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5092 field.
5093 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5094 (load_partial_comp_unit): Update.
5095 (queue_comp_unit): Add argument 'pretend_language'.
5096 (process_queue): Update.
5097 (psymtab_to_symtab_1): Skip dependencies that have a user.
5098 (load_partial_comp_unit_reader): Give meaning to the 'data'
5099 argument.
5100 (load_full_comp_unit): Add 'pretend_language' argument.
5101 (process_full_comp_unit): Add 'pretend_language' argument. Set
5102 language on CU.
5103 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5104 Update.
5105 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5106 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5107 Update.
5108 (prepare_one_comp_unit): Add 'pretend_language' argument.
5109
5110 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5111 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5112 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5113 (dw2_do_instantiate_symtab): Check whether symtab was read in
5114 before queueing.
5115 (dw2_instantiate_symtab): Add assertion. Call
5116 process_cu_includes.
5117 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5118 (partial_symtab_p): New typedef.
5119 (set_partial_user): New function.
5120 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5121 (scan_partial_symbols): Add imported CU to imported_symtabs.
5122 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5123 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5124 (get_symtab, recursively_compute_inclusions)
5125 (compute_symtab_includes, process_cu_includes)
5126 (process_imported_unit_die): New functions.
5127 (process_die) <DW_TAG_imported_unit>: New case.
5128 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5129
5130 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5131 comment.
5132 (struct partial_die_info) <locdesc>: Remove.
5133 <d>: New field.
5134 (process_psymtab_comp_unit): Add 'read_partial' argument.
5135 Update.
5136 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5137 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5138 (add_partial_symbol): Update.
5139 (process_die): Handle DW_TAG_partial_unit.
5140 (read_file_scope): Update comment.
5141 (load_partial_dies): Handle DW_TAG_imported_unit.
5142 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5143 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5144
e871fbb9
TT
51452012-05-10 Tom Tromey <tromey@redhat.com>
5146
5147 * cc-with-dwz.sh: New file.
5148
b5b04b5b
TT
51492012-05-10 Tom Tromey <tromey@redhat.com>
5150
5151 * symtab.h (struct symtab) <includes, user>: New fields.
5152 * block.h (struct block_iterator) <d, idx, which>: New fields.
5153 * block.c (initialize_block_iterator, find_iterator_symtab)
5154 (block_iterator_step, block_iter_name_step)
5155 (block_iter_match_step): New functions.
5156 (block_iterator_first, block_iterator_next)
5157 (block_iter_name_first, block_iter_name_next)
5158 (block_iter_match_first, block_iter_match_next): Rewrite.
5159 (get_block_symtab): New function.
5160
84a146c9
TT
51612012-05-10 Tom Tromey <tromey@redhat.com>
5162
5163 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5164 set_block_symtab.
5165 * jit.c (finalize_symtab): Use allocate_global_block,
5166 set_block_symtab.
5167 * buildsym.c (finish_block_internal): New function, from old
5168 finish_block.
5169 (finish_block): Rewrite.
5170 (end_symtab): Use finish_block_internal, set_block_symtab.
5171 * block.h (struct global_block): New.
5172 (allocate_global_block, set_block_symtab): Declare.
5173 * block.c (allocate_global_block, set_block_symtab): New
5174 functions.
5175
9439a077
TT
51762012-05-10 Tom Tromey <tromey@redhat.com>
5177
5178 * psymtab.c (partial_map_expand_apply): Add assertion.
5179 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5180 (psymtab_to_symtab): Find unshared psymtab.
5181 (dump_psymtab): Print including psymtabs.
5182 (recursively_search_psymtabs): New function.
5183 (expand_symtabs_matching_via_partial): Use it.
5184 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5185 fields.
5186 (enum psymtab_search_status): New.
5187
8157b174
TT
51882012-05-10 Tom Tromey <tromey@redhat.com>
5189
5190 * tracepoint.c (scope_info): Update.
5191 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5192 (find_pc_sect_symtab, search_symbols)
5193 (default_make_symbol_completion_list_break_on)
5194 (make_file_symbol_completion_list): Update.
5195 * symmisc.c (dump_symtab_1): Update.
5196 * stack.c (print_frame_args, iterate_over_block_locals)
5197 (print_frame_labels, iterate_over_block_arg_vars): Update.
5198 * python/py-block.c (block_object) <dict>: Remove.
5199 <block>: New field.
5200 <iter>: Change type.
5201 (blpy_iter): Update.
5202 (blpy_block_syms_iternext): Update.
5203 * psymtab.c (map_block): Use block iterators.
5204 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5205 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5206 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5207 * infrun.c (check_exception_resume): Update.
5208 * cp-support.c (make_symbol_overload_list_block): Update.
5209 * coffread.c (patch_opaque_types): Update.
5210 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5211 * block.h (struct block_iterator): New.
5212 (block_iterator_first, block_iterator_next, block_iter_name_first)
5213 (block_iter_name_next, block_iter_match_first)
5214 (block_iter_match_next): Declare.
5215 (ALL_BLOCK_SYMBOLS): Redefine.
5216 * block.c (block_iterator_first, block_iterator_next)
5217 (block_iter_name_first, block_iter_name_next)
5218 (block_iter_match_first, block_iter_match_next): New functions.
5219 * ada-lang.c (ada_add_block_symbols)
5220 (ada_make_symbol_completion_list): Use block iterator.
5221
a2ca7a52
TT
52222012-05-10 Tom Tromey <tromey@redhat.com>
5223
5224 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5225 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5226 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5227 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5228 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5229 Update.
5230
64ea88dc
JB
52312012-05-10 Joel Brobecker <brobecker@adacore.com>
5232
5233 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5234 print-file-var-lib2.c, print-file-var-main.c and
5235 print-file-var.exp (located in gdb/testsuite/gdb.base).
5236
99a547d6
JB
52372012-05-10 Joel Brobecker <brobecker@adacore.com>
5238
5239 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5240 try locating the symbol in the symbol's own objfile first, before
5241 extending the search to all objfiles.
5242 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5243 out of lookup_symbol_aux_symtabs.
5244 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5245 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5246 Do not search EXCLUDE_OBJFILE.
5247 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5248 (lookup_symbol_global): Search for matches in the block's objfile
5249 first, before searching all other objfiles.
5250
0ece64fd
TG
52512012-05-10 Tristan Gingold <gingold@adacore.com>
5252
5253 * printcmd.c (set_command): Add pre/post inc/dec.
5254
3d16a105
FCE
52552012-05-09 Frank Ch. Eigler <fche@redhat.com>
5256
5257 * gdb.1: Document -ex option.
5258
2efbc0f7
JB
52592012-05-09 Joel Brobecker <brobecker@adacore.com>
5260
5261 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5262 * inferior.h (AT_SYMBOL): Delete.
5263
2c76a0c7
JB
52642012-05-09 Joel Brobecker <brobecker@adacore.com>
5265
5266 * mips-tdep.c (mips_push_dummy_code): New function.
5267 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5268 ON_STACK and install mips_push_dummy_code as our gdbarch
5269 push_dummy_code routine.
5270
9401a810
PA
52712012-05-09 Pedro Alves <palves@redhat.com>
5272
5273 * target.c (set_maintenance_target_async_permitted): Rename to ...
5274 (set_target_async_command): ... this.
5275 (show_maintenance_target_async_permitted): Rename to ...
5276 (show_target_async_command): ... this.
5277 (initialize_targets): Adjust.
5278
3929b321
DE
52792012-05-08 Doug Evans <dje@google.com>
5280
5281 * go-exp.y (classify_name): Add missing assignment of fields of
5282 yylval.ssym.
5283
c41535fd
EZ
52842012-05-08 Eli Zaretskii <eliz@gnu.org>
5285
5286 Display the ">" prompt in interactive mode while reading canned
5287 commands, even when the current interpreter is MI.
5288
5289 * interps.c (interp_set_temp): New function.
5290
5291 * interps.h (interp_set_temp): Add prototype.
5292
5293 * cli/cli-script.c (restore_interp): New cleanup function.
5294 (read_command_lines): Temporarily override the current interpreter
5295 with CLI and arrange for restoring the original one.
5296
c0749c4d
JS
52972012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5298
5299 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5300
d7333987
SDJ
53012012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5302
5303 * probe.c (parse_probes): Move conditional to check for
5304 debuginfo files from here...
5305 * stap-probe.c (stap_get_probes): ... to here.
5306
649e6d92
MK
53072012-05-07 Mark Kettenis <kettenis@gnu.org>
5308 H.J. Lu <hongjiu.lu@intel.com>
5309
5310 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5311 `movl %esp, %ebp' for the X32 ABI.
5312
f39c6ffd
TT
53132012-05-07 Tom Tromey <tromey@redhat.com>
5314
5315 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5316 get_DW_TAG_name.
5317 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5318 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5319 (dwarf_stack_op_name): Remove.
5320 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5321 (decode_locdesc): Use get_DW_OP_name.
5322 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5323 (dwarf2_compile_expr_to_ax): Likewise.
5324 (disassemble_dwarf_expression): Likewise.
5325 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5326
1e1f6591
CLT
53272012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5328
5329 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5330 (sh_linux_sigtramp_cache): New function.
5331 (sh_linux_sigreturn_init): New function.
5332 (sh_linux_rt_sigreturn_init): New function.
5333 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5334 patterns.
5335 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5336 syscall codes.
5337 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5338 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5339 (sh_linux_init_abi): Add init calls to register new tramp_frame
5340 definitions under 32-bit SH, update comments.
5341
545c08b4
PA
53422012-05-07 Pedro Alves <palves@redhat.com>
5343
daac165e
PA
5344 PR gdb/10952
5345
545c08b4
PA
5346 * amd64-linux-tdep.c: Include glibc-tdep.h.
5347 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5348 gdbarch_skip_solib_resolver callback.
5349
af2c1515
JK
53502012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5351
5352 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5353 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5354 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5355 (add_auto_load_safe_path): Change the error message.
5356 (_initialize_auto_load): Change the "safe-path" help text.
5357 * configure: Regenerate
5358 * configure.ac (--without-auto-load-safe-path): Set
5359 WITH_AUTO_LOAD_SAFE_PATH to /.
5360
1067f998
SDJ
53612012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5362
5363 * stap-probe.h: Do not include unecessary `probe.h'.
5364
45dfa85a
AM
53652012-05-05 Alan Modra <amodra@gmail.com>
5366
5367 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5368 bfd_und_section_ptr.
5369 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5370 and bfd_com_section_ptr.
5371
cf093994
JB
53722012-05-04 Joel Brobecker <brobecker@adacore.com>
5373
762ebb75 5374 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5375
d40dc7a8
JB
53762012-05-04 Joel Brobecker <brobecker@adacore.com>
5377
5378 * windows-nat.h (segment_register_p_ftype): New typedef.
5379 (windows_set_segment_register_p): Add declaration.
5380 * windows-nat.c (segment_register_p): New static global.
5381 (windows_set_segment_register_p): New function.
5382 (do_windows_fetch_inferior_registers): Add special handling
5383 for segment registers.
5384 * amd64-windows-nat.c: #include "amd64-tdep.h".
5385 (amd64_windows_segment_register_p): New function.
5386 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5387 * i386-windows-nat.c: #include "i386-tdep.h".
5388 (i386_windows_segment_register_p): New function.
5389 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5390
52b3699b
TG
53912012-05-04 Tristan Gingold <gingold@adacore.com>
5392
5393 * printcmd.c (set_command): Emit a warning if the expression is not
5394 an assignment.
5395
94c74239
JB
53962012-05-03 Joel Brobecker <brobecker@adacore.com>
5397
5398 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5399 Make static.
5400
fcf57f19
SDJ
54012012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5402
5403 * stap-probe.c (stap_is_operator): Change declaration.
5404 (stap_get_opcode): Change return value.
5405 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5406 `stap_parse_argument_1'.
5407
27d2932e
PA
54082012-05-03 Pedro Alves <pedro@codesourcery.com>
5409
5410 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5411 debug log.
5412
a20ee7a4
SCR
54132012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5414
5415 Add two new methods global_block and static_block to gdb.Symtab
5416 objects.
5417 * NEWS (Python scripting): Add entry about the new methods.
5418 * python/py-symtab.c (stpy_global_block): New function which
5419 implements the gdb.Symtab.global_block() method.
5420 (stpy_static_block): New function which implements the
5421 gdb.Symtab.static_block() method.
5422 (symtab_object_methods): Add entries for the two new methods.
5423
943cb756
DE
54242012-05-03 Doug Evans <dje@google.com>
5425
5426 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5427 files.
5428
f4644a3f
YQ
54292012-05-03 Yao Qi <yao@codesourcery.com>
5430
5431 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5432 space.
5433 (i386_process_record): Ditto.
5434
ef61f180
JB
54352012-05-02 Joel Brobecker <brobecker@adacore.com>
5436
5437 * infcall.c (unwind_on_signal_p): Make static.
5438
02f1df11
JB
54392012-05-02 Joel Brobecker <brobecker@adacore.com>
5440
5441 * sol-thread.c (solaris_pid_to_str): Make static.
5442 (_initialize_sol_thread): Add prototype.
5443
39023530
JB
54442012-05-02 Joel Brobecker <brobecker@adacore.com>
5445
5446 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5447
c6b0c501
CF
54482012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5449
5450 * MAINTAINERS: Remove myself.
5451
1ef71717
JK
54522012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5453
5454 Fix --without-auto-load-safe-path for MS-Windows host platform.
5455 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5456
b31b86a7
EZ
54572012-05-02 Eli Zaretskii <eliz@gnu.org>
5458
5459 * gdb_curses.h: Undefine KEY_EVENT before including curses
5460 headers. Move "#undef MOUSE_MOVED" before any curses header
5461 inclusion.
5462
777532fc
SDJ
54632012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5464
5465 * features/i386/i386-mmx-linux.c: Regenerate.
5466 * features/rs6000/powerpc-32.c: Likewise.
5467 * features/rs6000/powerpc-32l.c: Likewise.
5468 * features/rs6000/powerpc-403.c: Likewise.
5469 * features/rs6000/powerpc-403gc.c: Likewise.
5470 * features/rs6000/powerpc-405.c: Likewise.
5471 * features/rs6000/powerpc-505.c: Likewise.
5472 * features/rs6000/powerpc-601.c: Likewise.
5473 * features/rs6000/powerpc-602.c: Likewise.
5474 * features/rs6000/powerpc-603.c: Likewise.
5475 * features/rs6000/powerpc-604.c: Likewise.
5476 * features/rs6000/powerpc-64.c: Likewise.
5477 * features/rs6000/powerpc-64l.c: Likewise.
5478 * features/rs6000/powerpc-750.c: Likewise.
5479 * features/rs6000/powerpc-860.c: Likewise.
5480 * features/rs6000/powerpc-e500.c: Likewise.
5481 * features/rs6000/powerpc-e500l.c: Likewise.
5482 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5483 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5484 * features/rs6000/rs6000.c: Likewise.
5485
d71871bc
SDJ
54862012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5487
5488 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5489 variable.
5490 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5491 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5492 (stap_parse_argument) <e>: Likewise.
5493 (handle_stap_probe) <byte_order>: Likewise.
5494
fd820528
DE
54952012-04-30 Doug Evans <dje@google.com>
5496
5497 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5498 init_and_read_dies_worker. All callers updated.
5499 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5500 replaced with init_cutu_and_read_dies.
5501 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5502 (find_partial_die): Remove FIXME. Don't free current CU.
5503
ec3f619d 55042012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5505
5506 * contrib: New directory.
5507 * contrib/test_pubnames_and_indexes.py: New file.
5508
fceca515
DE
55092012-04-30 Doug Evans <dje@google.com>
5510
5511 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5512 All callers updated.
5513 (init_cu_die_reader): Verify the section is non-empty.
5514 (dwarf_decode_line_header): Don't dereference section->asection
5515 until we know the section is present.
5516
311fe7e1
SDJ
55172012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5518
5519 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5520 probes.
5521
5977971a
YQ
55222012-04-29 Yao Qi <yao@codesourcery.com>
5523
5524 * gdb-code-style.el: New hook gdb-markup-hook
5525 and gdb-comment-hook.
5526
dee91e82
DE
55272012-04-28 Doug Evans <dje@google.com>
5528
3019eac3
DE
5529 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5530 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5531 objfile->obfd.
5532 * symfile.h (dwarf2_debug_sections): New member addr.
5533 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5534 (ctx_no_get_addr_index): New function.
5535 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5536 (ctx_no_get_addr_index): Declare.
5537 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5538 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5539 (dwarf_expr_ctx_funcs): Update.
5540 (needs_get_addr_index): New function.
5541 (needs_frame_ctx_funcs): Update.
5542 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5543 * dwarf2read.c: #include "gdbcore.h".
5544 (dwarf2_per_objfile): New members addr, dwo_files.
5545 (dwarf2_elf_names): Add entry for addr.
5546 (struct dwo_section_names): New type.
5547 (dwo_section_names): New static global.
5548 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5549 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5550 old debug_types_section member updated to use this.
5551 Rename member debug_types_section to info_or_types_section,
5552 all uses updated.
5553 (signatured_type): Rename member type_offset to type_offset_in_tu,
5554 all uses updated. New member type_offset_in_section.
5555 (struct dwo_sections): New type.
5556 (struct dwo_unit): New type.
5557 (struct dwo_file): New type.
5558 (die_reader_specs): New member dwo_file.
5559 (dwarf2_locate_sections): Watch for .debug_addr.
5560 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5561 (dwarf2_read_section): Get bfd of section from bfd's asection,
5562 instead of objfile.
5563 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5564 (create_signatured_type_table_from_index): Initialize
5565 sig_type->info_or_types_section.
5566 (dw2_get_file_names): Statement lists for type units with DWO files
5567 live in the DWO file.
5568 (create_debug_types_hash_table): New function.
5569 (create_all_type_units): Rewrite.
5570 (init_cu_die_reader): New arg dwo_file, all callers updated.
5571 (init_and_read_dies_worker): Get section from
5572 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5573 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5574 continue reading the CU/TU from there.
5575 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5576 updated. Get section from this_cu->info_or_types_section.
5577 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5578 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5579 DW_FORM_GNU_str_index.
5580 (hash_dwo_file, eq_dwo_file): New functions.
5581 (allocate_dwo_file_hash_table): New function.
5582 (hash_dwo_unit, eq_dwo_unit): New functions.
5583 (allocate_dwo_unit_table): New function.
5584 (dwarf2_locate_dwo_sections): New function.
5585 (struct create_dwo_info_table_data): New type.
5586 (create_debug_info_hash_table_reader): New function.
5587 (create_debug_info_hash_table): New function.
5588 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5589 (lookup_dwo_file): New function.
5590 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5591 (free_dwo_file, free_dwo_file_cleanup): New functions.
5592 (free_dwo_file_from_slot, free_dwo_files): New functions.
5593 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5594 (dwarf2_record_block_ranges): Ditto.
5595 (read_partial_die): Ditto.
5596 (process_enumeration_scope): Update to use type_offset_in_section.
5597 (read_full_die_1): New function.
5598 (read_full_die): Rewrite.
5599 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5600 DW_FORM_GNU_str_index.
5601 (read_addr_index_1, read_addr_index): New functions.
5602 (read_addr_index_from_leb128): New function.
5603 (struct dwarf2_read_addr_index_data): New type.
5604 (dwarf2_read_addr_index_reader): New function.
5605 (dwarf2_read_addr_index): New function.
5606 (read_str_index): New function.
5607 (leb128_size): New function.
5608 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5609 If processing a type unit from a DWO file, get the line section
5610 from the DWO file.
5611 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5612 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5613 DW_FORM_GNU_str_index.
5614 (lookup_die_type): Check whether section offset of type's die is
5615 known before looking it up. Remove assert. Condition can
5616 legimately happen for inter-cu type references.
5617 (dwarf_attr_name): Handle Fission attributes.
5618 (dwarf_form_name): Handle Fission forms.
5619 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5620 DW_FORM_GNU_str_index.
5621 (follow_die_sig): Update to use type_offset_in_section.
5622 (decode_locdesc): New case DW_OP_GNU_addr_index.
5623 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5624 DW_FORM_GNU_str_index.
5625 (cu_debug_loc_section): New function.
5626 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5627 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5628 Free DWO files if present.
5629 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5630
dee91e82
DE
5631 Refactor DIE reading.
5632 * dwarf2read.c (dwarf2_per_objfile): Replace members
5633 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5634 (die_reader_specs): New member "die_section". Temporarily make
5635 member "buffer" non-const, pending constifying all info_ptr uses.
5636 (die_reader_func_ftype): New typedef.
5637 (dw2_get_file_names_reader): New function.
5638 (dw2_get_file_names): Rewrite.
5639 (read_and_check_type_unit_head): Rename arg type_offset to
5640 type_offset_in_tu.
5641 (create_all_type_units): Improve debugging message.
5642 Improve dummy type unit check.
5643 (init_cu_die_reader): New arg "section". All callers updated.
5644 (init_and_read_dies_worker): New function.
5645 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5646 (init_cutu_and_read_dies_no_follow): New function.
5647 (init_cutu_and_read_dies_simple): New function.
5648 (process_psymtab_comp_unit_reader): New function.
5649 (process_psymtab_comp_unit): Delete args section,
5650 is_debug_types_section. Rewrite. All callers updated.
5651 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5652 All callers updated. Rewrite.
5653 (load_partial_comp_unit_reader): New function.
5654 (load_partial_comp_unit): Rewrite.
5655 (skip_children): New arg reader. Delete args buffer, cu.
5656 All callers updated.
5657 (skip_one_die): New arg reader. Delete args buffer, cu.
5658 All callers updated.
5659 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5660 All callers updated.
5661 (load_full_comp_unit_reader): New function.
5662 (load_full_comp_unit): Rewrite.
5663 (read_comp_unit): Delete.
5664 (read_die_and_children_1): Delete, contents moved ...
5665 (read_die_and_children): ... here.
5666 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5667 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5668 All callers updated.
5669 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5670 All callers updated.
5671 (find_partial_die): Rewrite load_all_dies support.
5672 (read_attribute_value): New arg reader. Delete args abfd, cu.
5673 All callers updated.
5674 (read_attribute): New arg reader. Delete args abfd, cu.
5675 All callers updated.
5676 (load_full_type_unit): Add assert.
5677 (read_signatured_type_reader): New function.
5678 (read_signatured_type): Rewrite.
5679 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5680 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5681 All callers updated. Set per_cu->cu = NULL after freeing it.
5682 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5683 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5684 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5685 (set_die_type): Update.
5686 (get_die_type_at_offset): Update.
5687 (read_file_scope): Call prepare_one_comp_unit.
5688 (read_type_unit_scope): Ditto.
5689 (prepare_one_comp_unit): Set producer if present.
5690
72d59e0d
SDJ
56912012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5692
5693 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5694 gettext function on `error'.
5695
0fefef59
DE
56962012-04-27 Doug Evans <dje@google.com>
5697
5698 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5699 is empty.
5700
28106bc2
SDJ
57012012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5702 Tom Tromey <tromey@redhat.com>
5703
5704 * breakpoint.c (struct breakpoint_objfile_data)
5705 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5706 <exception_probes>: New fields.
5707 (free_breakpoint_probes): New function.
5708 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5709 `_Unwind_DebugHook'.
5710 (create_exception_master_breakpoint): Likewise.
5711 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5712 * infrun.c: Including necessary header files for handling SystemTap
5713 probes.
5714 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5715 via SystemTap probes.
5716 (check_exception_resume): Remove `func' argument. Handle exception
5717 unwinding breakpoint set via a SystemTap probe.
5718 (insert_exception_resume_from_probe): New function.
5719
55aa24fb
SDJ
57202012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5721 Tom Tromey <tromey@redhat.com>
5722 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5725 (COMMON_OBS): Likewise.
5726 (HFILES_NO_SRCDIR): Add `probe'.
5727 * NEWS: Mention support for static and SystemTap probes.
5728 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5729 SystemTap probes' arguments parser.
5730 * arm-linux-tdep.c: Including headers needed to perform the parsing
5731 of SystemTap probes' arguments.
5732 (arm_stap_is_single_operand): New function.
5733 (arm_stap_parse_special_token): Likewise.
5734 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5735 probes' arguments parser.
5736 * ax-gdb.c (require_rvalue): Removing static declaration.
5737 (gen_expr): Likewise.
5738 * ax-gdb.h (gen_expr): Declaring function.
5739 (require_rvalue): Likewise.
5740 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5741 (bkpt_probe_breakpoint_ops): New variable.
5742 (momentary_breakpoint_from_master): Set the `probe' value.
5743 (add_location_to_breakpoint): Likewise.
5744 (break_command_1): Using proper breakpoint_ops according to the
5745 argument passed by the user in the command line.
5746 (bkpt_probe_insert_location): New function.
5747 (bkpt_probe_remove_location): Likewise.
5748 (bkpt_probe_create_sals_from_address): Likewise.
5749 (bkpt_probe_decode_linespec): Likewise.
5750 (tracepoint_probe_create_sals_from_address): Likewise.
5751 (tracepoint_probe_decode_linespec): Likewise.
5752 (tracepoint_probe_breakpoint_ops): New variable.
5753 (trace_command): Using proper breakpoint_ops according to the
5754 argument passed by the user in the command line.
5755 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5756 static probes on breakpoints and tracepoints.
5757 * breakpoint.h (struct bp_location) <probe>: New field.
5758 * cli-utils.c (skip_spaces_const): New function.
5759 (extract_arg): Likewise.
5760 * cli-utils.h (skip_spaces_const): Likewise.
5761 (extract_arg): Likewise.
5762 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5763 * configure.ac: Append `stap-probe.o' to be generated when ELF
5764 support is present.
5765 * configure: Regenerate.
5766 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5767 * elfread.c: Include `probe.h' and `arch-utils.h'.
5768 (probe_key): New variable.
5769 (elf_get_probes): New function.
5770 (elf_get_probe_argument_count): Likewise.
5771 (elf_evaluate_probe_argument): Likewise.
5772 (elf_compile_to_ax): Likewise.
5773 (elf_symfile_relocate_probe): Likewise.
5774 (stap_probe_key_free): Likewise.
5775 (elf_probe_fns): New variable.
5776 (elf_sym_fns): Add `sym_probe_fns' value.
5777 (elf_sym_fns_lazy_psyms): Likewise.
5778 (elf_sym_fns_gdb_index): Likewise.
5779 (_initialize_elfread): Initialize objfile cache for static
5780 probes.
5781 * gdb_vecs.h (struct probe): New forward declaration.
5782 (probe_p): New VEC declaration.
5783 * gdbarch.c: Regenerate.
5784 * gdbarch.h: Regenerate.
5785 * gdbarch.sh (stap_integer_prefix): New variable.
5786 (stap_integer_suffix): Likewise.
5787 (stap_register_prefix): Likewise.
5788 (stap_register_suffix): Likewise.
5789 (stap_register_indirection_prefix): Likewise.
5790 (stap_register_indirection_suffix): Likewise.
5791 (stap_gdb_register_prefix): Likewise.
5792 (stap_gdb_register_suffix): Likewise.
5793 (stap_is_single_operand): New function.
5794 (stap_parse_special_token): Likewise.
5795 (struct stap_parse_info): Forward declaration.
5796 * i386-tdep.c: Including headers needed to perform the parsing
5797 of SystemTap probes' arguments.
5798 (i386_stap_is_single_operand): New function.
5799 (i386_stap_parse_special_token): Likewise.
5800 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5801 probes' arguments parser.
5802 * i386-tdep.h (i386_stap_is_single_operand): New function.
5803 (i386_stap_parse_special_token): Likewise.
5804 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5805 * mipsread.c (ecoff_sym_fns): Likewise.
5806 * objfiles.c (objfile_relocate1): Support relocation for static
5807 probes.
5808 * parse.c (prefixify_expression): Remove static declaration.
5809 (initialize_expout): Likewise.
5810 (reallocate_expout): Likewise.
5811 * parser-defs.h (initialize_expout): Declare function.
5812 (reallocate_expout): Likewise.
5813 (prefixify_expression): Likewise.
5814 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5815 of SystemTap probes' arguments.
5816 (ppc_stap_is_single_operand): New function.
5817 (ppc_stap_parse_special_token): Likewise.
5818 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5819 probes' arguments parser.
5820 * probe.c: New file, for generic statically defined probe support.
5821 * probe.h: Likewise.
5822 * s390-tdep.c: Including headers needed to perform the parsing of
5823 SystemTap probes' arguments.
5824 (s390_stap_is_single_operand): New function.
5825 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5826 probes' arguments parser.
5827 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5828 * stap-probe.c: New file, for SystemTap probe support.
5829 * stap-probe.h: Likewise.
5830 * symfile.h: Include `gdb_vecs.h'.
5831 (struct sym_probe_fns): New struct.
5832 (struct sym_fns) <sym_probe_fns>: New field.
5833 * symtab.c (init_sal): Initialize `probe' field.
5834 * symtab.h (struct probe): Forward declaration.
5835 (struct symtab_and_line) <probe>: New field.
5836 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5837 locations.
5838 (stop_tracing): Likewise.
5839 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5840
22d2b532
SDJ
58412012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5842 Tom Tromey <tromey@redhat.com>
5843
5844 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5845 and to compile agent expressions.
5846 * infrun.c (siginfo_make_value): New argument `ignore'.
5847 (siginfo_funcs): New struct.
5848 (_initialize_infrun): New argument when calling
5849 `create_internalvar_type_lazy'.
5850 * thread.c (thread_id_make_value): New argument `ignore'.
5851 (thread_funcs): New struct.
5852 (_initialize_thread): New argument when calling
5853 `create_internalvar_type_lazy'.
5854 * tracepoint.c (sdata_make_value): New argument `ignore'.
5855 (sdata_funcs): New struct.
5856 (_initialize_tracepoint): New argument when calling
5857 `create_internalvar_type_lazy'.
5858 * value.c (make_value): New struct.
5859 (create_internalvar_type_lazy): New argument `data'.
5860 (compile_internalvar_to_ax): New function.
5861 (value_of_internalvar): Properly handling `make_value' case.
5862 (clear_internalvar): Likewise.
5863 (show_convenience): Adding `TRY_CATCH' block.
5864 * value.h (internalvar_make_value): Delete, replace by...
5865 (struct internalvar_funcs): ... this.
5866 (create_internalvar_type_lazy) <fun>: Delete argument.
5867 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5868 (compile_internalvar_to_ax): New function.
5869 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5870 (tlb_funcs): New struct.
5871 (_initialize_windows_tdep): New argument when calling
5872 `create_internalvar_type_lazy'.
5873
91da1414
MW
58742012-04-27 Mark Wielaard <mjw@redhat.com>
5875
5876 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5877 see whether it is an address or a constant offset from DW_AT_low_pc.
5878 (dwarf2_record_block_ranges): Likewise.
5879 (read_partial_die): Likewise.
5880
4ab9d8ec
MW
58812012-04-26 Mark Wielaard <mjw@redhat.com>
5882
5883 * MAINTAINERS (Write After Approval): Add myself to the list.
5884
a0911fd0
MR
58852012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5886
5887 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5888 (proc_prettyprint_signal): Likewise.
5889 (proc_prettyprint_faultset): Likewise.
5890 (proc_prettyprint_fault): Likewise.
5891 (proc_prettyprint_actionset): Likewise.
5892 (proc_prettyprint_flags): Move to new proc-flags.c section.
5893 (proc_prettyfprint_flags): New prototype.
5894 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5895 (proc_syscall, proc_cursig): Likewise.
5896 (proc_set_kill_on_last_close): Likewise.
5897 (proc_unset_kill_on_last_close): Likewise.
5898 (proc_set_watchpoint): Make static.
5899 (proc_delete_dead_threads): Likewise.
5900 (procfs_set_watchpoint): Likewise.
5901 (_initialize_procfs): Add prototype.
5902 * proc-events.c: Include proc-utils.h.
5903 (init_syscall_table): Make static.
5904 * proc-api.c (_initialize_proc_api): Add prototype.
5905 * proc-flags.c: Include proc-utils.h.
5906
9009e1ae
MR
59072012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5908
5909 * configure.ac: Add AC_ARG_PROGRAM.
5910 * configure: Regenerate.
5911
4fae6e18
JK
59122012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5913
5914 Fix DW_AT_lower_bound defaults for DWARF-4+.
5915 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5916 high. New variable low_default_is_valid. Implement DWARF-4+
5917 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5918 no default by the DWARF standard.
5919
14132e89 59202012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5921 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5922
5923 * infrun.c (handle_inferior_event): Move the check for return
5924 trampolines ahead of the check for function trampolines.
5925 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5926 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5927 (mips_str_mips16_ret_stub): Likewise.
5928 (mips_str_call_fp_stub): Likewise.
5929 (mips_str_call_stub): Likewise.
5930 (mips_str_fn_stub): Likewise.
5931 (mips_str_pic): Likewise.
5932 (mips_in_frame_stub): New function.
5933 (mips_unwind_pc): Return the return address rather than the PC
5934 if the PC of an intermediate frame is inside a call thunk.
5935 (mips_is_stub_suffix): New function.
5936 (mips_is_stub_mode): Likewise.
5937 (mips_get_mips16_fn_stub_pc): Likewise.
5938 (mips_skip_mips16_trampoline_code): Update to handle all the
5939 currently generated stub types. Don't recurse into __fn_stub
5940 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5941 Use cooked register accesses.
5942 (mips_in_return_stub): Reintroduce function.
5943 (mips_skip_trampoline_code): Traverse trampolines recursively.
5944 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5945
518f0db5 59462012-04-26 Joel Brobecker <brobecker@adacore.com>
5947
5948 GDB 7.4.1 released.
5949
3184d3f9
JL
59502012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5951
5952 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5953 * features/arm-with-m-vfp-d16.xml: New file. Describes
5954 Cortex-M with VFPv4-sp-d16 FPU register layout.
5955 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5956 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5957 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5958 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5959 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5960
b6201d44
DE
59612012-04-25 Doug Evans <dje@google.com>
5962
5963 * cli/cli-decode.c (print_doc_line): Use stream instead of
5964 current_uiout.
5965
4e2f8df6
SDJ
59662012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5967
5968 * features/arm-with-iwmmxt.c: Regenerate.
5969 * features/arm-with-m-fpa-layout.c: Likewise.
5970 * features/arm-with-m.c: Likewise.
5971 * features/arm-with-neon.c: Likewise.
5972 * features/arm-with-vfpv2.c: Likewise.
5973 * features/arm-with-vfpv3.c: Likewise.
5974 * features/mips-dsp-linux.c: Likewise.
5975 * features/mips-linux.c: Likewise.
5976 * features/mips64-dsp-linux.c: Likewise.
5977 * features/mips64-linux.c: Likewise.
5978 * features/s390-linux32.c: Likewise.
5979 * features/s390-linux32v1.c: Likewise.
5980 * features/s390-linux32v2.c: Likewise.
5981 * features/s390-linux64.c: Likewise.
5982 * features/s390-linux64v1.c: Likewise.
5983 * features/s390-linux64v2.c: Likewise.
5984 * features/s390x-linux64.c: Likewise.
5985 * features/s390x-linux64v1.c: Likewise.
5986 * features/s390x-linux64v2.c: Likewise.
5987 * features/tic6x-c62x-linux.c: Likewise.
5988 * features/tic6x-c62x.c: Likewise.
5989 * features/tic6x-c64x-linux.c: Likewise.
5990 * features/tic6x-c64x.c: Likewise.
5991 * features/tic6x-c64xp-linux.c: Likewise.
5992 * features/tic6x-c64xp.c: Likewise.
5993 * target-descriptions.c: Only generate `field_type' and `type'
5994 variables when needed.
5995
2def3e66
JB
59962012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5997
5998 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5999
a766d390
DE
60002012-04-25 Doug Evans <dje@google.com>
6001
6002 Initial pass at Go language support.
6003 * NEWS: Mention Go.
6004 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6005 go-valprint.c.
6006 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6007 (YYFILES): Add go-exp.c.
6008 (YYOBJ): Add go-exp.o.
6009 (local-maintainer-clean): Delete go-exp.c.
6010 * defs.h (enum language): Add language_go.
6011 * dwarf2read.c: #include "go-lang.h".
6012 (fixup_go_packaging): New function.
6013 (process_full_comp_unit): Call it when processing Go CUs.
6014 (dwarf2_physname): Add Go support.
6015 (read_file_scope): Handle missing language spec for GNU Go.
6016 (set_cu_language): Handle DW_LANG_Go.
6017 * go-exp.y: New file.
6018 * go-lang.h: New file.
6019 * go-lang.c: New file.
6020 * go-typeprint.c: New file.
6021 * go-valprint.c: New file.
6022 * symtab.c: #include "go-lang.h".
6023 (symbol_set_language): Handle language_go.
6024 (symbol_find_demangled_name, symbol_set_names): Ditto.
6025 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6026
4e2af517
JM
60272012-04-24 Jim Meyering <meyering@redhat.com>
6028
6029 avoid a few strncpy-induced buffer overruns
6030 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6031 fname and psargs before trying to concatenate.
6032 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6033 "name" before applying strchr.
6034
b77b7f52
SCR
60352012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6036
6037 * CONTRIBUTE: Use unified diff instead of context diff when
6038 generating patches.
6039
6321c22a
MR
60402012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6041
6042 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6043 code. Handle JR.HB correctly.
6044
742c84f6
MR
60452012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6046
6047 * mips-tdep.c
6048 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6049 with the other MIPS16 helpers.
6050
7fc7e0c3
SDJ
60512012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6052
6053 * observer.sh: Conditionally declare `args', thus cleaning up
6054 unused instances of this variable.
6055
20388dd6
YQ
60562012-04-24 Yao Qi <yao@codesourcery.com>
6057
6058 Revert this patch to allow breakpoint always-inserted
6059 in record target.
6060 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6061 * breakpoint.c: Include record.h.
6062 (breakpoints_always_inserted_mode): Return false when the record
6063 target is in use.
20388dd6
YQ
6064
6065 * breakpoint.c (iterate_over_bp_locations): New.
6066 * breakpoint.h: Declare.
6067 New typedef walk_bp_location_callback.
6068 * record.c (record_open): Call record_init_record_breakpoints.
6069 (record_sync_record_breakpoints): New.
6070 (record_init_record_breakpoints): New.
6071 * NEWS: Mention supporting breakpoint always-inserted mode in
6072 record target.
6073
4734f50e
MK
60742012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6075
6076 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6077 any thread.
6078
c326b90e
YQ
60792012-04-24 Yao Qi <yao@codesourcery.com>
6080
6081 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6082 (is_catchpoint): ... it.
6083 (print_one_breakpoint_location): Caller update.
6084 * breakpoint.h: Update declaration.
6085
d8fb5a1e
DM
60862012-04-23 David S. Miller <davem@davemloft.net>
6087
6088 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6089
34431a2a
TT
60902012-04-23 Tom Tromey <tromey@redhat.com>
6091
6092 * buildsym.c (add_free_pendings): Remove.
6093 * buildsym.h (add_free_pendings): Remove.
6094
4568ecf9
DE
60952012-04-23 Doug Evans <dje@google.com>
6096
6097 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6098 attr.u.unsnd instead of attr.u.addr.
6099 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6100 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6101 DW_FORM_ref_udata.
6102 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6103 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6104 DW_FORM_ref_udata.
6105 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6106
dca9aa3a
MR
61072012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6108
6109 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6110 (mips_o32_return_value): Likewise.
6111 (mips_o64_return_value): Likewise.
6112
c8ea1972
PH
61132012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6114
6115 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6116 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6117 their treatment in eval.c.
c8ea1972 6118
8d1b3521
DM
61192012-04-21 David S. Miller <davem@davemloft.net>
6120
6121 * sparc-tdep.c (X_DISP10): Define.
6122 (sparc_analyze_control_transfer): Handle compare-and-branch.
6123
03145bf4
JL
61242012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6125
6126 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6127 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6128
004159a2 61292012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6130 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6131
6132 * mips-tdep.c (mips_float_register_p): New function.
6133 (mips_convert_register_float_case_p): Use mips_float_register_p.
6134 (mips_register_type): Likewise.
6135 (mips_print_register): Likewise.
6136 (print_gp_register_row): Likewise.
6137 (mips_print_registers_info): Likewise.
6138
7f0e6aae
MR
61392012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6140
6141 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6142 of mips16 symbols.
6143
bc17beea
AP
61442012-04-20 Andrew Pinski <apinski@cavium.com>
6145
6146 * MAINTAINERS (Write After Approval): Add myself to the list.
6147
1730a5a5
SDJ
61482012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6149
6150 * MAINTAINERS: Update my e-mail address.
6151
38ea300a
PA
61522012-04-20 Pedro Alves <palves@redhat.com>
6153
6154 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6155 $srcdir.
6156 * configure: Regenerate.
6157
111dfaae
SDJ
61582012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6159
6160 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6161 declaration.
6162 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6163
4fb2c64a
JK
61642012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6165
6166 Fix compilation compatibility with python-2.4
6167 * python/py-type.c (convert_field): Cast ADDRSTRING for
6168 PyObject_SetAttrString as non-const. New comment.
6169
6328eb38
TT
61702012-04-19 Tom Tromey <tromey@redhat.com>
6171
6172 * top.c (quit_target): Use all_cleanups.
6173 * main.c (captured_command_loop): Use all_cleanups.
6174 * exceptions.c (throw_exception): Use all_cleanups.
6175
c971b7fa
PA
61762012-04-19 Pedro Alves <palves@redhat.com>
6177
6178 * Makefile.in (GNULIB_BUILDDIR): New.
6179 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6180 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6181 (CLEANDIRS). Remove gnulib/import.
6182 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6183 (all-lib): Ditto.
6184 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6185 (gnulib/import/Makefile): Replace gnulib/import with
6186 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6187 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6188 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6189 acx_configure_dir.m4.
6190 * acinclude.m4: Include acx_configure_dir.m4.
6191 * acx_configure_dir.m4: New file.
6192 * aclocal.m4: Regenerate.
a09130f9
PA
6193 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6194 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6195 (GNULIB): New variable.
6196 (GNULIB_STDINT_H): Adjust.
6197 (AC_OUTPUT): Don't output gnulib/Makefile.
6198 * gdb/defs.h: Include build-gnulib/config.h.
6199 * aclocal.m4: Regenerate.
6200 * config.in: Regenerate.
6201 * configure: Regenerate.
6202
6203 * gnulib/Makefile.in: New file.
6204 * gnulib/configure.ac: New file.
6205 * gnulib/aclocal.m4: New file.
6206 * gnulib/config.in: New file.
6207 * gnulib/configure: New file.
c971b7fa
PA
6208 * gnulib/: Re-run gnulib-tool to adjust.
6209
b10faa68
DE
62102012-04-19 Doug Evans <dje@google.com>
6211
6212 * cleanups.h (struct cleanup): Move to cleanups.c.
6213 (make_cleanup_dtor_ftype): New typedef.
6214 (make_cleanup_dtor): Use it.
6215 (ALL_CLEANUPS): Replace with ...
6216 (all_cleanups): ... this. Declare. All uses updated.
6217 * cleanups.c: #include "gdb_assert.h".
6218 (sentinel_cleanup): New static global.
6219 (SENTINEL_CLEANUP): Define.
6220 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6221 (make_my_cleanup2): Assert result is non-NULL.
6222 (all_cleanups): New function.
6223 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6224 of NULL.
6225
d8c267cc
PA
62262012-04-19 Pedro Alves <palves@redhat.com>
6227
6228 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6229 Adjust paths to gnulib imported files.
6230
809277f8
PA
62312012-04-19 Pedro Alves <palves@redhat.com>
6232
6233 * gnulib/: Move whole directory ...
6234 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6235 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6236 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6237 (aclocal_m4_deps): Adjust.
6238 * aclocal.m4: Regenerate.
6239 * configure: Regenerate.
6240 * configure.ac: Adjust AC_OUTPUT output.
6241
aad9eab9
YQ
62422012-04-19 Yao Qi <yao@codesourcery.com>
6243
6244 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6245 (vec.o): New rule.
6246 * vec.c: Move it ...
6247 * common/vec.c: ... here.
6248 * vec.h: Move it ...
6249 * common/vec.h: ... here.
6250
48fe4669
YQ
62512012-04-19 Yao Qi <yao@codesourcery.com>
6252
6253 * gdb-code-style.el: New.
6254
770d76d7
PA
62552012-04-18 Pedro Alves <palves@redhat.com>
6256
6257 Update gnulib from latest git.
6258 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6259
6260 * gnulib/Makefile.am: Update.
6261 * gnulib/dummy.c: Update.
6262 * gnulib/extra/arg-nonnull.h: Update.
6263 * gnulib/extra/c++defs.h: Update.
6264 * gnulib/extra/update-copyright: Update.
6265 * gnulib/extra/warn-on-use.h: Update.
6266 * gnulib/inttypes.in.h: Update.
6267 * gnulib/m4/00gnulib.m4: Update.
6268 * gnulib/m4/extensions.m4: Update.
6269 * gnulib/m4/gnulib-cache.m4: Update.
6270 * gnulib/m4/gnulib-common.m4: Update.
6271 * gnulib/m4/gnulib-comp.m4: Update.
6272 * gnulib/m4/gnulib-tool.m4: Update.
6273 * gnulib/m4/include_next.m4: Update.
6274 * gnulib/m4/inttypes-pri.m4: Update.
6275 * gnulib/m4/inttypes.m4: Update.
6276 * gnulib/m4/longlong.m4: Update.
6277 * gnulib/m4/memchr.m4: Update.
6278 * gnulib/m4/memmem.m4: Update.
6279 * gnulib/m4/mmap-anon.m4: Update.
6280 * gnulib/m4/multiarch.m4: Update.
6281 * gnulib/m4/onceonly.m4: Update.
6282 * gnulib/m4/stddef_h.m4: Update.
6283 * gnulib/m4/stdint.m4: Update.
6284 * gnulib/m4/string_h.m4: Update.
6285 * gnulib/m4/warn-on-use.m4: Update.
6286 * gnulib/m4/wchar_h.m4: Update.
6287 * gnulib/m4/wchar_t.m4: Update.
6288 * gnulib/m4/wint_t.m4: Update.
6289 * gnulib/memchr.c: Update.
6290 * gnulib/memmem.c: Update.
6291 * gnulib/stddef.in.h: Update.
6292 * gnulib/stdint.in.h: Update.
6293 * gnulib/str-two-way.h: Update.
6294 * gnulib/string.in.h: Update.
6295 * gnulib/wchar.in.h: Update.
6296
6297 * gnulib/extra/arg-nonnull.h: Delete.
6298 * gnulib/extra/c++defs.h: Delete.
6299 * gnulib/extra/warn-on-use.h: Delete.
6300 * gnulib/m4/wchar_h.m4: Delete.
6301 * gnulib/m4/wint_t.m4: Delete.
6302 * gnulib/wchar.in.h: Delete.
6303
6304 * gnulib/extra/snippets/arg-nonnull.h: New.
6305 * gnulib/extra/snippets/c++defs.h: New.
6306 * gnulib/extra/snippets/warn-on-use.h: New.
6307
6308 * aclocal.m4: Regenerate.
6309 * config.in: Regenerate.
6310 * configure: Regenerate.
6311 * gnulib/Makefile.in: Regenerate.
6312
174e088e
PA
63132012-04-18 Pedro Alves <palves@redhat.com>
6314
6315 Reimport the update-copyright module from gnulib
6316 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6317
6318 * configure: Regenerate.
6319 * gnulib/Makefile.am: Update.
6320 * gnulib/Makefile.in: Regenerate.
6321 * gnulib/extra/update-copyright: Update.
6322 * gnulib/m4/gnulib-cache.m4: Update.
6323 * gnulib/m4/gnulib-comp.m4: Update.
6324
7f533142
JB
63252012-04-18 Tristan Gingold <gingold@adacore.com>
6326
6327 * configure.ac (aix): Put -lpthread into libs.
6328 * configure: Regenerate.
6329
001822aa
TT
63302012-04-18 Tom Tromey <tromey@redhat.com>
6331
6332 * linespec.c (convert_linespec_to_sals): Don't use
6333 SYMBOL_OBJ_SECTION.
6334 (compare_msymbols): Arguments are minsym_and_objfile, not
6335 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6336
db026a31
PA
63372012-04-18 Pedro Alves <palves@redhat.com>
6338
6339 Revert gnulib/ part of:
6340 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6341 Copyright year update in most files (performed by copyright.sh).
6342
12df843f
JK
63432012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 Fix 64-bit constants on 32-bit hosts.
6346 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6347 from unsigned long to ULONGEST.
6348 (read_signed_leb128): Change declaration return type from long to
6349 LONGEST.
6350 (dwarf2_const_value_attr): Change declaration parameter value from long
6351 to LONGEST.
6352 (dwarf2_compute_name): Change variable value from long to LONGEST.
6353 (read_unsigned_leb128): Change return type, variable result and some
6354 casts from unsigned long to ULONGEST.
6355 (read_signed_leb128): Change return type, variable result and some
6356 casts from long to LONGEST.
6357 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6358 value from long to LONGEST.
6359 (dwarf2_const_value): Change variable value from long to LONGEST.
6360 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6361 plongest and hex_string.
6362 * symtab.h (struct general_symbol_info): Change ivalue from long to
6363 LONGEST, remove the comment.
6364 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6365 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6366
14e75d8e
JK
63672012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6368
6369 PR symtab/7259:
6370 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6371 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6372 (ada_discrete_type_low_bound): Fix function comment. Use
6373 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6374 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6375 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6376 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6377 Use TYPE_FIELD_ENUMVAL.
6378 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6379 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6380 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6381 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6382 TYPE_CODE_ENUM.
6383 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6384 * dwarf2read.c (process_enumeration_scope): Likewise.
6385 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6386 field.bitpos.
6387 (class StructMainTypePrettyPrinter): Support also
6388 FIELD_LOC_KIND_ENUMVAL.
6389 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6390 TYPE_CODE_ENUM.
6391 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6392 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6393 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6394 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6395 field enumval.
6396 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6397 accommodate enumval.
6398 (struct call_site): Adjust loc_kind to accommodate enumval.
6399 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6400 (TYPE_FIELD_ENUMVAL): New macros.
6401 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6402 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6403 TYPE_CODE_ENUM.
6404 * p-typeprint.c (pascal_type_print_base): Likewise.
6405 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6406 enumval.
6407 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6408 * python/py-type.c (convert_field): New variable addrstring. Use
6409 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6410 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6411 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6412 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6413 TYPE_CODE_ENUM.
6414 * valprint.c (generic_val_print): Likewise.
6415
380bca97
DE
64162012-04-17 Doug Evans <dje@google.com>
6417
dcc07052
DE
6418 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6419
380bca97
DE
6420 * dwarf2read.c: Whitespace fixes.
6421 (lookup_signatured_type): Tweak comment.
6422 (get_die_type_at_offset): Fix comment.
6423
ec92004f
JB
64242012-04-17 Joel Brobecker <brobecker@adacore.com>
6425
6426 * xcoffread.c (xcoff_secnum_to_sections): New function.
6427 (secnum_to_section, secnum_to_bfd_section): Reimplement
6428 using xcoff_secnum_to_sections. Rename "secnum" parameter
6429 into "n_scnum".
6430 (RECORD_MINIMAL_SYMBOL): Delete.
6431 (record_minimal_symbol): New function.
6432 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6433 by call to record_minimal_symbol and set misc_func_recorded
6434 to 1. Set last_csect_sec to the XCOFF section index instead
6435 of GDB's section_offset index. Update calls to
6436 prim_record_minimal_symbol_and_info to pass the BFD section
6437 as well.
6438
40301fb7
JB
64392012-04-17 Joel Brobecker <brobecker@adacore.com>
6440
6441 * xcoffread.c (read_xcoff_symtab): Delete variables
6442 last_csect_val and last_csect_sec and associated code.
6443
e0088cfd
DE
64442012-04-17 Doug Evans <dje@google.com>
6445
58d5e2c3
DE
6446 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6447 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6448 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6449 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6450
c27f5738
DE
6451 * cleanups.h: New file.
6452 * cleanups.c: New file.
6453 * Makefile.in (SFILES): Add cleanups.c.
6454 (HFILES_NO_SRCDIR): Add cleanups.h.
6455 (COMMON_OBS): Add cleanups.o.
6456 * defs.h (struct cleanup): Moved to cleanups.h.
6457 (do_cleanups,do_final_cleanups): Ditto.
6458 (discard_cleanups,discard_final_cleanups): Ditto
6459 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6460 (save_cleanups,save_final_cleanups): Ditto.
6461 (restore_cleanups,restore_final_cleanups): Ditto.
6462 (null_cleanup): Ditto.
6463 (make_my_cleanup,make_my_cleanup2): Ditto.
6464 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6465 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6466 (do_cleanups,do_final_cleanups): Ditto.
6467 (discard_cleanups,discard_final_cleanups): Ditto
6468 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6469 (save_cleanups,save_final_cleanups): Ditto.
6470 (restore_cleanups,restore_final_cleanups): Ditto.
6471 (null_cleanup): Ditto.
6472 (make_my_cleanup,make_my_cleanup2): Ditto.
6473 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6474
e0088cfd
DE
6475 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6476 make_my_cleanup.
6477 (make_cleanup_dyn_string_delete): Ditto.
6478 (make_cleanup_ui_file_delete): Ditto.
6479 (make_cleanup_ui_out_redirect_pop): Ditto.
6480 (make_cleanup_free_section_addr_info): Ditto.
6481 (make_cleanup_restore_integer): Ditto.
6482 (make_cleanup_unpush_target): Ditto.
6483 (make_cleanup_value_free_to_mark): Ditto.
6484 (make_cleanup_value_free): Ditto.
6485 (make_cleanup_free_so): Ditto.
6486
4dc84fd1
JK
64872012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6488
6489 New option "set debug auto-load".
6490 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6491 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6492 (auto_load_safe_path_vec_update)
6493 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6494 if DEBUG_AUTO_LOAD.
6495 (file_is_auto_load_safe): New parameters debug_fmt and ....
6496 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6497 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6498 caller by explanatory string.
6499 (_initialize_auto_load): Register "set debug auto-load".
6500 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6501 and ....
6502 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6503 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6504 by explanatory string.
6505 * main.c (captured_main): Likewise.
6506 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6507 (source_section_scripts): Likewise.
6508
bccbefd2
JK
65092012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6510
6511 New option "set auto-load safe-path".
6512 * NEWS: New commands "set auto-load safe-path"
6513 and "show auto-load safe-path".
6514 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6515 (auto_load_safe_path, auto_load_safe_path_vec)
6516 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6517 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6518 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6519 (source_gdb_script_for_objfile): New variable is_safe. Call
6520 file_is_auto_load_safe. Return if it is not.
6521 (struct loaded_script): New field loaded.
6522 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6523 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6524 output "Missing" to "No".
6525 (_initialize_auto_load): New variable cmd. Initialize
6526 auto_load_safe_path. Register "set auto-load safe-path",
6527 "show auto-load safe-path" and "add-auto-load-safe-path".
6528 * auto-load.h (maybe_add_script): Add parameter loaded.
6529 (file_is_auto_load_safe): New declaration.
6530 * config.in: Regenerate.
6531 * configure: Regenerate.
6532 * configure.ac: New parameters --with-auto-load-safe-path
6533 and --without-auto-load-safe-path.
6534 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6535 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6536 * main.c (captured_main): Check file_is_auto_load_safe for
6537 LOCAL_GDBINIT.
6538 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6539 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6540 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6541 not.
6542
bf88dd68
JK
65432012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 auto-load: Implementation.
6546 * NEWS: New descriptions for "info auto-load",
6547 "info auto-load gdb-scripts", "info auto-load python-scripts",
6548 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6549 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6550 and "show auto-load-scripts". New description for "set auto-load",
6551 "show auto-load", "set auto-load gdb-scripts",
6552 "show auto-load gdb-scripts", "set auto-load python-scripts",
6553 "show auto-load python-scripts", "set auto-load local-gdbinit",
6554 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6555 "show auto-load libthread-db".
6556 * auto-load.c: Remove include python/python-internal.h. Add includes
6557 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6558 cli/cli-setshow.h.
6559 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6560 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6561 (gdbpy_global_auto_load): Rename to ...
6562 (global_auto_load): ... here.
6563 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6564 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6565 (script_language_gdb, source_gdb_script_for_objfile): New.
6566 (struct loaded_script): New field language.
6567 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6568 LANGUAGE.
6569 (maybe_add_script): Add parameter language. Drop redundant
6570 entry.full_path initialization. Initialize entry.language and
6571 (*slot)->language.
6572 (auto_load_objfile_script): Change parameter suffix to language.
6573 Remove the call of maybe_add_script.
6574 Call language->source_script_for_objfile.
6575 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6576 New.
6577 (collect_matching_scripts): Adjust it for
6578 struct collect_matching_scripts_data.
6579 (auto_load_info_scripts_pattern_nl): New variable.
6580 (info_auto_load_scripts): Rename to ...
6581 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6582 for struct collect_matching_scripts_data.
6583 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6584 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6585 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6586 (auto_load_info_cmdlist_get): New.
6587 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6588 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6589 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6590 "info auto-load local-gdbinit".
6591 * auto-load.h (struct script_language): New.
6592 (gdbpy_global_auto_load): Rename to ...
6593 (global_auto_load): ... here.
6594 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6595 (auto_load_local_gdbinit_loaded): New declarations.
6596 (maybe_add_script): New parameter language.
6597 (auto_load_objfile_script): Change parameter suffix to language.
6598 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6599 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6600 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6601 declarations.
6602 * linux-thread-db.c: Include auto-load.h and ctype.h.
6603 (auto_load_thread_db, show_auto_load_thread_db): New.
6604 (struct thread_db_info): New field filename.
6605 (delete_thread_db_info): Call xfree for FILENAME.
6606 (try_thread_db_load): Initialize FILENAME.
6607 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6608 if !AUTO_LOAD_THREAD_DB.
6609 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6610 (_initialize_thread_db): Install auto_load_thread_db
6611 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6612 as "info auto-load libthread-db".
6613 * main.c (captured_main): Rename gdbpy_global_auto_load to
6614 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6615 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6616 (print_gdb_help): Extend the help for 'local init file'.
6617 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6618 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6619 (auto_load_scripts): Rename to ...
6620 (auto_load_python_scripts): ... here, update the comment.
6621 (gdbpy_load_auto_script_for_objfile): New declaration.
6622 (show_auto_load_python_scripts, script_language_python)
6623 (gdbpy_load_auto_script_for_objfile): New.
6624 (source_section_scripts): Refactor the code.
6625 (load_auto_scripts_for_objfile): Rename to ...
6626 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6627 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6628 (info_auto_load_python_scripts): New.
6629 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6630 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6631 Register "set auto-load-scripts" as its deprecated alias. Register
6632 "info auto-load python-scripts". Register "info auto-load-scripts" as
6633 its deprecated alias.
6634 (load_auto_scripts_for_objfile): Rename to ...
6635 (gdbpy_load_auto_scripts_for_objfile): ... here.
6636 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6637 (gdbpy_load_auto_scripts_for_objfile): ... here.
6638
e2207b9a
JK
66392012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6640
6641 auto-load: Move files.
6642 * Makefile.in (SFILES): Add auto-load.c.
6643 (HFILES_NO_SRCDIR): Add auto-load.h.
6644 (COMMON_OBS): Add auto-load.o.
6645 (distclean): Change .gdbinit for gdb-gdb.gdb.
6646 * auto-load.c: New file, with parts from python/py-auto-load.c.
6647 * auto-load.h: New file, with parts from python/python.h.
6648 * configure: Regenerate.
6649 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6650 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6651 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6652 * main.c: Include auto-load.h.
6653 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6654 command.h, observer.h and progspace.h to auto-load.c. Add include
6655 auto-load.h.
6656 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6657 (struct loaded_script, auto_load_pspace_data)
6658 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6659 (hash_loaded_script_entry, eq_loaded_script_entry)
6660 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6661 (maybe_add_script): Move to auto-load.c.
6662 (source_section_scripts): Change maybe_add_script parameters passing,
6663 use script_not_found_warning_print.
6664 (clear_section_scripts, auto_load_objfile_script)
6665 (auto_load_new_objfile, loaded_script_ptr)
6666 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6667 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6668 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6669 auto_load_new_objfile and info_auto_load_scripts initizations to
6670 auto-load.c.
6671 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6672
e4ab2fad
JK
66732012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6674
6675 Code cleanup.
6676 * charset.c (find_charset_names): Remove variables ix and elt.
6677 Use free_char_ptr_vec.
6678 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6679 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6680 debugdir_end. New variable debugdir_len.
6681 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6682 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6683 declarations.
6684 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6685 and elt. Use free_char_ptr_vec.
6686 * source.c (add_path): Remove variables argv, arg and argv_index.
6687 New variables dir_vec, back_to, ix and name.
6688 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6689 make_cleanup_freeargv. Remove variable separator. Simplify the code
6690 no longer expecting DIRNAME_SEPARATOR.
6691 (openp): Remove variable p, p1 and len. New variables dir_vec,
6692 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6693 no longer expecting DIRNAME_SEPARATOR.
6694 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6695 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6696 debugdir_end.
6697 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6698 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6699 (dirnames_to_char_ptr_vec): New functions.
6700
5ee4ed9f
JK
67012012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6702
6703 Code cleanup.
6704 * source.c (add_path): Remove always true conditional 'p == 0' and
6705 unindent its code block.
6706
f41f5e61
PA
67072012-04-17 Pedro Alves <palves@redhat.com>
6708
6709 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6710 (FIELD_BITPOS_LVAL): ... this.
6711 (FIELD_BITPOS): New.
6712 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6713 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6714 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6715 SET_FIELD_BITPOS.
6716 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6717 SET_FIELD_BITPOS.
6718 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6719 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6720 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6721 SET_FIELD_BITPOS.
6722
945b3a32
JK
67232012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6724
6725 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6726 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6727 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6728 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6729 * jv-lang.c (java_link_class_type): Likewise, once.
6730 * stabsread.c (read_enum_type): Likewise.
6731
42476b70
YQ
67322012-04-16 Yao Qi <yao@codesourcery.com>
6733
6734 * common/agent.c (agent_run_command): Add one more parameter `len'.
6735 Update callers.
6736 * common/agent.h: Update declaration.
6737 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6738 Update.
6739 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6740
8264ba82
AG
67412012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6742
6743 PR mi/13393
6744 * value.c (value_actual_type): New function.
6745 * value.h (value_actual_type): New declaration.
6746 * varobj.c (update_type_if_necessary): New function.
6747 (varobj_create): Call value_actual_type instead of
6748 value_type.
6749 (install_dynamic_child): distinct changed and type changed MI variable
6750 objects.
6751 (update_dynamic_varobj_children): Updated for install_dynamic_child
6752 change. All callers updated.
a09130f9 6753 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6754 the value changed and RTTI is used to determine the type.
6755 (create_child_with_value): Call value_actual_type instead of
6756 value_type.
a09130f9 6757 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6758 specify whether the given value should be casted to enclosing type.
6759 All callers updated.
6760
55a8c076
YQ
67612012-04-14 Yao Qi <yao@codesourcery.com>
6762
6763 Import gnulib module inttypes from git
6764 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6765 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6766 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6767 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6768 * aclocal.m4, config.in, configure: Regenerated.
6769 * gnulib/Makefile.am: Update.
6770 * gnulib/Makefile.in: Update.
6771 * gnulib/m4/gnulib-cache.m4: Update.
6772 * gnulib/m4/gnulib-comp.m4: Update.
6773 * gnulib/inttypes.in.h: New.
6774 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6775 * gnulib/m4/inttypes.m4: New.
55a8c076 6776
ca7781d2
LM
67772012-04-13 Luis Machado <lgustavo@codesourcery.com>
6778
6779 * infrun.c (resume): Update PC address to the real PC after
6780 preparing to do displaced stepping.
6781
e319fa28
DE
67822012-04-12 Doug Evans <dje@google.com>
6783
6784 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6785 All callers updated.
6786
15add3f5
MK
67872012-04-12 Mark Kettenis <kettenis@gnu.org>
6788
6789 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6790
52dc124a
DE
67912012-04-12 Doug Evans <dje@google.com>
6792
0e50663e
DE
6793 * dwarf2read.c (create_all_type_units): Renamed from
6794 create_debug_types_hash_table. All callers updated.
6795
52dc124a
DE
6796 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6797 local type_sig to sig_type, type_offset to type_offset_in_tu.
6798 (hash_signatured_type): Renamed from hash_type_signature,
6799 all callers updated.
6800 (eq_signatured_type): Renamed from eq_type_signature,
6801 all callers updated.
6802 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6803 (process_enumeration_scope): Ditto.
6804 (lookup_signatured_type_at_offset): Ditto.
6805 (load_full_type_unit, read_signatured_type): Ditto.
6806
248fd3bf
YQ
68072012-04-12 Yao Qi <yao@codesourcery.com>
6808
6809 * remote.c (async_remote_interrupt): Correct function name in
6810 debug message.
6811 (async_remote_interrupt_twice): Ditto.
6812
bc3aa6c3
DE
68132012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6814
6815 * source.c (find_and_open_source): Consistently pass resulting
6816 full path through xfullpath.
6817
9e529e1d
JK
68182012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6819
6820 Provide more specific displaced-stepping memory error message.
6821 * infrun.c (displaced_step_prepare): New variable status. Call
6822 target_read_memory instead of read_memory, provide more specific
6823 error message.
6824
82e0cec1
TG
68252012-04-11 Tristan Gingold <gingold@adacore.com>
6826
6827 PR gdb/13901
6828 * darwin-nat.c (darwin_execvp): Revert previous patch.
6829
d987a266
TG
68302012-04-11 Tristan Gingold <gingold@adacore.com>
6831
6832 PR gdb/13901
6833 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6834 in case of change.
6835
016b7430
TG
68362012-04-11 Tristan Gingold <gingold@adacore.com>
6837
6838 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6839 warning.
6840
06fc020f
SCR
68412012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6842
6843 New command 'explore' which helps explore values and types in
6844 scope.
6845 * NEWS: Add an entry about the new 'explore' command.
6846 * data-directory/Makefile.in: Add gdb/command/explore.py
6847 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6848 command using the GDB Python API.
06fc020f 6849
de0919f8 68502012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6851
6852 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6853 extension in jump target calculation.
6854
de0919f8 68552012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6856
6857 * mips-tdep.c (mips32_next_pc): Handle JALX.
6858
2f26ef89
YQ
68592012-04-10 Yao Qi <yao@codesourcery.com>
6860
6861 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6862
2e505b66
YQ
68632012-04-10 Yao Qi <yao@codesourcery.com>
6864
6865 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6866 and gnulib/m4/gnulib-tool.m4.
6867
0d99eb77
DE
68682012-04-10 Doug Evans <dje@google.com>
6869
6870 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6871 (load_partial_dies): Clarify comment.
6872 (find_partial_die): Support rereading type units.
6873 Clarify CU handling, if we know offset is in CU, don't search for the
6874 containing CU. Add comment regarding memory waste.
6875
9a82b8ff
L
68762012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6877
6878 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6879 i386/x32-avx and i386/x32-avx-linux.
6880 (i386/x32-expedite): New.
6881 (i386/x32-linux-expedite): Likewise.
6882 (i386/x32-avx-expedite): Likewise.
6883 (i386/x32-avx-linux-expedite): Likewise.
6884 ($(outdir)/i386/x32.dat): Likewise.
6885 ($(outdir)/i386/x32-linux.dat): Likewise.
6886 ($(outdir)/i386/x32-avx.dat): Likewise.
6887 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6888
6889 * features/i386/x32-avx-linux.xml: New file.
6890 * features/i386/x32-avx.xml: Likewise.
6891 * features/i386/x32-core.xml: Likewise.
6892 * features/i386/x32-linux.xml: Likewise.
6893 * features/i386/x32.xml: Likewise.
6894
6895 * features/i386/x32-avx-linux.c: New. Generated.
6896 * features/i386/x32-avx.c: Likewise.
6897 * features/i386/x32-linux.c: Likewise.
6898 * features/i386/x32.c: Likewise.
6899 * regformats/i386/x32-avx-linux.dat: Likewise.
6900 * regformats/i386/x32-avx.dat: Likewise.
6901 * regformats/i386/x32-linux.dat: Likewise.
6902 * regformats/i386/x32.dat: Likewise.
6903
ee41036f
TG
69042012-04-10 Tristan Gingold <gingold@adacore.com>
6905
6906 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6907 code to kill the inferior.
6908
a7aa5b8a
MK
69092012-04-09 Mark Kettenis <kettenis@gnu.org>
6910
6911 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6912 defines.
6913 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6914 defines.
a09130f9 6915 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6916 (yyvsp): New defines.
6917 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6918 defines.
6919 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6920 defines.
6921 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6922 defines.
6923 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6924 defines.
6925 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6926 defines.
6927
fb57d452
MK
69282012-04-09 Mark Kettenis <kettenis@gnu.org>
6929
a09130f9 6930 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6931 (sparc64_store_arguments): Fix coding style.
6932
cdc7b32f
MK
69332012-04-07 Mark Kettenis <kettenis@gnu.org>
6934
6935 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6936 complex floats, adjust some related comments and tighten a related
6937 assertion.
6938 (sparc64_extract_return_value): Handle complex floats.
6939
7adf1e79
DE
69402012-04-07 Doug Evans <dje@google.com>
6941
6942 * dwarf2read.c (load_partial_dies): Change condition to assert.
6943
50f1ae7b
DE
69442012-04-06 Doug Evans <dje@google.com>
6945
6946 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6947 "mov %rsp,%rbp".
6948
55fa75c3
KB
69492012-04-05 Kevin Buettner <kevinb@redhat.com>
6950
6951 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6952 fencepost error.
6953 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6954 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6955 architecture.
6956
40e084e1
KS
69572012-04-05 Keith Seitz <keiths@redhat.com>
6958
6959 * linespec.c (decode_compound): Remove.
6960 (enum offset_relative_sign): New enum.
6961 (struct line_offset): New struct.
6962 (struct linespec): New struct.
6963 (struct linespec_state): Move file_symtabs,
6964 user_filename, and user_function into struct linespec.
6965 Make result an anonymous struct holding vectors of
6966 symbolp and minsym_and_objfile_d.
6967 Add language member.
6968 (enum ls_token_type): New enum.
6969 (linespec_keywords): New array.
6970 (struct ls_token): New struct.
6971 (struct ls_parser): New struct.
6972 (linespec_lexer_lex_number): New function.
6973 (linespec_lexer_lex_keyword): New function.
6974 (is_ada_operator): New function.
6975 (skip_quote_char): New function.
6976 (copy_token_string): New function.
6977 (is_closing_quote_enclosed): New function.
6978 (find_parameter_list_end): New function.
6979 (linespec_lexer_lex_string): New function.
6980 (linespec_lexer_lex_one): New function.
6981 (linespec_lexer_consume_token): New function.
6982 (linespec_lexer_peek_token): New function.
6983 (cplusplus_error): Remove unused function.
6984 (find_methods): Update comment.
6985 (find_toplevel_char): Return const.
6986 (is_objc_method_format): Remove unused function.
6987 (find_toplevel_string): New function.
6988 (is_linespec_boundary): Remove.
6989 (symbol_not_found_error): New function.
6990 (find_method_overload_end): Remove function.
6991 (unexpected_linespec_error): New function.
6992 (keep_name_info): Remove.
6993 (linespec_parse_line_offset): New function.
6994 (linespec_parse_basic): New function.
6995 (canonicalize_linespec): New function.
6996 (decode_line_internal): Remove.
6997 (create_sals_line_offset): New function adapted from
6998 decode_all_digits.
6999 (convert_linespec_to_sals): New function.
7000 (parse_linespec): New function.
7001 (linespec_parser_new): New function.
7002 (linespec_state_destructor): Change parameter type to
7003 struct linespec_state *.
7004 Add language parameter.
7005 Remove freeing of moved members.
7006 (linespec_parser_delete): New function.
7007 (decode_line_full): Use parse_linespec and linespec_parser_new.
7008 (decode_line_1): Likewise.
7009 (decode_indirect): Rename to ...
7010 (linespec_expression_to_pc): ... this and rewrite
7011 to simply find CORE_ADDR, storing this result for later
7012 conversion to SALs.
7013 (locate_first_half): Remove.
7014 (deocde_objc): Add parameter LS.
7015 Initialize new struct collect_info members.
7016 Handle minimal symbols, too.
7017 (decode_compound): Delete.
7018 (lookup_prefix_sym): Rewrite.
7019 (compare_msymbols): New function.
7020 (find_method): Rewrite.
7021 Do not call cplusplus_error.
7022 (symtabs_from_filename): Rewrite.
7023 (collect_function_symbols): Delete.
7024 (find_function_symbols): Rewrite without ARGPTR-style
7025 processing.
7026 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7027 (decode_dollar): Adapted and renamed to ...
7028 (linespec_parse_variable): ... this.
7029 (find_linespec_symbols): New function.
7030 (decode_label): Adapted and renamed to ...
7031 (find_label_symbols): ... this.
7032 (decode_digits_list_mode): Add and use LS argument.
7033 (decode_digits_ordinary): Likewise.
7034 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7035 If in list mode, allow any symbol class. Otherwise, only
7036 permit LOC_BLOCK symbols.
7037 (minsym_found): Update comments.
7038 (search_minsyms_for_name): Do not convert the matching symbol
7039 into a SAL. Simply push the symbol and objfile into the
7040 result vector.
7041 (decode_variable): Delete. Contents adapted into
7042 find_linespec_symbols.
7043
7044 * cp-support.c (SKIP_SPACE): Remove.
7045 (operator_tokens): Remove unused global.
7046 (cp_validate_operator): Remove.
7047 * cp-support.h (cp_validate_operator): Remove declaration.
7048
a72c8f6a
JK
70492012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7050
7051 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7052 for TYPE_VPTR_FIELDNO.
7053 * valprint.c (valprint_check_validity): Make it global, move the
7054 function comment ...
7055 * value.h (valprint_check_validity): ... to this new declaration.
7056
cf9bb588
TG
70572012-04-02 Tristan Gingold <gingold@adacore.com>
7058
7059 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7060 the STATE32 api for i386 state.
7061 (i386_darwin_store_inferior_registers): Likewise.
7062
17092398
TG
70632012-04-02 Tristan Gingold <gingold@adacore.com>
7064
7065 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7066 SS offset.
7067 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7068 format_string.
7069
ece0061f
TG
70702012-04-02 Tristan Gingold <gingold@adacore.com>
7071
7072 PR gdb/13901
d987a266 7073 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7074
cf65ecd3
JK
70752012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7076
7077 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7078
9bc3523d
TT
70792012-03-30 Tom Tromey <tromey@redhat.com>
7080
7081 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7082 of TRY_CATCH. Fix error handling.
7083 * python/py-value.c (convert_value_from_python): Move 'old'
7084 declaration to innermost scope.
7085
b1ed564a
JB
70862012-03-29 Joel Brobecker <brobecker@adacore.com>
7087 Andrey Smirnov <andrew.smirnov@gmail.com>
7088
7089 -Wshadow warning fix.
7090 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7091 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7092 Adjust code accordingly.
7093
cb8e9b97
JB
70942012-03-29 Joel Brobecker <brobecker@adacore.com>
7095
7096 * ada-lang.c (symbol_completion_add): Rename parameter
7097 "encoded" into "encoded_p". Ajust code and documentation
7098 accordingly.
7099
c0af1706
JB
71002012-03-29 Joel Brobecker <brobecker@adacore.com>
7101 Andrey Smirnov <andrew.smirnov@gmail.com>
7102
7103 -Wshadow warning fix.
7104 * ada-lang.c (symbol_completion_add): Rename parameter
7105 "wild_match" into wild_match_p. Update code and documentation
7106 accordingly.
7107
6ea35997
JB
71082012-03-29 Joel Brobecker <brobecker@adacore.com>
7109
7110 * ada-lang.c (symbol_completion_match): Rename parameter
7111 "encoded" into "encoded_p". Ajust code and documentation
7112 accordingly.
7113
e701b3c0
JB
71142012-03-29 Joel Brobecker <brobecker@adacore.com>
7115 Andrey Smirnov <andrew.smirnov@gmail.com>
7116
7117 -Wshadow warning fix.
7118 * ada-lang.c (symbol_completion_match): Rename parameter
7119 "wild_match" into "wild_match_p". Adjust code and function
7120 documentation accordingly.
7121
5e2336be
JB
71222012-03-29 Joel Brobecker <brobecker@adacore.com>
7123 Andrey Smirnov <andrew.smirnov@gmail.com>
7124
7125 -Wshadow warning fix.
7126 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7127 "symbol_info" into "info". Adjust code accordingly.
7128 (ada_lookup_symbol): Likewise.
7129
9f88c959
JB
71302012-03-29 Joel Brobecker <brobecker@adacore.com>
7131
7132 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7133 of this function's documentation.
7134
82ccd55e
JB
71352012-03-29 Joel Brobecker <brobecker@adacore.com>
7136 Andrey Smirnov <andrew.smirnov@gmail.com>
7137
7138 -Wshadow warning fix.
7139 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7140 variable into "wild_match_p". Adjust code accordingly.
7141
d0a8ab18
JB
71422012-03-29 Joel Brobecker <brobecker@adacore.com>
7143 Andrey Smirnov <andrew.smirnov@gmail.com>
7144
7145 -Wshadow warning fix.
7146 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7147 parameter into "wild_match_p". Adjust code accordingly.
7148 Document this parameter in the function description.
7149
48b78332
JB
71502012-03-29 Joel Brobecker <brobecker@adacore.com>
7151 Andrey Smirnov <andrew.smirnov@gmail.com>
7152
7153 -Wshadow warning fix.
7154 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7155 "wild_match" parameter to "wild_match_p" (-Wshadow).
7156
2e6e0353
JB
71572012-03-29 Joel Brobecker <brobecker@adacore.com>
7158
7159 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7160 in function documentation.
7161
dc4024cd
JB
71622012-03-29 Joel Brobecker <brobecker@adacore.com>
7163 Andrey Smirnov <andrew.smirnov@gmail.com>
7164
7165 -Wshadow warning fix.
7166 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7167 variable into wild_match_p. Adjust code accordingly.
7168
6c88661c
JB
71692012-03-29 Joel Brobecker <brobecker@adacore.com>
7170 Andrey Smirnov <andrew.smirnov@gmail.com>
7171
7172 * ada-valprint.c (ada_val_print_1): Move the code handling
7173 TYPE_CODE_ENUM inside its own lexical block. Declare
7174 variables len and val there, instead of in the function's
7175 top level block. Avoid declaring deref_val again in a way
7176 that shadows another variable of the same name declared
7177 in one of the up-level blocks. Just re-use the up-level
7178 variable instead.
7179
4e5c77fe
JB
71802012-03-29 Joel Brobecker <brobecker@adacore.com>
7181
7182 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7183 Replace block_found argument by symbol_info. Adjust
7184 implementation accordingly. Add function documentation.
7185 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7186 Fix documentation.
7187 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7188 * ada-exp.y (write_object_renaming): Adjust to new
7189 ada_lookup_encoded_symbol API.
7190
1c0ac8c7
JB
71912012-03-29 Joel Brobecker <brobecker@adacore.com>
7192
7193 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7194 documentation.
7195
2aaed979
KB
71962012-03-28 Rathish C <rathish.c@kpitcummins.com>
7197
7198 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7199 (v850_register_name): Add the mpu and fpu register names.
7200 (v850e_register_name): Add the mpu and fpu register names.
7201 (v850e2_register_name): New function.
a09130f9 7202 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7203 bfd_mach_v850e2v3.
7204
927fbba6
JB
72052012-03-28 Joel Brobecker <brobecker@adacore.com>
7206
7207 * NEWS: Add entry for Ada varobj support.
7208
d32cafc7
JB
72092012-03-28 Joel Brobecker <brobecker@adacore.com>
7210
7211 * varobj.c (default_value_is_changeable_p): New function,
7212 extracted from varobj_value_is_changeable_p. Add declaration.
7213 (ada_value_is_changeable_p): New function, extracted from
7214 varobj_value_is_changeable_p. Add declaration.
7215 (struct language_specific): New field "value_is_changeable_p".
7216 (languages): Add entries for new field.
7217 (varobj_create): Set language before calling install_new_value.
7218 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7219 "value_is_changeable_p" language callback.
7220
181875a4
JB
72212012-03-28 Joel Brobecker <brobecker@adacore.com>
7222
7223 * ada-varobj.h, ada-varobj.c: New files.
7224 * Makefile.in (SFILES): Add ada-varobj.c.
7225 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7226 (COMMON_OBS): Add ada-varobj.o.
7227
7a290c40
JB
72282012-03-28 Joel Brobecker <brobecker@adacore.com>
7229
7230 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7231 (struct language_specific): New field "value_has_mutated".
7232 (languages): Set field "value_has_mutated" in each entry of array.
7233 (varobj_value_has_mutated): New function.
7234 (varobj_udpdate): Add handling of type mutation.
7235 (value_of_root): Add handling of type mutation.
7236 (ada_value_has_mutated): New function.
7237
ca9b8b9c
PA
72382012-03-28 Pedro Alves <palves@redhat.com>
7239
7240 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7241 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7242
cc0265cd
TT
72432012-03-28 Tom Tromey <tromey@redhat.com>
7244
7245 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7246 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7247 before returning.
7248
3ad2ec6f
TT
72492012-03-28 Tom Tromey <tromey@redhat.com>
7250
7251 * .dir-locals.el: New file.
7252
4a6510ba
PA
72532012-03-28 Pedro Alves <palves@redhat.com>
7254
7255 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7256
5a75128f
JB
72572012-03-28 Joel Brobecker <brobecker@adacore.com>
7258
7259 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7260 handling for r0.
7261
f99d8bf4
PA
72622012-03-27 Pedro Alves <palves@redhat.com>
7263
7264 Eliminate struct ui_stream.
7265
7266 * ui-out.h (struct ui_stream): Delete.
7267 (ui_out_field_stream): Adjust prototype.
7268 (ui_out_stream_new, ui_out_stream_delete)
7269 (make_cleanup_ui_out_stream_delete): Delete declarations.
7270 * ui-out.c (ui_out_field_stream): Change prototype to take a
7271 ui_file instead of a ui_stream. Adjust.
7272 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7273 (make_cleanup_ui_out_stream_delete): Delete.
7274 * breakpoint.c (print_breakpoint_location)
7275 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7276 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7277 * disasm.c (dump_insns): Ditto.
7278 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7279 prototype.
7280 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7281 ui_stream/ui_out_stream_new.
7282 * infcmd.c (print_return_value): Ditto.
7283 * osdata.c (info_osdata_command): Don't allocate a local
7284 ui_stream.
7285 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7286 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7287 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7288 allocate a local ui_stream.
7289 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7290 instead of ui_stream/ui_out_stream_new.
7291 (list_args_or_locals): Don't allocate a local ui_stream.
7292 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7293 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7294 ui_stream/ui_out_stream_new.
7295 * cli/cli-setshow.c (do_setshow_command): Ditto.
7296
6350a066 72972012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7298
6350a066
PA
7299 * arm-linux-tdep.c (arm_linux_init_abi): Call
7300 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7301 * arm-tdep.c (arm_process_record): New function.
7302 (deallocate_reg_mem): New function.
7303 (decode_insn): New function.
7304 (thumb_record_branch): New function.
7305 (thumb_record_ldm_stm_swi(): New function.
7306 (thumb_record_misc): New function.
7307 (thumb_record_ld_st_stack): New function.
7308 (thumb_record_ld_st_imm_offset): New function.
7309 (thumb_record_ld_st_reg_offset(): New function.
7310 (thumb_record_add_sub_cmp_mov): New function.
7311 (thumb_record_shift_add_sub): New function.
7312 (arm_record_coproc_data_proc): New function.
7313 (arm_record_coproc): New function.
7314 (arm_record_b_bl): New function.
7315 (arm_record_ld_st_multiple): New function.
7316 (arm_record_ld_st_reg_offset): New function.
7317 (arm_record_ld_st_imm_offset): New function.
7318 (arm_record_data_proc_imm): New function.
7319 (arm_record_data_proc_misc_ld_str): New function.
7320 (arm_record_extension_space): New function.
7321 (arm_record_strx): New function.
7322 (sbo_sbz): New function.
7323 (struct insn_decode_record): New structure for arm insn record.
7324 (REG_ALLOC): New macro for reg allocations.
7325 (MEM_ALLOC): New macro for memory allocations.
7326 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7327
89e028e2
AS
73282012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7329
7330 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7331 (store_register): Likewise.
7332
6350a066 73332012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7334
6350a066 7335 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7336
5b43fab2
JK
73372012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7338
7339 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7340 Describe also the option "auto".
7341
b5453b95
RH
73422012-03-22 Richard Henderson <rth@redhat.com>
7343
7344 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7345 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7346
227ee7fc
RH
73472012-03-22 Richard Henderson <rth@redhat.com>
7348
7349 * jit.c (jit_read_code_entry): Compute alignment and offset of
7350 int64_t member before computing entry_size.
7351
7b282c5a
SCR
73522012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7353
7354 Python scripting: Add new method Value.referenced_value to
7355 gdb.Value which can dereference pointer as well as reference
7356 values.
7357 * NEWS: Add entry under 'Python scripting' about the new method
7358 Value.referenced_value on gdb.Value objects.
7359 * python/py-value.c (valpy_referenced_value): New function
7360 defining a new method on gdb.Value objects which can dereference
7361 pointer and reference values.
7362
0c83539f
SCR
73632012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7364
7365 * MAINTAINERS (Write After Approval): Add myself to the list.
7366
7ccffd7c
KB
73672012-03-21 Kevin Buettner <kevinb@redhat.com>
7368
7369 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7370 in addition to "main".
7371
bd0b9f9e
JB
73722012-03-21 Joel Brobecker <brobecker@adacore.com>
7373
7374 * expression.h (op_name): Add declaration.
7375 * expprint.c (op_name): Remove declaration. Make non-static.
7376 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7377
a5362b9a
TS
73782012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7379
7380 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7381 of struct siginfo.
7382 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7383 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7384 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7385 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7386 (linux_nat_get_siginfo): Likewise.
7387 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7388 (linux_nat_get_siginfo): Likewise.
7389 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7390 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7391 * procfs.c (gdb_siginfo_t): Likewise.
7392
adcadaab
MF
73932012-03-21 Mike Frysinger <vapier@gentoo.org>
7394
7395 * .gitignore: Ignore more files.
7396
e278ad5b
PA
73972012-03-20 Pedro Alves <palves@redhat.com>
7398
7399 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7400 returns.
7401
741e63d7
YQ
74022012-03-20 Yao Qi <yao@codesourcery.com>
7403
7404 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7405 comment.
7406
b64f50a1
JK
74072012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7408
7409 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7410 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7411 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7412 sect_offset.
7413 * dwarf2expr.h (cu_offset, sect_offset): New types.
7414 (struct dwarf_expr_context_funcs) <dwarf_call>
7415 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7416 sect_offset.
7417 (struct dwarf_expr_context) <len>: Improve the comment.
7418 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7419 cu_offset and sect_offset.
7420 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7421 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7422 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7423 * dwarf2loc.h: Include dwarf2expr.h.
7424 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7425 and sect_offset.
7426 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7427 Improve the comment.
7428 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7429 (struct signatured_type, struct line_header, struct partial_die_info)
7430 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7431 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7432 (get_die_type_at_offset, create_cus_from_index)
7433 (create_signatured_type_table_from_index, dw2_get_file_names)
7434 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7435 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7436 (create_debug_types_hash_table, process_psymtab_comp_unit)
7437 (load_partial_comp_unit, create_all_comp_units)
7438 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7439 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7440 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7441 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7442 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7443 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7444 (find_partial_die, read_attribute_value, lookup_die_type)
7445 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7446 (is_ref_attr): New function comment.
7447 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7448 Use cu_offset and sect_offset.
7449 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7450 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7451 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7452 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7453 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7454 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7455 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7456 sect_offset.
7457
e97a38f7
JK
74582012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 Code cleanup.
7461 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7462 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7463 with xfree.
7464 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7465
8320cc4f
JK
74662012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7467
7468 * NEWS: Describe new options --init-command=FILE, -ix and
7469 --init-eval-command=COMMAND, -iex.
7470 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7471 CMDARG_INIT_COMMAND.
7472 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7473 "init-command", "init-eval-command", "ix" and "iex" to the variable
7474 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7475 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7476 (print_gdb_help): Describe --init-command=FILE, -ix and
7477 --init-eval-command=COMMAND, -iex.
7478
26743505
JK
74792012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7480
7481 Code cleanup.
7482 * main.c (struct cmdarg): Move it here from main. Add more comments.
7483 (cmdarg_s, VEC (cmdarg_s)): New.
7484 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7485 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7486 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7487 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7488 of CMDARG.
7489
5ff5c7b4
TT
74902012-03-19 Tom Tromey <tromey@redhat.com>
7491
7492 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7493
ab260dad
JK
74942012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7495
7496 PR symtab/13777
7497 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7498 GCC >=4.5.
7499
c366c1f0
TT
75002012-03-16 Chris January <chris.january@allinea.com>
7501
7502 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7503 of clear.
7504
e16edb45
TT
75052012-03-16 Chris January <chris.january@allinea.com>
7506
7507 * source.c (add_path): Use memmove instead of strcpy because the
7508 strings overlap.
7509
53ba8333
JB
75102012-03-16 Joel Brobecker <brobecker@adacore.com>
7511
7512 * value.h (set_value_parent): Add declaration.
7513 * value.c (set_value_parent): New function.
7514 (value_address): If VALUE->PARENT is not NULL, then use it as
7515 the base address instead of VALUE->LOCATION.address.
7516 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7517 the same as OBJ's address. Adjust V's offset accordingly.
7518 Set V's parent.
7519
481860b3
GB
75202012-03-16 Gary Benson <gbenson@redhat.com>
7521
7522 PR breakpoints/10738
7523 * dwarf2read.c (use_deprecated_index_sections): New global.
7524 (struct partial_die_info): New member may_be_inlined.
7525 (read_partial_die): Set may_be_inlined where appropriate.
7526 (add_partial_subprogram): Add partial symbols for partial
7527 DIEs that may be inlined.
7528 (new_symbol_full): Add inlined subroutines to the current
7529 scope.
7530 (write_psymtabs_to_index): Bump version number.
7531 (dwarf2_read_index): Read only version 6 indices unless
7532 use_deprecated_index_sections is set.
7533 * linespec.c (symbol_and_data_callback): New structure.
7534 (iterate_inline_only): New function.
7535 (iterate_over_all_matching_symtabs): New argument
7536 "include_inline". If nonzero, also call the callback for
7537 symbols representing inlined subroutines.
7538 (lookup_prefix_sym): Pass extra argument to the above.
7539 (find_function_symbols): Likewise.
7540 (add_matching_symbols_to_info): Likewise.
7541 * NEWS: Mention that GDB can now set breakpoints on inlined
7542 functions.
7543
d0e7e15a
PM
75442012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7545
7546 * p-typeprint.c (pascal_type_print_method_args):
7547 Fix display of parameter of methods.
7548
3d354654
PM
75492012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7550
7551 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7552 Add missing prototype.
7553
cafe75b0
JK
75542012-03-16 Yao Qi <yao@codesourcery.com>
7555 Jan Kratochvil <jan.kratochvil@redhat.com>
7556
7557 Fix false compilation warning.
7558 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7559
25f8c692
JL
75602012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7561 Pedro Alves <pedro@codesourcery.com>
7562
7563 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7564 (arm_register_g_packet_guesses): New function.
7565 (arm_gdbarch_init): Don't force a target description with
7566 registers when the executable is detected as M-profile. Instead
7567 set gdbarch->tdep->is_m. Register `g' packet guesses.
7568 (_initialize_arm_tdep): Initialize the new target description.
7569 * features/arm-with-m-fpa-layout.xml: New description.
7570 * features/arm-with-m-fpa-layout.c: New, generated.
7571
35c63cd8
JB
75722012-03-15 Joel Brobecker <brobecker@adacore.com>
7573
7574 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7575 Update function description.
7576 (insert_bp_location): Do not wipe bl->target_info out.
7577 * mem-break.c: #include "gdb_string.h".
7578 (default_memory_insert_breakpoint): Do not call target_read_memory
7579 with a pointer to the breakpoint's shadow_contents buffer. Use
7580 a local buffer instead.
7581 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7582
57651221
TT
75832012-03-15 Tom Tromey <tromey@redhat.com>
7584
7585 * NEWS: Mention "info vtbl", not "info vtable".
7586 * cp-support.c (info_vtbl_command): Fix comment.
7587 (_initialize_cp_support): Fix text.
7588
410528f0
TT
75892012-03-15 Tom Tromey <tromey@redhat.com>
7590
7591 * cp-valprint.c (cp_print_value_fields): Use
7592 print_function_pointer_address for vtable slot.
7593
c4aeac85
TT
75942012-03-15 Tom Tromey <tromey@redhat.com>
7595
7596 * gnu-v3-abi.c (struct value_and_voffset): New.
7597 (hash_value_and_voffset, eq_value_and_voffset)
7598 (compare_value_and_voffset, compute_vtable_size)
7599 (print_one_vtable, gnuv3_print_vtable): New functions.
7600 (init_gnuv3_ops): Initialize 'print_vtable' field.
7601 * cp-support.c (info_vtbl_command): New function.
7602 (_initialize_cp_support): Add "info vtbl".
7603 * cp-abi.h (cplus_print_vtable): Declare.
7604 (struct cp_abi_ops) <print_vtable>: New field.
7605 * cp-abi.c (cplus_print_vtable): New function.
7606 * NEWS: Update.
7607
95cbceff
TT
76082012-03-15 Tom Tromey <tromey@redhat.com>
7609
7610 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7611 iterate_over_symbols.
7612
589b4a32
DE
76132012-03-14 Doug Evans <dje@google.com>
7614
7615 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7616 DW_OP_GNU_parameter_ref.
7617
e837f12a
JK
76182012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7619
7620 Fix double prompt of 'interpreter-exec mi'.
7621 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7622 (mi_interpreter_resume): use it.
7623 (mi_execute_command_input_handler): New function.
7624 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7625 mi_execute_command_input_handler.
7626
ff1e4526 76272012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7628
7629 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7630 prototype.
7631 (darwin_debug_port_info): Make static.
7632 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7633 * machoread.c (_initialize_machoread): Add prototype.
7634 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7635 (i386_darwin_set_control, i386_darwin_get_control)
7636 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7637 i386_darwin_get_status, i386_darwin_get_control):
7638 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7639
d8a5d6ee
JB
76402012-03-13 Joel Brobecker <brobecker@adacore.com>
7641
7642 * ax-gdb.c (gen_usual_unary): Remove special handling of
7643 enum and bool types.
7644
af381b8c
JB
76452012-03-13 Joel Brobecker <brobecker@adacore.com>
7646
7647 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7648
786c562f
JB
76492012-03-13 Joel Brobecker <brobecker@adacore.com>
7650
7651 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7652
e3ebf1bb
JB
76532012-03-13 Chris January <chris.january@allinea.com>
7654
7655 * aix-thread.c (fill_sprs): Store the floating point registers
7656 at the correct offsets into vals.
7657
c5b7e1cb
DE
76582012-03-13 Doug Evans <dje@google.com>
7659
16899756
DE
7660 * NEWS: Mention symbol-reloading has been deleted.
7661 * symfile.c (symbol_reloading): Delete.
7662 (show_symbol_reloading): Delete.
7663 (_initialize_symfile): Delete set/show symbol-reloading.
7664
c5b7e1cb
DE
7665 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7666 read_in_chain until we have successfully read it in.
7667 (load_full_comp_unit): Ditto.
7668 (read_signatured_type): Add comment.
7669
46cb6474
JB
76702012-03-13 Chris January <chris.january@allinea.com>
7671
7672 * stabsread.c (fix_common_block): Change type of valu argument
7673 to CORE_ADDR.
7674
76219d77
JB
76752012-03-13 Chris January <chris.january@allinea.com>
7676
7677 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7678 instruction.
7679
87b0bb13
JK
76802012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7681
7682 * common/linux-procfs.c (linux_proc_get_int): New, from
7683 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7684 field.
7685 (linux_proc_get_tgid): Only call linux_proc_get_int.
7686 (linux_proc_get_tracerpid): New.
7687 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7688 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7689 linux_proc_pid_has_state.
7690 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7691 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7692 (linux_ptrace_attach_warnings): New.
7693 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7694 New declaration.
7695 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7696 (linux_nat_attach): New variables ex, buffer, message and message_s.
7697 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7698
5f572dec
JK
76992012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7700
7701 * Makefile.in (linux-ptrace.o): New.
7702 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7703 from linux-nat.c.
7704 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7705 * common/linux-ptrace.c: New file.
7706 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7707 * config/arm/linux.mh: Likewise.
7708 * config/i386/linux.mh: Likewise.
7709 * config/i386/linux64.mh: Likewise.
7710 * config/ia64/linux.mh: Likewise.
7711 * config/m32r/linux.mh: Likewise.
7712 * config/m68k/linux.mh: Likewise.
7713 * config/mips/linux.mh: Likewise.
7714 * config/pa/linux.mh: Likewise.
7715 * config/powerpc/linux.mh: Likewise.
7716 * config/powerpc/ppc64-linux.mh: Likewise.
7717 * config/powerpc/spu-linux.mh: Likewise.
7718 * config/s390/s390.mh: Likewise.
7719 * config/sparc/linux.mh: Likewise.
7720 * config/sparc/linux64.mh: Likewise.
7721 * config/xtensa/linux.mh: Likewise.
7722 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7723 common/linux-procfs.c.
7724 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7725
44f238bb
PA
77262012-03-13 Hui Zhu <teawater@gmail.com>
7727 Pedro Alves <palves@redhat.com>
7728
7729 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7730 CREATE_BREAKPOINT_FLAGS_INSERTED.
7731 (create_breakpoint_sal, create_breakpoints_sal)
7732 (base_breakpoint_create_breakpoints_sal)
7733 (tracepoint_create_breakpoints_sal)
7734 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7735 down.
7736 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7737 (ftrace_command, strace_command): Adjust.
7738 (create_tracepoint_from_upload): Pass
7739 CREATE_BREAKPOINT_FLAGS_INSERTED.
7740 * breakpoint.h (enum breakpoint_create_flags): New.
7741 (create_breakpoint): New flags parameter.
7742 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7743 * python/py-breakpoint.c (bppy_init): Adjust.
7744 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7745 * spu-tdep.c (spu_catch_start): Adjust.
7746
1e51243a
PA
77472012-03-13 Pedro Alves <palves@redhat.com>
7748 Hui Zhu <teawater@gmail.com>
7749 Yao Qi <yao@codesourcery.com>
7750
7751 * remote.c (struct remote_state): New field `starting_up'.
7752 (remote_start_remote): Set and clear it.
7753 (remote_can_download_tracepoint): If starting up, return false.
7754
fa3064dd
YQ
77552012-03-13 Yao Qi <yao@codesourcery.com>
7756
7757 * inferior.h (struct inferior): Remove fields any_syscall_count,
7758 syscalls_counts and total_syscalls_count. Move them to new
7759 struct catch_syscall_inferior_data in breakpoint.c.
7760 * breakpoint.c: Call DEF_VEC_I(int).
7761 (struct catch_syscall_inferior_data): New.
7762 (get_catch_syscall_inferior_data): New.
7763 (catch_syscall_inferior_data_cleanup): New.
7764 (insert_catch_syscall): Update to access data in
7765 struct catch_syscall_inferior_data.
7766 (insert_catch_syscall): Likewise.
7767 (remove_catch_syscall): Likewise.
7768 (remove_catch_syscall): Likewise.
7769 (is_syscall_catchpoint_enabled): Likewise.
7770 (add_catch_command): Likewise.
7771 (_initialize_breakpoint): Register cleanup.
7772 * breakpoint.h: Removed DEF_VEC_I(int).
7773 * dwarf2loc.c: Call DEF_VEC_I(int).
7774 * mi/mi-main.c: Likewise.
7775
460fac3c
MK
77762012-03-12 Mark Kettenis <kettenis@gnu.org>
7777
7778 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7779
e1aca11e
JB
77802012-03-12 Chris January <chris.january@allinea.com>
7781
7782 * aix-thread.c (_initialize_aix_thread): Add prototype.
7783 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7784 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7785
649c7061
JB
77862012-03-12 Joel Brobecker <brobecker@adacore.com>
7787
7788 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7789 include of "amd64-nat.h".
7790
0b49e518
TT
77912012-03-12 Tom Tromey <tromey@redhat.com>
7792
7793 * buildsym.c (record_pending_block): Now static.
7794 * buildsym.h: (record_pending_block): Remove.
7795
fd24fa94
AT
77962012-03-12 Andreas Tobler <andreast@fgznet.ch>
7797
7798 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7799
ba919b58
TT
78002012-03-09 Tom Tromey <tromey@redhat.com>
7801
7802 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7803 producer_is_gxx_lt_4_6>: New fields.
7804 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7805
a48e046c
TT
78062012-03-09 Tom Tromey <tromey@redhat.com>
7807
7808 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7809
6f5e9362
JB
78102012-03-08 Joel Brobecker <brobecker@adacore.com>
7811
7812 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7813 prototype.
7814
8d037db9
JB
78152012-03-08 Joel Brobecker <brobecker@adacore.com>
7816
7817 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7818
4e841acf
JK
78192012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7820
7821 Fix -Wmissing-prototypes build.
7822 * arm-linux-nat.c (get_thread_id): Make it static.
7823 * xtensa-linux-nat.c (get_thread_id): Likewise.
7824
c6030312
JB
78252012-03-08 Joel Brobecker <brobecker@adacore.com>
7826
7827 * server.c (process_point_options): If a conditional expression
7828 is found, only print a message if remote_debug is nonzero.
7829
52323be9
LM
78302012-03-08 Luis Machado <lgustavo@codesourcery.com>
7831
7832 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7833 of internal error for unknown/unsupported types.
7834
7fe25d9b
JK
78352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7836
7837 Fix CU relative vs. absolute DIE offsets.
7838 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7839 offset to offset_in_cu.
7840 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7841 TYPE_OFFSET.
7842 (dwarf2_fetch_die_location_block): Rename parameter offset to
7843 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7844
05e7c244
JK
78452012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7846
7847 * libunwind-frame.c: Rename to ...
7848 * ia64-libunwind-tdep.c: ... here.
7849 * libunwind-frame.h: Rename to ...
7850 * ia64-libunwind-tdep.h: ... here.
7851 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7852 ia64-libunwind-tdep.h.
7853 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7854 * README (--with-libunwind): Rename to ...
7855 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7856 * config.in: Regenerate.
7857 * configure: Regenerate.
7858 * configure.ac: New option --with-libunwind-ia64, make the
7859 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7860 Remove AC_DEFINE for HAVE_LIBUNWIND.
7861 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7862 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7863 Rename libunwind-frame in the general comment.
7864 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7865 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7866 Move forward declarations inside #ifndef. Rename libunwind-frame in
7867 the general comment.
7868 * ia64-tdep.c: Rename libunwind-frame.h #include to
7869 ia64-libunwind-tdep.h.
7870 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7871 (ia64_libunwind_descr): Rename libunwind-frame to
7872 ia64-libunwind-tdep in these function comments.
7873 * ia64-tdep.h: Rename libunwind-frame.h #include to
7874 ia64-libunwind-tdep.h.
7875 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7876 ia64-libunwind-tdep in that data comment.
7877
3755cbfd
JK
78782012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 * libunwind-frame.h (struct frame_unwind): New declaration.
7881
d1cda5d9
JB
78822012-03-08 Joel Brobecker <brobecker@adacore.com>
7883
7884 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7885 "set breakpoint condition-evaluation" command.
7886
a0ba0aa2
TG
78872012-03-08 Tristan Gingold <gingold@adacore.com>
7888
7889 * sparc-stub.c: Move to stubs/
7890 * sh-stub.c: Likewise.
7891 * m68k-stub.c: Likewise.
7892 * m32r-stub.c: Likewise.
7893 * i386-stub.c: Likewise.
7894
7b8b6d6d
AS
78952012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7896
007cafee
AS
7897 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7898 linux_get_siginfo_type.
7899
7b8b6d6d
AS
7900 * m68klinux-nat.c: Include "gdb_proc_service.h".
7901 (PTRACE_GET_THREAD_AREA): Define.
7902 (ps_get_thread_area): New function.
7903
bba74b36
YQ
79042012-03-08 Yao Qi <yao@codesourcery.com>
7905
7906 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7907 `xsnprintf'.
7908 (remote_query_attached): Likewise.
7909 (remote_static_tracepoint_marker_at): Likewise.
7910 (remote_set_permissions): Likewise.
7911 (remote_detach_1, extended_remote_attach_1): Likewise.
7912 (send_g_packet, remote_vkill): Likewise.
7913 (extended_remote_disable_randomization): Likewise.
7914 (remote_add_target_side_condition): Likewise.
7915 (remote_insert_breakpoint): Likewise.
7916 (remote_remove_breakpoint): Likewise.
7917 (remote_insert_watchpoint): Likewise.
7918 (remote_remove_watchpoint): Likewise.
7919 (remote_insert_hw_breakpoint): Likewise.
7920 (remote_insert_hw_breakpoint): Likewise.
7921 (remote_remove_hw_breakpoint): Likewise.
7922 (remote_download_command_source): Likewise.
7923 (remote_download_tracepoint): Likewise.
7924 (remote_download_trace_state_variable): Likewise.
7925 (remote_disable_tracepoint): Likewise.
7926 (remote_trace_set_readonly_regions): Likewise.
7927 (remote_get_tracepoint_status): Likewise.
7928 (remote_trace_find): Likewise.
7929 (remote_get_trace_state_variable_value): Likewise.
7930 (remote_set_disconnected_tracing): Likewise.
7931 (remote_set_circular_trace_buffer): Likewise.
7932 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7933 (remote_use_agent): Likewise.
7934 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7935 Update callers.
7936
9b224c5e
PA
79372012-03-07 Pedro Alves <palves@redhat.com>
7938
7939 * NEWS: Mention QProgramSignals.
7940 * inferior.h (update_signals_program_target): Declare.
7941 * infrun.c: (update_signals_program_target): New.
7942 (handle_command): Update the target of the new program signals
7943 array changes.
7944 * remote.c (PACKET_QProgramSignals): New enum.
7945 (last_program_signals_packet): New global.
7946 (remote_program_signals): New.
7947 (remote_start_remote): Update the target with the program signals
7948 list.
7949 (remote_protocol_features): Add entry for QPassSignals.
7950 (remote_open_1): Free anc clear last_program_signals_packet.
7951 (init_remote_ops): Install remote_program_signals.
7952 * target.c (update_current_target): Adjust.
7953 (target_program_signals): New.
7954 * target.h (struct target_ops) <to_program_signals>: New field.
7955 (target_program_signals): Declare.
7956
74c48cbb
PA
79572012-03-07 Pedro Alves <palves@redhat.com>
7958
7959 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7960 extensions.
7961
0c13fc49
AS
79622012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7963
7964 * m68klinux-nat.c (getregs_supplies): Make static.
7965 (getfpregs_supplies): Likewise.
7966 (have_ptrace_getregs): Likewise.
7967
1281d2a3
JB
79682012-03-06 Joel Brobecker <brobecker@adacore.com>
7969
7970 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7971 in call to get_die_type_at_offset.
7972
2b03b41d
SS
79732012-03-06 Stan Shebs <stan@codesourcery.com>
7974
7975 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7976 * mi/mi-cmd-disas.c: Ditto.
7977 * mi/mi-cmd-env.c: Ditto.
7978 * mi/mi-cmd-file.c: Ditto.
7979 * mi/mi-cmd-stack.c: Ditto.
7980 * mi/mi-cmd-target.c: Ditto.
7981 * mi/mi-cmd-var.c: Ditto.
7982 * mi/mi-cmds.c: Ditto.
7983 * mi/mi-cmds.h: Ditto.
7984 * mi/mi-console.c: Ditto.
7985 * mi/mi-getopt.c: Ditto.
7986 * mi/mi-getopt.h: Ditto.
7987 * mi/mi-interp.c: Ditto.
7988 * mi/mi-main.c: Ditto.
7989 * mi/mi-out.c: Ditto.
7990 * mi/mi-parse.c: Ditto.
7991 * mi/mi-parse.h: Ditto.
7992 * mi/mi-symbol-cmds.c: Ditto.
7993
7994 * mi/mi-getopt.h: Move mi_opt struct up.
7995 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7996 return.
7997 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7998
c988ad87
TT
79992012-03-06 Tom Tromey <tromey@redhat.com>
8000
8001 * proc-service.c (ps_pglobal_lookup): Set the current program
8002 space.
8003
1b7c1b10
PA
80042012-03-06 Pedro Alves <palves@redhat.com>
8005
8006 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8007
3c182069
JB
80082012-03-05 Joel Brobecker <brobecker@adacore.com>
8009
8010 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8011
2e794194
JK
80122012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8013
8014 Code cleanup.
8015 * common/linux-osdata.c (linux_common_core_of_thread): New function
8016 comment.
8017 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8018 call by linux_common_core_of_thread.
8019 (linux_nat_core_of_thread_1): Remove.
8020 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8021 * linux-thread-db.c: Include linux-osdata.h.
8022 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8023 linux_common_core_of_thread.
8024
9f9f1f31
TT
80252012-03-05 Tom Tromey <tromey@redhat.com>
8026
8027 * value.c (value_primitive_field): Don't fetch contents for
8028 non-virtual bases.
8029
b7b189f3
TT
80302012-03-05 Tom Tromey <tromey@redhat.com>
8031
8032 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8033
05b8a789 80342012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8035
5538f557
JB
8036 * s390-nat.c: Include "gregset.h".
8037
75528772
JK
80382012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8039
8040 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8041 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8042 (libunwind_load): New variable so_error, use it for dlerror. Try to
8043 load also LIBUNWIND_SO_7.
8044
275418ae
PA
80452012-03-05 Pedro Alves <palves@redhat.com>
8046
8047 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8048 is not NULL, and remove resulting dead code.
8049
5cbb9812
TS
80502012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8051
8052 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8053 prologue to sh_analyze_prologue.
8054 (sh_analyze_prologue): Make better use of such an upper limit, and
8055 generally be more cautious about accessing memory.
8056
541515ad
TT
80572012-03-05 Tom Tromey <tromey@redhat.com>
8058
8059 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8060 _initialize_ia64_hpux_tdep.
8061
b4d36fb8
PA
80622012-03-05 Pedro Alves <palves@redhat.com>
8063
24490249
PA
8064 PR gdb/13766
8065
b4d36fb8
PA
8066 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8067 the register state is clear, supply explicit zero, instead of
8068 marking the register unavailable.
8069
60c9a3c0
TG
80702012-03-05 Tristan Gingold <gingold@adacore.com>
8071
8072 * NEWS: Mention OpenVMS ia64 new target.
8073
696759ad
TG
80742012-03-05 Tristan Gingold <gingold@adacore.com>
8075
8076 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8077 (ia64_unw_accessors, ia64_unw_rse_accessors)
8078 (ia64_libunwind_descr): Declare.
8079 * ia64-vms-tdep.c: New file.
8080 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8081 (ia64_libunwind_descr): Make them public.
8082 * configure.tgt: Add ia64-*-*vms*.
8083 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8084 (ALLDEPFILES): Add ia64-vms-tdep.c
8085
34864976
TG
80862012-03-05 Tristan Gingold <gingold@adacore.com>
8087
169081d0
TG
8088 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8089 * remote.c (PACKET_qXfer_uib): New enum value.
8090 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8091 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8092 (_initialize_remote): Call add_packet_config_cmd for
8093 xfer:uib packet.
8094
80952012-03-05 Tristan Gingold <gingold@adacore.com>
8096
8097 * osabi.c (gdb_osabi_names): Add OpenVMS.
8098 (generic_elf_osabi_sniffer): Likewise.
8099 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8100
6597b100
JK
81012012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8102
8103 Removed unused code.
8104 * libunwind-frame.c (libunwind_frame_unwind)
8105 (libunwind_frame_base_address): Remove.
8106 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8107
87399aa1
YQ
81082012-03-04 Yao Qi <yao@codesourcery.com>
8109
8110 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8111 remove trailing new line.
8112 (agent_run_command, agent_run_command): Add _ markup.
8113 (agent_capability_check): Likewise.
8114
abf1152a
JK
81152012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8116
8117 * breakpoint.c (set_condition_evaluation_mode): Set
8118 CONDITION_EVALUATION_MODE unconditionally.
8119
5808517f
YQ
81202012-03-03 Yao Qi <yao@codesourcery.com>
8121
8122 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8123 * common/agent.h: Update declaration.
8124 * inf-child.c (inf_child_use_agent): New.
8125 (inf_child_can_use_agent): New.
8126 (inf_child_target): Initialize fields `to_use_agent'
8127 and `to_can_use_agent'.
8128 * agent.c (agent_new_objfile): New.
89b7509a 8129 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8130 observer.
8131
8132 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8133 New.
89b7509a 8134 (linux_target_install_ops): Initialize field
5808517f
YQ
8135 `to_static_tracepoint_markers_by_strid'.
8136 * remote.c (free_current_marker): Move it to ...
8137 * tracepoint.c (free_current_marker): ... here. New.
8138 (cleanup_target_stop): New.
8139 * tracepoint.h: Declare free_current_marker.
8140 * NEWS: Add one entry about `info static-tracepoint-marker'.
8141
58b4daa5
YQ
81422012-03-03 Yao Qi <yao@codesourcery.com>
8143
8144 * common/agent.c (agent_loaded_p): New.
89b7509a 8145 (agent_look_up_symbols): New global.
58b4daa5
YQ
8146 * common/agent.h: Declare agent_loaded_p.
8147
8ffcbaaf
YQ
81482012-03-03 Yao Qi <yao@codesourcery.com>
8149
8150 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8151 (agent_capability_check, agent_capability_invalidate): New.
8152 (symbol_list): New array element.
8153 * common/agent.h (enum agent_capa): New.
8154 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8155
d1feda86
YQ
81562012-03-03 Yao Qi <yao@codesourcery.com>
8157
8158 * target.h (struct target_ops) <to_use_agent>: New field.
8159 (struct target_ops) <to_can_use_agent>: New field.
8160 (target_use_agent, target_can_use_agent): New macro.
8161 * target.c (update_current_target): Update.
8162 * remote.c: New enum `PACKET_QAgent'.
8163 (remote_protocol_features): Add a new element.
8164 (remote_use_agent, remote_can_use_agent): New.
8165 (init_remote_ops): Initialize field `can_use_agent' with
8166 remote_can_use_agent. Intiailize field `use_agent' with
8167 remote_use_agent.
8168 * common/agent.c (use_agent): New global.
8169 * common/agent.h: Declare it.
8170 * tracepoint.c (info_static_tracepoint_markers_command): Add
8171 comment.
8172 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8173 (COMMON_OBS): Add common/agent.o and agent.o
8174 (common-agent.o): New rule.
8175 * agent.c: New.
8176
2fa291ac
YQ
81772012-03-03 Yao Qi <yao@codesourcery.com>
8178
8179 * common/agent.c: New.
8180 * common/agent.h: New.
8181 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8182 AC_CHECK_HEADERS.
8183 * configure, configh.in: Regenerated.
8184
9fc05685
KB
81852012-03-02 Kevin Buettner <kevinb@redhat.com>
8186
8187 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8188 unless it exists for this architecture.
8189
a5ee536b
JB
81902012-03-02 Joel Brobecker <brobecker@adacore.com>
8191
8192 * language.h (struct language_defn): New "method" la_read_var_value.
8193 * findvar.c: #include "language.h".
8194 (default_read_var_value): Renames read_var_value. Rewrite
8195 function description.
8196 (read_var_value): New function.
8197 * value.h (default_read_var_value): Add prototype.
8198 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8199 New functions.
8200 (ada_language_defn): Add entry for la_read_var_value.
8201 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8202 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8203 language_defn structures to add entry for new la_read_var_value
8204 field.
8205
f59f708a
PA
82062012-03-02 Tom Tromey <tromey@redhat.com>
8207 Pedro Alves <palves@redhat.com>
8208
8209 PR breakpoints/13776:
8210 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8211 breakpoints.
8212 (delete_longjmp_breakpoint_at_next_stop): New.
8213 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8214 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8215 before deleting the inferior. Add comments.
8216 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8217 breakpoints immediately, but only on next stop. Move that code
8218 next to where we mark other breakpoints for deletion.
8219
44099a67
JB
82202012-03-02 Joel Brobecker <brobecker@adacore.com>
8221
8222 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8223 marker.
8224 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8225 violation.
8226
2a2ef594
PA
82272012-03-02 Pedro Alves <palves@redhat.com>
8228
8229 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8230
b261e0c5
UW
82312012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8232
8233 Fix -Wmissing-prototypes build.
8234 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8235 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8236 (gdbsim_has_memory): Likewise.
8237
a95babbf
YQ
82382012-03-02 Yao Qi <yao@codesourcery.com>
8239
8240 Fix -Wmissing-prototypes build.
8241 * charset.c (phony_iconv_open): Make static.
8242 (phony_iconv_close, phony_iconv): Likewise.
8243 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8244 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8245 prototype.
8246 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8247 * ser-mingw.c (create_select_thread): Make static.
8248 * windows-termcap.c (tgetent): New prototype.
8249 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8250
d603d4b3
JK
82512012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8252
8253 Fix -Wmissing-prototypes build.
8254 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8255 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8256 (_initialize_loadable): New prototypes.
8257
7fb3ad1f
DE
82582012-03-02 Doug Evans <dje@google.com>
8259
8260 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8261 abbrev table, read_comp_unit will do it.
8262
693be288
JK
82632012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8264
8265 Fix -Wmissing-prototypes build.
8266 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8267 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8268 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8269 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8270 (_initialize_arm_symbian_tdep): New prototype.
8271 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8272 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8273 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8274 static.
8275 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8276 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8277 prototype.
8278 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8279 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8280 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8281 static.
8282 * moxie-tdep.c (moxie_process_record): Likewise.
8283 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8284 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8285 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8286 (_initialize_rl78_tdep): New prototype.
8287 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8288 (_initialize_rx_tdep): New prototype.
8289 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8290 (_initialize_darwin_solib): New prototype.
8291 * solib-spu.c: Include solib-spu.h.
8292 (_initialize_spu_solib): New prototype.
8293 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8294 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8295 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8296 (tic6x_software_single_step): Make it static.
8297 (_initialize_tic6x_tdep): New prototype.
8298
638234e5
JK
82992012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8300
8301 Fix -Wmissing-prototypes build.
8302 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8303 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8304
f4a6f16d
JK
83052012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8306
8307 Fix -Wmissing-prototypes build.
8308 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8309 (frv_have_stopped_data_address): Remove.
8310
04dcf5fa
JK
83112012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8312
8313 Fix -Wmissing-prototypes build.
8314 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8315 * sh-tdep.c: Include sh64-tdep.h.
8316 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8317 * sh64-tdep.c: Include sh64-tdep.h.
8318 * sh64-tdep.h: New file.
8319
19080931
MR
83202012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8321
8322 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8323
9aac7884
MR
83242012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8325
8326 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8327 sp_regnum once the gdbarch_init_osabi hook has been called.
8328
a385295e
MR
83292012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8330
8331 * mips-tdep.c (mips32_bc1_pc): New function.
8332 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8333 BPOSGE32 and BPOSGE64 instructions.
8334 (deal_with_atomic_sequence): Likewise.
8335 (mips32_instruction_has_delay_slot): Likewise.
8336
1faeff08 83372012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8338 Chris Dearman <chris@mips.com>
8339 Maciej W. Rozycki <macro@codesourcery.com>
8340 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8341
8342 * features/mips-dsp.xml: New file.
8343 * features/mips64-dsp.xml: New file.
8344 * features/mips-dsp-linux.xml: New file.
8345 * features/mips64-dsp-linux.xml: New file.
8346 * features/Makefile (WHICH): Add mips-dsp-linux and
8347 mips64-dsp-linux.
8348 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8349 * features/mips-dsp-linux.c: New file.
8350 * features/mips64-dsp-linux.c: New file.
8351 * regformats/mips-dsp-linux.dat: New file.
8352 * regformats/mips64-dsp-linux.dat: New file.
8353 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8354 registers.
8355 (mips64_linux_register_addr): Likewise.
8356 (mips64_linux_regsets_fetch_registers): Likewise.
8357 (mips64_linux_regsets_store_registers): Likewise.
8358 (mips64_linux_fetch_registers): Update call to
8359 mips64_linux_regsets_fetch_registers.
8360 (mips64_linux_store_registers): Update call to
8361 mips64_linux_regsets_store_registers.
8362 (mips_linux_read_description): Probe for DSP registers.
8363 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8364 and initialize_tdesc_mips64_dsp_linux.
8365 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8366 Remove padding of no longer used embedded register slots.
8367 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8368 (MIPS_RESTART_REGNUM): Redefine enum value.
8369 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8370 strings.
8371 (mips_tx39_reg_names): Likewise.
8372 (mips_linux_reg_names): New array of register names for Linux
8373 targets.
8374 (mips_register_name): Check for a null pointer in
8375 mips_processor_reg_names and return an empty string.
8376 (mips_register_type): Exclude embedded registers for the IRIX
8377 and Linux ABIs.
8378 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8379 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8380 DSP registers.
8381 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8382 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8383 (mips_gdbarch_init): Likewise. Initialize internal register
8384 indices for the Linux ABI. Use dynamic numbers to refer to
8385 registers, as applicable, while parsing the target description.
8386 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8387
263689d8
JB
83882012-03-01 Joel Brobecker <brobecker@adacore.com>
8389
8390 * frame.h (read_frame_register_unsigned): Fix typo in function
8391 description.
8392
f3b4f45c
PA
83932012-03-01 Pedro Alves <palves@redhat.com>
8394
8395 * jit-reader.in [!__cplusplus]
8396 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8397
b03a2011
PA
83982012-03-01 Pedro Alves <palves@redhat.com>
8399
8400 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8401 * configure: Regenerate.
8402
70221824
PA
84032012-03-01 Pedro Alves <palves@redhat.com>
8404
8405 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8406 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8407 (ftrace_command, strace_command): Make static.
8408 * d-lang.c (_initialize_d_language): Declare.
8409 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8410 * dwarf2loc.c (_initialize_dwarf2loc):
8411 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8412 * exec.c (exec_get_section_table): Make static.
8413 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8414 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8415 * inferior.c (remove_inferior_command, add_inferior_command)
8416 (clone_inferior_command): Make static.
8417 * linux-nat.c (linux_nat_thread_address_space)
8418 (linux_nat_core_of_thread): Make static.
8419 * linux-tdep.c (_initialize_linux_tdep): Declare.
8420 * objc-lang.c (_initialize_objc_lang): Declare.
8421 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8422 Make static.
8423 (_initialize_opencl_language): Declare.
8424 * record.c (_initialize_record): Declare.
8425 * remote.c (demand_private_info, remote_get_tib_address)
8426 (remote_supports_cond_tracepoints)
8427 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8428 Make static.
8429 * skip.c (_initialize_step_skip): Declare.
8430 * symtab.c (skip_prologue_using_lineinfo): Make static.
8431 * tracepoint.c (delete_trace_state_variable)
8432 (trace_variable_command, delete_trace_variable_command)
8433 (get_uploaded_tsv, find_matching_tracepoint_location)
8434 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8435 Make static.
8436 * value.c (pack_unsigned_long): Make static.
8437 * varobj.c (varobj_ensure_python_env): Make static.
8438 * windows-tdep.c (_initialize_windows_tdep): Declare.
8439 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8440
33fbcbee
PA
84412012-03-01 Pedro Alves <palves@redhat.com>
8442
8443 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8444 gdbarch parameter.
8445 (linux_init_abi): Install it as has_shared_address_space gdbarch
8446 callback.
8447
44d0cd3b
PA
84482012-03-01 Pedro Alves <palves@redhat.com>
8449
8450 * observer.c (observer_test_first_notification_function)
8451 (observer_test_second_notification_function)
8452 (observer_test_third_notification_function): Add declarations.
8453
ed01b82c
PA
84542012-03-01 Pedro Alves <palves@redhat.com>
8455
8456 * common/signals.c (default_target_signal_to_host)
8457 (default_target_signal_from_host): Move ...
8458 * arch-utils.c: ... here.
8459 * arch-utils.h (default_target_signal_to_host)
8460 (default_target_signal_from_host): Declare.
8461
8462 * common/signals.c (target_signal_from_command): Move ...
8463 * infrun.c: ... here.
8464 * inferior.h (target_signal_from_command): Declare.
8465 * target.h (target_signal_from_command)
8466 (default_target_signal_from_host, default_target_signal_to_host):
8467 Delete declarations.
8468
8469 * common/signals.c (_initialize_signals): Delete.
8470
c9b87335
PA
84712012-03-01 Pedro Alves <palves@redhat.com>
8472
8473 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8474 both __cplusplus and !__cplusplus.
8475
9340a6c0
PA
84762012-03-01 Pedro Alves <palves@redhat.com>
8477
8478 * psymtab.c (find_and_open_source): Delete declaration.
8479 * source.c (find_and_open_source): Move comment ...
8480 * source.h (find_and_open_source): ... to this new declaration.
8481
e451c4a1
PA
84822012-03-01 Pedro Alves <palves@redhat.com>
8483
8484 * inline-frame.c: Include inline-frame.h.
8485
983fb104
PA
84862012-03-01 Pedro Alves <palves@redhat.com>
8487
8488 * tui/tui-data.c (set_gen_win_origin): Delete.
8489 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8490 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8491
5fbce5df
PA
84922012-03-01 Pedro Alves <palves@redhat.com>
8493
8494 * remote.c (encode_actions): Delete declaration.
8495 * tracepoint.c (encode_actions): Make extern.
8496 * tracepoint.h (encode_actions): Declare.
8497
49a8461d
PA
84982012-03-01 Pedro Alves <palves@redhat.com>
8499
8500 * python/py-breakpoint.c: Include python.h.
8501 * python/py-continueevent.c (create_continue_event_object): Make
8502 static.
8503 * python/py-lazy-string.c (stpy_get_type): Make static.
8504 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8505 Make static.
8506 * python/py-utils.c (unicode_to_target_python_string): Make
8507 static.
8508 * python/py-value.c: Include python.h.
8509
9079102f
PA
85102012-03-01 Pedro Alves <palves@redhat.com>
8511
8512 * inferior.c (delete_threads_of_inferior): Delete.
8513
a298c5e8
PA
85142012-03-01 Pedro Alves <palves@redhat.com>
8515
8516 Import fallback definitions from glibc.
8517
8518 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8519 ps_prochandle): Forward declare.
8520 (ps_err_e): Use glibc's comments.
8521 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8522 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8523 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8524 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8525 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8526 (struct ps_prochandle): Adjust comment.
8527
e3084549
PA
85282012-03-01 Pedro Alves <palves@redhat.com>
8529
8530 * ada-lang.c (ada_modulus_from_name): Delete.
8531 * ada-lex.l (lexer_init): Make static.
8532
ad5f7d6e
PA
85332012-03-01 Pedro Alves <palves@redhat.com>
8534
8535 PR gdb/13767
8536
8537 * frame.c (read_frame_register_unsigned): New.
8538 * frame.h (read_frame_register_unsigned): Declare.
8539 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8540 Handle it.
8541 (print_i387_control_word): New parameter `control_p'. Handle it.
8542 (i387_print_float_info): Handle unavailable float registers.
8543
e0a4d108
KS
85442012-03-01 Keith Seitz <keiths@redhat.com>
8545
8546 * linespec.c (decode_line_2): Sort the list of methods
8547 alphabetically before presenting the user with a selection
8548 menu.
8549
122d1940
DE
85502012-03-01 Doug Evans <dje@google.com>
8551
8552 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8553 has_namespace_info.
8554 (dwarf2_read_abbrevs): Remove corresponding initialization.
8555
7d74f244
DE
85562012-03-01 Scott J. Goldman <scottjg@vmware.com>
8557
8558 * NEWS: Mention new python command class gdb.COMMAND_USER.
8559 * cli/cli-cmds.c (show_user): Print error when used on a python
8560 command.
8561 (init_cli_cmds): Update documentation strings for "show user" and
8562 "set/show max-user-call-depth" to clarify that it does not apply to
8563 python commands.
8564 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8565 error check.
8566 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8567 gdb python api.
8568 * top.c (execute_command): Only execute a user-defined command as a
8569 legacy macro if c->user_commands is set.
8570
e88acd96
TT
85712012-03-01 Tom Tromey <tromey@redhat.com>
8572
8573 * valprint.h (struct generic_val_print_decorations): New.
8574 (generic_val_print): Declare.
8575 * valprint.c (generic_val_print): New function.
8576 * p-valprint.c (p_decorations): New global.
8577 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8578 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8579 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8580 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8581 * m2-valprint.c (m2_decorations): New global.
8582 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8583 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8584 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8585 TYPE_CODE_ERROR>: Call generic_val_print.
8586 * f-valprint.c (f_decorations): New global.
8587 (f_val_print): Use print_function_pointer_address.
8588 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8589 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8590 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8591 generic_val_print.
8592 * c-valprint.c (c_decorations): New global.
8593 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8594 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8595 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8596 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8597 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8598 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8599 case.
8600
d3eab38a
TT
86012012-03-01 Tom Tromey <tromey@redhat.com>
8602
8603 * valprint.c (val_print): Update.
8604 * p-valprint (pascal_val_print): Return void.
8605 * p-lang.h (pascal_val_print): Return void.
8606 * m2-valprint.c (m2_val_print): Return void.
8607 * m2-lang.h (m2_val_print): Return void.
8608 * language.h (struct language_defn) <la_val_print>: Return void.
8609 * language.c (unk_lang_val_print): Return void.
8610 * jv-valprint.c (java_val_print): Return void.
8611 * jv-lang.h (java_val_print): Return void.
8612 * f-valprint.c (f_val_print): Return void.
8613 * f-lang.h (f_val_print): Return void.
8614 * d-valprint.c (d_val_print): Return void.
8615 (dynamic_array_type): Update.
8616 * d-lang.h (d_val_print): Return void.
8617 * c-valprint.c (c_val_print): Return void.
8618 * c-lang.h (c_val_print): Return void.
8619 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8620 void.
8621 * ada-lang.h (ada_val_print): Return void.
8622
35c0084b
TT
86232012-03-01 Tom Tromey <tromey@redhat.com>
8624
8625 * value.h (val_print): Return void.
8626 * valprint.c (val_print): Return void.
8627
a1f5dd1b
TT
86282012-03-01 Tom Tromey <tromey@redhat.com>
8629
8630 * value.h (common_val_print): Return void.
8631 * valprint.c (common_val_print): Return void.
8632
8e069a98
TT
86332012-03-01 Tom Tromey <tromey@redhat.com>
8634
8635 * value.h (value_print): Return void.
8636 * valprint.c (value_print): Return void.
8637 * p-valprint.c (pascal_value_print): Return void.
8638 * p-lang.h (pascal_value_print): Return void.
8639 * language.h (struct language_defn) <la_value_print>: Return
8640 void.
8641 * language.c (unk_lang_value_print): Return void.
8642 * jv-valprint.c (java_value_print): Return void.
8643 * jv-lang.h (java_value_print): Return void.
8644 * f-valprint.c (c_value_print): Don't declare.
8645 Include c-lang.h.
8646 * c-valprint.c (c_value_print): Return void.
8647 * c-lang.h (c_value_print): Return void.
8648 * ada-valprint.c (ada_value_print): Return void.
8649 * ada-lang.h (ada_value_print): Return void.
8650
be335936
TT
86512012-03-01 Tom Tromey <tromey@redhat.com>
8652
8653 * value.c (value_primitive_field): Handle virtual base classes.
8654
b0db66a7
TT
86552012-03-01 Tom Tromey <tromey@redhat.com>
8656
8657 * gdbtypes.h (struct vbase): Remove.
8658
132c57b4
TT
86592012-03-01 Tom Tromey <tromey@redhat.com>
8660
8661 * c-valprint.c (print_function_pointer_address): Move...
8662 * valprint.c: ... here. Make non-static.
8663 * m2-valprint.c (print_function_pointer_address): Remove.
8664 * valprint.h (print_function_pointer_address): Declare.
8665
e41eec66
JB
86662012-03-01 Joel Brobecker <brobecker@adacore.com>
8667
8668 * NEWS: Document the fact that one can provide a condition when
8669 creating an Ada exception catchpoint.
8670
19c37f24
TT
86712012-03-01 Tom Tromey <tromey@redhat.com>
8672
8673 * valprint.c (val_print_type_code_flags): Fix placement of
8674 trailing brace.
8675
f0fed3a3
JB
86762012-03-01 Joel Brobecker <brobecker@adacore.com>
8677
8678 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8679 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8680 environment variable before calling update-copyright.
8681
8ba85d85
JB
86822012-03-01 Joel Brobecker <brobecker@adacore.com>
8683
8684 * gnulib/extra/update-copyright: Update to the latest from
8685 gnulib's git repository.
8686 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8687 variable to 2 instead of 1.
8688
8219b1e8
JB
86892012-02-29 Joel Brobecker <brobecker@adacore.com>
8690
8691 * varobj.c (c_value_of_variable): Remove dead code.
8692
718cb7da
JB
86932012-02-29 Joel Brobecker <brobecker@adacore.com>
8694
8695 * ada-lex.p (processId): Do not modify already encoded IDs.
8696 Update function documentation.
8697
739593e0
JB
86982012-02-29 Joel Brobecker <brobecker@adacore.com>
8699
8700 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8701 "name" with "struct symbol *name_sym".
8702 * ada-exp.y (write_var_or_type): Update call to
8703 ada_find_renaming_symbol.
8704 "name" with "struct symbol *name_sym". Adjust Implementation
8705 accordingly. Adjust the function documentation.
8706
852dff6c
JB
87072012-02-29 Joel Brobecker <brobecker@adacore.com>
8708
8709 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8710 * ada-lang.c (ada_find_any_type): Add advance declaration.
8711 Make static. Replace ada_find_any_symbol by
8712 ada_find_any_type_symbol.
8713 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8714 Improve function description. Make static.
8715 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8716 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8717
1b611343
JB
87182012-02-29 Joel Brobecker <brobecker@adacore.com>
8719
8720 * ada-lang.c (struct tag_args): Delete.
8721 (ada_get_tsd_type): Function body moved up in source file.
8722 (ada_tag_name_1, ada_tag_name_2): Delete.
8723 (ada_get_tsd_from_tag): New function.
8724 (ada_tag_name_from_tsd): New function.
8725 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8726 to determine the tag name.
8727
41246937
JB
87282012-02-29 Joel Brobecker <brobecker@adacore.com>
8729
8730 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8731 declaration.
8732 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8733 function.
8734
ffde82bf
JB
87352012-02-29 Joel Brobecker <brobecker@adacore.com>
8736
8737 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8738
2ad01556
JB
87392012-02-29 Joel Brobecker <brobecker@adacore.com>
8740
8741 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8742 full searches.
8743
99b1c762
JB
87442012-02-29 Joel Brobecker <brobecker@adacore.com>
8745
8746 * ada-lang.c (constrained_packed_array_type): If there is a
8747 parallel XA type, use it to determine the array index type.
8748
2d4a02ee
JB
87492012-02-29 Joel Brobecker <brobecker@adacore.com>
8750
8751 * ada-valprint.c (ada_val_print_1): If our value is a reference
8752 to an array descriptor, dereference it before converting it
8753 to a simple array.
8754
c48db5ca
JB
87552012-02-29 Joel Brobecker <brobecker@adacore.com>
8756
8757 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8758 creating fixed value.
8759 (ada_value_ind, ada_coerce_ref, assign_component)
8760 (ada_evaluate_subexp): Remove call to unwrap_value before
8761 call to ada_to_fixed_value.
8762
2e6fda7d
JB
87632012-02-29 Joel Brobecker <brobecker@adacore.com>
8764
8765 * ada-lang.c (to_fixed_array_type): Set result's type name.
8766
5845583d
JB
87672012-02-29 Joel Brobecker <brobecker@adacore.com>
8768
8769 * ada-lang.c (catch_ada_exception_command_split): Add new
8770 argument cond_string. Add support for condition at end of
8771 "catch exception" commands.
8772 (ada_decode_exception_location): Add new argument cond_string.
8773 Update call to catch_ada_exception_command_split.
8774 (create_ada_exception_catchpoint): Add new argument cond_string.
8775 Set the breakpoint condition if needed.
8776 (catch_ada_exception_command): Update call to
8777 ada_decode_exception_location.
8778 (ada_decode_assert_location): Add function documentation.
8779 Add support for condition at end of "catch assert" command.
8780 (catch_assert_command): Update calls to ada_decode_assert_location
8781 and create_ada_exception_catchpoint.
8782
9a7f938f
JK
87832012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8784
8785 Fix disp-step-syscall.exp: fork: single step over fork.
8786 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8787 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8788 comment, change parameters gdbarch and ptid to regcache. Remove
8789 parameter regcache, initialize gdbarch from regcache here.
8790 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8791 New functions.
8792 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8793 instead.
8794 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8795 'syscall'. Make the 'int' check more strict.
8796
ffdf6de5
JK
87972012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8798
8799 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8800 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8801 (i386_linux_intx80_sysenter_syscall_record): ... here.
8802 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8803 Use the renamed function name.
8804
c70a6932
JK
88052012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8806
8807 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8808 * breakpoint.c (until_break_command): Likewise.
8809 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8810 * infcall.c (call_function_by_hand): Likewise.
8811 * infcmd.c (finish_forward): Likewise.
8812 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8813
05b8a789 88142012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8815
d4cd3da9
JB
8816 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8817 avoid variable assignments inside condition.
8818
6425366c
JK
88192012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8820
8821 Fix static analysis issue found by cppcheck.
8822 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8823 uninitialized BUF for size 2.
8824
c8cef75f 88252012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8826 Nathan Froyd <froydnj@codesourcery.com>
8827 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8828
8829 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8830 (mips16_instruction_has_delay_slot): Likewise.
8831 (mips_segment_boundary): Likewise.
8832 (mips_adjust_breakpoint_address): Likewise.
8833 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8834
473347ad 88352012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8836 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8837
8838 * infrun.c (handle_inferior_event): Don't proceed through
8839 shared library trampolines if stepping at the machine
8840 instruction level.
8841
cf233303
MR
88422012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8843
8844 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8845 too.
8846
cb2cf4ce
TS
88472012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8848
8849 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8850 (sh_stub_unwind_sniffer): New functions.
8851 (sh_stub_unwind): New variable.
8852 (sh_gdbarch_init): Wire everything.
8853
644cebc9
PA
88542012-02-27 Pedro Alves <palves@redhat.com>
8855
8856 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8857 (linux_nat_post_attach_wait): Adjust to use
8858 linux_proc_pid_is_stopped.
8859 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8860 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8861 based on pid_is_stopped from both linux-nat.c and
8862 gdbserver/linux-low.c, and renamed.
8863
283002cf
MR
88642012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8865
8866 * remote.c (remote_watchpoint_addr_within_range): New function.
8867 (init_remote_ops): Use it.
8868
9b3e86b1
MR
88692012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8870
8871 * target.h (target_watchpoint_addr_within_range): Document macro.
8872
e36930bb
PA
88732012-02-24 Pedro Alves <palves@redhat.com>
8874
8875 * stack.c (set_last_displayed_sal): Issue internal_error instead
8876 of warning, and issue it after clearing the last displayed sal.
8877
883bc8d1
PA
88782012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 Pedro Alves <palves@redhat.com>
8880
8881 * breakpoint.c (until_break_command): Install breakpoints after
8882 all frame manipulations.
8883
b775012e
LM
88842012-02-24 Luis Machado <lgustavo@codesourcery.com>
8885
8886 * remote.c (remote_supports_cond_breakpoints): New forward
8887 declaration.
8888 (remote_add_target_side_condition): New function.
8889 (remote_insert_breakpoint): Add target-side breakpoint
8890 conditional if supported.
8891 (remote_insert_hw_breakpoint): Likewise.
8892 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8893 hook.
8894
8895 * target.c (update_current_target): Inherit
8896 to_supports_evaluation_of_breakpoint_conditions.
8897 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8898
8899 * target.h (struct target_ops)
8900 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8901 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8902
8903 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8904 (condition_evaluation_both, condition_evaluation_auto,
8905 condition_evaluation_host, condition_evaluation_target,
8906 condition_evaluation_enums, condition_evaluation_mode_1,
8907 condition_evaluation_mode): New static globals.
8908 (translate_condition_evaluation_mode): New function.
8909 (breakpoint_condition_evaluation_mode): New function.
8910 (gdb_evaluates_breakpoint_condition_p): New function.
8911 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8912 (mark_breakpoint_modified): New function.
8913 (mark_breakpoint_location_modified): New function.
8914 (set_condition_evaluation_mode): New function.
8915 (show_condition_evaluation_mode): New function.
8916 (bp_location_compare_addrs): New function.
8917 (get_first_location_gte_addr): New helper function.
8918 (set_breakpoint_condition): Free condition bytecode if locations
8919 has become unconditional. Call mark_breakpoint_modified (...).
8920 (condition_command): Call update_global_location_list (1) for
8921 breakpoints.
8922 (breakpoint_xfer_memory): Use is_breakpoint (...).
8923 (is_breakpoint): New function.
8924 (parse_cond_to_aexpr): New function.
8925 (build_target_condition_list): New function.
8926 (insert_bp_location): Handle target-side conditional
8927 breakpoints and call build_target_condition_list (...).
8928 (update_inserted_breakpoint_locations): New function.
8929 (insert_breakpoint_locations): Handle target-side conditional
8930 breakpoints.
8931 (bpstat_check_breakpoint_conditions): Add comment.
8932 (bp_condition_evaluator): New function.
8933 (bp_location_condition_evaluator): New function.
8934 (print_breakpoint_location): Print information on where the condition
8935 will be evaluated.
8936 (print_one_breakpoint_location): Likewise.
8937 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8938 breakpoint location.
8939 (force_breakpoint_reinsertion): New functions.
8940 (update_global_location_list): Handle target-side breakpoint
8941 conditions.
8942 Reinsert locations that are already inserted if conditions have
8943 changed.
8944 (bp_location_dtor): Free agent expression bytecode.
8945 (disable_breakpoint): Call mark_breakpoint_modified (...).
8946 Call update_global_location_list (...) with parameter 1 for breakpoints.
8947 (disable_command): Call mark_breakpoint_location_modified (...).
8948 Call update_global_location_list (...) with parameter 1 for breakpoints.
8949 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8950 (enable_command): mark_breakpoint_location_modified (...).
8951 (_initialize_breakpoint): Update documentation and add
8952 condition-evaluation breakpoint subcommand.
8953
8954 * breakpoint.h: Include ax.h.
8955 (condition_list): New data structure.
8956 (condition_status): New enum.
8957 (bp_target_info) <cond_list>: New field.
8958 (bp_location) <condition_changed, cond_bytecode>: New fields.
8959 (is_breakpoint): New prototype.
8960
3788aec7
LM
89612012-02-24 Luis Machado <lgustavo@codesourcery.com>
8962
8963 * remote.c (remote_state) <cond_breakpoints>: New field.
8964 (PACKET_ConditionalBreakpoints): New enum.
8965 (remote_cond_breakpoint_feature): New function.
8966 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8967 (remote_supports_cond_breakpoints): New function.
8968 (_initialize_remote): Add new packet configuration for
8969 target-side conditional breakpoints.
8970
72895ff6
LM
89712012-02-24 Luis Machado <lgustavo@codesourcery.com>
8972
8973 * NEWS: Mention target-side conditional breakpoint support,
8974 new condition-evaluation breakpoint subcommand and remote
8975 packet extensions.
8976
dea2aa5f
LM
89772012-02-24 Luis Machado <lgustavo@codesourcery.com>
8978
8979 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8980 number.
8981
8a8bc27f
TS
89822012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8983
8984 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8985 (after_prologue): Remove.
8986
6b446fdf
TT
89872012-02-23 Tom Tromey <tromey@redhat.com>
8988
8989 * jv-valprint.c (java_val_print): Remove dead code.
8990
ef59abfb
TG
89912012-02-23 Tristan Gingold <gingold@adacore.com>
8992
a09130f9
PA
8993 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8994 known_tasks_element and known_tasks_length fields.
8995 (read_known_tasks_array): Change argument type. Use pointer type
8996 and number of elements from DATA. Adjust.
8997 (read_known_tasks_list): Likewise.
8998 (get_known_tasks_addr): Remove.
8999 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9000 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9001 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9002
def166f6
JK
90032012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9004
9005 PR backtrace/13716
9006 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9007 it after set_momentary_breakpoint.
9008
aeaa2474
SA
90092012-02-22 Sterling Augustine <saugustine@google.com>
9010
9011 PR 13689:
9012 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9013
feea76c2
GB
90142012-02-22 Gary Benson <gbenson@redhat.com>
9015
9016 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9017 (find_slot_in_mapped_hash): Likewise.
9018
f06e05e0
JK
90192012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9020
9021 PR build/13638
9022 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9023 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9024 * configure: Regenerate.
9025
b54a8fd7
PA
90262012-02-21 Tristan Gingold <gingold@adacore.com>
9027 Pedro Alves <palves@redhat.com>
9028
9029 * ia64-tdep.c: Do not include libunwind-ia64.h.
9030 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9031 Include libunwind-ia64.h instead of libunwind.h.
9032 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9033 for libunwind.h existence.
9034 * configure, config.in: Regenerate.
9035
dfcee124
AG
90362012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9037
9038 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9039 instead of value_rtti_target_type.
9040 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9041 instead of value_rtti_target_type.
9042 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9043 value_rtti_target_type.
9044 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9045 (value_rtti_target_type): Rename to ...
9046 (value_rtti_indirect_type): ... here and make it indirect. Update
9047 function comment.
9048 * value.c (readjust_indirect_value_type): New function.
9049 (coerce_ref): Support for enclosing type setting for references
9050 with readjust_indirect_value_type.
9051 * value.h (readjust_value_type): New declaration.
9052 (value_rtti_target_type): Rename to ...
9053 (value_rtti_indirect_type): ... here.
9054
02568277
AG
90552012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9056
9057 * MAINTAINERS (Write After Approval): Add myself to the list.
9058
10c07b7e 90592012-02-20 Doug Evans <dje@google.com>
28ee876a 9060
d82ea6a8
DE
9061 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9062 Rename objfile_p_char parameter to objfilep.
9063 (build_objfile_section_table): Result is now void. All callers
9064 updated.
9065 * objfiles.h (struct objfile): Tweak comments, whitespace.
9066 (build_objfile_section_table): Update.
9067
28ee876a
DE
9068 * elfread.c (elf_symfile_segments): Fix warning text.
9069
24c79950
TT
90702012-02-20 Tom Tromey <tromey@redhat.com>
9071
9072 PR gdb/13498:
9073 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9074 particular set of file names once.
9075 (dw2_map_symbol_filenames): Likewise.
9076
3a9b40b6
JK
90772012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9078
9079 Code cleanup.
9080 * main.c (write_files): Remove the declaration.
9081 (external_editor_command): Move the declaration ...
9082 [GDBTK] (external_editor_command): ... here. Fix the comment.
9083
4d0795ca
TT
90842012-02-20 Tom Tromey <tromey@redhat.com>
9085
9086 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9087 extraneous block.
9088
637fd620
TG
90892012-02-20 Tristan Gingold <gingold@adacore.com>
9090
9091 * darwin-nat.h (enum darwin_msg_state): Add comments.
9092
6f124894
TG
90932012-02-20 Tristan Gingold <gingold@adacore.com>
9094
9095 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9096 value.
9097
2e6e3d9c
JB
90982012-20-18 Joel Brobecker <brobecker@adacore.com>
9099
9100 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9101 between function description and implementation.
9102
2e8265fd
TT
91032012-02-17 Tom Tromey <tromey@redhat.com>
9104
9105 PR python/12070:
9106 * python/py-event.c (event_object_getset): New global.
9107 (event_object_type): Reference it.
9108 * python/py-type.c (field_object_getset): New global.
9109 (field_object_type): Reference it.
9110 * python/python-internal.h (gdb_py_generic_dict): Declare.
9111 * python/py-utils.c (gdb_py_generic_dict): New function.
9112
8544a150 91132012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9114
8544a150 9115 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9116
ca193e27
TS
91172012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9118
9119 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9120 TYPE_CALLING_CONVENTION annotation.
9121
e5586183
KB
91222012-02-16 Kevin Buettner <kevinb@redhat.com>
9123
9124 * MAINTAINERS: Add rx to target ISA section.
9125 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9126 (ALLDEPFILES): Add rx-tdep.c.
9127
7dcd53a0
TT
91282012-02-16 Tom Tromey <tromey@redhat.com>
9129
9130 * symfile.c (symbol_file_add_main_1): Use inferior's
9131 symfile_flags.
9132 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9133 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9134 inferior.
9135 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9136 inferior.
9137 (follow_exec): Use inferior's symfile_flags.
9138 * inferior.h (struct inferior) <symfile_flags>: New field.
9139
ddd60447
MF
91402012-02-16 Mike Frysinger <vapier@gentoo.org>
9141
9142 PR gdb/9734:
9143 * remote-sim.c (gdbsim_create_inferior): Call error() when
9144 sim_create_inferior() fails.
9145
b0d32fb6
TG
91462012-02-16 Josh Matthews <josh@joshmatthews.net>
9147
9148 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9149
9addecb9
TT
91502012-02-16 Tom Tromey <tromey@redhat.com>
9151
9152 PR c++/13653:
9153 * thread.c (struct current_thread_cleanup) <was_removable>: New
9154 field.
9155 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9156 (make_cleanup_restore_current_thread): Initialize new field.
9157
a58b110a
KB
91582012-02-15 Kevin Buettner <kevinb@redhat.com>
9159
9160 * MAINTAINERS: Add rl78 to target ISA section.
9161 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9162 (ALLDEPFILES): Add rl78-tdep.c.
9163 * NEWS: Mention rl78 as a new target.
9164
4cb6da1c
AR
91652012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9166
9167 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9168 data.
9169 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9170
3af2590d
TT
91712012-02-15 Tom Tromey <tromey@redhat.com>
9172
9173 PR gdb/12659:
9174 * infcmd.c (registers_info): Print just the current register's
9175 name.
9176
c6910659
TT
91772012-02-15 Tom Tromey <tromey@redhat.com>
9178
9179 * python/py-symbol.c (sympy_value): Use _().
9180
7cee1e54
PA
91812012-02-15 Pedro Alves <palves@redhat.com>
9182
9183 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9184 output to be like native targets'.
9185 (remote_pid_to_str): Special case the null ptid.
9186
816338b5
SS
91872012-02-14 Stan Shebs <stan@codesourcery.com>
9188
9189 * NEWS: Mention enable count command.
9190 * breakpoint.h (struct breakpoint): New field enable_count.
9191 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9192 (enable_breakpoint): Add arg to call.
9193 (struct disp_data): New struct.
9194 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9195 (do_map_enable_once_breakpoint): Create a struct and pass it.
9196 (do_map_enable_delete_breakpoint): Ditto.
9197 (do_map_enable_count_breakpoint): New function.
9198 (enable_count_command): New function.
9199 (bpstat_stop_status): Decrement enable_count.
9200 (print_one_breakpoint_location): Report enable count.
9201 (_initialize_breakpoint): Add enable count command.
9202
c47a44f4
KB
92032012-02-14 Kevin Buettner <kevinb@redhat.com>
9204
9205 * rl78-tdep.c (reggroups.h): Include.
9206 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9207 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9208 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9209 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9210 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9211 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9212 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9213 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9214 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9215 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9216 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9217 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9218 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9219 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9220 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9221 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9222 beginning of register list.
9223 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9224 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9225 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9226 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9227 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9228 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9229 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9230 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9231 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9232 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9233 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9234 the pseudo registers. Rearrange other pseudo registers too so
9235 that the bank registers appear at the end.
9236 (rl78_register_type): Account for the fact that the byte sized
9237 bank registers are now pseudo-registers.
9238 (rl78_register_name): Rearrange the register name array. Make
9239 initial set of raw banked registers inaccessible.
9240 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9241 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9242 case for copying bytes back and forth between raw and pseudo
9243 versions of the banked registers. Update other cases to reflect
9244 the changed names.
9245 (rl78_return_value): Update to account for changed names of
9246 raw registers.
9247 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9248 rl78_register_sim_regno().
9249
e4569f1e
KB
92502012-02-14 Kevin Buettner <kevinb@redhat.com>
9251
9252 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9253 the name parameter being passed to find_pc_partial_function().
9254
7a05aae7
JK
92552012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9256
9257 * MAINTAINERS: Step down from being ia64 target maintainer.
9258
11fde611
JK
92592012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9260
9261 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9262 compilation warning.
9263
57008375
JK
92642012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 Fix crash on loaded shlibs without loaded exec_bfd.
9267 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9268 (set_section_command): Replace exec_bfd by p->bfd.
9269
ff3c9849
TT
92702012-02-10 Tom Tromey <tromey@redhat.com>
9271
9272 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9273 when we have a C++ qualified name.
9274
db2b9fdd
PA
92752012-02-10 Pedro Alves <palves@redhat.com>
9276
9277 * inferior.c (inferior_pid_to_str): New.
9278 (print_inferior, inferior_command): Use it.
9279
12cd34f3
PA
92802012-02-10 Pedro Alves <palves@redhat.com>
9281
9282 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9283 the test CFLAGS.
9284 * configure: Regenerate.
9285
e871429d
JK
92862012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9287
9288 * linespec.c (decode_line_internal): Fix comment correctness.
9289
1916efaf
PA
92902012-02-09 Valery Khromov <valery.khromov@gmail.com>
9291
9292 PR gdb/12953
9293 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9294 * amd64bsd-nat.c: Add support for debug registers (adapted from
9295 i386bsd-nat.c).
9296 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9297 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9298 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9299 (amd64bsd_dr_get_control): New functions.
9300 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9301 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9302 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9303 watchpoints initialization.
9304 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9305
f4859d94
JK
93062012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9307
9308 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9309 flds_bnds.fields.
9310 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9311
c56a97f9
JK
93122012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9313
9314 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9315
1a119f36
JB
93162012-02-08 Joel Brobecker <brobecker@adacore.com>
9317
9318 * language.h (symbol_name_cmp_ftype): Renames
9319 symbol_name_match_p_ftype.
9320 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9321 la_get_symbol_name_match_p.
9322 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9323 ada_get_symbol_name_match_p. Update comment.
9324 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9325 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9326 Renames symbol_name_match_p. Update field type.
9327 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9328 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9329 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9330 "la_get_symbol_name_cmp" in comments.
9331 * language.c: Likewise.
9332
c71bb1cf
RO
93332012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9334
9335 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9336 %eflags offset.
9337 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9338 (amd64_sol2_gregset32_reg_offs): Likewise.
9339
4b2d20a5
TG
93402012-02-08 Joel Brobecker <brobecker@adacore.com>
9341
9342 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9343 of the returned BFD is allocated by GDB.
9344
f0823d2c
TT
93452012-02-07 Tom Tromey <tromey@redhat.com>
9346
9347 PR python/12027:
9348 * python/python-internal.h (frame_object_type): Declare.
9349 * python/py-symbol.c (sympy_needs_frame): New function.
9350 (sympy_value): New function.
9351 (symbol_object_getset): Add "needs_frame".
9352 (symbol_object_methods): Add "value".
9353 * python/py-frame.c (frame_object_type): No longer static.
9354
64e7d9dd
TT
93552012-02-07 Tom Tromey <tromey@redhat.com>
9356
9357 PR python/13599:
9358 * python/py-symbol.c (sympy_line): New function.
9359 (symbol_object_getset): Add "line".
9360
1d6b2d2b
TT
93612012-02-07 Tom Tromey <tromey@redhat.com>
9362
9363 * charset.c (find_charset_names): Check 'in' against NULL.
9364
0d5cff50
DE
93652012-02-06 Doug Evans <dje@google.com>
9366
9367 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9368 and fields.name members from char * to const char *. All uses updated.
9369 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9370 from char * to const char *. All uses updated.
9371 (type_name_no_tag): Update.
9372 (lookup_unsigned_typename, lookup_signed_typename): Update.
9373 * gdbtypes.c (type_name_no_tag): Change result type
9374 from char * to const char *. All callers updated.
9375 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9376 name parameter from char * to const char *.
9377 * symtab.h (struct cplus_specific): Change type of demangled_name
9378 member from char * to const char *. All uses updated.
9379 (struct general_symbol_info): Change type of name and
9380 mangled_lang.demangled_name members from char * to const char *.
9381 All uses updated.
9382 (symbol_get_demangled_name, symbol_natural_name): Update.
9383 (symbol_demangled_name, symbol_search_name): Update.
9384 * symtab.c (symbol_get_demangled_name): Change result type
9385 from char * to const char *. All callers updated.
9386 (symbol_natural_name, symbol_demangled_name): Ditto.
9387 (symbol_search_name): Ditto.
9388 (completion_list_add_name): Change type of symname,sym_text,
9389 text,word parameters from char * to const char *.
9390 (completion_list_objc_symbol): Change type of sym_text,
9391 text,word parameters from char * to const char *.
9392 * ada-lang.c (find_struct_field): Change type of name parameter
9393 from char * to const char *.
9394 (encoded_ordered_before): Similarly for N0,N1 parameters.
9395 (old_renaming_is_invisible): Similarly for function_name parameter.
9396 (ada_type_name): Change result type from char * to const char *.
9397 All callers updated.
9398 * ada-lang.h (ada_type_name): Update.
9399 * buildsym.c (hashname): Change type of name parameter
9400 from char * to const char *.
9401 * buildsym.h (hashname): Update.
9402 * dbxread.c (end_psymtab): Change type of include_list parameter
9403 from char ** to const char **.
9404 * dwarf2read.c (determine_prefix): Change result type
9405 from char * to const char *. All callers updated.
9406 * f-lang.c (find_common_for_function): Change type of name, funcname
9407 parameters from char * to const char *.
9408 * f-lang.c (find_common_for_function): Update.
9409 * f-valprint.c (list_all_visible_commons): Change type of funcname
9410 parameters from char * to const char *.
9411 * gdbarch.sh (static_transform_name): Change type of name parameter
9412 and result from char * to const char *.
9413 * gdbarch.c: Regenerate.
9414 * gdbarch.h: Regenerate.
9415 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9416 of name parameter from char * to const char *.
9417 * jv-lang.c (java_primitive_type_from_name): Ditto.
9418 (java_demangled_signature_length): Similarly for signature parameter.
9419 (java_demangled_signature_copy): Ditto.
9420 (java_demangle_type_signature): Ditto.
9421 * jv-lang.h (java_primitive_type_from_name): Update.
9422 (java_demangle_type_signature): Update.
9423 * objc-lang.c (specialcmp): Change type of a,b parameters
9424 from char * to const char *.
9425 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9426 from char * to const char *. All callers updated.
9427 * p-lang.h (is_pascal_string_type): Update.
9428 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9429 of name parameter from char * to const char *.
9430 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9431 * utils.c (fprintf_symbol_filtered): Ditto.
9432 * defs.h (fprintf_symbol_filtered): Update.
9433 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9434 * stabsread.h (end_psymtab): Update.
9435 * stack.c (find_frame_funname): Change type of funname parameter
9436 from char ** to const char **.
9437 * stack.h (find_frame_funname): Update.
9438 * typeprint.c (type_print): Change type of varstring parameter
9439 from char * to const char *.
9440 * value.h (type_print): Update.
9441 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9442 from char * to const char *. All callers updated.
9443 (xcoff_end_psymtab): Change type of include_list parameter
9444 from char ** to const char **. All callers updated.
9445 (swap_sym): Similarly for name parameter. All callers updated.
9446 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9447 Use xstrdup.
9448 (process_coff_symbol): Use xstrdup.
9449 * stabsread.c (stabs_method_name_from_physname): Renamed from
9450 update_method_name_from_physname. Change result type from void
9451 to char *. All callers updated.
9452 (read_member_functions): In has_destructor case, store name in objfile
9453 obstack instead of malloc space. In !has_stub case, fix mem leak.
9454
5579a92e
TT
94552012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9456
9457 * configure: Rebuild.
9458 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9459 LDFLAGS.
9460
9058f767
KB
94612012-02-03 Kevin Buettner <kevinb@redhat.com>
9462
9463 * configure.tgt (rl78-*-elf): New target.
9464 * rl78-tdep.c: New file.
9465
5b37825d
PW
94662012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9467
9468 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9469 and continue the loop. Add QUIT statement.
9470
e009ee71
TT
94712012-02-03 Tom Tromey <tromey@redhat.com>
9472
9473 PR gdb/13596:
9474 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9475 bfd_lookup_symbol_from_symtab.
9476 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9477 gdb_bfd_lookup_symbol_from_symtab.
9478
f7e44f65
JB
94792012-02-03 Joel Brobecker <brobecker@adacore.com>
9480
9481 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9482 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9483 symbol. Add assertion that sym2 is never NULL.
9484
2c02bd72
DE
94852012-02-02 Doug Evans <dje@google.com>
9486
9487 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9488 "name" parameter to const char ** from char **. All callers updated.
9489 (find_pc_partial_function): Ditto.
9490 (cache_pc_function_name): Change type to const char * from char *.
9491 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9492 (find_pc_partial_function): Update.
9493 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9494 type of "name" parameter to const char * from char *.
9495 All uses updated.
9496 * arch-utils.c (generic_in_solib_return_trampoline): Change
9497 type of "name" parameter to const char * from char *.
9498 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9499 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9500 type of "name" parameter to const char * from char *.
9501 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9502 * gdbarch.c: Regenerate.
9503 * gdbarch.h: Regenerate.
9504 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9505 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9506 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9507 type of "name" parameter to const char * from char *.
9508 * skip.c (skip_function_pc): Ditto.
9509 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9510 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9511 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9512 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9513 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9514 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9515 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9516 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9517 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9518
e886a173
PA
95192012-02-02 Pedro Alves <palves@redhat.com>
9520
9521 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9522 the current inferior has no execution. Make sure the current
9523 remote process matches gdb's current inferior.
9524
c709a7c2
TT
95252012-02-02 Tom Tromey <tromey@redhat.com>
9526
9527 PR gdb/13405:
9528 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9529 read-only memory.
9530
f149aabd
TT
95312012-02-02 Tom Tromey <tromey@redhat.com>
9532
9533 PR gdb/9307:
9534 * symtab.c (lookup_language_this): Set block_found.
9535
03bef283
TT
95362012-02-01 Tom Tromey <tromey@redhat.com>
9537
9538 PR gdb/13431:
9539 * jit.c (struct jit_inferior_data): Rewrite.
9540 (struct jit_objfile_data): New.
9541 (get_jit_objfile_data): New function.
9542 (add_objfile_entry): Update.
9543 (jit_read_descriptor): Return int. Replace descriptor_addr
9544 argument with inf_data. Update. Don't call error.
9545 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9546 descriptor here.
9547 (jit_inferior_init): Don't look up descriptor. Don't call error.
9548 (jit_reset_inferior_data_and_breakpoints)
9549 (jit_inferior_created_observer): Remove.
9550 (jit_inferior_exit_hook): Update.
9551 (jit_executable_changed_observer): Remove.
9552 (jit_event_handler): Update.
9553 (free_objfile_data): Reset inferior data if needed.
9554 (_initialize_jit): Update.
9555
f0bbc364
TT
95562012-02-01 Tom Tromey <tromey@redhat.com>
9557
9558 * jit.c (bfd_open_from_target_memory): Move higher in file.
9559
47c1316c
TG
95602012-02-01 Tristan Gingold <gingold@adacore.com>
9561
9562 * libunwind-frame.c (libunwind_load): Display message if dlopen
9563 failed.
9564
8e704927
GB
95652012-02-01 Gary Benson <gbenson@redhat.com>
9566
09c7a31f 9567 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9568 (iterate_over_symbols): Use the above.
9569 * symtab.c (iterate_over_symbols): Likewise.
9570 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9571 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9572 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9573 (iterate_name_matcher): Document return values.
9574 (collect_one_symbol): Likewise.
9575 (collect_function_symbols): Likewise.
9576 (collect_symbols): Likewise.
9577
d9680e73
TT
95782012-02-01 Tom Tromey <tromey@redhat.com>
9579
9580 * ada-lang.c (resolve_subexp): Update.
9581 (ada_lookup_symbol_list): Add 'full_search' argument.
9582 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9583 ada_lookup_symbol_list.
9584 (ada_lookup_encoded_symbol): Update.
9585 (get_var_value): Update.
9586 * ada-exp.y (block_lookup): Update.
9587 (write_var_or_type): Update.
9588 (write_name_assoc): Update.
9589 * ada-lang.h (ada_lookup_symbol_list): Update.
9590
72e1143f
TT
95912012-01-31 Tom Tromey <tromey@redhat.com>
9592
9593 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9594 comment.
9595
ab2d2ad3
DE
95962012-01-31 Doug Evans <dje@google.com>
9597
9598 * symtab.h: Remove outdated comment.
e9111bf7 9599 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9600
bc884eba
JB
96012012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9602
9603 Fix build error in Darwin port.
9604 * i386-darwin-nat.c: Include i386-nat.h.
9605
8fc3fc34
TT
96062012-01-30 Tom Tromey <tromey@redhat.com>
9607
9608 PR breakpoints/13568:
9609 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9610 argument. Check for recursive includes.
9611 (dwarf_decode_macros): Create an include hash.
9612
5d853008
ME
96132012-01-30 Michael Eager <eager@eagercon.com>
9614
9615 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9616 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9617 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9618 (powerpc_linux_in_plt_stub): New function.
9619 (powerpc_linux_in_dynsym_resolve_code): New function.
9620 (ppc_skip_trampoline_code): New function.
9621 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9622 Use glibc_skip_solib_resolver.
9623
40478521
JK
96242012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9625
9626 Code cleanup: Make 1440 bytes of data segment read-only.
9627 * arch-utils.c (endian_enum): Make it const char *const [].
9628 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9629 Likewise.
9630 * breakpoint.c (always_inserted_enums): Likewise.
9631 * cli/cli-cmds.c (script_ext_enums): Likewise.
9632 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9633 enumlist parameter const char *const *.
9634 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9635 const char *const *.
9636 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9637 parameter const char *const *.
9638 * cris-tdep.c (cris_modes): Make it const char *const [].
9639 * filesystem.c (target_file_system_kinds): Likewise.
9640 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9641 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9642 (can_use_displaced_stepping_enum, scheduler_enums)
9643 (exec_direction_names): Likewise.
9644 * language.c (_initialize_language): Make the type_or_range_names and
9645 case_sensitive_names variables const char *const [].
9646 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9647 * python/python.c (python_excp_enums): Likewise.
9648 * remote.c (interrupt_sequence_modes): Likewise.
9649 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9650 * serial.c (logbase_enums): Likewise.
9651 * sh-tdep.c (sh_cc_enum): Likewise.
9652 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9653 Likewise.
9654 * symtab.c (multiple_symbols_modes): Likewise.
9655 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9656 Likewise.
9657 * utils.c (internal_problem_modes): Likewise.
9658
b3b8b934
JK
96592012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9660
9661 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9662 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9663 result.
9664
8c85a4e2
DE
96652012-01-27 Doug Evans <dje@google.com>
9666
9667 * configure.ac (with_python): Fix absolute path handling for win32.
9668 * configure: Regenerate.
9669
78d8b4d7
DE
96702012-01-26 Doug Evans <dje@google.com>
9671
eca864fe
DE
9672 * symtab.c: Whitespace cleanup, no code changes.
9673
7e082072
DE
9674 * symtab.c (lookup_symbol_in_language): Improve comment.
9675 (lookup_symbol_aux): Fix comment.
9676
7dc25483
DE
9677 * psymtab.c (add_psymbol_to_list): Result is now "void".
9678 * psympriv.h (add_psymbol_to_list): Update.
9679
78d8b4d7
DE
9680 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9681
4c63965b
JK
96822012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9683
9684 Do not open script filenames twice.
9685 * cli/cli-cmds.c (source_script_from_stream): Pass to
9686 source_python_script also STREAM.
9687 * python/py-auto-load.c (source_section_scripts): Pass to
9688 source_python_script_for_objfile also STREAM.
9689 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9690 also INPUT.
9691 * python/python-internal.h (source_python_script_for_objfile): New
9692 parameter file, rename parameter file to filename.
9693 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9694 instead if !_WIN32. Update the function comment.
9695 (source_python_script, source_python_script_for_objfile)
9696 (source_python_script): New parameter file, rename parameter file to
9697 filename. Pass FILENAME to python_run_simple_file.
9698 * python/python.h (source_python_script): New parameter file, rename
9699 parameter file to filename.
9700
88f38a04
PA
97012012-01-26 Pedro Alves <palves@redhat.com>
9702
9703 * corelow.c (core_has_fake_pid): Delete.
9704 (core_close): Delete references to `core_has_fake_pid'.
9705 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9706 (core_open): Delete references to `core_has_fake_pid'.
9707 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9708 the removed global.
9709
e078317b
JB
97102012-01-26 Joel Brobecker <brobecker@adacore.com>
9711
9712 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9713 Remove language parameter from name_matcher. Adjust the comment.
9714 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9715 Remove language parameter.
9716 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9717 * linespec.c (iterate_name_matcher): Likewise.
9718 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9719 name_matcher. Adjust call accordingly.
9720 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9721 (maintenance_check_symtabs): Adjust type of parameter "fun".
9722 * psymtab.h (maintenance_check_symtabs): Likewise.
9723
74ccd7f5
JB
97242012-01-26 Joel Brobecker <brobecker@adacore.com>
9725
9726 * language.h (symbol_name_match_p_ftype): New typedef.
9727 (struct language_defn): Replace field la_symbol_name_compare
9728 by la_get_symbol_name_match_p.
9729 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9730 (ada_language_defn): Use it.
9731 * linespec.c (struct symbol_matcher_data): New type.
9732 (iterate_name_matcher): Rewrite.
9733 (iterate_over_all_matching_symtabs): Pass a pointer to
9734 a symbol_matcher_data struct to expand_symtabs_matching
9735 instead of just the lookup name.
9736 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9737 opencl-lang.c, p-lang.c, language.c: Delete field
9738 la_symbol_name_compare, and replace by NULL for new field
9739 la_get_symbol_name_match_p.
9740 * symfile.h (struct quick_symbol_functions): Update comment.
9741
5d268276
TT
97422012-01-25 Tom Tromey <tromey@redhat.com>
9743
9744 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9745 dereferencing.
9746
edcc5120
TT
97472012-01-24 Tom Tromey <tromey@redhat.com>
9748
9749 PR symtab/12406:
9750 * solib.c (update_solib_list): Update the program space's
9751 added_solibs and deleted_solibs fields.
9752 * progspace.h (struct program_space) <added_solibs,
9753 deleted_solibs>: New fields.
9754 (clear_program_space_solib_cache): Declare.
9755 * progspace.c (release_program_space): Call
9756 clear_program_space_solib_cache.
9757 (clear_program_space_solib_cache): New function.
9758 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9759 bpstat_stop_status. Use handle_solib_event.
9760 * breakpoint.c: Include gdb_regex.h.
9761 (print_solib_event): New function.
9762 (bpstat_print): Use print_solib_event.
9763 (bpstat_stop_status): Add special case for bp_shlib_event.
9764 (handle_solib_event): New function.
9765 (bpstat_what): Use handle_solib_event.
9766 (struct solib_catchpoint): New.
9767 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9768 (breakpoint_hit_catch_solib, check_status_catch_solib)
9769 (print_it_catch_solib, print_one_catch_solib)
9770 (print_mention_catch_solib, print_recreate_catch_solib): New
9771 functions.
9772 (catch_solib_breakpoint_ops): New global.
9773 (catch_load_or_unload, catch_load_command_1)
9774 (catch_unload_command_1): New functions.
9775 (internal_bkpt_check_status): Add special case for
9776 bp_shlib_event.
9777 (internal_bkpt_print_it): Use print_solib_event.
9778 (initialize_breakpoint_ops): Initialize
9779 catch_solib_breakpoint_ops.
9780 (_initialize_breakpoint): Register "catch load" and "catch
9781 unload".
9782 * breakpoint.h (handle_solib_event): Declare.
9783 * NEWS: Add entry for "catch load" and "catch unload".
9784
fa864999
TT
97852012-01-24 Tom Tromey <tromey@redhat.com>
9786
9787 * ada-lang.c: Include gdb_vecs.h.
9788 * charset.c: Include gdb_vecs.h.
9789 * tracepoint.h: Include gdb_vecs.h.
9790 * gdb_vecs.h: New file.
9791
f90263c1
TT
97922012-01-24 Pedro Alves <pedro@codesourcery.com>
9793
9794 * breakpoint.c (breakpoint_hit_catch_fork)
9795 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9796 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9797 * infrun.c (inferior_has_forked, inferior_has_vforked)
9798 (inferior_has_execd, inferior_has_called_syscall): Delete.
9799 (handle_syscall_event): Get syscall_number from the execution
9800 control state's wait status.
9801 (wait_for_inferior): Don't clear syscall_number.
9802
09ac7c10
TT
98032012-01-24 Pedro Alves <palves@redhat.com>
9804
9805 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9806 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9807 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9808 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9809 `ws' parameter.
9810 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9811 false for events other than TARGET_SIGNAL_TRAP.
9812 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9813 Add `ws' parameter.
9814 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9815 events other than TARGET_SIGNAL_TRAP.
9816 (tracepoint_breakpoint_hit): Add `ws' parameter.
9817 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9818 parameter.
9819 (bpstat_stop_status): Same.
9820 (pc_at_non_inline_function): Same.
9821 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9822 to pass the current event's waitstatus to bpstat_stop_status
9823 and pc_at_non_inline_function.
9824
86eb7e95
JK
98252012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9826
9827 Code cleanup.
9828 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9829 Update the function comment for it.
9830 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9831 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9832 for STREAM.
9833
a9b3a50f
PA
98342012-01-24 Pedro Alves <palves@redhat.com>
9835
9836 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9837 outside `bs->stop' block.
9838 (bpstat_what): Rework bp_shlib_event handling.
9839 (internal_bkpt_check_status): If the breakpoint is a
9840 bp_shlib_event, then set bs->stop and bs->print if
9841 stop_on_solib_events is set.
9842
53fe1783
GB
98432012-01-24 Gary Benson <gbenson@redhat.com>
9844
9845 Delete #if 0'd out code.
9846 * stack.c (print_frame_label_vars): Remove.
9847 (catch_info): Likewise.
9848 (_initialize_stack): Remove "info catch" command.
9849 * NEWS: Mention the above.
9850
49c62f2e
PA
98512012-01-24 Pedro Alves <palves@redhat.com>
9852
9853 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9854 it.
9855 (remote_notice_new_inferior): If the remote end doesn't support
9856 the multiprocess extensions, then the PID is fake.
9857 (add_current_inferior_and_thread): New.
9858 (remote_start_remote): Use it.
9859 (extended_remote_attach_1): Adjust.
9860 (extended_remote_create_inferior_1): Use
9861 add_current_inferior_and_thread.
9862
d0d8b0c6
JK
98632012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9864
9865 Fix watchpoints to be specific for each inferior.
9866 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9867 current_program_space.
9868 * i386-nat.c (i386_inferior_data_cleanup): New.
9869 (i386_inferior_data_get): Replace variable inf_data_local by an
9870 inferior_data call.
9871 (i386_use_watchpoints): Initialize i386_inferior_data.
9872 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9873 specific iterate_over_lwps.
9874
4403d8e9
JK
98752012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9876
9877 Fix watchpoints across inferior fork.
9878 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9879 comment for linux_nat_iterate_watchpoint_lwps.
9880 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9881 linux_nat_iterate_watchpoint_lwps.
9882 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9883 * i386-linux-nat.c (update_debug_registers_callback): Update the
9884 comment for linux_nat_iterate_watchpoint_lwps.
9885 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9886 linux_nat_iterate_watchpoint_lwps.
9887 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9888 * i386-nat.c: Include inferior.h.
9889 (dr_mirror): Remove.
9890 (i386_inferior_data, struct i386_inferior_data)
9891 (i386_inferior_data_get): New.
9892 (i386_debug_reg_state): Use i386_inferior_data_get.
9893 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9894 (i386_insert_watchpoint, i386_remove_watchpoint)
9895 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9896 (i386_remove_hw_breakpoint): New variable state, use
9897 i386_debug_reg_state instead of DR_MIRROR.
9898 * linux-nat.c (delete_lwp): New declaration.
9899 (num_lwps): Move here from downwards.
9900 (delete_lwp_cleanup): New.
9901 (linux_child_follow_fork): Create new child_lp, call
9902 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9903 PTRACE_DETACH.
9904 (num_lwps): Move upwards.
9905 (linux_nat_iterate_watchpoint_lwps): New.
9906 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9907 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9908
2992c9a7 99092012-01-24 Joel Brobecker <brobecker@adacore.com>
9910
9911 GDB 7.4 released.
9912
e360902b
PA
99132012-01-23 Pedro Alves <palves@redhat.com>
9914
9915 * top.c (caution): Rename to ...
9916 (confirm): ... this.
9917 (show_caution): Rename to ...
9918 (show_confirm): ... this.
9919 (quit_cover): Adjust.
9920 (init_main): Adjust.
9921 * top.h (caution): Rename to ...
9922 (confirm): ... this.
9923 * utils.c (internal_vproblem, defaulted_query): Adjust.
9924
050a2e1d
PA
99252012-01-23 Pedro Alves <palves@redhat.com>
9926
9927 * top.c (caution): Update comment.
9928 (execute_command): Don't consider the current value of `caution'.
9929
77a35dd8
JK
99302012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9931
9932 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9933
a71b5a38
UW
99342012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9935
9936 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9937 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9938 * target.c (target_fileio_pwrite): Remove buffer address from
9939 debug output.
9940 (target_fileio_pread): Likewise.
9941
d99bd577
UW
99422012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9943
9944 * NEWS: Document remote "info proc" and "generate-core-file".
9945
35c2fab7
UW
99462012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9947
9948 * gdbarch.sh (find_memory_regions): New callback.
9949 * gdbarch.c, gdbarch.h: Regenerate.
9950
9951 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9952 callback before falling back to target method.
9953
9954 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9955 (linux_target_install_ops): No longer install it.
9956
9957 * linux-tdep.c (linux_find_memory_regions): New function.
9958 (linux_init_abi): Install it.
9959
6432734d
UW
99602012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9961
9962 * gdbarch.sh (make_corefile_notes): New architecture callback.
9963 * gdbarch.c: Regenerate.
9964 * gdbarch.h: Likewise.
9965
9966 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9967 before target_make_corefile_notes. If NULL is returned, the
9968 target does not support core file generation.
9969
9970 * linux-nat.c: Include "linux-tdep.h".
9971 (find_signalled_thread, find_stop_signal): Remove.
9972 (linux_nat_do_thread_registers): Likewise.
9973 (struct linux_nat_corefile_thread_data): Likewise.
9974 (linux_nat_corefile_thread_callback): Likewise.
9975 (iterate_over_spus): Likewise.
9976 (struct linux_spu_corefile_data): Likewise.
9977 (linux_spu_corefile_callback): Likewise.
9978 (linux_spu_make_corefile_notes): Likewise.
9979 (linux_nat_collect_thread_registers): New function.
9980 (linux_nat_make_corefile_notes): Replace contents by call to
9981 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9982 as native-only callback.
9983
9984 * linux-tdep.h: Include "bfd.h".
9985 (struct regcache): Add forward declaration.
9986 (linux_collect_thread_registers_ftype): New typedef.
9987 (linux_make_corefile_notes): Add prototype.
9988 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9989 "regset.h", and "elf-bfd.h".
9990 (find_signalled_thread, find_stop_signal): New functions.
9991 (linux_spu_make_corefile_notes): Likewise.
9992 (linux_collect_thread_registers): Likewise.
9993 (struct linux_corefile_thread_data): New data structure.
9994 (linux_corefile_thread_callback): New funcion.
9995 (linux_make_corefile_notes): Likewise.
9996 (linux_make_corefile_notes_1): Likewise.
9997 (linux_init_abi): Install it.
9998
3030c96e
UW
99992012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10000
10001 * gdbarch.sh (info_proc): New callback.
10002 * gdbarch.c, gdbarch.h: Regenerate.
10003
10004 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10005 before falling back to the target info_proc callback.
10006
10007 * linux-nat.c: Do not include "cli/cli-utils.h".
10008 (linux_nat_info_proc): Remove.
10009 (linux_target_install_ops): No longer install it.
10010
10011 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10012 (read_mapping): New function.
10013 (linux_info_proc): Likewise.
10014 (linux_init_abi): Install it.
10015
145b16a9
UW
100162012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10017
10018 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10019 * infcmd.c: (info_proc_cmd_1): New function.
10020 (info_proc_cmd): New function, moved here from equivalent routine
10021 orignally in linux-nat.c.
10022 (info_proc_cmd_mappings): Likewise.
10023 (info_proc_cmd_stat): Likewise.
10024 (info_proc_cmd_status): Likewise.
10025 (info_proc_cmd_cwd): Likewise.
10026 (info_proc_cmd_cmdline): Likewise.
10027 (info_proc_cmd_exe): Likewise.
10028 (info_proc_cmd_all): Likewise.
10029 (_initialize_infcmd): Install "info proc" command and subcommands.
10030
10031 * target.h (struct target_ops): Add to_info_proc.
10032 (target_info_proc): Add prototype.
10033 * target.c (target_info_proc): New function.
10034
10035 * procfs.c (procfs_info_proc): Add prototype.
10036 (info_proc_cmd): Rename into ...
10037 (procfs_info_proc): ... this. Update argument types as appropriate
10038 for a to_info_proc implementation. Handle "what" argument.
10039 (procfs_target): Install procfs_info_proc.
10040 (_initialize_procfs): No longer install "info proc" command.
10041
10042 * linux-nat.c: (enum info_proc_what): Remove.
10043 (linux_nat_info_proc_cmd_1): Rename into ...
10044 (linux_nat_info_proc): ... this. Update argument types as appropriate
10045 for a to_info_proc implementation.
10046 (linux_nat_info_proc_cmd): Remove.
10047 (linux_nat_info_proc_cmd_mappings): Likewise.
10048 (linux_nat_info_proc_cmd_stat): Likewise.
10049 (linux_nat_info_proc_cmd_status): Likewise.
10050 (linux_nat_info_proc_cmd_cwd): Likewise.
10051 (linux_nat_info_proc_cmd_cmdline): Likewise.
10052 (linux_nat_info_proc_cmd_exe): Likewise.
10053 (linux_nat_info_proc_cmd_all): Likewise.
10054 (linux_target_install_ops): Install linux_nat_info_proc.
10055 (_initialize_linux_nat): No longer install "info proc" command
10056 and subcommands.
10057
b9e7b9c3
UW
100582012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10059
10060 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10061 * config.in, configure: Regenerate.
10062
10063 * target.h (struct target_ops): Add to_fileio_readlink.
10064 (target_fileio_readlink): Add prototype.
10065 * target.c (target_fileio_readlink): New function.
10066
10067 * inf-child.c: Conditionally include <sys/param.h>.
10068 (inf_child_fileio_readlink): New function.
10069 (inf_child_target): Install it.
10070
10071 * remote.c (PACKET_vFile_readlink): New enum value.
10072 (remote_hostio_readlink): New function.
10073 (init_remote_ops): Install it.
10074 (_initialize_remote): Handle vFile:readlink packet type.
10075
7313baad
UW
100762012-01-20 Pedro Alves <palves@redhat.com>
10077 Ulrich Weigand <ulrich.weigand@linaro.org>
10078
10079 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10080 * config.in, configure: Regenerate.
10081
10082 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10083 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10084 (target_fileio_open): Add prototype.
10085 (target_fileio_pwrite): Likewise.
10086 (target_fileio_pread): Likewise.
10087 (target_fileio_close): Likewise.
10088 (target_fileio_unlink): Likewise.
10089 (target_fileio_read_alloc): Likewise.
10090 (target_fileio_read_stralloc): Likewise.
10091
10092 * target.c: Include "gdb/fileio.h".
10093 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10094 (default_fileio_target): New function.
10095 (target_fileio_open): Likewise.
10096 (target_fileio_pwrite): Likewise.
10097 (target_fileio_pread): Likewise.
10098 (target_fileio_close): Likewise.
10099 (target_fileio_unlink): Likewise.
10100 (target_fileio_close_cleanup): Likewise.
10101 (target_fileio_read_alloc_1): Likewise.
10102 (target_fileio_read_alloc): Likewise.
10103 (target_fileio_read_stralloc): Likewise.
10104
10105 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10106 <fcntl.h>, and <unistd.h>.
10107 (inf_child_fileio_open_flags_to_host): New function.
10108 (inf_child_errno_to_fileio_error): Likewise.
10109 (inf_child_fileio_open): Likewise.
10110 (inf_child_fileio_pwrite): Likewise.
10111 (inf_child_fileio_pread): Likewise.
10112 (inf_child_fileio_close): Likewise.
10113 (inf_child_fileio_unlink): Likewise.
10114 (inf_child_target): Install to_fileio routines.
10115
10116 * remote.c (init_remote_ops): Install to_fileio routines.
10117
901f9912
UW
101182012-01-20 Pedro Alves <palves@redhat.com>
10119 Ulrich Weigand <ulrich.weigand@linaro.org>
10120
10121 * remote.c (remote_multi_process_p): Only check for multi-process
10122 protocol feature, do not check for extended protocol.
10123 (remote_supports_multi_process): Check for extended protocol here.
10124 (set_general_process): Likewise.
10125 (extended_remote_kill): Likewise.
10126 (remote_pid_to_str): Likewise.
10127 (remote_query_supported): Always query multiprocess mode.
10128
e714e1bf
UW
101292012-01-20 Pedro Alves <palves@redhat.com>
10130 Ulrich Weigand <ulrich.weigand@linaro.org>
10131
10132 * inferior.h (struct inferior): Add fake_pid_p.
10133 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10134 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10135 magic_null_ptid since the remote side doesn't provide a real PID.
10136
50897289
TT
101372012-01-19 Tom Tromey <tromey@redhat.com>
10138
10139 * NEWS: Combine the two Python sections.
10140
1afc2033
JK
101412012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10142
10143 * target.h (target_close): Update comment on the target's unpush state.
10144
305436e0
PA
101452012-01-19 Pedro Alves <palves@redhat.com>
10146
10147 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10148 linux_nat_async directly instead of going through the target
10149 vector.
10150 * target.c (unpush_target): Close target after unpushing it, not
10151 before.
10152
49323895
GB
101532012-01-19 Gary Benson <gbenson@redhat.com>
10154
10155 * mdebugread.c (sort_blocks): Replace integer constants with ones
10156 derived from FIRST_LOCAL_BLOCK.
10157
1db33378
PP
101582012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10159 Jan Kratochvil <jan.kratochvil@redhat.com>
10160
10161 PR gdb/9538
10162 * symfile.c (find_separate_debug_file): New function.
10163 (terminate_after_last_dir_separator): Likewise.
10164 (find_separate_debug_file_by_debuglink): Also try realpath.
10165 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10166 * configure: Regenerate.
10167 * config.in: Regenerate.
10168
f83d8a90
DE
101692012-01-18 Doug Evans <dje@google.com>
10170
10171 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10172 (main.o): Remove rule.
10173 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10174 (--with-sysroot): Rewrite.
10175 * configure: Regenerate.
10176 * config.in: Regenerate.
10177
2dbca4d6
SDJ
101782012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10179
10180 * parse.c (initialize_expout): New function.
10181 (reallocate_expout): Likewise.
10182 (parse_exp_in_context): Use `initialize_expout' and
10183 `reallocate_expout' when appropriate.
10184
0695b514
PA
101852012-01-18 Pedro Alves <palves@redhat.com>
10186
10187 * record.c (struct record_breakpoint, record_breakpoint_p)
10188 (record_breakpoints): New.
10189 (record_insert_breakpoint, record_remove_breakpoint): Manage
10190 record breakpoints list. Only remove breakpoints from the
10191 inferior if they had been inserted there in the first place.
10192
136e1c30
DE
101932012-01-17 Doug Evans <dje@google.com>
10194
10195 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10196 if we know we don't have a file name to look for.
10197
c0bf857d
PA
101982012-01-17 Pedro Alves <palves@redhat.com>
10199
10200 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10201 the frame's stop reason is UNWIND_UNAVAILABLE.
10202
b486de60
JK
102032012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10204
10205 Fix compilation error.
10206 * m2-exp.y (yyerror): Use ANSI C prototype.
10207
d04550a6
SDJ
102082012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10209
10210 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10211 (growbuf_by_size): Likewise.
10212 (yyerror): Likewise.
10213 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10214 (modblock): Remove variable (was #if 0'ed).
10215 (parse_number): Convert prototype from K&R to ANSI C.
10216 (yyerror): Likewise.
10217 * objc-exp.y (parse_number): Likewise.
10218 (yyerror): Likewise.
10219 (yylex): Remove #if 0'ed code.
10220 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10221 (yyerror): Likewise.
10222
4aac40c8
TT
102232012-01-16 Tom Tromey <tromey@redhat.com>
10224
10225 * NEWS: Add item.
10226 * symtab.h (compare_filenames_for_search): Declare.
10227 * symtab.c (compare_filenames_for_search): New function.
10228 (iterate_over_some_symtabs): Use it.
10229 * symfile.h (struct quick_symbol_functions)
10230 <map_symtabs_matching_filename>: Change spec.
10231 * psymtab.c (partial_map_symtabs_matching_filename): Use
10232 compare_filenames_for_search. Update for new spec.
10233 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10234 compare_filenames_for_search. Update for new spec.
10235 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10236
cafec441
TT
102372012-01-16 Tom Tromey <tromey@redhat.com>
10238
10239 PR python/13281:
10240 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10241 (struct main_type) <flag_flag_enum>: New field.
10242 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10243 * NEWS: Add entries.
10244 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10245 enums.
10246 * python/lib/gdb/printing.py (_EnumInstance): New class.
10247 (FlagEnumerationPrinter): Likewise.
10248
983af33b
SDJ
102492012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10250
10251 * breakpoint.c (create_sals_from_address_default): New function.
10252 (create_breakpoints_sal_default): Likewise.
10253 (decode_linespec_default): Likewise.
10254 (is_marker_spec): Removed.
10255 (strace_marker_p): New function.
10256 (init_breakpoint_sal): Using `strace_marker_p' instead of
10257 `is_marker_spec'.
10258 (create_breakpoint): Call method `create_sals_from_address' from
10259 breakpoint_ops, replacing code that created SALs conditionally
10260 on the type of the breakpoint. Call method `create_breakpoints_sal',
10261 replacing code that created breakpoints conditionally on the type
10262 wanted.
10263 (base_breakpoint_create_sals_from_address): New function.
10264 (base_breakpoint_create_breakpoints_sal): Likewise.
10265 (base_breakpoint_decode_linespec): Likewise.
10266 (base_breakpoint_ops): Add methods
10267 `base_breakpoint_create_sals_from_address',
10268 `base_breakpoint_create_breakpoints_sal' and
10269 `base_breakpoint_decode_linespec'.
10270 (bkpt_create_sals_from_address): New function.
10271 (bkpt_create_breakpoints_sal): Likewise.
10272 (bkpt_decode_linespec): Likewise.
10273 (tracepoint_create_sals_from_address): Likewise.
10274 (tracepoint_create_breakpoints_sal): Likewise.
10275 (tracepoint_decode_linespec): Likewise.
10276 (strace_marker_create_sals_from_address): Likewise.
10277 (strace_marker_create_breakpoints_sal): Likewise.
10278 (strace_marker_decode_linespec): Likewise.
10279 (strace_marker_breakpoint_ops): New variable.
10280 (addr_string_to_sals): Remove `marker_spec'. Call method
10281 `decode_linespec' from breakpoint_ops, replacing code that decoded
10282 an address string into a SAL. Use `strace_marker_p' instead of
10283 `marker_spec'.
10284 (strace_command): Decide whether we are dealing with a static
10285 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10286 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10287 * breakpoint.h (linespec_result, linespec_sals): New forward
10288 declarations.
10289 (breakpoint_ops) <create_sals_from_address>,
10290 <create_breakpoints_sal>, <decode_linespec>: New methods.
10291
4795f398
DE
102922012-01-14 Doug Evans <dje@google.com>
10293
10294 * NEWS: Update text for "maint set python print-stack".
10295 It is deprecated in gdb 7.4 and deleted in 7.5.
10296
ee5106fe
EZ
102972012-01-13 Eli Zaretskii <eliz@gnu.org>
10298
10299 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10300 including curses.h.
10301
b161e06f
JK
103022012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10303
10304 * configure: Regenerate.
10305 * config.in: Regenerate.
10306
85254831
KS
103072012-01-12 Keith Seitz <keiths@redhat.com>
10308
10309 PR mi/10586
10310 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10311 (ANONYMOUS_UNION_NAME): Define.
10312 (is_path_expr_parent): New function.
10313 (get_path_expr_parent): New function.
10314 (is_anonymous_child): New function.
10315 (create_child_with_value): If the child is anonymous and without
10316 a name, assign an object name to it.
10317 (c_describe_child): Use get_path_expr_parent to determine
10318 the parent expression.
10319 If there field represents an anonymous struct or union and
10320 has no name, set an appropriate display name and expression.
10321 (cplus_describe_child): Likewise.
10322
620fa63a
PA
103232012-01-12 Pedro Alves <palves@redhat.com>
10324
10325 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10326 available when %ebp is found to be zero (outermost).
10327
2efa2c79
AT
103282012-01-11 Andreas Tobler <andreast@fgznet.ch>
10329
10330 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10331 an internal gdb_static_assert.
10332 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10333
88e7d25d
TT
103342012-01-11 Tom Tromey <tromey@redhat.com>
10335
10336 PR gdb/9598:
10337 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10338 catch" and "catch throw".
10339
72384ba3
PH
103402012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10341
10342 * blockframe.c (block_innermost_frame): Start search from selected
10343 frame, if present, or otherwise the current frame.
10344
10345 * c-exp.y (variable): Update innermost_block for
10346 'block COLONCOLON NAME' clause.
10347 * m2-exp.y (variable): Ditto.
10348 * objc-exp.y (variable): Ditto.
10349
065a711f
TT
103502012-01-10 Tom Tromey <tromey@redhat.com>
10351
10352 PR python/13199:
10353 * python/python.c (finish_python_initialization): Set sys.argv.
10354
f3f5162e
DE
103552012-01-10 Doug Evans <dje@google.com>
10356
10357 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10358 "want_line_info". All callers updated.
10359 (dwarf_decode_lines_1): New function.
10360 (handle_DW_AT_stmt_list): Add function comment.
10361 New arg "want_line_info". All callers updated.
10362 (read_file_scope,read_type_unit_scope): Move comment from
10363 handle_DW_AT_stmt_list to here.
10364
9934703b
JK
103652012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10366
10367 Fix regression after libiberty/ update for GCC PR 6057 and others.
10368 * c-exp.y (operator) <OPERATOR DELETE>
10369 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10370 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10371 (make_builtin_type, make_name): New variable i, add gdb_assert.
10372 (operator) <OPERATOR NEW>: Update ARGS to 3.
10373 (operator) <OPERATOR DELETE>: Add trailing space.
10374 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10375 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10376 * cp-support.c (cp_canonicalize_string): Check NULL from
10377 cp_comp_to_string, call warning and return.
10378
06b9f45f
JK
103792012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10380
10381 Fix duplicate .o files after omitting libbfd.a.
10382 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10383 (SFILES): Add corelow.c.
10384 (COMMON_OBS): Add corelow.o.
10385 (ALLDEPFILES): Remove corelow.c.
10386 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10387 * config/alpha/alpha-osf3.mh: Likewise.
10388 * config/alpha/fbsd.mh: Likewise.
10389 * config/arm/nbsdaout.mh: Likewise.
10390 * config/arm/nbsdelf.mh: Likewise.
10391 * config/i386/i386gnu.mh: Likewise.
10392 * config/ia64/hpux.mh: Likewise.
10393 * config/ia64/linux.mh: Likewise.
10394 * config/m32r/linux.mh: Likewise.
10395 * config/m68k/linux.mh: Likewise.
10396 * config/mips/irix5.mh: Likewise.
10397 * config/mips/irix6.mh: Likewise.
10398 * config/pa/hpux.mh: Likewise.
10399 * config/pa/linux.mh: Likewise.
10400 * config/powerpc/aix.mh: Likewise.
10401 * config/sparc/linux.mh: Likewise.
10402 * config/sparc/linux64.mh: Likewise.
10403 * config/sparc/sol2.mh: Likewise.
10404 * config/vax/vax.mh: Likewise.
10405 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10406 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10407 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10408 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10409 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10410 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10411 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10412 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10413 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10414 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10415 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10416 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10417 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10418 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10419 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10420 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10421 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10422 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10423 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10424 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10425 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10426 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10427 corelow.o from gdb_target_obs.
10428 * corefile.c (core_target): Update the comment on NULL value.
10429 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10430 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10431 MATCHES. Drop YUMMY set on NULL.
10432 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10433 reclaim CORE_DATA if it is already NULL.
10434
34365054
DE
104352012-01-09 Doug Evans <dje@google.com>
10436
10437 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10438 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10439
696166a3
KS
104402012-01-09 Keith Seitz <keiths@redhat.com>
10441
10442 * breakpoint.c (wrapper.h): Don't include.
10443
8e7b59a5
KS
104442012-01-09 Keith Seitz <keiths@redhat.com>
10445
10446 * Makefile.in (SFILES): Remove wrapper.c.
10447 (HFILES_NO_SRCDIR): Remove wrapper.h.
10448 (COMMON_OBS): Remove wrapper.o.
10449 * cli/cli-interp.c: Don't inlude wrapper.h.
10450 * corelow.c: Likewise.
10451 (core_open): Replace gdb_target_find_new_threads with
10452 TRY_CATCH around target_find_new_threads.
10453 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10454 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10455 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10456 evaluate_expression.
10457 (varobj_set_value): Likewise for evaluate_expression and
10458 value_assign.
10459 (install_new_variable): Likewise for value_fetch_lazy.
10460 (adjust_value_for_child_access): Likewise for value_ind.
10461 (c_describe_child): Likewise for value_subscript and
10462 value_ind.
10463 (c_value_of_root): Likewise for evaluate_expression.
10464 * wrapper.c: Remove.
10465 * wrapper.h: Remove.
10466
1a4eeb98
DE
104672012-01-09 Doug Evans <dje@google.com>
10468
9ff913ba
DE
10469 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10470 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10471 "abfd" args with "section". All callers updated.
10472 Error checking code moved ...
10473 (error_check_comp_unit_head): ... here. New function.
10474 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10475 Delete arg "abfd". New arg "type_offset". All callers updated.
10476 (create_debug_types_hash_table): Simplify by using
10477 read_and_check_type_unit_head.
10478
1a4eeb98
DE
10479 * parser-defs.h (namecopy): Delete.
10480 * parse.c (namecopy, namecopy_size): Move into copy_name.
10481
2e6af8c0
JK
104822012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10483
10484 Partially fix duplicate .o files after omitting libbfd.a.
10485 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10486 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10487 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10488 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10489 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10490 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10491 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10492
9f2f828a
PA
104932012-01-09 Pedro Alves <palves@redhat.com>
10494
10495 * MAINTAINERS: Update my email address.
10496
4d72c0bc
DE
104972012-01-08 Doug Evans <dje@google.com>
10498
d467dd73
DE
10499 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10500 n_type_units. Rename type_comp_units to all_type_units.
10501 All uses updated.
10502 (add_signatured_type_cu_to_table): Renamed from
10503 add_signatured_type_cu_to_list. All callers updated.
10504
4d72c0bc
DE
10505 * gdbtypes.h (struct cplus_struct_type): Delete member
10506 nfn_fields_total. All uses removed.
10507
21b2bd31
DE
105082012-01-06 Doug Evans <dje@google.com>
10509
10510 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10511 to top of file.
10512 (dwarf2_find_comp_unit): Delete.
10513 (process_psymtab_comp_unit): Make result "void".
10514 Delete args buffer, info_ptr, buffer_size, and replace with
10515 "section". All callers updated.
10516 (dwarf2_build_psymtabs_hard): Simplify.
10517
bfd189b1
SDJ
105182012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10519 Thiago Jung Bauermann <bauerman@br.ibm.com>
10520
10521 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10522 before `struct gdb_exception'.
10523 * breakpoint.c (update_global_location_list_nothrow)
10524 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10525 * cp-abi.c (value_rtti_type): Likewise.
10526 * cp-support.c (cp_validate_operator): Likewise.
10527 * infrun.c (insert_exception_resume_breakpoint)
10528 (check_exception_resume, keep_going): Likewise.
10529 * mi-interp.c (mi_breakpoint_created)
10530 (mi_breakpoint_modified): Likewise.
10531 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10532 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10533 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10534
6b07635f
DE
105352012-01-05 Doug Evans <dje@google.com>
10536
0b30b85c
DE
10537 * dwarf2read.c (statement_prologue): Delete, unused.
10538
98714339
DE
10539 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10540 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10541
6b07635f
DE
10542 * dwarf2read.c (comp_unit_header): Delete, unused.
10543
761f4555
UW
105442012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10545
10546 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10547 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10548
2ca0b532
PA
105492012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10550
10551 * infrun.c (normal_stop): Don't skip calling the normal_stop
10552 observers if the thread was doing a multi-step, but stopped for
10553 some reason other than stepping.
10554
50aeff07
PA
105552012-01-05 Pedro Alves <alves.ped@gmail.com>
10556
10557 * cli/cli-decode.h: Add comments.
10558 (CMD_LIST_AMBIGUOUS): Moved to command.h
10559 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10560 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10561 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10562 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10563 (add_com, add_com_alias, add_info, add_info_alias)
10564 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10565 declarations.
10566 * command.h: Add and adjust comments.
10567 (CMD_LIST_AMBIGUOUS): Moved here.
10568 (help_cmd, help_cmd_list): Delete declarations.
10569
5953832c
DE
105702012-01-04 Doug Evans <dje@google.com>
10571
e5fe5e75
DE
10572 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10573 All callers updated.
10574 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10575 Replace all arguments with "per_cu". All callers updated.
10576
28dee7f5
DE
10577 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10578
23745b47
DE
10579 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10580 New arg "per_cu". All callers updated.
10581
5953832c
DE
10582 Delete #if 0'd out code.
10583 * language.c (binop_result_type): Delete.
10584 (simple_type, ordered_type, same_type, integral_type): Delete.
10585 (numeric_type, character_type, string_type, boolean_type): Delete.
10586 (float_type, structured_type): Delete.
10587 * language.h: Update.
10588
0f5b7562
TT
105892012-01-04 Tom Tromey <tromey@redhat.com>
10590
10591 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10592
78218f56
JB
105932012-01-04 Joel Brobecker <brobecker@adacore.com>
10594
10595 * corefile.c (close_exec_file): Delete.
10596 (reopen_exec_file): Remove commented out code that seems related
10597 to close_exec_file, which is being deleted here.
10598 * inferior.h (close_exec_file): Delete.
10599 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10600
0fcd72ba
JB
106012012-01-04 Joel Brobecker <brobecker@adacore.com>
10602
10603 * ada-lang.c: #include "cli/cli-utils.h".
10604 (get_selections): Use skip_spaces.
10605 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10606 (catch_ada_exception_command_split): Use skip_spaces.
10607 (ada_decode_assert_location): Likewise.
10608
1dabb4c4
JB
106092012-01-04 Joel Brobecker <brobecker@adacore.com>
10610
10611 * linespec.c (decode_line_internal): Check for C++ or Java
10612 compound constructs only if the current language is C, C++
10613 or Java.
10614
5931a2fa
JK
106152012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10616
10617 Revert:
10618 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10619 Joel Brobecker <brobecker@adacore.com>
10620 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10621 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10622 3 times.
10623 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10624 fall through into AT_ENTRY_POINT.
10625 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10626 DUMMY_ADDR with it.
10627 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10628 PPC_INSN_SIZE skip to 3 times.
10629
1a2da5ee
JB
106302012-01-04 Joel Brobecker <brobecker@adacore.com>
10631
10632 * linespec.c (add_minsym): Preserve function descriptors.
10633
8645ff69
UW
106342012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10635
10636 * breakpoint.c (all_locations_are_pending): Consider locations
10637 in program spaces executing during startup pending as well.
10638
0b302171
JB
106392012-01-04 Joel Brobecker <brobecker@adacore.com>
10640
10641 Copyright year update in most files of the GDB Project.
10642
8ba098ad
JB
106432012-01-04 Joel Brobecker <brobecker@adacore.com>
10644
10645 * copyright.sh: Delete.
10646 * copyright.py: Rewrite.
10647
09c01c30
JB
106482012-01-04 Joel Brobecker <brobecker@adacore.com>
10649
10650 * gnulib/extra/update-copyright: New file, imported from gnulib.
10651
3c36c0af
JB
106522012-01-04 Joel Brobecker <brobecker@adacore.com>
10653
10654 * README (Copyright and License Notices): New section.
10655
888fe1e1
TT
106562012-01-03 Tom Tromey <tromey@redhat.com>
10657
10658 PR python/12533:
10659 * python/py-value.c (valpy_dereference, valpy_get_address
10660 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10661 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10662 (valpy_absolute, valpy_richcompare): Free intermediate values.
10663
6e681866
JB
106642011-01-03 Joel Brobecker <brobecker@adacore.com>
10665
10666 * ada-lang.c: Reformat the copyright notice.
10667
0cd09acb
JK
106682012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10669
10670 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10671 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10672 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10673 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10674 Revert this part of:
10675 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10676 Build gdb directly from *.o files not using libgdb.a.
10677 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10678
12c3e59c
JB
106792012-01-02 Joel Brobecker <brobecker@adacore.com>
10680
10681 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10682 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10683 Reformat the copyright header.
10684
11bf1490
JK
106852012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10686
10687 Revert this part of:
10688 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10689 Remove the gdbtui binary.
10690 * gdb.c (main): Remove args.interpreter_p initialization.
10691 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10692 * main.h (struct captured_main_args): Remove interpreter_p.
10693
1fef196f
JB
106942012-01-02 Joel Brobecker <brobecker@adacore.com>
10695
10696 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10697
67827812
JB
106982012-01-02 Joel Brobecker <brobecker@adacore.com>
10699
10700 * top.c (print_gdb_version): Update copyright year.
10701
a4d0b831
YQ
107022012-01-02 Yao Qi <yao@codesourcery.com>
10703
10704 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10705
b5914469
JK
107062012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10707 Joel Brobecker <brobecker@adacore.com>
10708
10709 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10710 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10711 3 times.
10712 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10713 fall through into AT_ENTRY_POINT.
10714 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10715 DUMMY_ADDR with it.
10716 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10717 PPC_INSN_SIZE skip to 3 times.
10718
8da828f7
JK
107192012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10720
10721 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10722 the return value.
10723 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10724
8574e74b
JK
107252012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10726
10727 Build gdb directly from *.o files not using libgdb.a.
10728 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10729 (COMMON_OBS): Remove solib-target.o.
10730 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10731 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10732 (LIBGDB_OBS, libgdb.a): Move it above.
10733 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10734 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10735 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10736 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10737 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10738 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10739 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10740 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10741 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10742 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10743 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10744 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10745 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10746 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10747 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10748 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10749 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10750 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10751 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10752 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10753 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10754 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10755 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10756 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10757 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10758 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10759 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10760
217bff3e
JK
107612012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 Remove the gdbtui binary.
10764 * .gitignore (/gdbtui): Remove.
10765 * Makefile.in (TUI): Remove.
10766 (SUBDIR_TUI_OBS): Remove tui-main.o.
10767 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10768 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10769 (tui-main.o): Remove.
10770 (all_object_files): Remove tui-main.o.
10771 * NEWS: New note for the gdbtui removal.
10772 * configure: Rebuilt.
10773 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10774 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10775 CONFIG_UNINSTALL respectively.
10776 * gdb.c (main): Remove args.interpreter_p initialization.
10777 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10778 * main.h (struct captured_main_args): Remove interpreter_p.
10779 * tui/tui-main.c: Remove.
10780
9cdd5dbd
DE
107812012-01-01 Doug Evans <dje@google.com>
10782
bb5ed363
DE
10783 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10784 (dwarf2_physname, read_import_statement): Ditto.
10785 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10786 (process_structure_scope read_subroutine_type): Ditto.
10787 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10788 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10789 (dwarf2_fetch_die_location_block): Ditto.
10790 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10791
a0f42c21
DE
10792 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10793 All callers updated.
10794 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10795 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10796 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10797
2dc860c0
DE
10798 * dwarf2read.c (load_cu): Move assert to more useful location.
10799
68dc6402
DE
10800 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10801 All callers updated.
10802
9cdd5dbd
DE
10803 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10804 (dwarf2_elf_names): Minor reformat.
10805 (dwarf2_per_cu_data): Tweak comment.
10806 (dwarf2_read_section): Fix comment.
10807 (create_all_comp_units): Fix comment.
10808 (load_full_comp_unit): Fix comment.
10809 (process_full_comp_unit): Fix comment.
10810 (read_signatured_type): Fix comment.
10811
0c10e53e 10812For older changes see ChangeLog-2011.
c906108c
SS
10813\f
10814Local Variables:
10815mode: change-log
10816left-margin: 8
10817fill-column: 74
10818version-control: never
57da7796 10819coding: utf-8
c906108c 10820End:
This page took 4.567381 seconds and 4 git commands to generate.